:root{
  --blue:#1688f7;--blue-2:#0b6fe8;--blue-3:#0759bd;--cyan:#22c9d6;--green:#5bc95b;--orange:#ff9d2f;
  --ink:#17324d;--ink-2:#39566f;--muted:#7f94a7;--line:#dbe6ef;--line-2:#c8d8e4;--bg:#f4f8fb;--card:#fff;
  --shadow:0 12px 36px rgba(36,77,111,.10);--shadow-sm:0 5px 16px rgba(36,77,111,.08);--radius:16px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body,input,select,button{font-family:"Noto Sans Thai",Tahoma,"Segoe UI",sans-serif}body{color:var(--ink);background:var(--bg);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* App shell */
.app{min-height:100vh}.side{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);z-index:40;display:flex;flex-direction:column;box-shadow:10px 0 30px rgba(39,78,108,.045);transition:transform .22s ease,width .22s ease}.workspace{min-height:100vh;margin-left:248px;transition:margin-left .22s ease}.side-brand{height:76px;padding:12px 16px;border-bottom:1px solid #edf2f6;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;height:100%}.brand img{display:block;width:150px;height:48px;object-fit:contain;object-position:left center}.side-close{display:none}.side-scroll{overflow:auto;padding:12px 10px 18px}.nav-group-label{padding:12px 12px 7px;color:#9aabba;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.nav-list{display:grid;gap:4px}.nav-item{height:44px;border:1px solid transparent;border-radius:11px;display:flex;align-items:center;gap:11px;padding:0 12px;color:#536d84;text-decoration:none;font-weight:500;transition:.16s}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#f2f8fe;color:var(--blue-3);border-color:#dfeefa}.nav-item.active{background:linear-gradient(90deg,#eaf5ff,#f1fcff);color:var(--blue-2);border-color:#c6e5fb;box-shadow:inset 4px 0 0 var(--blue)}.nav-item.active span{font-weight:600}.nav-count{margin-left:auto;border-radius:999px;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;background:#eff4f7;color:#6c8396;font-size:10px}.branch-card{margin:12px 14px 16px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#f9fcfe;display:flex;align-items:center;gap:10px}.branch-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(91,201,91,.15)}.branch-card small{display:block;color:#95a7b5;font-size:10px}.branch-card strong{display:block;margin-top:2px;font-size:11px;color:#48637a}.side-overlay{display:none}

.topbar{height:66px;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px}.icon-btn{width:38px;height:38px;border:0;border-radius:10px;background:transparent;color:#59748b;display:grid;place-items:center;padding:0;transition:.16s}.icon-btn:hover{background:#edf6fd;color:var(--blue-2)}.icon-btn.bordered{border:1px solid var(--line-2);background:#fff}.topbar-title{display:flex;align-items:center;gap:8px;color:#70869a;font-size:12px}.topbar-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.notify{position:absolute;width:7px;height:7px;border-radius:50%;background:#f25555;margin:-18px 0 0 18px;border:2px solid white}.account-menu{position:relative}.account-menu summary{list-style:none;display:flex;align-items:center;gap:9px;padding:4px 7px;border-radius:11px;cursor:pointer}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:hover{background:#f3f7fa}.avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,#e4f3ff,#eaffef);border:1px solid #d3e6f4;display:grid;place-items:center;color:var(--blue-3);font-weight:700}.account-copy{display:flex;flex-direction:column;line-height:1.25}.account-copy b{font-size:11px}.account-copy small{font-size:9px;color:#97a6b3;margin-top:2px}.chev{width:15px;height:15px}.account-popover{position:absolute;right:0;top:48px;width:190px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:60}.pop-item{width:100%;border:0;background:#fff;border-radius:8px;padding:9px 10px;text-align:left;color:#4f687d;font-size:12px}.pop-item:hover{background:#f2f7fb}.pop-item.danger{color:#d84e4e}.pop-line{height:1px;background:#e7eef3;margin:5px 2px}.account-popover form{margin:0}

.page-wrap{padding:28px 30px 42px;max-width:1780px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.crumb{display:flex;align-items:center;gap:7px;color:#92a4b3;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:600}.crumb b{color:var(--blue-2)}.crumb i{font-style:normal;color:#c3ced7}.page-head h1{margin:8px 0 0;font-size:27px;line-height:1.15}.page-head p{margin:7px 0 0;color:#758b9d;font-size:12px}.head-actions{display:flex;gap:9px}.btn{min-height:40px;border-radius:10px;padding:0 15px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:12px;transition:.16s}.btn svg{width:17px;height:17px}.btn-primary{color:white;background:var(--blue-2);border-color:var(--blue-2);box-shadow:0 6px 14px rgba(11,111,232,.22)}.btn-primary:hover{background:var(--blue-3);transform:translateY(-1px)}.btn-ghost{background:#fff;color:#526d84;border-color:var(--line-2);box-shadow:0 2px 7px rgba(41,73,98,.04)}.btn-ghost:hover{background:#f7fbfe;border-color:#aac8dd;color:#2e5f86}

.info-strip{min-height:66px;padding:10px 14px;margin-bottom:15px;border:1px solid #d8e6ef;border-radius:14px;background:linear-gradient(90deg,#f7fbff,#fff 48%,#f8fffa);display:flex;align-items:center;gap:18px;box-shadow:0 3px 12px rgba(43,82,112,.035)}.info-unit{display:flex;align-items:center;gap:9px}.info-unit+ .info-unit{padding-left:18px;border-left:1px solid #e5edf2}.info-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.info-icon svg{width:17px;height:17px}.info-icon.blue{background:#eaf5ff;color:var(--blue)}.info-icon.green{background:#edfaea;color:#55b94a}.info-unit small{display:block;color:#91a2b0;font-size:9px}.info-unit b{display:block;margin-top:2px;font-size:11px}.info-hint{margin-left:auto;color:#7f92a1;font-size:10px}

/* Data grid */
.grid-card{background:#fff;border:1px solid var(--line-2);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.grid-toolbar{min-height:68px;padding:12px 14px;border-bottom:1px solid #e4ecf2;display:flex;align-items:center;gap:12px}.global-search{height:42px;width:min(680px,58vw);border:1px solid #c7d7e3;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 11px;background:#fff}.global-search:focus-within{border-color:#69b8f5;box-shadow:0 0 0 3px rgba(22,136,247,.09)}.global-search svg{width:17px;height:17px;color:#7891a5}.global-search input{border:0;outline:0;flex:1;min-width:0;color:#2d4b64;background:transparent;font-size:12px}.global-search input::placeholder{color:#9aaab7}.global-search kbd{border:1px solid #dce5eb;border-bottom-width:2px;background:#f6f8fa;color:#8b9aa6;border-radius:6px;padding:2px 6px;font:500 8pt/1.3 "Noto Sans Thai",sans-serif}.grid-tools{margin-left:auto;display:flex;align-items:center;gap:8px}.segmented{display:flex;padding:3px;border:1px solid #d2dfe8;border-radius:10px;background:#f6f9fb}.segmented button{border:0;background:transparent;color:#758b9d;height:31px;padding:0 12px;border-radius:7px;font-size:10px;font-weight:600}.segmented button.active{background:#fff;color:var(--blue-2);box-shadow:0 2px 7px rgba(47,81,108,.10)}
.table-scroll{overflow:auto;position:relative;min-height:300px}.data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1050px;table-layout:fixed}.data-table th,.data-table td{border-right:1px solid #e2eaf0;border-bottom:1px solid #e4ebf1;padding:10px 11px;vertical-align:middle}.data-table th:last-child,.data-table td:last-child{border-right:0}.data-table thead{position:sticky;top:0;z-index:4}.head-row th{background:#f3f7fa;color:#49647b;font-size:10px;font-weight:700;text-align:left;height:42px;white-space:nowrap;cursor:pointer}.head-row th.center{text-align:center}.head-row th.right{text-align:right}.head-row th.action-col{cursor:default}.head-row th:nth-child(1){width:115px}.head-row th:nth-child(2){width:270px}.head-row th:nth-child(3){width:115px}.head-row th:nth-child(4){width:210px}.head-row th:nth-child(5){width:90px}.head-row th:nth-child(6){width:125px}.head-row th:nth-child(7){width:115px}.head-row th:nth-child(8){width:95px}.sort-mark{display:inline-block;margin-left:4px;color:#aab9c5}.head-row th.sort-asc .sort-mark::after{content:"▲";font-size:7px}.head-row th.sort-desc .sort-mark::after{content:"▼";font-size:7px}.filter-row th{background:#fbfdfe;padding:7px}.filter-row input,.filter-row select{width:100%;height:32px;border:1px solid #ccdbe6;border-radius:7px;background:#fff;color:#506b80;outline:0;padding:0 8px;font-size:10px}.filter-row input:focus,.filter-row select:focus{border-color:#72b9f2;box-shadow:0 0 0 2px rgba(22,136,247,.08)}.filter-row input::placeholder{color:#a4b2bd}.data-table tbody tr:nth-child(even){background:#fbfdfe}.data-table tbody tr:hover{background:#f1f8fe}.data-table td{color:#486277;font-size:11px}.data-table td.name-cell{font-weight:500;color:#28465f}.data-table td.right{text-align:right;font-variant-numeric:tabular-nums}.data-table td.center{text-align:center}.badge{display:inline-flex;align-items:center;justify-content:center;height:24px;border-radius:999px;padding:0 9px;font-size:9px;font-weight:600}.badge.active{background:#e9f8eb;border:1px solid #cceccf;color:#3e9d43}.badge.inactive{background:#fff0f0;border:1px solid #f4d0d0;color:#d55959}.badge.product{background:#edf5ff;color:#3b7fc2}.badge.service{background:#eefbea;color:#53a94a}.row-actions{display:flex;justify-content:center;gap:6px}.row-btn{width:30px;height:30px;border:1px solid #cbdce8;border-radius:8px;background:#fff;color:#2e8be0;display:grid;place-items:center}.row-btn:hover{background:#ecf7ff;border-color:#9dcbef}.row-btn svg{width:14px;height:14px}.table-empty{position:absolute;inset:86px 0 0;display:grid;place-content:center;justify-items:center;color:#8fa0ad;background:#fff}.table-empty[hidden]{display:none}.table-empty svg{width:34px;height:34px;margin-bottom:8px}.table-empty b{font-size:12px;color:#637a8d}.table-empty span{font-size:10px;margin-top:4px}.grid-footer{min-height:60px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5edf2;background:#fbfdfe}.result-info{color:#7e92a2;font-size:10px}.pager-wrap{display:flex;align-items:center;gap:12px}.pager-wrap label{display:flex;align-items:center;gap:6px;color:#8093a2;font-size:10px}.pager-wrap select{height:32px;border:1px solid #cad9e4;border-radius:7px;background:#fff;color:#526d81;padding:0 24px 0 8px}.pager{display:flex;gap:4px}.page-btn{min-width:32px;height:32px;border:1px solid #d1dee7;border-radius:7px;background:#fff;color:#637b8f;font-size:10px}.page-btn:hover{border-color:#9ccaf0;color:var(--blue-2)}.page-btn.active{background:var(--blue-2);color:#fff;border-color:var(--blue-2)}.page-btn:disabled{opacity:.45;cursor:default}.grid-loading tbody{opacity:.35}

/* Dialog / toast */
.app-dialog{width:min(520px,calc(100vw - 28px));padding:0;border:0;border-radius:15px;box-shadow:0 24px 70px rgba(24,54,78,.22);color:var(--ink)}.app-dialog::backdrop{background:rgba(22,44,62,.35);backdrop-filter:blur(2px)}.app-dialog form{margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.dialog-head small{color:var(--blue-2);font-size:9px;font-weight:700;letter-spacing:.1em}.dialog-head h3{font-size:18px;margin:3px 0 0}.dialog-body{padding:20px}.dialog-foot{padding:12px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}.coming-box{border:1px solid #d7e8f4;background:linear-gradient(135deg,#f4faff,#f8fffb);border-radius:12px;padding:18px}.coming-box span{display:inline-block;background:#e8f4ff;color:var(--blue-2);border-radius:999px;padding:4px 8px;font-size:9px;font-weight:600}.coming-box h4{font-size:14px;margin:12px 0 6px}.coming-box p{margin:0;color:#73899b;font-size:11px;line-height:1.7}.toast{position:fixed;right:20px;bottom:20px;z-index:100;width:min(360px,calc(100vw - 40px));padding:12px 14px;border-radius:11px;background:#17324d;color:white;box-shadow:0 14px 36px rgba(21,48,70,.25);font-size:11px;transform:translateY(20px);opacity:0;pointer-events:none;transition:.2s}.toast.show{transform:translateY(0);opacity:1}

/* Login */
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);background:#f7fbfe}.login-art{position:relative;overflow:hidden;display:grid;place-items:center;padding:44px;background:linear-gradient(145deg,#eef8ff 0,#f7fcff 43%,#f1fff6 100%)}.login-art::before{content:"";position:absolute;inset:auto -10% -20% -10%;height:48%;background:linear-gradient(135deg,rgba(21,141,248,.28),rgba(33,202,215,.20) 52%,rgba(91,201,91,.27));clip-path:polygon(0 40%,22% 14%,52% 43%,74% 12%,100% 0,100% 100%,0 100%)}.login-art-inner{position:relative;z-index:1;text-align:center;max-width:640px}.login-logo{display:block;width:min(470px,75%);height:auto;margin:0 auto 28px}.login-art h2{font-size:30px;margin:0 0 9px}.login-art p{margin:0;color:#688095;font-size:15px}.login-tagline{display:inline-flex;margin-top:14px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid #d6e8f3;color:#4d7c9f;font-size:11px;font-weight:500;letter-spacing:.03em}.login-panel{display:grid;place-items:center;padding:36px;background:#fbfdff}.login-card{width:min(440px,100%);background:#fff;border:1px solid #c9dbe7;border-radius:20px;padding:34px 36px;box-shadow:0 20px 56px rgba(42,79,109,.13)}.card-logo{display:block;width:180px;height:auto;margin:0 auto 22px}.login-card h3{margin:0;font-size:23px}.login-subtitle{margin:7px 0 18px;color:#748a9c;font-size:12px}.login-card form{margin:0}.login-card label:not(.remember){display:block;font-size:11px;font-weight:600;margin:11px 0 6px}.login-input{height:46px;border:1px solid #c8d8e4;border-radius:10px;display:flex;align-items:center;gap:10px;padding:0 12px}.login-input:focus-within{border-color:#67b5f4;box-shadow:0 0 0 3px rgba(22,136,247,.08)}.login-input svg{width:17px;height:17px;color:#70899e}.login-input input{flex:1;border:0;outline:0;background:transparent;color:#2f4a61;font-size:12px}.login-options{display:flex;align-items:center;justify-content:space-between;margin:14px 0 16px;font-size:10px}.remember{display:flex;align-items:center;gap:6px;color:#60798d}.remember input{accent-color:var(--blue-2)}.login-options a{color:var(--blue-2);text-decoration:none}.login-submit{width:100%;height:45px;border:0;border-radius:10px;background:linear-gradient(90deg,var(--blue-2),#20b8d5);color:#fff;font-weight:600;box-shadow:0 7px 18px rgba(13,112,231,.22)}.login-divider{display:flex;align-items:center;gap:10px;margin:21px 0;color:#97a8b5;font-size:10px}.login-divider::before,.login-divider::after{content:"";height:1px;flex:1;background:#dfe8ee}.google-btn{width:100%;height:44px;border:1px solid #c9d7e1;border-radius:10px;background:#fff;color:#435f75;font-weight:500}.google-btn:hover{background:#f7fbfd}.google-btn b{font-size:17px;color:#4285f4;margin-right:8px}.login-footer{text-align:center;color:#9aabb8;font-size:9px;margin-top:18px}.validation-summary{color:#c84d4d;background:#fff3f3;border:1px solid #f0d3d3;border-radius:9px;padding:8px 10px;font-size:10px;margin-bottom:10px}.validation-summary:empty{display:none}.validation-summary ul{margin:0;padding-left:16px}

@media(min-width:1050px){.app.side-mini .side{width:78px}.app.side-mini .workspace{margin-left:78px}.app.side-mini .brand img{width:46px;object-fit:cover;object-position:left}.app.side-mini .nav-group-label,.app.side-mini .nav-item span,.app.side-mini .nav-count,.app.side-mini .branch-card{display:none}.app.side-mini .nav-item{justify-content:center;padding:0}.app.side-mini .side-scroll{padding-left:9px;padding-right:9px}}
@media(max-width:1150px){.page-wrap{padding:24px 20px}.info-hint{display:none}.global-search{width:min(620px,52vw)}}
@media(max-width:1049px){.side{transform:translateX(-102%);box-shadow:18px 0 44px rgba(22,50,72,.17)}.side.open{transform:translateX(0)}.workspace{margin-left:0}.side-close{display:grid}.side-overlay{position:fixed;inset:0;background:rgba(23,48,68,.32);z-index:35}.side-overlay.show{display:block}.global-search{width:100%}}
@media(max-width:760px){.topbar{padding:0 14px}.topbar-title,.account-copy{display:none}.page-wrap{padding:18px 12px 30px}.page-head{align-items:flex-start;flex-direction:column}.head-actions{width:100%}.head-actions .btn{flex:1}.info-strip{overflow:auto}.info-unit{flex:0 0 auto}.grid-toolbar{align-items:stretch;flex-direction:column}.grid-tools{margin-left:0;justify-content:space-between}.grid-footer{align-items:flex-start;flex-direction:column}.pager-wrap{width:100%;justify-content:space-between}.login-page{display:block}.login-art{display:none}.login-panel{min-height:100vh;padding:18px}.login-card{padding:28px 22px}}


/* ========================================================================== */
/* Phase 1 typography & compact UI standard                                   */
/* Noto Sans Thai 10pt body; titles only 1–3pt larger.                        */
/* ========================================================================== */
body,input,select,button,textarea{font-family:"Noto Sans Thai",Tahoma,"Segoe UI",sans-serif}
body{font-size:10pt}
.side .nav-group-label{font-size:8.5pt}
.side .nav-item{font-size:10pt;font-weight:500}
.side .nav-count{font-size:8pt}
.branch-card small{font-size:8pt}.branch-card strong{font-size:9pt}
.topbar-title{font-size:9pt}
.account-copy b{font-size:10pt}.account-copy small{font-size:8.5pt}
.pop-item{font-size:10pt}.pop-user{padding:8px 10px;display:grid;gap:2px}.pop-user b{font-size:10pt}.pop-user span{font-size:8.5pt;color:var(--muted)}
.page-wrap{padding-top:22px}
.crumb{font-size:8.5pt}
.page-head{margin-bottom:14px}.page-head h1{font-size:13pt;line-height:1.25;margin-top:5px}.page-head p{font-size:9pt;margin-top:4px}
.compact-head{align-items:center}
.btn{font-size:10pt;min-height:38px}
.info-unit small{font-size:8.5pt}.info-unit b{font-size:10pt}.info-hint{font-size:8.5pt}
.global-search input{font-size:10pt}.global-search kbd{font-size:8pt}.segmented button{font-size:9pt}
.head-row th{font-size:10pt}.filter-row input,.filter-row select{font-size:9.5pt}.data-table td{font-size:10pt}
.badge{font-size:8.5pt}.table-empty b{font-size:10pt}.table-empty span{font-size:9pt}
.result-info,.pager-wrap label,.page-btn{font-size:9.5pt}
.dialog-head small{font-size:8pt}.dialog-head h3,.dialog-head>h3{font-size:12pt}.coming-box span{font-size:8.5pt}.coming-box h4{font-size:11pt}.coming-box p{font-size:9.5pt}.toast{font-size:10pt}

/* Shared form controls */
.form-dialog{width:min(650px,calc(100vw - 28px))}.small-dialog{width:min(450px,calc(100vw - 28px))}
.form-grid{display:grid;gap:12px}.form-grid.two-col{grid-template-columns:1fr 1fr}.span-2{grid-column:1/-1}
.field{display:grid;gap:5px}.field>span{font-size:9.5pt;font-weight:600;color:#405d74}.field input,.field select,.field textarea,.toolbar-select{width:100%;height:40px;border:1px solid #c8d8e4;border-radius:9px;background:#fff;color:#2f4a61;padding:0 10px;outline:0;font-size:10pt}.field textarea{height:82px;padding-top:8px;resize:vertical}.field input:focus,.field select:focus,.toolbar-select:focus{border-color:#69b8f5;box-shadow:0 0 0 3px rgba(22,136,247,.08)}
.toolbar-select{width:auto;min-width:145px;height:38px}
.switch-list{display:flex;gap:16px;flex-wrap:wrap;padding:10px 12px;border:1px solid #dbe6ef;border-radius:10px;background:#f9fcfe}.switch-list label{display:flex;align-items:center;gap:7px;font-size:9.5pt;color:#49647b}.switch-list input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue-2)}
.row-action{width:32px;height:32px;border:1px solid #c9dceb;border-radius:8px;background:#fff;color:var(--blue-2);display:inline-grid;place-items:center}.row-action:hover{background:#edf7ff;border-color:#85c3f3}.row-action svg{width:16px;height:16px}
.role-badge{background:#edf5ff;color:#2f70b7;border:1px solid #d4e6f8}
.user-table{min-width:1180px}.user-table th:nth-child(1){width:180px}.user-table th:nth-child(2){width:130px}.user-table th:nth-child(3){width:155px}.user-table th:nth-child(4){width:150px}.user-table th:nth-child(5){width:125px}.user-table th:nth-child(6){width:90px}.user-table th:nth-child(7){width:90px}.user-table th:nth-child(8){width:155px}.user-table th:nth-child(9){width:80px}
.department-table{min-width:700px}.department-table th:nth-child(1){width:130px}.department-table th:nth-child(2){width:300px}.department-table th:nth-child(3){width:100px}.department-table th:nth-child(4){width:110px}.department-table th:nth-child(5){width:90px}.narrow-grid{max-width:980px}

/* Login: compact, no unnecessary copy */
.login-art h2{font-size:13pt;margin:0;color:#31556f}.login-art p{font-size:10pt}.login-card h3{font-size:13pt}.login-subtitle{font-size:9.5pt;margin-bottom:15px}.login-card label:not(.remember){font-size:9.5pt}.login-input input{font-size:10pt}.login-options{font-size:9pt}.login-options.compact{justify-content:flex-start}.login-submit,.google-btn{font-size:10pt}.login-footer{font-size:8.5pt}.validation-summary{font-size:9pt}.password-toggle{border:0;background:transparent;color:#70899e;width:30px;height:30px;display:grid;place-items:center;padding:0}.password-toggle:hover{color:var(--blue-2)}

.empty-page-card{max-width:560px;margin:12vh auto 0;background:#fff;border:1px solid var(--line-2);border-radius:16px;box-shadow:var(--shadow);padding:34px;text-align:center}.empty-page-card h1{font-size:13pt;margin:10px 0}.empty-page-card p{font-size:10pt;color:var(--muted)}.empty-page-icon{width:48px;height:48px;border-radius:50%;margin:auto;display:grid;place-items:center;background:#fff0f0;color:#d75252;font-size:16pt;font-weight:700}

@media(max-width:760px){.form-grid.two-col{grid-template-columns:1fr}.span-2{grid-column:auto}.user-filters{flex-wrap:wrap}.toolbar-select{flex:1 1 140px}}

/* ========================================================================== */
/* Phase 2 master data                                                        */
/* ========================================================================== */
.master-filters{flex-wrap:wrap}.master-filters .toolbar-select{min-width:150px}
.product-service-table{min-width:1240px}.product-service-table th:nth-child(1){width:110px}.product-service-table th:nth-child(2){width:95px}.product-service-table th:nth-child(3){width:165px}.product-service-table th:nth-child(4){width:145px}.product-service-table th:nth-child(5){width:260px}.product-service-table th:nth-child(6){width:85px}.product-service-table th:nth-child(7){width:120px}.product-service-table th:nth-child(8){width:95px}.product-service-table th:nth-child(9){width:80px}
.badge.type-product{background:#eaf4ff;border:1px solid #d2e7fb;color:#2f78bc}.badge.type-service{background:#effbea;border:1px solid #d9efcf;color:#53a43d}
.permission-note{border:1px solid #f1d8aa;background:#fff9ed;color:#98681e;border-radius:9px;padding:9px 11px;font-size:9pt}.dialog-spacer{flex:1}
.history-list{display:grid;gap:8px}.history-row{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfdfe;display:grid;gap:5px}.history-row>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.history-row b{font-size:9.5pt}.history-row span,.history-row small{font-size:8.5pt;color:var(--muted)}.empty-inline{text-align:center;color:var(--muted);padding:20px;font-size:9.5pt}
.vehicle-type-table{min-width:820px}.vehicle-type-table th:nth-child(1){width:80px}.vehicle-type-table th:nth-child(2){width:120px}.vehicle-type-table th:nth-child(3){width:260px}.vehicle-type-table th:nth-child(4){width:120px}.vehicle-type-table th:nth-child(5){width:90px}.vehicle-type-table th:nth-child(6){width:100px}.vehicle-type-table th:nth-child(7){width:80px}
.customer-vehicle-table{min-width:1420px}.customer-vehicle-table th:nth-child(1){width:110px}.customer-vehicle-table th:nth-child(2){width:190px}.customer-vehicle-table th:nth-child(3){width:130px}.customer-vehicle-table th:nth-child(4){width:125px}.customer-vehicle-table th:nth-child(5){width:140px}.customer-vehicle-table th:nth-child(6){width:130px}.customer-vehicle-table th:nth-child(7){width:200px}.customer-vehicle-table th:nth-child(8){width:145px}.customer-vehicle-table th:nth-child(9){width:95px}.customer-vehicle-table th:nth-child(10){width:80px}.plate-cell{font-weight:600;color:#214f77;letter-spacing:.02em}
.form-section{font-size:10pt;font-weight:700;color:#315c7d;padding:7px 2px 5px;border-bottom:1px solid #dbe7ef}
@media(max-width:1250px){.master-filters .toolbar-select{min-width:130px}.master-filters{gap:6px}}

/* ========================================================================== */
/* Phase 3 — Receive customer vehicle / work queue                            */
/* ========================================================================== */
.intake-filters{flex-wrap:wrap}.queue-table{min-width:1180px}.queue-table th:nth-child(1){width:130px}.queue-table th:nth-child(2){width:145px}.queue-table th:nth-child(3){width:145px}.queue-table th:nth-child(4){width:180px}.queue-table th:nth-child(5){width:290px}.queue-table th:nth-child(6){width:115px}.queue-table th:nth-child(7){width:120px}.queue-table th:nth-child(8){width:125px}.cell-sub{display:block;color:var(--muted);font-size:8.5pt;font-weight:400;margin-top:2px}.queue-services{white-space:normal;min-width:240px;color:#47647b}.status-waiting{background:#fff7df;border:1px solid #f0dfad;color:#956e13}.status-inservice{background:#eaf5ff;border:1px solid #cfe4f7;color:#2875b4}.status-completed{background:#eaf9ed;border:1px solid #cce9d3;color:#39884d}.status-delivered{background:#eef7f6;border:1px solid #d0e8e5;color:#397d76}.status-cancelled{background:#fff0f0;border:1px solid #f0d0d0;color:#b34d4d}.payment-unpaid{background:#fff1ea;border:1px solid #f1d4c5;color:#a75d35}.payment-partial{background:#fff8df;border:1px solid #eadca6;color:#8d741c}.payment-paid{background:#eaf9ed;border:1px solid #cce9d3;color:#39884d}.payment-voided{background:#f2f3f5;border:1px solid #dfe2e6;color:#6f7882}
.intake-dialog{width:min(790px,calc(100vw - 24px))}.intake-form-grid{gap:13px}.combo-field{position:relative}.combo-wrap{position:relative}.suggestion-menu{position:absolute;z-index:60;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow:auto;border:1px solid #c9dbe8;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(35,70,96,.15);padding:5px}.suggestion-item{width:100%;border:0;background:#fff;border-radius:8px;padding:8px 10px;text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:1px;color:#35536b;cursor:pointer}.suggestion-item:hover{background:#edf7ff}.suggestion-item b{font-size:10pt;color:#24577d}.suggestion-item span{font-size:9pt;color:#526f84}.suggestion-item small{grid-column:1/-1;font-size:8.5pt;color:#8a9eac}.vehicle-context-card{align-self:end;min-height:40px;border:1px solid #d9e8f1;border-radius:9px;background:#f7fbfd;padding:9px 11px;color:#5a7488;font-size:9pt}.selected-services{border:1px solid #d5e3ec;border-radius:12px;background:#fbfdfe;overflow:hidden}.selected-services-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #e2ebf1}.selected-services-head>div{display:grid;gap:1px}.selected-services-head b{font-size:10pt;color:#315b79}.selected-services-head span{font-size:8.5pt;color:var(--muted)}.service-mini-list{display:grid}.service-mini-row{display:grid;grid-template-columns:1fr 120px 28px;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid #edf2f5}.service-mini-row:last-child{border-bottom:0}.service-mini-row>div{display:grid}.service-mini-row b{font-size:9.5pt;color:#35546b}.service-mini-row small{font-size:8.5pt;color:var(--muted)}.service-mini-row>span{text-align:right;font-size:9.5pt;color:#315b79}.service-remove{width:26px;height:26px;border:0;border-radius:7px;background:#fff0f0;color:#c05050;font-size:15px;cursor:pointer}.service-remove:hover{background:#ffe4e4}.service-total{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:9px 12px;border-top:1px solid #dce8ef;background:#f5fafc}.service-total span{font-size:9pt;color:var(--muted)}.service-total b{font-size:10.5pt;color:#24577d}.service-picker-dialog{width:min(650px,calc(100vw - 24px))}.service-picker-body{display:grid;gap:10px}.service-search{width:100%;max-width:none}.service-picker-list{display:grid;gap:6px;max-height:430px;overflow:auto}.service-picker-row{display:grid;grid-template-columns:22px 1fr 110px;gap:10px;align-items:center;border:1px solid #dce7ee;border-radius:10px;padding:9px 10px;background:#fff;cursor:pointer}.service-picker-row:hover{background:#f7fbfd}.service-picker-row input{width:17px;height:17px;accent-color:var(--blue-2)}.service-picker-row>div{display:grid}.service-picker-row b{font-size:9.5pt;color:#35546b}.service-picker-row span{font-size:8.5pt;color:var(--muted)}.service-picker-row strong{text-align:right;font-size:9.5pt;color:#24577d}.dialog-head>div{display:grid;gap:2px}.dialog-head>div small{color:var(--muted);font-size:8.5pt;font-weight:400}
@media(max-width:760px){.intake-dialog,.service-picker-dialog{width:calc(100vw - 12px)}.vehicle-context-card{grid-column:auto}.selected-services-head{align-items:stretch;flex-direction:column}.service-mini-row{grid-template-columns:1fr 95px 26px}.service-picker-row{grid-template-columns:20px 1fr 90px}}
