:root{--brand-ink: #101827;--brand-ink-soft: #182943;--brand-blue: #168cff;--brand-blue-deep: #0f5bd8;--brand-sky: #e7f2ff;color:#101827;background:#f5f8fc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}body.theme-dark{background:#080d18;color:#eef6ff}button,input,select,textarea{font:inherit}h1,h2,p{margin-top:0}h1{font-size:clamp(1.65rem,7vw,2.2rem);line-height:1.04;margin-bottom:10px;max-width:820px}h2{font-size:1.12rem;margin-bottom:18px}.auth-shell,.app-shell{min-height:100vh;padding:16px}body.theme-dark .auth-shell,body.theme-dark .app-shell{background:#080d18;color:#eef6ff}.auth-shell{align-items:center;display:grid;justify-items:center}.auth-panel{background:radial-gradient(circle at top right,rgba(22,140,255,.14),transparent 34%),#fff;border:1px solid #d8e5f3;border-radius:8px;box-shadow:0 22px 55px #1018271f;max-width:560px;padding:28px;width:100%}body.theme-dark .auth-panel,body.theme-dark .panel{background:#101827;border-color:#20304a;box-shadow:0 18px 45px #00000047}body.theme-dark .topbar{background:#080d18eb}.topbar{align-items:center;display:flex;justify-content:space-between;margin:0 auto 18px;max-width:1180px}.brand-button{background:transparent;color:#101827;min-height:40px;padding:0}.brand-button:hover,.brand-button:focus{color:var(--brand-blue-deep)}.auth-brand{display:grid;gap:10px;margin-bottom:22px}.brand-lockup{align-items:center;display:inline-flex;gap:12px}.brand-lockup.compact{gap:9px}.brand-mark{display:block;height:46px;width:46px}.brand-lockup.compact .brand-mark{height:34px;width:34px}.facturo-icon-ink{fill:var(--brand-ink);stroke:var(--brand-ink)}.facturo-icon-outline{stroke:var(--brand-ink)}.facturo-icon-blue{fill:var(--brand-blue);stroke:var(--brand-blue)}.facturo-icon-accent-line{stroke:var(--brand-blue)}.brand-word{color:var(--brand-ink);font-size:2.25rem;font-weight:900;letter-spacing:0;line-height:1}.brand-lockup.compact .brand-word{font-size:1.22rem}.brand-word span{color:var(--brand-blue)}.brand-slogan{align-items:center;color:#233858;display:flex;font-size:.78rem;font-weight:800;gap:12px;letter-spacing:.14em;margin:0;text-transform:uppercase}.brand-slogan:before{background:var(--brand-blue);content:"";display:block;height:3px;width:56px}body.theme-dark .brand-button,body.theme-dark h1,body.theme-dark h2,body.theme-dark strong,body.theme-dark .brand-word{color:#f4f8f5}body.theme-dark .brand-slogan{color:#b9d4f2}.topbar-actions{display:flex;gap:8px}.mobile-bottom-nav{background:#fffffff0;border:1px solid #d8e5f3;border-radius:8px 8px 0 0;bottom:0;box-shadow:0 -10px 28px #10182724;display:grid;gap:4px;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));left:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));position:fixed;right:0;z-index:15}body.theme-dark .mobile-bottom-nav{background:#101827f5;border-color:#20304a}.mobile-bottom-nav button{background:transparent;border-radius:8px;color:#63748a;display:grid;font-size:.72rem;gap:3px;justify-items:center;min-height:50px;padding:6px 4px}.mobile-bottom-nav button.active{background:#e7f2ff;color:#0f5bd8}body.theme-dark .mobile-bottom-nav button{color:#a9bdd6}body.theme-dark .mobile-bottom-nav button.active{background:#102c4f;color:#f4f8f5}.workspace{margin:0 auto;max-width:1180px}.page-title{align-items:end;display:flex;gap:18px;justify-content:space-between;margin-bottom:18px}.editor-grid{display:grid;gap:18px;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr)}.eyebrow{color:#0f6ed6;font-size:.78rem;font-weight:800;letter-spacing:0;margin:0 0 8px;text-transform:uppercase}body.theme-dark .eyebrow{color:#74b8ff}.subtitle{color:#58697f;font-size:1.02rem;margin-bottom:0;max-width:660px}body.theme-dark .subtitle,body.theme-dark label,body.theme-dark .empty-state,body.theme-dark .total-row span,body.theme-dark .admin-row small,body.theme-dark .order-row small,body.theme-dark .metric-card span{color:#a9bdd6}.panel{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #d8e5f3;border-radius:8px;box-shadow:0 10px 28px #1018270f;padding:16px}.dashboard-workspace{display:grid;gap:18px}.dashboard-hero{display:grid;gap:12px;grid-template-columns:minmax(260px,1.3fr) repeat(3,minmax(0,1fr))}.dashboard-focus{background:linear-gradient(135deg,#10213a,#0f6ed6);color:#fff;display:grid;gap:8px;min-height:150px}.dashboard-focus span,.dashboard-focus small{color:#d7eaff;font-weight:800}.dashboard-focus span{align-items:center;display:inline-flex;gap:8px}.dashboard-focus strong{color:#fff;font-size:2.25rem}.dashboard-metric{align-content:start;display:grid;gap:8px;min-height:150px}.metric-icon{align-items:center;background:#e7f2ff;border-radius:8px;color:var(--brand-blue-deep);display:inline-flex;height:34px;justify-content:center;width:34px}.dashboard-metric>span:not(.metric-icon),.dashboard-metric small,.dashboard-alert small,.activity-list small,.mix-list small,.top-customer small{color:#63748a}.dashboard-metric>span:not(.metric-icon){font-size:.78rem;font-weight:800;text-transform:uppercase}.dashboard-metric strong{font-size:1.6rem}.dashboard-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.billing-workspace{display:grid;gap:18px}.billing-summary{display:grid;gap:12px;grid-template-columns:minmax(260px,1.15fr) repeat(3,minmax(0,1fr))}.billing-banner-list{display:grid;gap:8px}.billing-banner{align-items:center;border:1px solid;border-radius:8px;display:flex;font-weight:800;gap:10px;padding:12px 14px}.billing-banner.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.billing-banner.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.billing-banner svg{flex:0 0 auto}.billing-focus{align-content:start;background:linear-gradient(135deg,#10213a,#0f6ed6);color:#fff;display:grid;gap:8px;min-height:150px}.billing-focus span,.billing-focus small{color:#d7eaff;font-weight:800}.billing-focus span{align-items:center;display:inline-flex;gap:8px}.billing-focus strong{color:#fff;font-size:2rem}.billing-usage-panel{display:grid;gap:12px}.billing-detail-grid{border:1px solid #e3edf8;border-radius:8px;display:grid;gap:0;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}.billing-detail-grid .total-row{border-bottom:0;border-right:1px solid #e3edf8;padding:10px 12px}.billing-detail-grid .total-row:last-child{border-right:0}.usage-bar{background:#e7f2ff;border-radius:999px;height:10px;overflow:hidden}.usage-bar span{background:var(--brand-blue);display:block;height:100%;transition:width .2s ease}.billing-plan-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.billing-plan{align-content:start;display:grid;gap:12px;grid-template-rows:auto auto auto 1fr auto}.billing-plan.current{border-color:var(--brand-blue);box-shadow:0 10px 28px #0f6ed61f}.billing-plan header{align-items:start;display:flex;gap:10px;justify-content:space-between}.billing-plan header div{display:grid;gap:4px}.billing-plan h2{font-size:1.05rem;margin:0}.billing-plan header span,.billing-plan p,.billing-plan li,.billing-price span{color:#63748a}.billing-plan header small{background:#e7f2ff;border-radius:999px;color:var(--brand-blue-deep);font-size:.72rem;font-weight:900;padding:4px 8px}.billing-price{font-size:1.55rem}.billing-price span{font-size:.88rem}.billing-features{display:grid;gap:8px;list-style:none;margin:0;padding:0}.billing-features li{align-items:center;display:flex;gap:8px}.billing-features svg{color:var(--brand-blue);flex:0 0 auto}.billing-plan-actions{align-self:end}.billing-plan-actions button{width:100%}.dashboard-card{display:grid;gap:14px}.dashboard-card-wide{grid-column:span 2}.section-heading{align-items:center;display:flex;gap:12px;justify-content:space-between}.section-heading h2{margin:0}.alert-list,.kpi-list,.mix-list,.activity-list{display:grid;gap:10px}.dashboard-alert{align-items:flex-start;background:#f7fbff;border:1px solid #dbe8f6;border-radius:8px;color:#233858;display:flex;gap:10px;padding:10px}.dashboard-alert.warning{background:#fff8e6;border-color:#f4d483}.dashboard-alert.danger{background:#fff0f0;border-color:#f3b4b4}.dashboard-alert span,.top-customer{display:grid;gap:4px}.top-customer strong{font-size:1.25rem}.top-customer span{color:var(--brand-blue-deep);font-size:1.45rem;font-weight:900}.mix-list>div,.activity-list>div{align-items:center;border-bottom:1px solid #e3edf8;display:grid;gap:10px;min-height:44px;padding-bottom:10px}.mix-list>div{grid-template-columns:minmax(0,1fr) auto auto}.activity-list>div{grid-template-columns:minmax(150px,1fr) auto auto auto}.field-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.logo-uploader{align-items:center;border:1px solid #e3edf8;border-radius:8px;display:grid;gap:16px;grid-template-columns:132px minmax(0,1fr);margin-bottom:18px;padding:14px}.certificate-status{border:1px solid #e3edf8;border-radius:8px;display:grid;gap:10px;margin:18px 0 12px;padding:14px}.certificate-status .detail-row{margin:0}body.theme-dark .logo-uploader,body.theme-dark .certificate-status,body.theme-dark .invoice-type-selector,body.theme-dark .invoice-line-editor,body.theme-dark .invoice-filters,body.theme-dark .dashboard-alert,body.theme-dark .admin-user-detail-grid,body.theme-dark .admin-checklist label{background:#0b1422;border-color:#20304a}body.theme-dark .metric-icon{background:#12243a;color:#74b8ff}body.theme-dark .dashboard-metric>span:not(.metric-icon),body.theme-dark .dashboard-metric small,body.theme-dark .dashboard-alert small,body.theme-dark .activity-list small,body.theme-dark .mix-list small,body.theme-dark .top-customer small{color:#a9bdd6}body.theme-dark .dashboard-alert{color:#eef6ff}body.theme-dark .dashboard-alert.warning{background:#2a220e;border-color:#725c1f}body.theme-dark .dashboard-alert.danger{background:#2b1418;border-color:#73313b}body.theme-dark .top-customer span{color:#74b8ff}body.theme-dark .mix-list>div,body.theme-dark .activity-list>div{border-color:#20304a}body.theme-dark .usage-bar,body.theme-dark .billing-plan header small{background:#12243a}body.theme-dark .billing-banner.danger{background:#2b1418;border-color:#73313b;color:#fecdd3}body.theme-dark .billing-banner.warning{background:#2a220e;border-color:#725c1f;color:#fde68a}body.theme-dark .billing-detail-grid,body.theme-dark .billing-detail-grid .total-row{border-color:#20304a}body.theme-dark .billing-plan header span,body.theme-dark .billing-plan p,body.theme-dark .billing-plan li,body.theme-dark .billing-price span{color:#a9bdd6}.logo-preview{align-items:center;background:#f7fbff;border:1px dashed #c9d7e8;border-radius:8px;color:#63748a;display:flex;height:72px;justify-content:center;overflow:hidden}body.theme-dark .logo-preview{background:#080d18;border-color:#263c5b;color:#a9bdd6}.logo-preview img{max-height:54px;max-width:108px;object-fit:contain}.logo-controls{display:grid;gap:10px}.logo-actions{display:flex;flex-wrap:wrap;gap:10px}.file-button{align-items:center;background:#101827;border-radius:7px;color:#fff;cursor:pointer;display:inline-flex;font-size:1rem;font-weight:800;gap:8px;min-height:44px;padding:10px 14px;width:fit-content}.file-button input{display:none}.logo-error{margin:0}.field-grid.single{grid-template-columns:1fr}.field-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}label{color:#5e6f85;display:grid;font-size:.82rem;font-weight:700;gap:7px}input,select,textarea{background:#fff;border:1px solid #c9d7e8;border-radius:7px;color:#101827;min-height:44px;outline:none;padding:10px 12px;width:100%}body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#080d18;border-color:#263c5b;color:#eef6ff}body.theme-dark input::placeholder{color:#8298b2}input:focus,select:focus,textarea:focus{border-color:var(--brand-blue);box-shadow:0 0 0 3px #168cff29}.customer-layout{align-items:start;display:grid;gap:18px;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)}.customer-search{margin-bottom:14px}.customer-list{border-top:1px solid #e3edf8}.customer-row{align-items:center;background:transparent;border-bottom:1px solid #e3edf8;border-radius:0;color:inherit;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) minmax(130px,.65fr) auto;min-height:74px;padding:12px 2px;text-align:left;width:100%}.customer-row:hover,.customer-row.active{background:#f2f8ff}.customer-row>span{display:grid;gap:3px;min-width:0}.customer-row small{color:#63748a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-notes,.customer-picker{grid-column:1 / -1}.customer-form textarea{min-height:96px;resize:vertical}body.theme-dark .customer-list,body.theme-dark .customer-row{border-color:#20304a}body.theme-dark .customer-row:hover,body.theme-dark .customer-row.active{background:#12243a}body.theme-dark .customer-row small{color:#a9bdd6}.line-editor{border-top:1px solid #e3edf8;display:grid;gap:14px;margin-top:20px;padding-top:20px}.invoice-type-selector{align-items:center;background:#f7fbff;border:1px solid #d8e5f3;border-radius:8px;display:flex;gap:14px;justify-content:space-between;margin:0 0 18px;padding:12px}.invoice-type-selector span{color:#596b82;font-size:.82rem;font-weight:800}.invoice-type-selector div{display:flex;flex-wrap:wrap;gap:8px}.invoice-type-selector button.active{background:#101827;color:#fff}.vehicle-panel,.payment-editor{border-top:1px solid #e3edf8;display:grid;gap:14px;margin-top:20px;padding-top:20px}.payment-editor h2{margin-bottom:0}.payment-status.paid{color:#1f6b32;font-weight:800}body.theme-dark .payment-editor{border-color:#20304a}body.theme-dark .payment-status.paid{color:#86efac}.vehicle-panel h2,.labor-editor h2{margin-bottom:0}.vehicle-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.line-editor-head{align-items:center;display:flex;gap:12px;justify-content:space-between}.line-editor-head h2{margin-bottom:0}.invoice-lines{display:grid;gap:10px}.invoice-line-editor{align-items:end;background:#f7fbff;border:1px solid #dbe7f5;border-radius:8px;display:grid;gap:10px;grid-template-columns:minmax(220px,1fr) 96px 116px 96px 38px;padding:12px}.labor-editor{border-top:1px solid #c9d7e8;display:grid;gap:10px;margin-top:12px;padding-top:18px}.labor-line-editor{grid-template-columns:minmax(220px,1fr) 96px 116px 96px}.weekly-trip-editor{grid-template-columns:140px minmax(220px,1fr) 116px 38px}.weekly-discount-field{border-top:1px solid #e3edf8;padding-top:14px}.order-line-editor{grid-template-columns:110px minmax(220px,1fr) 96px 116px 38px}.line-description{min-width:0}.tax-grid{border-top:1px solid #e3edf8;padding-top:14px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.auth-primary{justify-content:center;width:100%}.auth-divider{align-items:center;color:#7a8797;display:flex;gap:12px;margin:18px 0}.auth-divider:before,.auth-divider:after{background:#d8e5f3;content:"";flex:1;height:1px}.google-login{align-items:center;background:#fff;border:1px solid #bccbdb;color:#182433;display:flex;font-weight:700;gap:12px;justify-content:center;width:100%}.google-login:hover:not(:disabled){background:#f4f8fc;border-color:#7c9abd}.google-mark{flex:0 0 20px;height:20px;width:20px}body.theme-dark .auth-divider:before,body.theme-dark .auth-divider:after{background:#2b3b54}body.theme-dark .google-login{background:#172235;border-color:#40516c;color:#eef6ff}.bulk-actions{align-items:center;border-bottom:1px solid #e3edf8;display:flex;gap:12px;justify-content:space-between;margin-bottom:8px;padding-bottom:14px}.bulk-actions div{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.invoice-filters{align-items:end;border-bottom:1px solid #e3edf8;display:grid;gap:12px;grid-template-columns:minmax(220px,1.4fr) repeat(4,minmax(112px,.7fr)) auto;margin-bottom:14px;padding-bottom:14px}.filter-search{min-width:0}.filters-toggle{display:none}.search-input{align-items:center;display:flex;position:relative}.search-input svg{color:#63748a;left:12px;pointer-events:none;position:absolute}.search-input input{padding-left:38px}button{align-items:center;background:linear-gradient(135deg,var(--brand-ink),var(--brand-ink-soft));border:0;border-radius:7px;color:#fff;cursor:pointer;display:inline-flex;font-weight:800;gap:8px;min-height:44px;padding:10px 14px}button.secondary,.icon-button.secondary{background:#e7f2ff;color:#0f5bd8}body.theme-dark button.secondary,body.theme-dark .icon-button.secondary{background:#122641;color:#eef6ff}body.theme-dark button.secondary.active,body.theme-dark .icon-button.secondary.active{background:#0f5bd8}button.danger{background:#feeceb;color:#9f1d1d}button:disabled{cursor:not-allowed;opacity:.45}.icon-button{border-radius:6px;justify-content:center;min-height:38px;padding:8px;width:38px}.invoice-table{display:grid}.order-workspace{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}.order-table{display:grid}.order-row{align-items:center;border-bottom:1px solid #e3edf8;display:grid;gap:12px;grid-template-columns:minmax(150px,.9fr) minmax(180px,1.2fr) minmax(150px,.7fr) .6fr minmax(160px,.8fr);min-height:64px}.order-row>span{display:grid;gap:3px}.order-row small{color:#63748a}.order-actions{display:flex;justify-content:flex-end}.admin-controls{align-items:end;display:grid;gap:12px;grid-template-columns:auto;margin-bottom:18px}.admin-metrics{display:grid;gap:12px;grid-template-columns:repeat(8,minmax(0,1fr));margin-bottom:18px}.admin-billing-strip{margin-bottom:18px}.admin-billing-strip .kpi-list.compact{grid-template-columns:repeat(6,minmax(0,1fr))}.admin-ops-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.admin-client-ops{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.admin-client-health{border:1px solid #e3edf8;border-radius:8px;grid-column:1 / -1;overflow:hidden}.admin-client-health .total-row{border-bottom:1px solid #e3edf8;margin:0;min-height:46px;padding:10px 12px}.admin-create-user{margin-bottom:18px}.admin-client-filters{align-items:end;border-bottom:1px solid #e3edf8;display:grid;gap:12px;grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(150px,.75fr)) auto;margin-bottom:12px;padding-bottom:14px}.metric-card{display:grid;gap:8px}.metric-card span{color:#63748a;font-size:.78rem;font-weight:800;text-transform:uppercase}.metric-card strong{font-size:1.35rem}.admin-table{display:grid}.admin-row{align-items:center;border-bottom:1px solid #e3edf8;display:grid;gap:12px;grid-template-columns:minmax(210px,1.2fr) .62fr minmax(170px,.95fr) .5fr .55fr minmax(160px,.9fr) minmax(150px,.8fr);min-height:58px}.admin-row-clickable{cursor:pointer}.admin-row-clickable:hover,.admin-row-clickable:focus{background:#f7fbff;outline:0}.admin-row>span:first-child{display:grid;gap:3px}.admin-row small{color:#63748a}.invoice-row{align-items:center;border-bottom:1px solid #e3edf8;display:grid;gap:12px;grid-template-columns:32px .9fr 1.35fr .7fr .8fr .8fr .8fr 44px;min-height:58px;position:relative}.invoice-row-clickable{cursor:pointer}.invoice-row-clickable:hover,.invoice-row-clickable:focus{background:#f7fbff;outline:0}body.theme-dark .admin-row,body.theme-dark .invoice-row,body.theme-dark .order-row,body.theme-dark .total-row,body.theme-dark .admin-client-health,body.theme-dark .admin-client-health .total-row,body.theme-dark .admin-client-filters,body.theme-dark .bulk-actions,body.theme-dark .line-editor,body.theme-dark .vehicle-panel,body.theme-dark .labor-editor,body.theme-dark .tax-grid,body.theme-dark .invoice-filters{border-color:#20304a}body.theme-dark .admin-row-clickable:hover,body.theme-dark .admin-row-clickable:focus,body.theme-dark .invoice-row-clickable:hover,body.theme-dark .invoice-row-clickable:focus{background:#0e2139}.admin-checklist-panel{display:grid;gap:16px;margin:0;max-width:560px;width:min(560px,calc(100vw - 32px))}.admin-user-panel{display:grid;gap:18px;margin:0;max-height:min(760px,calc(100vh - 32px));max-width:760px;overflow:auto;width:min(760px,calc(100vw - 32px))}.admin-user-detail-grid{border:1px solid #e3edf8;border-radius:8px;display:grid;gap:0;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}.admin-user-detail-grid .total-row{border-bottom:1px solid #e3edf8;margin:0;min-height:48px;padding:10px 12px}.admin-password-row{align-items:end;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto}.admin-billing-action{align-items:end;display:grid;gap:12px;grid-template-columns:minmax(160px,.65fr) minmax(220px,1fr) auto}.modal-backdrop{align-items:center;background:#080d185c;display:flex;inset:0;justify-content:center;padding:16px;position:fixed;z-index:20}.admin-checklist{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(180px,1fr))}.admin-checklist label{align-items:center;border:1px solid #e3edf8;border-radius:8px;display:flex;flex-direction:row;gap:10px;min-height:48px;padding:10px 12px}.admin-checklist input{accent-color:#101827;min-height:auto;padding:0}.toggle-row{align-items:center;display:flex;gap:10px}.toggle-row input{accent-color:#101827;min-height:auto;padding:0;width:auto}.admin-checklist-actions{align-items:center;border-top:1px solid #e3edf8;display:flex;gap:12px;justify-content:space-between;padding-top:14px}.admin-checklist-actions div{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.row-checkbox{accent-color:#101827;cursor:pointer;min-height:auto;padding:0;width:18px}.invoice-row:last-child{border-bottom:0}.table-head{color:#63748a;font-size:.76rem;font-weight:800;min-height:34px;text-transform:uppercase}.menu-cell{display:flex;justify-content:flex-end;position:relative}.action-menu{background:#fff;border:1px solid #d7e4f2;border-radius:8px;box-shadow:0 14px 34px #10182729;display:grid;gap:4px;min-width:190px;padding:6px;position:absolute;right:0;top:42px;z-index:5}body.theme-dark .action-menu{background:#101827;border-color:#20304a;box-shadow:0 14px 34px #00000057}.action-menu button{background:transparent;color:#101827;justify-content:flex-start;min-height:36px;padding:8px 10px}body.theme-dark .action-menu button{color:#eef6ff}.empty-state{color:#63748a;margin:18px 0 0}.totals{display:grid;gap:10px}.total-row{align-items:center;border-bottom:1px solid #e3edf8;display:flex;justify-content:space-between;padding:10px 0}.total-row span{color:#60728a}.total-row.strong{border-bottom:0;font-size:1.25rem}.success,.error{border-radius:7px;font-weight:700;margin:16px 0 0;padding:12px}.inline-message{margin-bottom:16px}.success{background:#eaf7ed;color:#1f6b32}.error{background:#fff0ed;color:#9d2717}@media(max-width:860px){.auth-shell,.app-shell{padding:14px 12px 88px}.topbar{background:#f5f8fceb;margin-bottom:14px;position:sticky;top:0;z-index:12}.topbar-actions{display:none}.page-title{align-items:stretch;display:grid;gap:12px;margin-bottom:14px}.page-title button,.actions button,.bulk-actions button{justify-content:center;width:100%}.auth-panel{padding:20px}.panel{box-shadow:none;padding:14px}.subtitle{font-size:.94rem}.editor-grid,.customer-layout,.field-grid,.field-grid.compact,.vehicle-grid,.logo-uploader,.invoice-line-editor,.labor-line-editor,.weekly-trip-editor,.order-line-editor{grid-template-columns:1fr}.editor-grid{display:flex;flex-direction:column}.line-editor-head,.invoice-type-selector,.bulk-actions{align-items:stretch;display:grid}.invoice-filters,.admin-client-filters,.admin-controls,.admin-metrics,.admin-billing-strip .kpi-list.compact,.admin-ops-grid,.admin-client-ops,.dashboard-hero,.dashboard-grid,.billing-summary,.billing-detail-grid,.billing-plan-grid,.admin-user-detail-grid,.admin-password-row,.admin-billing-action,.admin-checklist{grid-template-columns:1fr}.billing-detail-grid .total-row{border-bottom:1px solid #e3edf8;border-right:0}.billing-detail-grid .total-row:last-child{border-bottom:0}.dashboard-card-wide{grid-column:auto}.activity-list>div{align-items:start;grid-template-columns:1fr}.invoice-filters{background:#f7fbff;border:1px solid #e3edf8;border-radius:8px;margin-bottom:12px;padding:12px}.filters-toggle{display:inline-flex}.invoice-filters label:not(.filter-search),.invoice-filters button:not(.filters-toggle){display:none}.invoice-filters.open label,.invoice-filters.open button{display:inline-flex}.invoice-filters.open label{display:grid}.bulk-actions div{justify-content:flex-start}.invoice-table,.order-table,.admin-table{gap:10px}.invoice-row:not(.table-head),.order-row,.admin-row:not(.table-head){background:#fff;border:1px solid #d8e5f3;border-radius:8px;box-shadow:0 8px 20px #1018270d;gap:10px;grid-template-columns:28px minmax(0,1fr) auto;margin:0;min-height:auto;padding:12px}body.theme-dark .invoice-row:not(.table-head),body.theme-dark .order-row,body.theme-dark .admin-row:not(.table-head){background:#101827;border-color:#20304a;box-shadow:0 8px 20px #00000029}.table-head{display:none}.invoice-row:not(.table-head)>[data-label],.order-row>[data-label],.admin-row:not(.table-head)>[data-label]{align-items:baseline;display:flex;gap:10px;grid-column:1 / -1;justify-content:space-between;min-width:0}.invoice-row:not(.table-head)>[data-label]:before,.order-row>[data-label]:before,.admin-row:not(.table-head)>[data-label]:before{color:#63748a;content:attr(data-label);flex:0 0 auto;font-size:.72rem;font-weight:800;text-transform:uppercase}.invoice-row:not(.table-head)>.row-select-cell{grid-column:1;grid-row:1;padding-top:2px}.invoice-row:not(.table-head)>strong[data-label]:first-of-type{display:grid;gap:2px;grid-column:2;grid-row:1;justify-content:start}.invoice-row:not(.table-head)>strong[data-label]:first-of-type:before{font-size:.68rem}.invoice-row:not(.table-head)>.menu-cell{grid-column:3;grid-row:1}.invoice-row:not(.table-head)>span[data-label],.invoice-row:not(.table-head)>small[data-label],.invoice-row:not(.table-head)>strong[data-label]:not(:first-of-type){grid-column:1 / -1}.order-row select{grid-column:1 / -1}.admin-row:not(.table-head)>span:first-child,.order-row>span:first-child{display:grid;gap:3px}.menu-cell,.order-actions{justify-content:flex-start}.admin-checklist-actions{align-items:stretch;display:grid}.admin-checklist-actions div{justify-content:flex-start}.action-menu{left:0;right:auto}.modal-backdrop{align-items:end;padding:0}.admin-user-panel,.admin-checklist-panel{border-radius:8px 8px 0 0;max-height:calc(100vh - 18px);max-width:none;padding-bottom:calc(18px + env(safe-area-inset-bottom));width:100vw}.admin-checklist-actions{background:#fff;bottom:0;position:sticky}.editor-grid>aside.panel{order:-1}.editor-grid>aside.panel .totals{gap:4px}.editor-grid>aside.panel .total-row:not(.strong){display:none}.invoice-type-selector div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-type-selector button{justify-content:center}}@media(min-width:861px){h1{font-size:clamp(2rem,5vw,4rem);line-height:.98;margin-bottom:14px}.auth-shell,.app-shell{padding:28px}.topbar{margin-bottom:28px}.panel{box-shadow:0 18px 45px #10182714;padding:22px}.mobile-bottom-nav{display:none}}
