@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,'Noto Sans Thai',system-ui,sans-serif;color:#172a3f;background:#f2f5f9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.app{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:#10243a;color:#e6edf6;display:flex;flex-direction:column;padding:25px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 11px 28px;border-bottom:1px solid #294057}.monogram{width:47px;height:47px;border-radius:13px;background:#e4ac49;color:#14273d;font-weight:800;font-size:18px;display:grid;place-items:center}.brand-name{font-size:18px;letter-spacing:.08em;font-weight:800}.brand-sub{font-size:9px;letter-spacing:.08em;color:#a5b7c9;line-height:1.5}.nav-group{font-size:10px;letter-spacing:.14em;color:#7893ad;padding:26px 13px 10px;font-weight:800}.nav{display:flex;gap:12px;align-items:center;border:0;color:#b8cadd;background:transparent;width:100%;padding:12px 14px;border-radius:11px;text-align:left;font-size:13px;font-weight:600;margin:3px 0}.nav:hover{background:#203750}.nav.active{background:#2c4966;color:#fff;box-shadow:inset 3px 0 #efb34b}.nav-ico{width:22px;font-size:18px;text-align:center}.sidebottom{margin-top:auto;border-top:1px solid #294057;padding:17px 10px 0;font-size:11px;color:#adc0d0;line-height:1.9}.online-dot{width:8px;height:8px;display:inline-block;background:#37bb84;border-radius:50%;margin-right:7px}.main{min-width:0}.topbar{height:83px;background:white;border-bottom:1px solid #e5ebf0;display:flex;align-items:center;justify-content:space-between;padding:0 37px;gap:12px}.head-title{font-weight:800;font-size:19px}.head-sub{font-size:12px;color:#8391a2;margin-top:4px}.userbox{display:flex;align-items:center;gap:12px;font-size:12px}.avatar{background:#e9f1f9;color:#174a76;border-radius:50%;height:34px;width:34px;display:grid;place-items:center;font-weight:800}.content{max-width:1600px;margin:auto;padding:29px 36px 60px}.intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:25px}.intro h1{font-size:27px;margin:0 0 7px;letter-spacing:-.025em}.intro p{font-size:13px;color:#78899c;margin:0}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid #dce4eb;background:white;color:#294159;border-radius:9px;padding:10px 14px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:37px}.btn:hover{border-color:#82a3c6}.btn.primary{background:#1565a3;border-color:#1565a3;color:white}.btn.primary:hover{background:#12568c}.btn.danger{color:#b23b40;border-color:#f5d5d8}.btn.small{padding:5px 9px;min-height:26px;font-size:11px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{background:#fff;border-radius:13px;padding:20px 23px;border:1px solid #e6ebf1;min-height:125px}.metric-h{font-size:12px;color:#788da0;display:flex;justify-content:space-between}.metric-i{background:#eff6fd;color:#2876af;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:16px}.metric-v{font-size:31px;letter-spacing:-.045em;font-weight:800;margin:8px 0 3px}.metric-f{font-size:11px;color:#80909f}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:18px;margin-top:20px}.panel{background:#fff;border:1px solid #e5ebf0;border-radius:14px;overflow:hidden;margin-top:18px}.split .panel{margin:0}.panel-h{padding:19px 22px;border-bottom:1px solid #eef1f5;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-h h3{font-size:14px;margin:0}.muted{font-size:11px;color:#8a9aab}.panel-b{padding:16px 21px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.data-table th{background:#f8fafc;color:#8492a1;font-size:10px;font-weight:800;white-space:nowrap;letter-spacing:.025em}.data-table td,.data-table th{padding:15px 17px;border-bottom:1px solid #edf1f5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f9fbfe}.name{font-weight:800;color:#19334c}.tiny{font-size:10px;color:#899aab;margin-top:4px}.pill{display:inline-block;padding:5px 9px;border-radius:100px;background:#edf2f8;color:#5d7087;font-size:10px;font-weight:800;white-space:nowrap}.pill.in-progress,.pill.confirmed{background:#e2f0ff;color:#1870b9}.pill.completed,.pill.passed{background:#e5f7ee;color:#15845f}.pill.planned,.pill.pending{background:#fff2d7;color:#a46f0a}.pill.cancelled,.pill.blocked{background:#ffebeb;color:#ba4d4d}.line{display:flex;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #f0f3f6;font-size:12px}.line:last-child{border:0}.line strong{font-size:12px}.line small{display:block;color:#8b9bad;margin-top:5px}.bar{height:6px;background:#eef2f5;border-radius:10px;overflow:hidden;margin-top:10px}.bar>div{background:#2779b5;height:100%;border-radius:10px}.notice{background:#fff9e8;color:#8c671b;border:1px solid #f7e6bd;border-radius:10px;padding:13px 15px;font-size:12px;margin-bottom:18px}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control{padding:10px 12px;border:1px solid #dfe7ef;border-radius:9px;background:white;color:#324961;font-size:12px;min-height:38px}.control:focus{outline:2px solid #b2d6f6;border-color:#5fa4dc}.search{min-width:230px}.empty{padding:37px;text-align:center;color:#91a1af;font-size:13px}.schedule{display:grid;grid-template-columns:125px repeat(7,minmax(105px,1fr));min-width:850px}.schedule .day{background:#f8fafc;padding:12px 10px;border-bottom:1px solid #e8eff5;border-right:1px solid #eef2f5;font-size:11px;text-align:center;font-weight:700}.schedule .time-label{padding:16px 12px;border-bottom:1px solid #edf1f5;color:#708497;font-size:11px}.schedule .cell{padding:8px;min-height:76px;border-bottom:1px solid #edf1f5;border-right:1px solid #edf1f5}.event{background:#e7f2fc;border-left:3px solid #2079ba;border-radius:5px;padding:7px 8px;margin-bottom:5px;font-size:10px;line-height:1.5}.event strong{display:block;font-size:10px}.event.booking{background:#fff3df;border-left-color:#d9a02d}.legend{display:flex;gap:20px;align-items:center;font-size:11px;color:#718497;margin:10px 0 0}.legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:2px;background:#2079ba;margin-right:7px}.legend .book:before{background:#e4ae47}.modal-backdrop{position:fixed;inset:0;background:#091d33a6;z-index:20;display:flex;justify-content:center;align-items:center;padding:20px}.modal{width:min(680px,100%);max-height:94vh;overflow:auto;background:white;border-radius:16px;box-shadow:0 24px 80px #08192d55}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:22px 26px;border-bottom:1px solid #edf1f5}.modal-head h2{margin:0;font-size:17px}.modal-body{padding:22px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;color:#596e82}.field.full{grid-column:1/-1}.field .control{width:100%;font-size:12px;font-weight:400}.field textarea{resize:vertical;min-height:70px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 26px;border-top:1px solid #eef1f5}.toast{position:fixed;right:25px;bottom:25px;background:#132e48;color:white;border-radius:10px;padding:14px 18px;z-index:40;font-size:12px;max-width:400px;box-shadow:0 10px 30px #0003}.toast.error{background:#993d3c}.login-screen{min-height:100vh;background:linear-gradient(125deg,#10263d,#15466e);display:grid;place-items:center;padding:25px}.login-card{width:min(450px,100%);background:#fff;padding:33px;border-radius:18px;box-shadow:0 22px 90px #091f35aa}.login-card h1{font-size:23px;margin:20px 0 7px}.login-card p{color:#8292a2;font-size:13px;line-height:1.8}.login-card .field{margin-top:14px}.login-card .btn{width:100%;margin-top:20px}.login-card .monogram{width:64px;height:64px;font-size:23px}.demo-tag{color:#915f03;background:#fff2d7;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800}.foot-note{font-size:11px;color:#97a6b4;margin-top:20px;line-height:1.7}.link{border:0;background:transparent;color:#2072a6;font-size:11px;font-weight:700;cursor:pointer;padding:0}.tabs{display:flex;gap:4px;border-bottom:1px solid #e5edf4;margin-bottom:14px}.tab{padding:12px 15px;border:0;background:transparent;color:#7f91a4;font-weight:700;font-size:12px}.tab.active{border-bottom:2px solid #1d70b1;color:#1b68a2}@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.content{padding:25px}.topbar{padding:0 25px}}@media(max-width:750px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:15px}.brand{padding:0 0 12px}.nav-group,.sidebottom{display:none}.nav-list{display:flex;overflow-x:auto;gap:4px;margin-top:12px}.nav{white-space:nowrap;width:auto;margin:0}.topbar{height:70px;padding:0 17px}.content{padding:18px}.intro{align-items:flex-start;flex-direction:column}.grid4{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:15px}.metric-v{font-size:26px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.head-title{font-size:15px}.userbox .muted{display:none}}@media(max-width:430px){.grid4{grid-template-columns:1fr}.search{min-width:0;width:100%}}
/* PMJ operations dashboard v3: additive, does not affect existing module forms */
:root{--pmj-navy:#10243a;--pmj-blue:#137ac8;--pmj-sky:#e8f3fd;--pmj-border:#e3ebf3}
body{background:#f4f7fb}
.sidebar{background:linear-gradient(180deg,#0d2136,#122b45);box-shadow:3px 0 20px #1229450b}
.monogram{background:linear-gradient(135deg,#f4bc5f,#d99b35);box-shadow:0 5px 17px #0002}
.brand-name-small{display:block;font-size:8px;font-weight:700;letter-spacing:.15em;color:#85b6de;margin-top:3px}
.nav.active{background:#234b70;box-shadow:inset 3px 0 #f4b34f}
.topbar{box-shadow:0 2px 12px #10243a07}
.content{max-width:1700px}
.dash-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}
.dash-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#2a8ac7;margin-bottom:10px}
.dash-welcome h1{font-size:26px;letter-spacing:-.035em;line-height:1.35;margin:0;color:#142b44}
.dash-welcome h1 span{font-size:16px;font-weight:600;color:#8295a8;margin-left:8px;white-space:nowrap}
.dash-welcome p{font-size:12px;color:#8a9bad;margin:8px 0 0}
.dash-buttons{display:flex;gap:10px;flex-wrap:wrap}
.dash-toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px;gap:14px}
.dash-period{font-size:11px;color:#587189;font-weight:600}.dot-online{height:7px;width:7px;background:#2ebe88;display:inline-block;border-radius:100%;margin-right:6px;box-shadow:0 0 0 3px #e4f9f0}.dash-today{margin-left:12px;color:#9aa9b9;font-weight:400}
.dash-range{font-size:11px;font-weight:600;color:#71869c;display:flex;align-items:center;gap:10px}.dash-range .control{min-height:34px;padding:6px 10px}
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.dash-kpi{min-height:145px;border:1px solid var(--pmj-border);border-radius:15px;background:#fff;padding:20px 21px;box-shadow:0 4px 22px #112f4a07;position:relative;overflow:hidden}
.dash-kpi:before{content:'';height:4px;position:absolute;top:0;left:0;right:0;background:#2187ce}.dash-kpi.kpi-progress:before{background:#2cae94}.dash-kpi.kpi-booking:before{background:#f1b04f}.dash-kpi.kpi-complete:before{background:#8d8ae5}
.kpi-top{display:flex;justify-content:space-between;align-items:center;color:#607b94;font-size:12px;font-weight:700}.kpi-icon{width:34px;height:34px;background:#ebf5fc;border-radius:10px;display:grid;place-items:center;color:#1685c9;font-size:18px}.kpi-progress .kpi-icon{background:#e5f7f0;color:#1fa786}.kpi-booking .kpi-icon{background:#fff3de;color:#c98c2b}.kpi-complete .kpi-icon{background:#f0efff;color:#8178cc}
.kpi-number{font-size:36px;color:#112b47;font-weight:800;letter-spacing:-.035em;margin:6px 0}.kpi-number small{font-size:11px;color:#95a5b7;font-weight:500;letter-spacing:0}.kpi-bottom{color:#94a6b6;font-size:10px}
.dash-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:18px}
.dash-card{border:1px solid var(--pmj-border);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 5px 28px #16385007;min-width:0}
.dash-card-head{padding:20px 22px 17px;border-bottom:1px solid #f0f3f7;display:flex;justify-content:space-between;align-items:center;gap:12px}.dash-card-head h3{font-size:14px;color:#16314b;margin:0}.dash-card-head h3 span{font-size:11px;font-weight:500;color:#99a8b5;margin-left:7px}.dash-card-head p{font-size:11px;color:#9babba;margin:7px 0 0}.dash-count{font-size:11px;font-weight:800;background:#f2f7fc;border-radius:999px;color:#437494;padding:7px 11px;white-space:nowrap}
.status-chart{display:flex;align-items:center;gap:14px;padding:22px;min-height:235px}.donut-wrap{width:200px;max-width:48%;flex-shrink:0;position:relative}.donut-wrap svg{width:100%;display:block}.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut-center strong{font-size:31px;color:#14314d;line-height:1.1}.donut-center small{font-size:10px;color:#9eacba;margin-top:5px}
.status-legend{flex:1;min-width:0}.legend-row{display:flex;align-items:center;gap:7px;font-size:11px;padding:9px 0;border-bottom:1px solid #f3f5f8}.legend-row:last-child{border:0}.legend-name{display:flex;align-items:center;gap:8px;flex:1;white-space:nowrap}.legend-name i{height:8px;width:8px;border-radius:50%;display:inline-block;flex:none}.legend-row strong{font-size:12px;color:#263e54}.legend-row small{min-width:32px;text-align:right;color:#96a7b7}
.service-bars{padding:18px 24px 20px;min-height:235px}.service-line{margin:0 0 16px}.service-caption{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#465f74}.service-caption b{color:#305f83}.service-track{height:8px;background:#eef3f8;border-radius:99px;overflow:hidden;margin-top:9px}.service-track>div{height:100%;border-radius:99px;background:linear-gradient(90deg,#1990da,#43b9db)}
.chart-empty{height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#91a5b5;font-size:12px}.chart-empty span{font-size:28px;color:#c8d7e5;margin-bottom:9px}.chart-empty strong{font-size:12px;color:#7390a6}.chart-empty p{margin:7px 0 0;font-size:11px}.chart-empty.compact{height:145px}
.upcoming-list{padding:4px 20px 12px}.upcoming-row{display:flex;gap:13px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f3f7}.upcoming-row:last-child{border:0}.upcoming-day{height:46px;width:48px;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:none;background:#edf5fe;border-radius:10px}.upcoming-day strong{font-size:18px;color:#176da8}.upcoming-day small{font-size:10px;color:#7895ad}.upcoming-info{min-width:0;flex:1}.upcoming-info strong{font-size:11px;color:#243c53;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upcoming-info span{font-size:10px;color:#9baab7;display:block;margin-top:6px}.upcoming-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.upcoming-meta small{font-size:10px;color:#96a6b6}
.quick-links{padding:12px 18px}.quick-links button{width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #f0f3f6;display:flex;align-items:center;gap:11px;padding:11px 4px;cursor:pointer}.quick-links button:hover{background:#f7fbff}.quick-links button:last-child{border:0}.quick-links button>span{width:35px;height:35px;border-radius:10px;background:#edf5fd;color:#267db6;display:grid;place-items:center;font-size:16px}.quick-links button>div{flex:1}.quick-links strong{font-size:11px;color:#223d55;display:block}.quick-links small{font-size:10px;color:#9caebd;display:block;margin-top:4px}.quick-links b{color:#a5b6c7;font-size:19px}.attention{margin:0 20px 17px;border-radius:9px;padding:11px 12px;background:#ecf8f2;color:#1b876a;font-size:11px;font-weight:700}
.dash-recent{margin-top:18px}.dash-recent .data-table th{font-size:10px}.dash-recent .data-table td{padding:14px 17px}
@media(max-width:1200px){.dash-grid{grid-template-columns:1fr}.dash-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:750px){.dash-welcome{align-items:flex-start;flex-direction:column}.dash-welcome h1{font-size:21px}.dash-welcome h1 span{display:block;margin:3px 0 0}.dash-toolbar{align-items:flex-start;flex-wrap:wrap}.dash-today{display:block;margin:6px 0 0}.dash-kpis{gap:10px}.dash-kpi{padding:15px;min-height:125px}.kpi-number{font-size:29px}.status-chart{flex-direction:column}.donut-wrap{max-width:none;width:190px}.status-legend{width:100%}.dash-card-head{padding:16px}.dash-card-head h3 span{display:block;margin:5px 0 0}.dash-welcome .btn{font-size:11px}}
@media(max-width:420px){.dash-kpis{grid-template-columns:1fr}}

/* PMJ V4 Personalization and accessible application shell */
:root{--accent:#0878c9;--app-bg:#f2f6fb;--surface:#ffffff;--surface-subtle:#f8fafd;--ink:#192d42;--subink:#708397;--line:#e2eaf2;--sidebar-bg:#10283f;color-scheme:light}
html[data-theme="dark"]{--app-bg:#101a2b;--surface:#19283d;--surface-subtle:#22344b;--ink:#eaf2fb;--subink:#a9bfd3;--line:#33475e;--sidebar-bg:#091727;color-scheme:dark}
body,.main{background:var(--app-bg);color:var(--ink)}
.sidebar{background:var(--sidebar-bg)}
.topbar,.panel,.metric,.dash-card,.dash-kpi,.modal{background:var(--surface);color:var(--ink);border-color:var(--line)}
.topbar{border-bottom:1px solid var(--line)}
.panel-h,.dash-card-head,.data-table td,.data-table th,.line,.modal-head,.modal-foot{border-color:var(--line)}
.data-table th,.schedule .day,.data-table tbody tr:hover{background:var(--surface-subtle);color:var(--subink)}
.data-table td,.name,.head-title,.panel h3,.dash-card h3,.intro h1,.kpi-number,.settings-panel strong{color:var(--ink)}
.tiny,.muted,.intro p,.dash-card p,.settings-copy,.help-text,.settings-sub{color:var(--subink)}
.control,.btn,.choice{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:white}
.nav.active{box-shadow:inset 3px 0 var(--accent)}
.link{color:var(--accent)}
.dash-welcome{background:linear-gradient(110deg,var(--surface),var(--surface-subtle));border-color:var(--line)}
.dash-kpi,.dash-card,.panel{box-shadow:0 5px 25px rgba(15,36,59,.035)}
.dash-kpi:hover,.dash-card:hover{box-shadow:0 10px 28px rgba(15,36,59,.075)}
.dash-kpi:before,.service-track>div{background:var(--accent)}
html[data-theme="dark"] .dash-toolbar,html[data-theme="dark"] .quick-links button,html[data-theme="dark"] .upcoming-row,html[data-theme="dark"] .notice{background:var(--surface-subtle);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .bar,html[data-theme="dark"] .service-track{background:#33445b}
html[data-theme="dark"] .kpi-bottom,html[data-theme="dark"] .dash-welcome p,html[data-theme="dark"] .dash-card-head p{color:var(--subink)}
html[data-theme="dark"] .pill{filter:saturate(.8)}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.settings-panel{margin-top:0}.settings-panel.full-span{grid-column:1/-1}.settings-panel .panel-b{padding:22px}
.setting-label{font-size:12px;font-weight:800;color:var(--ink);margin:21px 0 10px}.setting-label:first-child{margin-top:0}
.choice-row{display:flex;gap:8px;flex-wrap:wrap}.choice{border-radius:11px;padding:11px 15px;font-weight:700;font-size:12px}
.choice.selected{background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-color:var(--accent);color:var(--accent)}
.swatches{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.swatch{width:29px;height:29px;border-radius:100%;background:var(--swatch);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line);cursor:pointer}.swatch.selected{box-shadow:0 0 0 2px var(--accent)}
.custom-accent{font-size:11px;display:flex;align-items:center;gap:8px;color:var(--subink)}.custom-accent input{width:35px;height:32px;border:0;background:transparent;cursor:pointer}
.full-control{width:100%}.help-text{font-size:11px;line-height:1.65;margin-top:10px}
.nav-setting{display:grid;grid-template-columns:minmax(140px,1fr) minmax(120px,1fr) 74px;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}.nav-setting:last-child{border:0}
.nav-setting label{font-size:11px;font-weight:700;color:var(--ink)}.nav-setting .control{min-width:0;width:100%;font-size:11px}.mini-icon{color:var(--accent);display:inline-flex;width:24px;font-size:18px}
.settings-sub,.settings-copy{font-size:11px}.settings-copy{line-height:1.8;margin:0 0 10px}
.system-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.system-actions>div{flex:1;min-width:250px}.system-actions p{font-size:11px;color:var(--subink);line-height:1.7}
.profile-banner{display:flex;align-items:center;gap:15px;margin-bottom:22px;padding:17px;border-radius:12px;background:var(--surface-subtle)}.profile-avatar{height:53px;width:53px;border-radius:16px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:23px;font-weight:800}.settings-panel .field{margin-bottom:14px}
.security-note{margin-top:16px;font-size:11px;color:var(--subink)}.header-theme,.header-settings{font-size:16px;min-width:32px}.nav-system{padding-top:22px}
html[data-density="compact"] .data-table td,html[data-density="compact"] .data-table th{padding:9px 12px}html[data-density="compact"] .dash-kpi{padding:14px}html[data-density="compact"] .nav{padding:7px 12px}html[data-density="compact"] .panel-b{padding:12px}
html[data-font-scale="large"]{font-size:18px}html[data-font-scale="large"] .data-table,html[data-font-scale="large"] .nav,html[data-font-scale="large"] .control,html[data-font-scale="large"] .field{font-size:14px}html[data-font-scale="large"] .tiny,html[data-font-scale="large"] .muted{font-size:12px}
@media(max-width:1060px){.settings-grid{grid-template-columns:1fr}}
@media(max-width:750px){.nav-system{padding:10px 0 2px}.sidebar .nav-list{padding-bottom:3px}.header-settings{display:none}.settings-grid{gap:12px}.nav-setting{grid-template-columns:1fr 1fr 65px}.nav-setting label{grid-column:1/-1}.userbox>div:not(.avatar){display:none}}
@media(max-width:420px){.nav-setting{grid-template-columns:1fr 62px}.nav-setting label{grid-column:1/-1}.custom-accent{width:100%}}

/* Smart Calendar integration - scoped classes, inherited V4 styling elsewhere */
.smart-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;border:1px solid #e5eaf1;background:#fff;border-radius:16px;overflow:hidden;min-height:690px;box-shadow:0 9px 28px #142d4510}.smart-aside{background:#f8fafc;border-right:1px solid #e5eaf1;padding:22px 16px;display:flex;flex-direction:column;gap:14px}.smart-aside>.btn{width:100%;text-align:left}.smart-brand b{display:block;font-size:16px;color:#1f3349}.smart-brand small{display:block;color:#8493a5;font-size:11px;margin-top:6px}.smart-filter-title{font-size:11px;color:#8290a5;letter-spacing:1px;text-transform:uppercase;font-weight:800;margin-top:8px}.smart-filter{display:flex;align-items:center;gap:8px;color:#44576f;font-size:12px}.smart-side-foot{color:#98a5b6;font-size:11px;margin-top:auto}.smart-main{min-width:0}.smart-toolbar,.smart-switch{display:flex;align-items:center;gap:12px;padding:18px 22px}.smart-toolbar{border-bottom:1px solid #e9edf4;justify-content:space-between}.smart-title small{letter-spacing:1px;color:#4080c5;font-size:10px;font-weight:700}.smart-title h2{margin:4px 0 0;font-size:20px;color:#20334a}.smart-actions{display:flex;gap:6px}.smart-switch{gap:10px;flex-wrap:wrap}.smart-kind,.smart-views{display:flex;gap:2px;background:#f1f4f8;border-radius:9px;padding:3px}.smart-kind button,.smart-views button{border:0;background:transparent;border-radius:7px;padding:8px 10px;font-size:12px;color:#5a6b7e}.smart-kind button.active,.smart-views button.active{background:#fff;color:#086cc1;font-weight:700;box-shadow:0 1px 4px #0001}.smart-grow{flex:1}.smart-switch input{width:155px;max-width:100%}.smart-scroll{overflow:auto;max-height:72vh}.smart-legend{display:flex;gap:15px;flex-wrap:wrap;padding:12px 18px;color:#8290a4;border-top:1px solid #edf0f4;font-size:11px}.smart-legend span:nth-child(1){color:#216fac}.smart-legend span:nth-child(2){color:#7a58af}.smart-mini{border:1px solid #e5eaf1;background:#fff;border-radius:12px;padding:10px}.smart-mini-head{font-weight:700;color:#31455d;font-size:12px;margin-bottom:8px}.smart-mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px}.smart-mini-grid small{font-size:10px;color:#99a5b5}.smart-mini-grid button{padding:5px 0;border:0;background:transparent;border-radius:50%;font-size:11px;min-width:0;color:#41536a;cursor:pointer}.smart-mini-grid button.today{color:#086cc1;font-weight:800}.smart-mini-grid button.selected{background:#0a78cc;color:#fff}.smart-month{min-width:750px}.smart-month-head,.smart-month-body{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.smart-month-head>div{padding:13px 8px;text-align:center;font-size:12px;color:#8491a2;border-bottom:1px solid #e5eaf1}.smart-month-cell{min-height:120px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:8px;min-width:0}.smart-month-cell.outside{background:#f9fafc}.smart-date-num{border:0;background:transparent;display:block;padding:3px 7px;border-radius:50%;color:#31455d}.smart-date-num.today{background:#167fd2;color:#fff}.smart-event{display:block;width:100%;text-align:left;border:0;border-left:3px solid #2781c4;background:#e9f3fd;color:#1c5888;padding:5px;border-radius:5px;margin:4px 0;font-size:11px;overflow:hidden;cursor:pointer}.smart-event.booking{border-left-color:#7654ae;background:#f0eafa;color:#61478b}.smart-event span{font-size:10px;margin-right:4px}.smart-event strong{font-weight:650}.smart-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;opacity:.75}.smart-more{border:0;background:transparent;font-size:11px;color:#477cac}.smart-time-grid{display:grid;grid-template-columns:58px repeat(var(--smart-days),minmax(115px,1fr));min-width:calc(58px + var(--smart-days) * 115px)}.smart-hour-head,.smart-day-head{border:0;border-bottom:1px solid #e9edf3;background:#fff;padding:10px;text-align:center;font-size:11px;color:#7e8da0}.smart-day-head strong{display:block;color:#304359;font-size:18px}.smart-day-head.today strong{color:#0878cd}.smart-hour{height:60px;border-bottom:1px solid #edf0f4;text-align:center;font-size:11px;padding-top:5px;color:#98a5b6}.smart-slot{height:60px;overflow:auto;border-left:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:3px}.smart-slot .smart-event{margin:1px 0}.smart-year{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));gap:14px;padding:15px}.smart-agenda{padding:12px 20px}.smart-agenda-row{display:flex;gap:24px;padding:12px;border-bottom:1px solid #eff2f5;align-items:center}.smart-agenda-row>div:first-child{min-width:120px;font-size:12px}.smart-agenda-row small{display:block;color:#91a0ae}.smart-agenda-row .smart-event{flex:1}.smart-timeline{display:grid;grid-template-columns:165px repeat(7,minmax(110px,1fr));min-width:935px}.smart-timeline-head,.smart-timeline>button{padding:12px;border:0;background:#f5f8fc;color:#4b5e73;border-bottom:1px solid #e5eaf1}.smart-resource,.smart-timeline-cell{border-bottom:1px solid #e9edf2;border-right:1px solid #edf0f4;min-height:65px;padding:7px}.smart-resource{font-weight:700;font-size:12px}.smart-timeline-cell{min-width:0}@media(max-width:1150px){.smart-shell{grid-template-columns:1fr}.smart-aside{border-right:0;border-bottom:1px solid #e5eaf1;display:block}.smart-aside>.btn{width:auto;margin:6px}.smart-aside .smart-mini,.smart-aside .smart-filter-title,.smart-aside .smart-filter,.smart-aside .smart-side-foot{display:none}.smart-year{grid-template-columns:repeat(2,minmax(210px,1fr))}}@media(max-width:650px){.smart-toolbar,.smart-switch{padding:12px}.smart-year{grid-template-columns:1fr}.smart-title h2{font-size:16px}}

