:root{--nav:#071724;--nav-deep:#03101a;--nav-hover:#0e263a;--blue:#1476e8;--line:#e7ebf0;--text:#1f2937;--muted:#697586;--red:#d92d20;--orange:#f97316;--page:#f4f6f8;--white:#fff;--green:#0f9f6e;--shadow:0 12px 28px rgba(15,23,42,.12)}
*{box-sizing:border-box}body{margin:0;height:100vh;overflow:hidden;color:var(--text);font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px;background:var(--page)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.login-page{height:100vh;display:grid;place-items:center;background:#eef3f8}.login-card{width:380px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:30px}.login-card h1{margin:0 0 8px;font-size:24px}.login-card p{margin:0 0 24px;color:var(--muted)}.login-card label{display:grid;gap:8px;margin:14px 0}.login-card input{height:40px;border:1px solid #d8dce2;padding:0 12px}.login-card button{width:100%;height:40px;margin-top:12px;border:0;color:#fff;background:var(--blue)}
.platform{height:100vh;display:grid;grid-template-columns:220px 1fr;min-width:1180px;transition:grid-template-columns .18s ease}.platform.sidebar-collapsed{grid-template-columns:58px 1fr}.sidebar{background:var(--nav);color:#c8d7e6;overflow:hidden;box-shadow:inset -1px 0 0 rgba(255,255,255,.06)}.brand{height:56px;display:flex;align-items:center;gap:10px;padding:0 12px 0 16px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);white-space:nowrap}.brand-icon{font-size:18px;width:24px;text-align:center}.brand strong{font-size:18px;letter-spacing:0;min-width:0;overflow:hidden;text-overflow:ellipsis}.sidebar-collapse-button{margin-left:auto;width:28px;height:28px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#dce9f6;font-size:20px;line-height:1}.sidebar-collapse-button:hover{background:rgba(255,255,255,.12);color:#fff}
.menu-section{border-bottom:1px solid rgba(255,255,255,.04)}.menu-title,.submenu button{width:100%;min-height:44px;border:0;color:inherit;background:transparent;display:grid;grid-template-columns:24px 1fr 16px;align-items:center;gap:10px;text-align:left;padding:0 16px}.menu-title{font-weight:600;color:#eef6ff}.menu-title:hover,.submenu button:hover{background:var(--nav-hover)}.menu-arrow{transition:transform .16s ease}.menu-section:not(.open) .menu-arrow{transform:rotate(180deg)}.menu-section:not(.open) .submenu{display:none}.submenu{background:var(--nav-deep);padding:4px 0}.submenu button{grid-template-columns:18px 1fr;padding-left:44px;color:#dce9f6;font-weight:400}.submenu button.active{background:var(--blue);color:#fff}
.sidebar-collapsed .brand{justify-content:center;padding:0}.sidebar-collapsed .brand strong,.sidebar-collapsed .menu-text,.sidebar-collapsed .menu-arrow,.sidebar-collapsed .submenu{display:none}.sidebar-collapsed .sidebar-collapse-button{display:none}.sidebar-collapsed .menu-title{grid-template-columns:1fr;justify-items:center;padding:0}.sidebar-collapsed .menu-icon{width:100%;text-align:center}
.workspace{min-width:0;display:grid;grid-template-rows:52px 38px 1fr;background:var(--page)}.topbar{background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 20px}.icon-button{width:34px;height:34px;border:1px solid transparent;background:transparent;font-size:18px;color:#334155}.icon-button:hover{border-color:#d8dee7;background:#f7f9fb}.topbar-right{display:flex;align-items:center;gap:22px;color:#394150;font-size:13px}.topbar-right button{border:0;background:transparent;color:var(--blue)}
.tabs{height:38px;background:#fff;border-bottom:1px solid var(--line);display:flex}.tab{min-width:118px;height:38px;border:0;border-right:1px solid var(--line);background:#fff;color:#344054;padding:0 14px}.tab.active{color:var(--blue);background:#eef6ff;border-bottom:2px solid var(--blue)}
.page{min-height:0;overflow:auto;padding:14px 18px 0;background:#fff}.filters{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px 24px;padding:4px 0 14px}.field{display:grid;grid-template-columns:80px 1fr;align-items:center;gap:8px}.field label{text-align:right;color:#4b5565;font-size:13px}.control{height:32px;width:100%;border:1px solid #cfd6df;background:#fff;padding:0 10px}.control:focus,input:focus,select:focus,textarea:focus{outline:2px solid rgba(20,118,232,.16);border-color:var(--blue)}.control[disabled]{background:#f7f8fa;color:#8b95a1}.date-range{height:32px;border:1px solid #cfd6df;display:grid;grid-template-columns:1fr 22px 1fr;padding:0 8px;background:#fff}.date-range input{border:0;outline:0;min-width:0}.date-range span{align-self:center;text-align:center;color:#98a2b3}
.summary{min-height:38px;border:1px solid #b9ddff;background:#f0f8ff;display:flex;align-items:center;gap:18px;padding:0 14px;margin-bottom:12px;color:#344054}.summary .info{color:var(--blue);font-weight:700}.summary strong{color:var(--orange);padding:0 2px}.action-row{display:flex;align-items:center;justify-content:space-between;min-height:38px;margin-bottom:10px}.selection{color:var(--muted)}.actions{display:flex;gap:8px;align-items:center}.primary-button,.plain-button,.text-button{height:34px;border:1px solid #cfd6df;background:#fff;padding:0 14px;color:#344054}.primary-button{color:#fff;background:var(--blue);border-color:var(--blue)}.plain-button:hover,.text-button:hover{border-color:var(--blue);color:var(--blue);background:#f4f9ff}.danger-button{color:#fff;background:var(--red);border-color:var(--red)}
.table-wrap{overflow:auto;height:calc(100vh - 260px);border:1px solid var(--line);background:#fff}table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:1540px;width:1540px;background:#fff}th,td{border-bottom:1px solid #edf1f5;padding:10px 12px;vertical-align:middle;text-align:left;line-height:1.35}th{position:sticky;top:0;z-index:2;height:44px;background:#f8fafc;color:#475467;font-weight:600;resize:horizontal;overflow:hidden;white-space:nowrap}td{height:62px;color:#1f2937;overflow:hidden;text-overflow:ellipsis}tbody tr:nth-child(even){background:#fcfdff}tbody tr:hover{background:#f5f9ff}.check-cell{width:44px;text-align:center}.checkbox{width:16px;height:16px;border:1px solid #c8d0da;appearance:none;background:#fff;vertical-align:middle}.checkbox:checked{border-color:var(--blue);background:var(--blue);box-shadow:inset 0 0 0 3px #fff}.center{text-align:center}.amount{text-align:right;font-variant-numeric:tabular-nums}.muted{color:#98a2b3}.danger{color:var(--red)}.success{color:var(--green)}.action-cell{position:sticky;right:0;z-index:3;width:154px;background:inherit;box-shadow:-8px 0 18px rgba(15,23,42,.06);text-align:center}thead .action-cell{background:#f8fafc;z-index:4}.row-actions{display:inline-flex;gap:10px;white-space:nowrap}.row-actions button{border:0;padding:0;color:#126bd6;background:transparent}.row-actions button:hover{color:#0b55b6;text-decoration:underline}
#invoiceTable th:nth-child(2),#invoiceTable td:nth-child(2){width:78px}#invoiceTable th:nth-child(3),#invoiceTable td:nth-child(3){width:132px}#invoiceTable th:nth-child(4),#invoiceTable td:nth-child(4){width:210px}#invoiceTable th:nth-child(5),#invoiceTable td:nth-child(5){width:180px}#invoiceTable th:nth-child(6),#invoiceTable td:nth-child(6){width:128px}#invoiceTable th:nth-child(7),#invoiceTable td:nth-child(7){width:180px}#invoiceTable th:nth-child(8),#invoiceTable td:nth-child(8){width:100px}#invoiceTable th:nth-child(9),#invoiceTable td:nth-child(9){width:90px}#invoiceTable th:nth-child(10),#invoiceTable td:nth-child(10){width:92px}#invoiceTable th:nth-child(11),#invoiceTable td:nth-child(11){width:82px}#invoiceTable th:nth-child(12),#invoiceTable td:nth-child(12){width:190px}
.panel{background:#fff;border:1px solid var(--line);padding:16px}.cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin-bottom:16px}.card{background:#fff;border:1px solid var(--line);padding:18px}.card span{color:var(--muted)}.card strong{display:block;margin-top:10px;font-size:26px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.form-grid label{display:grid;gap:7px;color:var(--muted)}.form-grid input,.form-grid select,.form-grid textarea{min-height:36px;border:1px solid #d8dce2;padding:6px 10px}.modal-root{position:fixed;inset:0;z-index:30;background:rgba(0,21,41,.46);display:grid;place-items:center;padding:20px}.modal{width:min(820px,94vw);max-height:86vh;overflow:auto;background:#fff;box-shadow:var(--shadow)}.modal header{height:54px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-body{padding:18px}.toast{position:fixed;right:24px;bottom:24px;z-index:40;min-width:220px;padding:12px 16px;color:#fff;background:rgba(0,21,41,.92);box-shadow:var(--shadow)}
.report-grid{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:14px}.report-grid .panel{min-height:220px}.report-grid h3{margin:0 0 12px}.report-grid p{display:flex;justify-content:space-between;gap:12px;margin:8px 0;color:#263445}.text-button{display:inline-flex;align-items:center;margin:0 6px 6px 0;text-decoration:none}
@media(max-width:1280px){.platform{min-width:0}.filters{grid-template-columns:repeat(2,minmax(280px,1fr))}.actions{flex-wrap:wrap;justify-content:flex-end}.table-wrap{height:calc(100vh - 330px)}}
@media(max-width:820px){body{overflow:auto}.platform,.platform.sidebar-collapsed{display:block;min-width:0}.sidebar{height:auto}.sidebar-collapsed .brand strong,.sidebar-collapsed .menu-text,.sidebar-collapsed .menu-arrow{display:inline}.sidebar-collapsed .submenu{display:block}.workspace{display:block}.topbar,.topbar-right,.action-row{align-items:flex-start;flex-direction:column;height:auto;gap:10px;padding:12px}.filters,.form-grid,.cards,.report-grid{grid-template-columns:1fr}.field{grid-template-columns:72px 1fr}.page{padding:12px}.table-wrap{height:60vh}.tabs{overflow:auto}.tab{min-width:100px}}

/* Ledger polish */
body{font-size:13px;color:#182230;background:#f6f8fb}.page{background:#f6f8fb;padding:12px 16px}.filters,.summary,.action-row,.table-wrap{background:#fff}.filters{border:1px solid #e5eaf0;border-bottom:0;padding:12px 14px 10px}.summary{border-color:#d6e7fb;background:#f7fbff;margin-bottom:10px}.action-row{border-left:1px solid #e5eaf0;border-right:1px solid #e5eaf0;margin-bottom:0;padding:8px 14px}.table-wrap{height:calc(100vh - 244px);border-color:#e5eaf0;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.primary-button,.plain-button,.text-button{height:30px;padding:0 12px;font-size:13px;border-color:#d7dee8}.primary-button{background:#1677ff;border-color:#1677ff}.danger-button{background:#fff;color:#c5221f;border-color:#f1b6b4}.danger-button:hover{background:#fff5f5;border-color:#e5484d;color:#b42318}
table{min-width:1480px;width:1480px;font-size:13px}th,td{padding:0 10px;border-bottom:1px solid #edf1f5}th{height:40px;background:#f8fafc;color:#344054;font-weight:600;resize:none;overflow:hidden}td{height:48px;line-height:1.25;color:#101828;white-space:nowrap}tbody tr:nth-child(even){background:#fbfcfe}tbody tr:hover{background:#f3f8ff}.check-cell{width:42px}.checkbox{width:14px;height:14px;border-color:#cbd5e1}.amount{font-weight:600;color:#101828}.mono{font-family:"Microsoft YaHei UI","DIN Alternate","Consolas",monospace;font-variant-numeric:tabular-nums}.date-cell{color:#344054}.strong-cell{font-weight:500}.muted-text{color:#667085}
.tag{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:22px;padding:0 8px;border:1px solid transparent;font-size:12px;line-height:20px;white-space:nowrap}.green-tag{color:#067647;background:#ecfdf3;border-color:#abefc6}.blue-tag{color:#175cd3;background:#eff8ff;border-color:#b2ddff}.gray-tag{color:#475467;background:#f2f4f7;border-color:#eaecf0}.danger-tag{color:#b42318;background:#fef3f2;border-color:#fecdca}
.action-cell{width:168px;background:#fff!important;box-shadow:-1px 0 0 #edf1f5;text-align:left}thead .action-cell{background:#f8fafc!important}.row-actions{gap:0}.row-actions button{height:26px;padding:0 6px;color:#175cd3;font-size:13px}.row-actions button+button{margin-left:4px}.row-actions button:hover{background:#eff8ff;text-decoration:none}.row-actions .action-delete{color:#b42318}.row-actions .action-delete:hover{background:#fef3f2}
#invoiceTable th:nth-child(2),#invoiceTable td:nth-child(2){width:72px}#invoiceTable th:nth-child(3),#invoiceTable td:nth-child(3){width:146px}#invoiceTable th:nth-child(4),#invoiceTable td:nth-child(4){width:260px}#invoiceTable th:nth-child(5),#invoiceTable td:nth-child(5){width:190px}#invoiceTable th:nth-child(6),#invoiceTable td:nth-child(6){width:130px}#invoiceTable th:nth-child(7),#invoiceTable td:nth-child(7){width:188px}#invoiceTable th:nth-child(8),#invoiceTable td:nth-child(8){width:96px}#invoiceTable th:nth-child(9),#invoiceTable td:nth-child(9){width:82px}#invoiceTable th:nth-child(10),#invoiceTable td:nth-child(10){width:90px}#invoiceTable th:nth-child(11),#invoiceTable td:nth-child(11){width:82px}#invoiceTable th:nth-child(12),#invoiceTable td:nth-child(12){width:162px}

/* Product shell polish */
:root{--surface:#fff;--soft:#f7f9fc;--ink:#172033;--sub:#667085;--brand:#1463e9;--brand-soft:#edf5ff;--border:#e5eaf0}
.workspace{background:#f5f7fb}.topbar{height:56px;padding:0 18px;background:rgba(255,255,255,.96);backdrop-filter:saturate(140%) blur(8px)}.tabs{height:42px;background:#f7f9fc}.tab{height:42px;font-weight:600}.topbar-right{gap:14px}.company-switch{height:34px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);background:#fff;padding:0 8px;color:#667085}.company-switch span{font-size:12px}.company-switch select{height:28px;min-width:220px;border:0;background:transparent;color:#172033;font-weight:600;outline:0}
.page{background:#f5f7fb;padding:16px}.dashboard-hero{min-height:132px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;margin-bottom:16px;color:#fff;background:linear-gradient(135deg,#11345f,#1463e9 62%,#21a1ff);box-shadow:0 14px 32px rgba(20,99,233,.18)}.dashboard-hero h1{margin:6px 0 8px;font-size:28px;letter-spacing:0}.dashboard-hero p{margin:0;color:rgba(255,255,255,.82)}.eyebrow{font-size:12px;letter-spacing:.08em;color:rgba(255,255,255,.72)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions .primary-button{background:#fff;color:#135bd8;border-color:#fff;font-weight:600}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin-bottom:16px}.metric-card{background:#fff;border:1px solid var(--border);padding:18px 18px 16px;box-shadow:0 1px 2px rgba(16,24,40,.04)}.metric-card span{color:#667085}.metric-card strong{display:block;margin:10px 0 6px;font-size:24px;color:#172033}.metric-card em{font-style:normal;color:#98a2b3;font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:minmax(520px,1.35fr) minmax(320px,.65fr);gap:14px}.work-panel,.setting-panel{background:#fff;border:1px solid var(--border);box-shadow:0 1px 2px rgba(16,24,40,.04)}.work-panel header,.setting-panel header{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border)}.work-panel header span,.setting-panel header span{color:#98a2b3}.compact-table{min-width:0;width:100%;table-layout:fixed}.compact-table th,.compact-table td{height:42px}.compact-table th{position:static}.empty-cell,.empty-copy{color:#98a2b3;text-align:center;padding:24px}
.month-bars{padding:14px 16px 18px;display:grid;gap:12px}.month-bars div{display:grid;grid-template-columns:72px 1fr 104px;align-items:center;gap:10px}.month-bars span{color:#667085}.month-bars i{height:8px;background:linear-gradient(90deg,#1463e9,#53b4ff);width:var(--w);min-width:4px}.month-bars b{text-align:right;font-weight:600;color:#172033}
.settings-layout{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:14px}.company-list{padding:12px;display:grid;gap:10px}.company-list button{min-height:64px;text-align:left;border:1px solid var(--border);background:#fff;padding:10px 12px}.company-list button.active{border-color:#1463e9;background:#f2f7ff}.company-list strong{display:block;color:#172033}.company-list span{display:block;margin-top:6px;color:#98a2b3}.setting-list{padding:10px 16px}.setting-list p{height:42px;display:flex;align-items:center;justify-content:space-between;margin:0;border-bottom:1px solid #f0f2f5}.setting-list p:last-child{border-bottom:0}.setting-list b{color:#172033}.setting-list span{color:#667085}
.company-card{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:1px solid var(--border);background:#fff}.company-card.active{border-color:#1463e9;background:#f2f7ff}.company-card>button{border:0;background:transparent}.company-card>div{display:flex;gap:4px;padding-right:8px}.company-card .text-button{height:28px;padding:0 8px}
.empty-state{background:#fff;border:1px solid var(--border);padding:32px}.empty-state h2{margin:0 0 10px}.empty-state p{margin:0;color:#667085}
@media(max-width:1180px){.metric-grid,.settings-layout{grid-template-columns:repeat(2,minmax(220px,1fr))}.dashboard-grid{grid-template-columns:1fr}.company-switch select{min-width:160px}}

/* Final UI polish */
html,body,#app{width:100%;height:100%;min-height:0}
body{overflow:hidden;background:#eef2f7;color:#111827}
.platform{height:100vh;min-height:0;background:#eef2f7}.workspace{grid-template-rows:56px 42px minmax(0,1fr);min-height:0}.page{min-height:0;overflow:auto;padding:18px 20px 28px;background:#eef2f7;scrollbar-gutter:stable}.page>*{max-width:100%}
.sidebar{display:flex;flex-direction:column;min-height:0;background:#0b1726}.brand{height:56px;flex:0 0 56px}#sideNav{min-height:0;overflow:auto;scrollbar-width:thin}.topbar{box-shadow:0 1px 0 rgba(16,24,40,.06)}.tab.active{background:#fff;color:#1457d9;border-bottom-color:#1457d9}
.invoice-workspace{display:grid;gap:12px;min-height:100%}.invoice-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:96px;padding:18px 22px;background:#fff;border:1px solid #dfe5ee;box-shadow:0 1px 2px rgba(16,24,40,.04)}.invoice-hero h2{margin:4px 0 6px;font-size:22px;line-height:1.2;color:#101828}.invoice-hero p{margin:0;color:#667085}.invoice-hero .eyebrow{color:#1457d9;letter-spacing:0;font-weight:700}.red-hero{border-color:#f0d4d2;background:linear-gradient(0deg,#fff,#fff7f6)}
.invoice-create-layout{display:grid;grid-template-columns:minmax(520px,1fr) 360px;gap:12px;align-items:start}.invoice-form-panel,.invoice-side-panel{min-height:0}.friendly-form input,.friendly-form select,.friendly-form textarea{border-color:#cfd8e3;background:#fff}.friendly-form textarea{resize:vertical}.form-footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:6px}.checklist{display:grid;gap:0;padding:8px 16px 14px}.checklist p{display:grid;gap:4px;margin:0;padding:14px 0;border-bottom:1px solid #edf1f5}.checklist p:last-child{border-bottom:0}.checklist b{color:#101828}.checklist span{color:#667085;font-size:13px}
.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:8px}.workflow-steps span{height:38px;display:flex;align-items:center;padding:0 12px;background:#fff;border:1px solid #e6eaf0;color:#344054;font-weight:600}
.filters{grid-template-columns:repeat(4,minmax(210px,1fr));border:1px solid #dfe5ee;border-bottom:0;box-shadow:0 1px 2px rgba(16,24,40,.03)}.summary{min-height:42px;flex-wrap:wrap;border-color:#d8e7fb;background:#f8fbff}.action-row{min-height:46px;border-color:#dfe5ee;box-shadow:0 1px 2px rgba(16,24,40,.03)}.actions{flex-wrap:wrap;justify-content:flex-end}
.table-wrap{height:auto;min-height:360px;max-height:none;overflow:auto;border-color:#dfe5ee;box-shadow:0 1px 2px rgba(16,24,40,.04)}.invoice-workspace .table-wrap{height:clamp(380px,calc(100vh - 365px),720px)}table{min-width:1420px;width:100%;background:#fff}th{height:42px;background:#f8fafc;color:#344054}td{height:48px;color:#101828}.action-cell{min-width:170px}
.modal-root{display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:28px 18px;background:rgba(11,23,38,.52)}.modal{width:min(880px,96vw);max-height:calc(100vh - 56px);overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.8);box-shadow:0 24px 60px rgba(15,23,42,.28)}.modal-wide{width:min(1040px,96vw)}.modal header{flex:0 0 56px}.modal-body{min-height:0;overflow:auto;padding:18px 20px}.modal-footer{flex:0 0 auto;display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #e5eaf0;background:#fff}
.detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.detail-stat{min-width:0;border:1px solid #e5eaf0;background:#f8fafc;padding:12px}.detail-stat span{display:block;color:#667085;font-size:12px}.detail-stat strong{display:block;margin-top:8px;color:#101828;font-size:17px;line-height:1.25;overflow-wrap:anywhere}.detail-section{border:1px solid #e5eaf0;background:#fff}.detail-section p{display:grid;grid-template-columns:120px 1fr;gap:14px;margin:0;padding:12px 14px;border-bottom:1px solid #eef2f6}.detail-section p:last-child{border-bottom:0}.detail-section b{color:#344054}.detail-section span{min-width:0;color:#101828;overflow-wrap:anywhere}.detail-upload{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-top:12px;padding:12px;border:1px dashed #b7c4d5;background:#f8fafc}.detail-upload span{color:#667085}
.settings-layout{align-items:start}.company-list{max-height:calc(100vh - 210px);overflow:auto}.company-card{grid-template-columns:minmax(0,1fr) auto;border-color:#dfe5ee}.company-card>button{min-width:0}.company-card>div{display:flex;flex-wrap:wrap;justify-content:flex-end}.danger-link{color:#b42318!important;border-color:#f1b6b4!important}.danger-link:hover{background:#fef3f2!important;color:#b42318!important}
.company-card>button{min-height:64px}.company-card>div button{min-height:32px!important;height:32px;margin:0}.company-card>div{gap:6px;padding-right:10px}.filters .field:nth-child(7){grid-column:span 2}.date-range input{font-size:12px}
#invoiceTable{min-width:1620px;width:1620px;table-layout:fixed}#invoiceTable th,#invoiceTable td{overflow:hidden;text-overflow:ellipsis}#invoiceTable .tag{min-width:72px;padding:0 10px}#invoiceTable th:nth-child(2),#invoiceTable td:nth-child(2){width:82px}#invoiceTable th:nth-child(3),#invoiceTable td:nth-child(3){width:145px}#invoiceTable th:nth-child(4),#invoiceTable td:nth-child(4){width:210px}#invoiceTable th:nth-child(5),#invoiceTable td:nth-child(5){width:150px}#invoiceTable th:nth-child(6),#invoiceTable td:nth-child(6){width:115px}#invoiceTable th:nth-child(7),#invoiceTable td:nth-child(7){width:155px}#invoiceTable th:nth-child(8),#invoiceTable td:nth-child(8){width:110px}#invoiceTable th:nth-child(9),#invoiceTable td:nth-child(9){width:100px}#invoiceTable th:nth-child(10),#invoiceTable td:nth-child(10){width:110px}#invoiceTable th:nth-child(11),#invoiceTable td:nth-child(11){width:96px}#invoiceTable th:nth-child(12),#invoiceTable td:nth-child(12){width:140px}#invoiceTable th:nth-child(13),#invoiceTable td:nth-child(13){width:160px}
@media(max-width:1180px){.invoice-create-layout{grid-template-columns:1fr}.workflow-steps{grid-template-columns:repeat(2,minmax(140px,1fr))}.filters{grid-template-columns:repeat(2,minmax(220px,1fr))}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-workspace .table-wrap{height:520px}}
@media(max-width:820px){body{overflow:auto}.platform{height:auto;min-height:100vh}.page{overflow:visible;padding:12px}.invoice-hero{align-items:flex-start;flex-direction:column}.workflow-steps,.filters,.form-grid,.detail-grid{grid-template-columns:1fr}.detail-section p{grid-template-columns:1fr}.company-switch{width:100%}.company-switch select{min-width:0;width:100%}.table-wrap,.invoice-workspace .table-wrap{height:60vh}.modal-root{padding:12px}.modal{max-height:calc(100vh - 24px)}}
