@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#0b141c;--panel:#111f29;--panel2:#152631;--sidebar:#0f1c26;--input:#0b1922;--line:#263943;--text:#eef4f5;--muted:#8eacb6;--accent:#63c3b1;--accent-contrast:#06271f;--focus:#92d8c9;--hover:#1c3440;--soft:#203942;--green:#70cba4;--yellow:#e1bd78;--red:#e58e93;--blue:#92b5e0;--shadow:0 12px 36px rgba(0,0,0,.12)}
:root[data-theme=light]{--bg:#f3f6f7;--panel:#fff;--panel2:#f7f9fa;--sidebar:#fff;--input:#fff;--line:#dce4e7;--text:#1a2d36;--muted:#667c86;--accent:#0b8e7b;--accent-contrast:#fff;--focus:#0a8876;--hover:#edf6f4;--soft:#e6f3f0;--green:#167c5e;--yellow:#9a6a16;--red:#b74551;--blue:#2b659e;--shadow:0 10px 32px rgba(38,62,70,.07)}
*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Inter','IBM Plex Sans Thai',system-ui,sans-serif;font-size:13px;line-height:1.6;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}strong{font-weight:650}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.045em;line-height:1.32}h2{font-size:20px;letter-spacing:-.025em}h3{font-size:14px}small{font-size:11px}input,textarea,select{background:var(--input);color:var(--text);border:1px solid var(--line);outline:0;border-radius:9px;padding:11px 13px;min-height:42px;width:100%;transition:border-color .16s,box-shadow .16s}input:focus,textarea:focus,select:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 16%,transparent)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.78}label{font-weight:600;font-size:12px;display:block;margin-bottom:6px}.muted{color:var(--muted)}.eyebrow{color:var(--accent);font-size:10px;letter-spacing:.17em;font-weight:800}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;padding:10px 15px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font-weight:650;min-height:40px;white-space:nowrap;transition:background .16s,transform .12s}.btn:hover:not(:disabled){background:var(--hover)}.btn.primary{background:var(--accent);color:var(--accent-contrast);border-color:transparent}.btn.primary:hover{filter:brightness(1.06);background:var(--accent)}.btn.danger{color:var(--red)}.btn.full{width:100%}.btn.sm{font-size:11px;padding:6px 10px;min-height:32px}.icon-button,.mini-btn{border:1px solid transparent;color:var(--muted);background:transparent;border-radius:8px;min-width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;font-size:18px}.mini-btn{border-color:var(--line);font-size:11px;font-weight:700;min-width:41px}.icon-button:hover,.mini-btn:hover{background:var(--hover);color:var(--text)}.status-dot{display:inline-block;background:var(--green);width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 13%,transparent)}.brand{display:flex;align-items:center;gap:11px}.brand-logo{background:var(--accent);color:var(--accent-contrast);width:40px;height:40px;border-radius:12px;display:grid;place-items:center}.brand-logo svg{width:24px;height:24px}.brand strong{font-size:17px;letter-spacing:-.055em;white-space:nowrap}.brand em{font-style:normal;color:var(--accent)}.brand small{display:block;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.2em;margin-top:-3px}
.auth-view{min-height:100svh;display:flex;flex-direction:column}.auth-header{padding:26px max(5%,34px);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.auth-tools{display:flex;gap:8px}.auth-wrap{flex:1;display:grid;grid-template-columns:1fr 410px;gap:min(9vw,110px);align-items:center;max-width:1210px;width:calc(100% - 70px);margin:0 auto;padding:60px 0}.auth-copy h1{font-size:clamp(36px,4.2vw,62px);line-height:1.21;margin:22px 0;letter-spacing:-.052em}.auth-copy p{font-size:15px;line-height:1.9;color:var(--muted);max-width:450px}.auth-benefits{display:flex;gap:18px;color:var(--muted);font-size:10px;letter-spacing:.12em;margin-top:70px}.auth-panel{background:var(--panel);border:1px solid var(--line);padding:32px;border-radius:16px;box-shadow:var(--shadow)}.auth-panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.auth-lock{background:var(--soft);color:var(--accent);width:40px;height:40px;border-radius:10px;font-size:24px;display:grid;place-items:center}.auth-panel h2{font-size:26px;margin-bottom:5px}.auth-panel .muted{margin-bottom:27px}.auth-panel form label{margin-top:19px}.auth-panel .btn{margin-top:24px;min-height:46px;justify-content:space-between;padding:0 15px}.auth-foot{border-top:1px solid var(--line);margin-top:27px;padding-top:19px;display:flex;gap:10px;align-items:center;color:var(--muted);font-size:11px}.auth-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:15px max(5%,34px);color:var(--muted);font-size:10px;letter-spacing:.08em}
.workspace{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:247px;background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:12;overflow-y:auto}.side-brand{padding:21px 16px 17px}.workspace-switch{margin:0 13px 18px;padding:11px 10px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px}.workspace-switch strong{font-size:12px}.workspace-switch small{display:block;color:var(--muted)}.workspace-initial{background:var(--soft);color:var(--accent);width:31px;height:31px;display:grid;place-items:center;border-radius:7px;font-weight:700}.chevron{margin-left:auto;color:var(--muted)}.nav{padding:0 9px}.nav-title{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.09em;margin:18px 9px 9px}.nav-link{width:100%;display:flex;align-items:center;gap:12px;color:var(--muted);background:transparent;border:0;border-radius:8px;padding:10px 12px;font-weight:550;text-align:left;margin-bottom:3px}.nav-link:hover{color:var(--text);background:var(--hover)}.nav-link.active{background:var(--soft);color:var(--accent);font-weight:700}.nav-ico{width:16px;height:16px;display:inline-grid;place-items:center;flex-shrink:0;font-size:16px}.nav-link .nav-meta{font-size:9px;opacity:.66;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:16px;border-top:1px solid var(--line)}.backend-state{color:var(--muted);display:flex;gap:11px;align-items:center;font-size:11px}.sidebar-caption{font-size:9px;color:var(--muted);margin-top:9px;letter-spacing:.11em;opacity:.65}.main-column{flex:1;min-width:0;margin-left:247px}.topbar{height:66px;border-bottom:1px solid var(--line);background:var(--sidebar);display:flex;align-items:center;justify-content:space-between;padding:0 29px;gap:18px;position:sticky;top:0;z-index:9}.left-tools,.right-tools{display:flex;align-items:center;gap:7px;min-width:0}.breadcrumbs{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumbs .muted{margin:0 11px}.right-tools{gap:9px}.last-sync{font-size:10px;color:var(--muted);margin-right:7px}.top-user{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:15px;margin-left:5px;max-width:200px}.top-user strong{display:block;font-size:11px;white-space:nowrap;max-width:125px;overflow:hidden;text-overflow:ellipsis}.top-user small{display:block;color:var(--muted)}.avatar{height:31px;width:31px;border-radius:9px;background:var(--soft);color:var(--accent);display:grid;place-items:center;font-weight:750}.mobile-menu{display:none}
.page{padding:31px 31px 70px;max-width:1760px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:26px}.page-heading .eyebrow{margin-bottom:10px}.page-heading h1{margin:0 0 5px;font-size:27px}.page-heading p{margin:0;color:var(--muted);font-size:12px}.page-actions{display:flex;gap:9px;align-items:center}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px 20px 17px;min-height:146px;display:flex;flex-direction:column;justify-content:space-between}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:9px}.stat-symbol{width:30px;height:30px;background:var(--soft);color:var(--accent);border-radius:8px;display:grid;place-items:center;font-size:15px}.stat-value{font-weight:700;line-height:1.2;font-size:26px;letter-spacing:-.04em}.stat-note{font-size:10px;color:var(--muted)}.content-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:17px;margin-top:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.card-body{padding:19px}.card-header{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.card-header h2{font-size:13px;margin:0}.card-header small{display:block;color:var(--muted);margin-top:1px}.card-tools{display:flex;gap:8px;align-items:center}.search{width:240px;min-height:35px;padding:7px 11px;font-size:11px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}.data-table th{background:var(--panel2);color:var(--muted);text-transform:none;font-size:10px;font-weight:700;letter-spacing:.025em;padding:13px 16px}.data-table td{padding:14px 16px;border-top:1px solid var(--line);font-size:11.5px;vertical-align:middle}.data-table tbody tr:hover{background:color-mix(in srgb,var(--hover) 45%,transparent)}.cell-title{font-weight:670}.cell-sub{font-size:10px;color:var(--muted);margin-top:2px}.table-actions{display:flex;gap:5px}.table-actions .btn{padding:5px 8px;min-height:29px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:4px 8px;font-size:10px;font-weight:700;background:var(--soft);color:var(--accent)}.badge.yellow{background:color-mix(in srgb,var(--yellow) 14%,transparent);color:var(--yellow)}.badge.red{background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red)}.badge.blue{background:color-mix(in srgb,var(--blue) 14%,transparent);color:var(--blue)}.empty-state{text-align:center;padding:54px 15px;color:var(--muted);font-size:12px}.empty-state .empty-icon{font-size:28px;color:var(--accent);display:block;margin-bottom:10px}.empty-state strong{color:var(--text);display:block;font-size:14px;margin-bottom:4px}.footnote{color:var(--muted);font-size:10px;padding:14px 18px;border-top:1px solid var(--line)}.list-rows{padding:4px 19px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row strong{display:block;font-size:12px}.list-row small{color:var(--muted)}.list-value{text-align:right;flex-shrink:0}.queue-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.queue-next{font-size:22px;letter-spacing:-.025em;font-weight:650;margin:6px 0}.queue-actions{display:flex;gap:9px}.queue-count{font-size:11px;color:var(--muted)}.queue-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px}.queue-member{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:13px}.queue-member .avatar{flex-shrink:0}.queue-member strong{font-size:12px;display:block}.queue-member small{color:var(--muted)}.pill-dot{display:inline-block;background:var(--green);height:6px;width:6px;border-radius:50%;margin-right:6px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field.full{grid-column:1/-1}.form-field textarea{min-height:88px;resize:vertical}.form-help{color:var(--muted);font-size:10px;margin-top:4px}.modal-backdrop,.notice-layer{position:fixed;inset:0;z-index:40;background:rgba(2,10,15,.74);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}[hidden]{display:none!important}.modal{max-width:680px;width:100%;max-height:min(850px,90vh);overflow:hidden;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 100px rgba(0,0,0,.35)}.modal-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.modal-head h2{margin:5px 0 0}.modal-body{padding:23px 24px;overflow:auto;min-height:70px}.modal-footer{border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;background:var(--panel2)}.modal-note{background:var(--soft);border-radius:9px;padding:11px;color:var(--muted);font-size:11px;margin-bottom:14px}.notice-layer{z-index:70}.notice-card{width:min(420px,100%);border:1px solid var(--line);background:var(--panel);box-shadow:0 20px 65px rgba(0,0,0,.3);padding:33px;border-radius:16px;text-align:center;position:relative}.notice-symbol{height:54px;width:54px;border-radius:16px;background:color-mix(in srgb,var(--red) 15%,transparent);color:var(--red);display:grid;place-items:center;font-size:24px;font-weight:700;margin:0 auto 18px}.notice-symbol.ok{background:var(--soft);color:var(--green)}.notice-card h2{font-size:20px;margin-bottom:9px}.notice-card p{color:var(--muted);font-size:12px;line-height:1.8}.notice-card .btn{margin-top:17px}.notice-x{position:absolute;top:12px;right:14px;background:transparent;border:0;font-size:25px;color:var(--muted)}.notice-progress{height:3px;background:var(--line);border-radius:4px;position:absolute;bottom:0;left:0;right:0;overflow:hidden}.notice-progress div{height:100%;background:var(--accent);width:100%;transform-origin:left}.text-green{color:var(--green)}.text-red{color:var(--red)}.view-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.info-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0;gap:20px}.info-row span:first-child{color:var(--muted)}.info-row:last-child{border-bottom:0}.note-alert{padding:13px 15px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11px;margin-top:16px}.bar-chart{display:flex;gap:10px;align-items:flex-end;height:156px;padding-top:10px}.bar-column{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:7px;text-align:center}.bar-track{height:130px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.bar-fill{background:var(--accent);opacity:.8;width:30px;border-radius:6px 6px 0 0;min-height:2px}.bar-column small{color:var(--muted)}.sidebar-shade{display:none}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.right-tools .last-sync{display:none}}@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-shade{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:11}.main-column{margin-left:0}.mobile-menu{display:inline-grid}.topbar{padding:0 17px}.page{padding:23px 17px}.top-user>div{display:none}.top-user{padding-left:10px}.auth-wrap{grid-template-columns:1fr;max-width:530px}.auth-copy{display:none}.auth-header{padding:20px}.auth-footer{padding:16px 20px}}@media(max-width:600px){.auth-wrap{width:100%;padding:35px 17px}.auth-panel{padding:25px 19px}.auth-footer{font-size:9px}.auth-footer span:last-child{display:none}.page-heading{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:15px;min-height:132px}.stat-value{font-size:22px}.stat-label{font-size:10px}.card-header{align-items:flex-start;flex-direction:column}.card-tools{width:100%}.search{width:100%}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.queue-members{grid-template-columns:1fr}.queue-panel{align-items:flex-start;flex-direction:column}.queue-actions{width:100%}.queue-actions .btn{flex:1}.right-tools{gap:1px}.breadcrumbs{font-size:11px}.right-tools #notifyBtn{display:none}.modal-backdrop{padding:7px}.modal{max-height:95svh}.modal-body{padding:17px}.modal-head{padding:16px}.modal-footer{padding:13px}.brand strong{font-size:15px}}

/* V7: live-data visibility, consistent form validity, and non-browser notices */
.backend-state{font-weight:600}.notice-card{border-radius:14px}.modal-body input:invalid{box-shadow:none}.notice-card .btn:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* V8: consistent logout control — never use the platform emoji glyph */
.logout-control {display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:38px;padding:7px 10px;white-space:nowrap;border:1px solid var(--line);border-radius:9px}
.logout-control .logout-svg{width:18px;height:18px;flex-shrink:0}
.logout-label{font-size:12px;font-weight:600}
@media(max-width:900px){.logout-control{min-width:40px;min-height:40px;padding:8px}.logout-label{display:none}.logout-control .logout-svg{width:20px;height:20px}}

/* V9 — controlled loading state, compact account drawer, visual consistency */
.boot-screen{position:fixed;inset:0;z-index:80;background:var(--bg);display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;color:var(--text);padding:20px}
.boot-logo{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:700;letter-spacing:-.02em}.boot-logo em{font-style:normal;color:var(--accent)}
.boot-mark{height:42px;width:42px;border-radius:10px;background:var(--accent);color:#0e2629;display:grid;place-items:center;font-size:13px;font-weight:800}
.boot-line{width:150px;height:3px;border-radius:9px;background:var(--line);overflow:hidden}.boot-line span{display:block;width:55%;height:100%;background:var(--accent);animation:bootMove 1.25s ease-in-out infinite alternate}
@keyframes bootMove{from{transform:translateX(-100%)}to{transform:translateX(240%)}}.boot-screen p{font-size:12px;color:var(--muted)}
.profile-button{display:flex;align-items:center;gap:6px;min-height:35px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:var(--panel);color:var(--text);font-size:11px;font-weight:650;cursor:pointer}
.profile-menu-glyph{display:flex;align-items:center}.profile-button:hover{background:var(--hover)}
.drawer-shade{position:fixed;inset:0;background:rgba(3,8,12,.44);z-index:78}
.profile-drawer{position:fixed;top:0;bottom:0;right:0;width:min(388px,100vw);background:var(--panel);color:var(--text);border-left:1px solid var(--line);z-index:79;box-shadow:-20px 0 70px rgba(0,0,0,.22);display:flex;flex-direction:column}
.profile-drawer-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:27px 25px 21px}.profile-drawer-header h2{margin:7px 0 0;font-size:23px;letter-spacing:-.025em}
.drawer-close{border:1px solid var(--line);background:transparent;border-radius:8px;color:var(--muted);width:34px;height:34px;font-size:22px;cursor:pointer}
.profile-drawer-identity{display:flex;gap:14px;align-items:center;padding:25px;border-bottom:1px solid var(--line)}.profile-avatar{height:52px;width:52px;display:grid;place-items:center;border-radius:12px;background:var(--soft);color:var(--accent);font-weight:800;font-size:19px}
.profile-drawer-identity strong{display:block;font-size:15px}.profile-drawer-identity small{display:block;color:var(--muted);margin:5px 0}.profile-role{display:inline-flex;color:var(--accent);font-size:11px;font-weight:750}
.profile-actions{padding:15px;display:grid;gap:5px}.profile-actions button{width:100%;min-height:49px;padding:12px 13px;border:0;border-radius:9px;background:transparent;color:var(--text);display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:13px;cursor:pointer}.profile-actions button:hover{background:var(--hover)}.profile-actions button>span:last-child{font-size:23px;color:var(--muted)}
.profile-drawer-footer{margin-top:auto;padding:20px 25px 28px;border-top:1px solid var(--line);display:grid;gap:18px}.profile-drawer-footer small{color:var(--muted);font-size:10px}.signout-link{display:inline-flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font-size:13px;font-weight:600;min-height:43px;padding:11px 14px;cursor:pointer}.signout-link:hover{background:var(--hover)}
/* Reduce dramatic warning box sizes; enterprise style notifications */
.notice-layer{background:rgba(3,9,13,.54);backdrop-filter:blur(2px)}.notice-card{width:min(395px,100%);text-align:left;border-radius:12px;padding:26px 27px 22px}.notice-symbol{height:37px;width:37px;border-radius:10px;margin:0 0 14px;font-size:17px}.notice-card h2{font-size:17px;line-height:1.4;margin:0 0 8px}.notice-card p{font-size:12.5px;line-height:1.7;margin:0;color:var(--muted)}.notice-card .btn{margin-top:23px;min-height:39px}.notice-x{font-size:21px}.modal{border-radius:12px}.modal-head{padding:19px 23px}.modal-head h2{font-size:19px}.modal-body{padding:21px 23px}.modal-note{font-size:12px;line-height:1.7}
.data-table td,.data-table th{font-size:12px}.page-heading h1{font-size:26px}.card-header h2{font-size:14px}.btn{font-weight:650}
@media(max-width:900px){.top-user{display:none}.profile-button{min-width:39px;justify-content:center;padding:8px}.profile-menu-caption{display:none}}
@media(max-width:600px){.profile-drawer{width:min(350px,100vw)}.notice-card{padding:25px 20px}.boot-screen p{font-size:11px}}

/* OFFICE_DASHBOARD_CHARTS_V9_START */
.of-charts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.of-chart-card{min-width:0;overflow:hidden}
.of-chart-content{padding:22px 23px 20px}
.of-chart-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;min-height:200px;align-items:end}
.of-chart-month{min-width:0;display:flex;flex-direction:column;align-items:center;gap:11px}
.of-chart-plot{width:100%;height:160px;display:flex;justify-content:center;align-items:flex-end;gap:5px;border-bottom:1px solid var(--line);background:linear-gradient(to top,transparent 24.5%,var(--line) 25%,transparent 25.5%,transparent 49.5%,var(--line) 50%,transparent 50.5%,transparent 74.5%,var(--line) 75%,transparent 75.5%)}
.of-chart-bar{display:block;flex:0 1 28px;max-width:38%;min-width:4px;border-radius:5px 5px 0 0;transition:height .25s ease}
.of-chart-primary,.of-legend-swatch.of-chart-primary{background:var(--accent)}
.of-chart-secondary,.of-legend-swatch.of-chart-secondary{background:var(--blue)}
.of-chart-label{font-size:11px;color:var(--muted);white-space:nowrap}
.of-chart-legends{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:22px;color:var(--muted);font-size:11px}
.of-chart-legend{display:inline-flex;align-items:center;gap:7px}
.of-legend-swatch{display:inline-block;width:10px;height:10px;border-radius:3px}
.of-chart-empty{height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:var(--muted);font-size:12px}
.of-chart-empty strong{color:var(--text);font-size:13px}
.of-chart-empty-symbol{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;color:var(--accent);margin-bottom:3px}
.of-status-list{padding:19px 22px 2px;display:grid;gap:17px}
.of-status-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.of-status-label strong{font-size:13px}
.of-status-track{height:7px;border-radius:30px;background:var(--panel2);overflow:hidden}
.of-status-fill{display:block;height:100%;border-radius:30px;background:var(--accent)}
.of-status-pending{background:var(--yellow)}.of-status-confirmed{background:var(--blue)}.of-status-paid{background:var(--accent)}.of-status-cancelled{background:var(--red)}
.of-finance-subtotal{padding:4px 22px 21px;margin-top:12px}
@media(max-width:1050px){.of-charts-grid{grid-template-columns:1fr}}
@media(max-width:600px){.of-charts-grid{gap:11px;margin:11px 0}.of-chart-content{padding:17px 13px 15px}.of-chart-bars{gap:7px;min-height:169px}.of-chart-plot{height:137px;gap:3px}.of-chart-bar{flex-basis:21px}.of-chart-label{font-size:10px}}
/* OFFICE_DASHBOARD_CHARTS_V9_END */

/* OFFICE_ACTIVITY_V10 */
.of-audit-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}
.of-audit-toolbar label{margin:0;white-space:nowrap;color:var(--muted)}
.of-audit-toolbar select{width:auto;min-width:225px;max-width:100%;height:39px;min-height:39px}
.of-audit-toolbar span{margin-left:auto;color:var(--muted);font-size:12px}
.of-audit-event{display:inline-flex;align-items:center;padding:4px 9px;border-radius:7px;font-size:11px;font-weight:650;background:var(--soft);color:var(--text)}
.of-audit-security{color:var(--blue)}.of-audit-accounts{color:var(--accent)}.of-audit-records{color:var(--green)}.of-audit-queue{color:var(--yellow)}
.of-audit-nowrap{white-space:nowrap}
.of-credential-command{display:block;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);background:var(--input);padding:10px;border-radius:7px;user-select:text}
@media(max-width:640px){.of-audit-toolbar{align-items:stretch}.of-audit-toolbar select{width:100%}.of-audit-toolbar span{margin-left:0}}

/* V10.1: system dialogs must render above the profile drawer (z-index 79). */
#modalBackdrop{z-index:120!important}
#noticeLayer{z-index:130!important}

/* V12.3 — finance doughnut and payable summary */
.of-finance-visuals{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);gap:16px;margin:18px 0}
.of-finance-donut-card,.of-finance-obligations-card{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:21px;min-width:0}
.of-finance-v-title{font-size:14px;font-weight:750;color:var(--text)}
.of-finance-v-sub{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.55}
.of-finance-donut-layout{display:flex;gap:30px;align-items:center;padding:23px 7px 5px}
.of-finance-donut{position:relative;width:188px;height:188px;flex:0 0 188px;border-radius:50%;display:grid;place-items:center}
.of-finance-donut-inner{width:70%;height:70%;border-radius:50%;background:var(--panel);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px;text-align:center}
.of-finance-donut-inner span{font-size:11px;color:var(--muted)}
.of-finance-donut-inner strong{font-size:19px;white-space:nowrap;margin-top:5px;color:var(--text)}
.of-finance-donut-details{display:grid;gap:16px;flex:1;min-width:0}
.of-finance-donut-details>div{display:grid;grid-template-columns:11px 1fr auto;column-gap:9px;align-items:center;font-size:12px;color:var(--muted)}
.of-finance-donut-details strong{color:var(--text);font-size:14px}
.of-finance-donut-details small{grid-column:2/4;margin-top:4px}
.of-finance-dot{width:10px;height:10px;border-radius:3px;background:var(--accent)}.of-finance-dot.out{background:var(--blue)}
.of-finance-obligations-number{font-size:30px;font-weight:800;color:var(--text);margin:26px 0 10px}
.of-finance-obligations-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}
@media(max-width:1050px){.of-finance-visuals{grid-template-columns:1fr}}
@media(max-width:600px){.of-finance-donut-layout{flex-direction:column;gap:20px}.of-finance-donut-details{width:100%}.of-finance-donut{width:168px;height:168px;flex-basis:168px}}

/* Office V12.4 field-level audit details */
.of-audit-wrap{white-space:pre-wrap;overflow-wrap:anywhere;max-width:300px;min-width:120px}

/* OFFICE_PERSONAL_CHARTS_V12_5 */
.of-chart-header{gap:12px;flex-wrap:wrap}
.of-chart-switch{display:flex;align-items:center;gap:3px;border:1px solid var(--line);border-radius:9px;padding:3px;max-width:100%;background:var(--panel2)}
.of-chart-option{border:0;background:transparent;border-radius:6px;padding:7px 10px;font:inherit;font-size:11px;font-weight:600;color:var(--muted);cursor:pointer;white-space:nowrap}
.of-chart-option.active{background:var(--accent);color:#082021}
.of-chart-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.of-chart-svg{width:100%;height:200px;color:var(--muted)}
.of-chart-svg svg{display:block;width:100%;height:100%;overflow:visible}
.of-chart-pie-wrap{display:flex;justify-content:center;align-items:center;gap:18px;min-height:200px}
.of-chart-pie{width:min(48%,200px);flex:0 0 auto;color:var(--text)}
.of-chart-pie svg{width:100%;display:block}
.of-chart-pie-legend{display:flex;flex-direction:column;gap:9px;min-width:0;color:var(--muted);font-size:11px}
@media(max-width:600px){.of-chart-option{padding:6px 7px}.of-chart-pie-wrap{flex-direction:column;gap:7px}.of-chart-pie{width:160px}.of-chart-pie-legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}}

/* Appearance presets — semantic colors change together; record/status colors stay meaningful. */
:root[data-palette="ocean"]{--accent:#5a9de0;--accent-contrast:#071a2b;--focus:#8fb9ed;--soft:#1b334b;--hover:#21394d}
:root[data-palette="indigo"]{--accent:#969cff;--accent-contrast:#111538;--focus:#a8afff;--soft:#292e4d;--hover:#292f43}
:root[data-palette="violet"]{--accent:#b696ec;--accent-contrast:#251539;--focus:#c9aef0;--soft:#362746;--hover:#30283c}
:root[data-palette="rose"]{--accent:#ec9fbe;--accent-contrast:#321525;--focus:#edb0c8;--soft:#402938;--hover:#372933}
:root[data-palette="amber"]{--accent:#e4bd77;--accent-contrast:#2a1b08;--focus:#efd19d;--soft:#3c3428;--hover:#343126}
:root[data-theme="light"][data-palette="ocean"]{--accent:#1e67b2;--accent-contrast:#fff;--focus:#2a75bd;--soft:#e4f0fc;--hover:#edf5fc}
:root[data-theme="light"][data-palette="indigo"]{--accent:#4c55bf;--accent-contrast:#fff;--focus:#6068cb;--soft:#ebecfb;--hover:#f1f1fd}
:root[data-theme="light"][data-palette="violet"]{--accent:#7e46a8;--accent-contrast:#fff;--focus:#915bb9;--soft:#f2eaf9;--hover:#f8f1fb}
:root[data-theme="light"][data-palette="rose"]{--accent:#ad4776;--accent-contrast:#fff;--focus:#bf5785;--soft:#f9e9f0;--hover:#fdf1f6}
:root[data-theme="light"][data-palette="amber"]{--accent:#925c0e;--accent-contrast:#fff;--focus:#aa731d;--soft:#fbf1de;--hover:#fdf6e9}
.of-appearance-panel{display:grid;gap:14px}
.of-appearance-panel>p{margin:0}
.of-appearance-caption{font-size:12px;font-weight:700;margin-top:3px}
.of-appearance-modes{display:flex;gap:9px}
.of-appearance-modes .btn{flex:1}
.of-palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.of-palette-choice{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:83px;position:relative;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--panel2);color:var(--text);text-align:left;font-weight:650}
.of-palette-choice:hover{border-color:var(--accent)}
.of-palette-choice.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.of-palette-dot{display:block;width:23px;height:23px;border-radius:50%;box-shadow:0 0 0 2px color-mix(in srgb,var(--text) 8%,transparent)}
.of-palette-check{position:absolute;right:12px;top:10px;color:var(--accent);font-size:16px}
.of-appearance-foot{font-size:11px;color:var(--muted)}
@media(max-width:430px){.of-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
