/* Source geometry: thue-hoa-don-dashboard.jpg / thue-hoa-don-mo-ta.jpg. Whole UI uses Segoe UI. */
.finance-invoice-frame,.finance-invoice-reference{position:relative;width:100%;overflow:hidden;background:radial-gradient(ellipse at 47% 25%,#06303b55,transparent 65%),#001822;color:#dbeaf1;font-family:'Segoe UI',sans-serif;box-sizing:border-box}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) *{box-sizing:border-box}
:is(.finance-invoice-frame,.finance-invoice-reference) .fi-board{position:relative;width:1280px;height:558px;max-width:none;overflow:hidden;font-family:'Segoe UI',sans-serif}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) button{font-family:'Segoe UI',sans-serif;color:inherit;cursor:pointer;margin:0;letter-spacing:0;text-transform:none;min-height:0;line-height:1.3;box-shadow:none}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) button:focus-visible,:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) [tabindex]:focus-visible{outline:2px solid #e6c77d;outline-offset:2px}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) svg{display:block;flex-shrink:0}
:is(.finance-invoice-frame,.finance-invoice-reference) h2{font:600 28px/1.2 'Segoe UI',sans-serif;color:#e4e9e7;letter-spacing:0;margin:0;padding:0}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) h3,:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) h4,:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) p{margin:0;padding:0;letter-spacing:0}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) input,:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) select{font:11px 'Segoe UI',sans-serif;letter-spacing:0;color:#ccdae0;background:#062330;border:1px solid #375361;border-radius:5px;box-shadow:none;margin:0;min-height:0;max-width:none}
.finance-invoice-frame .fi-dashboard-board{padding:14px 30px 0}
.finance-invoice-frame .fi-dashboard-title{height:51px;position:relative;display:block}
.finance-invoice-frame .fi-dashboard-title h2{display:inline-block;vertical-align:middle;margin-left:9px}
.finance-invoice-frame .fi-dashboard-title>span{display:inline-block;vertical-align:middle;margin-left:13px;border:1px solid #2e6b80;border-radius:15px;background:linear-gradient(90deg,#04374b,#07313f);padding:5px 12px;font-size:10px;color:#8edcf1}
.finance-invoice-frame .fi-dashboard-title p{font-size:12px;line-height:19px;color:#b1c0c7;margin:2px 0 0 9px}
.finance-invoice-frame .fi-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;height:65px;margin-top:10px}
.finance-invoice-frame .fi-metric{display:flex;align-items:center;text-align:left;gap:22px;padding:9px 12px 9px 10px;border:1px solid #2b5362;border-radius:6px;background:linear-gradient(110deg,#06304488,#02243255);position:relative}
.finance-invoice-frame .fi-metric>i{display:grid;place-items:center;width:49px;height:49px;border-radius:50%;background:radial-gradient(circle,#147a962f,#12637e18);color:#7ccef0}
.finance-invoice-frame .fi-metric svg{width:33px;height:33px}
.finance-invoice-frame .fi-metric>span{font-size:12px;line-height:18px}
.finance-invoice-frame .fi-metric strong{display:block;font-size:24px;line-height:27px;font-weight:600;color:#edf5f7}
.finance-invoice-frame .fi-metric small{position:absolute;right:12px;top:24px;color:#9fdef5;font-size:9px;padding:4px 11px;border-radius:15px;background:#0a597039;white-space:nowrap}
.finance-invoice-frame .fi-tone-1{background:linear-gradient(110deg,#073b3d99,#032a2c88)}
.finance-invoice-frame .fi-tone-1>i{color:#9bdfd6;background:radial-gradient(circle,#38a49425,#195b5f0a)}
.finance-invoice-frame .fi-tone-1 small{color:#9de8d1;background:#08785522}
.finance-invoice-frame .fi-tone-2{border-color:#6b5b3e;background:linear-gradient(110deg,#58442d44,#23251e88)}
.finance-invoice-frame .fi-tone-2>i{color:#e6c177;background:radial-gradient(circle,#8d673326,transparent)}
.finance-invoice-frame .fi-tone-2 small{color:#f3d799;background:#80613c2f}
.finance-invoice-frame .fi-tone-3{border-color:#63434b;background:linear-gradient(110deg,#3a303c70,#201f2a99)}
.finance-invoice-frame .fi-tone-3>i{color:#f08f7b;background:radial-gradient(circle,#77474325,transparent)}
.finance-invoice-frame .fi-tone-3 small{color:#eaa491;background:#843f3f2e}
.finance-invoice-frame .fi-dash-grid{display:grid;grid-template-columns:878px 328px;grid-template-rows:266px 106px;gap:8px 14px;margin-top:9px}
.finance-invoice-frame .fi-panel{border:1px solid #204350;border-radius:8px;background:linear-gradient(110deg,#03232d99,#02212c55);min-width:0;padding:10px 12px}
.finance-invoice-frame .fi-panel h3{font-size:15px;font-weight:600;line-height:21px;color:#e1e8eb}
.finance-invoice-frame .fi-list{padding:9px 7px 7px}
.finance-invoice-frame .fi-list>header{display:flex;justify-content:space-between;align-items:center;padding:0 4px 0 6px;height:29px}
.finance-invoice-frame .fi-list-controls{display:flex;gap:8px;align-items:center}
.finance-invoice-frame .fi-list-controls>label{display:flex;align-items:center;height:30px;border:1px solid #2a4b5b;border-radius:5px;padding-left:9px;margin:0;background:#031d29}
.finance-invoice-frame .fi-list-controls svg{width:17px;height:17px;color:#8ca7b6}
.finance-invoice-frame .fi-list-controls input{width:257px;border:0;background:transparent;padding:6px;font-size:10px;height:28px;outline-offset:0}
.finance-invoice-frame .fi-list-controls input::placeholder{color:#a1aeb7;opacity:1}
.finance-invoice-frame select{padding:6px 8px;font-size:10px;height:28px}
.finance-invoice-frame .fi-direction{height:31px;display:flex;align-items:center;gap:2px;margin:1px 6px 0}
.finance-invoice-frame .fi-direction button{font-size:10px;min-width:85px;height:27px;background:#041e2a;border:1px solid #163544;border-radius:5px;padding:4px 12px}
.finance-invoice-frame .fi-direction button[aria-pressed=true]{background:linear-gradient(#15516a,#0c3548);border-color:#7cbed1;box-shadow:inset 0 -2px #f1d78e,0 2px 4px #e0b65d55;color:#f4f4de}
.finance-invoice-frame .fi-direction [data-fi-clear]{margin-left:auto;color:#ebd097}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5px;text-align:left;line-height:1.3;background:transparent;color:#d7e4e9}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table th{height:31px;padding:5px 10px;background:linear-gradient(100deg,#0d3444,#082a38);border:0;text-align:left;font-weight:400;font-size:10px;color:#bbd0dc;white-space:nowrap}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table td{height:31.4px;padding:4px 10px;border:0;border-bottom:1px solid #20414b66;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table th:nth-child(n+4):nth-child(-n+6),:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table td:nth-child(n+4):nth-child(-n+6){text-align:right;padding-right:12px}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table tbody tr[data-fi-row]{cursor:pointer}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-invoice-table tbody tr[data-fi-row]:hover{background:#0b394665}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-status{font-size:9px;border:1px solid #92713c88;border-radius:15px;padding:3px 8px;color:#ecd19a;background:linear-gradient(90deg,#5e4b2e60,#302e2466);white-space:nowrap}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-status.valid{background:#00544966;border-color:transparent;color:#99dcca}
:is(.finance-invoice-frame,.finance-invoice-reference,.finance-invoice-dialog) .fi-more{border:0;background:transparent;color:#b8d7e1;padding:0 6px;font-size:15px}
.finance-invoice-frame .fi-review{grid-column:2;grid-row:1/3;padding:9px 13px}
.finance-invoice-frame .fi-review h3{margin-bottom:1px}
.finance-invoice-frame .fi-checklist>button{display:flex;align-items:center;gap:14px;width:100%;height:43px;text-align:left;background:transparent;border:0;border-bottom:1px solid #34515c66;padding:4px 3px}
.finance-invoice-frame .fi-checklist>button>i{width:23px;height:23px;border-radius:50%;background:linear-gradient(140deg,#6df1b1,#01b464);color:#003e37;box-shadow:0 0 12px #25e39c44;display:grid;place-items:center;font:700 17px 'Segoe UI';font-style:normal;position:relative}
.finance-invoice-frame .fi-checklist>button>i svg{width:24px;height:24px}
.finance-invoice-frame .fi-checklist>button.check>i:after{content:'';position:absolute;inset:5px 0 -4px -3px;border:1px solid #1ce18c66;border-radius:3px;transform:rotate(24deg);z-index:-1}
.finance-invoice-frame .fi-checklist>button.warn>i{color:#685326;background:linear-gradient(#ffe5a0,#e9b953);box-shadow:0 0 8px #e9b95344}
.finance-invoice-frame .fi-checklist strong{display:block;font-size:11px;line-height:15px;font-weight:500;color:#dfe9ea}
.finance-invoice-frame .fi-checklist small{display:block;font-size:10px;line-height:14px;color:#99adb8;white-space:nowrap}
.finance-invoice-frame .fi-checklist b{margin-left:auto;font-size:22px;font-weight:300;color:#a8bcc7}
.finance-invoice-frame .fi-review h4{font-size:12px;font-weight:500;line-height:25px;margin:6px 0 3px}
.finance-invoice-frame .fi-issue{height:49px;width:100%;display:flex;align-items:center;gap:16px;padding:6px 11px;background:linear-gradient(90deg,#58482c55,#3b382a55);border:1px solid #69552e;border-radius:7px;text-align:left;margin:0 0 7px;box-shadow:inset 0 0 5px #c6a25a16}
.finance-invoice-frame .fi-issue>svg{width:25px;height:29px;color:#d6b366}
.finance-invoice-frame .fi-issue strong{display:block;font-size:10px;line-height:17px;color:#efd48d;font-weight:600}
.finance-invoice-frame .fi-issue small{display:block;font-size:9px;line-height:14px;color:#b4c2c7;white-space:nowrap}
.finance-invoice-frame .fi-issue b{margin-left:auto;font-size:21px;color:#bca573;font-weight:300}
.finance-invoice-frame .fi-progress{grid-column:1;grid-row:2;padding:6px 12px}
.finance-invoice-frame .fi-progress>header{display:flex;justify-content:space-between;align-items:center;height:25px}
.finance-invoice-frame .fi-progress h3{font-size:14px}
.finance-invoice-frame .fi-progress select{height:25px;font-size:9px}
.finance-invoice-frame .fi-progress-track{display:flex;position:relative;justify-content:space-around;margin:3px 22px 0 21px}
.finance-invoice-frame .fi-progress-track:before{content:'';position:absolute;top:16px;left:90px;right:90px;height:1px;background:linear-gradient(90deg,#48dbaa 30%,#d9c66d 63%,#345363 78%);pointer-events:none}
.finance-invoice-frame .fi-progress-track:after{content:'›　　　　　　　　　 ›';position:absolute;top:6px;left:35%;color:#e5c574;font:18px 'Segoe UI';letter-spacing:8px;pointer-events:none}
.finance-invoice-frame .fi-progress-step{display:flex;position:relative;flex-direction:column;align-items:center;gap:2px;background:transparent;border:0;width:170px;padding:0;z-index:1}
.finance-invoice-frame .fi-progress-step>i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #5cd6b2;color:#63d9ba;background:radial-gradient(#114d46,#04232c 70%);box-shadow:0 0 7px #40d9bd22}
.finance-invoice-frame .fi-progress-step svg{width:23px;height:23px}
.finance-invoice-frame .fi-progress-step strong{font-size:10px;font-weight:500;line-height:14px}
.finance-invoice-frame .fi-progress-step small{font-size:9px;line-height:12px;color:#8bd6c0}
.finance-invoice-frame .fi-progress-2>i{border-color:#e7bd63;color:#ead78c;background:radial-gradient(#5b4b25,#262819 70%);box-shadow:0 0 6px #e7ba6277}
.finance-invoice-frame .fi-progress-2 small{color:#dcc585}
.finance-invoice-frame .fi-progress-3>i{border-color:#5f7b8b;color:#abc4cf;background:#062330;box-shadow:0 0 9px #89bbce22}
.finance-invoice-frame .fi-progress-3 small{color:#ceba83}
.finance-invoice-frame .fi-period-empty .fi-progress-step>i{color:#8eabb3;border-color:#52727b;box-shadow:none}
.finance-invoice-frame .fi-period-empty .fi-progress-step small{color:#91a8b2}
.finance-invoice-frame .fi-dashboard-board>footer{display:flex;justify-content:space-between;font-size:9px;color:#91a4af;padding:8px 5px 0}
/* Native scene text is separate from the generated empty physical props. */
.finance-invoice-reference .fi-story-title{position:absolute;top:19px;left:0;right:0;text-align:center;display:block}
.finance-invoice-reference .fi-story-title p{font-size:18px;line-height:26px;color:#b2ced8;margin-top:4px}
.finance-invoice-reference .fi-step-cards{position:absolute;top:114px;left:17px;height:300px;display:grid;grid-template-columns:314px 271px 289px 346px;gap:7px}
.finance-invoice-reference .fi-step{position:relative;border:1px solid #23556577;border-radius:4px;background:linear-gradient(130deg,#06414d18,#0437452a 50%,#03263122)}
.finance-invoice-reference .fi-step-title{position:absolute;top:-15px;left:38px;width:240px;height:36px;display:flex;align-items:center;gap:20px;padding:4px 12px;border:1px solid #417080;border-radius:8px;background:linear-gradient(110deg,#0b303b,#032631);font-size:14px;color:#eee6d4;white-space:nowrap;z-index:3}
.finance-invoice-reference .fi-step-title b{display:grid;place-items:center;font-size:14px;font-weight:500;width:26px;height:26px;border-radius:50%;border:1px solid #8ac8d4;background:radial-gradient(circle at 40% 30%,#477a80,#0c3641);box-shadow:inset 0 0 4px #e7cf79;color:#fbefd3}
.finance-invoice-reference .fi-step-1 .fi-step-title{left:21px;width:231px}
.finance-invoice-reference .fi-step-2 .fi-step-title{left:30px;width:238px}
.finance-invoice-reference .fi-step-3 .fi-step-title{left:18px;width:327px}
.finance-invoice-reference .fi-flow{position:absolute;inset:0;width:1280px;height:558px;overflow:visible;pointer-events:none;z-index:1}
.finance-invoice-reference .fi-flow>path{fill:none;stroke-width:9;stroke-linecap:round}
.finance-invoice-reference .fi-flow>path.fi-flow-bloom{filter:url(#fi-flow-glow);stroke-width:15;opacity:.7}
.finance-invoice-reference .fi-flow>path.fi-arrow-head{stroke-width:1}
.finance-invoice-reference .fi-stack{position:absolute;width:255px;height:125px;left:20px;z-index:2}
.finance-invoice-reference .fi-stack-blue{top:146px}
.finance-invoice-reference .fi-stack-gold{top:264px}
.finance-invoice-reference .fi-stack .fi-prop{position:absolute;left:26px;top:-3px;width:211px;height:125px;overflow:hidden}
.finance-invoice-reference .fi-stack-gold .fi-prop{left:30px;width:205px}
.finance-invoice-reference .fi-paper{position:absolute;background:transparent;color:#0b354d;display:block}
.finance-invoice-reference .fi-stack .fi-paper{top:9px;left:128px;width:87px;height:103px;rotate:-7deg;padding:4px 7px}
.finance-invoice-reference .fi-paper>strong{display:block;text-align:center;font-size:8px;line-height:10px;font-weight:700;margin-bottom:7px;white-space:nowrap}
.finance-invoice-reference .fi-paper-lines{display:flex;flex-direction:column;gap:4px;width:100%}
.finance-invoice-reference .fi-paper-lines>i{display:block;height:3px;width:100%;background:#406d8a66}
.finance-invoice-reference .fi-paper-lines>i:nth-child(2n){width:78%}
.finance-invoice-reference .fi-paper-lines>i:nth-child(3n){width:92%;height:2px}
.finance-invoice-reference .fi-qr{width:25px;height:25px;float:right;margin-top:5px}
.finance-invoice-reference .fi-stack-tag{position:absolute;left:0;top:30px;width:96px;height:66px;border:1px solid #70c6e3;border-radius:6px;background:linear-gradient(135deg,#075372bb,#09313c99);box-shadow:inset 0 0 6px #99dcf155,0 0 9px #007fb933;color:#e6f4f5;font-size:12px;line-height:18px;padding:8px;text-align:center}
.finance-invoice-reference .fi-stack-gold .fi-stack-tag{background:linear-gradient(130deg,#52634c99,#15433599);border-color:#d3c38b;color:#e3efe9}
.finance-invoice-reference .fi-lens{position:absolute;left:307px;top:148px;width:232px;height:214px;z-index:2}
.finance-invoice-reference .fi-lens>.fi-prop{width:100%;height:100%}
.finance-invoice-reference .fi-lens-checks{position:absolute;left:93px;top:33px;width:86px;height:100px;padding:5px;background:transparent;border:0}
.finance-invoice-reference .fi-lens-checks>span{display:flex;align-items:center;gap:7px;margin:0 0 8px}
.finance-invoice-reference .fi-lens-checks b{font-size:12px;color:#dcfff5;background:linear-gradient(#68d9b4,#1f9d88);border:1px solid #d5fcf3;border-radius:4px;line-height:17px;width:17px;height:18px}
.finance-invoice-reference .fi-lens-checks span>i{display:block;width:45px;height:4px;background:#31667988;box-shadow:0 6px #31667955}
.finance-invoice-reference .fi-lens-checks em{position:absolute;right:-1px;bottom:12px;width:23px;height:23px;border-radius:50%;background:linear-gradient(#ffdf83,#d89b39);border:2px solid #f9e7b8;box-shadow:0 0 5px #dbb363;font:700 15px 'Segoe UI';font-style:normal;color:#fff2ce}
.finance-invoice-reference .fi-accountant{position:absolute;left:380px;top:313px;width:224px;height:108px;z-index:2}
.finance-invoice-reference .fi-accountant>.fi-prop{position:absolute;left:0;bottom:0;width:207px;height:120px}
.finance-invoice-reference .fi-person-paper{position:absolute;top:7px;left:115px;width:49px;height:74px;rotate:10deg;color:#864d30;padding:4px 3px}
.finance-invoice-reference .fi-person-paper>strong{display:block;font-size:4px;line-height:7px;white-space:nowrap}
.finance-invoice-reference .fi-person-paper .fi-paper-lines{gap:3px}
.finance-invoice-reference .fi-person-paper .fi-paper-lines>i{height:2px;background:#bf7c5166}
.finance-invoice-reference .fi-person-paper>i{display:block;float:right;text-align:center;margin:3px 0;width:14px;height:14px;border-radius:50%;background:#d56e41;font:700 10px 'Segoe UI';color:#ffe2b9}
.finance-invoice-reference .fi-accountant-note{position:absolute;left:177px;top:34px;width:100px;height:49px;padding:5px;border:1px solid #d3a45c;background:linear-gradient(110deg,#5e3d1a99,#291e17bb);border-radius:6px;color:#f8dda0;font-size:11px;line-height:16px;z-index:-1}
.finance-invoice-reference .fi-matching{position:absolute;left:624px;top:166px;width:264px;height:204px;z-index:2;display:flex;gap:12px}
.finance-invoice-reference .fi-match-doc{position:relative;width:80px;height:102px;flex-shrink:0;display:block;text-align:center;background:linear-gradient(110deg,#d6f1ff,#99bed8);border:3px double #296581;border-radius:8px;padding:7px 9px;color:#0b2e43;box-shadow:0 0 5px #74b8dc55,inset 0 0 6px #fff9}
.finance-invoice-reference .fi-match-doc>strong{display:block;font-size:9px;line-height:11px;color:#103144;margin-bottom:7px;white-space:nowrap}
.finance-invoice-reference .fi-match-doc .fi-paper-lines{gap:4px}
.finance-invoice-reference .fi-match-doc .fi-paper-lines>i{height:3px;background:#46758b66}
.finance-invoice-reference .fi-match-doc .fi-qr{width:23px;height:23px;margin-top:6px}
.finance-invoice-reference .fi-signature{display:block;font-size:25px;line-height:26px;color:#3a5b6f}
.finance-invoice-reference .fi-match-lines{position:absolute;left:-1px;top:99px;width:264px;height:85px;overflow:visible;fill:none;stroke:#59cfff;stroke-width:1.2;filter:drop-shadow(0 0 3px #58d3ff66)}
.finance-invoice-reference .fi-match-lines circle{fill:#07584f;stroke:#b9f7e6;stroke-width:2}
.finance-invoice-reference .fi-match-lines path:last-child{stroke:#fae6ac;stroke-width:3}
.finance-invoice-reference .fi-match-result{position:absolute;top:161px;left:67px;width:128px;height:38px;border:1px solid #73a89d;border-radius:7px;background:linear-gradient(#0e4640,#042d2d);font-size:12px;color:#e3f2dc}
.finance-invoice-reference .fi-period-folder{position:absolute;left:937px;top:177px;width:143px;height:196px;z-index:2}
.finance-invoice-reference .fi-folder-papers{position:absolute;left:10px;top:0;width:123px;height:126px}
.finance-invoice-reference .fi-folder-papers>span{position:absolute;left:calc(var(--i)*8px);top:calc(var(--i)*14px);width:92px;height:115px;background:linear-gradient(100deg,#e5f4ff,#8cbbd5);border:1px solid #e0f3ff;rotate:calc(-2deg + var(--i)*2deg);padding:13px 10px;box-shadow:0 0 7px #51b6dc33}
.finance-invoice-reference .fi-folder-papers>span:first-child:before{content:'HÓA ĐƠN ĐIỆN TỬ';font:500 5px 'Segoe UI';display:block;color:#47657c;margin:0 0 7px}
.finance-invoice-reference .fi-folder-front{position:absolute;left:0;bottom:0;width:142px;height:113px;display:block;padding:28px 25px 12px;text-align:left;background:linear-gradient(110deg,#0c789566,#07465d99);border:1px solid #b5e6f3;border-radius:5px 5px 12px 8px;box-shadow:inset 0 0 12px #60cef955,0 9px 15px #0aa2dd22;rotate:-3deg}
.finance-invoice-reference .fi-folder-front:before,.finance-invoice-reference .fi-folder-front:after{content:'';position:absolute;inset:-9px 7px 5px -7px;border:1px solid #94d8f0;border-radius:5px;background:#0c829523;z-index:-1}
.finance-invoice-reference .fi-folder-front:after{inset:-16px 12px 10px -12px;border-color:#417d9e}
.finance-invoice-reference .fi-folder-front strong{font-size:13px;font-weight:500;white-space:nowrap;display:block;line-height:20px;margin:0 0 7px}
.finance-invoice-reference .fi-folder-front>span{display:flex;gap:6px;align-items:center;font-size:16px;line-height:21px;color:#bfedfc}
.finance-invoice-reference .fi-folder-front>span i{width:69px;height:3px;background:#8cc7e666;box-shadow:0 5px #8cc7e644}
.finance-invoice-reference .fi-summary-paper{position:absolute;left:1117px;top:182px;width:140px;height:181px;z-index:2}
.finance-invoice-reference .fi-summary-paper>.fi-paper{inset:0 5px 0 0;border:2px solid #a7ddf1;border-radius:4px;background:linear-gradient(110deg,#d5f2ff,#98c7e3);box-shadow:0 0 12px #5ad3ff33;padding:12px 9px;rotate:-1.5deg}
.finance-invoice-reference .fi-summary-paper .fi-paper>strong{font-size:9px;line-height:13px;white-space:normal}
.finance-invoice-reference .fi-summary-paper .fi-paper-lines{gap:5px;margin-top:34px}
.finance-invoice-reference .fi-summary-paper .fi-paper-lines>i{height:3px;background:#648fab66}
.finance-invoice-reference .fi-summary-paper .fi-qr{display:none}
.finance-invoice-reference .fi-mini-table{position:absolute;top:52px;left:12px;width:109px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:3px}
.finance-invoice-reference .fi-mini-table>i{height:4px;background:#6c9fbb88}
.finance-invoice-reference .fi-mini-chart{position:absolute;bottom:22px;right:17px;display:flex;gap:4px;align-items:flex-end}
.finance-invoice-reference .fi-mini-chart>i{width:9px;background:linear-gradient(#548fb8,#7fb7d1)}
.finance-invoice-reference .fi-summary-status{position:absolute;bottom:-4px;left:-13px;width:155px;height:34px;display:flex;gap:6px;align-items:center;justify-content:center;padding:4px 3px;color:#f9e9bb;font-size:10px;white-space:nowrap;background:linear-gradient(110deg,#8e6a2c,#3a301b);border:1px solid #f3cb7e;border-radius:8px;box-shadow:0 0 10px #d0a54955}
.finance-invoice-reference .fi-summary-status svg{width:21px;height:21px}
.finance-invoice-reference .fi-benefits{position:absolute;left:22px;right:22px;top:420px;height:94px;border:1px solid #5f7f8588;border-radius:10px;display:grid;grid-template-columns:repeat(3,1fr);background:linear-gradient(100deg,#052b3544,#001e2b66)}
.finance-invoice-reference .fi-benefits>button{display:flex;align-items:center;gap:18px;background:transparent;border:0;padding:12px 18px;text-align:left;position:relative}
.finance-invoice-reference .fi-benefits>button+button:before{content:'';position:absolute;left:0;top:13px;bottom:14px;width:1px;background:#48616a}
.finance-invoice-reference .fi-benefits>button>i{display:grid;place-items:center;width:68px;height:68px;flex-shrink:0;background:linear-gradient(135deg,#2e5964,#0a303d 70%);border:1px solid #6a929c;border-radius:8px;box-shadow:inset 0 0 12px #a9d9d433;color:#f3dda0}
.finance-invoice-reference .fi-benefits>button>i svg{width:40px;height:40px;filter:drop-shadow(0 0 3px #e7cc8055)}
.finance-invoice-reference .fi-benefits>button>span{border-left:1px solid #8b9182;padding-left:18px;display:block;align-self:stretch}
.finance-invoice-reference .fi-benefits strong{display:block;font-size:14px;line-height:20px;font-weight:600;color:#f4dda4;margin:0 0 4px;white-space:nowrap}
.finance-invoice-reference .fi-benefits p{font-size:12px;line-height:19px;color:#c1d2d9}
/* Scoped modal deliberately avoids native dialog cancel/back interaction with the host. */
:is(.finance-invoice-frame,.finance-invoice-reference) .fi-modal-layer{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;background:#00101fd9;overflow:auto;backdrop-filter:blur(3px)}
.finance-invoice-dialog{position:relative;zoom:1;width:min(780px,94vw);height:auto;min-height:0;max-height:88vh;margin:auto;padding:20px 24px;overflow:auto;border:1px solid #57899b;border-radius:12px;background:linear-gradient(130deg,#0a3546,#041d2c);color:#deebef;font:14px/1.5 'Segoe UI',sans-serif;box-shadow:0 16px 60px #0008}
.finance-invoice-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 14px;padding:0;background:none;border:0}
.finance-invoice-dialog h3{font-size:20px;line-height:28px;color:#eedbb1;font-weight:600}
.finance-invoice-dialog>header>button{font-size:24px;background:transparent;border:0;padding:0 7px;color:#d5e8ef}
.finance-invoice-dialog p{font-size:13px;line-height:1.6;color:#c1d6df;margin:8px 0 12px}
.finance-invoice-dialog>footer{font-size:10px;line-height:16px;color:#92aebc;border-top:1px solid #365766;margin-top:20px;padding-top:10px}
.finance-invoice-dialog .fi-invoice-table{font-size:11px;margin-top:12px}
.finance-invoice-dialog .fi-invoice-table td{height:38px;padding:6px}
.finance-invoice-dialog .fi-invoice-table th{padding:6px;font-size:10px}
.finance-invoice-dialog .fi-dialog-tag{font-size:10px;letter-spacing:.8px;color:#91cadb}
.finance-invoice-dialog h4{font-size:18px;line-height:26px;margin:4px 0 12px;color:#e4edf0}
.finance-invoice-dialog dl{display:grid;grid-template-columns:180px 1fr;gap:7px 20px;margin:12px 0 18px;font-size:13px}
.finance-invoice-dialog dt{color:#9bbbc9}
.finance-invoice-dialog dd{margin:0;font-weight:500;color:#f0e7ce}
.finance-invoice-dialog label{display:block;font-size:13px;margin:10px 0;color:#c5dce4;padding:0}
.finance-invoice-dialog label>input:not([type=checkbox]){display:block;width:100%;padding:9px 10px;height:37px;font-size:13px;margin-top:5px}
.finance-invoice-dialog .fi-checkbox{display:flex;align-items:center;gap:9px;line-height:22px}
.finance-invoice-dialog input[type=checkbox]{width:17px;height:17px;appearance:auto;accent-color:#38bea0}
.finance-invoice-dialog .fi-primary{padding:10px 15px;background:#12594f;color:#e3fcf2;border:1px solid #68bba1;border-radius:6px;font-size:13px}
.finance-invoice-dialog .fi-process-detail{margin:12px 0;padding:0;list-style:none}
.finance-invoice-dialog .fi-process-detail li{display:flex;justify-content:space-between;font-size:14px;line-height:22px;padding:10px 0;border-bottom:1px solid #365766}
.finance-invoice-dialog .fi-process-detail li span{color:#b8c69d}
.finance-invoice-reference.fi-animating .fi-flow-bloom{animation:fi-invoice-flow 4s ease-in-out infinite}
:is(.finance-invoice-frame,.finance-invoice-reference) button:hover{filter:brightness(1.12)}
@keyframes fi-invoice-flow{0%,100%{opacity:.5}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.finance-invoice-reference.fi-animating .fi-flow-bloom{animation:none}}
/* Final alignment within the real host styles. */
.finance-invoice-frame select{width:auto;flex:none}
.finance-invoice-frame .fi-progress h3{white-space:nowrap;flex:none}
.finance-invoice-reference .fi-stack .fi-paper{left:119px;top:7px;width:68px;height:101px;rotate:7deg;padding:4px}
.finance-invoice-reference .fi-stack-gold .fi-paper{left:115px;top:7px;width:70px;rotate:7deg}
.finance-invoice-reference .fi-stack .fi-paper>strong{font-size:6.5px;line-height:9px;letter-spacing:-.15px;margin-bottom:6px}
.finance-invoice-reference .fi-stack .fi-qr{width:21px;height:21px;margin-top:5px}
.finance-invoice-reference .fi-lens{left:314px;top:148px;width:210px;height:215px}
.finance-invoice-reference .fi-lens-checks{left:87px;top:34px;width:86px;height:100px}
.finance-invoice-reference .fi-lens-checks>span{margin-bottom:7px}
.finance-invoice-reference .fi-lens-checks span>i{width:39px}
.finance-invoice-reference .fi-lens-checks em{right:-3px;bottom:2px}
.finance-invoice-reference .fi-benefits p{font-weight:400}
.finance-invoice-reference .fi-story-title p{font-weight:400}
.finance-invoice-dialog{max-height:min(88vh,100%)}

.finance-invoice-reference .fi-lens>.fi-prop-lens{position:absolute;left:44px;top:0;width:170px;height:170px}
.finance-invoice-reference .fi-lens-handle{position:absolute;inset:0;width:210px;height:215px;overflow:visible}
.finance-invoice-reference .fi-doc-check{position:absolute;right:5px;bottom:7px;width:25px;height:25px}
