:root{--bg:#070a0f;--surface:#0f1422;--surface-2:#141a29;--ink:#f1f5f9;--muted:#94a3b8;--line:#1e293b;--brand:#2563eb;--brand-2:#22c5ff;--success:#10b981;--warn:#f59e0b;--danger:#f43f5e;--shadow:0 12px 28px rgba(0,0,0,.28);--radius:12px;--sidebar:320px;--font-sans:Inter,"Segoe UI",system-ui,sans-serif;--font-mono:"JetBrains Mono","Cascadia Mono",Consolas,monospace;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--elevation-card:0 4px 12px rgba(0,0,0,.24)}
.appointment-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.settings-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start}.settings-sidebar{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:5px;max-height:calc(100vh - 190px);overflow:auto}.settings-sidebar small{font-weight:800;color:var(--muted);padding:16px 10px 6px;letter-spacing:.05em}.settings-sidebar button{border:0;background:transparent;text-align:left;border-radius:9px;padding:14px 12px;color:var(--ink);cursor:pointer}.settings-sidebar button:hover,.settings-sidebar button.active{background:#efedff;color:var(--brand);font-weight:700}.settings-content{min-height:540px}@media(max-width:760px){.settings-layout{grid-template-columns:1fr}.settings-sidebar{max-height:340px}.appointment-nav{align-items:flex-start;flex-direction:column}}
.sector-picker{display:flex;flex-direction:column;gap:5px;margin:0 8px 8px;color:#8f98b5;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.sector-picker select{width:100%;border:1px solid #2a3150;border-radius:9px;background:#151a2c;color:#fff;padding:9px 10px;text-transform:none;letter-spacing:0}.sector-badge{align-self:center}.import-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.import-lane{border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.import-lane h3,.import-lane p{margin:0}.import-lane p{color:var(--muted);font-size:13px;line-height:1.55;min-height:62px}.import-icon{display:grid;place-items:center;min-width:48px;height:40px;padding:0 8px;border-radius:9px;background:#efedff;color:var(--brand);font-weight:800}.import-badges{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:auto}.import-badges span,.mapping-grid span{border:1px solid var(--line);background:#f8f9fc;border-radius:7px;padding:6px 8px;font-size:11px}.drop-zone{margin-top:16px;border:2px dashed var(--line);border-radius:12px;padding:24px;text-align:center;display:flex;flex-direction:column;gap:6px;color:var(--muted)}.drop-zone strong{color:var(--ink)}.import-preview{margin-top:16px;border-top:1px solid var(--line);padding-top:18px}.import-warnings{background:#fff8e8;border:1px solid #f4d78c;border-radius:10px;padding:8px 12px;margin:10px 0}.import-warnings p{margin:4px 0;color:#8a5a00;font-size:12px}.mapping-grid{display:flex;gap:6px;flex-wrap:wrap;padding:10px 0}@media(max-width:900px){.import-lanes{grid-template-columns:1fr}.import-lane p{min-height:0}}@media(max-width:760px){.sector-picker{margin-bottom:12px}.import-preview .card-head{align-items:flex-start;flex-direction:column}}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:var(--sidebar) 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#0c1020;color:#fff;padding:20px 14px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:4px 10px 23px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#8277ff,#5143d8);font-size:20px;font-weight:800;box-shadow:0 8px 24px #5143d866}.brand div,.user div{display:flex;flex-direction:column}.brand small,.user small{color:#9ca3bd;font-size:11px;margin-top:2px}nav{display:flex;flex-direction:column;gap:4px;overflow:auto}.nav-group-title{padding:16px 12px 7px;color:#6f7896;font-size:10px;text-transform:uppercase;letter-spacing:.12em}.nav-button{width:100%;border:0;background:transparent;color:#aeb5cc;padding:11px 12px;border-radius:10px;text-align:left;display:flex;align-items:center;gap:11px}.nav-button:hover,.nav-button.active{background:#1b2035;color:#fff}.nav-button.active{box-shadow:inset 3px 0 var(--brand-2)}.nav-button span:first-child{width:20px;text-align:center}.nav-parent::after{content:"⌄";margin-left:auto}.nav-parent.open::after{transform:rotate(180deg)}.submenu{display:none;padding-left:16px}.submenu.open{display:block}.submenu .nav-button{font-size:13px;padding:9px 12px}.sidebar-bottom{margin-top:auto;border-top:1px solid #20263b;padding-top:12px}.user{display:flex;align-items:center;gap:10px;padding:16px 10px 4px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#2a3150;color:#c7c9ff;font-size:12px;font-weight:700}.main{min-width:0}.topbar{height:82px;padding:14px 28px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}h1{font-size:21px;margin:2px 0 0}.eyebrow{font-size:11px;color:var(--muted);margin:0;text-transform:uppercase;letter-spacing:.08em}.top-actions{display:flex;align-items:center;gap:10px}.global-search{display:flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--line);padding:9px 13px;border-radius:11px;width:290px}.global-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px}.icon-btn,.primary,.secondary,.danger,.success{border:0;border-radius:10px;padding:10px 14px}.icon-btn{background:var(--surface-2);border:1px solid var(--line);position:relative}.primary{background:var(--brand);color:#fff;box-shadow:0 7px 18px #6558e833}.secondary{background:#eef0f6;color:#34384b}.danger{background:#fff0f0;color:var(--danger)}.success{background:#eaf8f2;color:var(--success)}.notification-dot{position:absolute;right:7px;top:6px;width:7px;height:7px;background:var(--danger);border:2px solid #fff;border-radius:50%}.content{padding:26px 28px 60px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-head h2{font-size:24px;margin:0}.page-head p{color:var(--muted);margin:6px 0 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 4px 14px rgba(35,40,72,.04)}.metric-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.metric-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#efedff}.metric strong{display:block;font-size:25px;margin:11px 0 3px}.metric small{color:var(--muted)}.metric small.up{color:var(--success)}.grid-2{display:grid;grid-template-columns:1.35fr .65fr;gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 4px 14px rgba(35,40,72,.04)}.card+.card{margin-top:16px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.card h3{font-size:15px;margin:0}.muted{color:var(--muted)}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.control{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;min-height:39px}.control.search{min-width:260px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f8f9fc;color:#73798c;font-weight:600;text-align:left;padding:11px 13px;white-space:nowrap}td{padding:12px 13px;border-top:1px solid var(--line);vertical-align:middle}tbody tr{transition:.15s}tbody tr:hover{background:#fafaff}tbody tr.selected{background:#efedff}.badge{display:inline-flex;padding:5px 8px;border-radius:99px;font-size:11px;font-weight:650;background:#eff1f6;color:#5c6275}.badge.success{background:#e8f8f1;color:#078855}.badge.warn{background:#fff5dc;color:#b47100}.badge.danger{background:#ffebeb;color:#c7363b}.balance{font-variant-numeric:tabular-nums}.row-actions{display:flex;gap:5px}.mini{border:0;background:#f0f1f7;border-radius:8px;padding:7px 9px;color:#4a4f63}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:17px;margin:8px}.chart{height:190px;display:flex;align-items:flex-end;gap:10px;padding:20px 5px 5px}.bar{flex:1;background:linear-gradient(180deg,var(--brand-2),#c8c3ff);border-radius:7px 7px 2px 2px;min-height:10px;position:relative}.bar span{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted)}.activity{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.activity:last-child{border-bottom:0}.activity-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f0efff}.activity p{margin:0;font-size:13px}.activity small{color:var(--muted)}dialog{width:min(720px,calc(100vw - 28px));max-height:90vh;padding:0;border:0;border-radius:18px;box-shadow:0 30px 90px rgba(8,12,28,.35);overflow:hidden}dialog::backdrop{background:rgba(8,12,28,.58);backdrop-filter:blur(3px)}dialog form>header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line)}dialog h2{margin:3px 0 0;font-size:20px}.dialog-body{padding:22px;overflow:auto;max-height:66vh}dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;background:#fafbfc;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:650}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:10px;padding:10px;outline:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #6558e81c}.field textarea{min-height:82px;resize:vertical}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:17px}.tab{border:0;background:transparent;padding:10px 12px;color:var(--muted);border-bottom:2px solid transparent}.tab.active{color:var(--brand);border-color:var(--brand);font-weight:650}.product-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-tile{border:1px solid var(--line);padding:11px;border-radius:11px;display:flex;justify-content:space-between;align-items:center}.cart-line{display:grid;grid-template-columns:1fr 80px 110px 35px;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.appointment-board{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.day-column{background:#f7f8fc;border-radius:12px;padding:10px;min-height:340px}.day-column h3{font-size:12px;margin:2px 0 10px}.appointment{background:#fff;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:9px;padding:10px;margin-bottom:8px;font-size:12px;box-shadow:0 3px 10px #252b4710}.appointment strong{display:block;margin:4px 0}.toast-root{position:fixed;right:20px;bottom:20px;z-index:100;display:flex;flex-direction:column;gap:9px}.toast{width:min(360px,calc(100vw - 40px));background:#151a2c;color:#fff;border-radius:12px;padding:13px 15px;box-shadow:var(--shadow);display:flex;gap:10px;align-items:flex-start;animation:slidein .25s ease}.toast.success{border-left:4px solid var(--success)}.toast.error{border-left:4px solid var(--danger)}.toast.warning{border-left:4px solid var(--warn)}@keyframes slidein{from{transform:translateX(30px);opacity:0}}.context-menu{display:none;position:fixed;z-index:90;background:#fff;border:1px solid var(--line);border-radius:11px;padding:6px;box-shadow:var(--shadow);min-width:190px}.context-menu.open{display:block}.context-menu button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px}.context-menu button:hover{background:#f1f1f7}.context-menu-separator{border:0;border-top:1px solid var(--line);margin:5px 4px}.mobile-only{display:none}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.setting{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:12px}.switch{width:42px;height:24px;accent-color:var(--brand)}.kpi-inline{display:flex;gap:18px;flex-wrap:wrap}.kpi-inline div{padding:10px 0}.kpi-inline strong{display:block;font-size:18px}.print-only{display:none}
dialog.dialog-wide{width:min(1500px,calc(100vw - 42px));height:min(920px,calc(100vh - 42px))}dialog.dialog-wide .dialog-body{max-height:calc(100vh - 240px)}.c360-header{display:flex;align-items:center;gap:16px;margin-bottom:18px}.c360-header h2{margin:0 0 5px;font-size:22px}.c360-header p{margin:0;color:var(--muted)}.c360-header .primary{margin-left:auto}.c360-avatar{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-size:28px;font-weight:800}.c360-stats{display:flex;gap:20px;margin-bottom:14px}.c360-stat{width:210px;min-height:88px;border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;align-items:center;background:var(--surface)}.c360-stat>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#efedff}.c360-stat small{color:var(--muted);font-weight:700}.c360-stat strong{font-size:18px}.c360-currencies{display:flex;gap:20px;margin:10px 0 18px}.c360-currencies>div{width:140px;height:80px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface)}.c360-currencies small{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-bottom:9px}.c360-currencies strong{font-size:15px}.c360-tabs{overflow-x:auto;white-space:nowrap;margin-bottom:0}.c360-panel{display:none;min-height:330px;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;padding:14px}.c360-panel.active{display:block}.note-toolbar{display:flex;gap:6px;padding:8px;border:1px solid var(--line);border-radius:10px 10px 0 0;background:var(--surface-2)}.note-toolbar button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:6px 10px}
.customer-banners{height:52px;padding:8px 14px;margin-bottom:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.customer-banners button{border:0;border-radius:17px;background:var(--brand);color:#fff;font-size:12px;font-weight:800}.customer-banners button:hover,.customer-banners button.selected{background:#fff;color:var(--brand);box-shadow:inset 0 0 0 2px currentColor}.customer-banners .red{background:var(--danger)}.customer-banners .red:hover,.customer-banners .red.selected{color:var(--danger)}.customer-banners .amber{background:var(--warn)}.customer-banners .amber:hover,.customer-banners .amber.selected{color:#b47100}.customer-banners .green{background:var(--success)}.customer-card{padding:0;overflow:hidden}.customer-toolbar{height:52px;margin:0;padding:6px 14px;border-bottom:1px solid var(--line)}.customer-toolbar .mini{width:40px;height:40px}.toolbar-spacer{flex:1}.customer-footer{height:44px;display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:var(--surface-2);border-top:1px solid var(--line);color:var(--muted);font-size:12px}.customer-card .table-wrap{border:0;border-radius:0}
.dialog-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.dialog-module{display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:14px;min-height:108px}.dialog-module:hover{border-color:var(--brand);box-shadow:0 7px 18px #6558e81d}.dialog-module strong{color:var(--ink)}.dialog-module small{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.dialog-module span{margin-top:auto;color:var(--brand);font-size:11px}.dialog-placeholder{border:1px dashed var(--line);border-radius:10px;padding:30px;text-align:center;color:var(--muted);background:var(--surface-2)}details summary{cursor:pointer;font-weight:700;padding:10px 0}
@media(max-width:1050px){.metric-grid{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.global-search{display:none}.appointment-board{grid-template-columns:repeat(2,1fr)}.dialog-catalog{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;transform:translateX(-100%);transition:.2s;width:260px}.sidebar.open{transform:translateX(0)}.mobile-only{display:inline-block}.topbar{padding:12px 14px;height:76px}.topbar>div:first-of-type{margin-right:auto;margin-left:9px}.top-actions .primary{display:none}.content{padding:18px 14px 45px}.page-head{align-items:flex-start;gap:12px;flex-direction:column}.metric-grid{grid-template-columns:1fr 1fr}.metric{padding:14px}.metric strong{font-size:20px}.form-grid,.settings-grid,.product-picker{grid-template-columns:1fr}.field.full{grid-column:auto}.appointment-board{grid-template-columns:1fr}.cart-line{grid-template-columns:1fr 65px 90px 30px}}
@media print{.sidebar,.topbar,.actions,.toolbar,.row-actions,.tabs,dialog footer{display:none!important}.app-shell{display:block}.content{padding:0}.card{box-shadow:none;border:0}.print-only{display:block}}
.auth-brand-mark{cursor:pointer}.auth-brand-mark:hover{filter:brightness(1.08);box-shadow:0 10px 32px rgba(91,69,232,.62)}

/* Fast-note settings surface shares the desktop Midnight Enterprise Slate tokens. */
.quick-note-count{align-self:center;padding:5px 12px;border:1px solid var(--brand);border-radius:14px;background:var(--surface-2);color:var(--brand);font-size:12px;font-weight:700;white-space:nowrap}
.quick-note-profile-toolbar{display:flex;align-items:center;gap:12px;margin:14px 0;color:var(--muted);font-size:13px;font-weight:600}
.quick-note-profile-toolbar>label{display:flex;align-items:center;gap:12px;min-width:min(380px,100%)}
.quick-note-profile-toolbar select{min-width:180px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.quick-note-profile-toolbar select:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px #3b82f633}
.quick-notes-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) minmax(240px,1.35fr) auto;align-items:center;gap:12px;margin:18px 0 30px;color:var(--muted);font-size:13px;font-weight:600}
.quick-notes-toolbar>label{display:flex;align-items:center;gap:12px;min-width:0}
.quick-notes-toolbar select,.quick-notes-toolbar input{min-width:0;width:100%;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.quick-notes-toolbar input:focus,.quick-notes-toolbar select:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px #3b82f633}
.quick-note-tags{display:flex;align-items:center;gap:8px;white-space:nowrap}
.quick-note-tags button{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--ink);cursor:pointer}
.quick-note-tags button.active,.quick-note-tags button:hover{border-color:var(--brand);background:var(--brand);color:#fff}
#quickNotesHost .quick-notes-table{width:100%;border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
#quickNotesHost .quick-notes-table th{height:52px;padding:0 12px;background:#16243a;color:var(--muted);font-size:12px;font-weight:700;text-align:left}
#quickNotesHost .quick-notes-table td{height:60px;padding:8px 12px;border-top:1px solid var(--line);color:var(--ink);font-size:14px;vertical-align:middle}
#quickNotesHost .quick-notes-table th:first-child,#quickNotesHost .quick-notes-table td:first-child{width:60px;text-align:center}
#quickNotesHost .quick-notes-table th:nth-child(2){width:32%}
#quickNotesHost .quick-notes-table th:nth-child(4),#quickNotesHost .quick-notes-table td:nth-child(4){width:70px;text-align:center}
#quickNotesHost .quick-notes-table th:nth-child(5){width:120px}
#quickNotesHost .quick-notes-table th:last-child{width:110px}
#quickNotesHost .quick-note-inline-label,#quickNotesHost .quick-note-inline-order{box-sizing:border-box;width:100%;min-width:0;height:36px;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit}
#quickNotesHost .quick-note-inline-order{max-width:58px;text-align:center;font-variant-numeric:tabular-nums}
#quickNotesHost .quick-note-inline-label:hover,#quickNotesHost .quick-note-inline-order:hover{border-color:var(--line);background:var(--surface-2)}
#quickNotesHost .quick-note-inline-label:focus,#quickNotesHost .quick-note-inline-order:focus{outline:2px solid var(--brand);outline-offset:1px;background:var(--surface-2)}
#quickNotesHost .note-category{display:inline-flex;padding:5px 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);color:var(--brand);font-size:12px;font-weight:700;white-space:nowrap}
#quickNotesHost .note-category.phone{color:var(--brand-2)}
#quickNotesHost .note-category.security{color:#c084fc}
#quickNotesHost .note-broken{color:var(--danger)!important;font-weight:700}
#quickNotesHost .note-camera{color:var(--warn)!important;font-weight:700}
#quickNotesHost .quick-note-status{display:flex;align-items:center;gap:10px;color:var(--success);font-weight:700;white-space:nowrap}
#quickNotesHost .quick-note-toggle{accent-color:var(--brand)}
#quickNotesHost .quick-note-edit,#quickNotesHost .quick-note-delete{min-width:34px;height:32px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:18px}
#quickNotesHost .quick-note-edit:hover,#quickNotesHost .quick-note-delete:hover{border-color:var(--line);background:var(--surface-2);color:var(--ink)}

/* Premium visual polish */

/* Midnight Enterprise Slate sales surface */
.sales-grid{--sales-bg:#0b101e;--sales-surface:#131d36;--sales-card:#151f36;--sales-border:#1e2d4d;--sales-text:#e5e7eb;--sales-muted:#94a3b8;--sales-blue:#3b82f6;--sales-green:#10b981;background:var(--sales-bg);color:var(--sales-text);border:1px solid var(--sales-border);border-radius:12px;padding:14px}
.sales-grid .card{background:var(--sales-card);border-color:var(--sales-border);box-shadow:none;border-radius:12px}
.sales-grid .card h3,.sales-grid .card strong{color:var(--sales-text)}
.sales-grid .muted,.sales-grid small{color:var(--sales-muted)}
.sales-grid .control,.sales-grid select,.sales-grid input{background:#060e20;color:var(--sales-text);border-color:var(--sales-border)}
.sales-grid .control:focus,.sales-grid select:focus,.sales-grid input:focus{border-color:var(--sales-blue);box-shadow:0 0 0 3px #3b82f633}
.sales-grid .product-tile,.sales-grid .cart-line{background:#11192e;border-color:var(--sales-border);color:var(--sales-text)}
.sales-grid .product-tile:hover{border-color:var(--sales-blue);background:#172340}
.sales-grid .badge{background:#1e293b;color:var(--sales-muted)}
.sales-grid .badge.success{background:#064e3b;color:#6ee7b7}
.sales-grid .actions .primary{background:var(--sales-blue);box-shadow:none}
.sales-grid .actions .success{background:#10b981;color:#04130f}
.sales-grid .actions .secondary{background:#172340;color:var(--sales-text);border:1px solid var(--sales-border)}
@media(max-width:760px){.sales-grid{padding:10px}.sales-grid .product-picker{grid-template-columns:1fr}.sales-grid .cart-line{grid-template-columns:1fr 58px 84px 30px;gap:5px}}
:root{--shadow-soft:0 10px 30px rgba(25,32,58,.07);--shadow-card:0 16px 38px rgba(25,32,58,.08)}
body{background:radial-gradient(circle at 12% 0%,color-mix(in srgb,var(--brand) 7%,var(--bg)),var(--bg) 38%);letter-spacing:.005em}
.sidebar{box-shadow:12px 0 34px rgba(10,16,34,.08)}
.brand-mark{box-shadow:0 10px 26px color-mix(in srgb,var(--brand) 30%,transparent)}
.topbar{box-shadow:0 1px 0 color-mix(in srgb,var(--line) 70%,transparent),0 8px 24px rgba(25,32,58,.04)}
.content{max-width:1800px;margin:0 auto}
.page-head h2{letter-spacing:-.025em}
.card,.metric{box-shadow:var(--shadow-soft);transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.card:hover,.metric:hover{box-shadow:var(--shadow-card);border-color:color-mix(in srgb,var(--brand) 20%,var(--line))}
.metric{background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-2) 55%,var(--surface)))}
.metric strong{letter-spacing:-.035em}
.primary,.success,.danger,.secondary,.icon-btn{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.primary:hover,.success:hover,.danger:hover,.secondary:hover,.icon-btn:hover{transform:translateY(-1px);filter:brightness(1.02)}
.primary:hover{box-shadow:0 10px 24px color-mix(in srgb,var(--brand) 24%,transparent)}
.table-wrap{box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
th{font-size:11px;letter-spacing:.045em;text-transform:uppercase}
tbody tr{transition:background .15s ease,box-shadow .15s ease}
tbody tr:hover{box-shadow:inset 3px 0 var(--brand-2)}
.toast{backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12)}
.auth-shell{box-shadow:0 30px 90px rgba(4,8,24,.28)}
.auth-panel{background:color-mix(in srgb,var(--surface) 96%,transparent)}
.auth-form input,.auth-form select{transition:border-color .16s ease,box-shadow .16s ease}
.auth-form input:focus,.auth-form select:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 13%,transparent)}
.auth-top-nav{position:absolute;top:20px;right:24px;z-index:5;display:flex;align-items:center;gap:8px}.auth-top-nav button{border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:9px 14px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(12px)}.auth-top-nav .auth-nav-login{background:#fff;color:#20164e;border-color:#fff}.auth-top-nav .auth-nav-register{background:linear-gradient(135deg,#8c7bff,#5b45e8);border-color:transparent}.auth-top-nav button:hover{transform:translateY(-1px);filter:brightness(1.08)}.auth-programs-panel{position:absolute;top:68px;right:24px;z-index:6;width:min(620px,calc(100% - 48px));padding:22px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(14,18,43,.96);color:#fff;box-shadow:0 24px 70px rgba(3,5,18,.45);backdrop-filter:blur(18px)}.auth-programs-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.auth-programs-head h2{margin:5px 0 4px;font-size:26px}.auth-programs-head p{margin:0;color:#b8c2dc;font-size:13px}.auth-programs-close{border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;width:32px;height:32px;font-size:20px}.auth-program-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.auth-program-card{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.auth-program-card:hover{transform:translateY(-2px);background:rgba(140,123,255,.18);border-color:#8c7bff}.auth-program-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#8c7bff,#5b45e8);font-size:11px;font-weight:900}.auth-program-card strong,.auth-program-card small{display:block}.auth-program-card strong{font-size:12px}.auth-program-card small{margin-top:3px;color:#aeb8d5;font-size:10px}.auth-program-card b{margin-left:auto;color:#9b8cff}.auth-program-note{display:block;margin-top:14px;color:#8f9bbc;font-size:10px}.auth-program-note code{color:#d9d5ff}@media(max-width:820px){.auth-top-nav{top:14px;right:16px}.auth-top-nav button{padding:8px 10px}.auth-programs-panel{top:58px;right:16px;width:calc(100% - 32px)}.auth-program-grid{grid-template-columns:1fr}.auth-brand{padding-right:190px}}
.danger-outline{background:#fff;color:var(--danger);border:1px solid #efb8ba}.danger-outline:hover{background:#fff0f0}.import-preview td .row-actions{min-width:128px}@media(max-width:760px){.import-preview .card-head .actions{width:100%}.import-preview .card-head .actions button{flex:1}}
.brand-mark{overflow:hidden;position:relative}.brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:9px}.brand-mark img[hidden]{display:none}.service-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.service-status-card{position:relative;min-height:96px;border:1px solid var(--line);border-left:4px solid var(--tile);border-radius:14px;background:var(--surface);padding:14px 16px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;text-align:left;box-shadow:0 4px 14px rgba(35,40,72,.04);color:var(--ink)}.service-status-card:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(35,40,72,.09)}.service-status-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--tile) 12%,white);color:var(--tile);font-weight:800}.service-status-card small,.service-status-card strong,.service-status-card em{display:block}.service-status-card small{font-size:11px;color:var(--muted);font-weight:800}.service-status-card strong{font-size:18px;margin:5px 0}.service-status-card em{font-size:10px;color:var(--tile);font-style:normal}.service-status-card>b{align-self:start;color:var(--tile);font-size:11px}.dashboard-filter-strip{display:flex;gap:7px;overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-top:3px solid #d97706;border-radius:14px;padding:12px 18px;margin-bottom:18px;scrollbar-width:thin}.dashboard-filter{flex:0 0 105px;min-height:58px;border:1px solid #dce1eb;border-radius:12px;background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:700}.dashboard-filter b{color:var(--brand)}.dashboard-filter:hover,.dashboard-filter.active{background:linear-gradient(135deg,#b000ff,#7654f4);color:#fff;border-color:transparent}.dashboard-filter.active b,.dashboard-filter:hover b{color:#fff}.dashboard-list-card{padding:14px}.dashboard-service-table table{min-width:1380px}.dashboard-row-actions{display:flex;gap:4px}.company-logo-card{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:20px;background:linear-gradient(135deg,#fafaff,#f5f7fb)}.company-logo-preview{height:110px;border:2px dashed var(--line);border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;color:var(--muted);font-size:12px}.company-logo-preview>*{grid-area:1/1}.company-logo-preview img{max-width:100%;max-height:100%;object-fit:contain;padding:8px;background:#fff}.company-logo-card h3{margin:0 0 6px}.company-logo-card p{margin:0 0 13px;line-height:1.5}.proforma-options{display:grid;grid-template-columns:1.2fr 1fr .6fr;gap:9px;margin:16px 0}.proforma-options input,.proforma-options select{border:1px solid var(--line);border-radius:10px;padding:9px;min-width:0}.proforma-template-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}.proforma-template-picker button{border:1px solid var(--line);border-radius:11px;background:#fff;padding:11px;text-align:left}.proforma-template-picker button.active{border-color:var(--brand);box-shadow:0 0 0 2px #6558e822;background:#f7f5ff}.proforma-template-picker strong,.proforma-template-picker small{display:block}.proforma-template-picker small{color:var(--muted);margin-top:4px}.proforma-viewer iframe{display:block;width:100%;height:calc(100vh - 430px);min-height:280px;border:1px solid var(--line);border-radius:12px;background:#59606d}.sales-actions{margin-top:12px}
@media(max-width:1350px){.sales-grid{grid-template-columns:1fr}.sales-grid>*{min-width:0}.sales-grid .product-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-grid .product-tile{min-width:0}.sales-grid .product-tile strong{overflow-wrap:anywhere}}
@media(max-width:1100px){.service-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.proforma-options{grid-template-columns:1fr 1fr}.proforma-options .field:last-child{grid-column:1/-1}}
@media(max-width:760px){.service-status-grid{grid-template-columns:1fr 1fr;gap:8px}.service-status-card{min-height:105px;padding:11px;grid-template-columns:32px 1fr}.service-status-card>b{display:none}.service-status-icon{width:32px;height:32px}.service-status-card strong{font-size:15px}.dashboard-filter-strip{padding:10px}.dashboard-filter{flex-basis:92px}.company-logo-card{grid-template-columns:1fr}.company-logo-preview{height:120px}.proforma-template-picker{grid-template-columns:1fr}.proforma-viewer iframe{height:calc(100vh - 390px);min-height:260px}.proforma-options{grid-template-columns:1fr}.proforma-options .field:last-child{grid-column:auto}.sales-actions>*{flex:1 1 100%}}

/* Desktop parity v4: modern navigation, themes, interface editor and service workspace. */
:root{--sidebar-bg:#0a1020;--sidebar-panel:#171f34;--input-bg:#fff;--topbar-bg:rgba(255,255,255,.94);--hover:#f8f7ff}
html[data-theme="dark"]{--bg:#111827;--surface:#182235;--surface-2:#202b40;--ink:#edf2ff;--muted:#a9b4c8;--line:#303d55;--brand:#8b7cf6;--brand-2:#a79df8;--input-bg:#131c2d;--topbar-bg:rgba(24,34,53,.94);--hover:#222e45;--sidebar-bg:#070b14;--sidebar-panel:#182237}
html[data-theme="midnight"]{--bg:#080e1a;--surface:#0d1829;--surface-2:#101a2b;--ink:#e2e8f0;--muted:#94a3b8;--line:#1b2a42;--brand:#2563eb;--brand-2:#1d4ed8;--success:#4edea3;--warn:#fbbf24;--input-bg:#101a2b;--topbar-bg:rgba(8,14,26,.96);--hover:#152338;--sidebar-bg:#080e1a;--sidebar-panel:#0d1829}
html[data-theme="sakura"]{--bg:#fff5f8;--surface:#fff;--surface-2:#fff8fb;--ink:#38232d;--muted:#8c6d7a;--line:#f0dce5;--brand:#d94f86;--brand-2:#ed84ad;--input-bg:#fff;--topbar-bg:rgba(255,255,255,.94);--hover:#fff0f6;--sidebar-bg:#321424;--sidebar-panel:#532039}
html[data-theme="sunset"]{--bg:#fff7ed;--surface:#fff;--surface-2:#fffaf3;--ink:#3f281c;--muted:#8c715f;--line:#f0ddcb;--brand:#e35d30;--brand-2:#f59e4a;--input-bg:#fff;--topbar-bg:rgba(255,255,255,.94);--hover:#fff2e7;--sidebar-bg:#32170e;--sidebar-panel:#542416}
html[data-theme="terra"]{--bg:#f5f1eb;--surface:#fffdfa;--surface-2:#f8f4ee;--ink:#302923;--muted:#786c61;--line:#dfd6ca;--brand:#96644a;--brand-2:#c48768;--input-bg:#fffdfa;--topbar-bg:rgba(255,253,250,.94);--hover:#f6eee7;--sidebar-bg:#28211c;--sidebar-panel:#44372e}
html[data-theme="neon"]{--bg:#080914;--surface:#101322;--surface-2:#171a2c;--ink:#f1f4ff;--muted:#9aa5c0;--line:#293052;--brand:#8b5cf6;--brand-2:#22d3ee;--success:#2ce8a0;--input-bg:#0b0e1b;--topbar-bg:rgba(16,19,34,.94);--hover:#1b2040;--sidebar-bg:#03040b;--sidebar-panel:#161a31}
 .sidebar{background:linear-gradient(180deg,var(--sidebar-bg),color-mix(in srgb,var(--sidebar-bg) 86%,#152044));border-right:1px solid color-mix(in srgb,var(--line) 25%,transparent);padding:16px 12px}.topbar{background:var(--topbar-bg)}.nav-group-title{display:flex;align-items:center;gap:8px;padding:18px 10px 7px;font-weight:750;color:#7f8baa}.nav-group-title::after{content:"";height:1px;flex:1;background:rgba(255,255,255,.07)}.nav-button{position:relative;min-height:42px;padding:9px 10px;border-radius:11px;transition:background .16s,color .16s}.nav-button:hover{background:var(--sidebar-panel)}.nav-button.active{background:linear-gradient(100deg,color-mix(in srgb,var(--brand) 34%,var(--sidebar-panel)),var(--sidebar-panel));box-shadow:inset 3px 0 var(--brand-2),0 8px 22px rgba(0,0,0,.13)}.nav-icon{width:29px!important;height:29px;border-radius:9px;display:grid!important;place-items:center;background:rgba(255,255,255,.07);font-size:14px;flex:0 0 29px}.nav-button.active .nav-icon,.nav-button:hover .nav-icon{background:color-mix(in srgb,var(--brand) 32%,transparent);color:#fff}.submenu{padding:3px 0 5px 23px;margin-left:14px;border-left:1px solid rgba(255,255,255,.09)}.submenu .nav-button{min-height:34px;padding:7px 10px}.submenu .nav-icon{width:20px!important;height:20px;font-size:9px;background:transparent}.topbar-tool{display:flex;align-items:center;gap:7px;min-height:40px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--ink);padding:8px 12px}.topbar-tool:hover{border-color:var(--brand);color:var(--brand)}.topbar-tool b{font-size:12px;white-space:nowrap}.control,.field input,.field select,.field textarea,.global-search,.topbar-tool,.icon-btn{background:var(--input-bg);color:var(--ink)}.global-search input{color:var(--ink)}.card,.metric,.product-tile,.service-status-card,.company-logo-card,dialog,.context-menu{background:var(--surface);color:var(--ink)}th,.dashboard-filter,dialog footer,.customer-footer,.note-toolbar{background:var(--surface-2);color:var(--muted)}tbody tr:hover{background:var(--hover)}.secondary,.mini{background:var(--surface-2);color:var(--ink)}.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.theme-choice{border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);padding:12px;text-align:left}.theme-choice.active{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent)}.theme-swatch{height:52px;border-radius:9px;margin-bottom:9px;background:linear-gradient(135deg,var(--swatch-a),var(--swatch-b))}.interface-editor{display:grid;grid-template-columns:1fr 1fr;gap:10px}.interface-row{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:9px}.interface-row span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2)}.interface-row input{width:100%;border:1px solid var(--line);background:var(--input-bg);color:var(--ink);border-radius:8px;padding:8px}.sales-currency-bar{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);margin-bottom:13px}.rate-note{font-size:11px;color:var(--muted);padding:0 2px 9px}.currency-total small{display:block;color:var(--muted);margin-top:5px}.service-workspace{display:grid;grid-template-columns:1fr 1fr;gap:14px}.service-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.service-summary div{border:1px solid var(--line);border-radius:11px;padding:11px;background:var(--surface-2)}.service-summary small,.service-summary strong{display:block}.service-summary small{color:var(--muted);margin-bottom:5px}.used-parts-list{margin-top:12px}.used-part{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:8px 0}.technician-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface);display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:center;margin-bottom:9px}.technician-card .activity-icon{width:46px;height:46px}.technician-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.technician-meta span{font-size:11px;color:var(--muted)}
@media(max-width:1250px){.topbar-tool b{display:none}.topbar-tool{padding:9px 11px}.global-search{width:240px}}
@media(max-width:760px){.top-actions{gap:6px}.topbar-tool{min-width:38px;padding:8px}.top-actions .icon-btn{padding:9px}.theme-grid{grid-template-columns:repeat(2,1fr)}.interface-editor,.service-workspace{grid-template-columns:1fr}.sales-currency-bar{grid-template-columns:minmax(0,1fr)}.sales-currency-bar .field,.sales-currency-bar input,.sales-currency-bar select{min-width:0;width:100%}.rate-note{grid-column:auto;padding-bottom:0}.technician-card{grid-template-columns:38px minmax(0,1fr)}.technician-card>.actions{grid-column:1/-1}.topbar h1{font-size:17px}.topbar .eyebrow{display:none}}
@media print{body.service-form-open .app-shell,body.service-form-open .toast-root,body.service-form-open .context-menu{display:none!important}body.service-form-open dialog.service-print-dialog{position:static;display:block!important;width:100%!important;height:auto!important;max-height:none!important;box-shadow:none;border-radius:0}body.service-form-open dialog.service-print-dialog::backdrop{display:none}body.service-form-open dialog.service-print-dialog .dialog-body{max-height:none;padding:12px}body.service-form-open dialog.service-print-dialog form>header{padding:12px 0}body.service-form-open dialog.service-print-dialog form>header .icon-btn{display:none}.service-workspace{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.toast-root{left:12px;right:auto;width:min(360px,calc(100vw - 24px))}.toast-root .toast{width:100%;max-width:100%;animation:slidein-mobile .25s ease}}@keyframes slidein-mobile{from{transform:translateY(8px);opacity:0}}
.maintenance-form{min-width:0}.maintenance-items{border:1px solid var(--line);border-radius:11px;overflow:auto}.maintenance-item{display:grid;grid-template-columns:70px minmax(150px,1.4fr) minmax(105px,.7fr) minmax(105px,.7fr) minmax(138px,1fr) minmax(120px,.8fr);gap:8px;align-items:center;padding:9px 10px;border-top:1px solid var(--line);min-width:860px}.maintenance-item:first-child{border-top:0}.maintenance-item-head{background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:700}.maintenance-item input{min-width:0}.maintenance-item input[type="checkbox"]{width:20px;height:20px;justify-self:center;accent-color:var(--brand)}dialog:has(.maintenance-form){width:min(1120px,calc(100vw - 28px))}.maintenance-form+.muted{display:block;margin-top:7px}
@media(max-width:760px){.maintenance-item{grid-template-columns:42px minmax(130px,1fr) 100px 100px 135px 115px}.maintenance-item-head span:first-child{font-size:0}.maintenance-item-head span:first-child::after{content:"OK";font-size:10px}dialog:has(.maintenance-form){width:calc(100vw - 12px)}}
.maintenance-photo-gallery{display:grid;gap:14px}.maintenance-photo-gallery>header,.maintenance-photo-gallery>footer{display:flex;align-items:center;gap:10px;justify-content:space-between}.maintenance-photo-gallery>header label{display:grid;gap:5px;color:var(--muted);font-size:12px}.maintenance-photo-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:9px;color:var(--text);cursor:pointer}.maintenance-photo-pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.maintenance-photo-preview{height:min(420px,52vh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden;border-radius:12px;background:#111827;color:#cbd5e1;text-align:center;padding:10px}.maintenance-photo-preview img{max-width:100%;max-height:100%;object-fit:contain}.maintenance-photo-gallery>footer{justify-content:center}.maintenance-photo-gallery>footer span{min-width:70px;text-align:center;font-variant-numeric:tabular-nums}dialog:has(.maintenance-photo-gallery){width:min(960px,calc(100vw - 28px))}

/* Web account, first-run wizard, menu visibility and Wipe All. */
input.switch{appearance:none!important;-webkit-appearance:none!important;width:44px!important;height:24px!important;min-width:44px;border:0!important;border-radius:999px!important;padding:2px!important;background:#cbd1df!important;box-shadow:inset 0 0 0 1px rgba(20,28,48,.08);position:relative;transition:.18s;cursor:pointer;vertical-align:middle}
input.switch::before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(20,28,48,.25);transition:transform .18s}
input.switch:checked{background:var(--brand)!important}
input.switch:checked::before{transform:translateX(20px)}
input.switch:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 25%,transparent);outline-offset:2px}
.user{min-width:0}.user>div{min-width:0}.user strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:128px}.user-logout{margin-left:auto;width:32px;height:32px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.06);color:#aeb5cc}.user-logout:hover{background:#3b1d2a;color:#ffb5bb}
.user-profile{min-width:0;flex:1;display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:inherit;text-align:left}.user-profile>span:last-child{min-width:0;display:flex;flex-direction:column}.user-profile:hover strong{color:#fff}.profile-help{margin:18px 0 0;padding:12px 14px;border-left:3px solid var(--brand);border-radius:0 9px 9px 0;background:var(--surface-2);color:var(--muted);font-size:12px}
.interface-row{grid-template-columns:34px minmax(0,1fr) 46px!important;transition:opacity .18s,border-color .18s}.interface-row>div{min-width:0}.interface-row>div input{display:block}.interface-row small{display:block;color:var(--success);font-size:10px;margin:5px 2px 0}.interface-row.menu-disabled{opacity:.58;border-style:dashed}.interface-row.menu-disabled small{color:var(--danger)}.interface-row .menu-visibility-toggle{width:44px!important;height:24px!important;padding:2px!important}.interface-icon{width:30px!important}
.danger-zone{display:grid;grid-template-columns:54px 1fr;gap:18px;align-items:start;border:1px solid #efb8ba;border-radius:16px;padding:22px;background:linear-gradient(135deg,#fff8f8,#fff)}.danger-zone-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:#ffe7e8;color:var(--danger);font-size:24px;font-weight:900}.danger-zone h3{font-size:20px;margin:4px 0 8px}.danger-zone p{color:#6f4750;line-height:1.6}.danger-zone ul{color:#6f4750;line-height:1.7;padding-left:20px}.danger-solid{background:var(--danger);color:#fff;box-shadow:0 8px 20px rgba(229,72,77,.22)}.wipe-warning{border:1px solid #efb8ba;background:#fff3f3;color:#7f2f35;border-radius:12px;padding:14px;margin-bottom:16px}.wipe-warning p{margin:5px 0 0}
.auth-root{position:fixed;inset:0;z-index:1000;overflow:auto;padding:32px;background:radial-gradient(circle at 12% 12%,rgba(119,92,255,.28),transparent 32%),radial-gradient(circle at 88% 88%,rgba(37,202,211,.16),transparent 30%),#080d1b;color:#eaf0ff;display:grid;place-items:center}.auth-root[hidden]{display:none}.auth-shell{width:min(1120px,100%);min-height:min(760px,calc(100svh - 64px));display:grid;grid-template-columns:.92fr 1.08fr;border:1px solid rgba(255,255,255,.12);border-radius:28px;overflow:hidden;background:#11182a;box-shadow:0 36px 100px rgba(0,0,0,.48)}
.auth-showcase{position:relative;overflow:hidden;padding:38px;display:flex;flex-direction:column;background:linear-gradient(155deg,#121a33 0%,#16123d 58%,#251353 100%)}.auth-showcase::before,.auth-showcase::after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.auth-showcase::before{width:320px;height:320px;right:-140px;top:120px;background:rgba(126,95,255,.22)}.auth-showcase::after{width:220px;height:220px;left:-100px;bottom:-70px;background:rgba(34,211,238,.13)}.auth-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}.auth-brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#8c7bff,#5b45e8);font-size:23px;font-weight:900;box-shadow:0 10px 28px rgba(91,69,232,.45)}.auth-brand>div{display:flex;flex-direction:column}.auth-brand strong{font-size:18px}.auth-brand small{color:#aeb8d5;margin-top:3px}.auth-showcase-copy{margin:auto 0;position:relative;z-index:1}.auth-kicker,.auth-step-label{display:block;color:#9b8cff;font-size:11px;font-weight:800;letter-spacing:.14em}.auth-showcase h1{font-size:clamp(36px,4.2vw,58px);line-height:1.04;margin:18px 0;max-width:520px}.auth-showcase p{font-size:16px;line-height:1.7;color:#b8c2dc;max-width:470px}.auth-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:28px}.auth-feature-grid span{padding:12px 14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);border-radius:12px;color:#dce3f7;font-size:12px}.auth-server{position:relative;z-index:1;display:flex;align-items:center;gap:9px;color:#93a0bf;font-size:11px}.auth-server i{width:8px;height:8px;border-radius:50%;background:#2ce8a0;box-shadow:0 0 0 5px rgba(44,232,160,.1)}
.auth-panel{background:#fff;color:#172035;padding:clamp(28px,5vw,64px);display:grid;align-items:center}.auth-form-wrap,.wizard-wrap{width:min(520px,100%);margin:auto}.auth-form-head h2,.wizard-top h2{font-size:30px;margin:9px 0}.auth-form-head p{color:#737b8e;line-height:1.55;margin:0 0 22px}.auth-form{display:flex;flex-direction:column;gap:15px}.auth-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:#394158}.auth-form input,.auth-form select,.auth-form textarea{width:100%;border:1px solid #dce1eb;border-radius:11px;padding:12px 13px;background:#fff;color:#172035;outline:none}.auth-form input:focus,.auth-form select:focus,.auth-form textarea:focus{border-color:#6b5ce7;box-shadow:0 0 0 3px rgba(107,92,231,.12)}.auth-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-form-grid .full{grid-column:1/-1}.password-control{position:relative}.password-control input{padding-right:46px}.password-control button{position:absolute;right:5px;top:5px;width:34px;height:34px;border:0;border-radius:8px;background:#f0f1f7;color:#626b80}.remember-row{flex-direction:row!important;align-items:center!important;gap:11px!important;border:1px solid #e2e5ed;border-radius:12px;padding:11px 12px}.remember-row>span{display:flex;flex-direction:column}.remember-row small{font-weight:400;color:#7b8395;margin-top:2px}.auth-submit{width:100%;min-height:46px;font-weight:800;margin-top:2px}.auth-switch{text-align:center;color:#737b8e;font-size:13px;margin:18px 0 0}.auth-switch button,.auth-back{border:0;background:transparent;color:#6558e8;font-weight:800;padding:3px}.auth-back{margin:0 0 18px -4px}.auth-help,.auth-note{margin-top:20px;padding:12px 14px;background:#f5f6fa;border-radius:10px;color:#737b8e;font-size:11px;line-height:1.55}.auth-alert{border-radius:11px;padding:12px 14px;margin:0 0 17px;font-size:12px;line-height:1.5;background:#eef3ff;color:#425579}.auth-alert.error{background:#fff0f0;color:#a4323a;border:1px solid #f2c4c6}.auth-alert.success{background:#eaf8f2;color:#087c4b;border:1px solid #bde8d5}.auth-alert.warning{background:#fff8e7;color:#8a5a00;border:1px solid #f1d48b}.password-hint{color:#7b8395;font-size:11px;margin-top:-6px}
.wizard-top{display:flex;justify-content:space-between;gap:20px;align-items:start}.wizard-count{padding:7px 10px;border-radius:9px;background:#f0edff;color:#6558e8;font-size:11px;font-weight:900}.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:22px 0 28px}.wizard-progress span{display:flex;flex-direction:column;align-items:center;gap:7px;position:relative;text-align:center;color:#9aa1af}.wizard-progress span::before{content:"";position:absolute;left:-50%;right:50%;top:14px;height:2px;background:#e2e5ed}.wizard-progress span:first-child::before{display:none}.wizard-progress i{position:relative;z-index:1;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#e9ebf1;color:#8a91a0;font-style:normal;font-size:11px;font-weight:900}.wizard-progress small{font-size:9px}.wizard-progress span.active{color:#6558e8}.wizard-progress span.active::before,.wizard-progress span.active i{background:#6558e8;color:#fff}.wizard-form{min-height:380px}.wizard-welcome{text-align:center}.wizard-welcome h2{font-size:27px;margin:15px 0 8px}.wizard-welcome>p{color:#737b8e;line-height:1.55}.wizard-orbit{width:78px;height:78px;margin:auto;border-radius:24px;display:grid;place-items:center;background:linear-gradient(145deg,#efeaff,#e9f8ff);transform:rotate(8deg)}.wizard-orbit span{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#806cff,#5842df);color:#fff;font-size:27px;font-weight:900;transform:rotate(-8deg);box-shadow:0 12px 25px rgba(88,66,223,.28)}.sector-choice{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px;text-align:left}.sector-choice label{position:relative}.sector-choice input{position:absolute;opacity:0}.sector-choice span{display:flex;flex-direction:column;min-height:92px;padding:15px;border:1px solid #dde1eb;border-radius:13px;background:#fff}.sector-choice small{color:#7b8395;line-height:1.45;margin-top:6px}.sector-choice input:checked+span{border-color:#6558e8;background:#f8f6ff;box-shadow:0 0 0 3px rgba(101,88,232,.1)}.wizard-actions{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:22px}.wizard-actions button{min-width:120px}.smtp-intro{display:flex;align-items:center;gap:13px;padding:13px;border-radius:12px;background:#f6f4ff;margin-bottom:15px}.smtp-intro>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#e8e3ff}.smtp-intro h3,.smtp-intro p{margin:0}.smtp-intro p{font-size:11px;color:#737b8e;margin-top:3px}
@media(max-width:820px){.auth-root{padding:0;display:block;background:#fff}.auth-shell{min-height:100svh;border:0;border-radius:0;display:block}.auth-showcase{padding:18px 20px;min-height:112px}.auth-showcase-copy,.auth-feature-grid,.auth-server{display:none}.auth-panel{padding:26px 20px;min-height:calc(100svh - 112px);align-items:start}.auth-brand-mark{width:40px;height:40px}.auth-form-head h2,.wizard-top h2{font-size:25px}.wizard-progress small{display:none}.wizard-form{min-height:0}.auth-form-grid,.sector-choice{grid-template-columns:1fr}.auth-form-grid .full{grid-column:auto}.wizard-actions{position:sticky;bottom:-26px;background:#fff;padding:16px 0 26px}.interface-row{grid-template-columns:34px minmax(0,1fr) 46px!important}.danger-zone{grid-template-columns:1fr}.danger-zone-icon{width:44px;height:44px}}
.mobile-overlay{display:none}
.mobile-nav-search{display:none}
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:hidden}
 .main,.content,.page-head,.card,.metric,.grid-2,.service-workspace{min-width:0;max-width:100%}
 .page-head,.card-head{flex-wrap:wrap}
 .table-wrap{max-width:100%}
 body.mobile-menu-open{overflow:hidden}
 .mobile-overlay{display:block;position:fixed;inset:0;background:rgba(5,9,22,.52);backdrop-filter:blur(2px);z-index:70;opacity:0;pointer-events:none;transition:opacity .2s ease}
 .mobile-overlay.open{opacity:1;pointer-events:auto}
 .sidebar{position:fixed;top:0;left:0;bottom:0;width:min(86vw,320px);height:100svh;max-height:100svh;padding:18px 12px;z-index:80;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 42px rgba(0,0,0,.28);overscroll-behavior:contain}
 .sidebar.open{transform:translateX(0)}
 .sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .sidebar-bottom{background:linear-gradient(180deg,transparent 0,var(--sidebar-bg) 18%);padding-top:18px}
 .topbar{position:sticky;z-index:120}
 #menuToggle{position:relative;z-index:130;min-width:44px;min-height:44px;font-size:21px;pointer-events:auto!important;touch-action:manipulation}
}

@media(max-width:760px){
 [data-page="finance"] .finance-table tr,
 [data-page="income"] .finance-table tr,
 [data-page="expense"] .finance-table tr{display:block;padding:10px}
 [data-page="finance"] .finance-table td,
 [data-page="income"] .finance-table td,
 [data-page="expense"] .finance-table td{display:grid!important;grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:8px;align-items:start;padding:5px 0!important;border-bottom:1px solid var(--line);text-align:right;white-space:normal}
 [data-page="finance"] .finance-table td::before,
 [data-page="income"] .finance-table td::before,
 [data-page="expense"] .finance-table td::before{content:attr(data-label);color:var(--muted);font-weight:600;text-align:left}
 [data-page="finance"] .finance-table .finance-action,
 [data-page="income"] .finance-table .finance-action,
 [data-page="expense"] .finance-table .finance-action{display:block!important;border-bottom:0;padding-top:9px!important}
 [data-page="finance"] .finance-table .finance-action::before,
 [data-page="income"] .finance-table .finance-action::before,
 [data-page="expense"] .finance-table .finance-action::before{display:none}
 [data-page="finance"] .finance-table .finance-action button,
 [data-page="income"] .finance-table .finance-action button,
 [data-page="expense"] .finance-table .finance-action button{width:100%;min-height:38px}
}

/* Generic desktop tables (appointments, reminders, settings and other
   modules) use the same touch-card treatment as the primary screens. */
@media(max-width:760px){
 #genericHost .table-wrap:not(.checks-reference-table),#quickNotesHost .table-wrap,#settingsUsersHost .table-wrap{overflow:visible;border:0}
 #genericHost .table-wrap:not(.checks-reference-table) table,#quickNotesHost .table-wrap table,#settingsUsersHost .table-wrap table{display:block;min-width:0;table-layout:fixed;font-size:12px}
 #genericHost .table-wrap:not(.checks-reference-table) thead,#quickNotesHost .table-wrap thead,#settingsUsersHost .table-wrap thead{display:none}
 #genericHost .table-wrap:not(.checks-reference-table) tbody,#quickNotesHost .table-wrap tbody,#settingsUsersHost .table-wrap tbody{display:grid;gap:8px}
 #genericHost .table-wrap:not(.checks-reference-table) tr,#quickNotesHost .table-wrap tr,#settingsUsersHost .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 #genericHost .table-wrap:not(.checks-reference-table) td,#quickNotesHost .table-wrap td,#settingsUsersHost .table-wrap td{padding:0;border:0;min-width:0;word-break:break-word}
 #genericHost .table-wrap:not(.checks-reference-table) td:last-child,#quickNotesHost .table-wrap td:last-child,#settingsUsersHost .table-wrap td:last-child{grid-column:1/-1;justify-self:end}
 .quick-note-profile-toolbar{flex-wrap:wrap;align-items:stretch}
 .quick-note-profile-toolbar>label{width:100%;justify-content:space-between}
 .quick-note-profile-toolbar select{flex:1;min-width:0}
 .quick-notes-toolbar{grid-template-columns:1fr;gap:10px;margin:14px 0 18px}
 .quick-notes-toolbar>label{justify-content:space-between}
 .quick-notes-toolbar select,.quick-notes-toolbar input{flex:1}
 .quick-note-tags{flex-wrap:wrap;white-space:normal}
 #quickNotesHost .quick-notes-table td::before{content:attr(data-label);display:block;margin:0 0 4px;color:var(--muted);font-size:11px;font-weight:700}
 #quickNotesHost .quick-notes-table td[data-label="Kategori"] strong{display:inline-block;margin-top:5px}
 #quickNotesHost .quick-note-status{justify-content:flex-end}
}

/* The drawer has its own close target on touch screens. */
.mobile-drawer-close{display:none}
@media(max-width:760px){
 .mobile-drawer-close{display:grid;place-items:center;position:absolute;top:14px;right:12px;width:40px;height:40px;border:1px solid rgba(255,255,255,.15);border-radius:11px;background:rgba(255,255,255,.08);color:#fff;font-size:26px;line-height:1;z-index:2;cursor:pointer}
 .brand{padding-right:50px}
 .mobile-overlay.open{z-index:100}
 .sidebar{z-index:140!important}
.sidebar.open{transform:translate3d(0,0,0)!important;visibility:visible!important}
}

.payment-debt-summary{border:1px solid #d9e8df;border-radius:10px;padding:11px 13px;background:#f2fbf6;color:#16734d;font-weight:700;font-size:12px}.payment-debt-summary.warning{border-color:#f0d18a;background:#fff9e8;color:#8a5a00}.finance-detail{margin-bottom:16px;border:1px solid var(--line,#e1e5ee);border-radius:12px;padding:12px 14px;background:#fafbfe}.finance-detail summary{cursor:pointer;font-weight:800;color:#33405a}.finance-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.finance-detail-grid span{display:flex;flex-direction:column;gap:4px;color:#7b8395;font-size:11px}.finance-detail-grid strong{color:#172035;font-size:12px;word-break:break-word}@media(max-width:760px){.finance-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-theme="dark"] .import-icon,html[data-theme="midnight"] .import-icon,html[data-theme="neon"] .import-icon{background:color-mix(in srgb,var(--brand) 22%,var(--surface-2));color:var(--brand-2)}html[data-theme="dark"] .import-badges span,html[data-theme="midnight"] .import-badges span,html[data-theme="neon"] .import-badges span,html[data-theme="dark"] .mapping-grid span,html[data-theme="midnight"] .mapping-grid span,html[data-theme="neon"] .mapping-grid span{background:var(--surface-2);border-color:var(--line);color:var(--ink)}html[data-theme="dark"] .drop-zone,html[data-theme="midnight"] .drop-zone,html[data-theme="neon"] .drop-zone{color:var(--muted)}html[data-theme="dark"] .drop-zone strong,html[data-theme="midnight"] .drop-zone strong,html[data-theme="neon"] .drop-zone strong{color:var(--ink)}html[data-theme="dark"] .import-warnings,html[data-theme="midnight"] .import-warnings,html[data-theme="neon"] .import-warnings{background:#332713;border-color:#8a6320}html[data-theme="dark"] .import-warnings p,html[data-theme="midnight"] .import-warnings p,html[data-theme="neon"] .import-warnings p{color:#f2cd79}
.barcode-scanner{display:grid;gap:12px}.barcode-scanner video{width:100%;max-height:330px;min-height:180px;object-fit:cover;border-radius:14px;background:#050812;border:1px solid var(--line)}

/* Inventory reference layout */
.stock-reference-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stock-category-strip{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;padding:4px 10px;margin:10px 0;background:var(--surface);border:1px solid var(--line);border-radius:11px;scrollbar-width:thin}
.stock-category-strip strong{flex:0 0 auto;color:var(--muted);font-size:10px;letter-spacing:.06em;margin-right:4px}
.stock-category-strip button{flex:0 0 auto;max-width:220px;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock-category-strip button.active,.stock-category-strip button:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.stock-reference-card{padding:12px}
.stock-reference-toolbar{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,1fr) minmax(140px,.8fr) auto auto auto auto;align-items:center;gap:8px;margin-bottom:12px}
.stock-reference-toolbar>*{min-width:0}
.stock-reference-toolbar .search{width:100%}
@media(max-width:1000px){.stock-reference-toolbar{grid-template-columns:minmax(180px,1fr) minmax(140px,1fr) minmax(130px,.8fr)}.stock-reference-toolbar button{min-height:38px}}
@media(max-width:760px){.stock-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-category-strip{margin:8px 0;padding:8px}.stock-category-strip strong{display:none}.stock-reference-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stock-reference-toolbar .search{grid-column:1/-1}.stock-reference-toolbar .control{width:100%;min-width:0}.stock-reference-toolbar button{width:100%;min-width:0;padding:8px 5px;font-size:11px}}

.finance-detail-grid span{min-width:0}.finance-detail-grid strong{min-width:0;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}

/* Compact touch layout: preserve every action while removing desktop table
   width, oversized spacing and the blurred full-screen drawer effect. */
@media(max-width:760px){
 html,body{overflow-x:hidden}
 .main{width:100%;min-width:0}
 .topbar{height:64px;padding:8px 10px;gap:7px}
 .topbar>div:first-of-type{min-width:0;margin-left:6px}
 .topbar h1{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .top-actions{gap:5px}
 .top-actions .topbar-tool{display:flex;width:39px;min-width:39px;height:39px;padding:0;justify-content:center;font-size:0}
 .top-actions .topbar-tool span{font-size:16px}
 .top-actions .topbar-tool b{display:none}
 .top-actions .icon-btn{width:39px;min-width:39px;height:39px;padding:0}
 .content{padding:12px 10px 32px}
 .page-head{gap:8px;margin-bottom:12px}
 .page-head h2{font-size:21px;line-height:1.16}
 .page-head p{font-size:12px;line-height:1.35;margin-top:4px;max-width:48ch}
 .page-head>.actions{width:100%;gap:6px}
 .page-head>.actions>*{flex:1 1 auto;min-height:39px;padding:8px 7px;font-size:12px}
 .card{padding:12px;border-radius:14px}
 .metric-grid{gap:8px;margin-bottom:12px}
 .metric{min-height:96px;padding:11px;border-radius:13px}
 .metric-top{font-size:10px;gap:4px}
 .metric strong{font-size:19px;margin:8px 0 2px;word-break:break-word}
 .metric small{font-size:10px;line-height:1.2}
 .service-status-grid{gap:7px;margin-bottom:12px}
 .service-status-card{min-height:92px;padding:9px;grid-template-columns:28px minmax(0,1fr);gap:7px}
 .service-status-icon{width:28px;height:28px;font-size:12px}
 .service-status-card small{font-size:9px;line-height:1.1}
 .service-status-card strong{font-size:15px;margin:4px 0}
 .service-status-card em{font-size:9px;line-height:1.1}
 .service-status-card>b{display:none}
 .dashboard-filter-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;padding:7px;margin-bottom:12px;border-top-width:2px}
 .dashboard-filter{min-width:0;min-height:48px;padding:5px 2px;border-radius:9px;font-size:9px;line-height:1.1;white-space:normal}
 .dashboard-filter b{font-size:11px}
 .dashboard-list-card{padding:10px}
 .dashboard-list-card .card-head{margin-bottom:8px}
 .dashboard-service-table{overflow:visible;border:0}
 .dashboard-service-table table{display:block;table-layout:fixed;min-width:0;font-size:12px}
 .dashboard-service-table thead{display:none}
 .dashboard-service-table tbody{display:grid;gap:8px}
 .dashboard-service-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 .dashboard-service-table td{padding:0;border:0;min-width:0}
 .dashboard-service-table td:nth-child(1){grid-column:1;grid-row:1;font-weight:800}
 .dashboard-service-table td:nth-child(2){grid-column:2;grid-row:1/4}
 .dashboard-service-table td:nth-child(3){grid-column:1;grid-row:2;color:var(--muted)}
 .dashboard-service-table td:nth-child(11){grid-column:1;grid-row:3}
 .dashboard-service-table td:nth-child(12){grid-column:2;grid-row:3}
 .dashboard-service-table td:nth-child(4),.dashboard-service-table td:nth-child(5),.dashboard-service-table td:nth-child(6),.dashboard-service-table td:nth-child(7),.dashboard-service-table td:nth-child(8),.dashboard-service-table td:nth-child(9),.dashboard-service-table td:nth-child(10){display:none}
 [data-page="stock"] .tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:12px}
 [data-page="stock"] .tabs .tab{min-height:44px;padding:8px 4px;font-size:11px;line-height:1.12;white-space:normal}
 [data-page="stock"] .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
 [data-page="stock"] .toolbar .search{grid-column:1/-1;min-width:0;width:100%}
 [data-page="stock"] .toolbar .control{min-width:0;width:100%;font-size:12px}
 [data-page="stock"] #stockTable .table-wrap,[data-page="customers"] .customer-card .table-wrap,[data-page="services"] .table-wrap{overflow:visible;border:0}
 [data-page="stock"] #stockTable table,[data-page="customers"] .customer-card table,[data-page="services"] .table-wrap table{display:block;min-width:0;table-layout:fixed;font-size:12px}
 [data-page="stock"] #stockTable thead,[data-page="customers"] .customer-card thead,[data-page="services"] .table-wrap thead{display:none}
 [data-page="stock"] #stockTable tbody,[data-page="customers"] .customer-card tbody,[data-page="services"] .table-wrap tbody{display:grid;gap:8px}
 [data-page="stock"] #stockTable tr,[data-page="customers"] .customer-card tr,[data-page="services"] .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 [data-page="stock"] #stockTable td,[data-page="customers"] .customer-card td,[data-page="services"] .table-wrap td{padding:0;border:0;min-width:0}
 [data-page="stock"] #stockTable td:nth-child(1),[data-page="stock"] #stockTable td:nth-child(3),[data-page="stock"] #stockTable td:nth-child(5){display:none}
 [data-page="stock"] #stockTable td:nth-child(2){grid-column:1;grid-row:1/3;font-weight:700}
 [data-page="stock"] #stockTable td:nth-child(4){grid-column:2;grid-row:1;font-weight:800}
 [data-page="stock"] #stockTable td:nth-child(6){grid-column:2;grid-row:2;color:var(--muted)}
 [data-page="stock"] #stockTable td:nth-child(7){grid-column:1;grid-row:3;justify-self:start}
 [data-page="stock"] #stockTable td:nth-child(8){grid-column:2;grid-row:3;justify-self:end}
 [data-page="customers"] .customer-card td:nth-child(1),[data-page="customers"] .customer-card td:nth-child(3),[data-page="customers"] .customer-card td:nth-child(5){display:none}
 [data-page="customers"] .customer-card td:nth-child(2){grid-column:1;grid-row:1;font-weight:700}
 [data-page="customers"] .customer-card td:nth-child(4){grid-column:1;grid-row:2;color:var(--muted)}
 [data-page="customers"] .customer-card td:nth-child(6){grid-column:2;grid-row:1/3;text-align:right}
 [data-page="customers"] .customer-card td:nth-child(7){grid-column:1/-1;grid-row:3}
 [data-page="customers"] .customer-card td:nth-child(7) button{width:100%}
 [data-page="services"] .table-wrap td:nth-child(4),[data-page="services"] .table-wrap td:nth-child(6){display:none}
 [data-page="services"] .table-wrap td:nth-child(1){grid-column:1;grid-row:1;font-weight:800}
 [data-page="services"] .table-wrap td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}
 [data-page="services"] .table-wrap td:nth-child(3){grid-column:1;grid-row:3}
 [data-page="services"] .table-wrap td:nth-child(5){grid-column:2;grid-row:1;justify-self:end}
 [data-page="services"] .table-wrap td:nth-child(7){grid-column:2;grid-row:2/4;align-self:center;justify-self:end}
 [data-page="finance"] .table-wrap,[data-page="income"] .table-wrap,[data-page="expense"] .table-wrap{overflow:visible;border:0}
 [data-page="finance"] .table-wrap table,[data-page="income"] .table-wrap table,[data-page="expense"] .table-wrap table{display:block;min-width:0;table-layout:fixed;font-size:12px}
 [data-page="finance"] .table-wrap thead,[data-page="income"] .table-wrap thead,[data-page="expense"] .table-wrap thead{display:none}
 [data-page="finance"] .table-wrap tbody,[data-page="income"] .table-wrap tbody,[data-page="expense"] .table-wrap tbody{display:grid;gap:8px}
 [data-page="finance"] .table-wrap tr,[data-page="income"] .table-wrap tr,[data-page="expense"] .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
 [data-page="finance"] .table-wrap td,[data-page="income"] .table-wrap td,[data-page="expense"] .table-wrap td{padding:0;border:0;min-width:0;word-break:break-word}
 [data-page="finance"] .table-wrap td:nth-child(1),[data-page="income"] .table-wrap td:nth-child(1),[data-page="expense"] .table-wrap td:nth-child(1){grid-column:1;grid-row:1;color:var(--muted)}
 [data-page="finance"] .table-wrap td:nth-child(2),[data-page="income"] .table-wrap td:nth-child(2),[data-page="expense"] .table-wrap td:nth-child(2){grid-column:2;grid-row:1;justify-self:end}
 [data-page="finance"] .table-wrap td:nth-child(3),[data-page="income"] .table-wrap td:nth-child(3),[data-page="expense"] .table-wrap td:nth-child(3){grid-column:1;grid-row:2;color:var(--muted)}
 [data-page="finance"] .table-wrap td:nth-child(4),[data-page="income"] .table-wrap td:nth-child(4),[data-page="expense"] .table-wrap td:nth-child(4){grid-column:1/-1;grid-row:3;font-weight:700}
 [data-page="finance"] .table-wrap td:nth-child(5),[data-page="income"] .table-wrap td:nth-child(5),[data-page="expense"] .table-wrap td:nth-child(5){grid-column:1;grid-row:4;color:var(--muted)}
 [data-page="finance"] .table-wrap td:nth-child(6),[data-page="income"] .table-wrap td:nth-child(6),[data-page="expense"] .table-wrap td:nth-child(6){grid-column:2;grid-row:2/5;align-self:center;justify-self:end;font-weight:800}
 [data-page="finance"] .table-wrap td:nth-child(7),[data-page="income"] .table-wrap td:nth-child(7),[data-page="expense"] .table-wrap td:nth-child(7){grid-column:1/-1;grid-row:5;justify-self:end}
 [data-page="finance"] .table-wrap td:nth-child(7) button,[data-page="income"] .table-wrap td:nth-child(7) button,[data-page="expense"] .table-wrap td:nth-child(7) button{min-width:100px}
 .toolbar{gap:7px}
 .toolbar .control.search{min-width:0;width:100%}
 .product-picker{gap:7px}
 .product-tile{padding:10px}
 .cart-line{grid-template-columns:minmax(0,1fr) 52px auto 28px;gap:5px;font-size:12px}
 .sales-actions{gap:6px}
 .sales-actions>*{flex:1 1 100%;min-height:40px}
 dialog{width:calc(100vw - 18px);max-height:calc(100svh - 20px);border-radius:14px}
 dialog form>header{padding:14px 15px}
 .dialog-body{padding:14px;max-height:calc(100svh - 170px)}
 dialog footer{padding:10px 14px;gap:6px;flex-wrap:wrap}
 dialog footer>*{flex:1 1 auto;min-height:38px}
 .mobile-overlay.open{backdrop-filter:none;background:rgba(5,9,22,.38)}
 .sidebar{width:min(82vw,292px);padding:10px 9px 10px}
 .brand{padding:4px 42px 11px 7px;gap:8px}
 .brand-mark{width:34px;height:34px;font-size:17px}
 .brand strong{font-size:13px}.brand small{font-size:10px}
 .sector-picker{margin:0 4px 8px;font-size:9px;gap:4px}
.sector-picker select{padding:8px;font-size:12px}
 .mobile-nav-search{display:block;width:calc(100% - 8px);margin:0 4px 7px;border:1px solid #2a3150;border-radius:9px;background:#151a2c;color:#fff;padding:8px 10px;font-size:12px;outline:0}
 .mobile-nav-search::placeholder{color:#7f88a5}
 .sidebar nav{gap:1px}
 .nav-group-title{padding:8px 7px 3px;font-size:9px}
 .nav-button{min-height:34px;padding:7px 8px;gap:8px;font-size:12px;border-radius:8px}
 .nav-button span:first-child{width:17px}
 .submenu{padding-left:9px}
 .submenu .nav-button{min-height:30px;padding:6px 8px;font-size:11px}
 .sidebar-bottom{padding-top:8px}
 .sidebar-bottom .nav-button{padding:8px}
 .user{padding:9px 6px 2px}
 .user strong{font-size:12px}.user small{font-size:10px}
}

/* Mobile-first data treatment: show a short summary card instead of a
   desktop-width table. The full record remains available from the row/dialog. */
@media(max-width:760px){
 html,body,#app,.app-shell,.main,#content{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
 .content{padding-left:10px;padding-right:10px}
 .customer-banners{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px;margin-bottom:10px}
 .customer-banners button{min-height:50px;padding:7px 4px;font-size:11px;line-height:1.12}
 .customer-toolbar{height:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:9px}
 .customer-toolbar .mini{width:100%;height:38px;padding:0;font-size:16px}
 .customer-toolbar .toolbar-spacer,.customer-toolbar label{display:none}
 .customer-toolbar .control.search{grid-column:1/-1;min-width:0;width:100%;height:40px}
 [data-page="customers"] #customerTable .table-wrap,
 [data-page="services"] section.card .table-wrap,
 [data-page="stock"] #stockTable .table-wrap{overflow:visible;border:0}
 [data-page="customers"] #customerTable table,
 [data-page="services"] section.card .table-wrap table,
 [data-page="stock"] #stockTable table{display:block;width:100%;min-width:0;table-layout:fixed;font-size:12px}
 [data-page="customers"] #customerTable thead,
 [data-page="services"] section.card .table-wrap thead,
 [data-page="stock"] #stockTable thead{display:none}
 [data-page="customers"] #customerTable tbody,
 [data-page="services"] section.card .table-wrap tbody,
 [data-page="stock"] #stockTable tbody{display:grid;gap:8px}
 [data-page="customers"] #customerTable tr,
 [data-page="services"] section.card .table-wrap tr,
 [data-page="stock"] #stockTable tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
 [data-page="customers"] #customerTable td,
 [data-page="services"] section.card .table-wrap td,
 [data-page="stock"] #stockTable td{padding:0;border:0;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 [data-page="customers"] #customerTable td:nth-child(1),
 [data-page="customers"] #customerTable td:nth-child(3),
 [data-page="customers"] #customerTable td:nth-child(5){display:none}
 [data-page="customers"] #customerTable td:nth-child(2){grid-column:1;grid-row:1;font-weight:700;white-space:normal}
 [data-page="customers"] #customerTable td:nth-child(4){grid-column:1;grid-row:2;color:var(--muted)}
 [data-page="customers"] #customerTable td:nth-child(6){grid-column:2;grid-row:1;text-align:right}
 [data-page="customers"] #customerTable td:nth-child(7){grid-column:2;grid-row:2;text-align:right;white-space:normal}
 [data-page="customers"] #customerTable td:nth-child(8){grid-column:1;grid-row:3;justify-self:start;overflow:visible}
 [data-page="customers"] #customerTable td:nth-child(9){grid-column:1/-1;grid-row:4;justify-self:stretch;overflow:visible}
 [data-page="customers"] #customerTable td:nth-child(9) button{width:100%;min-height:38px}
 [data-page="services"] section.card .table-wrap td:nth-child(4),
 [data-page="services"] section.card .table-wrap td:nth-child(6){display:none}
 [data-page="services"] section.card .table-wrap td:nth-child(1){grid-column:1;grid-row:1;font-weight:800}
 [data-page="services"] section.card .table-wrap td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}
 [data-page="services"] section.card .table-wrap td:nth-child(3){grid-column:1;grid-row:3;white-space:normal}
 [data-page="services"] section.card .table-wrap td:nth-child(5){grid-column:2;grid-row:1;justify-self:end}
 [data-page="services"] section.card .table-wrap td:nth-child(7){grid-column:2;grid-row:2/4;align-self:center;justify-self:end;overflow:visible}
 .dashboard-filter-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;padding:8px}
 .dashboard-filter{min-width:0;width:auto;min-height:50px;padding:5px 2px;font-size:9px;line-height:1.1;white-space:normal}
 .dashboard-service-table{width:100%;max-width:100%;overflow:visible}
 .dashboard-service-table table{width:100%;min-width:0;max-width:100%}
 .dashboard-service-table td{max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .settings-layout{display:block;min-width:0}
 .settings-sidebar{display:none}
 .settings-mobile-picker{display:block;position:relative;top:auto;z-index:18;padding:8px;margin:-2px 0 10px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
 .settings-mobile-picker label{display:block;margin:0 0 5px;color:var(--muted);font-size:11px;font-weight:700}
 .settings-mobile-picker select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:8px 10px}
 .settings-content{min-width:0;width:100%;padding:12px}
 .settings-content .form-grid{min-width:0}
 .settings-content .field input,.settings-content .field select,.settings-content .field textarea{max-width:100%;min-width:0;width:100%}
}
@media(min-width:761px){.settings-mobile-picker{display:none}}
/* Parent navigation buttons control their adjacent submenu on every viewport. */
.submenu.open{display:block!important}

/* Barcode input with a compact camera action, sized for touch screens. */
.barcode-control{display:flex;align-items:stretch;gap:8px;width:100%}.barcode-control>input[name="barcode"]{flex:1;min-width:0}.barcode-camera{width:46px;min-width:46px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;font-size:20px;padding:0}.barcode-camera:hover,.barcode-camera:focus-visible{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 15%,transparent)}
.barcode-live-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(7,10,24,.78);backdrop-filter:blur(4px)}.barcode-live-card{width:min(470px,100%);border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);padding:16px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.barcode-live-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.barcode-live-card h3{margin:3px 0 0;font-size:18px}.barcode-live-view{position:relative;overflow:hidden;border-radius:14px;background:#050812;border:1px solid var(--line);aspect-ratio:4/3}.barcode-live-view video{display:block;width:100%;height:100%;object-fit:cover}.barcode-live-guide{position:absolute;left:9%;right:9%;top:36%;height:28%;border:2px solid #fff;border-radius:10px;box-shadow:0 0 0 999px rgba(0,0,0,.17),0 0 18px rgba(255,255,255,.5);pointer-events:none}.barcode-live-status{min-height:20px;margin:11px 0;color:var(--muted);font-size:12px}.barcode-live-manual{width:100%;min-height:40px}

/* Sector-aware menu editor and system identity settings. */
dialog.sector-menu-editor-dialog{width:min(1180px,calc(100vw - 32px));max-height:94vh}
dialog.sector-menu-editor-dialog .dialog-body{max-height:72vh;padding:18px 20px}
.sector-menu-editor{display:grid;gap:14px}
.sector-menu-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.sector-menu-intro strong{display:block;color:var(--ink);font-size:14px}
.sector-menu-intro p{margin:4px 0 0;color:var(--muted);font-size:12px}
.sector-editor-tabs{display:none;gap:5px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.sector-editor-tabs button{border:0;border-radius:7px;background:transparent;color:var(--muted);padding:8px 10px;font-size:12px;font-weight:700}
.sector-editor-tabs button.active{background:var(--brand);color:#fff}
.sector-menu-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.sector-menu-panel{min-width:0;border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden}
.sector-menu-panel.active{border-color:color-mix(in srgb,var(--brand) 65%,var(--line));box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 11%,transparent)}
.sector-menu-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.sector-menu-panel>header>div{display:flex;align-items:center;gap:10px;min-width:0}
.sector-menu-panel h3{margin:0;font-size:15px}
.sector-menu-panel header p{margin:3px 0 0;color:var(--muted);font-size:11px}
.sector-menu-badge{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:var(--brand);color:#fff;font-size:11px;font-weight:800}
.sector-menu-groups{display:grid;gap:7px;padding:10px}
.sector-menu-group{border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.sector-menu-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;cursor:pointer;list-style:none;color:var(--ink);font-size:12px;font-weight:800}
.sector-menu-group>summary::-webkit-details-marker{display:none}
.sector-menu-group>summary::after{content:"+";display:grid;place-items:center;width:21px;height:21px;margin-left:4px;border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:15px}
.sector-menu-group[open]>summary::after{content:"-"}
.sector-menu-group>summary small{margin-left:auto;color:var(--muted);font-size:10px;font-weight:600}
.sector-menu-group-body{display:grid;gap:6px;padding:0 8px 8px}
.sector-menu-parent{display:grid;gap:4px}
.sector-menu-children{display:grid;gap:4px;margin-left:22px;padding-left:8px;border-left:2px solid color-mix(in srgb,var(--brand) 20%,var(--line))}
.sector-menu-row{display:grid;grid-template-columns:30px minmax(0,1fr) 42px;gap:8px;align-items:center;min-width:0;padding:7px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.sector-menu-row.child{background:var(--surface-2)}
.sector-menu-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:color-mix(in srgb,var(--brand) 10%,var(--surface-2));color:var(--brand);font-size:11px;font-weight:800}
.sector-menu-copy{display:grid;gap:3px;min-width:0}
.sector-menu-copy input{min-width:0;width:100%;border:1px solid var(--line);border-radius:7px;background:var(--input-bg);color:var(--ink);padding:7px 8px;font-size:12px}
.sector-menu-copy small{color:var(--success);font-size:9px}
.sector-menu-row.menu-disabled{border-style:dashed;opacity:.64}
.sector-menu-row.menu-disabled .sector-menu-copy small{color:var(--danger)}
.sector-menu-row.menu-disabled .sector-menu-copy input{color:var(--muted)}
.sector-menu-row .switch{margin:0}
.identity-settings{display:grid;gap:16px}
.sector-identity-card,.identity-section{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:15px}
.sector-identity-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,color-mix(in srgb,var(--brand) 7%,var(--surface)),var(--surface))}
.sector-identity-card>div:first-child,.identity-section>header{display:flex;align-items:flex-start;gap:11px}
.sector-identity-card h3,.identity-section h3{margin:1px 0 0;font-size:15px}
.sector-identity-card p,.identity-section header p{margin:4px 0 0;color:var(--muted);font-size:11px}
.identity-step{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:var(--brand);color:#fff;font-size:11px;font-weight:800}
.sector-identity-action{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.identity-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.identity-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.identity-toggle span{display:grid;gap:3px;min-width:0}
.identity-toggle strong{font-size:12px}
.identity-toggle small{color:var(--muted);font-size:10px}
input.switch.identity-module-switch:checked{background:var(--brand)!important}
.identity-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}
.identity-profile-grid label{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}
.identity-profile-grid input{accent-color:var(--brand)}

@media(max-width:760px){
 dialog.sector-menu-editor-dialog{width:calc(100vw - 12px);max-height:calc(100svh - 12px);border-radius:12px}
 dialog.sector-menu-editor-dialog .dialog-body{max-height:calc(100svh - 168px);padding:10px}
 .sector-menu-intro{display:grid;gap:10px;padding:10px}
 .sector-editor-tabs{display:grid;grid-template-columns:1fr 1fr}
 .sector-menu-columns{grid-template-columns:minmax(0,1fr)}
 .sector-menu-panel{display:none}
 .sector-menu-panel.mobile-active{display:block}
 .sector-menu-panel>header{padding:10px}
 .sector-menu-panel>header>.badge{display:none}
 .sector-menu-groups{padding:7px}
 .sector-menu-group>summary{padding:10px 8px}
 .sector-menu-group>summary small{display:none}
 .sector-menu-row{grid-template-columns:28px minmax(0,1fr) 42px;padding:6px}
 .sector-menu-children{margin-left:12px;padding-left:6px}
 dialog.sector-menu-editor-dialog footer{display:grid;grid-template-columns:1.2fr .8fr 1.1fr;gap:6px;padding:8px 10px;flex-wrap:nowrap}
 dialog.sector-menu-editor-dialog footer>*{min-width:0;min-height:38px;padding:8px 6px;font-size:11px;white-space:nowrap}
 .sector-identity-card{align-items:stretch;display:grid}
 .sector-identity-action{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch}
  .identity-toggle-grid{grid-template-columns:minmax(0,1fr)}
  .identity-profile-grid{grid-template-columns:minmax(0,1fr)}
}

/* General overview parity: compact desktop table and reference-like mobile cards. */
.dashboard-toolbar{display:grid;grid-template-columns:auto minmax(260px,1fr) auto auto;gap:10px;align-items:center;margin:0 0 12px}
.dashboard-toolbar-actions{display:flex;gap:7px;align-items:center}
.dashboard-search{display:flex;align-items:center;gap:8px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--input-bg);padding:0 11px}
.dashboard-search span,.dashboard-page-size span{font-size:10px;font-weight:800;color:var(--muted)}
.dashboard-search input{width:100%;min-width:0;min-height:38px;border:0;outline:0;background:transparent;color:var(--ink)}
.dashboard-page-size{display:flex;align-items:center;gap:7px}
.dashboard-page-size select{min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--input-bg);color:var(--ink);padding:0 8px}
.dashboard-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:var(--muted);font-size:12px}
.dashboard-pagination>div{display:flex;align-items:center;gap:8px}
.dashboard-pagination button{min-width:100px}
.dashboard-pagination button:disabled{opacity:.48;cursor:default}
.dashboard-plain-status{display:inline-block;color:var(--ink);font-weight:700;font-size:12px;background:transparent;border:0;padding:0}
.dashboard-mobile-nav{display:none}
.content.dashboard-refreshing{position:relative;pointer-events:none}
.content.dashboard-refreshing::after{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--bg) 28%,transparent);z-index:5}
.dashboard-service-table tbody tr:hover{background:var(--hover)}
.dashboard-service-table tbody td:hover{background:transparent}

@media(max-width:1100px){
 .dashboard-toolbar{grid-template-columns:1fr auto auto}
 .dashboard-toolbar-actions{display:none}
}

@media(max-width:760px){
 .content{padding-bottom:78px}
 .page-head{align-items:flex-start}
 body[data-page="service-status"] .page-head .actions{display:none}
 .service-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .service-status-card{min-height:76px;padding:8px 9px;grid-template-columns:30px minmax(0,1fr);gap:8px;border-radius:11px}
 .service-status-icon{width:30px;height:30px;font-size:12px}
 .service-status-card small{font-size:9px;line-height:1.2}
 .service-status-card strong{font-size:14px;margin:3px 0}
 .service-status-card em{font-size:8px;line-height:1.2}
 .dashboard-filter-strip{display:none!important}
 .dashboard-list-card{padding:10px}
 .dashboard-list-card>.card-head{margin-bottom:8px}
 .dashboard-toolbar{grid-template-columns:minmax(0,1fr) auto;margin-bottom:8px}
 .dashboard-toolbar .badge,.dashboard-page-size{display:none}
 .dashboard-search{grid-column:1/-1}
 .dashboard-service-table{border:0;overflow:visible}
 .dashboard-service-table table,.dashboard-service-table tbody{display:block;min-width:0}
 .dashboard-service-table thead{display:none}
 .dashboard-service-table tr{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:10px;margin-bottom:8px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
 .dashboard-service-table td{display:block;padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere}
 .dashboard-service-table td:nth-child(1){grid-column:1;font-size:13px}
 .dashboard-service-table td:nth-child(2){grid-column:2;grid-row:1/3}
 .dashboard-service-table td:nth-child(3){grid-column:1;color:var(--ink);font-weight:650}
 .dashboard-service-table td:nth-child(4),.dashboard-service-table td:nth-child(5),.dashboard-service-table td:nth-child(6){display:inline;color:var(--muted);font-size:11px}
 .dashboard-service-table td:nth-child(4){grid-column:1}
 .dashboard-service-table td:nth-child(5){grid-column:1}
 .dashboard-service-table td:nth-child(6){grid-column:1}
 .dashboard-service-table td:nth-child(7),.dashboard-service-table td:nth-child(8),.dashboard-service-table td:nth-child(9){display:none}
 .dashboard-service-table td:nth-child(10){grid-column:1;font-size:12px}
 .dashboard-service-table td:nth-child(11),.dashboard-service-table td:nth-child(12){grid-column:2;text-align:right}
 .dashboard-row-actions{flex-direction:column}
 .dashboard-row-actions .mini{min-width:34px;min-height:31px}
 .dashboard-pagination{padding-bottom:2px}
 .dashboard-pagination>div{display:none}
 .dashboard-mobile-nav{position:fixed;left:8px;right:8px;bottom:8px;z-index:45;display:grid;grid-template-columns:1fr 1fr 1.35fr auto 1fr;align-items:center;gap:5px;padding:6px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 12px 32px rgba(0,0,0,.22);backdrop-filter:blur(10px)}
 .dashboard-mobile-nav button,.dashboard-mobile-nav span{min-height:38px;border:0;border-radius:999px;background:transparent;color:var(--ink);display:grid;place-items:center;font-size:11px;font-weight:750;padding:0 10px}
 .dashboard-mobile-nav button.active{background:#f59e0b;color:#111827}
 .dashboard-mobile-nav span{min-width:34px;background:var(--surface-2)}
}
.context-menu{background:var(--surface)!important;color:var(--ink)!important}
.context-menu button{color:var(--ink)!important}
.context-menu button:hover{background:var(--hover)!important;color:var(--ink)!important}
.context-menu button:disabled{color:var(--muted)!important;cursor:not-allowed;opacity:.58}
.context-menu{min-width:192px;border-radius:0;padding:0}
.context-menu button{height:24px;min-height:24px;padding:0 10px 0 17px;line-height:normal;font-size:12px;font-family:"Segoe UI",sans-serif;font-weight:400;border-radius:0}
.context-menu-separator{height:2px;margin:0}
#contextMenu hr.context-menu-separator{height:2px;margin:0;background:var(--line)}
body[data-page="logistics"] #contextMenu.external-tracking-context{min-width:183px}
html[data-theme="midnight"] .context-menu{background:#0F1428!important;color:#E0E8FF!important;border-color:#2A3660!important}
html[data-theme="midnight"] .context-menu button{color:#E0E8FF!important}
html[data-theme="midnight"] .context-menu button:hover,html[data-theme="midnight"] .context-menu button:focus-visible{background:#3B2F8C!important;color:#F0EEFF!important}
.used-parts-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.used-parts-actions small{color:var(--muted);font-size:11px}
.used-parts-list .mini{margin-left:8px;padding:4px 7px}
.finance-command-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px 18px;margin-bottom:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 14px rgba(35,40,72,.04)}
.finance-command-bar small{display:block;margin-bottom:9px;color:var(--muted);font-weight:800;letter-spacing:.04em}
.finance-command-bar .fiscal-launch{min-height:44px}
.fiscal-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fiscal-control-grid button{min-height:46px}
.fiscal-plan-summary,.fiscal-rollover-summary{display:grid;gap:10px;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted)}
#appDialog.fiscal-rollover-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));height:min(474px,calc(100svh - 24px));max-height:calc(100svh - 24px)}
#appDialog.fiscal-rollover-dialog>form{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;margin:0!important;padding:0!important;gap:0;overflow:hidden}
#appDialog.fiscal-rollover-dialog>form>header,#appDialog.fiscal-rollover-dialog #dialogFooter{flex:0 0 auto;margin:0!important}
#appDialog.fiscal-rollover-dialog #dialogFooter{position:absolute;right:0;bottom:0;left:0;box-sizing:border-box}
#appDialog.fiscal-rollover-dialog #dialogBody{flex:1 1 0;min-height:0;max-height:none;margin:0!important;padding:0!important}
@media(max-width:760px){#appDialog.fiscal-rollover-dialog{height:auto;max-height:calc(100svh - 16px)}#appDialog.fiscal-rollover-dialog #dialogFooter{position:static}}
.fiscal-plan-summary strong{color:var(--ink)}
.fiscal-rollover-summary p{margin:0}
.fiscal-check{display:flex;align-items:flex-start;gap:10px;padding:8px 0;color:var(--ink)}
.fiscal-check input{margin-top:3px}
.fiscal-approval{font-weight:700}
.fiscal-archive-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 24px 0;padding:12px 16px;border:1px solid var(--warn);border-radius:10px;background:color-mix(in srgb,var(--warn) 13%,var(--surface));color:var(--ink)}
.fiscal-archive-banner[hidden]{display:none}
.fiscal-archive-banner>div{display:grid;gap:3px}.fiscal-archive-banner span{color:var(--muted);font-size:12px}
body.fiscal-archive-active .fiscal-archive-banner{box-shadow:0 0 0 2px color-mix(in srgb,var(--warn) 14%,transparent)}
.stock-movement-metrics{grid-template-columns:minmax(220px,360px)}
@media(max-width:760px){.finance-command-bar{grid-template-columns:1fr;padding:14px}.finance-command-bar .actions>*{flex:1 1 120px}.finance-command-bar .fiscal-launch{width:100%}.fiscal-control-grid{grid-template-columns:1fr}.stock-movement-metrics{grid-template-columns:1fr}.fiscal-archive-banner{align-items:stretch;flex-direction:column;margin:12px;padding:12px}.fiscal-archive-banner button{width:100%}}

/* Finance dashboard visual tokens mirror the desktop theme contract. */
:root{--finance-canvas:#0b1326;--finance-surface:#131b2e;--finance-surface-alt:#1e293b;--finance-surface-high:#222a3d;--finance-outline:#334155;--finance-primary:#3b82f6;--finance-secondary:#4edea3;--finance-tertiary:#ffb2b7;--finance-text:#dae2fd;--finance-text-muted:#94a3b8}
[data-page="finance"] .content,[data-page="income"] .content,[data-page="expense"] .content{background:var(--finance-canvas);color:var(--finance-text);margin:-1px 0 0;padding-top:22px}
[data-page="finance"] .page-head h2,[data-page="income"] .page-head h2,[data-page="expense"] .page-head h2{color:var(--finance-text)}
[data-page="finance"] .page-head p,[data-page="income"] .page-head p,[data-page="expense"] .page-head p{color:var(--finance-text-muted)}
[data-page="finance"] .metric,[data-page="income"] .metric,[data-page="expense"] .metric,[data-page="finance"] .card,[data-page="income"] .card,[data-page="expense"] .card{background:var(--finance-surface);border-color:var(--finance-outline);box-shadow:none;border-radius:8px;color:var(--finance-text)}
[data-page="finance"] .metric-top,[data-page="income"] .metric-top,[data-page="expense"] .metric-top,[data-page="finance"] .muted,[data-page="income"] .muted,[data-page="expense"] .muted{color:var(--finance-text-muted)}
[data-page="finance"] .metric-icon,[data-page="income"] .metric-icon,[data-page="expense"] .metric-icon{background:var(--finance-surface-high)}
[data-page="finance"] .table-wrap,[data-page="income"] .table-wrap,[data-page="expense"] .table-wrap{border-color:var(--finance-outline)}
[data-page="finance"] th,[data-page="income"] th,[data-page="expense"] th{background:var(--finance-surface-alt);color:var(--finance-text-muted);border-color:var(--finance-outline)}
[data-page="finance"] td,[data-page="income"] td,[data-page="expense"] td{border-color:var(--finance-outline);color:var(--finance-text)}
[data-page="finance"] tbody tr:hover,[data-page="income"] tbody tr:hover,[data-page="expense"] tbody tr:hover{background:var(--finance-surface-high)}
[data-page="finance"] .finance-command-bar,[data-page="income"] .finance-command-bar,[data-page="expense"] .finance-command-bar{background:var(--finance-surface);border-color:var(--finance-outline);box-shadow:none}
.finance-layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:14px;align-items:start}.finance-layout main,.finance-layout aside{min-width:0}.finance-quick{padding:12px}.finance-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.finance-quick-grid button{min-height:38px;border:0;border-radius:4px;background:#152338;color:#E2E8F0;font-weight:700;font-size:10px;padding:2px}.finance-quick-grid button.green{background:#073034;color:#4EDEA3}.finance-quick-grid button.red{background:#3B2B0B;color:#C084FC}.finance-quick-grid button.purple{background:#152338;color:#E2E8F0}.finance-side-cards{display:grid;gap:9px;margin-top:16px}.finance-side-cards>h3{margin:0;color:var(--finance-text-muted);font-size:12px}.finance-side-cards .metric{margin:0;border-top:3px solid var(--finance-primary)}.finance-side-cards .metric:nth-of-type(2){border-top-color:#f43f5e}.finance-side-cards .metric:nth-of-type(3){border-top-color:#fbbf24}.finance-side-cards .metric:nth-of-type(4){border-top-color:var(--finance-secondary)}
@media(max-width:760px){[data-page="finance"] .content,[data-page="income"] .content,[data-page="expense"] .content{padding:14px 10px 45px}[data-page="finance"] .metric-grid,[data-page="income"] .metric-grid,[data-page="expense"] .metric-grid{gap:8px}[data-page="finance"] .metric,[data-page="income"] .metric,[data-page="expense"] .metric{border-radius:6px;padding:11px}[data-page="finance"] .metric strong,[data-page="income"] .metric strong,[data-page="expense"] .metric strong{font-size:16px}}
@media(max-width:900px){.finance-layout{grid-template-columns:1fr}.finance-layout aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}.finance-layout .finance-side-cards{margin-top:0}.finance-layout .finance-side-cards>h3{grid-column:1/-1}}
@media(max-width:520px){.finance-layout aside{display:block}.finance-quick-grid{grid-template-columns:1fr 1fr}.finance-command-bar .actions{width:100%}.finance-command-bar .actions button{flex:1 1 100px}}

/* Landing page visual refresh */
.auth-root{padding:24px;background:radial-gradient(circle at 8% 15%,rgba(126,95,255,.34),transparent 34%),radial-gradient(circle at 92% 82%,rgba(37,202,211,.2),transparent 32%),linear-gradient(135deg,#070b18,#11102d 52%,#082734);}
.auth-shell{width:min(1240px,100%);min-height:min(780px,calc(100svh - 48px));grid-template-columns:1.12fr .88fr;border-radius:32px;background:#10182d;box-shadow:0 40px 120px rgba(0,0,0,.55)}
.auth-showcase{padding:52px 56px;background:linear-gradient(145deg,#111a38 0%,#1b1551 48%,#32145c 100%)}
.auth-showcase::before{width:460px;height:460px;right:-180px;top:80px;background:radial-gradient(circle,rgba(141,112,255,.42),rgba(94,64,224,.08) 52%,transparent 70%)}
.auth-showcase::after{width:300px;height:300px;left:-120px;bottom:-125px;background:radial-gradient(circle,rgba(36,211,238,.25),transparent 68%)}
.auth-showcase-copy{max-width:610px}
.auth-showcase h1{font-size:clamp(42px,5vw,72px);letter-spacing:-.055em;margin:28px 0 20px}
.auth-showcase p{font-size:17px;max-width:520px}
.auth-feature-grid{max-width:530px;gap:12px;margin-top:34px}
.auth-feature-grid span{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.16);padding:14px 15px}
.auth-panel{padding:clamp(34px,5vw,72px);background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)}
.auth-form-wrap{width:min(480px,100%)}
.auth-form-head h2{font-size:34px;letter-spacing:-.04em}
.auth-submit{min-height:52px;border-radius:12px}
@media(max-width:820px){.auth-root{padding:0}.auth-shell{min-height:100svh}.auth-showcase{padding:22px 20px}.auth-showcase h1{font-size:38px}.auth-panel{padding:28px 20px}.auth-form-head h2{font-size:28px}}
.auth-about-panel{position:absolute;top:68px;left:24px;z-index:6;width:min(650px,calc(100% - 48px));padding:24px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(14,18,43,.97);color:#fff;box-shadow:0 24px 70px rgba(3,5,18,.45);backdrop-filter:blur(18px)}.auth-about-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.auth-about-head h2{margin:5px 0 7px;font-size:25px;letter-spacing:-.03em}.auth-about-head p{margin:0;color:#b8c2dc;font-size:13px;line-height:1.55}.auth-about-close{border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;width:32px;height:32px;font-size:20px}.auth-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:19px}.auth-about-grid article{padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.06)}.auth-about-grid b,.auth-about-grid span{display:block}.auth-about-grid b{font-size:12px;color:#fff}.auth-about-grid span{margin-top:5px;color:#aeb8d5;font-size:11px;line-height:1.45}.auth-about-version{display:block;margin-top:16px;color:#8f9bbc;font-size:10px}@media(max-width:820px){.auth-about-panel{top:58px;left:16px;width:calc(100% - 32px)}.auth-about-grid{grid-template-columns:1fr}}
.auth-login-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px}.auth-login-modal[hidden]{display:none}.auth-login-backdrop{position:absolute;inset:0;background:rgba(4,7,22,.7);backdrop-filter:blur(8px)}.auth-login-dialog{position:relative;width:min(470px,100%);max-height:calc(100svh - 40px);overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:linear-gradient(160deg,#fff,#f8f9ff);color:#172035;box-shadow:0 30px 100px rgba(0,0,0,.45)}.auth-login-close{position:absolute;right:16px;top:16px;border:0;border-radius:9px;width:32px;height:32px;background:#eef0f7;color:#4f5870;font-size:20px}.auth-login-dialog .auth-form-head{padding-right:30px}.auth-login-form-host{margin-top:18px}.auth-login-form-host .auth-form{gap:13px}.auth-login-form-host .auth-switch,.auth-login-form-host .auth-help{display:none}@media(max-width:520px){.auth-login-dialog{padding:23px 18px;border-radius:18px}}

/* Public product landing page */
.auth-root:has(.public-landing){display:block;padding:0;background:#080d1b}
.auth-shell.public-landing{width:100%;min-height:100svh;display:block;border:0;border-radius:0;overflow:hidden;background:#f6f8fc;color:#111a2e;box-shadow:none}
.public-landing>.auth-panel{display:none}
.public-landing .auth-showcase{min-height:760px;padding:54px max(6vw,48px);color:#fff;background:radial-gradient(circle at 78% 32%,rgba(124,92,255,.36),transparent 24%),radial-gradient(circle at 92% 72%,rgba(34,211,238,.15),transparent 25%),linear-gradient(135deg,#080f24 0%,#17134a 54%,#32115c 100%)}
.public-landing .auth-brand strong{color:#fff}
.public-landing .auth-showcase-copy{max-width:780px;margin:auto 0;padding:90px 0 38px}
.public-landing .auth-showcase h1{max-width:760px;color:#fff;font-size:clamp(48px,6.4vw,88px);line-height:.98}
.public-landing .auth-showcase p{max-width:650px;font-size:19px}
.public-landing .auth-feature-grid{max-width:640px;grid-template-columns:repeat(4,minmax(0,1fr))}
.public-landing .auth-feature-grid span{text-align:center}
.public-landing .auth-top-nav{position:fixed;top:22px;right:26px;padding:7px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(8,13,29,.68);box-shadow:0 12px 34px rgba(0,0,0,.22);backdrop-filter:blur(18px)}
.landing-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.landing-primary,.landing-secondary{min-height:48px;border-radius:12px;padding:0 20px;font-weight:850}.landing-primary{border:0;background:linear-gradient(135deg,#8d77ff,#6558e8);color:#fff;box-shadow:0 12px 28px rgba(101,88,232,.35)}.landing-secondary{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff}.landing-primary:hover,.landing-secondary:hover{transform:translateY(-2px);filter:brightness(1.08)}
.landing-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:22px;color:#aeb8d5;font-size:11px}.landing-trust span::before{content:"\2713";margin-right:6px;color:#45e6ae}
.landing-content{background:#f5f7fb;color:#111a2e}
.landing-proof{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe4ef;border-bottom:1px solid #dfe4ef}.landing-proof>div{padding:24px max(3vw,24px);background:#fff}.landing-proof strong,.landing-proof span{display:block}.landing-proof strong{font-size:23px;letter-spacing:-.035em}.landing-proof span{margin-top:5px;color:#6f7890;font-size:11px}
.landing-section{max-width:1280px;margin:0 auto;padding:96px 32px}.landing-section-head{max-width:760px;margin:0 auto 42px;text-align:center}.landing-section-head>span,.landing-kicker,.landing-final-cta>div>span{color:#6b5ce7;font-size:11px;font-weight:900;letter-spacing:.14em}.landing-section-head h2,.landing-platform h2,.landing-final-cta h2{margin:11px 0 13px;font-size:clamp(32px,4vw,52px);line-height:1.05;letter-spacing:-.045em}.landing-section-head p,.landing-platform p,.landing-final-cta p{color:#69738a;line-height:1.7}
.landing-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.landing-feature-grid article{position:relative;min-height:210px;padding:24px;border:1px solid #e1e5ef;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(25,32,58,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.landing-feature-grid article:hover{transform:translateY(-5px);border-color:#b9affd;box-shadow:0 20px 48px rgba(43,36,92,.12)}.landing-feature-grid i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#efedff;color:#6558e8;font-style:normal;font-weight:900}.landing-feature-grid h3{margin:22px 0 8px;font-size:18px}.landing-feature-grid p{margin:0;color:#70798e;font-size:13px;line-height:1.65}
.landing-platform{display:grid;grid-template-columns:.85fr 1.15fr;gap:70px;align-items:center;padding:92px max(6vw,48px);background:#0d1428;color:#fff}.landing-platform>div:first-child{max-width:580px}.landing-platform p{color:#aeb8d5}.landing-platform ul{display:grid;gap:12px;padding:0;margin:24px 0;list-style:none}.landing-platform li{color:#dbe3f6;font-size:13px}.landing-platform li::before{content:"\2713";display:inline-grid;place-items:center;width:22px;height:22px;margin-right:9px;border-radius:50%;background:rgba(69,230,174,.13);color:#45e6ae}.landing-product-visual{padding:20px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.035));box-shadow:0 28px 80px rgba(0,0,0,.3)}.landing-product-visual header{display:flex;align-items:center;gap:6px;padding-bottom:15px;border-bottom:1px solid rgba(255,255,255,.1)}.landing-product-visual header span{width:8px;height:8px;border-radius:50%;background:#ff6d79}.landing-product-visual header span:nth-child(2){background:#ffc85a}.landing-product-visual header span:nth-child(3){background:#45e6ae}.landing-product-visual header b{margin-left:auto;color:#b9c3da;font-size:11px}.landing-visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:16px}.landing-visual-grid article{padding:17px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(5,9,24,.36)}.landing-visual-grid small,.landing-visual-grid strong,.landing-visual-grid i{display:block}.landing-visual-grid small{color:#9da9c4}.landing-visual-grid strong{margin:8px 0 4px;font-size:25px}.landing-visual-grid i{color:#45e6ae;font-size:10px;font-style:normal}.landing-visual-chart{height:105px;display:flex;align-items:flex-end;gap:10px;margin-top:14px;padding:15px;border-radius:13px;background:rgba(5,9,24,.36)}.landing-visual-chart i{flex:1;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#8c7bff,#4c3bc8)}.landing-visual-chart i:nth-child(1){height:35%}.landing-visual-chart i:nth-child(2){height:57%}.landing-visual-chart i:nth-child(3){height:43%}.landing-visual-chart i:nth-child(4){height:74%}.landing-visual-chart i:nth-child(5){height:62%}.landing-visual-chart i:nth-child(6){height:88%}.landing-visual-chart i:nth-child(7){height:79%}
.landing-pricing{max-width:1320px}.landing-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.landing-price-grid article{position:relative;padding:30px;border:1px solid #dfe4ee;border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(25,32,58,.07)}.landing-price-grid article.featured{transform:translateY(-12px);border-color:#8274f2;box-shadow:0 24px 62px rgba(86,69,194,.18)}.landing-price-grid em{position:absolute;right:20px;top:18px;border-radius:99px;padding:6px 9px;background:#eeeaff;color:#6558e8;font-size:9px;font-style:normal;font-weight:900}.landing-price-grid>article>span{color:#6b5ce7;font-size:11px;font-weight:850}.landing-price-grid h3{margin:8px 0 18px;font-size:24px}.landing-price-grid strong{display:block;font-size:35px;letter-spacing:-.04em}.landing-price-grid strong small{font-size:12px;color:#778096}.landing-price-grid ul{min-height:150px;display:grid;gap:10px;padding:20px 0 10px;margin:0;list-style:none}.landing-price-grid li{color:#5f687d;font-size:12px}.landing-price-grid li::before{content:"\2713";margin-right:8px;color:#18a56f}.landing-price-grid button{width:100%;min-height:45px;border:0;border-radius:11px;background:#eef0f7;color:#252e43;font-weight:850}.landing-price-grid .featured button{background:linear-gradient(135deg,#8d77ff,#6558e8);color:#fff}.landing-price-note{display:block;text-align:center;margin-top:20px;color:#788197}
.landing-final-cta{max-width:1280px;margin:0 auto 80px;padding:42px 48px;border-radius:26px;background:linear-gradient(135deg,#17134a,#421768);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:28px}.landing-final-cta>div:first-child{max-width:720px}.landing-final-cta h2{font-size:clamp(28px,3.5vw,46px)}.landing-final-cta p{color:#bac3d8}.landing-final-cta>div:last-child{display:flex;gap:10px;flex-wrap:wrap}
.landing-footer{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;padding:34px max(6vw,48px);background:#080d1b;color:#fff}.landing-footer>div{display:flex;gap:12px;align-items:center}.landing-footer>div:first-child{flex-direction:column;align-items:flex-start;gap:3px}.landing-footer span,.landing-footer small{color:#8f9bb7;font-size:10px}.landing-footer small{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.09);padding-top:18px}
@media(max-width:920px){.public-landing .auth-feature-grid{grid-template-columns:1fr 1fr}.landing-feature-grid{grid-template-columns:1fr 1fr}.landing-platform{grid-template-columns:1fr;gap:35px}.landing-price-grid{grid-template-columns:1fr}.landing-price-grid article.featured{transform:none}.landing-final-cta{margin:0 22px 60px;align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.public-landing .auth-showcase{min-height:720px;padding:24px 20px}.public-landing .auth-showcase-copy{padding-top:115px}.public-landing .auth-showcase h1{font-size:47px}.public-landing .auth-showcase p{font-size:15px}.public-landing .auth-feature-grid{grid-template-columns:1fr 1fr}.public-landing .auth-top-nav{left:12px;right:12px;top:12px;justify-content:flex-end;overflow-x:auto}.public-landing .auth-top-nav button{white-space:nowrap}.landing-proof{grid-template-columns:1fr 1fr}.landing-section{padding:68px 18px}.landing-feature-grid{grid-template-columns:1fr}.landing-platform{padding:68px 20px}.landing-visual-grid{grid-template-columns:1fr 1fr}.landing-final-cta{padding:30px 24px}.landing-footer{grid-template-columns:1fr;padding:30px 20px}.landing-footer>div:nth-child(2){flex-wrap:wrap}}

/* Dedicated public pages */
.auth-top-nav button.active{outline:2px solid rgba(140,123,255,.55);outline-offset:1px}
.auth-root:has(.public-info-page){display:block;padding:0;background:#080d1b}
.auth-shell.public-info-page{width:100%;min-height:100svh;display:block;border:0;border-radius:0;overflow:hidden;background:#f5f7fb;color:#111a2e;box-shadow:none}
.public-info-page>.auth-panel{display:none}
.public-info-page>.auth-showcase{min-height:100svh;padding:0;background:#f5f7fb;color:#111a2e}
.public-info-page .auth-top-nav{position:fixed;top:22px;right:26px;padding:7px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(8,13,29,.78);box-shadow:0 12px 34px rgba(0,0,0,.22);backdrop-filter:blur(18px)}
.public-page-brand{min-height:104px;display:flex;align-items:center;gap:14px;padding:22px max(6vw,48px);background:#080d1b;color:#fff}.public-page-brand button{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#fff}.public-page-brand button span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#8c7bff,#5b45e8);font-size:21px;font-weight:950}.public-page-brand button b{font-size:17px}.public-page-brand small{color:#8f9bbc;font-size:10px}
.public-page-hero{padding:115px max(7vw,54px) 100px;background:radial-gradient(circle at 82% 38%,rgba(124,92,255,.38),transparent 25%),linear-gradient(135deg,#080f24,#17134a 58%,#32115c);color:#fff}.public-page-hero.compact{padding-bottom:78px}.public-page-hero>span,.public-detail-section header>span,.public-workflow>div>span{color:#9b8cff;font-size:11px;font-weight:900;letter-spacing:.15em}.public-page-hero h1{max-width:900px;margin:16px 0 20px;color:#fff;font-size:clamp(45px,6vw,78px);line-height:1;letter-spacing:-.055em}.public-page-hero p{max-width:800px;margin:0;color:#c0c9dd;font-size:18px;line-height:1.7}.public-page-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:30px}.public-page-actions button{min-height:48px;padding:0 20px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-weight:850}.public-page-actions button:first-child{border:0;background:linear-gradient(135deg,#8d77ff,#6558e8)}
.public-detail-section{max-width:1320px;margin:0 auto;padding:92px 32px}.public-detail-section header{max-width:820px;margin:0 auto 42px;text-align:center}.public-detail-section h2{margin:12px 0;font-size:clamp(31px,4vw,51px);line-height:1.06;letter-spacing:-.045em}.public-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.public-detail-grid article{min-height:225px;padding:24px;border:1px solid #e0e5ef;border-radius:20px;background:#fff;box-shadow:0 13px 36px rgba(25,32,58,.06)}.public-detail-grid i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#efedff;color:#6558e8;font-style:normal;font-weight:900}.public-detail-grid h3{margin:20px 0 8px;font-size:17px}.public-detail-grid p{margin:0;color:#69738a;font-size:12px;line-height:1.7}
.public-workflow{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;align-items:center;padding:86px max(7vw,54px);background:#0d1428;color:#fff}.public-workflow h2{margin:12px 0;font-size:clamp(31px,4vw,50px);line-height:1.06}.public-workflow p{color:#aeb8d5;line-height:1.7}.public-flow-visual{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:35px;border:1px solid rgba(255,255,255,.13);border-radius:22px;background:rgba(255,255,255,.05)}.public-flow-visual b{padding:13px 15px;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:#161e37;font-size:11px}.public-flow-visual i{width:22px;height:2px;background:linear-gradient(90deg,#8c7bff,#45e6ae)}
.public-program-section{max-width:1320px;margin:0 auto;padding:80px 32px}.public-program-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.public-program-grid article{display:grid;grid-template-columns:auto 1fr auto;gap:17px;align-items:center;padding:25px;border:1px solid #e0e5ef;border-radius:20px;background:#fff;box-shadow:0 13px 36px rgba(25,32,58,.06)}.public-program-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:linear-gradient(145deg,#8c7bff,#5b45e8);color:#fff;font-size:12px;font-weight:900}.public-program-grid h2{margin:0;font-size:18px}.public-program-grid p{margin:6px 0;color:#687289;font-size:12px}.public-program-grid small{color:#9aa2b4;font-size:9px}.public-program-grid a{min-height:42px;display:flex;align-items:center;gap:9px;padding:0 14px;border-radius:11px;background:#17134a;color:#fff;text-decoration:none;font-size:11px;font-weight:850}.public-program-section aside{margin-top:22px;padding:24px;border:1px solid #dfe4ee;border-radius:18px;background:#eef1f8}.public-program-section aside strong,.public-program-section aside code{display:block}.public-program-section aside code{margin:8px 0;color:#6558e8}.public-program-section aside p{margin:0;color:#69738a;font-size:12px;line-height:1.6}
.public-page-footer{display:flex;align-items:center;gap:16px;padding:31px max(6vw,48px);background:#080d1b;color:#fff}.public-page-footer span{color:#8f9bb7;font-size:10px}.public-page-footer button{margin-left:auto;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:10px 14px;background:rgba(255,255,255,.08);color:#fff;font-weight:800}
.public-auth-page .auth-top-nav{top:18px;right:20px}.public-auth-page .auth-panel{padding-top:92px}
@media(max-width:980px){.public-detail-grid{grid-template-columns:1fr 1fr}.public-workflow{grid-template-columns:1fr}.public-program-grid{grid-template-columns:1fr}}
@media(max-width:620px){.public-info-page .auth-top-nav{left:10px;right:10px;top:10px;justify-content:flex-end;overflow-x:auto}.public-info-page .auth-top-nav button{white-space:nowrap}.public-page-brand{padding:74px 18px 18px;align-items:flex-start}.public-page-brand small{display:none}.public-page-hero{padding:70px 19px}.public-page-hero h1{font-size:43px}.public-page-hero p{font-size:15px}.public-detail-section,.public-program-section{padding:65px 18px}.public-detail-grid{grid-template-columns:1fr}.public-workflow{padding:65px 19px}.public-program-grid article{grid-template-columns:auto 1fr}.public-program-grid a{grid-column:1/-1;justify-content:center}.public-page-footer{align-items:flex-start;flex-direction:column;padding:28px 19px}.public-page-footer button{margin-left:0}.public-auth-page .auth-top-nav{position:fixed;left:10px;right:10px;top:10px;justify-content:flex-end;overflow-x:auto;background:rgba(8,13,29,.84)}.public-auth-page .auth-showcase{padding-top:70px}.public-auth-page .auth-panel{padding-top:32px}}

/* Premium public experience */
.auth-top-nav{position:fixed;top:21px;right:max(3vw,22px);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;width:max-content;max-width:calc(100vw - 32px);padding:5px;border:1px solid rgba(125,211,252,.18);border-radius:999px;background:rgba(5,18,35,.86);box-shadow:0 18px 48px rgba(1,9,22,.3);backdrop-filter:blur(22px)}
.auth-top-nav button{flex:0 0 auto;min-height:38px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#c9d9eb;font-size:11px;font-weight:800;white-space:nowrap}.auth-top-nav button:hover{background:rgba(125,211,252,.1);color:#fff}.auth-top-nav button.active{outline:0;background:rgba(45,212,191,.13);color:#5eead4}.auth-top-nav .auth-nav-login{margin-left:4px;border:1px solid rgba(125,211,252,.24);background:rgba(15,38,65,.9);color:#fff}.auth-top-nav .auth-nav-register{padding-inline:18px;background:linear-gradient(135deg,#2563eb,#14b8a6);color:#fff;box-shadow:0 7px 20px rgba(37,99,235,.22)}
.auth-brand-mark,.public-page-brand button span{overflow:hidden;border:1px solid rgba(94,234,212,.32);background:#0d2340;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.auth-brand-mark img,.public-page-brand button span img{width:100%;height:100%;object-fit:contain;padding:4px}
.public-info-page .auth-top-nav,.public-landing .auth-top-nav{top:21px;right:max(4vw,28px);display:flex;flex-direction:row;align-items:center;gap:3px;padding:5px;border-color:rgba(125,211,252,.18);border-radius:999px;background:rgba(5,18,35,.84);box-shadow:0 18px 48px rgba(1,9,22,.3);backdrop-filter:blur(22px)}
.public-info-page .auth-top-nav button,.public-landing .auth-top-nav button{min-height:38px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#c9d9eb;font-size:11px;letter-spacing:.01em}
.public-info-page .auth-top-nav button:hover,.public-landing .auth-top-nav button:hover{background:rgba(125,211,252,.1);color:#fff}
.public-info-page .auth-top-nav button.active,.public-landing .auth-top-nav button.active{outline:0;background:rgba(45,212,191,.13);color:#5eead4}
.public-info-page .auth-top-nav .auth-nav-login,.public-landing .auth-top-nav .auth-nav-login{margin-left:5px;border:1px solid rgba(125,211,252,.24);background:rgba(15,38,65,.85);color:#fff}
.public-info-page .auth-top-nav .auth-nav-register,.public-landing .auth-top-nav .auth-nav-register{padding-inline:18px;background:linear-gradient(135deg,#2563eb,#14b8a6);color:#fff;box-shadow:0 7px 20px rgba(37,99,235,.22)}
.public-page-brand{min-height:106px;padding:19px max(4vw,34px);background:linear-gradient(90deg,#061425,#081a30);border-bottom:1px solid rgba(125,211,252,.12)}
.public-page-brand button span{width:50px;height:50px;border-radius:15px}.public-page-brand button b{font-size:18px;letter-spacing:-.02em}.public-page-brand small{padding-left:2px;color:#7f98b6;letter-spacing:.08em}
.public-page-hero{padding:106px max(7vw,54px) 94px;background:radial-gradient(circle at 82% 34%,rgba(20,184,166,.2),transparent 24%),radial-gradient(circle at 72% 70%,rgba(37,99,235,.22),transparent 32%),linear-gradient(135deg,#061425,#0a213c 62%,#0b2a45)}
.public-page-hero>span,.public-detail-section header>span,.public-workflow>div>span,.public-product-gallery header>span,.public-program-head>span{color:#5eead4}.public-page-hero h1{max-width:940px;letter-spacing:-.045em}.public-page-hero p{color:#aec3d9}
.public-page-actions button:first-child{background:linear-gradient(135deg,#2563eb,#14b8a6)}
.public-detail-section,.public-program-section,.public-product-gallery{max-width:1240px;margin:0 auto;padding:76px 32px}
.public-detail-grid{gap:18px}.public-detail-grid article{min-height:210px;border-color:#d9e4ee;border-radius:22px;box-shadow:0 18px 52px rgba(11,35,61,.07)}.public-detail-grid i{background:#e8fbf7;color:#0f9f8b}
.public-workflow{background:linear-gradient(135deg,#071526,#0b2743)}.public-flow-visual{border-color:rgba(94,234,212,.15);background:rgba(9,35,59,.68)}.public-flow-visual i{background:linear-gradient(90deg,#3b82f6,#2dd4bf)}
.public-product-gallery{padding-bottom:24px}.public-product-gallery header,.public-program-head{max-width:760px;margin-bottom:30px}.public-product-gallery header>span,.public-program-head>span{font-size:10px;font-weight:900;letter-spacing:.16em}.public-product-gallery h2,.public-program-head h2{margin:11px 0;font-size:clamp(28px,3.4vw,44px);line-height:1.08;letter-spacing:-.04em}.public-product-gallery header p{margin:0;color:#65758a;line-height:1.7}
.public-gif-grid{display:grid;grid-template-columns:1.18fr .82fr;grid-template-rows:1fr 1fr;gap:18px}.public-gif-grid figure{position:relative;min-height:220px;margin:0;overflow:hidden;border:1px solid #d7e3ec;border-radius:24px;background:#061425;box-shadow:0 22px 58px rgba(7,28,49,.12)}.public-gif-grid figure.featured{grid-row:1/3;min-height:458px}.public-gif-grid img{display:block;width:100%;height:100%;object-fit:cover}.public-gif-grid figcaption{position:absolute;left:14px;right:14px;bottom:14px;padding:14px 16px;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:rgba(4,17,32,.78);color:#fff;backdrop-filter:blur(14px)}.public-gif-grid figcaption b,.public-gif-grid figcaption span{display:block}.public-gif-grid figcaption b{font-size:13px}.public-gif-grid figcaption span{margin-top:5px;color:#a9bfd3;font-size:10px}
.public-program-section{padding-top:62px}.public-program-grid{gap:18px}.public-program-grid article{border-color:#d9e4ee;border-radius:22px;box-shadow:0 16px 46px rgba(11,35,61,.07)}.public-program-icon{background:linear-gradient(145deg,#2563eb,#14b8a6);box-shadow:0 12px 25px rgba(37,99,235,.18)}.public-program-grid a{border:1px solid rgba(45,212,191,.2);background:#08213a}.public-program-grid a:hover{background:#0d3150;transform:translateY(-1px)}.public-program-section aside{display:flex;align-items:center;gap:18px;padding:25px 28px;border-color:#d7e5ed;border-radius:20px;background:linear-gradient(135deg,#edf7fb,#f2fbf8)}.public-program-section aside p{max-width:720px}.public-program-section aside button{margin-left:auto;min-height:42px;padding:0 16px;border:0;border-radius:11px;background:#0a2440;color:#fff;font-weight:800}
.public-page-footer{background:#061425;border-top:1px solid rgba(125,211,252,.12)}
@media(max-width:900px){.public-gif-grid{grid-template-columns:1fr;grid-template-rows:auto}.public-gif-grid figure,.public-gif-grid figure.featured{grid-row:auto;min-height:300px}.public-program-section aside{align-items:flex-start;flex-direction:column}.public-program-section aside button{margin-left:0}}
@media(max-width:680px){.auth-top-nav,.public-info-page .auth-top-nav,.public-landing .auth-top-nav{left:10px;right:10px;top:10px;width:auto;justify-content:flex-start;overflow-x:auto;border-radius:16px}.auth-top-nav button,.public-info-page .auth-top-nav button,.public-landing .auth-top-nav button{flex:0 0 auto;padding-inline:11px}.auth-top-nav .auth-nav-register,.public-info-page .auth-top-nav .auth-nav-register,.public-landing .auth-top-nav .auth-nav-register{padding-inline:13px}.public-page-brand{padding:76px 18px 16px}.public-page-hero{padding:64px 19px}.public-detail-section,.public-program-section,.public-product-gallery{padding:58px 18px}.public-product-gallery{padding-bottom:12px}.public-gif-grid figure,.public-gif-grid figure.featured{min-height:250px}.public-program-grid article{padding:20px}}
@media(max-width:820px){.auth-shell.public-landing{min-height:100svh}.public-landing .auth-showcase{min-height:720px;padding:112px 28px 52px}.public-landing .auth-showcase-copy{display:block;margin:auto 0;padding:0;max-width:650px}.public-landing .auth-feature-grid{display:grid}.public-landing .auth-server{display:flex}.public-landing .auth-showcase h1{font-size:clamp(44px,9vw,66px)}}
@media(max-width:620px){.public-landing .auth-showcase{min-height:700px;padding:100px 20px 42px}.public-landing .auth-showcase-copy{padding:0}.public-landing .auth-feature-grid{grid-template-columns:1fr 1fr}.public-landing .auth-server{margin-top:32px}.public-landing .auth-showcase h1{font-size:43px}.public-landing .auth-showcase p{font-size:15px}}
:root{--font-sans:Inter,"Segoe UI",system-ui,sans-serif;--font-mono:"JetBrains Mono","Cascadia Mono",Consolas,monospace;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--radius-sm:6px;--radius-md:10px;--radius-lg:16px;--elevation-card:0 4px 14px rgba(35,40,72,.04)}html,body{font-family:var(--font-sans)}code,pre,.mono,.label-code{font-family:var(--font-mono)}
@media(max-width:480px){.metric-grid{grid-template-columns:1fr}.metric{padding:12px}.metric strong{font-size:18px}.page-head h2{font-size:20px}.content{padding:14px 10px 38px}.actions{width:100%}.actions button{flex:1 1 140px}.top-actions{gap:6px}.global-search{display:none}.toolbar{align-items:stretch}.control.search{min-width:0;width:100%}}
@media(max-width:760px){.service-workspace{grid-template-columns:1fr}.service-summary{grid-template-columns:1fr}.service-workspace .card-head{align-items:flex-start}.service-workspace .actions{width:100%}}
.offers-reference-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,1fr);gap:12px;align-items:stretch}.offers-reference-list,.offers-reference-side{min-width:0}.offers-reference-side{display:flex;flex-direction:column;gap:12px}.offers-reference-facts{display:grid;gap:9px}.offers-reference-facts>div{display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.offers-reference-facts small,.offers-reference-volume small{color:var(--muted);font-size:11px}.offers-reference-facts strong{color:var(--ink);font-size:13px}.offers-reference-volume{display:grid;gap:3px;margin-top:auto;padding:12px;border:1px solid var(--line);border-radius:8px}.offers-reference-volume strong{color:var(--success);font-size:20px;font-variant-numeric:tabular-nums}.offers-reference-side>.success{width:100%}
@media(max-width:980px){.offers-reference-layout{grid-template-columns:minmax(0,1fr)}.offers-reference-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.offers-reference-side>.card-head,.offers-reference-volume,.offers-reference-side>.success{grid-column:1/-1}.offers-reference-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.offers-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.offers-reference-side{display:flex}.offers-reference-facts{grid-template-columns:1fr}.offers-reference-layout .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto}.offers-reference-layout .toolbar .muted{grid-column:1/-1}.offers-reference-list .table-wrap{overflow-x:auto}.offers-reference-list table{min-width:720px}}
.contracts-reference-list{min-width:0}.contracts-reference-list .table-wrap{max-height:430px;overflow:auto}.contracts-reference-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.contracts-reference-footer article{display:grid;gap:7px;border-top:2px solid var(--accent)}.contracts-reference-footer article:last-child{border-top-color:var(--success)}.contracts-reference-footer small{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.contracts-reference-footer strong{color:var(--ink);font-size:15px}.contracts-reference-footer span{line-height:1.5}
@media(max-width:760px){.contracts-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.contracts-reference-footer{grid-template-columns:1fr}.contracts-reference-list .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto}.contracts-reference-list .toolbar .muted{grid-column:1/-1}.contracts-reference-list .table-wrap{overflow-x:auto}.contracts-reference-list table{min-width:760px}}
@media(max-width:480px){.contracts-reference-metrics{grid-template-columns:1fr}.contracts-reference-list .toolbar{grid-template-columns:1fr}.contracts-reference-list .toolbar .muted{grid-column:auto}}

/* Midnight Enterprise Slate parity tokens. */
:root{--bg:#0b1326;--surface:#131b2e;--surface-2:#1e293b;--ink:#dae2fd;--muted:#94a3b8;--line:#334155;--brand:#3b82f6;--brand-2:#60a5fa;--success:#4edea3;--warn:#fbbf24;--danger:#ffb2b7;--shadow:0 14px 38px rgba(0,0,0,.28);--radius:6px;--input-bg:#131b2e;--hover:#1e293b}
html,body{background:var(--bg);color:var(--ink)}
.topbar{background:rgba(11,19,38,.96);border-color:var(--line)}
.secondary,.icon-btn{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.control,.field input,.field select,.field textarea{background:var(--input-bg);color:var(--ink);border-color:var(--line)}
.metric,.card,.table-wrap,.settings-sidebar,.import-lane,.setting,.c360-stat,.c360-currencies>div{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
th{background:var(--surface-2);color:var(--muted)}
td{border-color:var(--line)}
tbody tr:hover{background:var(--hover)}
.day-column,.product-tile,.appointment{background:var(--surface-2);border-color:var(--line)}
.dialog-body,dialog footer{background:var(--surface)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(59,130,246,.18)}
.badge{background:var(--surface-2);color:var(--muted)}
.badge.success{background:rgba(78,222,163,.16);color:var(--success)}
.badge.warn{background:rgba(251,191,36,.16);color:var(--warn)}
.badge.danger{background:rgba(255,178,183,.16);color:var(--danger)}
.settings-sidebar button:hover,.settings-sidebar button.active,.tab.active{background:rgba(59,130,246,.18);color:var(--brand)}
.nav-button:hover,.nav-button.active{background:var(--hover);color:var(--ink)}
.nav-button.active{box-shadow:inset 3px 0 var(--brand-2)}
.primary{background:var(--brand);box-shadow:0 7px 18px rgba(59,130,246,.24)}
.metric-icon,.activity-icon,.import-icon{background:rgba(59,130,246,.16);color:var(--brand)}
.brand-mark{background:linear-gradient(145deg,var(--brand-2),var(--brand));box-shadow:0 8px 24px rgba(59,130,246,.28)}
.nav-parent{font-size:13px}
.sidebar-license{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 4px;color:var(--ink);font-size:10px;font-weight:800}.sidebar-license strong{font-size:10px;font-weight:800}.sidebar-license span{padding:0 6px;border:1px solid var(--finance-outline,var(--line));border-radius:6px;background:var(--finance-surface-alt,var(--surface-2));color:var(--accent);font-family:var(--font-mono);font-size:10px;font-weight:500;white-space:nowrap}.sidebar-bottom .user{display:flex;flex-wrap:wrap;gap:8px;padding:0}.sidebar-bottom .user-profile{flex:1 1 100%;padding:3px 2px}.sidebar-bottom .user-logout{width:100%;height:44px;margin:0;padding:0 14px;border:1px solid var(--danger);border-radius:8px;background:var(--surface);color:var(--danger);font-size:13px;font-weight:600;text-align:center}.sidebar-bottom .user-logout:hover{background:var(--surface-2);color:var(--danger)}.sidebar-bottom .user-logout:active{background:var(--surface);color:var(--danger)}
body[data-page="offers"] .offers-reference-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:10px}
body[data-page="offers"] .offers-reference-metrics .metric{min-height:90px;height:auto;padding:7px 10px}
body[data-page="offers"] .offers-reference-metrics .metric .metric-top{font-size:9px;line-height:1.1}
body[data-page="offers"] .offers-reference-metrics .metric strong{font-size:20px;line-height:1.1;margin:5px 0 1px}
body[data-page="offers"] .offers-reference-metrics .metric small{font-size:9px;line-height:1.1}
body[data-page="offers"] .offers-reference-layout{grid-template-columns:minmax(0,2fr) minmax(420px,1fr);gap:12px;align-items:start}
body[data-page="offers"] .offers-reference-list{display:contents}
body[data-page="offers"] .offers-reference-list>.toolbar{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
body[data-page="offers"] #genericHost{grid-column:1;min-width:0}
body[data-page="offers"] #genericHost>.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
body[data-page="offers"] .offers-reference-table{width:100%;min-width:900px;table-layout:fixed}
body[data-page="offers"] .offers-reference-table th,body[data-page="offers"] .offers-reference-table td{padding:8px 7px;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
body[data-page="offers"] .offers-reference-table th{font-size:9px;line-height:1.15;white-space:normal!important;word-break:normal}
body[data-page="offers"] .offers-reference-table th:last-child,body[data-page="offers"] .offers-reference-table td:last-child{width:170px;white-space:nowrap}
body[data-page="offers"] .offers-reference-table td:last-child .mini{min-width:40px;margin:1px;padding:6px 8px;font-size:10px}
body[data-page="offers"] .offers-reference-table td:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="forest"] body[data-page="offers"] .offers-reference-table tbody tr.selected,html[data-theme="forest"] body[data-page="offers"] .offers-reference-table tbody tr:hover{background:#075e49!important;color:var(--ink)}
body[data-page="offer-reports"] .offer-report-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
body[data-page="offer-reports"] .offer-report-metrics .metric{min-height:70px;padding:8px 11px}
body[data-page="offer-reports"] .offer-report-metrics .metric .metric-top{font-size:10px}
body[data-page="offer-reports"] .offer-report-metrics .metric strong{font-size:21px;margin:5px 0 0}
body[data-page="offer-reports"] .offer-report-total{display:flex;flex-direction:column;gap:2px;margin-bottom:12px;padding:9px 12px}
body[data-page="offer-reports"] .offer-report-total strong{color:var(--success);font-size:22px;line-height:1.1}
body[data-page="offer-reports"] .offer-report-total span{color:var(--muted);font-size:12px}
body[data-page="offer-reports"] .offer-report-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
body[data-page="offer-reports"] .offer-report-ranks{display:flex;flex-direction:column;gap:14px;min-width:0}
body[data-page="offer-reports"] .offer-report-panel{min-width:0;padding:10px;overflow:hidden}
body[data-page="offer-reports"] .offer-report-panel h3{margin:0 0 8px;font-size:13px}
body[data-page="offer-reports"] .offer-report-panel .table-wrap{max-height:calc(100vh - 430px);min-height:270px;overflow:auto}
body[data-page="offer-reports"] .offer-report-panel table{width:100%;min-width:0}
body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child table{table-layout:fixed}
body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child th:nth-child(1),body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child td:nth-child(1){width:12%}
body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child th:nth-child(2),body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child td:nth-child(2){width:13%}
body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child th:nth-child(3),body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child td:nth-child(3){width:25%}
body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child th:nth-child(4),body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child td:nth-child(4){width:24%}
body[data-page="offer-reports"] .offer-report-panel th,body[data-page="offer-reports"] .offer-report-panel td{padding:8px 9px;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
body[data-page="offer-reports"] .offer-report-ranks .offer-report-panel{flex:1}
@media(max-width:760px){body[data-page="offer-reports"] .offer-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="offer-reports"] .offer-report-layout{grid-template-columns:minmax(0,1fr)}body[data-page="offer-reports"] .offer-report-panel .table-wrap{max-height:360px;min-height:180px}body[data-page="offer-reports"] .offer-report-layout>.offer-report-panel:first-child table{min-width:640px}}
@media(max-width:430px){body[data-page="offer-reports"] .offer-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="offer-reports"] .offer-report-metrics .metric .metric-top{font-size:9px}body[data-page="offer-reports"] .offer-report-panel{padding:9px}body[data-page="offer-reports"] .offer-report-panel th,body[data-page="offer-reports"] .offer-report-panel td{padding:7px 5px;font-size:10px}}
@media(max-width:1100px){body[data-page="offers"] .offers-reference-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-page="offers"] .offers-reference-layout{grid-template-columns:minmax(0,1fr)}body[data-page="offers"] .offers-reference-layout .offers-reference-side{grid-column:1}}
@media(max-width:620px){body[data-page="offers"] .offers-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="offers"] .offers-reference-metrics .metric:last-child{grid-column:1/-1}body[data-page="offers"] .offers-reference-list>.toolbar{grid-template-columns:minmax(0,1fr) auto}body[data-page="offers"] .offers-reference-list>.toolbar .muted{grid-column:1/-1}body[data-page="offers"] .offers-reference-table{min-width:900px}}
.settings-sidebar button:hover,.settings-sidebar button.active{background:rgba(59,130,246,.18)}
.import-icon,.metric-icon,.activity-icon,.landing-feature-grid i,.public-detail-grid i{background:rgba(59,130,246,.16);color:var(--brand)}
.landing-feature-grid article,.landing-price-grid article,.public-detail-grid article,.public-program-grid article{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.landing-price-grid article.featured{border-color:var(--brand);box-shadow:0 24px 62px rgba(59,130,246,.18)}
.landing-price-grid em{background:rgba(59,130,246,.16);color:var(--brand)}
.landing-price-grid>article>span{color:var(--brand)}
.landing-price-grid button{background:var(--surface-2);color:var(--ink)}
.landing-price-grid .featured button,.public-page-actions button:first-child{background:var(--brand)}
.public-program-icon{background:linear-gradient(145deg,var(--brand-2),var(--brand))}
.public-program-section aside{background:var(--surface-2);border-color:var(--line)}
.public-program-section aside code{color:var(--brand)}
@media(max-width:760px){.topbar{height:auto;min-height:64px;padding:10px 12px}.content{padding:16px 12px 60px}.page-head{align-items:flex-start;flex-direction:column;gap:12px}.actions{width:100%}.actions button{flex:1 1 130px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.main{width:100%}}
.customer-status,.service-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:22px;padding:2px 8px;border-radius:999px;background:rgba(59,130,246,.14);color:var(--brand);font-size:11px;font-weight:750;white-space:nowrap}.customer-status.aktif{background:rgba(78,222,163,.14);color:var(--success)}.customer-status.vip{background:rgba(78,222,163,.14);color:var(--success)}.customer-status.pasif,.customer-status.dikkat{background:rgba(255,178,183,.14);color:var(--danger)}
.customer-banners button.vip{background:var(--success)}
@media(min-width:761px){.customer-banners{height:auto;min-height:98px;grid-template-columns:max-content max-content max-content 1fr max-content;grid-template-rows:38px 38px;align-items:center}.customer-banners button[data-customer-filter="vip"]{grid-column:1;grid-row:2}.customer-banners button[data-action="add-customer"]{grid-column:5;grid-row:1}}
.offers-reference-selected-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}.offers-reference-selected-summary>div{display:grid;gap:3px;min-width:0}.offers-reference-selected-summary small{color:var(--muted);font-size:10px}.offers-reference-selected-summary strong{color:var(--ink);font-size:12px;overflow-wrap:anywhere}.offers-reference-selected-summary>div:last-child strong{color:var(--success)}[data-page="offers"] #genericHost tr.is-selected{background:rgba(59,130,246,.2);outline:1px solid var(--brand);outline-offset:-1px}[data-page="offers"] #genericHost tr{cursor:pointer}
@media(max-width:620px){.offers-reference-selected-summary{grid-template-columns:1fr 1fr}.offers-reference-side .offers-reference-facts{grid-template-columns:1fr}}

body[data-page="brands"] .brands-reference-card{padding:14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--elevation-card)}
body[data-page="brands"] .brands-reference-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(170px,184px) auto minmax(124px,138px) 40px;gap:10px;align-items:center;padding:2px 0 12px}
body[data-page="brands"] .brands-reference-toolbar label{color:var(--muted);font-size:13px;white-space:nowrap}
body[data-page="brands"] .brands-reference-toolbar .control{width:100%;min-width:0;height:42px;padding:8px 10px;border-radius:var(--radius-sm);background:var(--bg);color:var(--ink);border:1px solid var(--line)}
body[data-page="brands"] .brands-reference-toolbar .search{height:40px}
body[data-page="brands"] .brands-reference-toolbar [data-brand-clear]{height:42px;padding:0;font-size:20px;color:var(--muted)}
body[data-page="brands"] .brands-export-group{display:flex;flex:0 0 auto;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;background:var(--surface-2)}
body[data-page="brands"] .brands-export-group button{min-width:82px;height:46px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-weight:600}
body[data-page="brands"] .brands-export-group button:last-child{border-right:0}
body[data-page="brands"] .brands-export-group button:hover{color:var(--brand-2);background:var(--surface)}
body[data-page="brands"] .brands-reference-table{overflow:auto;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
body[data-page="brands"] .brands-reference-table table{min-width:1060px;width:100%;border-collapse:collapse;font-size:14px}
body[data-page="brands"] .brands-reference-table th{height:52px;text-align:left;white-space:nowrap;background:var(--surface-2);color:var(--ink);font-size:12px;letter-spacing:.04em}
body[data-page="brands"] .brands-reference-table td{height:66px;border-bottom:1px solid var(--line);color:var(--ink)}
body[data-page="brands"] .brands-reference-table th:first-child,body[data-page="brands"] .brands-reference-table td:first-child{width:56px;text-align:center}
body[data-page="brands"] .brands-reference-table tr:last-child td{border-bottom:0}
body[data-page="brands"] .brands-group-icon{display:inline-grid;place-items:center;width:34px;height:34px;margin-right:12px;border:1px solid var(--brand-2);border-radius:7px;color:var(--brand-2);background:rgba(34,197,255,.1)}
body[data-page="brands"] .brands-initials{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:10px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:#bfdbfe;font:600 11px var(--font-mono)}
body[data-page="brands"] .brands-count{color:#b8c5d7;font:13px var(--font-mono);white-space:nowrap}
body[data-page="brands"] .brands-status{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border:1px solid rgba(16,185,129,.35);border-radius:999px;color:var(--success);font-size:12px;white-space:nowrap}
body[data-page="brands"] .brands-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
body[data-page="brands"] .brands-status.inactive{color:var(--muted);border-color:var(--line)}
body[data-page="brands"] .brands-reference-footer{display:flex;align-items:center;gap:20px;padding:14px 4px;color:var(--muted);font-size:13px}
body[data-page="brands"] .brands-reference-footer>span{flex:1;color:var(--ink)}
body[data-page="brands"] .brands-reference-footer label{display:flex;align-items:center;gap:8px;white-space:nowrap}
body[data-page="brands"] .brands-reference-footer select{width:58px;height:34px;padding:4px 6px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm)}
body[data-page="brands"] #brandPagination{display:flex;align-items:center;gap:6px}
body[data-page="brands"] #brandPagination button{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--ink)}
body[data-page="brands"] #brandPagination button.active{background:var(--brand);border-color:var(--brand);color:#fff}
body[data-page="brands"] #brandPagination button:disabled{opacity:.45}
@media(max-width:1100px){body[data-page="brands"] .brands-reference-toolbar{grid-template-columns:minmax(220px,1fr) auto minmax(160px,184px);row-gap:10px}body[data-page="brands"] .brands-reference-toolbar .search{grid-column:1/-1}body[data-page="brands"] .brands-reference-toolbar label:nth-of-type(2){grid-column:1}body[data-page="brands"] .brands-reference-toolbar #brandStatusFilter{grid-column:3}}
@media(max-width:760px){body[data-page="brands"] .page-head>.actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}body[data-page="brands"] .page-head>.actions>[data-brand-refresh]{grid-column:1/-1}body[data-page="brands"] .page-head>.actions>[data-generic-add]{grid-column:1/-1}body[data-page="brands"] .brands-export-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}body[data-page="brands"] .brands-export-group button{min-width:0;width:100%;height:40px}body[data-page="brands"] .brands-reference-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}body[data-page="brands"] .brands-reference-toolbar .search{grid-column:1/-1}body[data-page="brands"] .brands-reference-toolbar label{font-size:12px}body[data-page="brands"] .brands-reference-toolbar label:nth-of-type(1){grid-column:1}body[data-page="brands"] .brands-reference-toolbar #brandGroupFilter{grid-column:2}body[data-page="brands"] .brands-reference-toolbar label:nth-of-type(2){grid-column:1}body[data-page="brands"] .brands-reference-toolbar #brandStatusFilter{grid-column:2}body[data-page="brands"] .brands-reference-toolbar [data-brand-clear]{grid-column:2;justify-self:end;width:42px}body[data-page="brands"] .brands-reference-footer{flex-wrap:wrap;gap:10px}body[data-page="brands"] .brands-reference-footer>span{flex-basis:100%}body[data-page="brands"] #brandPagination{width:100%;justify-content:flex-end}}
body[data-page="brands"] .brands-reference-table table{font-size:12px}
body[data-page="brands"] .brands-reference-table td{font-size:12px}
body[data-page="brands"] .brands-count{font-size:12px}
body[data-page="brands"] .brands-reference-footer{font-size:12px}

body[data-page="checks"] .checks-page-head{align-items:center;margin-bottom:29px}
body[data-page="checks"] .checks-page-head .actions{flex:0 0 auto;flex-wrap:nowrap}
body[data-page="checks"] .checks-page-head [data-check-add]{background:#4bd49d;border-color:#4bd49d;color:#fff;box-shadow:none}
@media(max-width:1100px){body[data-page="checks"] .checks-page-head{align-items:flex-start;flex-direction:column}body[data-page="checks"] .checks-page-head .actions{flex-wrap:wrap;justify-content:flex-start}}
body[data-page="checks"] .checks-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body[data-page="checks"] .checks-reference-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;border:1px solid rgba(59,130,246,.38);background:#111f3d;color:#93c5fd;font-size:12px;font-weight:500;white-space:nowrap}
body[data-page="checks"] .checks-reference-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
body[data-page="checks"] .checks-metric{min-height:195px;display:flex;flex-direction:column;justify-content:space-between;padding:16px 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
body[data-page="checks"] .checks-metric>span{color:var(--muted);font-size:12px;font-weight:500}
body[data-page="checks"] .checks-metric>strong{font:700 24px "JetBrains Mono",monospace;color:#34d399;letter-spacing:-.02em}
body[data-page="checks"] .checks-metric>small{color:var(--muted);font-size:11px}
body[data-page="checks"] .checks-metric.warning>strong{color:#fbbf24}
body[data-page="checks"] .checks-metric.cyan>strong{font:700 16px Inter,sans-serif;color:#fff;white-space:nowrap}
body[data-page="checks"] .checks-metric.purple>strong{color:#d8b4fe}
body[data-page="checks"] .checks-reference-card{padding:14px;background:#0d1829;border:1px solid #1b2a42;border-radius:12px;margin-bottom:18px}
body[data-page="checks"] .checks-reference-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
body[data-page="checks"] .checks-reference-tabs,body[data-page="checks"] .checks-reference-currencies{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:thin}
body[data-page="checks"] .checks-reference-tabs button,body[data-page="checks"] .checks-reference-currencies button{flex:0 0 auto;height:36px;padding:0 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap}
body[data-page="checks"] .checks-reference-tabs button.active{background:#2563eb;color:#fff;font-weight:700}
body[data-page="checks"] .checks-reference-tabs button:hover,body[data-page="checks"] .checks-reference-currencies button:hover{background:#121d2d;color:#e2e8f0}
body[data-page="checks"] .checks-reference-currencies{padding:3px;background:#09111e;border:1px solid #19273c;border-radius:9px}
body[data-page="checks"] .checks-reference-currencies button.active{background:#1d3353;color:#67e8f9;border-color:rgba(34,211,238,.3)}
body[data-page="checks"] .checks-reference-controls{display:grid;grid-template-columns:minmax(220px,1.6fr) minmax(150px,1fr) minmax(160px,1fr) 138px 138px minmax(130px,auto);gap:10px;align-items:center}
body[data-page="checks"] .checks-reference-controls .control{min-width:0;width:100%;height:42px;background:#111f33;color:#e2e8f0;border:1px solid #20375a;border-radius:8px;padding:0 11px}
body[data-page="checks"] .checks-reference-table-card{padding:0;overflow:hidden;background:#0d1829;border:1px solid #1b2a42;border-radius:12px}
body[data-page="checks"] .checks-reference-table{overflow:auto;max-height:calc(100vh - 585px);min-height:360px}
body[data-page="checks"] .checks-reference-table table{width:100%;min-width:1228px;border-collapse:collapse;text-align:left;font-size:12px}
body[data-page="checks"] .checks-reference-table th{position:sticky;top:0;z-index:1;padding:16px 12px;background:#09111e;color:#94a3b8;border-bottom:1px solid #1b2a42;font-size:11px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
body[data-page="checks"] .checks-reference-table td{padding:14px 12px;color:#dbe4f0;border-bottom:1px solid #162438;vertical-align:middle;line-height:1.45}
body[data-page="checks"] .checks-reference-table tbody tr:hover{background:#101e32}
body[data-page="checks"] .checks-reference-table td strong,body[data-page="checks"] .checks-reference-table td small{display:block}
body[data-page="checks"] .checks-reference-table td small{margin-top:3px;color:#64748b;font-size:10px}
body[data-page="checks"] .checks-reference-table .mono{font-family:"JetBrains Mono",monospace;color:#cbd5e1}
body[data-page="checks"] .checks-reference-table .amount{text-align:right;font-weight:700;color:#f8fafc}
body[data-page="checks"] .checks-reference-table .check-type{display:inline-flex;padding:3px 8px;border:1px solid;border-radius:6px;font-size:11px;font-weight:700}
body[data-page="checks"] .checks-reference-table .check-type.check{background:#08243a;color:#38bdf8;border-color:#075985}
body[data-page="checks"] .checks-reference-table .check-type.note{background:#24163d;color:#c4b5fd;border-color:#6d28d9}
body[data-page="checks"] .checks-reference-table .incoming{color:#34d399;font-weight:600}
body[data-page="checks"] .checks-reference-table .outgoing{color:#c084fc;font-weight:600}
body[data-page="checks"] .checks-reference-table .check-status{display:inline-flex;padding:4px 10px;border:1px solid rgba(16,185,129,.35);border-radius:999px;background:#052e2b;color:#34d399;font-weight:700;white-space:nowrap}
body[data-page="checks"] .checks-reference-table .check-actions{white-space:nowrap;text-align:right}
body[data-page="checks"] .checks-reference-table .check-actions button{height:34px;margin-left:4px;padding:0 9px;background:#111f33;color:#cbd5e1;border:1px solid #20375a;border-radius:7px;font-size:11px}
body[data-page="checks"] .checks-reference-table .check-actions button.primary{background:#2563eb;color:#fff;border-color:#2563eb}
body[data-page="checks"] .checks-reference-footer{display:flex;align-items:center;gap:18px;padding:14px 4px;color:var(--muted);font-size:12px}
body[data-page="checks"] .checks-reference-footer>span{flex:1;color:var(--ink)}
body[data-page="checks"] .checks-reference-footer label{display:flex;align-items:center;gap:8px;white-space:nowrap}
body[data-page="checks"] .checks-reference-footer select{width:66px;height:34px;padding:4px 7px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px}
body[data-page="checks"] #checkPagination{display:flex;align-items:center;gap:6px}
body[data-page="checks"] #checkPagination button{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
body[data-page="checks"] #checkPagination button.active{background:#2563eb;border-color:#2563eb;color:#fff}
body[data-page="checks"] #checkPagination button:disabled{opacity:.45}
@media(max-width:1100px){body[data-page="checks"] .checks-reference-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="checks"] .checks-reference-top{align-items:flex-start;flex-direction:column}body[data-page="checks"] .checks-reference-controls{grid-template-columns:minmax(180px,1fr) minmax(140px,1fr) minmax(140px,1fr);gap:8px}body[data-page="checks"] .checks-reference-controls .search{grid-column:1/-1}}
@media(max-width:760px){body[data-page="checks"] .page-head{display:flex;flex-direction:column;gap:12px}body[data-page="checks"] .page-head>.actions{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:8px}body[data-page="checks"] .page-head>.actions button:last-child{grid-column:1/-1}body[data-page="checks"] .checks-title{align-items:flex-start;flex-direction:column;gap:8px;font-size:22px}body[data-page="checks"] .checks-reference-metrics{grid-template-columns:1fr 1fr;gap:8px}body[data-page="checks"] .checks-metric{min-height:150px;padding:12px}body[data-page="checks"] .checks-metric>strong{font-size:19px}body[data-page="checks"] .checks-metric.cyan>strong{font-size:13px;white-space:normal}body[data-page="checks"] .checks-reference-card{padding:10px}body[data-page="checks"] .checks-reference-top{gap:9px}body[data-page="checks"] .checks-reference-tabs{width:100%;max-width:100%}body[data-page="checks"] .checks-reference-currencies{width:100%;justify-content:space-between}body[data-page="checks"] .checks-reference-currencies button{padding:0 8px}body[data-page="checks"] .checks-reference-controls{grid-template-columns:1fr 1fr;gap:7px}body[data-page="checks"] .checks-reference-controls .search{grid-column:1/-1}body[data-page="checks"] .checks-reference-controls [data-check-clear]{grid-column:1/-1}body[data-page="checks"] .checks-reference-table{max-height:calc(100vh - 540px);min-height:300px}body[data-page="checks"] .checks-reference-table table{min-width:1120px}body[data-page="checks"] .checks-reference-footer{flex-wrap:wrap;gap:10px}body[data-page="checks"] .checks-reference-footer>span{flex-basis:100%}body[data-page="checks"] #checkPagination{width:100%;justify-content:flex-end}}

/* Midnight Enterprise Slate: labor definitions */
body[data-page="service-definitions"] .labor-services-card{background:#0b111d;border:1px solid #263449;border-radius:14px;padding:16px}
body[data-page="service-definitions"] .labor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
body[data-page="service-definitions"] .labor-toolbar .search{flex:1;min-width:200px}
body[data-page="service-definitions"] .labor-filter-pills{display:flex;gap:6px;overflow-x:auto;max-width:68%;padding-bottom:2px}
body[data-page="service-definitions"] .labor-filter-pills button{flex:0 0 auto;border:1px solid #263449;border-radius:8px;background:#111b2c;color:#9aa9be;padding:8px 10px;font-size:11px;white-space:nowrap}
body[data-page="service-definitions"] .labor-filter-pills button.active{background:#172f5b;border-color:#3b82f6;color:#bfdbfe}
body[data-page="service-definitions"] .labor-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
body[data-page="service-definitions"] .labor-metrics article{min-width:0;min-height:106px;padding:14px;border:1px solid #294a7c;border-radius:12px;background:#101827;display:flex;flex-direction:column;gap:6px}
body[data-page="service-definitions"] .labor-metrics article:nth-child(2){border-color:#17634d}
body[data-page="service-definitions"] .labor-metrics article:nth-child(3){border-color:#6b3b91}
body[data-page="service-definitions"] .labor-metrics article:nth-child(4){border-color:#8a5b12}
body[data-page="service-definitions"] .labor-metrics small{color:#60a5fa;font-size:10px;font-weight:700;letter-spacing:.04em}
body[data-page="service-definitions"] .labor-metrics article:nth-child(2) small{color:#34d399}
body[data-page="service-definitions"] .labor-metrics article:nth-child(3) small{color:#c084fc}
body[data-page="service-definitions"] .labor-metrics article:nth-child(4) small{color:#fbbf24}
body[data-page="service-definitions"] .labor-metrics strong{color:#f8fafc;font-size:19px;line-height:1.3}
body[data-page="service-definitions"] .labor-metrics span{color:#94a3b8;font-size:11px}
body[data-page="service-definitions"] .labor-count{margin:0 0 8px}
body[data-page="service-definitions"] .labor-table-wrap{overflow:auto;border:1px solid #263449;border-radius:12px;background:#0b111d}
body[data-page="service-definitions"] .labor-services-table{width:100%;min-width:1120px;border-collapse:collapse;font-size:12px}
body[data-page="service-definitions"] .labor-services-table th{padding:12px 10px;background:#0b101c;color:#94a3b8;text-align:left;font-size:10px;letter-spacing:.04em;white-space:nowrap}
body[data-page="service-definitions"] .labor-services-table td{padding:12px 10px;border-top:1px solid #1b2637;color:#cbd5e1;vertical-align:middle}
body[data-page="service-definitions"] .labor-services-table td:nth-child(2) code{color:#22d3ee;font-family:"JetBrains Mono",monospace}
body[data-page="service-definitions"] .labor-services-table td:nth-child(3){min-width:260px;color:#f1f5f9}
body[data-page="service-definitions"] .labor-services-table td:nth-child(3) small{display:block;margin-top:4px;color:#64748b;font-size:10px;line-height:1.35}
body[data-page="service-definitions"] .labor-services-table td:nth-child(3) em{display:inline-block;margin-left:6px;padding:2px 5px;border:1px solid #17634d;border-radius:4px;color:#34d399;font-size:9px;font-style:normal}
body[data-page="service-definitions"] .labor-category{display:inline-block;padding:5px 7px;border:1px solid #38527b;border-radius:6px;background:#13223a;color:#93c5fd;font-size:10px}
body[data-page="service-definitions"] .labor-status{padding:5px 9px;border:1px solid #17634d;border-radius:14px;background:#062b28;color:#34d399;font-size:10px}
body[data-page="service-definitions"] .labor-services-table tr.inactive{opacity:.55}
@media(max-width:900px){body[data-page="service-definitions"] .labor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-page="service-definitions"] .labor-toolbar{align-items:stretch;flex-direction:column}body[data-page="service-definitions"] .labor-filter-pills{max-width:100%}}
@media(max-width:600px){body[data-page="service-definitions"] .labor-services-table td:nth-child(n+4)::before{display:block;margin-bottom:3px;color:#94a3b8;font-size:9px;font-weight:700;letter-spacing:.04em}body[data-page="service-definitions"] .labor-services-table td:nth-child(4)::before{content:"Kategori"}body[data-page="service-definitions"] .labor-services-table td:nth-child(5)::before{content:"S\00FC re"}body[data-page="service-definitions"] .labor-services-table td:nth-child(6)::before{content:"Taban (TL)"}body[data-page="service-definitions"] .labor-services-table td:nth-child(7)::before{content:"D\00F6 viz"}body[data-page="service-definitions"] .labor-services-table td:nth-child(8)::before{content:"KDV"}body[data-page="service-definitions"] .labor-services-table td:nth-child(9)::before{content:"Durum"}body[data-page="service-definitions"] .labor-services-table td:nth-child(10)::before{content:"\0130\015Flemler"}}
@media(max-width:600px){body[data-page="service-definitions"] .labor-services-card{padding:10px}body[data-page="service-definitions"] .labor-metrics{grid-template-columns:1fr 1fr;gap:8px}body[data-page="service-definitions"] .labor-metrics article{min-height:88px;padding:10px}body[data-page="service-definitions"] .labor-metrics strong{font-size:15px}body[data-page="service-definitions"] .labor-table-wrap{overflow:visible;border:0;background:transparent}body[data-page="service-definitions"] .labor-services-table{display:block;min-width:0}body[data-page="service-definitions"] .labor-services-table thead{display:none}body[data-page="service-definitions"] .labor-services-table tbody{display:grid;gap:9px}body[data-page="service-definitions"] .labor-services-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:12px;border:1px solid #263449;border-radius:12px;background:#101827}body[data-page="service-definitions"] .labor-services-table td{min-width:0;padding:0;border:0}body[data-page="service-definitions"] .labor-services-table td:first-child{display:none}body[data-page="service-definitions"] .labor-services-table td:nth-child(2){grid-column:2;grid-row:1;text-align:right}body[data-page="service-definitions"] .labor-services-table td:nth-child(3){grid-column:1/-1;grid-row:1;min-width:0;padding-right:92px}body[data-page="service-definitions"] .labor-services-table td:nth-child(4){grid-column:1;grid-row:2}body[data-page="service-definitions"] .labor-services-table td:nth-child(5){grid-column:2;grid-row:2;text-align:right}body[data-page="service-definitions"] .labor-services-table td:nth-child(6){grid-column:1;grid-row:3;font-weight:700}body[data-page="service-definitions"] .labor-services-table td:nth-child(7){grid-column:2;grid-row:3;text-align:right}body[data-page="service-definitions"] .labor-services-table td:nth-child(8){grid-column:1;grid-row:4}body[data-page="service-definitions"] .labor-services-table td:nth-child(9){grid-column:2;grid-row:4;text-align:right}body[data-page="service-definitions"] .labor-services-table td:nth-child(10){grid-column:1/-1;grid-row:5;text-align:right}body[data-page="service-definitions"] header.page-head{align-items:flex-start;gap:8px;flex-wrap:wrap}body[data-page="service-definitions"] header.page-head .actions{width:100%;display:flex;flex-wrap:wrap}}

/* Report-template workspace: Midnight Enterprise Slate, including narrow screens. */
body[data-page="report-templates"] .page-head{align-items:flex-start;gap:24px;border-bottom:1px solid #1e293b;padding-bottom:20px}
body[data-page="report-templates"] .page-head h1{color:#f1f5f9}
body[data-page="report-templates"] .page-head p{max-width:680px;color:#94a3b8}
body[data-page="report-templates"] .page-head>.actions{flex-wrap:nowrap;gap:10px}
body[data-page="report-templates"] .report-template-transfer{position:relative;align-self:center;z-index:2}
body[data-page="report-templates"] .report-template-transfer summary{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 13px;border:1px solid #1e293b;border-radius:8px;background:#0f172a;color:#e2e8f0;font-size:12px;font-weight:700;cursor:pointer;list-style:none;white-space:nowrap}
body[data-page="report-templates"] .report-template-transfer summary::-webkit-details-marker{display:none}
body[data-page="report-templates"] .report-template-transfer>div{position:absolute;right:0;top:calc(100% + 5px);display:grid;gap:4px;min-width:150px;padding:6px;border:1px solid #334155;border-radius:8px;background:#0f172a;box-shadow:0 12px 30px #020617aa}
body[data-page="report-templates"] .report-template-transfer>div button{border:0;border-radius:5px;background:transparent;color:#e2e8f0;text-align:left;padding:9px 10px}
body[data-page="report-templates"] .report-template-transfer>div button:hover{background:#1e293b}
body[data-page="report-templates"] .report-template-categories{display:flex;gap:9px;overflow-x:auto;padding:14px 0;border-bottom:1px solid #1e293b;scrollbar-width:thin}
body[data-page="report-templates"] .report-template-categories button{flex:0 0 auto;display:flex;align-items:center;gap:10px;min-height:38px;padding:0 14px;border:1px solid #1e293b;border-radius:8px;background:#0f172a;color:#94a3b8;font-weight:650;white-space:nowrap}
body[data-page="report-templates"] .report-template-categories button.active{border-color:#0ea5e9;background:#0ea5e9;color:#f8fafc}
body[data-page="report-templates"] .report-template-categories span{padding:2px 7px;border-radius:5px;background:#1e293b;color:#e2e8f0;font-size:11px}
body[data-page="report-templates"] .report-template-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:18px;min-width:0;margin-top:14px}
body[data-page="report-templates"] .report-template-list,body[data-page="report-templates"] .report-template-preview{min-width:0}
body[data-page="report-templates"] .report-template-filters{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 0}
body[data-page="report-templates"] .report-template-filters>.search{flex:1 1 280px;min-width:120px}
body[data-page="report-templates"] .report-template-filters label{display:flex;align-items:center;gap:7px;color:#94a3b8;white-space:nowrap}
body[data-page="report-templates"] .report-template-filters select{max-width:190px;min-width:0;height:38px;border:1px solid #1e293b;border-radius:8px;background:#0f172a;color:#e2e8f0;padding:0 9px}
body[data-page="report-templates"] .report-template-table{overflow:auto;border:1px solid #1e293b;border-radius:10px;background:#080f1b}
body[data-page="report-templates"] .report-template-table table{min-width:790px;border-collapse:collapse}
body[data-page="report-templates"] .report-template-table th{background:#0f172a;color:#94a3b8;font-size:11px;letter-spacing:.04em}
body[data-page="report-templates"] .report-template-table th,body[data-page="report-templates"] .report-template-table td{border-bottom:1px solid #1e293b;padding:13px 11px}
body[data-page="report-templates"] .report-template-table td{font-size:13px;vertical-align:middle}
body[data-page="report-templates"] .report-template-table tbody tr{cursor:pointer}
body[data-page="report-templates"] .report-template-table tbody tr:hover,body[data-page="report-templates"] .report-template-table tbody tr.selected{background:#0b2237}
body[data-page="report-templates"] .report-template-grip{width:24px;color:#64748b;text-align:center;font-size:15px}
body[data-page="report-templates"] .report-template-scope-wrap{display:flex;align-items:center;gap:8px;min-width:250px}
body[data-page="report-templates"] .report-template-scope-wrap>b{color:#64748b}
body[data-page="report-templates"] .report-template-scope-wrap>strong{min-width:90px;color:#cbd5e1}
body[data-page="report-templates"] .report-template-scope{display:inline-block;padding:5px 8px;border:1px solid #334155;border-radius:5px;background:#111827;color:#38bdf8;font:11px "JetBrains Mono",monospace}
body[data-page="report-templates"] .report-template-status{display:inline-block;padding:5px 9px;border:1px solid #065f46;border-radius:999px;background:#052e2b;color:#34d399;font-size:11px;font-weight:700}
body[data-page="report-templates"] .report-template-status.inactive{border-color:#475569;background:#1e293b;color:#94a3b8}
body[data-page="report-templates"] .report-template-table kbd{padding:3px 6px;border:1px solid #334155;border-radius:4px;background:#1e293b;color:#dbeafe}
body[data-page="report-templates"] .report-template-row-actions{white-space:nowrap}
body[data-page="report-templates"] .report-template-row-actions .mini{min-width:30px;min-height:30px;margin-right:4px;background:#111827;color:#94a3b8;border:1px solid #1e293b}
body[data-page="report-templates"] .report-template-preview{align-self:start;padding:14px;border:1px solid #1e293b;border-radius:10px;background:#0f172a;color:#e2e8f0}
body[data-page="report-templates"] .report-template-preview-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px;color:#f1f5f9;font-size:12px;font-weight:800}
body[data-page="report-templates"] .report-template-preview-head span{color:#34d399;font:11px "JetBrains Mono",monospace}
body[data-page="report-templates"] .report-template-receipt{padding:18px;border:1px solid #1e293b;border-radius:12px;background:#080f1b;text-align:center}
body[data-page="report-templates"] .report-template-receipt>strong,.report-template-receipt>small{display:block}
body[data-page="report-templates"] .report-template-receipt>small{margin:6px 0 14px;color:#94a3b8;font-size:10px}
body[data-page="report-templates"] .report-template-receipt p{display:flex;justify-content:space-between;gap:10px;text-align:left;color:#94a3b8}
body[data-page="report-templates"] .report-template-preview-text{min-height:120px;margin-top:14px;padding:12px;border:1px solid #1e293b;border-radius:8px;text-align:left;color:#94a3b8}
body[data-page="report-templates"] .report-template-stats{margin-top:14px;padding:14px;border:1px solid #1e293b;border-radius:10px;background:#0b1321}
body[data-page="report-templates"] .report-template-stats>div{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
body[data-page="report-templates"] .report-template-stats span{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #1e293b;border-radius:7px;color:#94a3b8;font-size:11px}
body[data-page="report-templates"] .report-template-stats span strong{color:#38bdf8;font:18px "JetBrains Mono",monospace}
body[data-page="report-templates"] .report-template-count{padding:10px 0;color:#94a3b8}
@media(max-width:1100px){body[data-page="report-templates"] .report-template-layout{grid-template-columns:minmax(0,1fr) 300px}body[data-page="report-templates"] .report-template-filters{flex-wrap:wrap}body[data-page="report-templates"] .report-template-filters>.search{flex-basis:100%}}
@media(max-width:760px){body[data-page="report-templates"] .page-head>.actions{display:grid;grid-template-columns:1fr 1fr;width:100%}body[data-page="report-templates"] .page-head>.actions button:last-child{grid-column:1/-1}body[data-page="report-templates"] .report-template-layout{grid-template-columns:minmax(0,1fr)}body[data-page="report-templates"] .report-template-preview{order:-1}body[data-page="report-templates"] .report-template-filters{display:grid;grid-template-columns:1fr 1fr}body[data-page="report-templates"] .report-template-filters>.search{grid-column:1/-1}body[data-page="report-templates"] .report-template-filters label{display:grid;grid-template-columns:1fr;white-space:normal}body[data-page="report-templates"] .report-template-filters select{width:100%;max-width:none}body[data-page="report-templates"] .report-template-categories{margin-inline:-12px;padding-inline:12px}body[data-page="report-templates"] .report-template-table{overflow-x:auto}}


/* Part 7: Midnight Enterprise Slate invoice composer */
.einvoice-layout{display:grid;grid-template-columns:minmax(0,1fr) 462px;gap:14px;align-items:start;min-width:0}
.einvoice-main,.einvoice-aside{display:flex;flex-direction:column;gap:14px;min-width:0}
.einvoice-ribbon{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.einvoice-ribbon>div{flex:1;min-width:180px}.einvoice-ribbon h2,.einvoice-ribbon p,.einvoice-meta h3,.einvoice-lines h3,.einvoice-summary h3,.einvoice-payment h3{margin:0}
.einvoice-ribbon h2{font-size:18px}.einvoice-ribbon p,.einvoice-summary p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.einvoice-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border:1px solid var(--line);border-radius:9px;background:#10213a;color:var(--brand-2);font-size:20px}
.einvoice-ribbon button{min-height:52px;max-width:150px;white-space:normal}.einvoice-meta{padding:12px}.einvoice-meta h3{margin-bottom:10px;font-size:14px}
.einvoice-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px}.einvoice-fields .field{min-width:0}.einvoice-fields .field:nth-child(-n+3){grid-column:span 2}.einvoice-fields .customer-field{grid-column:span 3}.einvoice-fields .currency-field{grid-column:span 2}.einvoice-fields .address-field{grid-column:span 4}
.einvoice-fields input,.einvoice-fields select,.einvoice-payment input,.einvoice-payment select,.einvoice-notes input,.einvoice-notes textarea,.invoice-line-description,.invoice-line-code,.invoice-line-qty,.invoice-line-price,.invoice-line-discount,.invoice-line-vat{width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#070d1a;color:var(--ink);font:inherit}
.einvoice-fields label,.einvoice-payment label,.einvoice-notes label{display:block;margin-bottom:5px;color:#cbd5e1;font-size:11px;font-weight:600}.invoice-customer-row,.currency-field>div{display:flex;gap:8px}.invoice-customer-row input,.invoice-customer-row select,.currency-field select{flex:1}.invoice-customer-row button{white-space:nowrap}.currency-field input{max-width:130px;font-family:var(--font-mono)}
.einvoice-lines{display:flex;min-height:480px;flex-direction:column;overflow:hidden;padding:0}.einvoice-lines>header{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;background:#101a2b;border-bottom:1px solid var(--line)}.einvoice-lines>header h3{max-width:220px;font-size:14px}.einvoice-lines>header span{font-size:11px}.einvoice-lines>header #invoiceLineCount{padding:7px 10px;border:1px solid #244b83;border-radius:6px;color:#78b9ff}.einvoice-lines .stock-reserved{margin-left:auto;color:#34d399}.invoice-table-scroll{flex:1;min-height:330px;overflow:auto}.einvoice-table{width:100%;min-width:810px;border-collapse:collapse;table-layout:fixed}.einvoice-table th,.einvoice-table td{padding:9px 7px;border-bottom:1px solid #1b2940;text-align:left;vertical-align:middle}.einvoice-table th{background:#0d1524;color:#94a3b8;font-size:10px;font-weight:700}.einvoice-table td{font-size:12px}.einvoice-table th:nth-child(2),.einvoice-table td:nth-child(2){width:27%}.einvoice-table th:nth-child(3),.einvoice-table td:nth-child(3){width:10%}.einvoice-table input,.einvoice-table select{height:36px;padding:6px 7px;font-size:11px}.invoice-line-total{font-family:var(--font-mono);white-space:nowrap}.invoice-line-remove{width:30px;height:30px;border:1px solid var(--line);border-radius:6px;background:transparent;color:#fb7185;cursor:pointer}.invoice-add-inline{width:100%;padding:12px;border:0;border-bottom:1px dashed var(--line);background:transparent;color:var(--muted);text-align:left;cursor:pointer}.einvoice-lines>footer{display:grid;grid-template-columns:1fr 1.1fr 1fr auto;gap:10px;min-height:58px;align-items:center;padding:8px 12px;border-top:1px solid var(--line);background:#080e19;color:var(--muted);font:10px/1.45 var(--font-mono)}.einvoice-lines>footer span:nth-child(3){color:#34d399}.einvoice-notes{display:grid;grid-template-columns:2fr 1fr;gap:14px;padding:12px}.einvoice-notes .field small{display:block;margin:4px 0 6px;color:var(--muted);font-size:10px}.einvoice-notes textarea{height:auto;min-height:72px;resize:vertical}
.einvoice-summary,.einvoice-payment{padding:14px;background:#080e19}.einvoice-summary>header,.einvoice-payment>header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line)}.einvoice-summary h3,.einvoice-payment h3{font-size:14px}.einvoice-summary .badge{font:10px var(--font-mono);color:var(--brand-2)}.invoice-total-row{display:flex;justify-content:space-between;align-items:center;min-height:58px;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px}.invoice-total-row strong{color:var(--ink);font:12px var(--font-mono)}.invoice-total-row.danger,.invoice-total-row.danger strong{color:#fb7185}.invoice-total-row.success strong{color:#34d399}.invoice-grand-total{margin-top:12px;padding:14px;border:2px solid #08768b;border-radius:10px;background:linear-gradient(145deg,#0c1930,#101c31);box-shadow:0 0 20px rgba(34,197,255,.12)}.invoice-grand-total>div,.invoice-grand-total small{display:flex;justify-content:space-between;gap:10px}.invoice-grand-total>div strong{color:#67e8f9;font-size:12px}.invoice-grand-total>div span{padding:3px 6px;border-radius:4px;background:#164e63;color:#a5f3fc;font-size:9px}.invoice-grand-total>b{display:block;margin:8px 0;text-align:center;color:#67e8f9;font:700 24px var(--font-mono)}.invoice-grand-total small{padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.invoice-grand-total small strong{color:#34d399;font:700 13px var(--font-mono)}.einvoice-payment{display:flex;flex-direction:column;gap:12px}.einvoice-payment>header{border:0;padding:0}.einvoice-payment-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.invoice-switch{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--ink);font-size:12px}.invoice-switch input{width:42px;height:24px;accent-color:var(--success)}.einvoice-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}.einvoice-actions>[data-invoice-action="send"]{min-height:58px;background:linear-gradient(100deg,#2563eb,#0ea5a7);font-size:14px}.einvoice-actions>div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.einvoice-actions>div button{min-height:42px}.einvoice-actions>small{text-align:center;color:#34d399;font:10px var(--font-mono)}
@media(max-width:1250px){.einvoice-layout{grid-template-columns:minmax(0,1fr)}.einvoice-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.einvoice-fields .field:nth-child(-n+3){grid-column:span 2}.einvoice-ribbon{flex-wrap:wrap}.einvoice-ribbon>div{flex-basis:calc(100% - 56px)}}
@media(max-width:900px){.einvoice-layout{grid-template-columns:minmax(0,1fr)}.einvoice-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.einvoice-actions{grid-column:1/-1}.einvoice-lines{min-height:430px}.einvoice-ribbon{align-items:flex-start}.einvoice-ribbon>div{flex:1 1 calc(100% - 56px)}}
@media(max-width:620px){.einvoice-ribbon{gap:8px;padding:11px}.einvoice-ribbon h2{font-size:16px}.einvoice-ribbon button{max-width:none;flex:1 1 calc(50% - 8px);min-height:44px}.einvoice-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.einvoice-fields .field,.einvoice-fields .field:nth-child(-n+3),.einvoice-fields .customer-field,.einvoice-fields .currency-field,.einvoice-fields .address-field{grid-column:1/-1}.einvoice-lines>header{flex-wrap:wrap;gap:8px}.einvoice-lines>header h3{max-width:none;flex:1 1 100%}.einvoice-lines>header .stock-reserved{margin-left:0}.invoice-table-scroll{overflow:visible;min-height:0}.einvoice-table{display:block;min-width:0}.einvoice-table thead{display:none}.einvoice-table tbody{display:grid;gap:10px;padding:10px}.einvoice-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.einvoice-table td{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:6px;width:auto!important;padding:0;border:0}.einvoice-table td::before{content:attr(data-label);color:var(--muted);font-size:10px}.einvoice-table td:nth-child(2){grid-column:1/-1}.einvoice-table td:last-child{grid-column:1/-1;justify-self:end}.invoice-add-inline{text-align:center}.einvoice-lines>footer{grid-template-columns:1fr 1fr;font-size:9px}.einvoice-notes,.einvoice-aside{grid-template-columns:1fr}.einvoice-summary,.einvoice-payment{padding:12px}.invoice-grand-total>b{font-size:22px}.einvoice-actions>div{grid-template-columns:repeat(3,minmax(0,1fr))}.einvoice-actions>div button{padding:7px 5px;font-size:11px}}

/* Midnight collection dialog */
dialog.collection-dialog{width:min(960px,calc(100vw - 48px));max-width:960px;max-height:calc(100svh - 36px);padding:0;overflow:hidden;border:1px solid #263449;border-radius:14px;background:#0f172a;color:#e6edf8;box-shadow:0 24px 64px rgba(0,0,0,.48)}dialog.collection-dialog form>header{padding:17px 22px;border-bottom:1px solid #263449;background:#0b1220}dialog.collection-dialog form>header h2{margin:0;color:#f1f5f9;font-size:18px}dialog.collection-dialog .dialog-body{max-height:calc(100svh - 160px);overflow:auto;padding:16px 20px;background:#0f172a}dialog.collection-dialog footer{padding:12px 20px;border-top:1px solid #263449;background:#0b1220}.collection-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.85fr);gap:16px}.collection-main,.collection-aside{min-width:0}.collection-customer{display:flex;align-items:center;gap:11px;margin-bottom:14px;padding:11px 13px;border:1px solid #263449;border-radius:9px;background:#111c2d}.collection-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#153c75;color:#93c5fd;font-weight:800}.collection-customer div{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.collection-customer small,.collection-customer span{color:#94a3b8;font-size:10px}.collection-customer strong{font-size:13px}.collection-customer>b{padding:4px 7px;border:1px solid #176b58;border-radius:5px;background:#0b302a;color:#34d399;font-size:9px}.collection-currencies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}.collection-currency{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:1px solid #263449;border-radius:8px;background:#111c2d;color:#e6edf8;text-align:left}.collection-currency.active{border-color:#2580f5;background:#102649;box-shadow:inset 0 0 0 1px #2580f5}.collection-currency span{color:#93c5fd;font:700 10px var(--font-mono)}.collection-currency strong{max-width:100%;overflow:hidden;font:600 12px var(--font-mono);text-overflow:ellipsis}.collection-currency small{color:#94a3b8;font-size:9px}.collection-amount{padding:12px;border:1px solid #263449;border-radius:9px;background:#0b1220}.collection-amount>label{display:flex;justify-content:space-between;gap:8px;color:#cbd5e1;font-size:10px;font-weight:700}.collection-amount>label i{color:#fb7185;font-style:normal}.collection-amount>label small{color:#94a3b8;font-size:10px;font-weight:400}.collection-amount-entry{display:flex;align-items:center;gap:10px;margin-top:8px}.collection-amount-entry input{width:100%;min-width:0;height:43px;border:1px solid #31415a;border-radius:7px;background:#070d1a;color:#f1f5f9;padding:8px 11px;font:600 20px var(--font-mono)}.collection-amount-entry>span{min-width:42px;color:#60a5fa;font:700 11px var(--font-mono)}.collection-quick{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.collection-quick button{padding:6px 10px;border:1px solid #31415a;border-radius:6px;background:#111c2d;color:#bfdbfe;font-size:10px}.collection-quick button:last-child{margin-left:auto;color:#60a5fa}.collection-section-head{display:flex;justify-content:space-between;margin:14px 0 8px;color:#cbd5e1;font-size:10px}.collection-section-head span{color:#64748b}.collection-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.collection-method{display:flex;min-width:0;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 3px;border:1px solid #263449;border-radius:8px;background:#111c2d;color:#cbd5e1;font-size:9px}.collection-method>span{color:#94a3b8;font-size:15px}.collection-method.active{border-color:#2580f5;background:#102649;color:#bfdbfe}.collection-method.active>span{color:#60a5fa}.collection-native-field{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.collection-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.collection-fields .field{min-width:0}.collection-fields .field.full{grid-column:1/-1}.collection-fields label{display:block;margin-bottom:5px;color:#94a3b8;font-size:10px}.collection-fields input,.collection-fields textarea{width:100%;min-width:0;min-height:36px;padding:8px 9px;border:1px solid #263449;border-radius:7px;background:#070d1a;color:#e6edf8;font:12px var(--font-sans)}.collection-fields textarea{min-height:45px;resize:vertical}.collection-aside{align-self:start;min-height:100%;padding:14px;border:1px solid #263449;border-radius:10px;background:#0b1220}.collection-aside>header{display:flex;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid #263449}.collection-aside>header div{display:flex;flex-direction:column;gap:4px}.collection-aside>header strong{font-size:10px;letter-spacing:.04em}.collection-aside>header small{color:#94a3b8;font-size:10px}.collection-count{align-self:flex-start;padding:4px 6px;border-radius:5px;background:#17263d;color:#60a5fa;font:9px var(--font-mono)}.collection-balance-row{display:flex;justify-content:space-between;gap:8px;padding:13px 0;border-bottom:1px solid #1e293b;color:#94a3b8;font-size:10px}.collection-balance-row strong{color:#e6edf8;font:600 11px var(--font-mono);text-align:right}.collection-accent{color:#60a5fa!important}.collection-net{display:flex;flex-direction:column;gap:7px;margin-top:14px;padding:13px;border:1px solid #155e75;border-radius:8px;background:linear-gradient(145deg,#0c1930,#101c31)}.collection-net small,.collection-net span{color:#94a3b8;font-size:10px}.collection-net strong{color:#67e8f9;font:700 18px var(--font-mono)}.collection-note{display:flex;gap:8px;margin-top:14px;padding:10px;border:1px solid #263449;border-radius:8px;background:#111c2d}.collection-note>span{color:#60a5fa}.collection-note p{margin:0;color:#94a3b8;font-size:10px;line-height:1.5}
@media(max-width:760px){dialog.collection-dialog{width:calc(100vw - 16px);max-height:calc(100svh - 16px);border-radius:11px}dialog.collection-dialog .dialog-body{max-height:calc(100svh - 144px);padding:11px}.collection-layout{grid-template-columns:1fr;gap:10px}.collection-aside{min-height:0}.collection-currencies{gap:5px}.collection-currency{padding:8px 6px}.collection-currency strong{font-size:10px}.collection-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-fields{grid-template-columns:1fr}.collection-fields .field.full{grid-column:auto}.collection-amount>label{flex-wrap:wrap}.collection-quick button{flex:1 1 42px}.collection-quick button:last-child{margin-left:0}}

dialog.c360-dialog{width:min(1220px,calc(100vw - 42px));max-width:1220px;height:min(760px,calc(100svh - 42px));max-height:calc(100svh - 42px);padding:0;border:1px solid #263449;border-radius:12px;background:#0b1220;color:#e6edf8;box-shadow:0 24px 64px rgba(0,0,0,.5)}dialog.c360-dialog form>header{padding:11px 16px;border-bottom:1px solid #263449;background:#0b1220}dialog.c360-dialog form>header h2{margin:0;color:#e6edf8;font-size:14px}dialog.c360-dialog .dialog-body{height:calc(100% - 110px);max-height:none;overflow:auto;padding:14px 18px;background:#0b1220}dialog.c360-dialog footer{min-height:54px;padding:8px 18px;border-top:1px solid #263449;background:#0b1220}.c360-header{display:flex;align-items:center;gap:12px;margin:0 0 14px}.c360-avatar{flex:none;width:44px;height:44px;border:1px solid #2580f5;border-radius:12px;background:#1d4ed8;color:#eff6ff;font-size:15px;box-shadow:0 4px 14px rgba(37,128,245,.24)}.c360-profile{min-width:0;display:flex;flex-direction:column;gap:4px}.c360-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.c360-title-row h2{margin:0;color:#f1f5f9;font-size:16px}.c360-code{padding:3px 6px;border:1px solid #263449;border-radius:4px;color:#94a3b8;font:9px var(--font-mono)}.c360-profile-state{padding:3px 7px;border:1px solid #244b83;border-radius:12px;background:#102649;color:#60a5fa;font-size:9px;font-weight:700}.c360-profile p{margin:0;color:#94a3b8;font-size:10px}.c360-profile p span{padding:0 5px;color:#475569}.c360-header .primary{margin-left:auto;flex:none;min-height:36px;background:#2563eb;color:#fff;border-radius:7px;box-shadow:none;font-size:11px}.c360-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.c360-stat{width:auto;min-width:0;min-height:68px;padding:9px 11px;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;border:1px solid #263449;border-radius:9px;background:#111a29;box-shadow:none}.c360-stat>span{width:34px;height:34px;border:1px solid #1e4d83;border-radius:8px;background:#102649;color:#60a5fa;font-size:14px}.c360-stat:nth-child(2)>span{border-color:#805a16;background:#30230c;color:#fbbf24}.c360-stat:nth-child(3)>span{border-color:#176b58;background:#0b302a;color:#34d399}.c360-stat small{overflow:hidden;color:#94a3b8;font-size:9px;letter-spacing:.025em;text-overflow:ellipsis;white-space:nowrap}.c360-stat strong{overflow:hidden;color:#f1f5f9;font:700 17px var(--font-mono);text-overflow:ellipsis;white-space:nowrap}.c360-debt{border-color:#805a16;background:#171b26}.c360-debt>span{border-color:#805a16;background:#30230c;color:#fbbf24}.c360-debt small,.c360-debt strong{color:#fbbf24}.c360-tabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid #263449;white-space:nowrap}.c360-tabs .tab{flex:none;margin:0;padding:9px 12px;border:1px solid transparent;border-radius:7px 7px 0 0;background:transparent;color:#94a3b8;font-size:10px}.c360-tabs .tab.active{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.22)}.c360-panel{display:none;min-height:300px;margin-top:16px;padding:0;border:1px solid #263449;border-radius:10px;background:#0f172a}.c360-panel.active{display:block}.c360-panel .table-wrap{width:100%;max-height:100%;overflow:auto;border:0;border-radius:9px;background:#0b1220;box-shadow:none}.c360-panel table{min-width:760px;color:#e6edf8}.c360-panel th{padding:9px 10px;border-bottom:1px solid #263449;background:#151e2e;color:#94a3b8;font-size:10px;white-space:nowrap}.c360-panel td{padding:9px 10px;border-bottom:1px solid #1e293b;color:#cbd5e1;font-size:10px}.c360-panel tbody tr:nth-child(even){background:#0d1524}.c360-panel .mini{border:1px solid #2563eb;border-radius:6px;background:#1d4ed8;color:#fff;font-size:10px}.c360-dialog .empty-state{margin:14px;border:1px dashed #263449;border-radius:9px;background:#0f172a;color:#94a3b8}
@media(max-width:760px){dialog.c360-dialog{width:calc(100vw - 12px);height:calc(100svh - 12px);max-height:calc(100svh - 12px);border-radius:10px}dialog.c360-dialog .dialog-body{height:calc(100% - 142px);padding:10px}.c360-header{align-items:flex-start;gap:9px;margin-bottom:10px}.c360-avatar{width:38px;height:38px;border-radius:10px}.c360-profile{flex:1}.c360-title-row h2{font-size:14px}.c360-profile p{line-height:1.45}.c360-header .primary{width:100%;min-height:34px;margin:0 0 0 auto}.c360-header{flex-wrap:wrap}.c360-header .primary{flex:1 1 100%}.c360-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:9px}.c360-stat{min-height:62px;padding:7px}.c360-stat>span{width:30px;height:30px}.c360-stat strong{font-size:14px}.c360-tabs{gap:2px}.c360-tabs .tab{padding:8px 9px;font-size:9px}.c360-panel{min-height:240px;margin-top:10px}.c360-panel .table-wrap{max-height:100%}.c360-dialog .dialog-wide{width:100%}dialog.c360-dialog footer{padding:8px;gap:5px}dialog.c360-dialog footer>*{flex:1 1 calc(50% - 6px);min-width:0;padding:8px 5px;font-size:10px}}
@media(max-width:420px){.c360-stats{grid-template-columns:1fr}.c360-profile-state{font-size:8px}.c360-dialog footer>*{flex-basis:100%}}

dialog.customer-notes-dialog{width:min(864px,calc(100vw - 32px));max-width:864px;height:min(840px,calc(100svh - 32px));max-height:calc(100svh - 32px);padding:0;border:1px solid #263449;border-radius:11px;background:#0b1220;color:#e6edf8;box-shadow:0 24px 64px rgba(0,0,0,.5)}dialog.customer-notes-dialog form>header{padding:10px 16px;border-bottom:1px solid #263449;background:#0b1220}dialog.customer-notes-dialog form>header h2{margin:0;color:#e6edf8;font-size:14px}dialog.customer-notes-dialog .dialog-body{height:calc(100% - 116px);max-height:none;overflow:hidden;padding:0 12px 0;background:#0b1220}dialog.customer-notes-dialog footer{min-height:50px;padding:7px 12px;border-top:1px solid #263449;background:#0b1220;gap:7px}.customer-note-category-label,#customerNoteUpdated{color:#94a3b8;font-size:9px}.customer-notes-dialog footer select{width:132px;min-width:0;height:28px;padding:0 8px;border:1px solid #263449;border-radius:6px;background:#0f172a;color:#e6edf8;font-size:10px}.customer-notes-dialog footer #customerNoteNew{min-height:30px;padding:6px 10px;border:1px solid #263449;border-radius:7px;background:#111c2d;color:#bfdbfe;font-size:10px}.customer-notes-toolbar{display:flex;align-items:center;gap:8px;min-height:40px;padding:5px 0;border-bottom:1px solid #263449}.customer-notes-filters{display:flex;min-width:0;align-items:center;gap:5px;overflow-x:auto}.customer-note-filter{flex:none;min-height:23px;padding:4px 9px;border:1px solid #263449;border-radius:6px;background:#111c2d;color:#aab8cc;font-size:9px;white-space:nowrap}.customer-note-filter.active{border-color:#2563eb;background:#2563eb;color:#fff}.customer-notes-toolbar>input{width:168px;min-width:120px;height:25px;padding:0 9px;border:1px solid #263449;border-radius:6px;background:#0b1220;color:#e6edf8;font-size:9px}.customer-notes-layout{display:grid;grid-template-columns:278px minmax(0,1fr);gap:16px;height:calc(100% - 40px);min-height:0}.customer-notes-history{display:flex;min-height:0;flex-direction:column;gap:8px;padding:7px 0 0}.customer-notes-history>header{display:flex;justify-content:space-between;gap:5px;color:#94a3b8;font-size:9px}.customer-notes-history>header small{font:9px var(--font-mono);white-space:nowrap}.customer-note-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow:auto;padding:0 4px 4px 0}.customer-note-card{display:flex;min-height:100px;flex-direction:column;align-items:stretch;gap:7px;padding:10px;border:1px solid #263449;border-radius:8px;background:#0f172a;color:#dbe5f4;text-align:left}.customer-note-card.active{border-color:#2563eb;border-left:3px solid #2563eb;background:#102649}.customer-note-card strong{overflow:hidden;color:#e6edf8;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.customer-note-card>span{display:-webkit-box;overflow:hidden;color:#94a3b8;font-size:9px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.customer-note-card small{overflow:hidden;color:#7d8da4;font:8px var(--font-mono);text-overflow:ellipsis;white-space:nowrap}.customer-note-card small i{color:#475569;font-style:normal}.customer-notes-editor{display:flex;min-width:0;min-height:0;flex-direction:column;gap:7px;padding:12px 0 40px}.customer-note-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#cbd5e1;font-size:9px;font-weight:700}.customer-note-heading i{color:#fb7185;font-style:normal}.customer-note-heading small{color:#94a3b8;font:9px var(--font-mono);text-align:right}.customer-notes-editor>input{width:100%;height:32px;padding:0 9px;border:1px solid #263449;border-radius:6px;background:#0b1220;color:#f1f5f9;font-size:11px;font-weight:600}.customer-note-formatbar{display:flex;align-items:center;gap:4px;min-height:34px;padding:4px 7px;border:1px solid #263449;border-radius:6px 6px 0 0;background:#111c2d}.customer-note-formatbar button{width:25px;height:22px;border:0;border-radius:4px;background:transparent;color:#aab8cc;font-size:10px}.customer-note-formatbar button:hover{background:#1e293b;color:#60a5fa}.customer-note-formatbar span{margin-left:auto;color:#34d399;font:9px var(--font-mono)}.customer-note-rich{min-height:0;flex:1;overflow:auto;padding:12px;border:1px solid #263449;border-radius:0 0 6px 6px;background:#070d1a;color:#e6edf8;font-size:10px;line-height:1.55;outline:none}.customer-note-rich:empty::before{color:#64748b;content:attr(data-placeholder)}.customer-note-editor-foot{display:flex;justify-content:space-between;gap:8px;color:#94a3b8;font-size:8px}.customer-note-editor-foot small{font:9px var(--font-mono)}
@media(max-width:760px){dialog.customer-notes-dialog{width:calc(100vw - 12px);height:calc(100svh - 12px);max-height:calc(100svh - 12px);border-radius:9px}dialog.customer-notes-dialog .dialog-body{height:calc(100% - 150px);overflow:auto;padding:0 9px 8px}.customer-notes-toolbar{align-items:stretch;flex-direction:column;gap:6px;padding:7px 0}.customer-notes-filters{padding-bottom:2px}.customer-notes-toolbar>input{width:100%;height:32px}.customer-notes-layout{grid-template-columns:1fr;height:auto;min-height:0;gap:10px}.customer-notes-history{max-height:265px;padding-top:8px}.customer-note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.customer-note-card{min-height:90px;padding:8px}.customer-notes-editor{min-height:390px;padding:5px 0 14px}.customer-note-rich{min-height:220px}.customer-note-heading{align-items:flex-start;flex-direction:column}.customer-notes-dialog footer{flex-wrap:wrap;padding:7px;gap:5px}.customer-note-category-label{display:none}.customer-notes-dialog footer select{width:120px}.customer-notes-dialog footer>*{flex:1 1 auto;min-width:0;padding:6px;font-size:9px}}
@media(max-width:420px){.customer-note-list{grid-template-columns:1fr}.customer-notes-dialog footer #customerNoteUpdated{display:none}.customer-notes-dialog footer select{flex-basis:100%}}

/* Customer management: Midnight Enterprise Slate */
.customer-management{display:flex;flex-direction:column;min-width:0;min-height:calc(100vh - 150px);background:var(--bg);color:var(--ink)}
.customer-workspace-head{padding:16px 24px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#0f1422,#070a0f)}
.customer-head-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:8px}
.customer-export-actions{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.customer-export-actions .mini{background:transparent;border:0;color:var(--muted);font-weight:600}
.customer-add{min-height:42px;padding:0 18px;border-radius:12px;background:linear-gradient(100deg,#34d399,#5eead4);color:#07111b;font-weight:800;box-shadow:0 8px 22px rgba(16,185,129,.18)}
.customer-banners{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0 0;padding:0;background:transparent;border:0}
.customer-banners button{display:inline-flex;align-items:center;gap:8px;min-height:47px;padding:0 15px;border:1px solid var(--line);border-radius:13px;background:#0f1422;color:#dce5f3;font-weight:750;font-size:12px;cursor:pointer}
.customer-banners button b{padding:3px 7px;border-radius:6px;background:#ffffff1a;color:inherit;font:700 11px var(--font-mono)}
.customer-banners button i{width:9px;height:9px;border-radius:50%;background:currentColor}
.customer-banners button.red{color:#fda4af;border-color:#f43f5e55;background:#f43f5e12}.customer-banners button.amber{color:#fcd34d;border-color:#f59e0b55;background:#f59e0b12}.customer-banners button.vip{color:#a5b4fc;border-color:#6366f155;background:#6366f112}.customer-banners button.cyan{color:#67e8f9;border-color:#22d3ee55;background:#22d3ee12}
.customer-banners button.selected{color:white;background:var(--brand);border-color:#3b82f6;box-shadow:0 8px 22px rgba(37,99,235,.22)}
.customer-banners button.selected b{background:#ffffff28}
.customer-filterbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 24px;border-bottom:1px solid var(--line);background:#141a2966}
.customer-search-wrap{position:relative;display:flex;align-items:center;flex:1 1 360px;max-width:560px;min-width:240px}
.customer-search-wrap input{width:100%;height:42px;padding:0 38px 0 42px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--ink)}
.customer-search-wrap>button{position:absolute;right:10px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.customer-filterbar>.control{height:42px;min-width:160px;max-width:260px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:#cbd5e1;padding:0 12px}
.customer-quick-actions{display:flex;gap:5px;padding-left:8px;border-left:1px solid var(--line)}
.customer-quick-actions .mini{width:39px;height:39px;padding:0;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
.customer-card{display:contents}.customer-card>#customerTable{order:3;display:flex;flex:1;flex-direction:column;min-height:350px}.customer-metrics{order:4}.customer-card>.customer-footer{order:5}
.customer-card .table-wrap{flex:1;overflow:auto;margin:20px 20px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);box-shadow:var(--elevation-card)}
.customer-data-table{width:100%;min-width:1120px;border-collapse:collapse;table-layout:fixed;font-size:12px}
.customer-data-table th{height:76px;padding:12px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:800;text-align:left;letter-spacing:.025em}
.customer-data-table td{height:108px;padding:12px;border-bottom:1px solid var(--line);background:var(--surface-2);vertical-align:middle}
.customer-data-table tbody tr:hover td{background:#182032}
.customer-data-table th:nth-child(1),.customer-data-table td:nth-child(1){width:42px;text-align:center}
.customer-data-table th:nth-child(2),.customer-data-table td:nth-child(2){width:78px}
.customer-data-table th:nth-child(3),.customer-data-table td:nth-child(3){width:245px}
.customer-data-table th:nth-child(4),.customer-data-table td:nth-child(4){width:120px}
.customer-data-table th:nth-child(5),.customer-data-table td:nth-child(5){width:240px}
.customer-data-table th:nth-child(6),.customer-data-table td:nth-child(6){width:110px;text-align:center}
.customer-data-table th:nth-child(7),.customer-data-table td:nth-child(7){width:165px;text-align:right}
.customer-data-table th:nth-child(8),.customer-data-table td:nth-child(8){width:110px;text-align:center}
.customer-data-table th:nth-child(9),.customer-data-table td:nth-child(9){width:140px;text-align:center}
.customer-data-table input[type=checkbox]{accent-color:var(--brand);width:16px;height:16px}
.customer-id{color:#60a5fa;font:700 12px var(--font-mono)}
.customer-name-cell{display:flex;align-items:center;gap:12px}
.customer-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #3b82f655;border-radius:12px;background:#2563eb22;color:#60a5fa;font-weight:800}
.customer-name{display:flex;min-width:0;flex-direction:column;gap:3px}.customer-name strong{font-size:13px}.customer-vip-tag{display:inline-flex;margin-left:7px;padding:1px 6px;border:1px solid #f59e0b;border-radius:5px;background:#231b0c;color:#fbbf24;font-size:10px;font-style:normal;font-weight:800}.customer-name small,.customer-contact small,.balance small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.customer-type{display:inline-flex;align-items:center;min-height:27px;padding:0 10px;border:1px solid #334155;border-radius:8px;background:#1e293b;color:#cbd5e1;font-weight:650}.customer-type.corporate{border-color:#2563eb;background:#2563eb22;color:#93c5fd}
.customer-contact{display:flex;flex-direction:column;gap:6px;font:12px var(--font-mono)}.customer-contact small{font:11px var(--font-sans)}
.customer-service .service-count{display:inline-flex;min-width:30px;height:30px;align-items:center;justify-content:center;border-radius:99px;background:#1e293b;color:#94a3b8;font:700 12px var(--font-mono)}.customer-service .service-count.has-open{min-width:76px;height:28px;padding:0 10px;border:1px solid #2563eb;background:#152545;color:#bfdbfe}
.customer-data-table .balance{font:700 13px var(--font-mono);color:#34d399}.customer-data-table .balance strong{display:block}.customer-data-table .balance small{display:block;margin-top:4px;font:10px var(--font-mono)}.customer-data-table .balance .balance-tag{display:inline-flex;margin:3px 0;padding:2px 7px;border:1px solid #10b98155;border-radius:5px;background:#10b98112;color:#34d399;font:10px var(--font-sans)}.customer-data-table .balance .balance-tag.debt{border-color:#f43f5e55;background:#f43f5e12;color:#fb7185}.customer-data-table .balance .balance-tag.zero{display:none}
.customer-status{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #10b98155;border-radius:99px;background:#10b98112;color:#34d399;white-space:nowrap}.customer-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.customer-status.vip{color:#a5b4fc;border-color:#6366f155;background:#6366f112}.customer-status.pasif{color:#94a3b8;border-color:#64748b55;background:#64748b12}
.customer-data-table button.primary{min-height:37px;padding:0 12px;border-radius:10px;background:var(--brand);color:white;white-space:nowrap}
.customer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 20px 12px;padding:8px 4px;color:var(--muted);font-size:12px}.customer-footer b{color:var(--ink);font-family:var(--font-mono)}.customer-footer .control{width:64px;height:30px;margin-left:5px;padding:0 8px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink)}.customer-pagination{display:flex;align-items:center;gap:7px}.customer-pagination button{min-width:38px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}.customer-pagination button.selected{background:var(--brand);border-color:var(--brand)}.customer-updated{white-space:nowrap}
.customer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:16px 25px;background:#0f1422e8;border-top:1px solid var(--line)}.customer-metrics .metric{min-width:0;min-height:140px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#141a29}.customer-metrics .metric-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.customer-metrics .metric-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px solid var(--line);border-radius:10px;background:#0f1422;color:#60a5fa}.customer-metrics .metric strong{display:block;margin-top:7px;color:#34d399;font:800 21px var(--font-mono)}.customer-metrics .metric:first-child strong{color:#fb7185}.customer-metrics .metric small{display:block;margin-top:4px;color:#64748b;font-size:10px}
@media(max-width:1100px){.customer-filterbar>.control{flex:1 1 185px}.customer-metrics{gap:10px;padding-inline:16px}.customer-metrics .metric{padding:12px}}
@media(max-width:760px){.customer-management{min-height:0}.customer-workspace-head{padding:12px}.customer-head-actions{justify-content:flex-start}.customer-export-actions{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.customer-export-actions .mini{padding:7px 3px;font-size:10px}.customer-add{width:100%}.customer-banners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}.customer-banners button{justify-content:flex-start;min-width:0;min-height:42px;padding:0 9px;font-size:10px}.customer-banners button:last-child{grid-column:1/-1}.customer-filterbar{align-items:stretch;padding:10px 12px}.customer-search-wrap{flex-basis:100%;max-width:none}.customer-filterbar>.control{max-width:none;min-width:0;flex:1 1 100%}.customer-quick-actions{justify-content:flex-end;border-left:0;padding:0}.customer-card{min-height:0}.customer-card .table-wrap{overflow:visible;margin:12px}.customer-data-table{display:block;min-width:0}.customer-data-table thead{display:none}.customer-data-table tbody{display:grid;gap:9px}.customer-data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 9px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.customer-data-table td{display:block;width:auto!important;height:auto;min-width:0;padding:0;border:0;background:transparent;text-align:left!important}.customer-data-table td:nth-child(1),.customer-data-table td:nth-child(4){display:none}.customer-data-table td:nth-child(2){grid-column:1;grid-row:1;color:var(--muted);font-size:10px}.customer-data-table td:nth-child(3){grid-column:1;grid-row:2}.customer-data-table td:nth-child(5){grid-column:1/-1;grid-row:3}.customer-data-table td:nth-child(6){grid-column:1;grid-row:4;align-self:center}.customer-data-table td:nth-child(7){grid-column:2;grid-row:2/5;text-align:right!important;align-self:center}.customer-data-table td:nth-child(8){grid-column:2;grid-row:1;text-align:right!important}.customer-data-table td:nth-child(9){grid-column:1/-1;grid-row:5}.customer-data-table td:nth-child(9) button{width:100%}.customer-footer{align-items:flex-start;flex-wrap:wrap;margin:6px 12px 12px}.customer-footer>span:first-child{flex:1 1 100%}.customer-updated{white-space:normal}.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.customer-metrics .metric{min-height:125px;padding:10px}.customer-metrics .metric strong{font-size:16px}.customer-metrics .metric-icon{flex-basis:34px;height:34px}}
@media(max-width:420px){.customer-metrics{grid-template-columns:1fr}.customer-export-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-page-size-label{display:none}.customer-footer .customer-pagination{margin-left:auto}}

.customer-page-head{align-items:flex-start;margin:0;padding:8px 0 0}.customer-page-head h2{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:20px;line-height:1.25}.customer-page-head .badge{padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:#cbd5e1;font-size:11px;font-weight:600;letter-spacing:0}.customer-page-head p{max-width:none;margin-top:4px;font-size:12px;line-height:1.4}.customer-workspace-head{padding:0 0 14px}.customer-head-actions{margin:8px 0 0}.customer-banners{margin-top:16px}.customer-filterbar{padding:12px 0}.customer-card .table-wrap{margin:20px -8px 0}.customer-metrics{padding:16px 0}.customer-footer{margin:10px 0 12px}
body[data-page="customers"] .customer-metrics{margin:10px 0 0;padding:0;background:transparent;border:0}
body[data-page="customers"] .customer-workspace-head{display:flex;justify-content:flex-end;min-height:60px;padding:6px 0 10px}
body[data-page="customers"] .customer-workspace-head .customer-add{width:226px}
body[data-page="customers"] .customer-export-actions{flex-wrap:nowrap}
@media(max-width:760px){body[data-page="customers"]>.customer-metrics{margin-top:8px}body[data-page="customers"] .customer-workspace-head{min-height:54px;padding:6px 0}body[data-page="customers"] .customer-workspace-head .customer-add{width:100%}}

@media(max-width:760px){.customer-page-head{padding-top:2px}.customer-page-head h2{align-items:flex-start;flex-wrap:wrap;font-size:20px}.customer-workspace-head{padding:4px 0 10px}.customer-filterbar{padding:10px 0}.customer-card .table-wrap{margin:12px 0}.customer-metrics{padding:12px 0}.customer-footer{margin:6px 0 12px}}

.loan-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.loan-metrics article,.loan-contract,.loan-installments{min-width:0}.loan-metrics article{padding:18px 20px;background:var(--surface,#111a2c);border:1px solid var(--border,#27344a);border-radius:14px;display:grid;gap:8px}.loan-metrics article span,.loan-contract small{font-size:11px;color:var(--muted,#94a3b8);letter-spacing:.08em}.loan-metrics article strong{font-size:24px;color:var(--text,#e5edf8)}.loan-metrics article small{color:var(--muted,#94a3b8)}.loan-contract{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;margin-bottom:18px;background:linear-gradient(105deg,color-mix(in srgb,var(--brand,#10b981) 14%,var(--surface,#111a2c)),var(--surface,#111a2c));border:1px solid color-mix(in srgb,var(--brand,#10b981) 32%,var(--border,#27344a));border-radius:14px}.loan-contract>div{display:grid;gap:8px}.loan-contract h3,.loan-table-head h3{margin:0}.loan-contract strong{font-size:15px}.loan-toolbar{display:flex;align-items:center;gap:12px;margin:16px 0}.loan-filters,.loan-currencies{display:flex;gap:6px;padding:4px;background:var(--surface,#111a2c);border:1px solid var(--border,#27344a);border-radius:10px}.loan-toolbar button,.loan-filters button,.loan-currencies button{white-space:nowrap}.loan-filters button,.loan-currencies button{border:0;background:transparent;color:var(--muted,#94a3b8);padding:8px 12px;border-radius:7px;cursor:pointer}.loan-filters button.active,.loan-currencies button.active{background:var(--brand,#10b981);color:var(--on-brand,#062018)}.loan-toolbar input{flex:1;min-width:120px}.loan-table-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px}.loan-table-head p{margin:5px 0 0;color:var(--muted,#94a3b8);font-size:13px}.loan-installments .table-wrap{width:100%;overflow:auto}.loan-installments table{width:100%;min-width:720px}.loan-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px}.loan-status.paid{background:#123b31;color:#83e0bc}.loan-status.pending{background:#49371a;color:#f3c66d}.loan-row-action{border:0;background:transparent;color:#9fc5ff;font-weight:600;cursor:pointer}.loan-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;color:var(--muted,#94a3b8)}.loan-pagination>div{display:flex;gap:8px}.loan-pagination button:disabled{opacity:.45;cursor:default}@media(max-width:900px){.loan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.loan-contract{align-items:flex-start;flex-wrap:wrap}.loan-contract>div{flex:1 1 28%}}@media(max-width:620px){.loan-metrics{gap:8px;margin:14px 0}.loan-metrics article{padding:14px}.loan-metrics article strong{font-size:19px}.loan-toolbar{align-items:stretch;flex-wrap:wrap}.loan-toolbar input{order:3;flex:1 1 100%}.loan-contract{gap:16px;padding:16px}.loan-contract>div{flex:1 1 40%}.loan-contract .secondary{width:100%}.loan-pagination{padding:12px;gap:10px}.loan-pagination>div{gap:6px}}
.loan-toolbar #loanSelect{max-width:240px;min-width:150px}.loan-toolbar .loan-currencies{flex:0 0 auto}@media(max-width:620px){.loan-toolbar #loanSelect{order:4;flex:1 1 100%;max-width:none}}
.template-categories{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px}.template-categories button{flex:0 0 auto;border:1px solid var(--border,#27344a);border-radius:9px;background:var(--surface,#111a2c);color:var(--muted,#94a3b8);padding:9px 13px;cursor:pointer}.template-categories button.active{border-color:#299af2;background:#168be0;color:#fff}.template-filterbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px;background:var(--surface,#111a2c);border:1px solid var(--border,#27344a);border-radius:12px}.template-filterbar>input{flex:1;min-width:160px}.template-filterbar label{display:flex;align-items:center;gap:7px;color:var(--muted,#94a3b8);white-space:nowrap}.template-filterbar select{min-width:130px}.template-workspace{display:grid;grid-template-columns:minmax(0,7fr) minmax(280px,3fr);gap:14px;align-items:start;min-width:0}.template-table-card{min-width:0;overflow:hidden}.template-table-card .table-wrap{width:100%;overflow:auto}.template-table-card table{width:100%;min-width:760px}.template-table-card th{position:sticky;top:0;background:#0a0f1d;z-index:1}.template-table-card tbody tr{cursor:pointer}.template-table-card tbody tr.selected{background:rgba(14,165,233,.09)}.template-category-tag{display:inline-flex;max-width:240px;padding:4px 8px;border:1px solid rgba(56,189,248,.22);border-radius:6px;background:rgba(14,165,233,.08);color:#7dd3fc;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-state{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px}.template-state.active{background:rgba(16,185,129,.12);color:#6ee7b7}.template-state.inactive{background:rgba(148,163,184,.13);color:#a3afc2}.template-actions{display:flex;gap:3px}.template-actions button{width:27px;height:27px;border:0;border-radius:6px;background:transparent;color:#a4b1c8;cursor:pointer}.template-actions button:hover{background:#182640;color:#e6f0ff}.template-table-card footer{padding:12px 15px;color:var(--muted,#94a3b8);font-size:12px;border-top:1px solid var(--border,#27344a)}.template-preview{position:sticky;top:12px;padding:18px;display:grid;gap:15px}.template-preview-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.template-preview-title>span:first-child,.template-preview-stats small{color:var(--muted,#94a3b8);font-size:10px;letter-spacing:.07em}.template-preview-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted,#94a3b8);font-size:11px}.template-preview-meta small{font:10px var(--font-mono);white-space:nowrap}.template-preview h3{margin:0}.template-preview-text{padding:18px;border:1px solid var(--border,#27344a);border-radius:11px;background:#0b1220;line-height:1.65;overflow-wrap:anywhere}.template-preview-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-preview-stats>div{display:grid;gap:7px;padding:12px;border:1px solid var(--border,#27344a);border-radius:10px}.template-preview-stats strong{font-size:15px}.template-preview>.primary{width:100%}@media(max-width:980px){.template-workspace{grid-template-columns:minmax(0,1fr)}.template-preview{position:static}.template-filterbar{flex-wrap:wrap}.template-filterbar>input{flex:1 1 100%}}@media(max-width:620px){.template-filterbar{align-items:stretch}.template-filterbar label{flex:1 1 calc(50% - 8px);justify-content:space-between}.template-filterbar select{min-width:0;width:100%}.template-filterbar #templateClear{width:100%}.template-workspace{gap:10px}.template-preview{padding:14px}}
.loan-toolbar #loanSelect{max-width:240px;min-width:150px}.template-table-card .table-wrap{max-height:calc(100vh - 390px);min-height:360px;overflow:auto}@media(max-width:620px){.template-table-card .table-wrap{max-height:60vh;min-height:0}}
.loan-export-actions{display:flex;flex:0 0 auto;gap:6px}.loan-export-actions button{white-space:nowrap}@media(max-width:620px){.loan-export-actions{flex:1 1 100%}.loan-export-actions button{flex:1 1 0}}
.template-table-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.template-pagination{display:flex;align-items:center;gap:7px}.template-pagination label{display:flex;align-items:center;gap:6px;font-size:11px}.template-pagination .control{min-width:64px;padding:6px}.template-pagination button:disabled{opacity:.45;cursor:default}@media(max-width:620px){.template-table-card footer{align-items:flex-start;flex-direction:column}.template-pagination{width:100%;flex-wrap:wrap}}
.group-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.group-metrics article{min-width:0;display:grid;gap:7px;padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:13px}.group-metrics article span,.group-metrics article small{color:var(--muted);font-size:11px}.group-metrics article strong{font-size:23px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.group-toolbar>.search{flex:1;min-width:220px}.group-view-toggle{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#0b101c}.group-view-toggle button{padding:7px 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}.group-view-toggle button.active{background:#23385e;color:#dbeafe}.group-list-card{min-width:0;overflow:hidden}.group-list-card .table-wrap{max-height:calc(100vh - 440px);min-height:320px;overflow:auto}.group-list-card table{width:100%;min-width:780px}.group-list-card thead{position:sticky;top:0;background:var(--surface-2);z-index:1}.group-subline{display:block;margin-top:5px;color:var(--muted);font-size:11px}.group-state{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:11px}.group-state.active{background:rgba(16,185,129,.12);color:#6ee7b7}.group-state.inactive{background:rgba(148,163,184,.13);color:#a3afc2}.group-actions{display:flex;justify-content:flex-end;gap:5px}.group-actions button{border:1px solid var(--line);border-radius:7px;background:var(--surface-2);color:var(--ink);padding:6px 9px;font-size:11px;cursor:pointer}.group-actions button:hover{border-color:#3b82f6}.group-list-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 15px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.group-pagination{display:flex;align-items:center;gap:8px}.group-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap}.group-pagination select{min-width:62px}.group-pagination button:disabled{opacity:.45;cursor:default}.group-cards{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}.group-card{min-width:0;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:14px}.group-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.group-card p{color:var(--muted);font-size:12px}.group-card .group-actions{justify-content:flex-start}.group-list-card.cards-mode .table-wrap{display:none}.group-list-card.cards-mode .group-cards{display:grid}@media(max-width:1050px){.group-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.group-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.group-toolbar>.search{flex-basis:100%}.group-list-card .table-wrap{max-height:65vh;min-height:0}.group-list-card footer{align-items:flex-start;flex-direction:column}.group-pagination{width:100%;flex-wrap:wrap}}@media(max-width:520px){.group-metrics{gap:8px}.group-metrics article{padding:12px}.group-metrics article strong{font-size:18px}.group-cards{grid-template-columns:1fr;padding:10px}.group-toolbar>button{flex:1}}
.messaging-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;min-width:0;margin-top:18px}.messaging-settings-card{min-width:0;padding:18px;background:var(--surface,#111a2c);border:1px solid var(--border,#27344a);border-radius:14px}.messaging-settings-card h4{margin:0 0 16px;color:var(--text,#e5edf8);font-size:14px}.messaging-settings-card .form-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.messaging-settings-card .field{min-width:0}.messaging-settings-card .field input,.messaging-settings-card .field select,.messaging-settings-card .field textarea{width:100%;min-width:0;max-width:100%}.messaging-settings-card .field.full{grid-column:1/-1}.messaging-settings-reminders,.messaging-settings-toggles{grid-column:1/-1}.messaging-settings-toggles .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:760px){.messaging-settings-grid,.messaging-settings-card .form-grid,.messaging-settings-toggles .settings-grid{grid-template-columns:minmax(0,1fr)}.messaging-settings-reminders,.messaging-settings-toggles{grid-column:auto}.messaging-settings-card{padding:14px}}

.stock-reference-table-wrap{width:100%;overflow:auto}.stock-reference-table{width:100%;min-width:1180px;table-layout:fixed}.stock-reference-table th,.stock-reference-table td{padding:12px 10px;vertical-align:middle}.stock-reference-table th:nth-child(1){width:5%}.stock-reference-table th:nth-child(2){width:8%}.stock-reference-table th:nth-child(3){width:18%}.stock-reference-table th:nth-child(4){width:10%}.stock-reference-table th:nth-child(5){width:10%}.stock-reference-table th:nth-child(6){width:6%}.stock-reference-table th:nth-child(7),.stock-reference-table th:nth-child(8){width:8%}.stock-reference-table th:nth-child(9){width:7%}.stock-reference-table th:nth-child(10){width:7%}.stock-reference-table th:nth-child(11){width:6%}.stock-reference-table th:nth-child(12){width:10%}.stock-reference-table td{overflow-wrap:anywhere}.stock-reference-table td:nth-child(3){font-weight:600}.stock-reference-table td:nth-child(3) small{display:block;margin-top:5px;color:var(--muted);font-weight:400;line-height:1.45}.stock-reference-table .row-actions{flex-wrap:wrap}
@media(max-width:760px){.stock-reference-table-wrap{overflow:visible}.stock-reference-table,.stock-reference-table tbody,.stock-reference-table tr,.stock-reference-table td{display:block;width:100%;min-width:0}.stock-reference-table{table-layout:auto}.stock-reference-table thead{display:none}.stock-reference-table tbody{display:grid;gap:10px}.stock-reference-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.stock-reference-table td{display:grid;grid-template-columns:minmax(86px,.8fr) minmax(0,1.2fr);gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);text-align:left}.stock-reference-table td::before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:700}.stock-reference-table td:nth-child(3){grid-column:1/-1}.stock-reference-table td:last-child{grid-column:1/-1;border-bottom:0}.stock-reference-table .row-actions{justify-content:flex-start}}
.ie-page{width:100%;min-width:0;padding:12px;background:#0b1326;color:#dce5fa;box-sizing:border-box}
.ie-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.ie-heading h1{font-size:24px;margin:0 0 3px}.ie-heading p{margin:0;color:#96a3bb;font-size:12px}
.ie-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.ie-actions button,.ie-tabs button,.ie-save{border:0;border-radius:3px;padding:8px 10px;background:#222c43;color:#dce5fa;font-weight:700;cursor:pointer}
.ie-actions .ie-green{background:#00b88d;color:#071a22}.ie-actions .ie-red,.ie-save{background:#ff496f;color:white}
.ie-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
.ie-metrics article{min-width:0;min-height:110px;background:#141d31;border:1px solid #29354f;padding:12px;box-sizing:border-box}
.ie-metrics small{display:block;color:#96a3bb;font-size:10px;font-weight:700}.ie-metrics strong{display:block;margin-top:11px;font-size:25px;white-space:nowrap}
.ie-positive{color:#00c99b}.ie-negative{color:#ff496f}
.ie-columns{display:grid;grid-template-columns:minmax(0,7fr) minmax(280px,3fr);gap:9px;align-items:start}
.ie-columns main,.ie-columns aside{min-width:0}.ie-columns aside{display:grid;gap:8px}
.ie-tabs{display:flex;gap:3px;overflow:auto;scrollbar-width:thin;white-space:nowrap;margin-bottom:7px}
.ie-tabs button{font-size:11px;color:#96a3bb}.ie-tabs button[aria-selected="true"]{background:#4e8bff;color:#0b1326}
.ie-filters{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:8px;margin-bottom:8px}
.ie-filters input,.ie-filters select,.ie-quick input,.ie-quick select{width:100%;min-width:0;box-sizing:border-box;background:#222c43;color:#dce5fa;border:1px solid #29354f;padding:9px;font:inherit}
.ie-table-wrap{overflow:auto;background:#141d31;border:1px solid #29354f;max-height:480px}
.ie-table{width:100%;border-collapse:collapse;min-width:650px}.ie-table th{text-align:left;font-size:10px;color:#96a3bb;background:#2a344d;padding:11px 8px}
.ie-table td{padding:17px 8px;font-size:12px;vertical-align:middle}.ie-table tbody tr:nth-child(even){background:#172844}.ie-table td small{display:block;color:#96a3bb}
.ie-columns main>footer{color:#96a3bb;font-size:11px;padding:8px 2px}.ie-panel{background:#141d31;border:1px solid #29354f;padding:11px;min-width:0}
.ie-panel h2{font-size:14px;margin:0 0 12px}.ie-distribution-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;padding:5px 0;font-size:11px;border-bottom:1px solid #29354f}.ie-distribution-row small{color:#96a3bb}
.ie-distribution-row i{display:block;grid-column:1/-1;height:4px;background:#4e8bff;max-width:100%}.ie-distribution-row:nth-child(2) i{background:#ff496f}.ie-distribution-row:nth-child(3) i{background:#00c99b}
.ie-quick{display:grid;gap:8px}.ie-quick h2{margin-bottom:2px}.ie-quick label{display:grid;gap:4px;color:#96a3bb;font-size:11px}
.ie-quick-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}.ie-receipt input{border-style:dashed;min-height:65px}.ie-save{width:100%;margin-top:2px}
@media(max-width:1100px){.ie-heading{flex-direction:column}.ie-actions{justify-content:flex-start}.ie-columns{grid-template-columns:minmax(0,1fr)}.ie-columns aside{grid-template-columns:1fr 1fr}.ie-metrics strong{font-size:21px}}
@media(max-width:700px){.ie-page{padding:8px}.ie-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ie-columns aside{grid-template-columns:1fr}.ie-filters{grid-template-columns:1fr}.ie-heading h1{font-size:20px}.ie-actions button{flex:1 1 44%}.ie-table{min-width:0}.ie-table thead{display:none}.ie-table tr{display:grid;padding:8px;border-bottom:1px solid #29354f}.ie-table td{display:flex;justify-content:space-between;gap:12px;padding:4px;font-size:12px}.ie-table td:before{content:attr(data-label);color:#96a3bb;font-size:10px}.ie-table td:nth-child(3){display:block}.ie-table td:nth-child(3):before{display:block}}
.collection-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.collection-layout{grid-template-columns:1fr}}

/* Reference-aligned service intake dialog */
dialog.service-accept-dialog{position:relative;display:flex;flex-direction:column;width:min(1440px,calc(100vw - 36px));height:min(1186px,calc(100svh - 32px));max-width:1440px;max-height:calc(100svh - 32px);padding:0;overflow:hidden;border:1px solid #263449;border-radius:14px;background:#0b1220;color:#e6edf8;box-shadow:0 28px 84px rgba(0,0,0,.58)}dialog.service-accept-dialog::before{position:absolute;z-index:3;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);content:""}dialog.service-accept-dialog form{display:flex;min-height:0;height:100%;flex-direction:column}dialog.service-accept-dialog form>header{flex:none;min-height:100px;padding:20px 30px 16px 34px;border-bottom:1px solid #263449;background:#0f172a}dialog.service-accept-dialog form>header h2{color:#f1f5f9;font-size:20px;font-weight:750}dialog.service-accept-dialog form>header .eyebrow{color:#94a3b8;font-size:10px}dialog.service-accept-dialog form>header .icon-btn{width:42px;height:42px;border:1px solid #263449;border-radius:10px;background:#111c2d;color:#e6edf8}dialog.service-accept-dialog .dialog-body{flex:1;min-height:0;max-height:none;padding:24px 30px;overflow:auto;background:#0b1220}dialog.service-accept-dialog footer{flex:none;min-height:78px;justify-content:flex-end;align-items:center;padding:12px 30px;border-top:1px solid #263449;background:#0b1220}dialog.service-accept-dialog footer button{min-height:44px;border:1px solid #263449;border-radius:8px;background:#111c2d;color:#dbe5f4;font-size:12px;font-weight:650;box-shadow:none}dialog.service-accept-dialog footer #dialogSubmit{min-width:300px;background:#2563eb;border-color:#2563eb;color:#fff}dialog.service-accept-dialog .service-footer-status{margin-right:auto;color:#94a3b8;font:11px var(--font-mono)}.service-accept-form{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"customer fault" "device security" "more security";gap:14px 30px;align-items:start;min-width:0}.service-form-customer{grid-area:customer}.service-form-device{grid-area:device}.service-form-fault{grid-area:fault}.service-form-security{grid-area:security}.service-open-form{grid-area:more}.service-form-card{min-width:0;padding:14px 16px;border:1px solid #263449;border-radius:12px;background:#0f172a}.service-form-card-head{display:flex;min-height:38px;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #263449}.service-form-card-head>div{display:flex;min-width:0;align-items:center;gap:10px}.service-form-card-head h3{margin:0;color:#e6edf8;font-size:14px;font-weight:750;letter-spacing:.02em}.service-form-card-head small{color:#94a3b8;font-size:10px}.service-form-icon{display:grid;flex:none;width:32px;height:32px;place-items:center;border:1px solid #1e4d83;border-radius:8px;background:#102649;color:#60a5fa;font-size:16px}.service-form-icon.warning{border-color:#805a16;background:#30230c;color:#fbbf24}.service-customer-state{color:#34d399!important}.service-customer-state.is-registered{color:#60a5fa!important}.service-customer-picker{width:auto;min-width:180px;max-width:260px;height:38px;padding:0 10px;border:1px solid #31415a;border-radius:8px;background:#111c2d;color:#bfdbfe;font-size:11px}.service-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;min-width:0}.service-form-fields .field{min-width:0;gap:6px}.service-form-fields .field.full{grid-column:1/-1}.service-form-fields .field label{color:#cbd5e1;font-size:11px;font-weight:650}.service-form-fields input,.service-form-fields select,.service-form-fields textarea{width:100%;min-width:0;min-height:40px;padding:9px 12px;border:1px solid #31415a;border-radius:8px;background:#f8fafc;color:#334155;font-size:12px;box-shadow:none}.service-form-fields input::placeholder,.service-form-fields textarea::placeholder{color:#94a3b8}.service-form-fields textarea{min-height:78px;resize:vertical}.service-fault-fields textarea{min-height:104px}.service-fault-fields .field:nth-child(3),.service-fault-fields .field:nth-child(4){grid-column:span 1}.service-ai-label{padding:5px 8px;border:1px solid #805a16;border-radius:999px;background:#30230c;color:#fbbf24!important}.service-form-device .service-device-fields{row-gap:14px}.service-device-fields input,.service-device-fields select{min-height:42px}.service-security-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.service-security-fields .field.full{grid-column:1/-1}.service-open-form{margin:0;padding:10px 14px;border-color:#263449;background:#0f172a;color:#94a3b8;font-size:11px}@media(max-width:900px){.service-accept-form{grid-template-columns:minmax(0,1fr);grid-template-areas:"customer" "fault" "device" "security" "more";gap:12px}.service-form-card{padding:13px}.service-form-card-head h3{font-size:13px}}
@media(max-width:620px){dialog.service-accept-dialog{width:calc(100vw - 12px);height:calc(100svh - 12px);max-height:calc(100svh - 12px);border-radius:10px}dialog.service-accept-dialog form>header{min-height:70px;padding:13px 14px}dialog.service-accept-dialog form>header h2{font-size:16px}dialog.service-accept-dialog .dialog-body{padding:10px}dialog.service-accept-dialog footer{flex-wrap:wrap;gap:6px;padding:8px}dialog.service-accept-dialog footer .service-footer-status{flex:1 1 100%;margin:0;font-size:9px}dialog.service-accept-dialog footer button{flex:1 1 calc(33% - 6px);min-width:0;padding:8px 5px;font-size:10px}dialog.service-accept-dialog footer #dialogSubmit{flex:1 1 100%;min-width:0}.service-accept-form{gap:9px}.service-form-card{padding:11px;border-radius:9px}.service-form-card-head{align-items:flex-start;flex-wrap:wrap;gap:7px;margin-bottom:10px}.service-form-card-head h3{font-size:12px}.service-customer-picker{width:100%;max-width:none}.service-form-fields{grid-template-columns:minmax(0,1fr);gap:10px}.service-form-fields .field.full{grid-column:auto}.service-form-fields input,.service-form-fields select{min-height:38px}.service-fault-fields textarea{min-height:88px}.service-security-fields{grid-template-columns:minmax(0,1fr)}.service-security-fields .field.full{grid-column:auto}}

.service-extra-fields{grid-column:1/-1;min-width:0;border:1px solid #263449;border-radius:8px;background:#0b1220}.service-extra-fields>summary{padding:9px 11px;color:#94a3b8;font-size:11px;font-weight:650;cursor:pointer;list-style:none}.service-extra-fields>summary::-webkit-details-marker{display:none}.service-extra-fields>summary::after{float:right;color:#60a5fa;content:"+"}.service-extra-fields[open]>summary::after{content:"-"}.service-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 11px 11px}.service-device-fields>.field:nth-child(1){grid-column:1}.service-device-fields>.field:nth-child(2){grid-column:2}.service-form-security .service-security-fields{align-items:start}.service-form-security .field:nth-child(3){grid-column:1/-1}.service-open-form .switch{accent-color:#2563eb}@media(max-width:620px){.service-extra-grid{grid-template-columns:minmax(0,1fr)}.service-extra-grid .field.full{grid-column:auto}.service-form-security .field:nth-child(3){grid-column:auto}}

/* Service intake reference layout */
dialog.service-accept-dialog .service-accept-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"customer fault" "device security" "more more";gap:12px;align-items:start;min-width:0}
dialog.service-accept-dialog .service-form-card{min-width:0;padding:14px;border:1px solid #263449;border-radius:11px;background:#0f172a}
dialog.service-accept-dialog .service-form-card h3{margin:0 0 14px;color:#f1f5f9;font-size:12px;font-weight:750}
dialog.service-accept-dialog .service-form-state{margin:-10px 0 12px;color:#34d399;font-size:9px}
dialog.service-accept-dialog .service-form-customer{grid-area:customer;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog.service-accept-dialog .service-form-customer h3,.service-form-customer>.field:first-of-type{grid-column:1/-1}
dialog.service-accept-dialog .service-form-fault{grid-area:fault;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
dialog.service-accept-dialog .service-form-fault h3,.service-form-fault>.field.full{grid-column:1/-1}
dialog.service-accept-dialog .service-form-device{grid-area:device;min-height:0}
dialog.service-accept-dialog .service-form-device>.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
dialog.service-accept-dialog .service-form-security{grid-area:security;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
dialog.service-accept-dialog .service-form-security h3{display:none}
dialog.service-accept-dialog .service-form-security .field{margin:0}
dialog.service-accept-dialog .service-form-security .field:nth-of-type(2){padding:12px;border:1px solid #263449;border-radius:9px;background:#0f172a}
dialog.service-accept-dialog .service-form-security .field:nth-of-type(3){padding:12px;border:1px solid #263449;border-radius:9px;background:#0f172a}
dialog.service-accept-dialog .service-pattern-lock{display:grid;grid-template-columns:repeat(3,30px);justify-content:center;gap:13px;padding:10px}
dialog.service-accept-dialog .service-pattern-dot{width:30px;height:30px;border:1px solid #334155;border-radius:50%;background:#172338;cursor:pointer}
dialog.service-accept-dialog .service-pattern-dot.selected{border-color:#3b82f6;background:#2563eb;box-shadow:0 0 0 3px #1e3a8a}
dialog.service-accept-dialog .service-form-security input[type=file]{width:100%;padding:10px;border:1px solid #263449;border-radius:8px;background:#111c2d;color:#94a3b8}
dialog.service-accept-dialog .service-extra-fields{grid-area:more}
dialog.service-accept-dialog .service-extra-fields>.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
dialog.service-accept-dialog .service-extra-fields .field.full{grid-column:1/-1}
dialog.service-accept-dialog .service-reset-button{margin-right:auto}
@media(max-width:800px){dialog.service-accept-dialog{width:calc(100vw - 16px);height:calc(100svh - 16px);max-height:calc(100svh - 16px)}dialog.service-accept-dialog form>header{min-height:64px;padding:12px 16px}dialog.service-accept-dialog .dialog-body{padding:12px}.service-accept-form{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"customer" "fault" "device" "security" "more"!important;gap:10px}.service-form-customer,.service-form-fault,.service-form-device>.form-grid,.service-extra-fields>.form-grid{grid-template-columns:minmax(0,1fr)!important}.service-form-customer h3,.service-form-customer>.field:first-of-type,.service-form-fault h3,.service-form-fault>.field.full,.service-extra-fields .field.full{grid-column:auto!important}dialog.service-accept-dialog footer{min-height:64px;padding:8px 12px;gap:8px}dialog.service-accept-dialog footer button{min-height:40px;flex:1;margin:0}.service-form-device{padding:12px!important}}
dialog.service-accept-dialog form>header{display:flex;align-items:center;gap:14px;min-height:82px;padding:14px 30px}dialog.service-accept-dialog form>header h2{font-size:20px}dialog.service-accept-dialog #dialogEyebrow{display:none}dialog.service-accept-dialog #dialogTitle{position:relative;padding-left:50px}dialog.service-accept-dialog #dialogTitle::before{position:absolute;left:0;top:50%;width:38px;height:38px;transform:translateY(-50%);display:grid;place-items:center;border:1px solid #1d4ed8;border-radius:10px;background:#172554;color:#60a5fa;content:"+";font-size:26px;font-weight:400}dialog.service-accept-dialog #dialogTitle::after{display:block;margin-top:4px;color:#94a3b8;content:"Musteri kabul, cihaz teshis ve servis kabul fisini olusturun";font-family:Inter,sans-serif;font-size:11px;font-weight:400}dialog.service-accept-dialog .service-form-customer>.field:first-of-type{grid-column:1/-1}dialog.service-accept-dialog .service-form-fault{gap:12px}dialog.service-accept-dialog .service-form-fault textarea{min-height:92px}dialog.service-accept-dialog .service-quick-issues{display:flex;flex-wrap:wrap;gap:6px;margin:0}dialog.service-accept-dialog .service-quick-issues button{padding:5px 8px;border:1px solid #263449;border-radius:6px;background:#111c2d;color:#94a3b8;font-size:10px}dialog.service-accept-dialog .service-quick-issues button:hover{border-color:#2563eb;color:#bfdbfe}dialog.service-accept-dialog .service-price-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}dialog.service-accept-dialog .service-price-field select{width:74px}dialog.service-accept-dialog .service-form-security{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);grid-template-areas:"head head" "pattern passwords" "photo photo";align-items:stretch;padding:0;border:0;background:transparent}dialog.service-accept-dialog .service-security-head{grid-area:head;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #263449;border-radius:9px;background:#0f172a}dialog.service-accept-dialog .service-security-head h3{display:block;margin:0}dialog.service-accept-dialog .service-security-head span{color:#94a3b8;font-size:10px}dialog.service-accept-dialog .service-pattern-box{grid-area:pattern;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:10px;border:1px solid #263449;border-radius:10px;background:#0b1220}dialog.service-accept-dialog .service-pattern-box>span,.service-pattern-reset{font-size:10px;color:#94a3b8}dialog.service-accept-dialog .service-pattern-reset{border:0;background:none;color:#60a5fa;cursor:pointer}dialog.service-accept-dialog .service-password-fields{grid-area:passwords;display:grid;align-content:center;gap:10px;min-width:0}dialog.service-accept-dialog .service-photo-field{grid-area:photo;padding:12px;border:1px solid #263449;border-radius:9px;background:#0f172a}dialog.service-accept-dialog .service-photo-drop{display:grid;min-height:86px;place-items:center;border:1px dashed #334155;border-radius:8px;background:#0b1220;color:#cbd5e1;text-align:center;cursor:pointer}dialog.service-accept-dialog .service-photo-drop input{width:100%;max-width:100%;margin-top:8px}dialog.service-accept-dialog .service-photo-field small{display:block;margin-top:6px;color:#64748b}dialog.service-accept-dialog .service-accessories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:14px;padding-top:10px;border-top:1px solid #263449}dialog.service-accept-dialog .service-accessories>span{grid-column:1/-1;color:#94a3b8;font-size:10px;font-weight:700;text-transform:uppercase}dialog.service-accept-dialog .service-accessories label{display:flex;align-items:center;gap:6px;min-height:40px;padding:7px;border:1px solid #263449;border-radius:7px;background:#111c2d;color:#cbd5e1;font-size:10px}dialog.service-accept-dialog .service-accessories input{accent-color:#2563eb}dialog.service-accept-dialog .service-footer-status{margin-right:auto;color:#94a3b8;font:10px ui-monospace,monospace}dialog.service-accept-dialog footer .service-reset-button{margin:0}dialog.service-accept-dialog footer{justify-content:space-between}@media(max-width:800px){dialog.service-accept-dialog form>header{min-height:70px;padding:10px 14px}dialog.service-accept-dialog .service-form-security{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "pattern" "passwords" "photo"}dialog.service-accept-dialog .service-pattern-box{min-height:175px}.service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important}dialog.service-accept-dialog .service-footer-status{display:none}}
.service-accept-form{grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;grid-template-areas:"customer fault" "device security" "more more"!important;gap:14px 30px!important}.service-quick-issues.field.full{display:flex!important;grid-column:1/-1;align-items:center;flex-wrap:wrap;gap:7px}.service-quick-issues button{width:auto!important;flex:0 0 auto!important;min-height:28px;padding:5px 9px!important;border:1px solid #263449!important;border-radius:6px!important;background:#111c2d!important;color:#94a3b8!important;font-size:10px!important}.service-quick-issues button:hover{border-color:#2563eb!important;color:#bfdbfe!important}.service-price-field{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:6px}.service-price-field select{width:66px}.service-form-security>.service-security-head h3{display:block!important}.service-form-security{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;grid-template-areas:"head head" "pattern passwords" "photo photo"!important;gap:10px!important}.service-pattern-box{min-height:172px}.service-pattern-lock{grid-template-columns:repeat(3,12px)!important;gap:14px!important}.service-pattern-dot{width:12px!important;height:12px!important;background:#334155!important;border:0!important}.service-pattern-dot.selected{background:#3b82f6!important;box-shadow:0 0 10px #2563eb!important}.service-accessories{grid-template-columns:repeat(4,minmax(0,1fr))}.service-accessories label{flex-direction:row;justify-content:flex-start;min-height:52px!important}.service-accessories label span{line-height:1.25}.service-form-card{align-content:start}.service-form-device>.form-grid{margin-bottom:2px}.service-form-customer{grid-template-columns:repeat(2,minmax(0,1fr))}.service-form-customer h3{grid-column:1/-1}.service-form-state{grid-column:1/-1}.service-form-customer>.field:first-of-type{grid-column:1/-1}.service-form-security .service-photo-field{grid-column:1/-1}@media(max-width:800px){.service-accept-form{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"customer" "fault" "device" "security" "more"!important;gap:10px!important}.service-form-security{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"head" "pattern" "passwords" "photo"!important}.service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important}.service-quick-issues button{min-height:32px!important}}
dialog.service-accept-dialog #dialogTitle{text-transform:none!important}.service-quick-issues.field.full{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important}.service-pattern-dot{height:12px!important;border-radius:50%!important}.service-form-customer .service-form-card-head{grid-column:1/-1}.service-form-customer .service-customer-picker{min-width:190px}@media(max-width:620px){.service-form-customer .service-customer-picker{width:100%;max-width:none}}
.service-pattern-dot{min-height:12px!important;padding:0!important}.service-pattern-reset{min-height:25px;padding:3px 8px;border:1px solid #1e3a8a!important;border-radius:5px;background:#0f172a!important;color:#60a5fa!important}.service-security-head{border-bottom:1px solid #263449!important}.service-accessories label{cursor:pointer}.service-quick-issues.field.full button{display:inline-flex!important;align-items:center;justify-content:center}.service-form-customer .service-customer-picker{min-height:36px}.service-form-card-head{border-bottom:1px solid #263449}.service-form-customer .service-form-card-head{margin:0 0 10px;padding-bottom:8px}@media(max-width:800px){.service-form-customer .service-form-card-head{align-items:center}}
#appDialog.service-accept-dialog{position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:90vw!important;height:92.82vh!important;max-width:none!important;max-height:calc(100vh - 24px)!important;margin:0!important;padding:0!important;overflow:hidden!important;display:flex!important}
#appDialog.service-accept-dialog>form{width:100%!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
#appDialog.service-accept-dialog>form>header{height:79px!important;min-height:79px!important;flex:0 0 79px!important;padding:16px 24px!important;align-items:center!important}
#appDialog.service-accept-dialog #dialogBody{height:auto!important;min-height:0!important;flex:1 1 auto!important;padding:20px 24px!important;overflow:auto!important}
#appDialog.service-accept-dialog #dialogFooter{height:65px!important;min-height:65px!important;flex:0 0 65px!important;padding:14px 24px!important;align-items:center!important}
#appDialog.service-accept-dialog .service-accept-form{width:100%!important;height:760.5px!important;min-height:0!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;grid-template-areas:none!important;gap:0 24px!important;align-items:start!important}
#appDialog.service-accept-dialog .service-form-column{min-width:0!important;display:flex!important;flex-direction:column!important;gap:20px!important}
#appDialog.service-accept-dialog .service-form-left{grid-column:1!important;grid-row:1!important}
#appDialog.service-accept-dialog .service-form-right{grid-column:2!important;grid-row:1!important}
#appDialog.service-accept-dialog .service-form-card{box-sizing:border-box!important;width:100%!important;min-height:0!important;padding:14px!important;overflow:hidden!important;align-content:start!important}
#appDialog.service-accept-dialog .service-form-customer{height:253px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:none!important}
#appDialog.service-accept-dialog .service-form-device{height:286px!important}
#appDialog.service-accept-dialog .service-form-fault{height:298.5px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:none!important;gap:8px!important}
#appDialog.service-accept-dialog .service-form-security{height:191px!important;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;grid-template-areas:"head head" "pattern passwords"!important;gap:8px!important;padding:10px!important}
#appDialog.service-accept-dialog .service-security-head{grid-area:head!important;min-width:0!important;margin:0!important;padding:0 4px 7px!important;align-self:stretch!important}
#appDialog.service-accept-dialog .service-pattern-box{grid-area:pattern!important;min-width:0!important;min-height:0!important;height:142px!important;padding:7px!important}
#appDialog.service-accept-dialog .service-password-fields{grid-area:passwords!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:8px!important}
#appDialog.service-accept-dialog .service-password-fields .field{min-width:0!important}
#appDialog.service-accept-dialog .service-form-photo{height:231px!important}
#appDialog.service-accept-dialog .service-form-card-head{min-height:32px!important;margin:0 0 10px!important;padding:0 0 8px!important;align-items:center!important}
#appDialog.service-accept-dialog .service-form-card-head>div{min-width:0!important;flex-wrap:nowrap!important;white-space:nowrap!important}
#appDialog.service-accept-dialog .service-form-card-head h3{margin:0!important;font-size:12px!important;white-space:nowrap!important}
#appDialog.service-accept-dialog .service-form-icon{flex:0 0 24px!important;width:24px!important;height:24px!important}
#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{grid-column:1/-1!important;grid-row:auto!important}
#appDialog.service-accept-dialog .service-form-customer>.field:first-of-type{grid-column:1/-1!important}
#appDialog.service-accept-dialog .service-form-customer .field{min-width:0!important}
#appDialog.service-accept-dialog .service-accept-form .field label{font-size:11px!important;line-height:1.25!important}
#appDialog.service-accept-dialog .service-accept-form input:not([type=checkbox]):not([type=file]),#appDialog.service-accept-dialog .service-accept-form select,#appDialog.service-accept-dialog .service-accept-form textarea{box-sizing:border-box!important;min-width:0!important;min-height:34px!important;font-size:12px!important}
#appDialog.service-accept-dialog .service-accept-form textarea{height:62px!important;min-height:62px!important;resize:none!important}
#appDialog.service-accept-dialog .service-quick-issues{grid-column:1/-1!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0!important}
#appDialog.service-accept-dialog .service-quick-issues button{min-width:0!important;min-height:28px!important;padding:4px 7px!important;white-space:nowrap!important;font-size:10px!important}
#appDialog.service-accept-dialog .service-price-field{grid-template-columns:minmax(0,1fr) 66px!important}
#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#appDialog.service-accept-dialog .service-accessories label{min-width:0!important;min-height:50px!important;padding:7px!important;white-space:normal!important}
#appDialog.service-accept-dialog .service-photo-drop{position:relative!important;box-sizing:border-box!important;min-height:96px!important;height:96px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;overflow:hidden!important}
#appDialog.service-accept-dialog .service-photo-drop input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}
#appDialog.service-accept-dialog .service-photo-preview{min-height:46px!important;margin-top:7px!important;gap:7px!important;align-items:center!important}
#appDialog.service-accept-dialog .service-photo-preview button{min-width:48px!important;min-height:42px!important}
@media(max-width:800px){#appDialog.service-accept-dialog{inset:8px!important;transform:none!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important}#appDialog.service-accept-dialog>form>header{height:64px!important;min-height:64px!important;flex-basis:64px!important;padding:10px 14px!important}#appDialog.service-accept-dialog #dialogBody{padding:12px!important}#appDialog.service-accept-dialog .service-accept-form{height:auto!important;display:flex!important;flex-direction:column!important;gap:12px!important}#appDialog.service-accept-dialog .service-form-column{width:100%!important;gap:12px!important}#appDialog.service-accept-dialog .service-form-card{height:auto!important;min-height:0!important;padding:12px!important}#appDialog.service-accept-dialog .service-form-security{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"head" "pattern" "passwords"!important}#appDialog.service-accept-dialog .service-pattern-box{height:auto!important;min-height:142px!important}#appDialog.service-accept-dialog .service-form-customer .service-form-card-head>div{flex-wrap:wrap!important;white-space:normal!important}#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important}#appDialog.service-accept-dialog .service-quick-issues{flex-wrap:wrap!important}#appDialog.service-accept-dialog #dialogFooter{height:auto!important;min-height:64px!important;flex-basis:auto!important;flex-wrap:wrap!important}}

/* Final geometry and overflow corrections for the service intake reference. */
#appDialog.service-accept-dialog>form>header{height:83px!important;min-height:83px!important;flex-basis:83px!important}
#appDialog.service-accept-dialog .service-accept-form{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:0 24px!important}
#appDialog.service-accept-dialog .service-form-left{grid-column:1/span 7!important}
#appDialog.service-accept-dialog .service-form-right{grid-column:8/span 5!important}
#appDialog.service-accept-dialog .service-form-card{padding:0!important}
#appDialog.service-accept-dialog .service-form-card-head{height:40px!important;min-height:40px!important;margin:0 0 13px!important;padding:0 0 6px!important;box-sizing:border-box!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
#appDialog.service-accept-dialog .service-form-card-head>div{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#appDialog.service-accept-dialog .service-form-card-head h3{margin:0!important;line-height:16px!important;font-size:12px!important}
#appDialog.service-accept-dialog .service-form-card-head p,.service-form-state{margin:0 0 0 4px!important;align-self:center!important;line-height:14px!important;white-space:nowrap!important}
#appDialog.service-accept-dialog .service-customer-picker{min-height:26px!important;height:26px!important;margin:0!important}
#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{height:35px!important;margin-bottom:10px!important}
#appDialog.service-accept-dialog .service-form-device .service-form-card-head{height:40px!important;margin-bottom:13px!important}
#appDialog.service-accept-dialog .service-form-fault .service-form-card-head{grid-column:1/-1!important;height:25px!important;margin-bottom:10px!important}
#appDialog.service-accept-dialog .service-form-fault .service-form-card-head>div{flex:1 1 auto!important}
#appDialog.service-accept-dialog .service-ai-label{flex:0 0 auto!important;white-space:nowrap!important}
#appDialog.service-accept-dialog .service-form-fault textarea{height:84.5px!important;min-height:84.5px!important}
#appDialog.service-accept-dialog .service-form-fault .service-quick-issues{margin-bottom:12px!important}
#appDialog.service-accept-dialog .service-form-security .service-security-head{height:32px!important;min-height:32px!important;margin:0!important;padding:0 4px 7px!important}
#appDialog.service-accept-dialog .service-pattern-lock{grid-template-columns:repeat(3,12px)!important;gap:10px!important}
#appDialog.service-accept-dialog .service-pattern-dot{width:12px!important;height:12px!important;min-height:12px!important}
#appDialog.service-accept-dialog .service-photo-preview em{flex:1 1 160px!important;min-width:0!important;line-height:1.3!important;white-space:normal!important}
#appDialog.service-accept-dialog .service-photo-preview button{padding:5px!important;background:#111c2d!important;color:#cbd5e1!important;border:1px solid #263449!important;border-radius:7px!important}
#appDialog.service-accept-dialog .service-form-fault .service-speech-button{background:transparent!important;border:0!important;color:#60a5fa!important;padding:0!important;min-height:20px!important;white-space:nowrap!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-form-card{padding:12px!important}#appDialog.service-accept-dialog .service-form-card-head{height:auto!important;min-height:32px!important;margin:0 0 10px!important}#appDialog.service-accept-dialog .service-form-fault .service-form-card-head{height:auto!important}#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{height:auto!important}}

#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{margin-bottom:5px!important}
#appDialog.service-accept-dialog .service-form-customer .service-form-card-head h3{transform:translateY(3px)!important}
#appDialog.service-accept-dialog .service-form-customer .service-form-card-head p{transform:translateY(-1px)!important}
#appDialog.service-accept-dialog .service-form-card-head>div>div{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important}
#appDialog.service-accept-dialog .service-form-customer .service-form-state{padding:2px 7px!important;border:1px solid rgba(16,185,129,.24)!important;border-radius:999px!important;background:rgba(16,185,129,.1)!important;color:#34d399!important;font-size:10px!important}
#appDialog.service-accept-dialog .service-accept-form .field label{font-size:12px!important;line-height:16px!important}
#appDialog.service-accept-dialog .service-form-customer{row-gap:6px!important}
#appDialog.service-accept-dialog .service-device-fields{row-gap:4px!important}
#appDialog.service-accept-dialog .service-form-fault .service-form-card-head h3{transform:translateY(-4px)!important}
#appDialog.service-accept-dialog .service-fault-label{margin-bottom:2px!important}
#appDialog.service-accept-dialog .service-form-fault .service-quick-issues{margin-bottom:12px!important}
#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-columns:auto!important;grid-auto-rows:50px!important;grid-auto-flow:row!important;gap:8px!important;padding-top:15px!important;overflow:visible!important}
#appDialog.service-accept-dialog .service-accessories>span{grid-column:1/-1!important;height:16px!important;min-height:16px!important;white-space:nowrap!important;overflow:hidden!important}
#appDialog.service-accept-dialog .service-accessories>label{grid-column:auto!important;min-width:0!important;height:50px!important;min-height:50px!important}
#appDialog.service-accept-dialog .service-extra-fields{display:none!important;grid-column:1/-1!important}
#appDialog.service-accept-dialog .service-extra-fields[open]{display:block!important}
#appDialog.service-accept-dialog .service-price-label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-bottom:6px!important}
#appDialog.service-accept-dialog .service-currency-select{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}
#appDialog.service-accept-dialog .service-currency-select button{width:22px!important;height:24px!important;min-height:24px!important;padding:0!important;border:1px solid #263449!important;border-radius:5px!important;background:#111c2d!important;color:#cbd5e1!important;font-size:12px!important}
#appDialog.service-accept-dialog .service-currency-select button.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
#appDialog.service-accept-dialog .service-currency-native{display:none!important}
#appDialog.service-accept-dialog .service-price-field{display:block!important}
#appDialog.service-accept-dialog .service-price-field input{width:100%!important}
#appDialog.service-accept-dialog .service-photo-preview{display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important}
#appDialog.service-accept-dialog .service-photo-preview button{flex:0 0 48px!important}
#appDialog.service-accept-dialog .service-photo-preview em{font-size:11px!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{margin-bottom:10px!important}#appDialog.service-accept-dialog .service-form-customer .service-form-card-head>div>div{flex-wrap:wrap!important}#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;padding-top:10px!important}#appDialog.service-accept-dialog .service-accessories>span,#appDialog.service-accept-dialog .service-extra-fields{grid-column:1/-1!important}}

#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{margin-bottom:9px!important}
#appDialog.service-accept-dialog .service-form-customer{row-gap:14px!important}
#appDialog.service-accept-dialog .service-device-fields{row-gap:14px!important}
#appDialog.service-accept-dialog .service-form-fault .service-form-card-head{margin-bottom:5.5px!important}
#appDialog.service-accept-dialog .service-accessories{grid-auto-rows:auto!important;gap:12px!important;padding-top:13px!important}
#appDialog.service-accept-dialog .service-accessories>span{padding-top:0!important}
#appDialog.service-accept-dialog .service-fault-label{margin-bottom:0!important}
#appDialog.service-accept-dialog .service-form-fault textarea{margin-top:-1.5px!important}

#appDialog.service-accept-dialog .service-form-customer .service-form-card-head{margin-bottom:1px!important}
#appDialog.service-accept-dialog .service-form-fault{gap:14px!important}
#appDialog.service-accept-dialog .service-form-fault .service-form-card-head{margin-bottom:6.5px!important}
#appDialog.service-accept-dialog .service-form-fault textarea{margin-top:.5px!important}
#appDialog.service-accept-dialog .service-form-fault .service-quick-issues{margin-top:5px!important;margin-bottom:12px!important}
#appDialog.service-accept-dialog .service-form-fault .service-quick-issues button{height:26px!important;min-height:26px!important}
#appDialog.service-accept-dialog .service-currency-select{gap:2px!important}
#appDialog.service-accept-dialog .service-currency-select button{width:21.5px!important}

#appDialog.service-accept-dialog .service-form-fault{row-gap:8px!important;column-gap:14px!important}

#appDialog.service-accept-dialog .service-price-field input{margin-top:-6px!important}
#appDialog.service-accept-dialog .service-form-photo .service-form-card-head h3{transform:translateY(-5px)!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-device-fields.form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Figma reference control surfaces */
#appDialog.service-accept-dialog .service-form-customer input:not([type=checkbox]),#appDialog.service-accept-dialog .service-form-device input:not([type=checkbox]),#appDialog.service-accept-dialog .service-form-security input:not([type=checkbox]),#appDialog.service-accept-dialog .service-price-field input{background:#fff!important;color:#243247!important;border-color:#cbd5e1!important}
#appDialog.service-accept-dialog .service-form-customer input::placeholder,#appDialog.service-accept-dialog .service-form-device input::placeholder,#appDialog.service-accept-dialog .service-form-security input::placeholder,#appDialog.service-accept-dialog .service-price-field input::placeholder{color:#64748b!important}

#appDialog.service-accept-dialog .service-form-device input[name="brand"]{background:#0e1422!important;color:#f8fafc!important;border-color:#263449!important}
#appDialog.service-accept-dialog .service-form-device input[name="brand"]::placeholder{color:#94a3b8!important}
#appDialog.service-accept-dialog .service-form-customer>.field,#appDialog.service-accept-dialog .service-form-device>.field{position:relative!important}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input[name="customer_name"])::after{content:"\25a6"}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input[name="customer_identity"])::after{content:"\25a4"}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input[name="customer_phone_input"])::after{content:"\260e"}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input[name="delivered_by_name"])::after{content:"\2659"}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input[name="delivered_by_phone"])::after{content:"\25a3"}
#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input[name="brand"])::after{content:"\25c6"}
#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input[name="model"])::after{content:"\25c8"}
#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input[name="serial"])::after{content:"\25a5"}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input),#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input){position:relative!important}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input)::after,#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input)::after{position:absolute!important;left:12px!important;bottom:10px!important;color:#8b9bb2!important;font-size:13px!important;line-height:14px!important;pointer-events:none!important}
#appDialog.service-accept-dialog .service-form-customer>.field:has(input) input,#appDialog.service-accept-dialog .service-form-device .service-device-fields>.field:has(input) input{padding-left:34px!important}
#appDialog.service-accept-dialog .service-price-field{position:relative!important}
#appDialog.service-accept-dialog .service-price-field:before{content:"$";position:absolute;left:12px;top:10px;z-index:2;color:#3b82f6;font-size:14px;font-weight:700;pointer-events:none}
#appDialog.service-accept-dialog .service-price-field input{padding-left:32px!important}

/* Match the Figma service intake title block. */
dialog.service-accept-dialog form>header>div{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:2px;min-width:0}
dialog.service-accept-dialog form>header h2{order:1;margin:0}
dialog.service-accept-dialog #serviceVersionBadge{order:2;padding:4px 9px;border:1px solid #1e3a5f;border-radius:999px;background:#12223a;color:#93c5fd;font-size:10px;font-weight:700;white-space:nowrap}
dialog.service-accept-dialog #dialogEyebrow{display:block!important;order:3;flex-basis:100%;margin:0;padding-left:50px;color:#94a3b8;font-size:11px;line-height:14px}
dialog.service-accept-dialog #dialogTitle::after{display:none}

dialog.service-accept-dialog #serviceEscHint{margin-left:auto;padding:6px 10px;border:1px solid #263449;border-radius:6px;background:#111c2d;color:#94a3b8;font:11px ui-monospace,monospace;white-space:nowrap}
dialog.service-accept-dialog #dialogEyebrow{text-transform:none!important}
@media(max-width:800px){dialog.service-accept-dialog #serviceEscHint{display:none}}

@media(max-width:800px){dialog.service-accept-dialog form>header{position:relative!important;height:auto!important;min-height:108px!important;align-items:flex-start!important;padding:14px!important}dialog.service-accept-dialog form>header>div{width:calc(100% - 40px)!important;align-content:flex-start!important}dialog.service-accept-dialog #dialogClose{position:absolute!important;top:12px!important;right:12px!important}dialog.service-accept-dialog #dialogTitle{max-width:100%!important;min-height:38px;align-content:center}dialog.service-accept-dialog #dialogEyebrow{padding-left:50px!important}}

/* Keep the full intake form inside the dialog scroll area and anchor extra fields to the device card. */
#appDialog.service-accept-dialog{height:min(980px,calc(100svh - 24px))!important;max-height:calc(100svh - 24px)!important}
#appDialog.service-accept-dialog>form>header{height:76px!important;min-height:76px!important;flex-basis:76px!important;padding:12px 22px!important}
#appDialog.service-accept-dialog #dialogBody{min-height:0!important;padding:12px 16px!important;overflow:auto!important}
#appDialog.service-accept-dialog #dialogFooter{height:auto!important;min-height:64px!important;flex-basis:auto!important;padding:8px 16px!important}
#appDialog.service-accept-dialog .service-accept-form{height:auto!important;min-height:0!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr)!important;grid-template-areas:none!important;gap:0 14px!important;align-items:start!important}
#appDialog.service-accept-dialog .service-form-column{min-width:0!important;gap:12px!important}
#appDialog.service-accept-dialog .service-form-left{grid-column:1!important;grid-row:1!important}
#appDialog.service-accept-dialog .service-form-right{grid-column:2!important;grid-row:1!important}
#appDialog.service-accept-dialog .service-form-card{height:auto!important;min-height:0!important;overflow:visible!important;padding:12px!important}
#appDialog.service-accept-dialog .service-form-customer,#appDialog.service-accept-dialog .service-form-device,#appDialog.service-accept-dialog .service-form-fault,#appDialog.service-accept-dialog .service-form-security,#appDialog.service-accept-dialog .service-form-photo{height:auto!important;min-height:0!important}
#appDialog.service-accept-dialog .service-form-customer{row-gap:10px!important}
#appDialog.service-accept-dialog .service-device-fields{row-gap:10px!important}
#appDialog.service-accept-dialog .service-form-device .service-device-extra-toggle{min-height:26px!important;min-width:116px!important;padding:3px 9px!important;border:1px solid #1d4ed8!important;border-radius:6px!important;background:#102649!important;color:#93c5fd!important;font-size:10px!important;white-space:nowrap!important}
#appDialog.service-accept-dialog .service-device-meta{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:7px!important;padding-top:10px!important;margin-top:10px!important;overflow:visible!important}
#appDialog.service-accept-dialog .service-accessories>span{grid-column:1/-1!important;height:auto!important;min-height:0!important;white-space:normal!important}
#appDialog.service-accept-dialog .service-accessories>label{height:auto!important;min-height:36px!important}
#appDialog.service-accept-dialog .service-extra-fields{display:block!important;grid-area:auto!important;position:static!important;width:100%!important;margin-top:10px!important;overflow:visible!important}
#appDialog.service-accept-dialog .service-extra-fields[open]{display:block!important}
#appDialog.service-accept-dialog .service-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:0 10px 10px!important}
#appDialog.service-accept-dialog .service-open-form{grid-area:auto!important;min-height:34px!important}
@media(max-width:800px){#appDialog.service-accept-dialog{height:calc(100svh - 16px)!important;max-height:calc(100svh - 16px)!important}#appDialog.service-accept-dialog>form>header{height:auto!important;min-height:108px!important;flex-basis:auto!important;padding:14px!important}#appDialog.service-accept-dialog #dialogBody{padding:10px!important}#appDialog.service-accept-dialog .service-accept-form{display:flex!important;flex-direction:column!important;gap:10px!important}#appDialog.service-accept-dialog .service-form-column{width:100%!important;gap:10px!important}#appDialog.service-accept-dialog .service-form-customer,#appDialog.service-accept-dialog .service-form-device,#appDialog.service-accept-dialog .service-form-fault,#appDialog.service-accept-dialog .service-form-security,#appDialog.service-accept-dialog .service-form-photo{height:auto!important}#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important}#appDialog.service-accept-dialog .service-extra-grid{grid-template-columns:minmax(0,1fr)!important}#appDialog.service-accept-dialog #dialogFooter{height:auto!important;min-height:64px!important;flex-basis:auto!important;flex-wrap:wrap!important}}


/* Reference-sized layout for the service intake form. */
#appDialog.service-accept-dialog{height:min(1184px,calc(100svh - 24px))!important;max-height:calc(100svh - 24px)!important}
#appDialog.service-accept-dialog>form>header{height:103px!important;min-height:103px!important;flex-basis:103px!important;padding:14px 30px!important}
#appDialog.service-accept-dialog #dialogBody{padding:14px!important}
#appDialog.service-accept-dialog #dialogFooter{height:80px!important;min-height:80px!important;flex-basis:80px!important;padding:12px 30px!important}
#appDialog.service-accept-dialog .service-accept-form{grid-template-columns:minmax(0,1.42fr) minmax(0,1fr)!important;gap:0 30px!important}
#appDialog.service-accept-dialog .service-form-column{gap:12px!important}
#appDialog.service-accept-dialog .service-form-customer{row-gap:14px!important}
#appDialog.service-accept-dialog .service-form-card-head{height:48px!important;min-height:48px!important;margin-bottom:10px!important;padding-bottom:8px!important}
#appDialog.service-accept-dialog .service-accept-form .field label{font-size:13px!important;line-height:17px!important}
#appDialog.service-accept-dialog .service-accept-form input:not([type=checkbox]):not([type=file]),#appDialog.service-accept-dialog .service-accept-form select,#appDialog.service-accept-dialog .service-accept-form textarea{min-height:42px!important;font-size:13px!important}
#appDialog.service-accept-dialog .service-form-fault textarea{height:104px!important;min-height:104px!important}
#appDialog.service-accept-dialog .service-device-fields{row-gap:16px!important;column-gap:16px!important}
#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#appDialog.service-accept-dialog .service-accessories>label{min-height:62px!important;padding:9px!important}
#appDialog.service-accept-dialog .service-photo-drop{height:136px!important;min-height:136px!important}
#appDialog.service-accept-dialog .service-photo-preview{min-height:68px!important}
@media(max-width:800px){#appDialog.service-accept-dialog{height:calc(100svh - 16px)!important;max-height:calc(100svh - 16px)!important}#appDialog.service-accept-dialog>form>header{height:auto!important;min-height:108px!important;flex-basis:auto!important;padding:14px!important}#appDialog.service-accept-dialog #dialogBody{padding:10px!important}#appDialog.service-accept-dialog #dialogFooter{height:auto!important;min-height:64px!important;flex-basis:auto!important;padding:8px!important}#appDialog.service-accept-dialog .service-accept-form{display:flex!important;flex-direction:column!important;gap:10px!important}#appDialog.service-accept-dialog .service-form-column{width:100%!important;gap:10px!important}#appDialog.service-accept-dialog .service-form-card-head{height:auto!important;min-height:36px!important}#appDialog.service-accept-dialog .service-accessories{grid-template-columns:repeat(2,minmax(0,1fr))!important}#appDialog.service-accept-dialog .service-accessories>label{min-height:42px!important}}


/* Final reference alignment: spacing, control sizing, and a labeled inline extra-fields action. */
#appDialog.service-accept-dialog #dialogBody{padding-top:24px!important}
#appDialog.service-accept-dialog .service-form-left{gap:2px!important}
#appDialog.service-accept-dialog .service-form-customer{row-gap:22px!important;padding-bottom:26px!important}
#appDialog.service-accept-dialog .service-form-device{padding:8px 12px!important}
#appDialog.service-accept-dialog .service-form-fault .service-quick-issues{margin-bottom:22px!important}
#appDialog.service-accept-dialog .service-form-security{padding:14px!important}
#appDialog.service-accept-dialog .service-pattern-box{height:180px!important;min-height:180px!important}
#appDialog.service-accept-dialog .service-accessories>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
#appDialog.service-accept-dialog .service-accessories>span>span{min-width:0!important}
#appDialog.service-accept-dialog .service-accessories .service-device-extra-toggle{flex:none!important;min-height:26px!important;padding:3px 9px!important;border:1px solid #1d4ed8!important;border-radius:6px!important;background:#102649!important;color:#93c5fd!important;font-size:10px!important;white-space:nowrap!important;cursor:pointer!important}
#appDialog.service-accept-dialog .service-extra-fields>summary{display:none!important}
@media(max-width:800px){#appDialog.service-accept-dialog #dialogBody{padding-top:10px!important}#appDialog.service-accept-dialog .service-form-left{gap:10px!important}#appDialog.service-accept-dialog .service-form-customer{padding-bottom:12px!important;row-gap:14px!important}#appDialog.service-accept-dialog .service-form-device{padding:12px!important}#appDialog.service-accept-dialog .service-form-security{padding:12px!important}#appDialog.service-accept-dialog .service-pattern-box{height:auto!important;min-height:142px!important}#appDialog.service-accept-dialog .service-accessories>span{align-items:flex-start!important;flex-wrap:wrap!important}}


/* Final spacing pass against the provided 1600 by 1280 service-form reference. */
#appDialog.service-accept-dialog .service-form-customer{row-gap:22px!important;padding-bottom:18px!important}
#appDialog.service-accept-dialog .service-form-left{gap:0!important}
#appDialog.service-accept-dialog .service-form-device{padding:4px 12px!important}
#appDialog.service-accept-dialog .service-form-right{gap:26px!important}
#appDialog.service-accept-dialog .service-form-fault{padding-bottom:24px!important}
#appDialog.service-accept-dialog .service-pattern-box{height:170px!important;min-height:170px!important}
#appDialog.service-accept-dialog .service-form-photo{padding:7px 12px!important}
#appDialog.service-accept-dialog .service-extra-fields:not([open]){display:none!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-form-customer{row-gap:14px!important;padding-bottom:12px!important}#appDialog.service-accept-dialog .service-form-left,#appDialog.service-accept-dialog .service-form-right{gap:10px!important}#appDialog.service-accept-dialog .service-form-device,#appDialog.service-accept-dialog .service-form-photo{padding:12px!important}#appDialog.service-accept-dialog .service-form-fault{padding-bottom:12px!important}#appDialog.service-accept-dialog .service-pattern-box{height:auto!important;min-height:142px!important}}


/* Final card rhythm tuned to the source component coordinates. */
#appDialog.service-accept-dialog .service-form-device{padding:6px 12px 0!important}
#appDialog.service-accept-dialog .service-device-fields{row-gap:26px!important}
#appDialog.service-accept-dialog .service-device-fields .field{gap:8px!important}
#appDialog.service-accept-dialog .service-accessories{margin-top:16px!important}
#appDialog.service-accept-dialog .service-accessories>label{min-height:58px!important}
#appDialog.service-accept-dialog .service-price-label label{max-width:140px!important;white-space:normal!important;line-height:16px!important}
#appDialog.service-accept-dialog .service-form-fault{padding-bottom:24px!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-form-device{padding:12px!important}#appDialog.service-accept-dialog .service-device-fields{row-gap:16px!important}#appDialog.service-accept-dialog .service-device-fields .field{gap:6px!important}#appDialog.service-accept-dialog .service-accessories{margin-top:10px!important}#appDialog.service-accept-dialog .service-accessories>label{min-height:42px!important}#appDialog.service-accept-dialog .service-price-label label{max-width:none!important}#appDialog.service-accept-dialog .service-form-fault{padding-bottom:12px!important}}

/* Keep optional intake fields readable and compact inside the device card. */
#appDialog.service-accept-dialog .service-extra-fields[open]>summary{display:block!important;padding:8px 10px!important;color:var(--text-primary,#e6edf7)!important;font-size:12px!important;font-weight:700!important;border-bottom:1px solid var(--border-color,#26364c)!important;cursor:default!important}
#appDialog.service-accept-dialog .service-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:10px!important}
#appDialog.service-accept-dialog .service-extra-grid .field{min-width:0!important;gap:5px!important}
#appDialog.service-accept-dialog .service-extra-grid textarea{height:64px!important;min-height:64px!important}
#appDialog.service-accept-dialog .service-extra-grid .service-open-form{min-height:36px!important;padding:8px!important}
@media(max-width:800px){#appDialog.service-accept-dialog .service-extra-grid{grid-template-columns:minmax(0,1fr)!important}}

#appDialog.service-accept-dialog .service-extra-fields{grid-column:1/-1!important;min-width:0!important}
#appDialog.service-accept-dialog .service-form-fault{padding-bottom:14px!important}
#appDialog.service-accept-dialog .service-form-photo{min-height:287px!important}
body:has(#appDialog.service-accept-dialog[open]){overflow:hidden!important}

/* Part 8: compact system identity layout; the app navigation remains shared. */
.identity-reference{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#e2e8f0}
.identity-reference-head{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid #1f293d;border-radius:8px;background:#111827}
.identity-reference-head>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #2563eb55;border-radius:7px;background:#2563eb22;color:#60a5fa;font-size:16px}
.identity-reference-head h2{margin:0;color:#f8fafc;font-size:16px;line-height:1.25}
.identity-reference-head p{margin:3px 0 0;color:#94a3b8;font-size:11px}
.identity-reference-head>div{flex:1;min-width:0}
.identity-reference-head button{min-height:32px;padding:6px 10px;font-size:10px}
.identity-reference-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(300px,5fr);gap:12px;align-items:stretch;min-width:0}
.identity-reference-main,.identity-reference-aside{display:flex;flex-direction:column;gap:10px;min-width:0}
.identity-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.identity-reference-section{min-width:0;margin:0;padding:12px;border:1px solid #1f293d;border-radius:8px;background:#111827}
.identity-reference-section legend{padding:0 7px;color:#e2e8f0;font-size:11px;font-weight:700;letter-spacing:.02em}
.identity-sector-body{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;color:#cbd5e1;font-size:11px}
.identity-sector-body>label{font-size:11px;font-weight:600}
.identity-sector-body .control{width:100%;min-height:34px;padding:6px 9px;border:1px solid #28364c;border-radius:6px;background:#161f30;color:#f8fafc}
.identity-warning{margin:0;padding:8px 10px;border:1px solid #b45309;border-radius:7px;background:#451a0380;color:#fbbf24;font-size:10px;font-weight:600}
.identity-profile-options{display:flex;flex-wrap:wrap;gap:7px}
.identity-profile{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #28364c;border-radius:6px;background:#161f30;color:#cbd5e1;font-size:11px}
.identity-profile input{accent-color:#2563eb}
.identity-sector-body small{color:#94a3b8;font-size:10px}
.identity-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.identity-option-card{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:40px;padding:6px 9px;border:1px solid #28364c;border-radius:6px;background:#161f30;color:#cbd5e1;font-size:11px}
.identity-option-card>span{min-width:0;overflow-wrap:anywhere}
.identity-option-card input.switch,.identity-startup-row input.switch{flex:0 0 auto;accent-color:#2563eb}
.identity-system-info{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;color:#94a3b8;font-size:10px}
.identity-system-info>div{min-width:0;padding:6px 8px;border:1px solid #28364c;border-radius:5px;background:#161f30;overflow-wrap:anywhere}
.identity-system-info button{min-height:32px}
.identity-startup-row label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border:1px solid #28364c;border-radius:6px;background:#161f30;color:#cbd5e1;font-size:11px}
.identity-startup-row label>span{display:grid;gap:3px}
.identity-startup-row label small{color:#94a3b8;font-size:9px}
.identity-shortcut-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}
.identity-shortcut-actions button{min-width:0;min-height:34px;padding:6px;font-size:10px}
.identity-system-section{display:flex;min-height:100%;flex-direction:column;justify-content:space-between}
.identity-system-section legend{display:flex;width:calc(100% - 14px);align-items:center;justify-content:space-between;gap:8px}
.identity-status-pill{padding:3px 7px;border:1px solid #10b98155;border-radius:5px;background:#064e3b44;color:#34d399;font-size:9px;white-space:nowrap}
.identity-system-info{display:flex;flex:1;flex-direction:column;gap:8px;padding:4px 0 10px}
.identity-database-path>label{display:flex;justify-content:space-between;margin-bottom:4px;color:#cbd5e1;font-size:10px}
.identity-database-path>label span{color:#94a3b8;font:9px \"Segoe UI\",Arial,sans-serif}
.identity-database-path>div{display:flex;gap:6px;align-items:center;padding:5px;border:1px solid #28364c;border-radius:5px;background:#161f30}
.identity-database-path input{width:100%;min-width:0;padding:4px 5px;border:0;background:transparent;color:#cbd5e1;font:10px \"Segoe UI\",Arial,sans-serif}
.identity-database-path button{min-height:28px;flex:0 0 auto;padding:4px 9px;font-size:9px}
.identity-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.identity-metrics article{display:grid;justify-items:center;gap:4px;padding:8px 5px;border:1px solid #28364c;border-radius:5px;background:#161f30}
.identity-metrics article span{color:#94a3b8;font-size:9px;text-align:center}
.identity-metrics article b{color:#4cd7f6;font:700 12px \"Segoe UI\",Arial,sans-serif;text-align:center}
.identity-system-row{display:flex;justify-content:space-between;gap:8px;padding:7px;border:1px solid #28364c;border-radius:5px;background:#161f30;color:#94a3b8;font-size:10px}
.identity-system-row b{color:#dee2f6;text-align:right}
.identity-system-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:8px;border-top:1px solid #1f293d}
.identity-system-actions button{min-height:32px;padding:6px;font-size:10px}
@media(min-width:901px){.identity-reference-grid{min-height:calc(100vh - 235px)}.identity-reference-main,.identity-reference-aside{justify-content:space-between}.identity-reference-main>fieldset:nth-child(2),.identity-reference-main>fieldset:nth-child(3){margin-top:clamp(12px,7vh,115px)}.identity-reference-aside>fieldset:nth-child(1){flex:1}}
body[data-settings-section="identity"] .identity-reference{gap:8px;padding-bottom:76px}
body[data-settings-section="identity"] .identity-reference-grid{gap:8px}
body[data-settings-section="identity"] .identity-reference-main,body[data-settings-section="identity"] .identity-reference-aside{gap:7px}
body[data-settings-section="identity"] .identity-reference-section{padding:9px}
body[data-settings-section="identity"] .identity-reference-section legend{font-size:10px}
body[data-settings-section="identity"] .identity-option-grid{gap:5px}
body[data-settings-section="identity"] .identity-option-card{min-height:34px;padding:4px 7px;font-size:10px}
body[data-settings-section="identity"] .identity-option-card input.switch{transform:scale(.88);transform-origin:right center}
body[data-settings-section="identity"] .identity-system-info{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:4px}
body[data-settings-section="identity"] .identity-system-info>div{padding:5px 6px}
body[data-settings-section="identity"] .identity-system-info button{min-height:28px}
body[data-settings-section="identity"] .identity-startup-row label{padding:7px}
body[data-settings-section="identity"] .identity-shortcut-actions button{min-height:30px}
@media(max-width:900px){.identity-reference-grid{grid-template-columns:minmax(0,1fr);min-height:0}.identity-reference-main,.identity-reference-aside{justify-content:flex-start}.identity-reference-main>fieldset:nth-child(2),.identity-reference-main>fieldset:nth-child(3){margin-top:0}.identity-reference-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.identity-system-section{min-height:0}.identity-system-info{padding-bottom:8px}}
@media(max-width:560px){.identity-reference{gap:9px}.identity-reference-head{padding:8px}.identity-reference-head h2{font-size:14px}.identity-reference-grid{gap:9px}.identity-reference-aside{display:flex}.identity-reference-section{padding:10px}.identity-option-grid,.identity-feature-grid{grid-template-columns:minmax(0,1fr)}.identity-shortcut-actions,.identity-system-actions{grid-template-columns:minmax(0,1fr)}}

/* Part 8 company settings: retain the global navigation and compact the page workspace. */
.company-reference{display:grid;grid-template-columns:minmax(0,1fr);gap:0;width:100%;min-width:0;color:var(--ink)}
.company-reference-workspace{display:flex;flex-direction:column;gap:9px;min-width:0}
.company-reference-profile,.company-reference-summary,.company-reference-section{background:#0e1424;border:1px solid #1f293d;border-radius:7px}
.company-reference-profile{padding:11px;display:grid;gap:8px}
.company-reference-label{display:flex;align-items:center;justify-content:space-between;color:#94a3b8;font-size:10px;font-weight:800;letter-spacing:.06em}
.company-reference-label span,.company-reference-summary h2 span{padding:3px 6px;border:1px solid #2563eb55;border-radius:4px;color:#60a5fa;font-size:9px}
.company-reference-profile>strong{font-size:12px;color:#e2e8f0}
.company-reference-profile>small{color:#34d399;font-size:10px}
.company-reference-logo{height:44px;display:grid;place-items:center;border:1px solid #1f293d;border-radius:5px;background:#090e1b;color:#60a5fa;font-size:13px;font-weight:900}
.company-reference-status h3{margin:0;color:#94a3b8;font-size:10px}
.company-reference-status>div{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#94a3b8}
.company-reference-status b{color:#34d399;text-align:right}
.company-reference-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px}
.company-reference-summary h2{margin:0;font-size:12px;color:#e2e8f0}
.company-reference-summary p{margin:6px 0 0;color:#94a3b8;font-size:10px}
.company-reference-summary .primary{flex:0 0 auto}
.company-reference-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.company-reference-tags span{padding:4px 7px;border:1px solid #1f293d;border-radius:4px;color:#34d399;font-size:9px;font-weight:700}
.company-reference-identity{padding:12px 14px}
.company-reference-identity>.company-reference-summary{padding:0 0 11px;border:0;border-bottom:1px solid #1f293d;border-radius:0;background:transparent}
.company-reference-summary h2 span.verified{color:#60a5fa;border-color:#2563eb55}
.company-reference-visual-heading{display:flex;align-items:center;gap:9px;padding:12px 0 3px;color:#cbd5e1;font-size:10px;letter-spacing:.04em}
.company-reference-visual-heading small{color:#64748b;font-size:9px;letter-spacing:0}
.company-reference-visual-heading span{margin-left:auto;color:#94a3b8;font:9px monospace;white-space:nowrap}
.company-bank-toolbar{display:flex;gap:6px;align-items:center;padding:8px 0}
.company-bank-toolbar input{min-width:0;min-height:30px;flex:1;padding:5px 8px;border:1px solid #28364c;border-radius:5px;background:#0b101d;color:#e2e8f0;font-size:10px}
.company-bank-toolbar button{min-height:30px;padding:5px 9px;font-size:9px}
.company-bank-table-wrap{max-height:250px;overflow:auto;border:1px solid #1f293d;border-radius:5px}
.company-bank-table{width:100%;min-width:760px;border-collapse:collapse;color:#cbd5e1;font-size:9px}
.company-bank-table th,.company-bank-table td{padding:5px 7px;border-bottom:1px solid #1f293d;text-align:left;white-space:nowrap}
.company-bank-table th{position:sticky;top:0;background:#0b101d;color:#94a3b8;font-weight:700;z-index:1}
.company-bank-table td:first-child{white-space:normal;min-width:135px}
.company-bank-table select,.company-bank-table input{width:100%;min-width:72px;min-height:28px;padding:4px 6px;border:1px solid #28364c;border-radius:4px;background:#0b101d;color:#e2e8f0;font-size:9px}
.company-bank-status{padding:3px 6px;border:1px solid #1f293d;border-radius:4px;color:#34d399;font-size:8px}
.company-reference-panels{display:grid;gap:8px;min-width:0}.company-reference-panels>*{min-width:0;max-width:100%}
.company-reference-section{scroll-margin-top:12px;padding:9px 11px}
.company-reference-section>header{display:flex;align-items:center;gap:7px;padding-bottom:8px;border-bottom:1px solid #1f293d}
.company-reference-section>header h3{margin:0;color:#e2e8f0;font-size:10px;font-weight:800}
.company-reference-section>header small{color:#94a3b8;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.company-reference-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#22d3ee}
.company-reference-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:9px}
.company-reference-fields .field{min-width:0}
.company-reference-fields .field.full{grid-column:1/-1}
.company-reference-fields .field label{color:#94a3b8;font-size:9px}
.company-reference-location{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr);gap:10px;align-items:stretch;padding-top:8px}
.company-reference-location .company-reference-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;padding-top:0}
.company-reference-map{position:relative;display:grid;min-height:160px;place-items:center;overflow:hidden;border:1px solid #28364c;border-radius:5px;background-color:#080f1a;background-image:linear-gradient(35deg,transparent 47%,#24413b 48%,#24413b 49%,transparent 50%),linear-gradient(165deg,transparent 47%,#253b52 48%,#253b52 49%,transparent 50%),linear-gradient(#162234 1px,transparent 1px),linear-gradient(90deg,#162234 1px,transparent 1px);background-size:100% 100%,100% 100%,22px 22px,22px 22px}
.company-reference-map-status{position:absolute;top:7px;right:7px;padding:4px 6px;border:1px solid #10b98155;border-radius:4px;background:#071c19;color:#34d399;font-size:8px;font-weight:700}
.company-reference-map-marker{display:grid;justify-items:center;gap:3px;transform:translateY(-4px)}
.company-reference-map-marker i{width:13px;height:13px;border:3px solid #f87171;border-radius:50%;background:#991b1b;box-shadow:0 0 0 4px #f8717133}
.company-reference-map-marker b{padding:3px 5px;border:1px solid #64748b;border-radius:3px;background:#080f1a;color:#e2e8f0;font:700 9px "Segoe UI",Arial,sans-serif}
.company-reference-map>small{position:absolute;right:6px;bottom:5px;color:#64748b;font-size:7px}
.company-reference-map.is-map-open{background:#080f1a}
.company-reference-map.is-map-open iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.company-reference-map.is-map-open .company-reference-map-marker{display:none}
.company-reference-map.is-map-open>small{padding:4px 6px;border-radius:4px;background:#07111de8;color:#cbd5e1;font-size:9px}
.company-reference-visuals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:8px}
.company-reference-visual-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:9px;align-items:center;min-width:0;padding:9px;border:1px solid #1f293d;border-radius:5px;background:#0b101d}
.company-reference-visual-preview,.company-reference-wallpaper-preview{display:grid;width:58px;height:54px;place-items:center;overflow:hidden;border:1px solid #28364c;border-radius:4px;background:#172238;color:#60a5fa;font-size:16px;font-weight:800}
.company-reference-visual-preview img{width:100%;height:100%;object-fit:contain}
.company-reference-logo-empty{font-size:10px}
.company-reference-wallpaper-preview{background:linear-gradient(140deg,#15263e,#080d18 55%,#1a3048);font-size:20px}
.company-reference-visual-copy{display:grid;gap:3px;min-width:0}
.company-reference-visual-copy strong{color:#cbd5e1;font-size:9px}
.company-reference-visual-copy small,.company-reference-visual-copy span{overflow:hidden;color:#94a3b8;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.company-reference-visual-actions{grid-column:2;display:flex;gap:5px}
.company-reference-visual-actions button{min-height:25px;padding:4px 8px;font-size:8px}
.company-reference-wallpaper-setting{grid-column:1/-1;min-width:0}.company-reference-wallpaper-setting .field{padding:0;border:0;background:transparent}.company-reference-wallpaper-setting input{min-width:0;width:100%;min-height:26px;padding:4px 6px;border:1px solid #28364c;border-radius:4px;background:#0b101d;color:#e2e8f0;font-size:9px}
.company-reference-fields .field input,.company-reference-fields .field textarea,.company-reference-fields .field select{min-width:0;min-height:30px;padding:5px 7px;font-size:10px}
.company-reference-fields .setting{min-width:0;padding:7px 8px;border:1px solid #1f293d;border-radius:5px;background:#0b101d}
.company-number-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid #1f293d}
.company-number-header>div:first-child{display:flex;align-items:center;gap:7px;min-width:0}
.company-number-header h3{margin:0;color:#e2e8f0;font-size:10px;font-weight:800;white-space:nowrap}
.company-number-header small{color:#94a3b8;font-size:9px;white-space:nowrap}
.company-number-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.company-number-actions button{min-height:26px;padding:4px 8px;border:1px solid #28364c;border-radius:5px;background:#111a2f;color:#cbd5e1;font-size:9px;font-weight:700}
.company-number-actions [data-company-number-copy]{background:#f59e0b;color:#111827;border-color:#f59e0b}
.company-number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:8px}
.company-number-card{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;padding:8px;border:1px solid #1f293d;border-radius:6px;background:#111a2f}
.company-number-card>header{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0;border:0}
.company-number-card>header strong{overflow:hidden;color:#cbd5e1;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.company-number-card>header span{color:#60a5fa;font:9px monospace}
.company-number-field{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:4px;color:#94a3b8;font-size:9px}
.company-number-field input{min-width:0;width:100%;height:25px;padding:3px 6px;border:1px solid #28364c;border-radius:4px;background:#0b101d;color:#e2e8f0;font-size:10px}
@media(max-width:1050px){.company-reference-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.company-reference-section>header small{white-space:normal}}
@media(max-width:760px){.company-reference{grid-template-columns:minmax(0,1fr);gap:8px}.company-reference-workspace{gap:8px}.company-reference-summary{align-items:flex-start;flex-direction:column}.company-reference-summary .primary{width:100%}.company-reference-fields{grid-template-columns:minmax(0,1fr)}.company-reference-fields .field.full{grid-column:auto}.company-reference-section{padding:9px}.company-reference-section>header{align-items:flex-start;flex-wrap:wrap}.company-reference-section>header small{flex-basis:100%;padding-left:14px}.company-reference-visual-heading{align-items:flex-start;flex-wrap:wrap;gap:4px 8px}.company-reference-visual-heading span{margin-left:0}.company-number-header{align-items:flex-start;flex-direction:column}.company-number-header>div:first-child{align-items:flex-start;flex-wrap:wrap}.company-number-header small{flex-basis:100%;padding-left:14px;white-space:normal}.company-number-actions{width:100%;flex-wrap:wrap}.company-number-grid{grid-template-columns:minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1100px){.company-number-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

body[data-settings-section="company"] .settings-layout{grid-template-columns:minmax(0,1fr);gap:0}
@media(max-width:760px){.company-reference-location{grid-template-columns:minmax(0,1fr)}.company-reference-map{min-height:140px}.company-reference-visuals{grid-template-columns:minmax(0,1fr)}}
body[data-settings-section="company"] .settings-sidebar,body[data-settings-section="company"] .settings-mobile-picker{display:none!important}
body[data-settings-section="company"] .settings-content{grid-column:1/-1;width:100%;max-width:none;max-height:calc(100vh - 130px);overflow:auto;padding:10px 12px 96px}
body[data-settings-section="company"] .company-reference-panels{padding-bottom:80px}
@media(max-width:760px){body[data-settings-section="company"] .settings-content{max-height:calc(100svh - 165px);padding:8px 8px 90px}.company-reference-visual-heading{align-items:flex-start;flex-direction:column;gap:3px}}
body[data-settings-section="company"] .page-head .actions{position:static!important;align-self:center;margin-left:auto!important}
body[data-settings-section="identity"] .page-head .actions{position:fixed!important;left:calc(var(--sidebar) + 300px);right:25px;bottom:100px;z-index:80;width:auto;justify-content:flex-end}
@media(max-width:760px){body[data-settings-section="company"] .page-head .actions{display:flex!important;width:100%;margin:0!important}body[data-settings-section="identity"] .page-head .actions{display:flex!important;left:12px;right:12px;bottom:32px;width:auto;justify-content:stretch}body[data-settings-section="identity"] .page-head .actions .primary{width:100%}}
.p9-telegram{font-family:"Segoe UI",Arial,sans-serif;color:#dce4f2}.p9-telegram-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 10px}.p9-telegram-heading h3{margin:0;font-size:18px}.p9-telegram-heading p{margin:4px 0 0}.p9-telegram-state{font-size:11px;color:#40d9ac;letter-spacing:.06em}.p9-telegram-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:12px}.p9-telegram-main,.p9-telegram-side{display:grid;align-content:start;gap:9px;min-width:0}.p9-telegram-card{background:#171e2d;border:1px solid #242d40;border-radius:8px;padding:12px;min-width:0}.p9-telegram-card h4,.p9-telegram-extra h4{margin:0 0 9px;font-size:13px}.p9-telegram-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.p9-telegram-status div{display:grid;gap:4px;padding:6px;background:#111827;border-radius:5px}.p9-telegram-status b,.p9-telegram-preview>b{font-size:9px;letter-spacing:.08em;color:#99a6ba}.p9-telegram-status strong{font-size:11px;color:#46d6ed}.p9-telegram-status small{font-size:10px;color:#98a4b8}.p9-telegram-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:11px}.p9-telegram-card .field,.p9-telegram-card .setting{margin-top:6px}.p9-telegram-pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.p9-telegram-preview{display:grid;justify-items:start;gap:8px;min-height:225px}.p9-bot-icon{display:grid;place-items:center;width:34px;height:34px;background:#16bcd3;border-radius:8px;color:#101522;font-weight:800}.p9-telegram-preview>strong:last-child{color:#40d9ac}.p9-message{width:100%;padding:12px;background:#0e1420;border:1px solid #242d40;border-radius:6px;font-size:11px;min-height:66px}.p9-telegram-logs{display:grid;gap:7px}.p9-log-row{display:grid;gap:3px;background:#101522;padding:9px;border-radius:5px;font-size:11px}.p9-log-row span{color:#96a3b7}.p9-telegram-extra{padding:12px;background:#171e2d;border:1px solid #242d40;border-radius:8px}.p9-telegram-extra .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-content:has(.p9-telegram){min-width:0;max-width:none;width:100%;padding:12px;background:#101522;color:#dce4f2;border-color:#242d40}
body:has(.p9-telegram) .settings-sidebar,body:has(.p9-telegram) .settings-mobile-picker{display:none}body:has(.p9-telegram) .settings-layout{grid-template-columns:minmax(0,1fr)}
body:has(.p9-templates) .settings-sidebar,body:has(.p9-templates) .settings-mobile-picker{display:none}body:has(.p9-templates) .settings-layout{grid-template-columns:minmax(0,1fr)}.settings-content:has(.p9-templates){max-width:none;width:100%;padding:12px;background:#101522;color:#dce4f2;border-color:#242d40}
body:has(.p9-telegram) .page-head .actions{position:static!important;align-self:center;margin-left:auto!important;width:auto!important}
body:has(.p9-templates) .page-head .actions{position:static!important;align-self:center;margin-left:auto!important;width:auto!important}
.p9-telegram-tabs{display:flex;gap:6px;overflow-x:auto;padding:3px 0 9px;border-bottom:1px solid #242d40;margin-bottom:9px}.p9-telegram-tabs button{white-space:nowrap;background:transparent;border:0;border-bottom:2px solid transparent;color:#a9b4c8;padding:7px 10px;cursor:pointer}.p9-telegram-tabs button.active{color:#dce4f2;border-bottom-color:#2ccce2;background:#20283a}
.p9-templates{font-family:"Segoe UI",Arial,sans-serif;color:#dce4f2}.p9-templates>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.p9-templates>header h3{margin:2px 0}.p9-template-filter{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.p9-template-filter input{max-width:380px}.p9-template-table{width:100%;border-collapse:collapse}.p9-template-table th{background:#171e2d;color:#98a5bb;text-align:left;font-size:10px;letter-spacing:.06em}.p9-template-table td,.p9-template-table th{padding:10px;border-bottom:1px solid #242d40;vertical-align:top}.p9-template-table td:nth-child(3){min-width:240px;max-width:540px;white-space:pre-wrap}.p9-template-table .mini{padding:5px 8px}
@media(max-width:760px){.settings-content:has(.p9-telegram),.settings-content:has(.p9-templates){padding:10px}.p9-telegram-heading{align-items:flex-start;flex-direction:column}.p9-telegram-columns{grid-template-columns:minmax(0,1fr)}.p9-telegram-status{grid-template-columns:repeat(3,minmax(0,1fr))}.p9-telegram-steps,.p9-telegram-pref-grid,.p9-telegram-extra .form-grid{grid-template-columns:minmax(0,1fr)}.p9-telegram-preview{min-height:0}.p9-templates>header{align-items:flex-start;flex-direction:column}.p9-template-filter{align-items:stretch;flex-direction:column}.p9-template-filter input{max-width:none}.p9-template-table{min-width:740px}}

/* Part 9 Telegram reference alignment. */
.p9-telegram{font-family:"Segoe UI",Arial,sans-serif;color:#d5deef}
.p9-telegram-columns{grid-template-columns:minmax(0,2.08fr) minmax(300px,1fr);gap:12px}
.p9-telegram-main{border-left:5px solid #08b8d1;padding-left:8px}
.p9-telegram-card,.p9-telegram-extra{border-radius:4px;background:#161b2a;border-color:#252a39}
.p9-telegram-status div{border-radius:3px;background:#1a1f2e}
.p9-telegram-card h4{letter-spacing:-.02em}
.p9-telegram-tabs{border-bottom-color:#1d2a3c}
.p9-telegram-tabs button.active{box-shadow:inset 0 -1px #08b8d1;background:#1c2638;color:#e3ebf8}
.p9-telegram-webhook{border-radius:2px;background:#0e1421}
.p9-telegram-chat-list span{border-radius:2px}
.p9-telegram-preview,.p9-telegram-logs{border-radius:4px}
.p9-telegram-logs>header,.p9-telegram-logs>footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.p9-telegram-logs>header h4{margin:0}
.p9-telegram-logs .p9-live-dot{width:7px;height:7px;border-radius:50%;background:#4edea3;box-shadow:0 0 8px #4edea3}
.p9-telegram-logs .p9-log-row{grid-template-columns:minmax(0,1fr) auto;background:#101522;border-radius:3px;padding:8px}
.p9-telegram-logs .p9-log-row b{font-size:10px;color:#d5deef}
.p9-telegram-logs .p9-log-row time{font:10px Consolas,"Segoe UI",Arial,sans-serif;color:#8793a8}
.p9-telegram-logs .p9-log-row small{grid-column:1/-1;font:10px Consolas,"Segoe UI",Arial,sans-serif;color:#9eabc0}
.p9-telegram-logs>footer{margin-top:2px;font-size:10px;color:#9eabc0}
.p9-telegram-logs>footer button{padding:4px 6px;color:#8eb7ff;background:transparent;border:0;white-space:nowrap}
.settings-content:has(.p9-telegram){padding-bottom:44px;background:#0e1321;color:#dee2f6;border-color:#252a39}
@media(max-width:760px){.p9-telegram-columns{grid-template-columns:minmax(0,1fr)}.p9-telegram-main{border-left-width:3px;padding-left:6px}}

#appDialog.company-settings-dialog{width:min(865px,calc(100vw - 32px));max-width:none;max-height:78vh;padding:0;overflow:hidden}
#appDialog.company-settings-dialog>form{display:flex;max-height:78vh;flex-direction:column}
#appDialog.company-settings-dialog>form>header{min-height:0;padding:8px 22px}
#appDialog.company-settings-dialog #dialogEyebrow{margin:0 0 2px}
#appDialog.company-settings-dialog #dialogTitle{margin:0;line-height:1.2}
#appDialog.company-settings-dialog #dialogBody{min-height:0;max-height:none;flex:1 1 auto;overflow:auto;padding:10px 22px}
#appDialog.company-settings-dialog #dialogBody .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
#appDialog.company-settings-dialog #dialogBody .field{min-width:0}
#appDialog.company-settings-dialog #dialogBody .field input{width:100%;min-width:0;min-height:38px}
#appDialog.company-settings-dialog #dialogFooter{min-height:53px;flex:0 0 auto;padding:7px 22px}
@media(max-width:760px){#appDialog.company-settings-dialog{width:calc(100vw - 24px);max-height:94svh}#appDialog.company-settings-dialog>form{max-height:94svh}#appDialog.company-settings-dialog>form>header{padding:8px 12px}#appDialog.company-settings-dialog #dialogBody{padding:10px 12px}#appDialog.company-settings-dialog #dialogFooter{padding:7px 12px}#appDialog.company-settings-dialog #dialogBody .form-grid{grid-template-columns:minmax(0,1fr);gap:9px}}

.company-settings-editor{display:flex;min-width:0;flex-direction:column;gap:9px}
.company-editor-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line)}
.company-editor-tabs button{flex:0 0 auto;min-height:33px;padding:6px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:11px;white-space:nowrap}
.company-editor-tabs button.active{border-bottom-color:#28c7e7;background:#18243a;color:#47c8f1}
.company-editor-panel[hidden]{display:none}
.company-editor-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px;padding:0 0 6px;border-bottom:1px solid var(--line);font-size:10px}
.company-editor-panel>header span{color:var(--muted);font-size:9px}
#appDialog.company-settings-dialog{height:min(558px,calc(100vh - 24px));max-height:78vh}
#appDialog.company-settings-dialog>form{max-height:78vh}
#appDialog.company-settings-dialog>form>header{padding:6px 22px}
#appDialog.company-settings-dialog #dialogEyebrow{margin:0 0 1px}
#appDialog.company-settings-dialog #dialogTitle{font-size:16px}
#appDialog.company-settings-dialog #dialogBody{padding:8px 18px}
#appDialog.company-settings-dialog #dialogBody .form-grid{gap:4px 14px}
#appDialog.company-settings-dialog #dialogBody .field input,#appDialog.company-settings-dialog #dialogBody .field select{min-height:30px;height:30px;padding:5px 8px}
#appDialog.company-settings-dialog #dialogFooter{min-height:48px;padding:5px 18px}
.company-editor-check{display:flex;align-items:center;justify-content:space-between}
@media(max-width:760px){#appDialog.company-settings-dialog{height:auto;max-height:94svh}#appDialog.company-settings-dialog>form{max-height:94svh}#appDialog.company-settings-dialog>form>header{padding:6px 12px}#appDialog.company-settings-dialog #dialogBody{padding:8px 12px}#appDialog.company-settings-dialog #dialogFooter{padding:5px 12px}}

#appDialog.company-settings-dialog .company-editor-tabs{display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;overflow-x:auto}
#appDialog.company-settings-dialog .company-editor-tabs button{display:inline-flex;width:auto;min-width:max-content;flex:0 0 auto;align-items:center;justify-content:center;text-align:center}

#appDialog.company-settings-dialog #dialogBody .field input,#appDialog.company-settings-dialog #dialogBody .field select{background:#fff;color:#243248;border-color:#cbd5e1}
#appDialog.company-settings-dialog #dialogBody .field input:focus,#appDialog.company-settings-dialog #dialogBody .field select:focus{border-color:#2563eb}
#appDialog.company-settings-dialog #dialogFooter button.primary{background:#059669;border-color:#059669;color:#fff}

body[data-settings-section="identity"] .settings-layout{grid-template-columns:minmax(0,1fr);gap:0}
body[data-settings-section="identity"] .settings-sidebar,body[data-settings-section="identity"] .settings-mobile-picker{display:none!important}
body[data-settings-section="identity"] .settings-content{grid-column:1/-1;width:100%;max-width:none;max-height:calc(100vh - 125px);overflow:auto;padding:10px 12px 86px}
body[data-settings-section="identity"] .page-head .actions{position:fixed!important;left:calc(var(--sidebar) + 14px);right:14px;bottom:20px;z-index:80;width:auto;justify-content:flex-end}
.identity-reference-head{min-height:58px}.identity-edition{padding:6px 10px;border:1px solid #2563eb55;border-radius:5px;background:#152238;color:#60a5fa;font-size:10px;letter-spacing:.08em;white-space:nowrap}.identity-db-status{margin-left:auto;color:#34d399;font-size:10px;white-space:nowrap}
@media(max-width:760px){body[data-settings-section="identity"] .settings-content{max-height:calc(100svh - 140px);padding:8px 8px 82px}body[data-settings-section="identity"] .page-head .actions{left:12px;right:12px;bottom:30px}.identity-reference-head{align-items:flex-start;flex-wrap:wrap}.identity-reference-head>div{flex:1}.identity-edition{margin-left:39px}.identity-db-status{margin-left:auto}}

.identity-reference-head>span.identity-db-status{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;flex:0 0 auto;padding:6px 9px;border:1px solid #1f293d;border-radius:5px;background:#0b101d;color:#34d399;font-size:10px;white-space:nowrap}
.identity-reference-head .identity-edition{flex:0 0 auto}
.identity-option-card input.switch{width:42px;height:22px;min-width:42px;min-height:22px;margin:0;transform:none}
@media(max-width:560px){.identity-reference-head>span.identity-db-status{margin:0 0 0 39px}.identity-reference-head .identity-edition{margin-left:0}.identity-reference-head{gap:7px}}

@media(min-width:761px){.identity-reference-head{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto auto;align-items:center}.identity-reference-head>div{grid-column:2}.identity-reference-head>span.identity-db-status{width:max-content;max-width:150px}.identity-reference-head .identity-edition{grid-column:auto}}
@media(max-width:760px){.identity-reference-head{display:flex}}

.identity-reference-head .identity-db-status{display:inline-flex;align-items:center;width:max-content;height:auto;flex:0 0 auto;margin:0;padding:6px 9px;border:1px solid #1f293d;border-radius:5px;background:#0b101d;color:#34d399;font-size:10px;font-weight:500;white-space:nowrap}

.finance-table tr.finance-date-group>td{padding:0!important;background:var(--surface-2,#1b2434);border-bottom:1px solid var(--border,#303a4e)}
.finance-date-toggle{display:flex;align-items:center;gap:18px;width:100%;min-height:38px;padding:7px 12px;border:0;border-radius:0;background:transparent;color:var(--text,#e5e7eb);text-align:left;cursor:pointer}
.finance-date-toggle strong{min-width:104px;font-size:12px}
.finance-date-toggle span{color:var(--muted,#9ca3af);font-size:11px}
.finance-date-group.expanded>td{background:var(--active-bg,#253148)}
.finance-date-toggle:focus-visible{outline:2px solid var(--primary,#3b82f6);outline-offset:-2px}
@media(max-width:760px){.finance-date-toggle{align-items:flex-start;flex-direction:column;gap:4px}.finance-date-toggle strong{min-width:0}}


.vehicle-maintenance-metrics{padding:14px;margin:14px 0 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 4px 14px rgba(35,40,72,.04)}.vehicle-maintenance-metrics article{display:grid;align-content:start;gap:8px;padding:12px 10px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.vehicle-maintenance-metrics small{color:var(--ink);font-size:11px;font-weight:700}.vehicle-maintenance-metrics strong{color:var(--brand);font-size:22px;font-weight:800}

.customer-picker-table-wrap{max-height:min(52vh,420px);overflow:auto}.customer-picker-table-wrap tbody tr{cursor:pointer}.customer-picker-table-wrap tbody tr.selected{background:#DBEAFE!important;color:#1E40AF}.customer-picker-actions{display:flex;gap:10px;justify-content:flex-start;margin-top:14px}.customer-picker-actions button{min-height:40px}@media(max-width:760px){.customer-picker-table-wrap{max-height:46vh}.customer-picker-actions{flex-wrap:wrap}.customer-picker-actions button{flex:1 1 145px}}

dialog.customer-picker-dialog{overflow:visible}dialog.customer-picker-dialog #contextMenu{z-index:320}
body[data-page="report-templates"] [data-template-row]:focus-visible{outline:2px solid var(--brand,#3b82f6);outline-offset:-2px}
dialog.app-lock-dialog{width:min(400px,calc(100vw - 32px));min-height:300px}dialog.app-lock-dialog .dialog-body{display:grid;align-content:center;padding:30px}dialog.app-lock-dialog .app-lock-web{text-align:center;display:grid;gap:14px}dialog.app-lock-dialog .app-lock-icon{font-size:32px;color:var(--brand)}dialog.app-lock-dialog .app-lock-web h2{margin:0;color:var(--ink);font-size:20px}dialog.app-lock-dialog .app-lock-web .field{text-align:left}
.p9-transaction-detail{padding:4px 2px}.p9-transaction-detail header{display:grid;gap:8px;text-align:center;padding:18px;background:#171d2d;border:1px solid #202d45;border-radius:10px}.p9-transaction-detail header span{color:#aebbd0;font-size:12px;font-weight:700;text-transform:uppercase}.p9-transaction-detail header strong{color:#4edea3;font-size:30px;font-weight:800}.p9-transaction-detail dl{display:grid;gap:10px;margin:18px 4px}.p9-transaction-detail dl div{display:grid;grid-template-columns:minmax(100px,30%) 1fr;gap:12px}.p9-transaction-detail dt{color:#8b97ad;font-size:12px;font-weight:600}.p9-transaction-detail dd{margin:0;color:#dee2f6;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.p9-project-lifecycle-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.p9-project-lifecycle-actions button{min-height:30px;padding:4px 9px;background:#171d2d;color:#c2cce0;border:1px solid #202d45;border-radius:5px;font-size:11px;font-weight:700;cursor:pointer}.p9-project-lifecycle-actions button:hover{background:#202d45}.p9-project-lifecycle-actions button:disabled{opacity:.45;cursor:not-allowed}.p9-project-lifecycle-actions button.danger{color:#ffc4c8;border-color:#75434a}.p9-project-action-confirm{margin:8px 2px;color:#dee2f6;line-height:1.6;overflow-wrap:anywhere}@media(max-width:900px){.p9-project-lifecycle-actions{flex-wrap:wrap;margin-left:0}}
.p9-project-exchange-rate[hidden]{display:none}
.customer-flags{display:flex;flex-wrap:wrap;gap:8px}.customer-flags label{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--line);border-radius:4px;background:var(--surface-2);font-size:11px}.customer-flags input{accent-color:var(--brand)}
.customer-location-tools>div:first-child{display:flex;flex-wrap:wrap;gap:6px}.customer-location-tools p{margin:6px 0;color:var(--muted);font-size:11px}.customer-location-tools [data-customer-location-results]{display:grid;gap:4px}.customer-location-result{text-align:left;white-space:normal;padding:7px 9px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);color:var(--ink)}.customer-location-result:hover{border-color:var(--brand)}

.customer-location-map{display:grid;gap:8px;margin-top:8px}.customer-location-map iframe{display:block;width:100%;height:min(420px,55vh);min-height:300px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}.customer-location-map [data-customer-map-apply]{justify-self:end}
.service-accessory-options{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.service-fault-note-toggles [data-service-fault-note-options]{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.service-fault-note-toggles button[aria-pressed="true"]{border-color:#2563eb;background:#172b49;color:#93c5fd}
@media(max-width:800px){.service-accessory-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.service-photo-selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.service-photo-selected-item{position:relative;display:grid;grid-template-columns:42px minmax(40px,1fr) 22px;align-items:center;gap:5px;width:150px;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);font-size:10px}.service-photo-selected-item img{width:42px;height:36px;object-fit:cover;border-radius:4px}.service-photo-selected-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.service-photo-selected-item button{padding:0;border:0;background:transparent;color:var(--ink);font-size:18px}.service-photo-drop.dragging{outline:2px solid var(--brand);outline-offset:2px}
.customer-address-combo{position:fixed;z-index:1200;max-height:220px;overflow:auto;padding:4px;border:1px solid var(--line,#263449);border-radius:8px;background:var(--panel,#111b2b);box-shadow:0 12px 28px rgba(0,0,0,.32);color:var(--text,#e8eef7);font-size:13px}
.customer-address-combo[hidden]{display:none}
.project-customer-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.project-customer-control button{min-height:40px;white-space:nowrap}
@media(max-width:560px){.project-customer-control{grid-template-columns:1fr}.project-customer-control button{width:100%}}
.customer-address-combo [role=option]{padding:8px 10px;border-radius:5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-address-combo [role=option]:hover,.customer-address-combo [role=option][aria-selected=true]{background:var(--surface-alt,#1a2940);color:var(--accent,#70b7ff)}
.quick-note-status-editor{display:flex;align-items:center;gap:10px;min-height:32px;color:var(--success);font-weight:700}
.quick-note-status-editor .switch{flex:0 0 42px}
#appDialog.quick-note-editor-dialog{width:min(680px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));max-width:680px;max-height:calc(100dvh - 32px)}
#appDialog.quick-note-editor-dialog #dialogBody{display:block;padding:24px 30px;overflow:auto}
#appDialog.quick-note-editor-dialog .quick-note-editor>h3{margin:0 0 8px;font-size:20px;font-weight:800}
#appDialog.quick-note-editor-dialog .quick-note-editor>p{margin:0 0 16px;color:var(--muted);line-height:1.5}
#appDialog.quick-note-editor-dialog .quick-note-editor-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#appDialog.quick-note-editor-dialog .quick-note-editor-fields>.field{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);gap:18px;align-items:center}
#appDialog.quick-note-editor-dialog .quick-note-editor-fields>.field>label{margin:0}
#appDialog.quick-note-editor-dialog .quick-note-editor-fields>.field input:not(.switch){min-height:42px;height:42px}
#appDialog.quick-note-editor-dialog .quick-note-status-editor{min-height:42px}
@media(max-width:560px){#appDialog.quick-note-editor-dialog #dialogBody{padding:18px}#appDialog.quick-note-editor-dialog .quick-note-editor-fields>.field{grid-template-columns:1fr;gap:6px}}
.tax-exchange-settings{display:flex;flex-direction:column;gap:18px}
.tax-exchange-settings>header h3{margin:0 0 8px;font-size:24px;font-weight:900}
.tax-exchange-settings>header p{margin:0;line-height:1.5}
.tax-exchange-card{padding:18px 16px}
.tax-exchange-card h4{margin:0 0 16px;font-size:16px;font-weight:800}
.tax-vat-row{display:grid;grid-template-columns:minmax(140px,1fr) 260px minmax(220px,auto);gap:12px;align-items:center}
.tax-vat-row>label{font-weight:650}
.tax-vat-input,.tax-rate-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.tax-vat-input input,.tax-rate-input input{width:100%;min-width:0;height:38px;padding:0 12px;border:0;background:transparent;color:var(--ink);text-align:right;font-weight:750}
.tax-vat-input span,.tax-rate-input span{padding:0 12px;color:var(--muted);font-weight:700}
.tax-rate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tax-rate-grid>.field{min-width:0}
.tax-rate-grid>.field>label{display:block;margin-bottom:6px}
.tax-rate-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.tax-rate-actions button,.tax-vat-row button{min-height:42px}
#taxRateStatus{min-height:32px;margin:14px 0 0}
@media(max-width:760px){.tax-vat-row{grid-template-columns:1fr}.tax-vat-row button{width:100%}.tax-rate-grid{grid-template-columns:minmax(0,1fr)}}

#appDialog.location-picker-dialog{width:min(900px,calc(100vw - 32px));height:min(700px,calc(100vh - 32px));max-width:900px;max-height:calc(100vh - 32px)}
.web-location-picker{display:flex;min-height:0;flex-direction:column;gap:9px}
.web-location-search{display:flex;gap:8px}
.web-location-search input{min-width:0;flex:1;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.web-location-picker iframe{width:100%;height:460px;min-height:300px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.web-location-picker>p{margin:0;color:var(--muted);font-weight:600}
.web-location-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-variant-numeric:tabular-nums}
.web-location-results{display:flex;max-height:160px;flex-direction:column;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.web-location-results button{padding:9px 11px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}
.web-location-results button:hover,.web-location-results button:focus{background:var(--surface-2)}
@media(max-width:760px){#appDialog.location-picker-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px)}.web-location-picker iframe{height:48vh;min-height:250px}.web-location-search{gap:5px}.web-location-search button,.web-location-tools button{padding:8px 10px}}
#appDialog.offer-acceptance-dialog{width:min(620px,calc(100vw - 28px));height:min(450px,calc(100vh - 28px));max-width:620px;max-height:calc(100vh - 28px)}
#appDialog.offer-acceptance-dialog .dialog-body{padding:16px;max-height:none}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .notice{margin:0 0 14px;padding:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;color:var(--ink);line-height:1.5}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .form-grid{grid-template-columns:1fr;gap:10px}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .field{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr);align-items:center;gap:12px}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .field.full{grid-column:auto}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .field label{font-size:13px;color:var(--ink);font-weight:600}
#appDialog.offer-acceptance-dialog .offer-acceptance-form .field input,#appDialog.offer-acceptance-dialog .offer-acceptance-form .field select{height:38px;padding:7px 10px;border-radius:8px}
#appDialog.offer-acceptance-dialog #offerAcceptanceRemaining{font-size:16px;font-weight:800;color:var(--danger)}
@media(max-width:600px){#appDialog.offer-acceptance-dialog{width:calc(100vw - 16px);height:auto;max-height:94vh}#appDialog.offer-acceptance-dialog .offer-acceptance-form .field{grid-template-columns:1fr;gap:5px}}

/* Bank card editor parity */
dialog.bank-card-editor-dialog .bank-card-active{grid-column:2;padding-top:0}dialog.bank-card-editor-dialog .bank-card-active label{display:flex;align-items:center;gap:8px}dialog.bank-card-editor-dialog .bank-card-active input{width:16px;margin:0}
dialog.bank-card-editor-dialog .bank-card-form-title{grid-column:1/-1;margin:0 0 2px;font-size:16px}
dialog.scheduled-alert-editor-dialog .scheduled-alert-active{grid-column:2;padding-top:0}dialog.scheduled-alert-editor-dialog .scheduled-alert-active label{display:flex;align-items:center;gap:8px}dialog.scheduled-alert-editor-dialog .scheduled-alert-active input{width:16px;margin:0}.bank-alert-detail h3{margin:16px 0 10px;font-size:16px}
dialog.bank-card-editor-dialog .bank-card-money{position:relative}dialog.bank-card-editor-dialog .bank-card-money input{width:100%;padding-right:48px}dialog.bank-card-editor-dialog .bank-card-money span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px;pointer-events:none}

.bank-detail-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:-4px 0 14px}.bank-detail-tabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:10px 14px;font-weight:600}.bank-detail-tabs button:hover,.bank-detail-tabs button.active{color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,transparent)}.bank-detail-tabs button.active{border-bottom-color:var(--brand)}.bank-detail-panel[hidden]{display:none!important}.bank-detail-panel h3{margin:14px 0 10px;font-size:16px}.bank-transaction-filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin:10px 0}.bank-transaction-filters input,.bank-transaction-filters select{min-width:0;width:100%;min-height:36px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.bank-transaction-filters label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.bank-transaction-filters label input{width:16px;min-height:16px}.bank-tx-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;color:var(--muted);font-size:12px}.bank-tx-pagination label{display:flex;align-items:center;gap:6px}.bank-tx-pagination select{min-height:32px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink)}@media(max-width:760px){.bank-detail-tabs button{padding:9px 10px;font-size:11px}.bank-transaction-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-tx-pagination{flex-wrap:wrap;justify-content:center}}

.bank-account-detail-dialog .dialog-body{max-height:calc(100vh - 174px);overflow:auto}
.bank-account-title-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface-alt)}.bank-account-title-card>div{display:flex;flex-direction:column;gap:4px}.bank-account-title-card strong{font-size:18px;color:var(--ink)}.bank-account-title-card small{color:var(--muted);font-size:13px}.bank-account-title-card>span{padding:6px 16px;border-radius:16px;font-weight:700}.bank-account-title-card .active{background:var(--success);color:#fff}.bank-account-title-card .inactive{background:var(--danger);color:#fff}

bank-account-detail-dialog{max-height:calc(100vh - 28px)}.bank-account-detail-dialog form{display:flex;flex-direction:column;height:100%}.bank-account-detail-dialog .dialog-body{flex:1;min-height:0;max-height:none;overflow:auto}.bank-transaction-filters{grid-template-columns:minmax(90px,1.2fr) minmax(90px,1fr) auto minmax(100px,1fr) minmax(100px,1fr) minmax(90px,.9fr) minmax(90px,.9fr) auto}@media(max-width:1100px){.bank-transaction-filters{grid-template-columns:repeat(4,minmax(100px,1fr))}}

.loan-detail-tabs{margin:0 0 18px}.loan-detail-content{min-height:420px;padding:8px 4px}.loan-detail-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}.loan-detail-banner div{display:grid;gap:8px}.loan-detail-banner strong{font-size:18px}.loan-detail-banner span,.loan-detail-docs small{color:var(--muted)}.loan-detail-banner>b{padding:5px 15px;border-radius:15px;background:var(--success);color:#fff}.loan-detail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 40px;padding:26px 12px}.loan-detail-metrics section{display:grid;gap:8px}.loan-detail-metrics small{color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase}.loan-detail-metrics strong{font-size:16px}.loan-detail-empty{min-height:330px;display:grid;place-content:center;color:var(--muted);font-weight:600}.loan-detail-docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}.loan-detail-docs article{min-height:140px;padding:16px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;gap:10px}.loan-detail-docs span{color:var(--muted)}

.loan-wizard-dialog{height:min(820px,calc(100vh - 32px));max-height:calc(100vh - 28px)}.loan-wizard-dialog .dialog-body{max-height:calc(100vh - 210px);overflow:auto}.loan-wizard-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 22px}.loan-wizard-stepper span{display:flex;align-items:center;gap:9px;padding:10px;border-bottom:2px solid var(--line);color:var(--muted);font-size:12px}.loan-wizard-stepper b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--surface-2);font-size:12px}.loan-wizard-stepper .active{border-color:var(--brand);color:var(--ink)}.loan-wizard-stepper .complete b{background:var(--success);color:#fff}.loan-wizard-back{margin:0 0 16px}.loan-wizard-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr);gap:24px}.loan-wizard-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.loan-wizard-readonly{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;padding:14px;border:1px solid var(--line);border-radius:9px}.loan-wizard-readonly span,.loan-wizard-aside small{color:var(--muted);font-size:12px}.loan-wizard-aside,.loan-wizard-preview{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.loan-wizard-aside strong,.loan-wizard-preview strong{font-size:18px}.loan-wizard-preview{background:linear-gradient(145deg,#1b2a48,#182033)}.loan-wizard-preview h3{margin:0}.loan-wizard-documents{display:grid;grid-template-columns:1fr 1fr;gap:22px}.loan-document-zones{display:grid;gap:16px}.loan-document-zone{display:grid;gap:10px;padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--ink);cursor:pointer}.loan-document-zone>small{color:var(--muted);font-size:12px}.loan-document-zone input[type=file]{max-width:100%;font-size:12px;color:var(--muted)}.loan-document-zone input[type=file]::file-selector-button{border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--ink);padding:8px 10px;margin-right:10px;cursor:pointer}.loan-document-list,.loan-wizard-summary article{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--line);border-radius:10px}.loan-document-list article{display:flex;align-items:center;justify-content:space-between;gap:10px}.loan-document-list small{display:block;color:var(--muted)}.loan-wizard-summary{display:grid;gap:16px}.loan-wizard-summary article h3{margin:0}.loan-summary-grid{display:grid;grid-template-columns:1fr auto;gap:10px}.loan-summary-grid span{color:var(--muted)}.loan-detail-docs a{color:var(--brand-2);font-weight:700}@media(max-width:800px){.loan-wizard-grid,.loan-wizard-documents{grid-template-columns:1fr}.loan-wizard-fields{grid-template-columns:1fr}.loan-wizard-stepper{gap:2px}.loan-wizard-stepper span{flex-direction:column;align-items:flex-start;padding:5px;font-size:10px}}
.loan-document-zone.dragging{border-color:var(--brand);background:var(--surface-2);transform:scale(1.01)}.loan-document-preview{color:var(--brand-2);font-weight:700;text-decoration:underline}

#appDialog.advanced-service-filter-dialog{width:min(440px,calc(100vw - 28px))}#appDialog.advanced-service-filter-dialog .advanced-service-filter-form{grid-template-columns:minmax(0,1fr)}

.service-report-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:18px}.service-report-tests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.service-report-test{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.service-report-test select{max-width:150px}.service-report-qr{display:block;width:120px;height:120px;object-fit:contain;border:1px solid var(--line);border-radius:8px}.service-report-layout canvas{display:block;width:300px;max-width:100%;height:150px;border:1px solid #bdc3c7;border-radius:8px;background:#fff;touch-action:none}
@media(max-width:760px){.service-report-layout,.service-report-tests{grid-template-columns:1fr}}
@media print{body.service-form-open dialog.service-print-dialog .dialog-footer{display:none!important}body.service-form-open dialog.service-print-dialog .service-report-pane[hidden]{display:block!important}body.service-form-open dialog.service-print-dialog .service-report-pane:not([hidden]){display:block!important}.service-report-layout{grid-template-columns:1fr 1fr!important}.service-report-test{break-inside:avoid}}
.technician-panel-tabs{flex-direction:row;gap:4px;margin-bottom:12px;white-space:nowrap}.technician-panel-tabs .tab{flex:0 0 auto;padding:8px 10px;font-size:11px}.technician-panel-pane{min-width:0}.technician-panel-section-head{display:grid;gap:3px;margin:0 0 10px}.technician-test-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.technician-test-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.technician-test-item input[type="checkbox"]{width:18px;height:18px;min-height:18px;flex:none}.technician-history-panel{max-height:360px;margin-top:8px;overflow:auto}
.technician-panel-overview{display:grid;gap:8px;margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-alt)}.technician-service-summary{display:flex;align-items:center;gap:10px 24px;flex-wrap:wrap;color:var(--text);font-size:12px}.technician-service-summary strong{margin-right:4px;color:var(--muted);font-size:10px}.technician-workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.technician-workflow-steps li{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:12px;font-weight:650}.technician-workflow-steps li>span{display:grid;place-items:center;width:21px;height:21px;flex:none;border-radius:50%;background:var(--surface);font-size:11px}.technician-workflow-steps li.active{border-color:var(--primary);color:var(--text)}.technician-workflow-steps li.active>span,.technician-workflow-steps li.complete>span{background:var(--primary);color:#fff}.technician-workflow-steps li.complete{color:var(--text)}
.technician-device-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 14px;padding-top:7px;border-top:1px solid var(--line)}.technician-device-details span{display:grid;gap:3px;min-width:0;color:var(--text);font-size:12px;overflow-wrap:anywhere}.technician-device-details strong{color:var(--muted);font-size:10px}
.technician-quick-notes{grid-column:1/-1;display:grid;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.technician-quick-notes-title{color:var(--muted);font-size:10px;font-weight:700}.technician-quick-note-options{display:flex;flex-wrap:wrap;gap:5px}.technician-quick-note-options button{min-height:26px;padding:4px 8px;font-size:10px;white-space:normal}.technician-quick-note-options button.is-selected{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 20%,var(--surface));color:var(--ink)}
@media(max-width:760px){.technician-test-grid{grid-template-columns:1fr}.technician-device-details{grid-template-columns:repeat(2,minmax(0,1fr))}.technician-panel-tabs .tab{padding:8px 7px;font-size:10px}}
.technician-station-button{margin-left:auto;flex:0 0 auto;min-height:32px;padding:6px 10px;font-size:11px}.technician-station-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.technician-station-grid section{display:grid;gap:6px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-alt)}.technician-station-grid small{color:var(--muted);font-size:10px;font-weight:700}.technician-station-grid strong{overflow-wrap:anywhere}.technician-station-grid .mono{font-family:var(--mono-font,monospace);font-variant-numeric:tabular-nums}
@media(max-width:560px){#appDialog:has(.technician-panel-tabs)>form>header{position:relative;flex-wrap:wrap;align-items:flex-start;padding:12px 52px 8px 14px}#appDialog:has(.technician-panel-tabs)>form>header>#dialogClose{position:absolute;top:10px;right:10px}.technician-panel-tabs{flex:1 1 100%;flex-wrap:wrap}.technician-device-details{grid-template-columns:1fr}.technician-workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.technician-station-button{margin-left:0}.technician-station-grid{grid-template-columns:1fr}}

.image-crop-workspace{display:grid;gap:12px}.image-crop-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.image-crop-toolbar input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.image-crop-stage{display:grid;place-items:center;min-height:320px;max-height:58vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#12121f;padding:12px}.image-crop-stage canvas{display:block;max-width:100%;max-height:54vh;object-fit:contain;transform-origin:center;cursor:crosshair;touch-action:none}.image-crop-stage canvas[hidden]{display:none}

.label-editor-toolbar{display:grid;grid-template-columns:minmax(180px,260px) minmax(220px,1fr);gap:10px;margin-bottom:12px}.label-editor .table-wrap{max-height:60vh;overflow:auto}.label-editor td{vertical-align:middle}.label-editor td:nth-child(2){min-width:180px}.label-editor td:nth-child(3){min-width:220px}.label-editor td:nth-child(5){white-space:nowrap}
@media(max-width:760px){.label-editor-toolbar{grid-template-columns:1fr}}
.loan-wizard-dialog #dialogForm{display:flex;height:100%;flex-direction:column}
.loan-wizard-dialog #dialogForm>header{box-sizing:border-box;height:60px;min-height:60px;padding:10px 24px}
.loan-wizard-dialog #dialogForm>header>div{display:flex;align-items:center;gap:14px}
.loan-wizard-dialog #dialogForm>header>div::before{content:"";display:block;box-sizing:border-box;flex:0 0 38px;height:38px;border:1px solid #315574;border-radius:50%;background:#101a2b url("assets/ayec-logo.png") center 30%/58px 58px no-repeat}
.loan-wizard-dialog #dialogForm>header .eyebrow{display:none}
.loan-wizard-dialog #dialogForm>header h2{margin:0;font-size:18px;font-weight:700}
.loan-wizard-dialog .loan-wizard-stepper{display:none}
.loan-wizard-dialog #dialogBody{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;padding:50px 42px 24px}
.loan-wizard-dialog .loan-wizard-documents{gap:20px}
.loan-wizard-dialog .loan-wizard-document-heading{grid-column:1/-1;margin:0 0 12px}
.loan-wizard-dialog .loan-wizard-document-heading h2{margin:0;font-size:24px;line-height:1.2}
.loan-wizard-dialog .loan-wizard-document-heading p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.loan-wizard-dialog .loan-document-zone{min-height:128px;padding:12px 18px}
.loan-wizard-dialog #dialogFooter{display:flex;flex:0 0 70px;justify-content:space-between;box-sizing:border-box;min-height:70px;padding:10px 24px}
.loan-wizard-dialog #dialogFooter #dialogCancel:disabled{opacity:.55;cursor:default}

.loan-wizard-dialog #dialogFooter #dialogCancel{width:120px;height:42px}
.loan-wizard-dialog #dialogFooter #dialogSubmit{width:140px;height:42px}

.loan-wizard-dialog #dialogBody{padding-top:46px}
.loan-wizard-dialog .loan-document-zones{gap:20px}
.loan-wizard-dialog .loan-document-zone{padding:10px 18px}
.loan-wizard-dialog .loan-document-list{box-sizing:border-box;height:478px;margin-top:37px}

.loan-wizard-dialog .loan-document-zones,.loan-wizard-dialog .loan-document-list{align-self:start}

.loan-wizard-dialog .loan-document-zones .field{gap:19px}
.loan-wizard-dialog .loan-document-zones .field>label{box-sizing:border-box;display:flex;align-items:center;height:128px}
.loan-wizard-dialog .loan-document-zones .field>textarea{box-sizing:border-box;height:72px;min-height:72px;max-height:72px}

.loan-wizard-dialog .loan-wizard-step-heading{grid-column:1/-1;margin:0 0 8px}
.loan-wizard-dialog .loan-wizard-step-heading h2{margin:0;font-size:24px;line-height:1.2}
.loan-wizard-dialog .loan-wizard-step-heading p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.loan-wizard-dialog .loan-wizard-grid.loan-wizard-general{grid-template-columns:minmax(0,1fr)}
.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields{grid-template-columns:minmax(0,1fr)}
.loan-wizard-dialog .loan-wizard-grid.loan-wizard-financial{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px}
.loan-wizard-dialog .loan-wizard-financial .loan-wizard-fields{grid-template-columns:minmax(0,1fr)}
.loan-wizard-dialog .loan-wizard-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.loan-wizard-dialog .loan-wizard-summary .loan-wizard-step-heading{grid-column:1/-1;margin:0}
.loan-wizard-dialog .loan-wizard-summary article:nth-of-type(3){grid-column:1/-1}

/* Loan wizard desktop field and installment alignment. */
.loan-wizard-dialog .loan-wizard-grid.loan-wizard-general{grid-template-columns:minmax(0,1fr);gap:0}
.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields{grid-template-columns:minmax(0,1fr);gap:15px;margin-top:28px}
.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields>.field{display:grid;grid-template-columns:180px minmax(0,1fr);gap:11px;align-items:center}
.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields>.field>label{margin:0}
.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields>.field>input,.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields>.field>select{height:40px;min-height:40px;width:calc(100% - 3px)}
.loan-wizard-dialog .loan-wizard-grid.loan-wizard-financial{grid-template-columns:613px 588px;gap:30px;align-items:start}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields{grid-template-columns:minmax(0,1fr);gap:15px;margin-top:27px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields>.field{display:grid;grid-template-columns:210px minmax(0,1fr);gap:11px;align-items:center}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields>.field>label{margin:0}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields>.field>input:not([type=radio]){width:100%;height:63px;min-height:63px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields>.field:has(input[type=date])>input{height:40px;min-height:40px}
.loan-wizard-dialog .loan-wizard-preview{height:606px;margin-top:-5px;box-sizing:border-box}
.loan-wizard-dialog .loan-wizard-summary{grid-template-columns:1fr 1fr;gap:10px}
.loan-wizard-dialog .loan-wizard-summary .loan-wizard-step-heading{grid-column:1/-1;margin:0 0 3px}
.loan-wizard-dialog .loan-wizard-summary article{min-width:0;padding:16px;gap:8px}
.loan-wizard-dialog .loan-wizard-summary article:nth-of-type(3){grid-column:1/-1}
.loan-wizard-dialog .loan-installment-title{grid-column:1/-1;margin-top:2px}
.loan-wizard-dialog .loan-installment-title h3{margin:0;font-size:15px}
.loan-wizard-dialog .loan-installment-table{grid-column:1/-1;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:9px}
.loan-wizard-dialog .loan-installment-table table{width:100%;border-collapse:collapse;min-width:620px}
.loan-wizard-dialog .loan-installment-table th,.loan-wizard-dialog .loan-installment-table td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap;font-size:12px}
.loan-wizard-dialog .loan-installment-table th{position:sticky;top:0;background:var(--surface-2);z-index:1}
@media(max-width:800px){.loan-wizard-dialog .loan-wizard-grid.loan-wizard-financial{grid-template-columns:1fr;gap:16px}.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields>.field,.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields>.field{grid-template-columns:1fr;gap:6px}.loan-wizard-dialog .loan-wizard-preview{height:auto;margin-top:0}.loan-wizard-dialog .loan-wizard-summary{grid-template-columns:1fr}.loan-wizard-dialog .loan-installment-title,.loan-wizard-dialog .loan-installment-table{grid-column:1}}

.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields{margin-top:44px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields{margin-top:91px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-interest-field{display:flex;align-items:center;gap:8px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-interest-field>input[type=number]{box-sizing:border-box;width:177px;height:60px;min-height:60px;flex:0 0 177px}
.loan-wizard-dialog .loan-wizard-financial-form .loan-interest-field>label{display:flex;align-items:center;gap:4px;margin:0;white-space:nowrap;font-size:12px}
.loan-wizard-dialog .loan-wizard-summary{position:relative;top:-23px;margin-left:-11px;margin-right:-11px;row-gap:10px}
.loan-wizard-dialog .loan-wizard-summary article{padding:14px;gap:4px}
.loan-wizard-dialog .loan-wizard-summary article p{margin:0;line-height:1.35;font-size:12px}
.loan-wizard-dialog .loan-wizard-summary article h3{font-size:14px;line-height:1.3}
.loan-wizard-dialog .loan-summary-grid{gap:5px 10px;font-size:12px;line-height:1.25}
.loan-wizard-dialog .loan-installment-title{margin-top:41px}
.loan-wizard-dialog .loan-wizard-summary article:nth-of-type(1),.loan-wizard-dialog .loan-wizard-summary article:nth-of-type(2){min-height:175px;box-sizing:border-box}
.loan-wizard-dialog .loan-wizard-summary article:nth-of-type(3){min-height:115px;box-sizing:border-box}
@media(max-width:800px){.loan-wizard-dialog .loan-wizard-general .loan-wizard-fields,.loan-wizard-dialog .loan-wizard-financial-form .loan-wizard-fields{margin-top:18px}.loan-wizard-dialog .loan-wizard-financial-form .loan-interest-field{flex-wrap:wrap;min-width:0}.loan-wizard-dialog .loan-wizard-financial-form .loan-interest-field>input[type=number]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;flex:1 1 100%}.loan-wizard-dialog .loan-wizard-summary{top:0;margin-left:0;margin-right:0}.loan-wizard-dialog .loan-wizard-summary article{min-height:0}}

.technician-station-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0006}.technician-station-dialog::backdrop{background:#020617;backdrop-filter:none}.technician-station-dialog form{display:flex;flex-direction:column;max-height:calc(100vh - 32px)}.technician-station-dialog form>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.technician-station-dialog h2{margin:3px 0 0}.technician-station-dialog .dialog-body{padding:20px 22px}.technician-station-dialog .dialog-footer{display:flex;justify-content:flex-end;padding:12px 22px;border-top:1px solid var(--line)}

.technician-station-dialog{width:min(700px,calc(100vw - 32px));height:210px;max-height:calc(100vh - 24px)}.technician-station-dialog form{height:100%;max-height:none}.technician-station-dialog form>header{min-height:58px;padding:10px 18px}.technician-station-dialog form>header h2{font-size:16px}.technician-station-dialog .dialog-body{flex:1;display:flex;align-items:center;padding:12px 18px}.technician-station-dialog .technician-station-grid{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:10px;border:1px solid var(--line);border-radius:4px;background:var(--surface-alt)}.technician-station-dialog .technician-station-grid section{display:flex;align-items:baseline;gap:6px;padding:0;border:0;border-radius:0;background:transparent}.technician-station-dialog .technician-station-grid small{flex:0 0 auto;font-size:9px}.technician-station-dialog .technician-station-grid strong{font-size:11px}.technician-station-dialog .dialog-footer{min-height:48px;padding:8px 18px}@media(max-width:650px){.technician-station-dialog{height:auto;min-height:210px}.technician-station-dialog .technician-station-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.technician-station-dialog .technician-station-grid section{display:grid;gap:4px}}

.technician-station-dialog{height:240px}.technician-station-dialog form>header{justify-content:flex-end}.technician-station-dialog form>header h2{margin:0 auto 0 0;font-size:18px}.technician-station-dialog .dialog-footer button{width:100%}@media(max-width:650px){.technician-station-dialog{height:auto;min-height:240px}}

.technician-station-dialog form>header{justify-content:flex-start;gap:14px}.technician-station-dialog .technician-station-logo{width:38px;height:38px;flex:0 0 38px;border:1px solid #315574;border-radius:50%;object-fit:cover}.technician-station-dialog form>header h2{margin:0 auto 0 0;font-size:18px}.technician-station-dialog .technician-station-close{width:38px;height:38px;flex:0 0 38px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:18px;line-height:1}.technician-station-dialog .dialog-body{padding:12px 12px 10px}.technician-station-dialog .technician-station-grid{min-height:74px;padding:10px}
.technician-station-dialog .dialog-body{overflow:hidden}
.technician-station-dialog .technician-station-grid section{min-width:0}
.technician-station-dialog .technician-station-grid section{gap:4px}
.technician-station-dialog .technician-station-grid section small{font-size:8.5px}
.technician-station-dialog .technician-station-grid section strong{font-size:10px}
.technician-station-dialog .technician-station-grid section strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.technician-station-dialog .technician-station-grid section small{flex:0 0 auto}
@media(min-width:651px){.technician-station-dialog form>header{padding:10px 16px 10px 22px}.technician-station-dialog .dialog-footer{box-sizing:border-box;min-height:82px;padding:18px 30px}.technician-station-dialog .dialog-footer button{box-sizing:border-box;height:44px;min-height:44px}}

#appDialog.manifest-dialog #dialogFooter{box-sizing:border-box;display:flex;flex:0 0 auto;flex-wrap:wrap;align-content:center;justify-content:flex-end;gap:6px;height:auto;max-height:32vh;min-height:64px;overflow-y:auto;padding:10px 16px}
#appDialog.manifest-dialog #dialogFooter .manifest-button{flex:0 1 auto;max-width:100%;white-space:normal}
@media(max-width:650px){#appDialog.manifest-dialog #dialogFooter{max-height:35svh;justify-content:center}}
.customer-note-formatbar select{max-width:118px;height:23px;padding:0 5px;border:1px solid #263449;border-radius:4px;background:#0b1220;color:#cbd5e1;font-size:9px}.customer-note-formatbar [data-cnote-size]{width:44px;min-width:44px}.customer-note-formatbar [data-cnote-font]{width:118px;min-width:104px;height:23px;padding:0 5px;border:1px solid #263449;border-radius:4px;background:#0b1220;color:#cbd5e1;font-size:9px}

.customer-note-formatbar #customerNoteCharCount{margin-left:auto;white-space:nowrap}.customer-note-formatbar #customerNoteCharCount small{margin-left:0;color:inherit;font:inherit}.customer-note-formatbar #customerNoteSaved{margin-left:0}@media(max-width:480px){.customer-note-formatbar #customerNoteCharCount small{display:none}}
@media print{body.service-form-open dialog.service-print-dialog .technician-history-toggle,body.service-form-open dialog.service-print-dialog .technician-history-panel{display:none!important}}
.sales-approval-option{grid-column:1/-1;display:flex;align-items:center;gap:8px;color:inherit;font-size:13px;cursor:pointer}.proforma-options .sales-approval-option input{accent-color:#2563eb;flex:0 0 16px;width:16px;height:16px;min-width:16px;margin:0;padding:0}
.auth-boot-status{display:flex;align-items:center;gap:12px;padding:16px 20px;border:1px solid rgba(126,165,220,.24);border-radius:14px;background:rgba(16,27,46,.9);color:#dbe8ff;font-size:14px;font-weight:600;box-shadow:0 18px 50px rgba(0,0,0,.28)}.auth-boot-status:before{content:"";width:16px;height:16px;flex:none;border:2px solid rgba(145,180,230,.32);border-top-color:#35d0c2;border-radius:50%;animation:auth-boot-spin .8s linear infinite}@keyframes auth-boot-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.auth-boot-status:before{animation:none;border-color:#35d0c2}}
@media(max-width:560px){#appDialog:has(.technician-panel-tabs){box-sizing:border-box!important;position:fixed!important;inset:4px!important;width:calc(100svw - 8px)!important;max-width:calc(100svw - 8px)!important;height:calc(100svh - 8px)!important;max-height:calc(100svh - 8px)!important;margin:0!important;padding:0!important;overflow:hidden!important}#appDialog:has(.technician-panel-tabs)>form{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}#appDialog:has(.technician-panel-tabs) #dialogBody{min-width:0!important;overflow-x:hidden!important}}
.public-auth-page:not(.public-landing) .auth-reset-password{box-sizing:border-box;min-width:0}
@media(max-width:820px){
.public-auth-page:not(.public-landing) .auth-panel{display:block;min-height:calc(100svh - 112px);padding:24px 20px 48px}
.public-auth-page:not(.public-landing) .auth-reset-password{width:min(520px,100%);margin:0 auto}
.public-auth-page:not(.public-landing) .auth-reset-password .auth-form{gap:16px}
.public-auth-page:not(.public-landing) .auth-top-nav{position:fixed;left:12px;right:12px;top:10px;z-index:1002;display:flex;justify-content:flex-end;gap:4px;max-width:calc(100vw - 24px);overflow-x:auto;padding:5px 8px;border-radius:14px}
.public-auth-page:not(.public-landing) .auth-top-nav button{min-height:38px;padding:0 11px;font-size:12px}
.public-auth-page:not(.public-landing) .auth-showcase{min-height:112px;padding:70px 18px 14px}
}
@media(max-width:480px){
.public-auth-page:not(.public-landing) .auth-panel{padding:24px 18px 42px}
.public-auth-page:not(.public-landing) .auth-reset-password .auth-form-head h2{font-size:25px;line-height:1.15}
.public-auth-page:not(.public-landing) .auth-reset-password .auth-form-head p{font-size:14px}
}
