:root{--workspace-bg:#f3f5ef;--sidebar-bg:#123b34;--card-bg:#fff;--text-main:#18332d;--text-muted:#697973;--text-subtle:#72817c;--primary:#1d5b4d;--brand-accent:#d5efa9;--sidebar-text:#bdd0ca;--sidebar-active:#ffffff14;--card-border:#e0e6de;--tag-text:#477165;--tag-bg:#e3ecde;color:#1d2733;font-synthesis:none;background:#f3f6f8;font-family:Inter,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}a{color:inherit}.app-shell{min-height:100vh}.workspace-shell{color:var(--text-main);background:var(--workspace-bg);grid-template-columns:280px minmax(0,1fr);display:grid}.app-header{color:#fff;background:#16324f;justify-content:space-between;align-items:center;gap:2rem;padding:1.5rem clamp(1.25rem,5vw,5rem);display:flex}.workspace-shell .app-header{color:#fff;background:var(--sidebar-bg);flex-direction:column;justify-content:flex-start;align-items:stretch;gap:26px;width:280px;height:100vh;padding:28px 18px;display:flex;position:sticky;top:0}.app-brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{width:40px;height:40px;color:var(--sidebar-bg);background:var(--brand-accent);border-radius:12px;flex:0 0 40px;place-items:center;font-weight:800;display:grid}.print-route .brand-mark{display:none}.app-header h1,.status-card h2{margin:0}.workspace-shell .app-header h1{letter-spacing:-.02em;white-space:nowrap;font-size:1.18rem}.app-header nav a{border-radius:.5rem;padding:.55rem .9rem;text-decoration:none}.workspace-shell .app-header nav a{width:100%;color:var(--sidebar-text);border-radius:9px;padding:12px 14px;font-weight:650}.workspace-shell .app-header nav a:hover{color:#fff;background:#ffffff0d}.app-header nav a.active{background:#ffffff24}.workspace-shell .app-header nav a.active{color:#fff;background:var(--sidebar-active)}.app-header nav{align-items:center;gap:.35rem;display:flex}.workspace-shell .app-header nav{flex-direction:column;align-items:stretch;gap:5px;width:100%;display:flex}.sidebar-user{display:none}.workspace-shell .sidebar-user{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:18px;display:flex}.sidebar-user-details{align-items:center;gap:10px;min-width:0;display:flex}.sidebar-user-details>div{gap:2px;min-width:0;display:grid}.sidebar-user-details strong{color:#fff;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.sidebar-user-details span:not(.user-avatar){color:var(--sidebar-text);font-size:.75rem}.user-avatar{width:38px;height:38px;color:var(--sidebar-bg);background:var(--brand-accent);border-radius:50%;flex:0 0 38px;place-items:center;font-weight:800;display:grid}button,.button-link{cursor:pointer;font:inherit;border:0}button{color:#fff;background:#245f8d;border-radius:.55rem;padding:.65rem 1rem}button:disabled,.button-link.disabled{cursor:not-allowed;opacity:.5}.nav-button{background:0 0}.workspace-shell .header-logout{display:none}.workspace-shell .sidebar-logout{color:var(--sidebar-text);background:0 0;padding:8px}.workspace-shell .sidebar-logout:hover{color:#fff;background:#ffffff14}.sidebar-user-actions{align-items:center;gap:4px;display:flex}.workspace-shell .sidebar-icon-button{width:40px;height:40px;color:var(--sidebar-text);background:0 0;border-radius:6px;place-items:center;padding:9px;display:grid}.workspace-shell .sidebar-icon-button:hover,.workspace-shell .sidebar-icon-button.active{color:#fff;background:#ffffff17}.sidebar-icon-button svg{fill:currentColor;width:22px;height:22px}.sidebar-icon-button .settings-gear-icon{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round}.eyebrow{color:#3c78a8;letter-spacing:.12em;margin:0 0 .35rem;font-size:.75rem;font-weight:700}.app-header .eyebrow{color:#9fc7e8}.workspace-shell .app-header .eyebrow{color:var(--brand-accent);letter-spacing:.16em}.workspace-shell main .eyebrow{color:var(--primary)}.standalone-main,.print-route>main{width:min(1100px,100% - 2rem);margin:4rem auto}.workspace-shell>main{width:auto;min-width:0;margin:0;padding:28px clamp(24px,3vw,48px)}.status-card{background:#fff;border:1px solid #dce5eb;border-radius:1rem;padding:clamp(1.5rem,4vw,3rem);box-shadow:0 18px 55px #16324f14}.workspace-shell .status-card{border-color:var(--card-border);background:var(--card-bg);border-radius:8px;padding:18px 20px;box-shadow:0 10px 30px #26443a08}.workspace-shell .status-card h2,.workspace-shell .status-card h3{color:var(--text-main)}.status-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin:2rem 0;display:grid}.payment-summary-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:1.5rem 0}.payment-record-tabs{margin-top:6px}.payment-record-filter-bar,.category-summary-filter-bar{margin:12px 0}.category-summary-filter-bar label{max-width:320px}.category-summary-strip{border:1px solid var(--card-border);color:var(--text-subtle);background:#f7f8f4;flex-wrap:wrap;gap:10px 28px;margin:6px 0 12px;padding:9px 12px;font-size:.86rem;display:flex}.category-summary-strip strong{color:var(--text-main)}.category-summary-table th:nth-child(n+2),.category-summary-table td:nth-child(n+2){text-align:right}.category-summary-table{table-layout:auto;width:max-content;min-width:100%}.category-summary-table th,.category-summary-table td{white-space:nowrap;min-width:150px}.category-summary-table th:first-child{z-index:2;text-align:left;background:#f7f8f4;min-width:120px;position:sticky;left:0}.category-summary-table thead th:first-child{z-index:3}.category-summary-table td strong,.category-summary-table th strong,.category-summary-table td small,.category-summary-table th small{display:block}.category-summary-table td small,.category-summary-table th small{color:var(--text-subtle);margin-top:2px;font-weight:400}.category-summary-table tfoot th{border-top:2px solid var(--card-border);color:var(--text-main);background:#f7f8f4}.status-grid div{background:#f5f8fa;border-radius:.75rem;padding:1rem}.workspace-shell .status-grid div{border:1px solid var(--card-border);background:#f7f8f4}.status-grid dt{color:#627180;margin-bottom:.35rem;font-size:.8rem}.workspace-shell .status-grid dt{color:var(--text-subtle)}.status-grid dd{margin:0;font-weight:650}.payment-stat-button{border:1px solid var(--card-border);min-height:76px;color:var(--text-main);text-align:left;background:#f7f8f4;border-radius:8px;align-content:center;gap:.35rem;padding:.85rem 1rem;display:grid}.payment-stat-button span{color:var(--text-subtle);font-size:.8rem}.payment-stat-button strong{white-space:nowrap;font-weight:700}.payment-stat-button:hover{border-color:var(--primary)}.payment-stat-button.is-selected{border-color:var(--primary);background:var(--tag-bg);box-shadow:inset 0 0 0 1px var(--primary)}.table-section-heading{justify-content:space-between;align-items:center;gap:1rem;margin:0 0 .75rem;display:flex}.table-section-heading h3{margin:0;font-size:1rem}.compact-button{padding:.4rem .7rem}.status-ok{color:#197044}.status-warning{color:#9a5b00;font-weight:650}.error-message{background:#fff4f4;border-left:4px solid #b83a3a;gap:.4rem;margin:1.5rem 0;padding:1rem;display:grid}.workspace-shell .error-message{border-radius:10px}.hint{color:#627180;margin:2rem 0 0}.workspace-shell .hint{color:var(--text-muted)}.button-link{color:#fff;background:#245f8d;border-radius:.55rem;margin-top:1rem;padding:.65rem 1rem;text-decoration:none;display:inline-block}.workspace-shell button,.workspace-shell .button-link{color:#fff;background:var(--primary);border-radius:6px;padding:9px 13px;font-weight:800}.workspace-shell button:hover:not(:disabled),.workspace-shell .button-link:hover:not(.disabled){filter:brightness(1.06)}.login-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;display:grid}.form-card{gap:1rem;display:grid}.form-card.narrow{width:min(580px,100%);margin:0 auto}label{color:#4b5d6c;gap:.4rem;font-size:.9rem;font-weight:650;display:grid}.workspace-shell label{color:var(--text-main)}input,select,textarea{color:#1d2733;min-width:0;font:inherit;background:#fff;border:1px solid #becbd5;border-radius:.5rem;padding:.7rem .8rem}.workspace-shell input,.workspace-shell select,.workspace-shell textarea{color:var(--text-main);border-color:#c9d3ca;border-radius:5px}.workspace-shell input:focus,.workspace-shell select:focus,.workspace-shell textarea:focus,.workspace-shell button:focus-visible,.workspace-shell a:focus-visible{outline-offset:2px;outline:3px solid #1d5b4d38}.field-error{color:#a83232;font-size:.78rem;font-weight:650}.field-hint{color:var(--text-muted);margin-top:.25rem;font-size:.75rem;font-weight:500;display:block}.shell-message{margin:0 0 1rem}textarea{resize:vertical;min-height:5rem}.tag-list{flex-wrap:wrap;gap:.5rem;padding:0;list-style:none;display:flex}.tag-list li{color:#174e38;background:#e7f6ee;border-radius:999px;padding:.4rem .65rem}.workspace-shell .tag-list li{color:var(--tag-text);background:var(--tag-bg)}.admin-stack{gap:1.5rem;display:grid}.workspace-shell .admin-stack{gap:10px}.page-summary{color:var(--text-subtle);margin:5px 0 0;font-size:.88rem;font-weight:400}.section-meta{color:var(--text-subtle);white-space:nowrap;font-size:.82rem}.management-tabs{border-bottom:1px solid var(--card-border);gap:18px;margin-top:14px;display:flex}.settings-console{gap:12px;display:grid}.settings-console-heading{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.settings-module-tabs{background:var(--tag-bg);border-radius:7px;flex:none;gap:4px;padding:4px;display:flex}.workspace-shell .settings-module-tabs a{color:var(--text-muted);border-radius:5px;padding:9px 16px;font-size:.88rem;font-weight:700;text-decoration:none}.workspace-shell .settings-module-tabs a:hover,.workspace-shell .settings-module-tabs a.active{color:var(--primary);background:#fff;box-shadow:0 1px 3px #123b341a}.workspace-shell .management-tabs button{color:var(--text-main);background:0 0;border-bottom:2px solid #0000;border-radius:0;padding:9px 2px}.workspace-shell .management-tabs button.active{border-bottom-color:var(--primary);color:var(--primary);font-weight:800}.management-toolbar{grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:10px;margin:16px 0 12px;display:grid}.recycle-toolbar{grid-template-columns:minmax(320px,560px)}.recycle-table td{vertical-align:middle}.recycle-table td:first-child{overflow-wrap:anywhere;max-width:360px}.role-permission-panel{gap:14px;margin-top:16px;display:grid}.role-permission-note{border-left:3px solid var(--primary);color:var(--text-muted);background:#eef6f1;border-radius:5px;gap:3px;padding:12px 14px;font-size:.84rem;display:grid}.role-permission-note strong{color:var(--text-main)}.role-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.role-definition-card{border:1px solid var(--card-border);background:#fff;border-radius:7px;padding:16px}.role-definition-card h3{margin:11px 0 4px;font-size:1rem}.role-definition-card p{color:var(--text-subtle);margin:0;font-size:.82rem}.role-definition-card ul{color:var(--text-muted);gap:5px;margin:12px 0 0;padding-left:20px;font-size:.84rem;display:grid}.role-assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.role-assignment-card{border:1px solid var(--card-border);background:#fff;border-radius:7px;align-content:start;gap:12px;padding:14px;display:grid}.role-assignment-heading>div,.role-assignment-list span{gap:2px;display:grid}.role-assignment-heading span,.role-assignment-list small{color:var(--text-subtle);font-size:.76rem}.role-assignment-add{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.role-assignment-list{gap:7px;display:grid}.role-assignment-list>div{background:#f8faf7;border:1px solid #e5ebe6;border-radius:5px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.role-assignment-list .empty-state{margin:0;padding:12px}.danger-quiet{color:#a63e38;background:#fff1ef;padding:.45rem .7rem}.user-row-actions{flex-wrap:wrap;gap:6px;display:flex}.user-row-actions button{white-space:nowrap;padding:.48rem .68rem}.user-delete-modal{gap:20px;width:min(480px,100%);padding:22px;display:grid;box-shadow:0 24px 70px #123b343d}.user-delete-modal h2,.user-delete-modal p{margin-top:0}.user-delete-modal .actions{justify-content:flex-end}.permission-matrix-wrap td:not(:first-child),.permission-matrix-wrap th:not(:first-child){text-align:center}.role-boundary-hint{color:var(--text-subtle);margin:-4px 0 0;font-size:.78rem}.management-toolbar .switch-row{border:1px solid var(--card-border);white-space:nowrap;background:#f7f8f4;border-radius:5px;min-height:40px;padding:0 10px}.management-create-panel{border:1px solid var(--card-border);background:#f7f8f4;border-radius:6px;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto auto;align-items:end;gap:10px;margin-bottom:12px;padding:12px;display:grid}.management-create-panel>div{gap:2px;display:grid}.management-create-panel span,.cell-note,.text-muted{color:var(--text-subtle);font-size:.78rem}.unified-user-table td{vertical-align:middle}.unified-user-table td:first-child{min-width:180px}.cell-note{text-overflow:ellipsis;white-space:nowrap;max-width:220px;margin-top:2px;display:block;overflow:hidden}.identity-badge{white-space:nowrap;border-radius:999px;padding:3px 7px;font-size:.76rem;font-weight:700;display:inline-flex}.identity-badge.platform{color:#295b75;background:#e7f0f5}.identity-badge.local{color:var(--tag-text);background:var(--tag-bg)}.workspace-shell .status-toggle{color:#fff;padding:5px 8px;font-size:.78rem}.workspace-shell .status-toggle.active{background:var(--primary)}.workspace-shell .status-toggle.inactive{background:#8a4242}.role-picker{min-width:150px;position:relative}.role-picker summary{cursor:pointer;color:var(--primary);font-size:.82rem;font-weight:700}.role-picker[open]{z-index:5}.role-picker label{white-space:nowrap;align-items:center;gap:7px;margin-top:7px;font-size:.78rem;display:flex}.role-picker input{width:15px;height:15px}.fixed-role-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.fixed-role-grid article{border:1px solid var(--card-border);background:#f7f8f4;border-radius:6px;padding:14px}.fixed-role-grid h3,.fixed-role-grid p{margin:5px 0}.fixed-role-note{grid-column:1/-1}.user-empty-actions{justify-items:center;gap:10px;padding:10px 0;display:grid}.user-empty-actions>div{gap:8px;display:flex}.applications-workbench{min-height:calc(100vh - 150px)}.workspace-shell .applications-workbench{padding:24px 28px}.applications-heading{min-height:42px}.applications-heading>div:first-child{align-items:baseline;gap:12px;display:flex}.applications-heading h2{font-size:1.45rem;line-height:1.35}.record-count{color:var(--text-muted);font-size:.9rem}.application-filters{grid-template-columns:repeat(2,minmax(150px,.85fr)) minmax(180px,1.1fr) minmax(170px,1fr) minmax(120px,.7fr) auto;gap:14px 12px;margin:20px 0 18px;display:grid}.application-filters label{gap:7px;min-width:0;font-size:.88rem}.application-filters input,.application-filters select{min-height:44px;padding:10px 12px}.application-filters .filter-reset{white-space:nowrap;align-self:end;min-height:44px}.application-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 16px}.application-summary-grid div{border-radius:6px;justify-content:space-between;align-items:baseline;gap:8px;min-height:44px;padding:10px 13px;display:flex}.application-summary-grid dt{margin:0}.application-summary-grid dd{font-size:1rem}.application-toolbar{border:1px solid var(--card-border);background:#f7f8f4;justify-content:flex-end;align-items:center;min-height:50px;margin:0 0 16px;padding:10px 14px}.application-toolbar>span{color:var(--text-muted);margin-right:auto;font-size:.9rem}.applications-table{table-layout:fixed;min-width:900px}.applications-table th:first-child,.applications-table td:first-child{text-align:center;width:82px}.application-select-all{cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:7px;display:inline-flex}.application-select-all:has(input:disabled){cursor:default}.applications-table th:nth-child(2){width:190px}.applications-table th:nth-child(3){width:120px}.applications-table th:nth-child(5){width:150px}.applications-table th:nth-child(6){width:110px}.applications-table th:last-child{width:90px}.applications-table th{padding:13px 14px;font-size:.86rem;line-height:1.4}.applications-table td{vertical-align:middle;padding:15px 14px;font-size:.94rem;line-height:1.5}.applications-table input[type=checkbox]{width:17px;height:17px}.status-text{font-weight:700}.application-status-pending{color:#8a5a12}.application-status-paid{color:#17664d}.application-status-void{color:#7c8581}.application-create-modal{width:min(760px,100%);padding:18px 20px!important}.application-create-form{grid-template-columns:150px minmax(300px,1fr) 150px;margin-top:16px}.modal-actions{border-top:1px solid var(--card-border);justify-content:flex-end;padding-top:12px}.application-drawer-backdrop{z-index:100;background:#123b3461;justify-content:flex-end;display:flex;position:fixed;inset:0}.application-detail-drawer{border-left:1px solid var(--card-border);background:#fff;flex-direction:column;width:min(960px,100% - 80px);height:100%;display:flex;box-shadow:-18px 0 50px #123b342e}.application-drawer-heading{border-bottom:1px solid var(--card-border);flex:none;padding:16px 20px}.application-drawer-heading h2,.application-drawer-heading p{margin:0}.application-drawer-heading p{color:var(--text-muted);margin-top:4px;font-size:.84rem}.application-drawer-heading strong{color:var(--primary);font-size:1.1rem}.application-drawer-body{min-height:0;padding:16px 20px 24px;overflow-y:auto}.application-drawer-body .action-panel{border-radius:4px;margin-top:16px}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#123b347a;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow-y:auto}.workspace-shell .expense-item-modal{width:min(1120px,100%);max-height:calc(100vh - 48px);overflow-y:auto;box-shadow:0 24px 70px #123b343d}.modal-heading{border-bottom:1px solid var(--card-border);padding-bottom:16px}.workspace-shell .modal-close{flex:none}.section-heading,.inline-form,.switch-row,.actions{align-items:center;gap:.75rem;display:flex}.section-heading{justify-content:space-between}.switch-row{grid-template-columns:auto 1fr}.switch-row input{width:1rem;height:1rem}.inline-form{margin:1.5rem 0}.inline-form label{flex:1}.secret-once{background:#fff9eb;border:1px solid #e7b85b;border-radius:.75rem;gap:.5rem;margin:1rem 0;padding:1rem;display:grid}.secret-once code{overflow-wrap:anywhere;font-size:1rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #e3eaef;padding:.75rem}th{color:#627180;font-size:.8rem}.workspace-shell th{color:var(--text-subtle);background:#f7f8f4}.workspace-shell th,.workspace-shell td{border-bottom-color:var(--card-border);padding:9px 10px}button.secondary{color:#245f8d;background:#e9f1f7}.workspace-shell button.secondary,.workspace-shell .secondary-link{color:var(--primary);background:var(--tag-bg)}button.danger,.workspace-shell button.danger{color:#fff;background:#a83232}.business-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem;display:grid}.wide-field{grid-column:1/-1}.toolbar{flex-wrap:wrap;gap:.75rem;margin:1.25rem 0;display:flex}.filter-bar{flex-wrap:wrap;align-items:end;gap:.75rem;margin:1rem 0;display:flex}.filter-bar label{flex:1;min-width:150px}.pagination{justify-content:center;align-items:center;gap:1rem;margin-top:1.25rem;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.attachment-modal-backdrop{z-index:120;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0f2a2594}.workspace-shell .attachment-modal{border-radius:12px;flex-direction:column;width:min(1080px,100% - 24px);height:min(820px,100vh - 12px);max-height:calc(100vh - 12px);display:flex;overflow:hidden;box-shadow:0 28px 80px #0a231e52;padding:0!important}.attachment-modal-heading{background:linear-gradient(135deg,#fff 0%,#f5f8f3 100%);flex:none;padding:14px 18px}.attachment-modal-heading .eyebrow{color:var(--primary);letter-spacing:.16em;margin-bottom:3px;font-size:.7rem}.attachment-modal-heading h2{margin:0;font-size:1.2rem}.attachment-heading-actions{flex:none;align-items:center;gap:8px;display:flex}.attachment-title-meta{flex-wrap:wrap;gap:6px;margin-top:5px;display:flex}.attachment-title-meta span{border:1px solid var(--card-border);color:var(--text-muted);background:#fff;border-radius:999px;padding:3px 8px;font-size:.76rem;font-weight:650}.attachment-modal-body{background:#f4f6f1;flex-direction:column;flex:auto;gap:9px;min-height:0;padding:10px 14px 14px;display:flex;overflow:hidden}.attachment-preview-mode{border:1px solid var(--card-border);background:#fff;border-radius:8px;flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.attachment-preview-backdrop{z-index:140;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0a262194;place-items:center;padding:34px;display:grid;position:fixed;inset:0}.attachment-preview-dialog{border-color:#ffffff59;width:min(1120px,100vw - 68px);height:min(900px,100vh - 68px);box-shadow:0 28px 80px #08231e5c}.attachment-preview-actions{flex:none;align-items:center;gap:8px;display:flex}.workspace-shell .attachment-delete-heading{color:#a83232;background:#fff0f0}.attachment-action-backdrop{z-index:150;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0a262194;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.workspace-shell .attachment-delete-dialog{width:min(520px,100%);padding:24px;box-shadow:0 28px 80px #08231e5c}.attachment-delete-dialog h3{margin:0 0 8px}.attachment-delete-dialog textarea{resize:vertical;width:100%;min-height:100px;margin-top:6px}.attachment-delete-dialog .actions{justify-content:flex-end;margin-top:16px}.attachment-preview-toolbar{border-bottom:1px solid var(--card-border);flex:none;justify-content:space-between;align-items:center;gap:18px;padding:11px 14px;display:flex}.attachment-preview-toolbar>div{gap:2px;min-width:0;display:grid}.attachment-preview-toolbar strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;overflow:hidden}.attachment-preview-toolbar span{color:var(--text-subtle);font-size:.75rem}.attachment-preview-stage{background:linear-gradient(45deg,#ffffff38 25%,#0000 25%) 0 0/18px 18px,linear-gradient(-45deg,#ffffff38 25%,#0000 25%) 0 9px/18px 18px,#dfe5df;flex:auto;place-items:center;min-height:0;padding:18px;display:grid;overflow:auto}.attachment-preview-stage img{object-fit:contain;filter:drop-shadow(0 8px 22px #17302829);width:100%;height:100%;display:block}.attachment-preview-error{color:var(--text-subtle);text-align:center;justify-items:center;gap:5px;display:grid}.attachment-preview-error strong{color:var(--text-main)}.attachment-upload-bar{border:1px solid var(--card-border);background:#fff;border-radius:7px;flex:none;grid-template-columns:minmax(190px,auto) minmax(260px,1fr) auto;align-items:center;gap:12px;padding:8px 10px;display:grid}.attachment-upload-copy{gap:2px;display:grid}.attachment-upload-copy strong{font-size:.9rem}.attachment-upload-copy span{color:var(--text-subtle);font-size:.75rem}.attachment-file-field,.attachment-file-field input{width:100%}.attachment-file-field input{color:var(--text-muted);background:#fafbf8;padding:5px;font-size:.82rem}.attachment-file-field input::file-selector-button{color:var(--primary);font:inherit;cursor:pointer;background:#e5eee8;border:0;border-radius:4px;margin-right:10px;padding:7px 12px;font-weight:750}.attachment-readonly-notice,.attachment-notice{color:var(--text-muted);background:#f8fbf7;border:1px solid #d8e3d8;border-radius:6px;flex:none;margin:0;padding:9px 12px;font-size:.82rem}.attachment-layout{border:1px solid var(--card-border);background:#fff;border-radius:8px;flex:auto;grid-template-columns:280px minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.attachment-sidebar{border-right:1px solid var(--card-border);background:#fafbf8;min-width:0;padding:12px 10px;overflow-y:auto}.attachment-sidebar .attachment-upload-bar{border:0;border-bottom:1px solid var(--card-border);background:0 0;border-radius:0;grid-template-columns:1fr;gap:7px;margin:0 4px 12px;padding:0 0 12px}.attachment-sidebar .attachment-upload-bar button{width:100%}.attachment-sidebar .attachment-readonly-notice,.attachment-sidebar .attachment-notice{margin:0 4px 10px}.attachment-subheading{justify-content:space-between;align-items:center;gap:12px;padding:0 4px 12px;display:flex}.attachment-subheading>div{gap:2px;display:grid}.attachment-subheading span{font-weight:800}.attachment-subheading small{color:var(--text-subtle);font-size:.72rem}.attachment-subheading>strong{min-width:26px;height:26px;color:var(--primary);background:#e5eee8;border-radius:999px;place-items:center;font-size:.76rem;display:grid}.attachment-list{gap:7px;margin:0;padding:0;list-style:none;display:grid}.attachment-list li{border:1px solid var(--card-border);background:#fff;border-radius:6px;transition:border-color .12s,box-shadow .12s,transform .12s;overflow:hidden}.attachment-list li:hover{border-color:#aabeb2;transform:translateY(-1px)}.workspace-shell .attachment-list li.selected{border-color:var(--primary);box-shadow:0 0 0 2px #1d5b4d1a}.attachment-select{width:100%;color:var(--text-main);text-align:left;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;display:grid;background:0 0!important}.attachment-file-icon{width:38px;height:42px;color:var(--primary);text-transform:uppercase;background:#edf3ee;border-radius:5px;place-items:center;font-size:.62rem;font-weight:850;display:grid}.attachment-file-copy{gap:3px;min-width:0;display:grid}.attachment-file-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;overflow:hidden}.attachment-file-copy small{color:var(--text-subtle);font-size:.7rem}.attachment-status{color:#17664d;white-space:nowrap;background:#e7f2eb;border-radius:999px;padding:2px 6px;font-size:.67rem;font-weight:750}.attachment-status--removed{color:#737b77;background:#ecefed}.attachment-empty-state{min-height:150px;color:var(--text-subtle);text-align:center;place-content:center;gap:4px;display:grid}.attachment-empty-state strong{color:var(--text-muted)}.attachment-detail{flex-direction:column;min-width:0;min-height:0;padding:12px 16px 0;display:flex;position:relative;overflow:hidden}.attachment-detail-heading{justify-content:space-between;align-items:start;gap:20px;margin-bottom:8px;display:flex}.attachment-detail-heading h3,.attachment-detail-heading p{margin:0}.attachment-detail-heading h3{font-size:1rem}.attachment-detail-heading p{color:var(--text-subtle);margin-top:3px;font-size:.76rem}.attachment-preview-link{color:var(--primary);white-space:nowrap;border:0;padding:0;font-size:.8rem;font-weight:800;background:0 0!important}.attachment-writeback-guide{color:var(--text-muted);background:#f4f8f3;border:1px solid #d8e4db;border-radius:6px;flex-wrap:wrap;align-items:center;gap:5px 7px;margin-bottom:8px;padding:7px 9px;font-size:.72rem;display:flex}.attachment-writeback-guide strong{color:var(--primary);margin-right:2px}.attachment-writeback-guide span+span:before{color:#9aa9a1;content:"·";margin-right:7px}.attachment-field-groups{gap:7px;display:grid}.attachment-field-group{border:1px solid var(--card-border);background:#fff;border-radius:6px;min-width:0;margin:0;padding:7px 10px 9px}.attachment-field-group legend{color:var(--text-main);padding:0 7px;font-size:.84rem;font-weight:850}.attachment-field-group>p{display:none}.attachment-field-group .business-form{gap:6px 9px;margin:0}.attachment-field-group label{color:var(--text-muted);gap:3px;font-size:.75rem}.attachment-field-group input{padding:6px 8px;font-size:.82rem}.attachment-field-group input:disabled{color:#5e6863;background:#f4f6f2}.compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}.attachment-actions{border-top:1px solid var(--card-border);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#fffffff5;justify-content:flex-end;gap:8px;margin:9px -16px 0;padding:9px 16px 11px;display:flex;box-shadow:0 -8px 18px #1a3a2f0d}.attachment-actions>*{text-align:center;justify-content:center;align-items:center;width:116px;min-height:40px;padding-left:10px;padding-right:10px;display:inline-flex}.attachment-remove-action{color:#a83232!important;background:#fff5f3!important}.attachment-detail .action-panel{margin-top:14px}.attachment-detail-empty{min-height:100%;color:var(--text-subtle);text-align:center;place-content:center;justify-items:center;display:grid}.attachment-detail-empty>span{width:48px;height:48px;color:var(--primary);background:#e8f0ea;border-radius:50%;place-items:center;margin-bottom:10px;font-size:1.25rem;display:grid}.attachment-detail-empty strong{color:var(--text-main)}.attachment-detail-empty p{max-width:340px;margin:5px 0 0;font-size:.8rem}.secondary-link{color:#245f8d;background:#e9f1f7}.duplicate-warning{background:#fff9eb;border:1px solid #e7b85b;border-radius:.75rem;margin-top:1rem;padding:1rem}.money-input{width:8rem}.bill-primary-filters{min-width:min(430px,100%);margin:0}.bills-workflow-page>*{order:4}.bills-workflow-page .bill-workflow-card{order:1}.bills-workflow-page .bill-operation-list{order:2}.bill-workflow-card{padding:20px 22px!important}.bill-compact-header{justify-content:space-between;align-items:center;gap:24px;display:flex}.bill-compact-header h2{flex:none;font-size:1.45rem;line-height:1.35;margin:0!important}.bill-compact-filters{grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr);gap:10px;width:min(660px,100%);display:grid}.bill-compact-filters label{gap:6px;font-size:.85rem}.bill-compact-filters input,.bill-compact-filters select{min-height:42px;padding:9px 11px}.bill-preparation-status{color:var(--primary);background:0 0;align-items:center;gap:8px;margin:8px 0 0;padding:0;font-size:.82rem;display:flex}.bill-preparation-status span:not(.bill-loading-dot){color:var(--text-muted)}.bill-preparation-status.is-loading{color:var(--text-main)}.bill-loading-dot{background:var(--primary);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #1d5b4d1f}.bill-workflow-card .status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 0}.bill-workflow-card .status-grid div{border-radius:6px;justify-content:space-between;align-items:baseline;gap:8px;min-height:44px;padding:10px 13px;display:flex}.bill-workflow-card .status-grid dt{margin:0}.bill-workflow-card .status-grid dd{font-size:1rem}.bill-list-title{align-items:baseline;gap:10px;display:flex}.bill-list-title h2{margin:0;font-size:1.4rem;line-height:1.35}.bill-list-title span{color:var(--text-muted);font-size:.82rem}.workspace-shell button.table-text-button{color:var(--primary);text-align:left;text-underline-offset:.2rem;background:0 0;border-radius:0;padding:0;font-weight:800;-webkit-text-decoration:underline #1d5b4d47;text-decoration:underline #1d5b4d47}.workspace-shell button.table-text-button:hover:not(:disabled){filter:none;text-decoration-color:currentColor}.status-pill{white-space:nowrap;border-radius:999px;align-items:center;min-height:1.8rem;padding:.25rem .65rem;font-size:.8rem;font-weight:800;display:inline-flex}.status-pending{color:#895f13;background:#fff4cf}.status-paid{color:#176449;background:#e2f3e9}.status-void{color:#8a4242;background:#f8e5e5}.application-row-highlight{box-shadow:inset 4px 0 0 var(--primary);background:#f1f8df}.list-footnote{color:var(--text-muted);text-align:right;margin:1rem 0 0;font-size:.85rem}.bill-list-heading{gap:1rem;min-height:42px}.bill-view-filter{white-space:nowrap;align-items:center;gap:8px;font-size:.85rem;display:flex}.bill-view-filter select{min-width:150px;min-height:42px;padding:9px 11px}.bill-list-toolbar{border:1px solid var(--card-border);background:#fafbf8;border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0 14px;padding:12px;display:grid}.bill-list-toolbar .filter-bar{flex:1;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));align-items:end;gap:12px;margin:0;display:grid}.bill-list-toolbar label{gap:6px;font-size:.85rem}.bill-list-toolbar input,.bill-list-toolbar select,.bill-list-toolbar>button{min-height:42px}.bill-list-toolbar>button{flex:none;padding:9px 15px}.bills-table{table-layout:fixed;min-width:1120px}.bills-table th,.bills-table td{vertical-align:middle;padding:13px 12px;line-height:1.45}.bills-table thead th{text-align:left;font-size:.82rem;font-weight:800}.bills-table thead .bill-selection-column,.bills-table thead .bill-date-column,.bills-table thead .bill-amount-column,.bills-table thead .bill-status-column,.bills-table thead .bill-actions-column,.bills-table .bill-date-cell,.bills-table .bill-amount-cell,.bills-table .bill-status-cell,.bills-table .bill-actions-cell{text-align:center}.bills-table tbody td{font-size:.9rem}.bill-selection-column,.bill-selection-cell{text-align:center;width:88px}.bill-select-all{cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:7px;display:inline-flex}.bill-select-all:has(input:disabled){cursor:default}.bill-select-all input{width:17px;height:17px;margin:0}.bill-row-highlight{box-shadow:inset 4px 0 0 var(--primary);background:#eef7e9;animation:3.2s ease-out bill-writeback-highlight}@keyframes bill-writeback-highlight{0%,45%{background:#e1f3d8}to{background:0 0}}.bill-project-column{width:230px}.bill-company-column{width:240px}.bill-date-column,.bill-amount-column{width:150px}.bill-status-column{width:170px}.bill-actions-column{width:120px}.bill-selection-control{place-items:center;min-width:2rem;min-height:2rem;display:inline-grid}.bill-selection-control input{width:1rem;height:1rem;margin:0;padding:0}.bill-project-cell{line-height:1.35}.bill-project-cell>span{font-size:.95rem;font-weight:700;display:block}.bill-project-meta>span{font-size:.78rem;display:block}.bill-project-account{overflow-wrap:anywhere;margin-top:1px}.bill-row-actions{white-space:nowrap;align-items:center;gap:.5rem;display:flex}.bill-missing-amount{color:var(--text-muted);font-size:.86rem}.bill-amount-cell.is-editable{cursor:text}.bill-inline-amount-input{text-align:right;width:112px;min-height:34px;font:inherit;padding:5px 8px;font-weight:700}.bill-row-actions button{flex:none}.bill-application-confirm-modal{width:min(920px,100%);max-height:calc(100vh - 48px);overflow-y:auto}.bill-confirm-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 10px;display:grid}.bill-confirm-summary div{border:1px solid var(--card-border);background:#f7f8f4;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 12px;display:flex}.bill-confirm-summary span,.bill-confirm-rule{color:var(--text-muted);font-size:.82rem}.bill-confirm-summary strong{color:var(--text-main)}.bill-confirm-group-table{min-width:680px}.bill-confirm-group-table th:nth-child(2),.bill-confirm-group-table td:nth-child(2),.bill-confirm-group-table th:nth-child(3),.bill-confirm-group-table td:nth-child(3){text-align:right}.bill-confirm-details{margin-top:14px}.bill-confirm-details h3{margin:0 0 6px}.bill-confirm-details .table-wrap{border:1px solid var(--card-border);max-height:260px}.bill-confirm-actions{border-top:1px solid var(--card-border);justify-content:flex-end;margin-top:14px;padding-top:12px}td small{color:#627180;margin-top:.25rem;display:block}.empty-state{color:#627180;text-align:center;padding:1rem 0}.notice-message{background:#eefaf4;border-left:4px solid #2c7a54;margin:0;padding:1rem}.workspace-shell .notice-message{border-radius:10px}.application-detail>strong,.section-heading>strong{color:#174e38;font-size:1.35rem}.workspace-shell .application-detail>strong,.workspace-shell .section-heading>strong{color:var(--primary)}.action-panel{background:#f5f8fa;border-radius:.75rem;margin-top:1.5rem;padding:1rem}.workspace-shell .action-panel{border:1px solid var(--card-border);background:#f7f8f4}.history-list{gap:.6rem;padding:0;list-style:none;display:grid}.history-list li{border-bottom:1px solid #e3eaef;justify-content:space-between;gap:1rem;padding-bottom:.6rem;display:flex}.history-list span{color:#627180}.sync-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin-top:1.5rem;display:grid}.sync-grid article{background:#f5f8fa;border-radius:.75rem;gap:.6rem;padding:1rem;display:grid}.workspace-shell .sync-grid article{border:1px solid var(--card-border);background:#f7f8f4}.sync-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.sync-status{color:var(--text-subtle);background:#e9ece8;border-radius:999px;padding:3px 7px;font-size:.75rem;font-weight:700}.sync-status-success,.sync-status-succeeded{color:#176449;background:#e2f3e9}.sync-status-failed{color:#8a4242;background:#f8e5e5}.sync-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;display:grid}.sync-details div{min-width:0}.sync-details dt{color:var(--text-subtle);font-size:.75rem}.sync-details dd{text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font-size:.82rem;overflow:hidden}.home-sync-card .notice-message{margin-bottom:0}.home-workbench{gap:26px;max-width:1500px;margin:0 auto;display:grid}.home-workbench-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex;position:relative}.home-workbench-header h1{color:var(--text-main);margin:4px 0 3px;font-size:2rem;line-height:1.2}.home-workbench-header>div>p:last-child,.home-section-heading p{color:var(--text-muted);margin:0}.home-sync-control{z-index:5;position:relative}.home-sync-control>summary{color:#fff;background:var(--primary);cursor:pointer;border-radius:8px;padding:11px 16px;font-weight:800;list-style:none}.home-sync-control>summary::-webkit-details-marker{display:none}.home-sync-control[open]>summary{background:var(--sidebar-bg)}.home-sync-popover{border:1px solid var(--card-border);background:#fff;border-radius:10px;width:min(520px,100vw - 48px);padding:14px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 45px #123b3429}.home-sync-popover-heading{border-bottom:1px solid var(--card-border);gap:2px;padding:0 2px 10px;display:grid}.home-sync-popover-heading span,.home-sync-row>div span{color:var(--text-muted);font-size:.78rem}.home-sync-row{border-bottom:1px solid var(--card-border);grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:12px 2px;display:grid}.home-sync-row:last-child{border-bottom:0}.home-sync-row>div{gap:3px;min-width:0;display:grid}.home-sync-row button{min-height:34px;padding:6px 10px}.home-workbench-message{margin:-8px 0 0}.home-section-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:12px;display:flex}.home-section-heading h2{color:var(--text-main);margin:0 0 3px;font-size:1.25rem}.home-section-heading>span{color:var(--text-muted);white-space:nowrap;font-size:.84rem}.home-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.home-stat-grid article{border:1px solid var(--card-border);background:#fff;border-radius:12px;align-content:space-between;gap:9px;min-height:150px;padding:20px;display:grid;box-shadow:0 10px 26px #26443a08}.home-stat-grid article>span,.home-stat-grid article small{color:var(--text-muted)}.home-stat-grid article>strong{color:var(--text-main);font-size:2rem;line-height:1}.home-stat-grid article>.home-stat-amount{font-size:1.65rem}.home-task-count{background:var(--tag-bg);border-radius:999px;padding:6px 10px;font-weight:800;color:var(--tag-text)!important}.home-empty-state{color:var(--text-muted);text-align:center;background:#ffffff7a;border:1px dashed #ced8d2;border-radius:10px;margin:0;padding:28px}.home-task-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.home-task-list article{border:1px solid var(--card-border);background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;display:flex}.home-task-list article>div{gap:4px;display:grid}.home-task-list article span{color:var(--text-muted);font-size:.86rem}.loading-screen{text-align:center;padding:4rem}.print-page{gap:1.5rem;display:grid}.print-toolbar{background:#fff;border:1px solid #dce5eb;border-radius:.8rem;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem 1.5rem;display:flex}.print-toolbar h2,.print-toolbar .hint{margin:0}.print-sheets,.print-application-group{gap:1.25rem;display:grid}.print-paper{box-sizing:border-box;color:#111;background:#fff;width:min(210mm,100%);height:297mm;margin:0 auto;padding:7mm 9mm;overflow:hidden;box-shadow:0 12px 38px #16324f1f}.print-sheet{box-sizing:border-box;color:#111;background:#fff;border:1px solid #cfd9d2;width:100%;height:136mm;padding:3mm 2mm;position:relative;overflow:hidden}.print-paper-voucher-only .print-sheet{height:100%}.print-document-header{display:block}.print-document-header h1{letter-spacing:0;text-align:center;margin:0 0 18px;font-size:24px}.print-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0 0 15px;font-size:13px;display:grid}.print-meta div{min-width:0;display:flex}.print-meta dt,.print-meta dd{overflow-wrap:anywhere;margin:0;padding:0}.print-meta dt{color:#111;flex:none}.print-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:10px}.print-table th,.print-table td{color:#111;overflow-wrap:anywhere;vertical-align:top;border:1px solid #7f8d87;padding:8px}.print-table th:first-child{width:5%}.print-table th:nth-child(2){width:11%}.print-table th:nth-child(3){width:9%}.print-table th:nth-child(4){width:15%}.print-table th:nth-child(5){width:17%}.print-table th:nth-child(6){width:18%}.print-table th:nth-child(7){width:10%}.print-table th:nth-child(8){width:15%}.print-table tfoot th,.print-table tfoot td{background:#f1f3f5;font-weight:700}.print-amount{text-align:right;white-space:nowrap}.print-signatures{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:30px;font-size:13px;display:grid}.print-void-watermark{color:#b93e3538;letter-spacing:8px;font-size:58px;position:absolute;inset:42% auto auto 37%;transform:rotate(-18deg)}.print-message{width:min(210mm,100%);margin:0 auto}.print-cut-line{border-top:1px dashed #7e898a;height:5mm;position:relative}.print-cut-line span{color:#7e898a;white-space:nowrap;background:#fff;padding:0 3mm;font-size:8px;position:absolute;top:-2.5mm;left:50%;transform:translate(-50%)}.print-attachment-slot{flex-direction:column;justify-content:center;align-items:center;width:100%;height:136mm;margin:0;padding:2mm;display:flex;overflow:hidden}.print-attachment-slot img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:132mm;display:block}.print-attachment-page-item{height:136mm}.print-attachment-page-item:nth-child(2){height:141mm}@media (width<=900px){.home-stat-grid,.home-task-list{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-shell{display:block}.workspace-shell .app-header{gap:18px;width:100%;height:auto;padding:20px 24px;position:static}.workspace-shell .app-header nav{flex-flow:wrap}.workspace-shell .app-header nav a{width:auto}.workspace-shell .sidebar-user{width:100%;margin-top:0}.workspace-shell>main{padding:36px clamp(20px,5vw,48px)}.workspace-shell .business-form,.role-card-grid{grid-template-columns:1fr}.payment-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-shell .wide-field{grid-column:auto}.bill-list-toolbar{grid-template-columns:1fr;align-items:stretch}.bill-compact-header{flex-direction:column;align-items:stretch;gap:8px}.bill-compact-header h2{margin-bottom:0!important}.bill-compact-filters{width:100%}}@page{size:A4 portrait;margin:0}@media print{:root,body{color:#000;background:#fff}.app-header,.print-toolbar,.print-message{display:none!important}.app-shell,.app-shell>main,.print-page,.print-sheets,.print-application-group{width:100%;margin:0;padding:0;display:block}.print-paper{box-sizing:border-box;break-inside:avoid;page-break-inside:avoid;break-after:page;page-break-after:always;width:210mm;height:297mm;max-height:none;box-shadow:none;margin:0;padding:7mm 9mm;overflow:hidden}.print-sheets>.print-application-group:last-child .print-paper:last-child{break-after:auto;page-break-after:auto}.print-sheet{width:100%;height:136mm;box-shadow:none;border:0;margin:0;padding:3mm 2mm;overflow:hidden}.print-paper-voucher-only .print-sheet{height:100%}.print-table thead{display:table-header-group}.print-table tr,.print-meta div,.print-signatures{break-inside:avoid}.print-meta dt,.print-table tfoot th,.print-table tfoot td{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@media (width<=640px){.home-workbench-header,.home-section-heading,.home-task-list article{flex-direction:column;align-items:stretch}.home-stat-grid,.home-task-list{grid-template-columns:1fr}.home-sync-control{align-self:flex-start}.home-sync-popover{width:min(520px,100vw - 36px);left:0;right:auto}.app-header{flex-direction:column;align-items:flex-start}.app-header nav,.login-layout,.inline-form,.section-heading,.business-form{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.workspace-shell .app-header nav{flex-direction:column}.workspace-shell .app-header nav a{width:100%}.workspace-shell>main{padding:28px 18px}.modal-backdrop{align-items:start;padding:12px}.workspace-shell .expense-item-modal{max-height:calc(100vh - 24px)}.workspace-shell .attachment-modal{border-radius:8px;height:calc(100vh - 12px);max-height:calc(100vh - 12px)}.attachment-modal-heading{padding:14px 16px}.attachment-modal-body{padding:10px}.attachment-preview-backdrop{padding:12px}.attachment-preview-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px)}.attachment-upload-bar{grid-template-columns:1fr;gap:8px}.attachment-layout{grid-template-rows:minmax(130px,32%) minmax(0,1fr)}.attachment-sidebar{border-right:0;border-bottom:1px solid var(--card-border)}.attachment-detail{padding:14px 14px 0}.attachment-actions{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.filter-bar,.attachment-layout,.compact-form{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.application-filters,.application-create-form,.management-toolbar,.management-create-panel,.fixed-role-grid{grid-template-columns:1fr}.settings-console-heading,.settings-module-tabs{flex-direction:column;align-items:stretch}.fixed-role-note{grid-column:auto}.payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.application-summary-grid,.bill-confirm-summary{grid-template-columns:1fr}.application-detail-drawer{width:100%}.application-drawer-heading{align-items:stretch}.application-drawer-heading .actions{flex-wrap:wrap}.bill-list-heading{align-items:stretch}.bill-view-filter{width:100%}.bill-view-filter select{flex:1}.bill-preparation-status{flex-direction:column;align-items:flex-start}.bill-compact-filters,.bill-workflow-card .status-grid{grid-template-columns:1fr}.wide-field{grid-column:auto}main{margin-top:2rem}.print-toolbar,.print-document-header{flex-direction:column;align-items:stretch}.print-sheet{min-height:0;padding:1.25rem}.print-meta,.print-signatures{grid-template-columns:1fr}.print-meta .print-company{grid-column:auto}}
