:root{--navy:#102a43;--navy-2:#173f5f;--teal:#0f8b8d;--teal-soft:#e6f6f5;--ink:#203040;--muted:#6b7c8f;--line:#e2e8ef;--surface:#fff;--canvas:#f3f6f9;--shadow:0 8px 24px rgba(30,55,75,.07)}
*{box-sizing:border-box}html,body,form{min-height:100%;margin:0}body{background:var(--canvas);color:var(--ink);font:15px "Segoe UI","Microsoft JhengHei",sans-serif}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;padding:26px 18px 20px;background:linear-gradient(180deg,#102f4a 0%,#0b2338 100%);color:#fff;display:flex;flex-direction:column;box-shadow:8px 0 30px rgba(10,35,55,.1);z-index:10;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 25px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#21b3ad,#0e7d83);font-size:14px;font-weight:800;letter-spacing:.5px;box-shadow:0 6px 15px rgba(0,0,0,.18)}.brand strong,.brand small{display:block}.brand strong{font-size:17px;letter-spacing:.2px}.brand small{margin-top:3px;color:#9db4c6;font-size:11px}.nav-label{margin:26px 12px 9px;color:#7894a9;font-size:10px;font-weight:700;letter-spacing:1.6px}nav{display:flex;flex-direction:column;gap:5px}nav a,.nav-disabled{min-height:45px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:#c6d7e4;text-decoration:none;transition:.18s ease}nav a:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}.nav-icon{width:25px;text-align:center;font-size:17px;color:#78c9c5}.nav-disabled{color:#6f899d;cursor:not-allowed}.nav-disabled em{margin-left:auto;padding:2px 6px;border:1px solid rgba(255,255,255,.08);border-radius:8px;font-size:9px;font-style:normal}.nav-parent{margin-bottom:0}.nav-submenu{display:flex;flex-direction:column;margin:-2px 0 5px 36px;padding-left:11px;border-left:1px solid rgba(120,201,197,.2)}.nav-submenu .nav-disabled{min-height:30px;padding:5px 8px;font-size:11px}.sidebar-footer{margin-top:auto;padding:16px 10px 2px;border-top:1px solid rgba(255,255,255,.1);color:#9eb5c6;font-size:12px}.sidebar-footer small{display:block;margin:8px 0 0 14px;color:#688399}.status-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#45d3a8;box-shadow:0 0 0 3px rgba(69,211,168,.12)}.workspace{min-width:0;min-height:100vh;margin-left:250px;flex:1;display:flex;flex-direction:column}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}.environment{padding:5px 9px;border-radius:5px;background:#edf4f8;color:#577086;font-size:10px;font-weight:700;letter-spacing:1.2px}.user-chip{display:flex;align-items:center;gap:10px}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:13px}.user-chip small{margin-top:2px;color:#8795a4;font-size:10px}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--teal-soft);color:#087576;font-weight:700}main{width:100%;max-width:1500px;margin:0 auto;padding:34px 42px 50px;flex:1}footer{padding:20px 42px;border-top:1px solid var(--line);color:#8a98a7;font-size:11px;text-align:center}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.eyebrow{display:block;margin-bottom:6px;color:var(--teal);font-size:10px;font-weight:800;letter-spacing:1.7px}h1{margin:0;color:#17324a;font-size:29px;font-weight:700;letter-spacing:-.5px}h2{margin:3px 0 0;color:#253b50;font-size:18px}.lead{margin:7px 0 0;color:var(--muted)}.date-badge,.pill{padding:7px 12px;border:1px solid #d6e4ea;border-radius:18px;background:#fff;color:#567083;font-size:11px;font-weight:600}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.metric{position:relative;display:flex;align-items:center;gap:16px;min-height:138px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.metric:after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--accent)}.metric.teal{--accent:#16a3a5}.metric.blue{--accent:#3f83c5}.metric.amber{--accent:#db982d}.metric.violet{--accent:#766cc5}.metric-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:12px;background:color-mix(in srgb,var(--accent) 12%,white);color:var(--accent);font-size:18px;font-weight:700}.metric span,.metric small,.metric strong{display:block}.metric span{color:#647588;font-size:12px;font-weight:600}.metric strong{margin:7px 0 4px;color:#1c344a;font-size:27px;line-height:1}.metric small{color:#9aa6b2;font-size:10px}.alert{padding:13px 16px;margin-bottom:18px;border:1px solid #f2d594;border-radius:8px;background:#fff9e9;color:#745614}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.7fr);gap:20px}.panel,.form-card,.table-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.panel{padding:24px}.panel-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #edf1f4}.module-list{margin-top:8px}.module-list>div,.module-list>a{display:flex;align-items:center;gap:14px;padding:15px 3px;border-bottom:1px solid #eff3f5;color:inherit;text-decoration:none}.module-list>div:last-child{border-bottom:0}.module-list strong,.module-list small{display:block}.module-list small{margin-top:3px;color:#8b99a7;font-size:11px}.module-list b{margin-left:auto;color:#a2adb6;font-size:10px}.module-list a b{color:var(--teal)}.module-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:9px;background:#edf2f5;color:#6c8293;font-size:11px;font-weight:800}.module-icon.active{background:var(--teal-soft);color:#087c7d}.quick-panel{background:linear-gradient(150deg,#143d59,#0f2c44);color:#dfeaf1}.quick-panel h2{color:#fff}.quick-panel p{margin:15px 0 24px;color:#adc1cf;line-height:1.7}.primary-link{display:flex;justify-content:space-between;padding:12px 15px;border-radius:8px;background:#18a5a4;color:#fff;text-decoration:none;font-size:13px;font-weight:700}.security-note{margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12)}.security-note strong,.security-note span{display:block}.security-note strong{margin-bottom:5px;color:#f0c275;font-size:11px}.security-note span{color:#91a9ba;font-size:10px;line-height:1.5}.form-card{padding:24px}.section-heading>div{display:flex;align-items:center;gap:11px}.section-heading strong,.section-heading small{display:block}.section-heading small{margin-top:3px;color:#8a98a6;font-size:11px}.section-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--teal-soft);color:var(--teal);font-size:18px;font-weight:700}.section-icon.list{background:#edf2fb;color:#4d74af}.required-note{color:#9aa6b1;font-size:10px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 20px;padding-top:22px}.form-grid label{display:flex;flex-direction:column;gap:7px;color:#4b6072;font-size:12px;font-weight:650}.form-grid input[type=text],.form-grid input[type=date],.form-grid input[type=email],.form-grid select{width:100%;height:40px;padding:8px 11px;border:1px solid #ccd7e0;border-radius:6px;background:#fbfcfd;color:#263d50;font:14px inherit;outline:none;transition:.15s}.form-grid input:focus,.form-grid select:focus{border-color:#3aa7a7;box-shadow:0 0 0 3px rgba(25,157,158,.1);background:#fff}.form-grid .check{justify-content:center;flex-direction:row;align-items:center;align-self:end;height:40px;border:1px solid #d9e4e9;border-radius:6px;background:#f8fafb}.actions{display:flex;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #edf1f4}.button{min-width:130px;padding:10px 20px;border:0;border-radius:6px;background:linear-gradient(135deg,#139c9e,#087b82);color:#fff;font:600 13px inherit;cursor:pointer;box-shadow:0 5px 12px rgba(15,139,141,.18)}.button:hover{filter:brightness(1.05)}.button.secondary{background:#eef2f5;color:#526779;box-shadow:none}.validation{color:#c74444;font-size:10px}.table-card{margin-top:22px;padding:24px}.table-scroll{overflow-x:auto}.data-grid{width:100%;margin-top:14px;border:0;border-collapse:separate;border-spacing:0;background:#fff}.data-grid th,.data-grid td{padding:13px 12px;border:0;border-bottom:1px solid #e8edf1;text-align:left;white-space:nowrap}.data-grid th{background:#f7f9fb;color:#627588;font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}.data-grid tr:hover td{background:#fbfdfd}.data-grid td{color:#405568;font-size:12px}.data-grid a{display:inline-block;padding:5px 10px;border-radius:5px;background:var(--teal-soft);color:#08797a;text-decoration:none;font-weight:700}
.request-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.request-card{position:relative;display:flex;min-height:142px;padding:22px;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:.18s ease;overflow:hidden}.request-card:after{content:"";position:absolute;inset:auto 0 0;height:4px;background:var(--request-color)}.request-card:hover{transform:translateY(-3px);border-color:#bed4dd}.request-card>span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:15px;border-radius:11px;background:#edf6f6;color:var(--request-color);font-weight:800}.request-card strong{color:#244057;font-size:15px}.request-card small{margin-top:6px;color:#8392a0;line-height:1.45}.request-card.leave{--request-color:#19a1a3}.request-card.clock{--request-color:#4b82c3}.request-card.travel{--request-color:#756ac1}.request-card.expense{--request-color:#d69228}.request-form{margin-top:0}.request-fields{display:contents}.reason-field{grid-column:1/-1}.form-grid textarea{width:100%;min-height:78px;padding:9px 11px;border:1px solid #ccd7e0;border-radius:6px;background:#fbfcfd;color:#263d50;font:14px inherit;resize:vertical;outline:none}.form-grid input[type=datetime-local],.form-grid input[type=time],.form-grid input[type=number]{width:100%;height:40px;padding:8px 11px;border:1px solid #ccd7e0;border-radius:6px;background:#fbfcfd;color:#263d50;font:14px inherit;outline:none}.form-grid textarea:focus,.form-grid input[type=datetime-local]:focus,.form-grid input[type=time]:focus,.form-grid input[type=number]:focus{border-color:#3aa7a7;box-shadow:0 0 0 3px rgba(25,157,158,.1);background:#fff}
.request-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
.user-actions{display:flex;align-items:center;gap:14px}.topbar-link{color:#557086;font-size:12px;text-decoration:none}.topbar-link:hover{color:var(--teal)}.login-page{min-height:100vh;background:linear-gradient(135deg,#0f2c44,#102f4a 48%,#0d7679);display:grid;place-items:center}.login-shell{width:100%;max-width:460px;padding:28px}.login-card{padding:34px;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:30px;padding-bottom:22px;border-bottom:1px solid var(--line)}.login-brand strong,.login-brand small{display:block}.login-brand small{margin-top:3px;color:#8494a2;font-size:11px}.login-fields{display:grid;gap:17px;margin:25px 0}.login-fields label{display:flex;flex-direction:column;gap:7px;color:#4b6072;font-size:12px;font-weight:650}.login-fields input{height:43px;padding:9px 11px;border:1px solid #ccd7e0;border-radius:7px;font:14px inherit}.login-button{width:100%}.login-note,.password-rule{color:#8392a0;font-size:11px;line-height:1.6}.login-note{text-align:center;margin:18px 0 0}.narrow-card{max-width:650px}.single-column{grid-template-columns:1fr}
.sidebar .brand small{margin-top:6px;color:#d7e7f2;font-size:14px;font-weight:700;line-height:1.35}.login-card .eyebrow{margin-bottom:10px}.login-card h1{margin-top:4px}.login-card .lead{line-height:1.6}.login-fields label{font-size:13px}.login-fields input{width:100%;font-size:15px}
.language-select{height:34px;padding:4px 9px;border:1px solid #d4dee6;border-radius:7px;background:#fff;color:#40576a;font:12px inherit}
.nav-parent{min-height:45px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:#c6d7e4;font-weight:650}.nav-submenu a{min-height:34px;padding:6px 9px;font-size:12px}.nav-submenu a:before{content:"•";margin-right:8px;color:#78c9c5}
@media(max-width:1100px){.cards,.request-menu{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;width:100%;padding:18px}.sidebar nav{display:grid;grid-template-columns:1fr 1fr}.sidebar-footer,.nav-label{display:none}.workspace{margin-left:0}.topbar{height:60px;padding:0 20px}main{padding:25px 18px}.page-heading{align-items:flex-start;gap:15px}.dashboard-grid{grid-template-columns:1fr}.user-chip span:not(.avatar){display:none}}
@media(max-width:500px){.cards,.form-grid,.request-menu{grid-template-columns:1fr}.sidebar nav{grid-template-columns:1fr}.date-badge{display:none}.metric{min-height:115px}.actions{flex-direction:column}.button{width:100%}}
.inline-search{display:flex;align-items:center;gap:8px}.inline-search input{height:36px;padding:7px 10px;border:1px solid #ccd7e0;border-radius:6px;font:13px inherit}.button.compact{min-width:auto;padding:9px 15px}.separated-card{margin-top:22px}
.form-grid .wide-field{grid-column:span 2}
.table-scroll{max-height:65vh;overflow:auto}.table-scroll #MainContent_ItemGrid{width:max-content;min-width:2300px}.table-scroll #MainContent_ItemGrid th{position:sticky;top:0;z-index:2;background:#f7f9fb}
.table-scroll{scrollbar-gutter:stable}.table-top-scroll{height:18px;margin:14px 0 4px;overflow-x:scroll;overflow-y:hidden;border:1px solid #e2e8ef;border-radius:5px;background:#f7f9fb}.table-top-scroll>div{height:1px}
#MainContent_ItemGrid th:nth-child(5),#MainContent_ItemGrid td:nth-child(5){width:420px;min-width:420px;max-width:420px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.55;vertical-align:top}#MainContent_SupplierGrid th:nth-child(6),#MainContent_SupplierGrid td:nth-child(6){width:360px;min-width:360px;max-width:360px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.55;vertical-align:top}
.form-card h3{margin:26px 0 12px;color:#17324d}.compact-table{max-height:260px;margin-bottom:10px}
.notification-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding-top:18px}.notification-detail-row{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid #edf1f4}.notification-detail-row strong{color:#627588;font-size:12px}.notification-detail-row span{color:#263d50;line-height:1.6;overflow-wrap:anywhere}@media(max-width:760px){.notification-detail{grid-template-columns:1fr}.notification-detail-row{grid-template-columns:105px minmax(0,1fr)}}
.notification-detail h3,.notification-detail .table-scroll{grid-column:1/-1}.notification-detail .data-grid{min-width:1200px}.notification-detail .notification-specification{min-width:260px;max-width:420px;white-space:normal;line-height:1.55}
.bom-tree-grid .bom-tree-label{position:relative;padding-left:calc(12px + var(--bom-depth,0) * 24px);font-weight:650}.bom-tree-grid tr[data-bom-depth]:not([data-bom-depth="0"]) td{background:#fbfcfd}.bom-tree-grid tr[data-bom-depth]:not([data-bom-depth="0"]):hover td{background:#f5fafb}.bom-tree-toggle{display:inline-grid;place-items:center;width:24px;height:24px;margin:-3px 7px -3px 0;padding:0;border:1px solid #cbdbe3;border-radius:5px;background:#fff;color:#256b7b;font:700 15px/1 "Segoe UI",sans-serif;cursor:pointer;vertical-align:middle}.bom-tree-toggle:hover,.bom-tree-toggle:focus{border-color:#62aeb4;background:#eaf7f7;outline:none}.bom-tree-count,.bom-tree-type{display:inline-block;margin-left:7px;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:700;vertical-align:middle}.bom-tree-count{background:#eaf2f6;color:#527184}.bom-tree-type.required{background:#fff2d5;color:#896019}.bom-tree-type.optional{background:#e7f6f4;color:#177873}.bom-tree-grid tr[hidden]{display:none}
.item-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.request-card.active{border-color:var(--request-color);box-shadow:0 8px 24px color-mix(in srgb,var(--request-color) 18%,transparent);transform:translateY(-2px)}.request-card.active strong{color:var(--request-color)}
.manual-code-reason{display:none}.manual-code-reason label{height:100%}
.form-grid .employee-photo-editor{display:flex;align-items:center;gap:16px;grid-column:1/-1;min-width:0;padding:14px;border:1px dashed #cbd8e5;border-radius:14px;background:#f8fbfd}.form-grid .employee-photo-editor span{display:flex;min-width:0;flex:1;flex-direction:column;gap:7px}.form-grid .employee-photo-editor small{color:#728399}.form-grid .employee-photo-editor .employee-photo-preview{display:block;flex:0 0 112px;width:112px!important;height:112px!important;max-width:112px!important;object-fit:cover;border-radius:16px;border:1px solid #d6e0e8;background:#fff;box-shadow:0 4px 14px rgba(23,53,78,.1)}.form-grid .employee-photo-editor input[type=file]{width:min(100%,420px)}
@media(max-width:500px){.form-grid .employee-photo-editor{align-items:flex-start}.form-grid .employee-photo-editor .employee-photo-preview{flex-basis:88px;width:88px!important;height:88px!important;max-width:88px!important}}
.avatar.avatar-photo{display:block;flex:0 0 36px;width:36px!important;height:36px!important;max-width:36px!important;object-fit:cover;border:1px solid #d4e2e8;background:#fff}
.employee-list-photo{display:block;width:40px!important;height:40px!important;max-width:40px!important;border:1px solid #d5e1e8;border-radius:50%;background:#fff;object-fit:cover}.employee-list-photo-placeholder{display:grid;place-items:center;background:var(--teal-soft);color:#087576;font-weight:700}.data-grid td.employee-photo-column{padding-top:7px;padding-bottom:7px}.data-grid th.employee-photo-column{width:64px}
@media(max-width:760px){.employee-photo-column{display:none}}
.customer-search-control{display:flex;flex-direction:column;gap:6px;width:100%}.form-grid .customer-search-input{width:100%;height:36px;padding:7px 11px;border:1px solid #b9d6da;border-radius:6px;background:#f3fbfb;color:#263d50;font:13px inherit;outline:none}.form-grid .customer-search-input:focus{border-color:#26999b;box-shadow:0 0 0 3px rgba(25,157,158,.1);background:#fff}.customer-search-input::-webkit-search-cancel-button{cursor:pointer}
.brand-logo{display:block;flex:0 0 58px;width:58px!important;height:42px!important;max-width:58px!important;object-fit:contain;border-radius:8px;background:#fff;padding:3px}.form-grid .operating-center-logo-editor{display:flex;align-items:center;gap:18px;grid-column:1/-1;padding:14px;border:1px dashed #cbd8e5;border-radius:14px;background:#f8fbfd}.operating-center-logo-editor>span{display:flex;flex:1;flex-direction:column;gap:7px}.operating-center-logo-editor small{color:#728399}.operating-center-logo-preview{display:block;width:220px!important;height:90px!important;max-width:220px!important;object-fit:contain;border:1px solid #d6e0e8;border-radius:10px;background:#fff;padding:8px}.operating-center-list-logo{display:block;width:88px!important;height:38px!important;max-width:88px!important;object-fit:contain;border:1px solid #d5e1e8;border-radius:7px;background:#fff;padding:3px}.operating-center-logo-placeholder{display:grid;place-items:center;background:var(--teal-soft);color:#087576;font-weight:800}
.form-grid textarea.specification-editor{min-height:180px;line-height:1.65;white-space:pre-wrap}
.item-language-grid{display:grid;grid-template-columns:1fr;gap:14px;grid-column:1/-1;width:100%;margin-top:2px}.item-language-card{display:grid;grid-template-columns:140px minmax(220px,1fr) minmax(360px,2fr);align-items:start;gap:16px;min-width:0;padding:17px;border:1px solid #dbe5eb;border-radius:10px;background:#f9fbfc}.item-language-card[hidden]{display:none}.item-language-selector{max-width:280px}.item-language-card h3{margin:0;padding:11px 14px;border-radius:7px;background:#eaf4f5;color:#27465d;font-size:14px;text-align:center}.form-grid .item-language-card label{min-width:0}.form-grid .item-language-card input[type=text]{height:40px}.form-grid .item-language-card textarea.specification-editor{height:120px;min-height:120px}
@media(max-width:900px){.item-language-card{grid-template-columns:110px minmax(180px,1fr) minmax(260px,1.5fr)}}
@media(max-width:760px){.item-language-card{grid-template-columns:1fr}.item-language-card h3{text-align:left}.form-grid .item-language-card textarea.specification-editor{height:160px;min-height:160px}}
.quotation-spec{min-width:260px;max-width:460px;white-space:pre-line;line-height:1.5}.quotation-totals{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;margin-top:18px;padding:15px 18px;border-radius:10px;background:#f1f8f8}.quotation-totals span{color:#617786}.quotation-totals strong{margin-left:8px;color:#17394b}

/* Phase 1 responsive mobile experience */
.topbar-start{display:flex;align-items:center;gap:12px}.mobile-nav-button,.mobile-nav-backdrop{display:none}.mobile-nav-button{width:42px;height:42px;padding:10px;border:0;border-radius:9px;background:#edf4f8}.mobile-nav-button span{display:block;height:2px;margin:4px 0;border-radius:2px;background:#284b63}.table-scroll{-webkit-overflow-scrolling:touch}.data-grid input[type=text]{min-width:150px;max-width:240px;padding:7px;border:1px solid #ccd7e0;border-radius:6px}.button,.data-grid a,.topbar-link{touch-action:manipulation}
@media(max-width:760px){body{font-size:14px}.app-shell{display:block}.workspace{margin-left:0}.sidebar{position:fixed;inset:0 auto 0 0;width:min(86vw,320px);padding:20px 16px;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 35px rgba(4,23,37,.28);z-index:100}.sidebar nav{display:flex}.sidebar-footer,.nav-label{display:block}.mobile-nav-open{overflow:hidden}.mobile-nav-open .sidebar{transform:translateX(0)}.mobile-nav-backdrop{position:fixed;inset:0;border:0;background:rgba(8,25,39,.48);z-index:90}.mobile-nav-open .mobile-nav-backdrop{display:block}.mobile-nav-button{display:block;flex:0 0 42px}.topbar{position:sticky;top:0;z-index:70;height:62px;padding:0 14px}.environment{display:none}.user-actions{gap:8px}.language-select{max-width:112px}.topbar-link{padding:10px 4px}.user-chip span:not(.avatar){display:none}main{padding:20px 14px 38px}.page-heading{align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:24px}.lead{font-size:13px;line-height:1.55}.form-card,.table-card,.panel{padding:17px;border-radius:10px}.section-heading{align-items:flex-start;gap:10px}.section-heading>div{min-width:0}.section-heading small{line-height:1.45}.cards,.request-menu,.dashboard-grid,.form-grid{grid-template-columns:1fr}.cards,.request-menu{gap:12px}.metric{min-height:105px;padding:17px}.form-grid{gap:14px;padding-top:18px}.form-grid .wide-field,.reason-field{grid-column:1}.form-grid input[type=text],.form-grid input[type=date],.form-grid input[type=email],.form-grid input[type=datetime-local],.form-grid input[type=time],.form-grid input[type=number],.form-grid select{min-height:46px;font-size:16px}.form-grid textarea{font-size:16px}.actions{position:relative;display:grid;grid-template-columns:1fr;gap:9px}.button{width:100%;min-height:46px;font-size:14px}.inline-search{width:100%;flex-wrap:wrap}.inline-search input{flex:1;min-width:150px;height:44px;font-size:16px}.inline-search .button{width:auto;min-height:44px}.table-scroll{max-height:none;margin-right:-17px;margin-left:-17px;padding:0 17px;overflow:auto}.data-grid{width:max-content;min-width:100%;margin-top:12px}.data-grid th,.data-grid td{padding:11px 10px}.notification-detail-row{grid-template-columns:92px minmax(0,1fr)}.quotation-totals{justify-content:flex-start;gap:10px;flex-direction:column}.quotation-totals span{display:flex;justify-content:space-between}.login-shell{padding:max(18px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))}.login-card{padding:24px 20px}.login-card h1{font-size:25px}.login-fields input{height:48px;font-size:16px}footer{padding:18px 14px}.operating-center-logo-preview{width:100%!important;max-width:180px!important}}
@media(max-width:420px){.topbar-link{font-size:11px}.user-chip{display:none}.language-select{max-width:105px}.page-heading{display:block}.date-badge{display:none}.login-card{padding:22px 17px}.brand-logo{flex-basis:48px;width:48px!important;max-width:48px!important}}

.data-grid a.notification-open-button{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:8px 12px;border-radius:7px;background:var(--teal-soft);color:#087576;white-space:nowrap}.notification-open-column{white-space:nowrap}@media(max-width:760px){.data-grid .notification-open-column{position:sticky;left:0;z-index:2;background:#fff;box-shadow:2px 0 5px rgba(16,47,74,.1)}}

.remember-device{margin:0 0 18px}.remember-device>span{display:flex;align-items:center;gap:10px;min-height:44px}.remember-device input{width:20px;height:20px;flex:0 0 20px}.remember-device label{font-size:14px;cursor:pointer}.remember-device p{margin:4px 0;color:#627588;font-size:12px;line-height:1.6}

/* Dashboard standalone ring indicators: counts and currency are not proportions. */
.dashboard-rings .metric{justify-content:center;text-align:center;padding:24px 12px}.dashboard-rings .metric:after{display:none}.dashboard-rings .metric>div{width:100%;min-width:0}.dashboard-rings .metric strong{display:flex;align-items:center;justify-content:center;width:160px;height:160px;max-width:100%;margin:16px auto;border:10px solid var(--accent);border-radius:50%;background:#fff;font-size:clamp(14px,1.5vw,23px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;padding:8px;box-shadow:inset 0 0 0 5px #f3f6f8}.dashboard-rings .metric span{font-size:14px}.dashboard-rings .metric small{font-size:11px}

/* Keep the machine-model filter on its own row so the primary filters remain readable. */
.inline-search select{height:36px;min-width:170px;padding:7px 30px 7px 10px;border:1px solid #ccd7e0;border-radius:6px;background:#fff;color:#263d50;font:13px inherit}.item-filter-primary{flex-wrap:wrap;justify-content:flex-end}.item-machine-filter-row{width:100%;margin-top:12px;padding:0 0 14px;border-bottom:1px solid #edf1f4}.item-machine-filter-row span{flex:0 0 auto;color:#4b6072;font-size:12px;font-weight:650}.item-machine-filter-row select{width:min(100%,460px)}
@media(max-width:760px){.inline-search select{min-width:0;min-height:44px;font-size:16px}.item-filter-primary{justify-content:flex-start}.item-machine-filter-row{align-items:stretch;flex-direction:column}.item-machine-filter-row select{width:100%}}

/* Match the quotation-line editor while keeping order-only fields compact. */
.sales-order-line-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:dense;gap:18px 20px}
.sales-order-line-grid .line-cost-fields{display:contents}
.sales-order-line-grid textarea{min-height:78px}

@media(max-width:1100px){
  .sales-order-line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .sales-order-line-grid{grid-template-columns:1fr}
  .sales-order-line-grid>label,.sales-order-line-grid .line-cost-fields>label{grid-column:1}
}

/* 2026 group-brand refresh: LoyalSun indigo technology + FaithShine gold accents. */
:root{
  --navy:#2d245c;
  --navy-2:#3b2f72;
  --teal:#1b6e9d;
  --teal-soft:#eaf4fa;
  --gold:#f2c438;
  --gold-deep:#d39e12;
  --ink:#262a3b;
  --muted:#6f7486;
  --line:#e2e4ec;
  --surface:#fff;
  --canvas:#f5f6fa;
  --shadow:0 10px 28px rgba(45,36,92,.08)
}
body{background:linear-gradient(180deg,#f8f9fc 0,#f3f5f9 100%)}
.sidebar{background:linear-gradient(180deg,#312662 0%,#251d4d 58%,#17182f 100%);box-shadow:10px 0 34px rgba(26,23,55,.18)}
.sidebar:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--gold),#f7d96f,#1683b8)}
.brand{position:relative;border-bottom-color:rgba(255,255,255,.14)}
.brand-mark{background:linear-gradient(145deg,var(--gold),#e7aa18);color:#2b2455;box-shadow:0 8px 20px rgba(0,0,0,.24)}
.brand strong{letter-spacing:.45px}.brand small{color:#ded9f2}
.nav-label{color:#aaa3d0}
nav a,.nav-disabled,.nav-parent{color:#d9d5ea}
nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.nav-icon{color:#f3c73e}
.nav-submenu{border-left-color:rgba(244,198,56,.34)}
.nav-submenu a:before{color:var(--gold)}
.sidebar-footer{border-top-color:rgba(255,255,255,.12);color:#c9c5df}
.status-dot{background:#f4ca45;box-shadow:0 0 0 3px rgba(244,202,69,.16)}
.workspace{background:radial-gradient(circle at 92% 0,rgba(39,130,178,.07),transparent 34%)}
.topbar{background:rgba(255,255,255,.94);border-bottom-color:#e5e4ee;box-shadow:0 4px 18px rgba(45,36,92,.04)}
.environment{background:#eeeaf8;color:#4a3c7e}
.topbar-link:hover{color:#2b6f9a}
.avatar,.employee-list-photo-placeholder{background:#fff4c9;color:#4b3b13}
.eyebrow{color:#2d78a4}.page-heading{position:relative;padding-bottom:18px;border-bottom:1px solid #e7e6ef}.page-heading:after{content:"";position:absolute;left:0;bottom:-1px;width:76px;height:3px;background:linear-gradient(90deg,var(--gold),#e8aa17)}
h1{color:#30275d}h2{color:#37334e}
.date-badge,.pill{border-color:#e5dcae;background:#fffdf4;color:#6d5920}
.panel,.form-card,.table-card,.metric,.request-card{border-color:#e3e2eb;border-radius:10px;box-shadow:var(--shadow)}
.metric:after,.request-card:after{height:4px;background:linear-gradient(90deg,var(--gold),var(--accent,#2f7ea9))}
.metric strong{color:#30275d}.metric-icon,.section-icon,.module-icon.active{background:#eef5fa;color:#236f99}
.quick-panel{background:linear-gradient(145deg,#332768,#272252 62%,#1e365d);border-color:#403673}.quick-panel:before{content:"";display:block;width:54px;height:4px;margin-bottom:18px;border-radius:4px;background:var(--gold)}
.quick-panel .primary-link{background:linear-gradient(135deg,#f5cd49,#e7ad1c);color:#2b2452;box-shadow:0 6px 16px rgba(225,168,20,.22)}
.section-heading{border-bottom-color:#ecebf2}.section-icon{border-bottom:3px solid var(--gold)}
.form-grid input[type=text],.form-grid input[type=date],.form-grid input[type=email],.form-grid input[type=datetime-local],.form-grid input[type=time],.form-grid input[type=number],.form-grid select,.form-grid textarea{border-color:#d6d8e2;background:#fcfcfe}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#4a87aa;box-shadow:0 0 0 3px rgba(44,121,164,.12)}
.button{background:linear-gradient(135deg,#3a2e72,#2b245d);box-shadow:0 6px 15px rgba(45,36,92,.2)}
.button:hover{filter:none;background:linear-gradient(135deg,#493b85,#34296a);transform:translateY(-1px)}
.button.secondary{border:1px solid #ded8bb;background:#fffaf0;color:#66551f}
.data-grid th{background:#332968;color:#fff;border-bottom:3px solid var(--gold)}
.data-grid tr:hover td{background:#fffaf0}.data-grid a,.data-grid a.notification-open-button{background:#fff3bf;color:#5c4b16}
.request-card:hover{border-color:#dbc35e;box-shadow:0 12px 30px rgba(45,36,92,.12)}
.request-card>span{background:#fff5cb;color:#4f4218}
.login-page{background:radial-gradient(circle at 80% 10%,rgba(26,126,173,.45),transparent 34%),linear-gradient(135deg,#221b49,#35286d 58%,#172f52)}
.login-card{border-top:5px solid var(--gold);box-shadow:0 28px 80px rgba(12,10,36,.38)}
.login-brand{border-bottom-color:#e8e6ef}
@media(max-width:760px){.sidebar:before{position:fixed;z-index:2}.page-heading{padding-bottom:15px}}

/* Login layout C: group-image split screen. */
.login-page-split{display:grid;place-items:center;min-height:100vh;padding:clamp(18px,4vw,58px);background:linear-gradient(135deg,#f7f8fb 0%,#eef1f7 52%,#e5e9f2 100%)}
.login-page-split:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 12% 14%,rgba(242,196,56,.16),transparent 22%),radial-gradient(circle at 90% 86%,rgba(38,118,161,.11),transparent 26%);pointer-events:none}
.login-split-shell{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(390px,.62fr);width:min(1180px,100%);min-height:660px;overflow:hidden;border:1px solid rgba(45,36,92,.13);border-radius:22px;background:#fff;box-shadow:0 30px 90px rgba(29,25,65,.2)}
.login-visual{position:relative;min-width:0;background:linear-gradient(90deg,rgba(18,20,51,.28),rgba(20,34,65,.05)),url("Images/login-smt-hero.png") center/cover no-repeat}
.login-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,17,52,.03) 30%,rgba(20,17,52,.88) 100%)}
.login-visual:after{content:"";position:absolute;top:0;left:0;width:84px;height:5px;background:linear-gradient(90deg,var(--gold),#f7da72)}
.login-visual-copy{position:absolute;z-index:1;right:clamp(28px,5vw,68px);bottom:52px;left:clamp(28px,5vw,68px);color:#fff}
.login-visual-copy span{display:block;margin-bottom:14px;color:#f5ce4d;font-size:11px;font-weight:900;letter-spacing:2.4px}
.login-visual-copy strong{display:block;font-size:clamp(30px,3.2vw,48px);line-height:1.22;letter-spacing:.5px;text-shadow:0 3px 18px rgba(0,0,0,.26)}
.login-visual-copy p{margin:17px 0 0;color:#d9e2ef;font-size:12px;letter-spacing:1.3px}
.login-card.login-card-split{display:flex;flex-direction:column;justify-content:center;width:auto;max-width:none;padding:clamp(36px,4.4vw,62px);border:0;border-radius:0;background:#fff;box-shadow:none}
.login-card-split .login-brand{margin-bottom:36px}
.login-card-split .brand-mark{background:linear-gradient(145deg,#f7d451,#e7ad19);color:#30265f}
.login-card-split .eyebrow{color:#277ca7}
.login-card-split h1{font-size:32px}
.login-card-split .login-button{background:linear-gradient(90deg,#30265f,#2d7199)}
@media(max-width:900px){.login-page-split{padding:22px}.login-split-shell{grid-template-columns:1fr;max-width:520px;min-height:0}.login-visual{min-height:250px}.login-visual-copy{bottom:28px}.login-visual-copy strong{font-size:30px}.login-card.login-card-split{padding:34px}}
@media(max-width:520px){.login-page-split{display:block;padding:0;background:#fff}.login-split-shell{display:block;width:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}.login-visual{min-height:190px}.login-visual-copy{right:22px;bottom:22px;left:22px}.login-visual-copy strong{font-size:25px}.login-visual-copy p{display:none}.login-card.login-card-split{padding:30px 22px max(30px,env(safe-area-inset-bottom))}.login-card-split .login-brand{margin-bottom:27px}}

/* Inner layout: Sidebar Workspace. */
@media(min-width:761px){
  .sidebar{width:230px;padding:24px 15px 18px}
  .workspace{margin-left:230px}
  .topbar{height:60px;padding:0 28px}
  main{padding:26px 30px 46px}
}
.brand{padding:0 7px 20px}.brand-logo{flex-basis:52px;width:52px!important;max-width:52px!important}
.nav-label{margin:21px 10px 7px}.sidebar nav{gap:3px}
nav a,.nav-disabled,.nav-parent{min-height:40px;padding:8px 10px;border-radius:7px}
.nav-submenu{margin:0 0 4px 31px;padding-left:9px}.nav-submenu a{min-height:31px;padding:5px 8px}
.topbar{box-shadow:0 3px 14px rgba(45,36,92,.05)}
main{max-width:1600px}.page-heading{margin-bottom:21px;padding-bottom:15px}.page-heading h1{font-size:27px}
.cards{gap:14px;margin-bottom:18px}.metric{min-height:116px;padding:18px;border-radius:9px}.metric:after{inset:0 0 auto;height:3px}.metric-icon{width:43px;height:43px;border-radius:9px}.metric strong{font-size:25px}
.panel,.form-card,.table-card,.request-card{border-radius:9px}.form-card,.table-card,.panel{padding:20px}.table-card{margin-top:18px}
.section-heading,.panel-heading{padding-bottom:14px}.form-grid{gap:16px 18px;padding-top:18px}.actions{margin-top:19px;padding-top:16px}
.data-grid{margin-top:11px}.data-grid th{padding:11px 10px;background:#f0edf8;color:#3b3167;border-bottom:3px solid var(--gold);font-size:10px}.data-grid td{padding:11px 10px}.data-grid tr:hover td{background:#fffaf0}
.button{border-radius:7px;background:linear-gradient(135deg,#3b2f73,#2d245e)}
.button.secondary{border-color:#ded8bb;background:#fffaf0;color:#66551f}
.request-menu{gap:14px}.request-card{min-height:124px;padding:18px}.request-card:after{inset:0 0 auto;height:3px}
@media(max-width:760px){.cards{gap:11px}.metric{min-height:105px}.data-grid th{position:sticky;top:0;z-index:2}}

/* Restore the authenticated application to its original inner-page theme. */
.app-shell{--navy:#102a43;--navy-2:#173f5f;--teal:#0f8b8d;--teal-soft:#e6f6f5;--ink:#203040;--muted:#6b7c8f;--line:#e2e8ef;--surface:#fff;--canvas:#f3f6f9;--shadow:0 8px 24px rgba(30,55,75,.07)}
body:has(.app-shell){background:var(--canvas)}
.app-shell .sidebar{width:250px;padding:26px 18px 20px;background:linear-gradient(180deg,#102f4a 0%,#0b2338 100%);box-shadow:8px 0 30px rgba(10,35,55,.1)}
.app-shell .sidebar:before{display:none}.app-shell .workspace{margin-left:250px;background:none}
.app-shell .brand{padding:0 8px 25px;border-bottom-color:rgba(255,255,255,.1)}
.app-shell .brand-logo{flex-basis:58px;width:58px!important;max-width:58px!important}
.app-shell .brand-mark{background:linear-gradient(135deg,#21b3ad,#0e7d83);color:#fff;box-shadow:0 6px 15px rgba(0,0,0,.18)}
.app-shell .brand small{color:#d7e7f2}.app-shell .nav-label{margin:26px 12px 9px;color:#7894a9}
.app-shell nav{gap:5px}.app-shell nav a,.app-shell .nav-disabled,.app-shell .nav-parent{min-height:45px;padding:10px 12px;border-radius:8px;color:#c6d7e4}
.app-shell nav a:hover{background:rgba(255,255,255,.08);color:#fff}.app-shell .nav-icon{color:#78c9c5}
.app-shell .nav-submenu{margin:-2px 0 5px 36px;padding-left:11px;border-left-color:rgba(120,201,197,.2)}
.app-shell .nav-submenu a{min-height:34px;padding:6px 9px}.app-shell .nav-submenu a:before{color:#78c9c5}
.app-shell .sidebar-footer{border-top-color:rgba(255,255,255,.1);color:#9eb5c6}.app-shell .status-dot{background:#45d3a8;box-shadow:0 0 0 3px rgba(69,211,168,.12)}
.app-shell .topbar{height:72px;padding:0 42px;background:rgba(255,255,255,.92);border-bottom-color:var(--line);box-shadow:none}
.app-shell .environment{background:#edf4f8;color:#577086}.app-shell .topbar-link:hover{color:var(--teal)}
.app-shell .avatar,.app-shell .employee-list-photo-placeholder{background:var(--teal-soft);color:#087576}
.app-shell main{max-width:1500px;padding:34px 42px 50px}.app-shell .page-heading{margin-bottom:28px;padding-bottom:0;border-bottom:0}.app-shell .page-heading:after{display:none}
.app-shell .page-heading h1{font-size:29px}.app-shell h1{color:#17324a}.app-shell h2{color:#253b50}.app-shell .eyebrow{color:var(--teal)}
.app-shell .date-badge,.app-shell .pill{border-color:#d6e4ea;background:#fff;color:#567083}
.app-shell .cards{gap:18px;margin-bottom:22px}.app-shell .metric{min-height:138px;padding:22px;border-color:var(--line);border-radius:12px;box-shadow:var(--shadow)}
.app-shell .metric:after{inset:auto 0 0;height:3px;background:var(--accent)}.app-shell .metric-icon{width:48px;height:48px;border-radius:12px}.app-shell .metric strong{color:#1c344a;font-size:27px}
.app-shell .panel,.app-shell .form-card,.app-shell .table-card,.app-shell .request-card{border-color:var(--line);border-radius:12px;box-shadow:var(--shadow)}
.app-shell .form-card,.app-shell .table-card,.app-shell .panel{padding:24px}.app-shell .table-card{margin-top:22px}.app-shell .section-heading,.app-shell .panel-heading{padding-bottom:18px}
.app-shell .section-icon{border-bottom:0;background:var(--teal-soft);color:var(--teal)}.app-shell .form-grid{gap:18px 20px;padding-top:22px}.app-shell .actions{margin-top:22px;padding-top:18px}
.app-shell .button{border-radius:6px;background:linear-gradient(135deg,#139c9e,#087b82);box-shadow:0 5px 12px rgba(15,139,141,.18)}
.app-shell .button:hover{filter:brightness(1.05);transform:none}.app-shell .button.secondary{border:0;background:#eef2f5;color:#526779}
.app-shell .data-grid{margin-top:14px}.app-shell .data-grid th{padding:13px 12px;background:#f7f9fb;color:#627588;border-bottom:1px solid #e8edf1}.app-shell .data-grid td{padding:13px 12px}.app-shell .data-grid tr:hover td{background:#fbfdfd}
.app-shell .data-grid a,.app-shell .data-grid a.notification-open-button{background:var(--teal-soft);color:#08797a}.app-shell .request-menu{gap:18px}.app-shell .request-card{min-height:142px;padding:22px}.app-shell .request-card:after{inset:auto 0 0;height:4px;background:var(--request-color)}
@media(max-width:760px){.app-shell .sidebar{width:min(86vw,320px);padding:20px 16px}.app-shell .workspace{margin-left:0}.app-shell .topbar{height:62px;padding:0 14px}.app-shell main{padding:20px 14px 38px}.app-shell .page-heading{margin-bottom:20px}.app-shell .page-heading h1{font-size:24px}.app-shell .form-card,.app-shell .table-card,.app-shell .panel{padding:17px;border-radius:10px}.app-shell .cards{gap:12px}.app-shell .metric{min-height:105px;padding:17px}.app-shell .data-grid th,.app-shell .data-grid td{padding:11px 10px}}

/* Authenticated application appearance C: clean business. Layout remains unchanged. */
.app-shell{--navy:#25384c;--navy-2:#1d2d3f;--teal:#377d9e;--teal-soft:#eaf2f6;--ink:#293646;--muted:#748292;--line:#dfe4ea;--surface:#fff;--canvas:#f5f7fa;--shadow:none}
body:has(.app-shell){background:#f5f7fa}
.app-shell .sidebar{background:linear-gradient(180deg,#25384c 0%,#1d2d3f 100%);box-shadow:inset -1px 0 rgba(255,255,255,.08)}
.app-shell .brand-mark{background:linear-gradient(135deg,#4896b7,#347b9d);box-shadow:none}
.app-shell .brand small{color:#c7d6e1}.app-shell .nav-label{color:#91a8ba}
.app-shell nav a,.app-shell .nav-disabled,.app-shell .nav-parent{color:#d3dee7}
.app-shell nav a:hover{background:#fff;color:#25384c;transform:none}.app-shell nav a:hover .nav-icon{color:#377d9e}
.app-shell .nav-icon{color:#69c6c2}.app-shell .nav-submenu{border-left-color:rgba(105,198,194,.3)}
.app-shell .sidebar-footer{color:#aec0ce}.app-shell .status-dot{background:#63c6a7;box-shadow:none}
.app-shell .topbar{background:#fff;border-bottom-color:#dfe4ea}.app-shell .environment{background:#eaf2f6;color:#377d9e}
.app-shell .avatar,.app-shell .employee-list-photo-placeholder{background:#eaf2f6;color:#377d9e}
.app-shell h1{color:#293646}.app-shell h2{color:#34475a}.app-shell .eyebrow{color:#377d9e}
.app-shell .panel,.app-shell .form-card,.app-shell .table-card,.app-shell .request-card,.app-shell .metric{border-color:#dfe4ea;border-radius:6px;box-shadow:none}
.app-shell .request-card:hover{border-color:#9db8c8;box-shadow:none}.app-shell .request-card.active{box-shadow:none}
.app-shell .request-card>span{border-radius:7px}.app-shell .section-icon,.app-shell .module-icon.active{border-radius:6px;background:#eaf2f6;color:#377d9e}
.app-shell .item-language-card{border-color:#dfe4ea;border-radius:6px;background:#f8fafc}.app-shell .item-language-card h3{border-radius:4px;background:#eaf2f6;color:#377d9e}
.app-shell .form-grid input[type=text],.app-shell .form-grid input[type=date],.app-shell .form-grid input[type=email],.app-shell .form-grid input[type=datetime-local],.app-shell .form-grid input[type=time],.app-shell .form-grid input[type=number],.app-shell .form-grid select,.app-shell .form-grid textarea{border-color:#cfd8e0;border-radius:4px;background:#fff;color:#293646}
.app-shell .form-grid input:focus,.app-shell .form-grid select:focus,.app-shell .form-grid textarea:focus{border-color:#377d9e;box-shadow:0 0 0 3px rgba(55,125,158,.12)}
.app-shell .button{border-radius:4px;background:#377d9e;box-shadow:none}.app-shell .button:hover{background:#2f6e8c;filter:none}.app-shell .button.secondary{border:1px solid #d8e0e6;background:#f4f6f8;color:#526779}
.app-shell .data-grid th{background:#eef2f5;color:#465b6d;border-bottom-color:#d7e0e6}.app-shell .data-grid tr:hover td{background:#f5f9fb}
.app-shell .data-grid a,.app-shell .data-grid a.notification-open-button{border-radius:4px;background:#eaf2f6;color:#316f8d}

/* Authenticated application appearance D: warm business document. Layout remains unchanged. */
.app-shell{
  --navy:#172b3b;
  --navy-2:#102230;
  --teal:#356f75;
  --teal-soft:#e9f0ed;
  --ink:#263744;
  --muted:#748078;
  --line:#ddd9cc;
  --surface:#fffefa;
  --canvas:#f5f1e8;
  --brass:#aa8a47;
  --brass-soft:#f5efdf;
  --shadow:0 1px 2px rgba(29,43,50,.035);
  color:var(--ink);
}
body:has(.app-shell){
  background-color:var(--canvas);
  background-image:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.72),transparent 34%),
    repeating-linear-gradient(0deg,rgba(63,55,37,.012) 0,rgba(63,55,37,.012) 1px,transparent 1px,transparent 4px);
}
.app-shell .workspace{background:transparent}
.app-shell .sidebar{
  background:linear-gradient(180deg,#172d3e 0%,#102230 100%);
  box-shadow:inset -1px 0 rgba(204,181,126,.18);
}
.app-shell .brand{border-bottom-color:rgba(210,190,143,.23)}
.app-shell .brand-mark{
  border:1px solid rgba(218,195,139,.62);
  border-radius:6px;
  background:transparent;
  color:#ead7a6;
  box-shadow:none;
}
.app-shell .brand strong{letter-spacing:.45px}
.app-shell .brand small{color:#bdc9cc}
.app-shell .nav-label{color:#b9a36e;letter-spacing:1.9px}
.app-shell nav a,.app-shell .nav-disabled,.app-shell .nav-parent{border-radius:4px;color:#d5dee0}
.app-shell nav a:hover{
  background:rgba(238,225,193,.1);
  color:#fff9ec;
  box-shadow:inset 2px 0 #c3a45e;
}
.app-shell nav a:hover .nav-icon{color:#e2c982}
.app-shell .nav-icon{color:#bca86f}
.app-shell .nav-submenu{border-left-color:rgba(197,170,103,.32)}
.app-shell .nav-submenu a:before{color:#c7ab66}
.app-shell .nav-disabled em{border-color:rgba(218,195,139,.18);color:#aeb9bc}
.app-shell .sidebar-footer{border-top-color:rgba(210,190,143,.2);color:#bac6c9}
.app-shell .sidebar-footer small{color:#7f969d}
.app-shell .status-dot{background:#8db7a5;box-shadow:0 0 0 2px rgba(141,183,165,.13)}
.app-shell .topbar{
  background:rgba(255,254,250,.95);
  border-bottom-color:#d9d3c4;
  box-shadow:0 1px 0 rgba(126,106,61,.04);
}
.app-shell .environment{
  border-left:2px solid var(--brass);
  border-radius:0;
  background:transparent;
  color:#6d725f;
  letter-spacing:1.55px;
}
.app-shell .language-select{border-color:#d8d2c4;border-radius:3px;background:#fffefa;color:#44565e}
.app-shell .topbar-link{color:#68746f}
.app-shell .topbar-link:hover{color:#315f64;text-decoration:underline;text-underline-offset:4px}
.app-shell .avatar,.app-shell .employee-list-photo-placeholder{
  border:1px solid #d5ccba;
  background:#f4ecda;
  color:#6d5c31;
}
.app-shell footer{border-top-color:#d9d3c4;color:#8a8a7c;letter-spacing:.15px}
.app-shell .page-heading{
  position:relative;
  padding-bottom:15px;
  border-bottom:1px solid #d8d0bd;
}
.app-shell .page-heading:after{
  display:block;
  position:absolute;
  right:0;
  bottom:-2px;
  width:68px;
  height:3px;
  background:var(--brass);
  content:"";
}
.app-shell .page-heading h1{
  color:#183247;
  font-family:"Noto Serif TC","Microsoft JhengHei","Segoe UI",sans-serif;
  font-weight:700;
  letter-spacing:1.4px;
}
.app-shell h2{color:#2b414d}
.app-shell .eyebrow{color:#8b7543;letter-spacing:2.2px}
.app-shell .lead{color:#737d78}
.app-shell .date-badge,.app-shell .pill{
  border-color:#d8d0bd;
  border-radius:3px;
  background:#fffdf7;
  color:#66736e;
}
.app-shell .panel,.app-shell .form-card,.app-shell .table-card,.app-shell .request-card,.app-shell .metric{
  border-color:#dcd6c8;
  border-radius:5px;
  background:rgba(255,254,250,.97);
  box-shadow:var(--shadow);
}
.app-shell .panel-heading,.app-shell .section-heading{position:relative;border-bottom-color:#ded7c8}
.app-shell .panel-heading:after,.app-shell .section-heading:after{
  position:absolute;
  bottom:-1px;
  left:0;
  width:42px;
  height:1px;
  background:var(--brass);
  content:"";
}
.app-shell .section-heading strong,.app-shell .panel-heading strong{color:#2a404c;letter-spacing:.3px}
.app-shell .section-heading small{color:#85877d}
.app-shell .section-icon,.app-shell .module-icon.active{
  border:1px solid #d7ccb1;
  border-radius:3px;
  background:#f7f0df;
  color:#796331;
}
.app-shell .module-icon{border-radius:3px;background:#f0eee7;color:#6e7875}
.app-shell .module-list>div,.app-shell .module-list>a{border-bottom-color:#e8e2d7}
.app-shell .module-list a b{color:#8e7134}
.app-shell .metric:after{background:color-mix(in srgb,var(--accent) 66%,var(--brass))}
.app-shell .metric-icon{border-radius:4px}
.app-shell .request-card:after{height:2px;background:var(--brass)}
.app-shell .request-card:hover{
  border-color:#b9a777;
  box-shadow:0 3px 10px rgba(56,49,32,.06);
  transform:translateY(-1px);
}
.app-shell .request-card.active{border-color:#b9a777;box-shadow:inset 3px 0 var(--brass)}
.app-shell .request-card>span{
  border:1px solid #ddd3bd;
  border-radius:4px;
  background:#f6f0e3;
  color:#3c6870;
}
.app-shell .request-card strong{color:#29414d}
.app-shell .request-card small{color:#7e8782}
.app-shell .form-grid label{color:#55645f;letter-spacing:.08px}
.app-shell .form-grid input[type=text],.app-shell .form-grid input[type=date],.app-shell .form-grid input[type=email],.app-shell .form-grid input[type=datetime-local],.app-shell .form-grid input[type=time],.app-shell .form-grid input[type=number],.app-shell .form-grid select,.app-shell .form-grid textarea{
  border-color:#d5d0c5;
  border-radius:3px;
  background:#fffefa;
  color:#2c3e47;
}
.app-shell .form-grid input[readonly],.app-shell .form-grid textarea[readonly],.app-shell .form-grid select:disabled{background:#f1eee7;color:#727872}
.app-shell .form-grid input:focus,.app-shell .form-grid select:focus,.app-shell .form-grid textarea:focus{
  border-color:#8e7a49;
  box-shadow:0 0 0 3px rgba(170,138,71,.12);
  background:#fff;
}
.app-shell .form-grid .check{border-color:#d8d2c5;border-radius:3px;background:#faf7ef}
.app-shell .actions{border-top-color:#e2dcd0}
.app-shell .button{
  border:1px solid #244c58;
  border-radius:3px;
  background:#244c58;
  box-shadow:none;
  letter-spacing:.2px;
}
.app-shell .button:hover{border-color:#193b46;background:#193b46}
.app-shell .button.secondary{border:1px solid #cfc6b3;background:#fffdf7;color:#56645f}
.app-shell .button.secondary:hover{border-color:#a99056;background:#f8f1e2;color:#374b50}
.app-shell .alert{border-color:#ddc98f;border-radius:3px;background:#fff9e9;color:#715a25}
.app-shell .data-grid{background:#fffefa}
.app-shell .data-grid th{
  border-top:1px solid #ded7c8;
  border-bottom-color:#cfc5af;
  background:#f2eee5;
  color:#4f5f5e;
  letter-spacing:.7px;
}
.app-shell .data-grid td{border-bottom-color:#e7e1d7;color:#46575d}
.app-shell .data-grid tr:nth-child(even) td{background:rgba(247,243,234,.45)}
.app-shell .data-grid tr:hover td{background:#f7f0df}
.app-shell .data-grid a,.app-shell .data-grid a.notification-open-button{
  border:1px solid #d4c8ac;
  border-radius:3px;
  background:#f7f0df;
  color:#6a572d;
}
.app-shell .inline-search input{border-color:#d5d0c5;border-radius:3px;background:#fffefa}
.app-shell .item-language-card{border-color:#ddd6c8;border-radius:4px;background:#faf7ef}
.app-shell .item-language-card h3{border-radius:2px;background:#f4ecda;color:#6d5c31}
.app-shell .quick-panel{border-color:#284557;background:linear-gradient(150deg,#1c384a,#142b3a);color:#e4e7e3}
.app-shell .quick-panel p{color:#bac4c2}
.app-shell .primary-link{border-radius:3px;background:#8e7640}
.app-shell .security-note strong{color:#d8bd75}
@media(max-width:760px){
  .app-shell .page-heading{padding-bottom:12px}
  .app-shell .page-heading:after{width:48px}
  .app-shell .panel,.app-shell .form-card,.app-shell .table-card,.app-shell .request-card,.app-shell .metric{border-radius:4px}
}

/* Warm document refinement: disciplined spacing, horizontal module cards and line icons. */
.app-shell .nav-icon{display:block;flex:0 0 21px;width:21px;height:21px;background-color:currentColor;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:20px 20px;mask-position:center;mask-repeat:no-repeat;mask-size:20px 20px}
.app-shell .nav-icon-dashboard{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-employee,.app-shell .nav-icon-people{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 20c.5-4.1 2.6-6.2 6.5-6.2s6 2.1 6.5 6.2'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5.5 20c.5-4.1 2.6-6.2 6.5-6.2s6 2.1 6.5 6.2'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-approval{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2.8h6V4M8.5 12l2.2 2.2 4.8-5'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2.8h6V4M8.5 12l2.2 2.2 4.8-5'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-sales{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 7.5h18v12H3zM8 7.5V5h8v2.5M3 12h18'/%3E%3Cpath d='M10 11h4v2h-4z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 7.5h18v12H3zM8 7.5V5h8v2.5M3 12h18'/%3E%3Cpath d='M10 11h4v2h-4z'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-workorder{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.8 5.2a5 5 0 0 0-6.4 6.4L3 17l4 4 5.4-5.4a5 5 0 0 0 6.4-6.4l-3 3-3-3z'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.8 5.2a5 5 0 0 0-6.4 6.4L3 17l4 4 5.4-5.4a5 5 0 0 0 6.4-6.4l-3 3-3-3z'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-purchase{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2 11h10.5l2-7H6.2M9 19.5h.1M17 19.5h.1'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2 11h10.5l2-7H6.2M9 19.5h.1M17 19.5h.1'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-inventory,.app-shell .nav-icon-item{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4-8 4zM4 7v10l8 4 8-4V7M12 11v10'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-finance{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 8.5h-4.2a2 2 0 0 0 0 4H13a2 2 0 0 1 0 4H9M12 6.5v11'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 8.5h-4.2a2 2 0 0 0 0 4H13a2 2 0 0 1 0 4H9M12 6.5v11'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-report{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-center,.app-shell .nav-icon-supplier{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 21V5h10v16M14 10h6v11M8 9h2M8 13h2M8 17h2M17 14h1M17 17h1M2 21h20'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 21V5h10v16M14 10h6v11M8 9h2M8 13h2M8 17h2M17 14h1M17 17h1M2 21h20'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-partner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M2.5 20c.4-4 2.2-6 5.5-6s5.1 2 5.5 6M14 15c3.8-.7 6.4 1 7 5'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M2.5 20c.4-4 2.2-6 5.5-6s5.1 2 5.5 6M14 15c3.8-.7 6.4 1 7 5'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-number{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 3L7 21M17 3l-2 18M4 9h17M3 15h17'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 3L7 21M17 3l-2 18M4 9h17M3 15h17'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .nav-icon-permission{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v5c0 5-3.3 8.3-8 10-4.7-1.7-8-5-8-10V6zM8.5 12l2.2 2.2 4.8-5'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v5c0 5-3.3 8.3-8 10-4.7-1.7-8-5-8-10V6zM8.5 12l2.2 2.2 4.8-5'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .request-menu{gap:14px;margin-bottom:18px}
.app-shell .request-card{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;grid-template-rows:auto auto;column-gap:15px;row-gap:4px;align-content:center;min-height:96px;padding:16px 18px}
.app-shell .request-card:before{grid-column:3;grid-row:1/3;align-self:center;color:#927a43;content:"›";font-family:Georgia,serif;font-size:25px;font-weight:400;line-height:1}
.app-shell .request-card>span{grid-column:1;grid-row:1/3;width:46px;height:46px;margin:0;font-size:15px}
.app-shell .request-card strong{grid-column:2;grid-row:1;align-self:end;font-size:14px;letter-spacing:.2px}
.app-shell .request-card small{grid-column:2;grid-row:2;align-self:start;margin:0}
.app-shell .form-card,.app-shell .table-card,.app-shell .panel{padding:22px 22px 20px}
.app-shell .section-heading,.app-shell .panel-heading{min-height:48px;padding-bottom:13px}
.app-shell .section-heading>div{gap:12px}
.app-shell .section-icon{flex:0 0 32px;width:32px;height:32px;font-size:0}
.app-shell .section-icon:before{width:17px;height:17px;background:currentColor;content:"";-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h10l4 4v14H5zM14 3v5h5M8 13h8M8 17h6'/%3E%3C/g%3E%3C/svg%3E") center/17px 17px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h10l4 4v14H5zM14 3v5h5M8 13h8M8 17h6'/%3E%3C/g%3E%3C/svg%3E") center/17px 17px no-repeat}
.app-shell .section-icon.list:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='4' width='18' height='16' rx='1'/%3E%3Cpath d='M3 9h18M3 14h18M9 4v16'/%3E%3C/g%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='4' width='18' height='16' rx='1'/%3E%3Cpath d='M3 9h18M3 14h18M9 4v16'/%3E%3C/g%3E%3C/svg%3E")}
.app-shell .form-grid{column-gap:18px;row-gap:14px;padding-top:18px}
.app-shell .form-grid label{gap:6px;line-height:1.35}
.app-shell .form-grid input[type=text],.app-shell .form-grid input[type=date],.app-shell .form-grid input[type=email],.app-shell .form-grid input[type=datetime-local],.app-shell .form-grid input[type=time],.app-shell .form-grid input[type=number],.app-shell .form-grid select{height:38px}
.app-shell .form-grid textarea{min-height:74px}
.app-shell .form-grid .check{height:38px}
.app-shell .form-card h3{padding-left:10px;border-left:2px solid var(--brass);font-size:14px;letter-spacing:.25px}
.app-shell .actions{justify-content:flex-end;gap:9px;margin-top:18px;padding-top:15px}
.app-shell .button{min-width:112px;padding:9px 18px}
.app-shell .button.compact{min-width:auto;padding:8px 14px}
.app-shell .table-card{margin-top:18px}
.app-shell .table-card .section-heading{gap:18px}
.app-shell .inline-search{justify-content:flex-end}
.app-shell .inline-search input{min-width:210px}
.app-shell .data-grid{margin-top:12px}
.app-shell .data-grid th,.app-shell .data-grid td{padding:11px 11px}
.app-shell .data-grid th{font-size:10px}
@media(max-width:760px){
  .app-shell .request-menu{gap:10px}
  .app-shell .request-card{grid-template-columns:42px minmax(0,1fr) 16px;min-height:88px;padding:14px;column-gap:12px}
  .app-shell .request-card>span{width:40px;height:40px}
  .app-shell .form-card,.app-shell .table-card,.app-shell .panel{padding:16px}
  .app-shell .section-heading{flex-wrap:wrap;min-height:0}
  .app-shell .section-heading>.inline-search{flex-basis:100%}
  .app-shell .form-grid{row-gap:13px}
  .app-shell .actions{justify-content:stretch}
}

/* Compact document fields: labels stay beside controls instead of stacking above them. */
.app-shell .form-grid{--field-label-width:92px;row-gap:12px}
.app-shell .form-grid label:not(.check){
  display:grid;
  grid-template-columns:var(--field-label-width) minmax(0,1fr);
  grid-auto-rows:auto;
  align-items:center;
  column-gap:10px;
  row-gap:5px;
  min-width:0;
  min-height:38px;
  color:#53615e;
  font-size:11.5px;
  line-height:1.35;
  text-align:right;
}
.app-shell .form-grid label:not(.check)>*{grid-column:2;min-width:0;text-align:left}
.app-shell .form-grid label:not(.check)>small,.app-shell .form-grid label:not(.check)>.field-hint{margin-top:-1px;color:#898b82;font-size:10px;line-height:1.45}
.app-shell .form-grid label:not(.check):has(textarea){align-items:start;padding-top:9px}
.app-shell .form-grid label:not(.check):has(textarea)>textarea{margin-top:-9px}
.app-shell .form-grid label.item-language-selector{max-width:360px}
.app-shell .form-grid .customer-search-control{grid-column:2}
@media(max-width:500px){
  .app-shell .form-grid{--field-label-width:80px}
  .app-shell .form-grid label:not(.check){column-gap:9px;font-size:11px}
}

/* Dense desktop field grid: tighter gutters and a fifth column on wide screens. */
.app-shell .form-grid{--field-label-width:82px;column-gap:10px}
.app-shell .form-grid label:not(.check){column-gap:8px}
@media(min-width:1500px){
  .app-shell .form-grid{grid-template-columns:repeat(5,minmax(0,1fr));column-gap:10px}
}
@media(max-width:760px){
  .app-shell .form-grid{--field-label-width:76px}
}
@media(max-width:500px){
  .app-shell .form-grid{--field-label-width:70px;column-gap:0}
  .app-shell .form-grid label:not(.check){column-gap:8px}
}

/* Sidebar hover: restore the original high-contrast reversed highlight. */
.app-shell nav a:hover{
  background:#fff;
  color:#172b3b;
  box-shadow:inset 3px 0 var(--brass);
}
.app-shell nav a:hover .nav-icon{color:#172b3b}

/* High-visibility warm white edition for comfortable long-session reading. */
.app-shell{
  --teal:#2d6973;
  --teal-soft:#e6f0f1;
  --ink:#1f303b;
  --muted:#526168;
  --line:#c8d0d4;
  --surface:#fff;
  --canvas:#f2f4f4;
  --shadow:0 1px 3px rgba(25,43,52,.06);
  color:var(--ink);
}
body:has(.app-shell){background:#f2f4f4;background-image:none}
.app-shell .topbar{background:#fff;border-bottom-color:#c8d0d4}
.app-shell .environment{color:#4e5e62}
.app-shell .language-select{border-color:#aeb9bf;background:#fff;color:#263b45}
.app-shell .topbar-link{color:#465a62;font-weight:600}
.app-shell .user-chip strong{color:#243740}.app-shell .user-chip small{color:#5b6970}
.app-shell footer{border-top-color:#c8d0d4;color:#596970}
.app-shell .page-heading{border-bottom-color:#c7ced1}
.app-shell .page-heading h1{color:#132f40}
.app-shell .eyebrow{color:#6b5423}
.app-shell .lead{color:#526168}
.app-shell .date-badge,.app-shell .pill{border-color:#b8c2c7;background:#fff;color:#40555e}
.app-shell .panel,.app-shell .form-card,.app-shell .table-card,.app-shell .request-card,.app-shell .metric{border-color:#c8d0d4;background:#fff;box-shadow:var(--shadow)}
.app-shell .panel-heading,.app-shell .section-heading{border-bottom-color:#cfd6d9}
.app-shell .section-heading strong,.app-shell .panel-heading strong{color:#213945}
.app-shell .section-heading small,.app-shell .module-list small{color:#5b696f}
.app-shell .required-note{color:#5b696f;font-size:11px;font-weight:600}
.app-shell .section-icon,.app-shell .module-icon.active{border-color:#c2ab70;background:#f3eddf;color:#59471d}
.app-shell .module-icon{background:#edf0f1;color:#4f626a}
.app-shell .request-card strong{color:#203b48}
.app-shell .request-card small{color:#59686e}
.app-shell .request-card>span{border-color:#c6b174;background:#f3eddf;color:#285d66}
.app-shell .request-card:hover{border-color:#927838;background:#fff}
.app-shell .request-card.active{border-color:#927838}
.app-shell .form-grid label:not(.check){color:#344b53;font-size:12px;font-weight:650}
.app-shell .form-grid label:not(.check)>small,.app-shell .form-grid label:not(.check)>.field-hint{color:#56666d}
.app-shell .form-grid input[type=text],.app-shell .form-grid input[type=date],.app-shell .form-grid input[type=email],.app-shell .form-grid input[type=datetime-local],.app-shell .form-grid input[type=time],.app-shell .form-grid input[type=number],.app-shell .form-grid select,.app-shell .form-grid textarea{border-color:#aeb9bf;background:#fff;color:#1f333d}
.app-shell .form-grid input::placeholder,.app-shell .form-grid textarea::placeholder{color:#65757c;opacity:1}
.app-shell .form-grid input[readonly],.app-shell .form-grid textarea[readonly],.app-shell .form-grid select:disabled{border-color:#b9c2c7;background:#e9edef;color:#4d5c62}
.app-shell .form-grid input:focus,.app-shell .form-grid select:focus,.app-shell .form-grid textarea:focus{border-color:#2d6973;box-shadow:0 0 0 3px rgba(45,105,115,.18)}
.app-shell .form-grid .check{border-color:#b8c2c7;background:#f2f4f4;color:#344b53;font-weight:600}
.app-shell .actions{border-top-color:#d3d9dc}
.app-shell .button{border-color:#214f59;background:#214f59;color:#fff;font-weight:700}
.app-shell .button:hover{border-color:#173b44;background:#173b44}
.app-shell .button.secondary{border-color:#aab6bc;background:#fff;color:#344b53}
.app-shell .button.secondary:hover{border-color:#6d7d84;background:#edf1f2;color:#203740}
.app-shell .inline-search input{border-color:#aeb9bf;background:#fff;color:#1f333d}
.app-shell .data-grid{background:#fff}
.app-shell .data-grid th{border-top-color:#c7d0d4;border-bottom-color:#b9c4c9;background:#e8edef;color:#304750;font-weight:850}
.app-shell .data-grid td{border-bottom-color:#d2d9dc;color:#30464f}
.app-shell .data-grid tr:nth-child(even) td{background:#f7f8f8}
.app-shell .data-grid tr:hover td{background:#e9f0f1}
.app-shell .data-grid a,.app-shell .data-grid a.notification-open-button{border-color:#b49b5c;background:#f3eddf;color:#4f3e18}
.app-shell .alert{border-color:#bd9d48;background:#fff7dc;color:#523f10}
.app-shell .item-language-card{border-color:#c8d0d4;background:#f5f7f7}
.app-shell .item-language-card h3{background:#ece6d7;color:#4f3e18}
.app-shell .sidebar-footer{color:#c3d0d4}.app-shell .sidebar-footer small{color:#a7b8be}
