:root{--ink:#142f38;--muted:#74858b;--line:#e4eaeb;--teal:#087e83;--teal-soft:#e5f4f2;--bg:#f4f7f7;--sidebar:#102a32;--amber:#a56c12;--red:#b94d4a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:var(--sidebar);color:#d5e0e2;padding:31px 20px;z-index:40;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;padding:0 8px;color:white;font-size:23px;font-weight:650;letter-spacing:1px}.brand small{display:block;font-size:9px;font-weight:400;letter-spacing:1.7px;color:#8fa7ad;margin-top:2px}.brand-logo{display:block;width:44px;height:auto;flex:none;border-radius:9px}.workspace-tag{margin:30px 4px 29px;padding:13px 8px;border-top:1px solid #28424a;border-bottom:1px solid #28424a;font-size:11px;display:flex;align-items:center;gap:7px}.workspace-tag>span:last-child{margin-left:auto;font-size:10px;color:#94aaaf}.status-dot{width:6px;height:6px;border-radius:100%;background:#56c5ae;display:inline-block}.nav-label{font-size:10px;letter-spacing:1.5px;color:#718f97;margin:0 15px 10px}.nav-item{display:flex;align-items:center;gap:12px;border-radius:7px;padding:12px 14px;color:#a6bdc3;margin-bottom:6px;font-size:13px}.nav-item:hover{background:#1b3840;color:#fff}.nav-item.active{background:#1e454c;color:#83dbcc}.nav-icon{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center}.nav-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7}.nav-count{margin-left:auto;background:#335960;border-radius:4px;padding:0 6px;font-size:11px;color:#d7ece9}.sidebar-bottom{margin-top:auto;padding:22px 10px 0;color:#8aa5ad}.sidebar-bottom .shield{font-size:33px;color:#51737b;margin-bottom:8px}.sidebar-bottom strong{font-size:11px;font-weight:500;color:#a9bec3}.sidebar-bottom p{font-size:10px;margin:5px 0 22px}.side-foot{font-size:11px;border-top:1px solid #29434b;padding-top:16px}.side-foot span{margin:0 15px}.app{margin-left:242px}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{display:flex;align-items:center;gap:13px;font-size:12px}.breadcrumb>span{color:var(--muted)}.breadcrumb i{font-style:normal;color:#bac6c9}.breadcrumb strong{font-weight:500}.top-actions{display:flex;align-items:center;gap:18px}.demo-badge{font-size:10px;color:#9a711e;border:1px solid #ebdbb7;background:#fffcf4;border-radius:4px;padding:3px 8px}.role-label{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center}.role-label select{border:0;background:transparent;color:var(--ink);font-size:12px;max-width:120px}.avatar{width:32px;height:32px;background:#e6efee;color:#23766d;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px}.mobile-menu{display:none}main{max-width:1510px;margin:auto;padding:31px 38px 20px}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:15px}.eyebrow{font-size:10px;color:#7f9297;letter-spacing:1.7px;margin-bottom:7px}.page-title h1{font-size:27px;font-weight:600;line-height:1.4;letter-spacing:-.5px;margin:0}.page-title p{margin:6px 0 0;font-size:12px;color:var(--muted)}.btn{border:1px solid var(--line);border-radius:6px;padding:9px 16px;background:white;color:var(--ink);font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:38px}.btn:hover{background:#f3f7f7}.btn.primary{background:var(--teal);color:white;border-color:var(--teal);box-shadow:0 3px 5px #077d8112}.btn.primary:hover{background:#076a70}.btn.danger{color:var(--red);border-color:#ebcfcd}.btn.small{min-height:30px;padding:4px 10px;font-size:11px}.icon-button{border:0;background:transparent;color:var(--ink);font-size:21px;padding:4px 7px}.notice{display:flex;align-items:flex-start;gap:11px;background:#edf4f4;border:1px solid #d9e8e7;padding:12px 15px;border-radius:7px;font-size:11px;color:#5d797e;margin-bottom:23px}.notice strong{color:#315e64;font-weight:500}.notice-icon{border:1px solid #80a7ac;border-radius:50%;width:15px;height:15px;flex:0 0 15px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;margin-top:2px}.notice.warning{background:#fffaf0;border-color:#efdfb9;color:#98742e}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.field-select,.search{border:1px solid var(--line);border-radius:6px;min-height:36px;background:#fff;color:#48616a;padding:7px 11px;font-size:12px}.search{width:245px}.date-label{font-size:11px;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px 21px;position:relative;overflow:hidden}.stat-head{font-size:12px;color:#698087;display:flex;justify-content:space-between;align-items:center}.stat-icon{width:29px;height:29px;background:#edf4f3;display:flex;align-items:center;justify-content:center;border-radius:7px;color:#378783}.stat-icon svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.7}.stat-value{font-size:32px;font-weight:600;letter-spacing:-1px;margin:8px 0 5px;line-height:1.25}.stat-value small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:7px}.stat-foot{font-size:10px;color:#8c9ba0}.stat.featured{background:#0d777c;border-color:#0d777c;color:white}.stat.featured .stat-head,.stat.featured .stat-foot,.stat.featured .stat-value small{color:#b6dcda}.stat.featured .stat-icon{background:#ffffff18;color:#d7f2ee}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;min-width:0;overflow:hidden;margin-bottom:22px}.panel-head{padding:20px 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head h2{font-size:14px;font-weight:600;margin:0}.panel-head h2 small{font-weight:400;font-size:10px;color:var(--muted);margin-left:9px}.text-link{border:0;background:none;color:var(--teal);font-size:11px;padding:4px;cursor:pointer}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{background:#f8fafb;font-size:10px;font-weight:400;color:#86969b;text-align:left;padding:11px 20px;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #eff2f3;color:#47616a}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfefe}.doc-name{display:block;color:#213e47;font-size:12px;font-weight:500;margin-bottom:4px}.doc-id{font-size:9px;color:#96a4a9;letter-spacing:.3px}.amount{font-variant-numeric:tabular-nums;color:#28444d;font-weight:600;letter-spacing:.1px}.amount small{font-size:10px;font-weight:400;color:#7e9298;margin-left:4px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:3px 8px;font-size:10px;background:#f0f3f4;color:#75898f;white-space:nowrap}.badge:before{content:"";width:4px;height:4px;background:currentColor;border-radius:100%}.badge.pending{background:#fff5df;color:#b17f24}.badge.approved{background:#eaf5f1;color:#378b70}.badge.paid{background:#eaf0fa;color:#567ab3}.badge.rejected{background:#fceeed;color:#bd6860}.badge.returned{background:#f3edf9;color:#8b70a3}.table-footer{padding:14px 22px;color:#91a0a5;font-size:10px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.empty{text-align:center;color:#84999f;padding:47px 20px;font-size:12px}.empty b{display:block;font-size:24px;color:#acc1c4;margin-bottom:8px}.quick-actions{padding:0 19px 10px}.quick-action{width:100%;display:flex;align-items:center;gap:12px;border:0;border-top:1px solid #eef2f3;background:#fff;text-align:left;padding:15px 2px}.quick-action:hover{background:#f9fcfc}.quick-action .quick-icon{width:34px;height:34px;border-radius:8px;background:#eaf5f2;color:#388478;display:flex;align-items:center;justify-content:center;font-size:17px}.quick-action:nth-child(2) .quick-icon{background:#eff2fa;color:#7286b1}.quick-action:nth-child(3) .quick-icon{background:#fbf3e9;color:#b68d55}.quick-action strong{font-size:12px;font-weight:500;display:block}.quick-action small{font-size:10px;color:#90a0a5;display:block;margin-top:2px}.quick-action>span:last-child{margin-left:auto;color:#a4b3b7}.currency-list{padding:0 22px 7px}.currency-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #f0f3f4;font-size:11px}.currency-label{color:#6f858c}.currency-label strong{font-weight:500;color:#284c55;margin-right:8px}.currency-row .amount{font-size:13px}.card-note{font-size:10px;color:#98a7ab;padding:8px 22px 18px}.company-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:0}.company-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:18px}.company-card .company-initial{width:30px;height:30px;border-radius:7px;background:#edf2f3;display:inline-flex;align-items:center;justify-content:center;color:#60818a;font-size:12px;margin-bottom:11px}.company-card h3{font-size:12px;font-weight:500;margin:0 0 5px}.company-card p{font-size:10px;color:#8a9ea4;margin:0}.company-card .company-stat{display:flex;justify-content:space-between;align-items:center;margin-top:17px;font-size:10px;color:#88a0a6}.company-card .company-stat strong{font-size:17px;font-weight:500;color:#375c65}footer{padding:14px 38px 23px;color:#9aa9ae;font-size:10px;text-align:center}.section-title{font-size:14px;font-weight:600;margin:25px 0 15px}.tabs{display:flex;gap:23px;padding:0 22px;border-bottom:1px solid var(--line);overflow:auto}.tab{padding:15px 0 12px;border:0;border-bottom:2px solid transparent;background:none;font-size:12px;color:#81949a;white-space:nowrap}.tab.active{border-color:var(--teal);color:var(--teal);font-weight:500}.content-pad{padding:22px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#58727a}.form-field.wide{grid-column:1/-1}.form-field input,.form-field select,.form-field textarea{width:100%;padding:10px 12px;border:1px solid #dce5e7;border-radius:6px;color:#284952;background:#fff;font-size:12px;min-height:41px}.form-field textarea{min-height:86px;resize:vertical}.form-field .hint{font-size:10px;color:#91a2a7;margin-top:-2px}.form-field>span b{color:#c37b6e;font-size:11px;margin-left:3px}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#198a8e;outline:2px solid #d9efeb}.form-divider{grid-column:1/-1;padding-top:11px;border-top:1px solid var(--line);font-weight:500;color:#355c65}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-error{color:#b94d4a;font-size:12px;margin-top:12px}.form-note{font-size:11px;color:#6c848a;padding:12px;background:#f3f7f8;border-radius:6px}.upload-box{border:1px dashed #b7ccce;border-radius:7px;padding:17px;background:#fafdfd}.upload-box input{border:0;background:transparent;padding:5px 0;min-height:unset}.file-list{font-size:11px;color:#7a949b;white-space:normal;overflow-wrap:anywhere}.currency-pill{display:inline-block;font-size:10px;color:#60878c;background:#eef6f5;padding:3px 7px;border-radius:4px;margin-right:5px}.muted{color:var(--muted)}.rule-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;font-size:12px}.rule-row:last-child{border:0}.rule-row p{margin:3px 0 0;font-size:11px;color:#83999f}.rule-row strong{font-weight:500}.timeline{padding:0 0 0 9px;list-style:none}.timeline li{position:relative;padding:0 0 21px 22px;border-left:1px solid #dbe7e6;font-size:12px}.timeline li:before{content:"";position:absolute;left:-4px;top:6px;width:7px;height:7px;background:#6bada2;border-radius:50%}.timeline small{display:block;font-size:10px;color:#91a5aa;margin:3px 0}.timeline p{margin:4px 0;color:#6c858d;font-size:11px;white-space:pre-wrap}.detail-header{padding:23px;background:#f5faf9;border-bottom:1px solid #e0ecea;display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.detail-header h2{font-size:19px;margin:5px 0 8px;font-weight:600}.detail-amount{font-size:25px;font-weight:600;white-space:nowrap}.detail-amount small{display:block;font-size:11px;font-weight:400;color:#8c9fa3;text-align:right}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px 25px;font-size:12px}.detail-item dt{font-size:10px;color:#90a3a9;margin-bottom:6px}.detail-item dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.detail-item.wide{grid-column:1/-1}.modal-top{display:flex;justify-content:space-between;align-items:center;padding:17px 22px;border-bottom:1px solid var(--line)}.modal-top h2{font-size:15px;font-weight:600;margin:0}dialog{border:0;padding:0;max-width:810px;width:calc(100% - 36px);max-height:90dvh;border-radius:12px;color:var(--ink);box-shadow:0 25px 120px #001e3340}dialog::backdrop{background:#0b253c66;backdrop-filter:blur(3px)}dialog .modal-body{padding:23px}dialog .modal-actions{padding:17px 23px;background:#f9fbfb;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}.detail-section{font-size:12px;margin:23px 0 13px;font-weight:600;padding-top:20px;border-top:1px solid var(--line)}.detail-section:first-child{margin-top:0}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:19px}.report-card{padding:21px 23px}.report-card h3{margin:0 0 5px;font-size:14px;font-weight:500}.report-card .report-total{font-size:28px;font-weight:600;margin:12px 0 17px}.bar-row{display:grid;grid-template-columns:80px 1fr 95px;gap:10px;align-items:center;font-size:11px;margin:13px 0}.bar-track{background:#f0f5f5;height:7px;border-radius:4px}.bar-fill{background:#75b4ac;height:7px;border-radius:4px}.bar-row>span:last-child{text-align:right;font-variant-numeric:tabular-nums}.check-row{display:flex;gap:9px;align-items:center;font-size:11px;color:#627f85;margin-top:15px}.check-row input{accent-color:var(--teal)}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%) translateY(80px);background:#143e42;color:#fff;padding:12px 22px;font-size:12px;border-radius:8px;box-shadow:0 5px 20px #163d4b30;transition:transform .25s;z-index:100;max-width:90vw;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0)}.scrim{display:none}.danger-text{color:var(--red)}.flow-line{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:11px;color:#5e7c84}.flow-step{background:#f1f7f6;border:1px solid #e0edeb;border-radius:5px;padding:7px 10px}.pill-label{font-size:10px;letter-spacing:1px;color:#91a6ac}.list-title{padding:0 22px 18px;color:#869da4;font-size:11px}.no-margin{margin:0}.mobile-only{display:none}.invoice-warning{color:#a87c25;font-size:10px;margin-top:4px}
@media(min-width:1600px){main{padding-top:42px}.stat{padding:24px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 325px}}
@media(max-width:1220px){.sidebar{width:215px;padding-inline:15px}.app{margin-left:215px}.topbar{padding:0 25px}main{padding:27px 25px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 270px;gap:17px}.stats-grid{gap:12px}.stat{padding:17px 15px}.stat-value{font-size:29px}td,th{padding-inline:15px}.brand{font-size:21px}.role-label{font-size:0}}
@media(max-width:1040px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.company-grid{gap:12px}.search{width:210px}.company-card{padding:14px}.stats-grid{gap:10px}.stat-head{font-size:11px}.stat-icon{width:24px;height:24px}.stat-foot{font-size:9px}.stat-value{font-size:28px}.report-grid{gap:14px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:242px}.sidebar.open{transform:translateX(0)}.scrim.open{display:block;position:fixed;inset:0;background:#0e26366b;z-index:30}.app{margin-left:0}.topbar{height:63px;padding:0 17px}.mobile-menu{display:block}.breadcrumb{gap:8px;font-size:11px}.breadcrumb>span,.breadcrumb i{display:none}.top-actions{gap:10px}.role-label select{font-size:11px;max-width:105px}.avatar{display:none}.demo-badge{font-size:9px;padding:2px 5px}main{padding:24px 17px 15px}.page-title{margin-bottom:21px;gap:8px}.page-title h1{font-size:23px}.page-title p{font-size:11px;max-width:235px}.eyebrow{font-size:9px}.page-title .btn{padding:8px 11px;font-size:11px}.notice{font-size:10px;padding:11px 12px;margin-bottom:19px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:19px}.stat{padding:16px}.stat-value{font-size:29px}.stat-foot{font-size:10px}.dashboard-aside{display:block}.company-grid{grid-template-columns:repeat(2,1fr)}.panel-head{padding:17px}.panel-head h2{font-size:13px}.table-footer{padding-inline:17px}.panel{margin-bottom:18px}.toolbar{gap:12px}.filters{gap:7px}.field-select,.search{font-size:11px;padding-inline:9px;min-height:36px}.search{width:100%;order:4}.filters:has(.search){width:100%}.date-label{font-size:10px}.dashboard-grid{gap:0}.company-card{padding:16px}.form-grid,.grid2,.report-grid{grid-template-columns:1fr}.form-field.wide{grid-column:auto}.form-divider{grid-column:auto}.content-pad{padding:17px}.detail-grid{gap:15px}.detail-header{padding:18px}.detail-header h2{font-size:16px}.detail-amount{font-size:20px}.modal-body{padding:18px!important}.modal-actions .btn{flex:1}.form-actions .btn{flex:1}.topbar .role-label{gap:0}.tabs{gap:19px;padding:0 17px}.list-title{padding-inline:17px}.report-card{padding:18px}.bar-row{grid-template-columns:72px 1fr 84px}footer{padding:12px 23px 25px;font-size:9px}#toast{left:50%;width:max-content;max-width:90vw}.mobile-only{display:initial}.rule-row{font-size:11px}.company-card .company-stat{margin-top:12px}.company-card .company-stat strong{font-size:16px}.detail-item.wide{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.approver-row{display:flex;align-items:center;gap:17px;padding:18px 0;border-bottom:1px solid var(--line)}.approver-row:last-child{border-bottom:0}.step-number{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;background:var(--teal-soft);color:var(--teal);border-radius:50%;font-size:13px;font-weight:600}.approver-content{flex:1;max-width:520px}.approver-content .check-row{margin-top:8px}.step-actions{display:flex;gap:8px;margin-left:auto}.copy-unread{font-size:9px;color:var(--teal);background:var(--teal-soft);padding:2px 5px;border-radius:3px;margin-left:5px}@media(max-width:760px){.approver-row{gap:10px;flex-wrap:wrap}.approver-content{flex:1;min-width:190px}.step-actions{padding-left:40px;width:100%;margin-left:0}.step-actions .btn{flex:1}.check-row{font-size:10px}}
.loading-state{display:flex;align-items:center;justify-content:center;min-height:100vh;color:#52717a}.nav-button{border:0;background:transparent;width:100%;text-align:left;font-family:inherit;cursor:pointer}.full{width:100%;margin-top:15px}.user-name{font-size:12px;color:#4c6f78}.auth-page{min-height:100dvh;display:flex;background:#f5f8f8}.auth-story{background:#102e36;width:47%;padding:50px 65px;color:#e5f2ef;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-brand{font-size:23px;display:flex;align-items:center;gap:13px;font-weight:600}.auth-story .eyebrow{color:#7da3aa;font-size:10px;letter-spacing:2px}.auth-story h1{font-size:49px;line-height:1.45;font-weight:500;letter-spacing:1px;margin:19px 0}.auth-story p{font-size:14px;line-height:2;color:#94b3ba}.auth-features{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.auth-features span{font-size:10px;border:1px solid #36545c;border-radius:4px;padding:6px 9px;color:#9fbdbf}.auth-story small{font-size:11px;color:#668d95;line-height:2}.auth-form-side{width:53%;display:flex;align-items:center;justify-content:center;padding:45px}.auth-card{width:100%;max-width:440px;padding:25px}.auth-page>.auth-card{margin:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:35px;max-width:600px}.auth-card h2{font-size:27px;font-weight:600;margin:10px 0}.auth-card h1{font-size:24px}.auth-card>p{font-size:12px;color:#82969c;margin-bottom:26px;line-height:1.8}.auth-card .form-field{margin-bottom:19px}.auth-card input{min-height:46px}.auth-card .btn{min-height:44px}.auth-divider{display:flex;align-items:center;gap:14px;font-size:10px;color:#93a7ad;margin:23px 0 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#e0e9e9;flex:1}.auth-fine{font-size:10px!important;color:#a0b0b5!important;margin:20px 0 0!important}.type-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.type-card .panel-head{border-bottom:1px solid var(--line)}.type-card .type-description{font-size:12px;min-height:35px}.type-card h4{font-size:12px;font-weight:500;margin:20px 0 10px}.grant-row{display:grid;grid-template-columns:1.1fr 1.1fr 1fr 1fr auto;gap:9px;align-items:end;padding:15px 0;border-bottom:1px solid var(--line);margin-bottom:10px}.grant-row input,.grant-row select{padding:8px;font-size:11px}.grant-row .form-field{min-width:0;font-size:10px}.company-checks{display:grid;grid-template-columns:1fr 1fr;gap:6px}.company-checks .check-row{margin-top:5px}.check-row.wide,.form-note.wide,.wide{grid-column:1/-1}.flow-config-row{display:flex;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.flow-person{flex:1}.flow-config-row .step-actions{margin-top:23px}.decision-box{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.auth-card .notice{font-size:11px}.type-card .flow-line{gap:6px}.type-card .flow-step{font-size:10px}
@media(max-width:1040px){.auth-story{padding:38px 36px}.auth-story h1{font-size:39px}.auth-form-side{padding:20px}.grant-row{grid-template-columns:1fr 1fr 80px}.grant-row .btn{align-self:end}.type-grid{gap:15px}}
@media(max-width:760px){.auth-page{display:block}.auth-story{width:100%;padding:25px 28px;min-height:unset;gap:25px}.auth-story>div{display:none}.auth-story>small{display:none}.auth-brand{font-size:21px}.auth-form-side{width:100%;padding:28px 12px;min-height:calc(100vh - 95px)}.auth-card{padding:18px;max-width:430px}.auth-card h2{font-size:25px}.auth-page>.auth-card{margin:30px 17px;width:calc(100% - 34px);padding:24px}.type-grid{grid-template-columns:1fr}.grant-row{grid-template-columns:1fr 1fr;gap:11px}.flow-config-row{flex-wrap:wrap}.flow-config-row .step-actions{width:100%;margin-top:0;padding-left:45px}.flow-config-row .step-actions .btn{flex:1}.company-checks{grid-template-columns:1fr}.user-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.type-card .flow-line{gap:5px}.type-card .flow-step{padding:6px 8px}.auth-fine{line-height:1.8!important}}

.attachment-status{margin:8px 0 0;font-size:12px}
[data-attachment-error]:empty{display:none}
.attachment-list{list-style:none;margin:8px 0 0;padding:0}
.attachment-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.attachment-name{min-width:0;overflow-wrap:anywhere;font-size:12px}
.attachment-name small{color:#58727a;white-space:nowrap}
.attachment-list button{flex-shrink:0}

.brand-wordmark{display:flex;flex-direction:column;gap:4px;line-height:1}
.brand-wordmark>strong{font-size:100%;font-weight:700}
.brand-wordmark>span{font-size:50%;font-weight:500;line-height:1.2}

.grant-row.legacy-grant{grid-template-columns:minmax(0,1fr) auto}

.company-role-panel{margin-top:20px}

.attachment-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:10px}
.attachment-card{min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.attachment-card:hover,.attachment-card:focus-visible{border-color:var(--teal);outline:2px solid var(--teal);outline-offset:2px}
.attachment-thumb{display:grid;place-items:center;aspect-ratio:4/3;background:#eff5f5;overflow:hidden}
.attachment-thumb img{width:100%;height:100%;object-fit:cover}
.attachment-document{font-size:13px;font-weight:700;color:var(--teal)}
.attachment-caption{display:block;padding:8px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#attachmentPreview{max-width:1080px}
#attachmentPreviewTitle{min-width:0;overflow-wrap:anywhere}
#attachmentPreviewContent{display:grid;place-items:center;min-height:100px;padding:12px;background:#eff5f5;text-align:center}
#attachmentPreviewContent img{display:block;max-width:100%;max-height:calc(90dvh - 115px);width:auto;height:auto;object-fit:contain}
#attachmentPreviewContent iframe{width:100%;height:calc(90dvh - 115px);border:0}

.payment-record{width:100%;min-width:0}

.route-preview{padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f7fafb;font-size:12px}
.route-preview h3{margin:0 0 8px;font-size:14px}
.route-preview-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px}
.route-preview ol{padding-left:20px;margin:5px 0 0}
.route-preview li{padding:2px 0;overflow-wrap:anywhere}
.route-preview p{margin:5px 0 0}
