/* Office interface.  Business visibility is controlled by JS, inline display and [hidden]. */
:root {
  --primary:#2563eb; --primary-dark:#1d4ed8; --primary-light:#eff6ff;
  --bg:#f5f7fa; --card:#fff; --border:#e2e7ef; --text:#1f2937; --text-2:#64748b;
  --radius:6px; --shadow:none; --office-sidebar:192px; --office-header:56px;
}
html { background:var(--bg); scroll-padding-top:76px; }
body.office-shell, body.office-auth {
  margin:0; min-width:320px; background:var(--bg); color:var(--text);
  font-family:"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;
  font-size:14px; line-height:1.6; animation:none; -webkit-font-smoothing:antialiased;
}
body.office-shell { padding-top:var(--office-header); }
.office-shell [hidden], .office-auth [hidden] { display:none!important; }
.office-shell .bg-deco, .office-shell .shine, .office-auth .bg-deco { display:none; }
.office-shell button, .office-shell input, .office-shell select, .office-shell textarea,
.office-auth button, .office-auth input { font-family:inherit; }
.office-shell a, .office-auth a { text-underline-offset:3px; }
.office-shell :is(button,a,input,select,textarea,summary):focus-visible,
.office-auth :is(button,a,input):focus-visible { outline:2px solid var(--primary)!important; outline-offset:2px; }
/* Compound fields use their complete outer border as the shared focus indicator. */
.office-shell :is(.office-select,.org-search-control,.date-control) :is(input,button):focus-visible { outline:none!important; }
.office-shell :is(button,input,select,textarea):disabled { cursor:not-allowed; }
.office-shell button:disabled { opacity:.5; transform:none; box-shadow:none; filter:none; }
.office-shell input::placeholder, .office-shell textarea::placeholder { color:#8994a5; opacity:1; }
.office-shell .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* Fixed navigation and quiet account header. */
.office-shell .topbar {
  position:fixed; top:0; left:var(--office-sidebar); right:0; height:var(--office-header);
  z-index:30; padding:0 24px; gap:16px; flex-wrap:nowrap; overflow:visible;
  background:#fff; color:var(--text); border-bottom:1px solid var(--border); box-shadow:none;
}
.office-shell .topbar::before, .office-shell .topbar::after { display:none; }
.office-breadcrumb { display:flex; align-items:center; gap:12px; font-size:13px; color:var(--text-2); white-space:nowrap; }
.office-breadcrumb b { color:var(--text); font-weight:500; }
.office-shell .topbar .ops { align-items:center; gap:8px; flex-wrap:nowrap; }
.office-shell .topbar-acct { padding:0 12px 0 0; gap:8px; background:none; border:0; border-right:1px solid var(--border); border-radius:0; box-shadow:none; }
.office-shell .topbar-acct .acct-name { color:var(--text); font-size:13px; font-weight:500; }
.office-shell .topbar-acct .acct-name b { font-weight:500; }
.office-shell .topbar-acct .acct-name span { color:var(--text-2); font-size:11px; font-weight:400; }
.office-shell .acct-ava { width:30px; height:30px; font-size:13px; font-weight:600; background:#e8efff; color:#2459bb; box-shadow:none; }
.office-shell .topbar .btn { min-height:30px; font-size:12px; padding:4px 10px; }
.office-shell .topbar .btn-white { background:transparent; border-color:transparent; color:var(--text-2); }
.office-shell .wrap { display:block; max-width:none; margin:0 0 0 var(--office-sidebar); padding:24px 24px 20px; }
.office-shell.workbench-loading .wrap { display:none; }
.office-shell .side-nav { position:fixed; z-index:40; inset:0 auto 0 0; width:var(--office-sidebar); padding:0 12px 20px; gap:6px; background:#172b4d; overflow:auto; }
.office-brand { display:flex; align-items:center; gap:10px; height:56px; flex:none; margin:0 -12px 16px; padding:0 20px; color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.08); font-size:18px; font-weight:600; letter-spacing:1px; }
.office-brand img { width:30px; height:30px; border-radius:5px; padding:3px; background:#fff; object-fit:contain; }
.office-shell .nav-cap { color:#8397b7; font-size:11px; letter-spacing:1px; padding:0 12px 10px; font-weight:400; }
.office-shell .nav-cap::after, .office-shell .nav-item::before { display:none; }
.office-shell .nav-item { min-height:44px; width:100%; padding:10px 12px; gap:10px; flex:none; background:transparent; color:#c6d1e4; border:0; border-radius:5px; box-shadow:none; transform:none; transition:background .12s,color .12s; }
.office-shell .nav-item:hover { background:#243c5e; transform:none; box-shadow:none; }
.office-shell .nav-item.active { background:#2563eb; color:#fff; }
.office-shell .nav-item:focus-visible { outline-color:#fff!important; outline-offset:-3px; }
.office-shell .nav-ico, .office-shell .nav-item.active .nav-ico { width:18px; height:18px; flex:0 0 18px; background:none; border-radius:0; box-shadow:none; transform:none; }
.office-shell .nav-ico svg { width:18px; height:18px; display:block; }
.office-shell .nav-txt b, .office-shell .nav-item.active .nav-txt b { color:inherit; font-size:14px; font-weight:400; }
.office-shell .nav-txt>span { display:none; }
.office-shell .nav-cnt, .office-shell .nav-item.active .nav-cnt { min-width:23px; padding:0 6px; line-height:20px; background:rgba(255,255,255,.12); color:inherit; font-size:11px; font-weight:400; border-radius:4px; }
.office-shell .nav-tip { background:transparent; color:#9eafc8; box-shadow:none; border-color:rgba(255,255,255,.12); border-radius:5px; }
.office-shell .content-col { width:100%; min-width:0; }
.office-shell .foot-note { margin-top:20px; font-size:11px; color:#8b96a7; }

/* Common controls: one size and one hierarchy throughout the application. */
.office-shell .btn, .office-auth .btn { min-height:34px; padding:6px 13px; border-radius:5px; border:1px solid transparent; font-size:13px; line-height:20px; font-weight:500; box-shadow:none; gap:5px; text-decoration:none; justify-content:center; transition:background .12s,border-color .12s; }
.office-shell .btn:hover, .office-auth .btn:hover { transform:none; filter:none; box-shadow:none; }
.office-shell .btn-primary, .office-shell .btn-sky, .office-auth .btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.office-shell .btn-primary:hover, .office-shell .btn-sky:hover, .office-auth .btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); }
.office-shell .btn-line, .office-shell .btn-ghost, .office-shell .btn-white, .office-auth .btn-line { background:#fff; color:#475569; border-color:#d8dfe9; }
.office-shell .btn-line:hover, .office-shell .btn-ghost:hover, .office-shell .btn-white:hover, .office-auth .btn-line:hover { border-color:#92b4f8; background:#f8fbff; color:var(--primary); }
.office-shell .btn-green { background:#168350; color:#fff; border-color:#168350; }
.office-shell .btn-green:hover { background:#116a40; border-color:#116a40; }
.office-shell .btn-danger { background:#dc2626; color:#fff; border-color:#dc2626; }
.office-shell .btn-danger:hover { background:#b91c1c; border-color:#b91c1c; }
.office-shell .btn-danger-ghost { color:#c22b34; background:#fff; border-color:#f3c5c8; }
.office-shell .btn-danger-ghost:hover { background:#fff5f5; border-color:#dc747c; }
.office-shell .btn-sm { min-height:28px; padding:3px 9px; font-size:12px; }
.office-shell :is(.badge,.lack-badge,.stage-badge,.move-badge,.m-status,.ds-tag) { border-radius:4px; font-size:12px; line-height:20px; padding:1px 7px; font-weight:400; }
.office-shell :is(.panel,.rp-card,.miss-panel,.talent-card) { border:1px solid var(--border); border-radius:6px; box-shadow:none; }
.office-shell :is(.panel,.list-panel,.detail-panel) { min-width:0; }
.office-page-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:16px; }
.office-page-head h1 { font-size:20px; line-height:1.5; font-weight:600; color:#172b4d; }
.office-page-head p { margin-top:3px; font-size:12px; color:var(--text-2); }
.office-page-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.office-shell .sec-title { margin-bottom:16px; gap:10px; }
.office-shell .sec-title h3 { color:#172b4d; font-size:18px; font-weight:600; letter-spacing:0; }
.office-shell .sec-title .sub { color:var(--text-2); font-size:12px; }
.office-shell .sec-title .bar { display:none; }
.office-shell :is(#talentView,#orgView,#accountView,#dingSyncView,#missingView)>.sec-title:first-child { align-items:flex-start; margin-bottom:20px; }
.office-shell :is(#talentView,#orgView,#accountView,#dingSyncView,#missingView)>.sec-title:first-child h3 { font-size:20px; line-height:1.5; font-weight:600; }
.office-shell :is(#talentView,#orgView,#accountView,#dingSyncView,#missingView)>.sec-title:first-child .sub { align-self:center; }

/* Directory-first staff workspace. */
.office-shell .main { display:block; }
.office-shell .list-panel { padding:0; }
.office-shell .staff-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; padding:12px 20px; margin:0; border-bottom:1px solid var(--border); }
.staff-filters label { display:flex; flex:1 1 150px; min-width:0; flex-direction:column; gap:6px; font-size:12px; color:var(--text-2); }
.staff-filters .staff-keyword { flex:2 1 260px; }
.office-shell .staff-filters input, .office-shell .staff-filters select { width:100%; height:34px; flex:none; min-width:0; padding:6px 10px; font-size:13px; border:1px solid #d8dfe9; border-radius:5px; font-weight:400; color:var(--text); background:#fff; }
.staff-table-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 20px; }
.staff-table-toolbar>b { font-size:14px; font-weight:600; }
#staffListCount { color:var(--text-2); margin-left:8px; font-size:12px; font-weight:400; }
.staff-sort { display:flex; align-items:center; gap:6px; }
.staff-sort select { height:30px; padding:4px 8px; border:1px solid var(--border); border-radius:5px; background:#fff; color:#475569; font-size:12px; }
.office-shell .staff-sort .sort-dir { width:30px; height:30px; padding:0; border-radius:5px; color:#475569; font-size:14px; }
.office-shell .emp-list { display:block; padding:0; overflow-x:auto; overflow-y:visible; gap:0; min-height:180px; }
.staff-table { width:100%; min-width:1000px; border-collapse:collapse; table-layout:fixed; text-align:left; font-size:14px; }
.staff-table thead { background:#f7f9fc; }
.staff-table th { padding:11px 10px; color:#64748b; font-size:12px; font-weight:500; white-space:nowrap; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.staff-table th:first-child, .staff-table td:first-child { padding-left:16px; }
.staff-table th:nth-child(1) { width:12%; }
.staff-table th:nth-child(2) { width:23%; }
.staff-table th:nth-child(3) { width:14%; }
.staff-table th:nth-child(4) { width:9%; }
.staff-table th:nth-child(5) { width:10%; }
.staff-table th:nth-child(6) { width:9%; }
.staff-table th:nth-child(7) { width:9%; }
.staff-table th:nth-child(8) { width:14%; }
.office-shell .staff-table .emp-item { display:table-row; border:0; border-radius:0; padding:0; cursor:default; box-shadow:none; transform:none; background:#fff; }
.office-shell .staff-table .emp-item:hover { transform:none; background:#f8fbff; }
.office-shell .staff-table .emp-item { cursor:pointer; }
.office-shell .staff-table .emp-item:focus-visible { outline:2px solid var(--primary);outline-offset:-2px; }
.staff-table th:last-child,.staff-table td:last-child { position:sticky;right:0;background:#fff;box-shadow:-5px 0 8px -7px rgba(15,23,42,.4);z-index:1; }
.staff-table th:last-child { background:#f7f9fc;z-index:2; }
.staff-table .emp-item:hover td:last-child { background:#f8fbff; }
.staff-table .emp-item.selected td:last-child { background:#f3f7ff; }
.office-shell .staff-table .emp-item.selected { background:#f3f7ff; border:0; box-shadow:none; }
.staff-table td { padding:8px 10px; border-bottom:1px solid #edf0f5; vertical-align:middle; overflow-wrap:anywhere; line-height:1.5; }
.staff-table td :is(.badge,.lack-badge,.archive-incomplete,.archive-complete) { max-width:100%; }
.staff-table .staff-name { max-width:100%; overflow-wrap:anywhere; }
.staff-table tbody tr:last-child td { border-bottom:0; }
.staff-table td small { display:block; margin-top:3px; color:#8a94a3; font-size:11px; }
.staff-table .numeric { white-space:nowrap; color:#475569; font-variant-numeric:tabular-nums; }
.staff-name { padding:0; border:0; background:none; color:#2563eb; font-size:14px; font-weight:500; text-align:left; }
.staff-name:hover { text-decoration:underline; }
.archive-incomplete { color:#b36a0b; font-size:12px; }
.archive-complete { color:#168350; font-size:12px; }
.staff-row-actions { display:flex; align-items:center; gap:4px 10px; flex-wrap:wrap; }
.office-shell .staff-row-actions .m-act { padding:0; min-height:24px; border:0; background:transparent; color:#2563eb; border-radius:3px; font-size:12px; }
.office-shell .staff-row-actions .m-act:hover { text-decoration:underline; background:transparent; }
.staff-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 20px; border-top:1px solid var(--border); font-size:12px; color:var(--text-2); }
.staff-pagination>div, .staff-pagination label { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.staff-pagination select { padding:4px 6px; border:1px solid var(--border); border-radius:4px; color:#475569; background:#fff; font-size:12px; }
.staff-pagination .btn { min-height:28px; }
.office-shell .staff-status-strip { display:flex; align-items:stretch; flex-wrap:wrap; gap:0; margin:0 0 16px; background:#fff; border:1px solid var(--border); border-radius:6px; overflow:hidden; }
.office-shell .staff-status-strip .stat-card { display:flex; flex:1 1 120px; justify-content:center; align-items:center; gap:10px; padding:12px 14px; border:0; border-bottom:2px solid transparent; border-right:1px solid #edf0f5; border-radius:0; background:#fff; box-shadow:none; transform:none; }
.office-shell .staff-status-strip .stat-card:last-child { border-right:0; }
.office-shell .staff-status-strip .stat-card:hover { background:#f8faff; transform:none; }
.office-shell .staff-status-strip .stat-card.active { background:#eff6ff; border-bottom-color:#2563eb; }
.office-shell .staff-status-strip .num { order:2; font-size:20px; line-height:1.4; color:#172b4d; font-weight:600; }
.office-shell .staff-status-strip .label { order:1; font-size:13px; color:#64748b; font-weight:400; gap:6px; }
.staff-secondary-panels { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:16px; align-items:flex-start; }
.staff-secondary-panels>details { flex:1 1 280px; min-width:0; background:#fff; border:1px solid var(--border); border-radius:6px; }
.staff-secondary-panels>details[open] { flex-basis:100%; }
.staff-secondary-panels>details>summary { padding:10px 16px; color:#475569; font-size:13px; cursor:pointer; }
.staff-secondary-panels>details>summary:hover { color:var(--primary); background:#f9fbff; }
.staff-secondary-panels>details[open]>summary { border-bottom:1px solid var(--border); margin-bottom:16px; }
.staff-secondary-panels>details>section, .staff-secondary-panels>details>.sec-title, .staff-secondary-panels>details>.alert-inline, .staff-secondary-panels>details>#missingPanel { margin-left:16px; margin-right:16px; }
.staff-secondary-panels .sec-title h3 { font-size:14px; }
#staffReminderCount { margin-left:6px; color:#b36a0b; font-size:12px; }
.office-shell .viewing-employee>.staff-directory-header, .office-shell .viewing-employee>.staff-status-strip, .office-shell .viewing-employee>.staff-secondary-panels { display:none; }
.office-shell .staff-detail-open>.list-panel { display:none; }
.office-shell .staff-detail-open>.detail-panel { display:block; }
.staff-detail-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; border-bottom:1px solid var(--border); background:#fff; }
.staff-detail-nav>div { display:flex; align-items:center; gap:8px; }
.staff-detail-nav span { color:var(--text-2); font-size:12px; }
.office-shell .detail-panel { overflow:hidden; scroll-margin-top:76px; }
.office-shell .detail-head { padding:20px; background:#fff; gap:14px; }
.office-shell .detail-head .avatar { width:48px; height:48px; font-size:20px; box-shadow:none; }
.office-shell .detail-head h2 { font-size:20px; font-weight:600; }
.office-shell .detail-head .meta { font-size:12px; }
.office-shell .detail-head .co-tag { padding:2px 8px; background:#f7f9fc; border:0; border-radius:4px; font-size:12px; color:#64748b; font-weight:400; }
.office-shell .detail-head .ops { gap:7px; }
.office-shell .op-pill { border-radius:5px; padding:5px 10px; min-height:32px; color:#475569; font-size:12px; font-weight:400; }
.office-shell .op-pill.active { background:#eff6ff; border-color:#9fbeff; color:var(--primary); box-shadow:none; }
.office-shell .tabs { padding:0 20px; gap:24px; background:#fff; }
.office-shell .tab { border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:#64748b; padding:12px 0; font-size:14px; font-weight:400; }
.office-shell .tab:hover { color:var(--primary); }
.office-shell .tab.active { border-bottom-color:var(--primary); color:var(--primary); background:none; box-shadow:none; font-weight:500; }
.office-shell .tab-body { padding:20px; min-height:350px; }
.office-shell .grid-2, .office-shell .kv { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.office-shell .kv-item { border:1px solid var(--border); border-radius:5px; padding:12px 14px; background:#fafbfd; }
.office-shell .kv-item .k { font-size:12px; font-weight:400; margin-bottom:4px; }
.office-shell .kv-item .v { font-size:14px; font-weight:500; overflow-wrap:anywhere; word-break:normal; }
.office-shell .kv-item.hl { background:#eff6ff; border-color:#c6d9ff; }
.office-shell .kv-item.hl .v { font-size:18px; }
.office-shell .kv-block { margin-bottom:20px; }
.office-shell .kv-block>.bk-title, .office-shell .tl-head h3 { font-size:14px; font-weight:600; color:#334155; }
.office-shell .mat-card { grid-template-columns:minmax(0,1fr); padding:14px; gap:9px; border-radius:5px; background:#fff; }
.office-shell .mat-card:hover { transform:none; box-shadow:none; background:#f9fbff; }
.office-shell .mat-card.need { background:#fff; border-color:#efd7d9; }
.office-shell .mat-card.warn { background:#fffaf3; }
.office-shell .mat-card.expired { background:#fff7f7; }
.office-shell .mat-card .m-icon, .office-shell .file-row .f-icon { display:none; }
.office-shell .mat-card .m-name, .office-shell .file-row .f-name { font-size:14px; font-weight:500; }
.office-shell .mat-card .m-right { padding-top:9px; border-top:1px solid #edf0f5; }
.office-shell .mat-card .m-sub { margin-top:3px; }
.office-shell .m-act { padding:3px 8px; border-radius:4px; font-size:12px; font-weight:400; }
.office-shell .m-status { margin-left:auto; }
.office-shell .lack-note { padding:12px 14px; border-radius:5px; font-size:13px; background:#fffaf2; border-color:#f3d8ac; gap:7px; }
.office-shell .lack-tag { border-color:#f0d3b4; background:#fff; color:#9b641f; font-size:12px; font-weight:400; border-radius:4px; }
.office-shell .lack-note b { font-weight:500; }
.office-shell .lack-tip { display:block; width:100%; margin-left:0; font-weight:400; font-size:12px; }
.office-shell .notice-box, .office-shell .info-box, .office-shell .upload-row, .office-shell .file-row { background:#f8fafc; border-radius:5px; font-size:13px; font-weight:400; }
.office-shell .info-box { border-color:#d5e1f6; color:#475569; }
.office-shell .upload-row { border-color:#d5deea; padding:10px 12px; }
.office-shell .file-row { background:#fff; padding:12px 14px; }
.office-shell .hint { font-size:12px; line-height:1.8; }
.office-shell .timeline { padding-left:24px; }
.office-shell .timeline::before { background:#dce4ef; width:1px; }
.office-shell .tl-item::before { width:10px; height:10px; left:-20px; border-width:2px; }
.office-shell .tl-title { font-size:14px; font-weight:500; }
.office-shell .tl-date { font-size:12px; font-weight:400; }

/* Shared tabbed pages, organisation, recruitment and account lists. */
.office-shell .al-tabs { gap:0; border-bottom:1px solid var(--border); margin-bottom:18px; background:#fff; padding:0 16px; border-radius:6px 6px 0 0; }
.office-shell .al-tab { border:0; border-bottom:2px solid transparent; border-radius:0; padding:11px 16px; background:transparent; font-size:13px; font-weight:400; color:#64748b; }
.office-shell .al-tab.active { background:none; color:var(--primary); border-bottom-color:var(--primary); box-shadow:none; }
.office-shell .al-cnt, .office-shell .al-tab.active .al-cnt { color:var(--primary); background:#eaf1ff; font-size:11px; border-radius:4px; }
.office-shell .toolbar { gap:10px; }
.office-shell .toolbar .search-box { min-width:240px; }
.office-shell .search-box input { border-radius:5px; }
.office-shell .org-list-filters { padding:14px; gap:12px; background:#f8fafc; border-radius:5px; }
.office-shell .org-list-filters label { font-weight:400; }
.office-shell .org-list-filters input, .office-shell .org-list-filters select { padding:6px 10px; min-height:34px; border-radius:5px; }
.office-shell .org-pagination, .office-shell .org-page-controls { gap:8px; font-size:12px; }
.office-shell .org-page-controls select { border-radius:4px; padding:4px 6px; }
.office-shell .tb-wrap { border-radius:5px; }
.office-shell table.roster { font-size:13px; }
.office-shell table.roster th { background:#f7f9fc; color:#64748b; font-size:12px; font-weight:500; }
.office-shell table.roster td { color:#334155; }
.office-shell table.roster th, .office-shell table.roster td { padding:10px 12px; }
.office-shell table.roster tbody tr:hover { background:#f8fbff; }
.office-shell .org-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.office-shell .org-card { border:1px solid var(--border); border-radius:5px; box-shadow:none; transform:none; background:#fff; padding:14px; }
.office-shell .org-card:hover { transform:none; box-shadow:none; border-color:#adc5ef; }
.office-shell .org-card::before { display:none; }
.office-shell .org-card.active { border-color:#8aaff6; background:#f5f9ff; }
.office-shell .org-card .oc-ico { display:none; }
.office-shell .org-card .oc-name { font-size:13px; font-weight:500; }
.office-shell .org-card .oc-role { font-size:11px; font-weight:400; }
.office-shell .org-card .oc-num, .office-shell .org-card.parent .oc-num { font-size:26px; font-weight:600; color:#2459bb; }
.office-shell .oc-chip { font-weight:400; border-radius:4px; }
.office-shell .alert-inline .panel { border-radius:5px; }
.office-shell .alert-chip, .office-shell .miss-chip { border-radius:4px; font-weight:400; padding:5px 9px; transform:none; box-shadow:none; }
.office-shell .alert-chip:hover, .office-shell .miss-chip:hover { transform:none; box-shadow:none; }
.office-shell .alert-ok, .office-shell .miss-ok { background:#f0faf4; border-radius:5px; padding:10px 14px; font-size:13px; font-weight:400; }
.office-shell .al-sub { color:#475569; font-size:12px; font-weight:400; }
.office-shell .miss-entry { padding:13px 15px; border:1px solid #eed7b9; border-left:3px solid #d99b39; border-radius:5px; box-shadow:none; background:#fffcf6; transform:none; }
.office-shell .miss-entry:hover { transform:none; box-shadow:none; border-color:#d99b39; }
.office-shell .miss-entry .me-ico { display:none; }
.office-shell .miss-entry .me-main b { font-size:14px; font-weight:500; color:#475569; }
.office-shell .miss-entry .me-main span { font-size:12px; }
.office-shell .miss-entry .me-tags { font-weight:400; background:none; border:0; padding:0; }
.office-shell .miss-entry .me-go { border-radius:4px; padding:5px 10px; font-size:12px; font-weight:400; }
.office-shell .miss-panel { border-top:1px solid var(--border); }
.office-shell .miss-head h3 { font-weight:600; font-size:16px; color:#334155; }
.office-shell .miss-sum .ms { padding:12px; background:#f8fafc; border-radius:5px; }
.office-shell .miss-sum .ms b { font-size:24px; font-weight:600; }
.office-shell .miss-sum .ms span { font-weight:400; }
.office-shell .miss-group .mg-t { font-weight:500; color:#475569; }
.office-shell .miss-item { border-radius:4px; }
.office-shell .miss-item .mi-name { font-weight:500; }
.office-shell .miss-item .mi-cnt, .office-shell .miss-tag { border-radius:4px; font-weight:400; }
.office-shell .empty { padding:48px 20px; font-size:13px; }
.office-shell .empty .icon { display:none; }
.office-shell .empty b { font-weight:500; color:#475569; }
.office-shell .empty p { margin:6px 0 14px; }

/* Dialogs preserve visible header/actions while only the form body scrolls. */
.office-shell .mask { padding:24px 16px; background:rgba(17,30,52,.4); }
.office-shell .modal { min-width:0; max-height:calc(100dvh - 48px); border-radius:7px; border:1px solid #d8dfe9; box-shadow:0 16px 50px rgba(18,34,62,.18); animation:none; overflow:hidden; }
.office-shell .modal>.credential-form { display:contents; }
.office-shell .modal :is(.modal-body,.pv-body,.ds-plan-body) { min-width:0; min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; }
.office-shell .modal :is(.modal-head,.modal-foot) { flex:0 0 auto; }
.office-shell .modal-head { padding:14px 20px; min-height:56px; background:#fff; border-radius:0; gap:10px; }
.office-shell .modal-head h3 { font-size:16px; font-weight:600; color:#172b4d; }
.office-shell .modal-close { width:28px; height:28px; border-radius:4px; font-size:18px; flex:none; }
.office-shell .modal-close:empty { position:relative; }
.office-shell .modal-close:empty::before, .office-shell .modal-close:empty::after { content:""; position:absolute; left:7px; top:13px; width:14px; height:1.5px; border-radius:1px; background:currentColor; transform:rotate(45deg); }
.office-shell .modal-close:empty::after { transform:rotate(-45deg); }
.office-shell .modal-body { padding:20px; gap:16px; grid-template-columns:repeat(2,minmax(0,1fr)); overscroll-behavior:contain; }
.office-shell .modal-foot { padding:12px 20px; gap:8px; background:#fff; }
.office-shell .mask[aria-busy="true"] .modal-foot button:disabled { opacity:1; background:#eef1f6; border-color:#e0e5ed; color:#7a8799; cursor:wait; }
.office-shell .mask[aria-busy="true"] :is(input,select,textarea):disabled { background:#f7f9fc; color:#7a8799; cursor:wait; }
.office-shell .mask[aria-busy="true"] .modal-foot :is(button.btn-primary,button[data-save-action],button[aria-busy="true"],button.is-loading)::before { content:""; display:inline-block; width:13px; height:13px; flex:none; border:2px solid #c4cedb; border-top-color:#657a98; border-radius:50%; animation:office-processing .7s linear infinite; }
@keyframes office-processing { to { transform:rotate(360deg); } }
.office-shell .field { min-width:0; gap:6px; }
.office-shell .field label { font-size:13px; font-weight:500; }
.office-shell .field :where(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { padding:7px 10px; min-height:36px; border-color:#d8dfe9; border-radius:5px; font-size:14px; line-height:20px; }
.office-shell .field input[type=checkbox], .office-shell .field input[type=radio] { width:15px; height:15px; padding:0; accent-color:var(--primary); flex:none; }
.office-shell .field textarea { resize:vertical; min-height:76px; }
.work-experience-head,.work-experience-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.work-experience-head{margin-bottom:16px}
.work-experience-head h3,.work-experience-title h4{margin:0;font-size:15px;font-weight:600;color:#172b4d}
.work-experience-head .hint,.work-experience-title p{margin:5px 0 0;font-size:13px;color:#64748b}
.work-experience-list{display:flex;flex-direction:column;gap:12px}
.work-experience-item{border:1px solid var(--border);border-radius:5px;padding:16px;background:#fff}
.work-experience-title p{font-variant-numeric:tabular-nums}
.work-experience-actions{display:flex;gap:8px;flex:none}
.work-experience-item dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:16px 0 0}
.work-experience-item dl>div{min-width:0}
.work-experience-item dt{font-size:12px;color:#64748b;margin-bottom:4px}
.work-experience-item dd{font-size:14px;line-height:1.7;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.work-experience-wide{grid-column:1/-1}
.office-shell .field .work-experience-current{display:flex;align-items:center;gap:7px;margin-top:3px;font-weight:400}
@media(max-width:560px){.work-experience-item dl{grid-template-columns:1fr}.work-experience-item{padding:12px}}
.office-shell .field.invalid input, .office-shell .field.invalid select, .office-shell .field.invalid textarea { border-color:var(--red); }
.office-shell .field .err, .office-shell .field .tip { font-size:12px; }
.office-shell .field input:focus, .office-shell .field select:focus, .office-shell .field textarea:focus { border-color:#6c9bf5; box-shadow:0 0 0 2px rgba(37,99,235,.1); }
.office-shell .field.invalid :is(input,select,textarea):focus { border-color:var(--red); box-shadow:0 0 0 2px rgba(220,38,38,.08); }
.office-shell .field .submission-content { padding:12px; min-height:140px; background:#fff; border-color:#b9d0fa; border-radius:5px; color:#334155; font-size:14px; line-height:1.8; }
.office-shell .submission-result { background:#f5f7fa; border-radius:5px; font-size:13px; }
.office-shell .org-search-control, .office-shell .date-control { border-color:#d8dfe9; border-radius:5px; }
.office-shell .org-search-control:focus-within, .office-shell .date-control:focus-within { border-color:#6c9bf5; box-shadow:0 0 0 2px rgba(37,99,235,.1); }
.office-shell .date-control.is-invalid, .office-shell .field.invalid .date-control, .office-shell .field.invalid .org-search-control { border-color:var(--red); }
.office-shell .field .org-search-control input, .office-shell .field .date-control input { border:0; border-radius:5px 0 0 5px; padding:7px 10px; min-height:34px; box-shadow:none; }
.office-shell .org-search-control>button, .office-shell .date-control .date-trigger { min-width:60px; background:#f8fafc; border-radius:0 4px 4px 0; padding:6px 10px; font-size:12px; font-weight:400; }
.office-shell .date-control .date-trigger:hover { background:#eff6ff; }
.office-shell .date-popup, .office-shell .org-suggestion-popup { border-radius:6px; box-shadow:0 8px 28px rgba(17,30,52,.16); border-color:#d8dfe9; }
.office-shell .org-suggestion-list small { font-size:12px; }
.office-shell .cf-row input { border-radius:5px; min-height:36px; }
.office-shell #impPreview, .office-shell #dingSyncResult { border-radius:5px!important; background:#f8fafc!important; }
.office-shell #matPreview img { border-radius:5px!important; box-shadow:none!important; }
.office-shell .pv-body { padding:20px 24px; max-height:none; }
.office-shell .lightbox img { border-radius:5px; box-shadow:0 12px 50px rgba(0,0,0,.3); }
.office-shell .lightbox .lb-btn { border-radius:5px; font-size:13px; font-weight:400; }
.office-shell .lightbox .lb-cap { border-radius:5px; font-size:12px; }
.office-shell .toast { top:72px; max-width:min(600px,calc(100vw - 32px)); padding:10px 16px; border:1px solid #d5e0f0; border-radius:5px; background:#fff; color:#334155; box-shadow:0 4px 18px rgba(18,34,62,.16); text-align:left; font-size:13px; line-height:1.6; }
.office-shell .toast.show { pointer-events:auto; }
.office-shell .toast:has(.toast-close) { display:flex; align-items:flex-start; gap:16px; overflow-wrap:anywhere; }
.office-shell .toast-message { min-width:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.office-shell .toast[data-tone="error"] { background:#fff4f4; border-color:#f3c4c8; border-left:3px solid #d1434f; color:#9c2834; }
.office-shell .toast[data-tone="success"] { background:#f0faf4; border-color:#bce3ca; border-left:3px solid #2e9160; color:#266a47; }
.office-shell .toast[data-tone="info"] { background:#f2f7ff; border-color:#c4d7f5; border-left:3px solid #477dca; color:#34577d; }
.office-shell .toast-close { display:inline-flex; align-items:center; justify-content:center; flex:0 0 22px; width:22px; height:22px; margin:-1px -7px -1px 0; padding:0; border:0; border-radius:3px; background:transparent; color:inherit; font-size:18px; line-height:1; opacity:.7; }
.office-shell .toast-close:hover { background:rgba(35,55,85,.07); opacity:1; }
.office-shell .toast-close svg { width:14px; height:14px; }
.office-shell .toast-close:empty { position:relative; }
.office-shell .toast-close:empty::before, .office-shell .toast-close:empty::after { content:""; position:absolute; left:5px; top:10px; width:12px; height:1.5px; background:currentColor; transform:rotate(45deg); }
.office-shell .toast-close:empty::after { transform:rotate(-45deg); }
.office-shell .workbench-boot { max-width:520px; margin:100px auto; background:#fff; border:1px solid var(--border); border-radius:6px; padding:36px 24px; box-shadow:none; }
.office-shell .workbench-boot h2 { font-size:18px; font-weight:500; color:#334155; }
.office-shell .workbench-boot p { font-size:13px; }
.office-shell .boot-spinner { width:28px; height:28px; border-width:2px; }

/* Company-specific affiliations stay visible with the employee record. */
.office-shell .employee-assignments { margin:0 20px 18px; border:1px solid var(--border); border-radius:6px; background:#fff; overflow:hidden; }
.employee-assignments-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; background:#fafbfd; border-bottom:1px solid var(--border); }
.employee-assignments-head h3 { margin:0; font-size:14px; font-weight:600; }
.employee-assignments-head h3 span { display:inline-block; margin-left:8px; color:var(--text-2); font-size:12px; font-weight:400; }
.employee-assignments-head p { margin:3px 0 0; color:var(--text-2); font-size:12px; }
.employee-assignments-head>.btn { flex-shrink:0; }
.office-shell .employee-assignments-table { width:100%; min-width:500px; table-layout:fixed; }
.office-shell .employee-assignments-table th:nth-child(1) { width:34%; }
.office-shell .employee-assignments-table th:nth-child(2), .office-shell .employee-assignments-table th:nth-child(3) { width:25%; }
.office-shell .employee-assignments-table th:nth-child(4) { width:16%; }
.office-shell .employee-assignments-table :is(th,td) { padding:9px 14px; white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
.assignment-kind { display:inline-block; padding:1px 7px; border:1px solid #e2e7ef; border-radius:3px; color:#64748b; background:#f8fafc; font-size:12px; white-space:nowrap; }
.assignment-kind.is-primary { background:#eff6ff; color:#1d4ed8; border-color:#c7dcff; }
.assignment-pending { color:#9a6700; }
.office-shell .assignment-modal { max-width:880px; }
.office-shell .assignment-modal-body { display:flex; flex-direction:column; gap:16px; }
.assignment-editor-context p { margin:5px 0 0; color:var(--text-2); font-size:12px; line-height:1.8; }
.assignment-editor-toolbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.assignment-editor-toolbar>span { flex:1 1 auto; color:var(--text-2); font-size:12px; }
.assignment-edit-list { display:flex; flex-direction:column; gap:14px; }
.assignment-edit-row { min-width:0; margin:0; padding:12px 14px; border:1px solid var(--border); border-radius:5px; }
.assignment-edit-row legend { padding:0 6px; font-size:12px; font-weight:600; }
.assignment-edit-controls { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:12px; }
.assignment-choice { display:flex; flex-direction:column; min-width:0; gap:6px; font-size:12px; color:var(--text-2); }
.office-shell .assignment-choice select { width:100%; min-width:0; min-height:36px; padding:7px 10px; color:var(--text); background:#fff; border:1px solid #d8dfe9; border-radius:4px; font-size:13px; }
.assignment-row-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.assignment-row-actions>label { display:flex; align-items:center; gap:7px; font-size:12px; }
.office-shell .assignment-row-actions input[type="radio"] { width:15px; height:15px; min-height:0; padding:0; margin:0; accent-color:var(--primary); }
.assignment-error { padding:9px 12px; border:1px solid #f3c5c8; border-radius:4px; color:#b4232e; background:#fff5f5; font-size:13px; }
@media (max-width:800px) {
  .office-shell .employee-assignments { margin:0 16px 16px; }
  .assignment-edit-controls { grid-template-columns:1fr; gap:10px; }
  .employee-assignments-head { align-items:flex-start; }
  .employee-assignments-head h3 span { display:block; margin-left:0; }
}

/* Standalone authentication and error pages share the office visual language. */
.office-auth .login-screen.page { background:var(--bg); padding:32px 20px; }
.office-auth .login-card { max-width:420px; padding:32px; border:1px solid var(--border); border-radius:8px; background:#fff; box-shadow:0 5px 24px rgba(24,42,75,.05); animation:none; text-align:left; }
.office-auth .auth-brand { display:flex; align-items:center; gap:10px; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid #edf0f5; color:#172b4d; font-size:19px; font-weight:600; }
.office-auth .auth-brand img { width:40px; height:40px; padding:3px; object-fit:contain; }
.office-auth .login-card h2 { font-size:20px; font-weight:600; letter-spacing:0; }
.office-auth .login-card .login-sub { font-size:13px; margin:6px 0 24px; line-height:1.8; color:var(--text-2); }
.office-auth .login-card .field { gap:7px; margin-bottom:18px; }
.office-auth .field label { font-size:13px; font-weight:400; }
.office-auth .field input { min-height:40px; border:1px solid #d8dfe9; border-radius:5px; padding:8px 11px; font-size:14px; background:#fff; }
.office-auth .field input:focus { border-color:#6c9bf5; box-shadow:0 0 0 2px rgba(37,99,235,.1); }
.office-auth .login-submit { width:100%; min-height:40px; margin-top:2px; }
.office-auth .login-submit:disabled { cursor:wait; opacity:.65; }
.office-auth .login-hint { margin-top:22px; padding-top:18px; border-top:1px solid #edf0f5; color:#8b96a7; font-size:12px; line-height:1.8; }
.office-auth .login-err { border-radius:5px; font-size:13px; font-weight:400; padding:9px 12px; }
.office-auth .error-code { margin-bottom:12px; color:#8a9bb6; font-size:13px; }
.office-auth .error-actions { display:flex; gap:10px; flex-wrap:wrap; }

@media (min-width:1600px) {
  .office-shell .wrap { padding:28px 32px 24px; }
  .office-shell .staff-filters { gap:16px; }
}
@media (max-width:1200px) {
  .office-shell .wrap { padding:20px 18px; }
  .office-shell .office-page-head { align-items:flex-start; }
  .staff-filters .staff-keyword { flex:2 1 230px; }
  .office-shell .detail-head .ops { margin-left:0; width:100%; }
}
@media (max-width:800px) {
  :root { --office-sidebar:64px; }
  .office-shell .topbar { padding:0 14px; gap:8px; }
  .office-shell .office-breadcrumb>span { display:none; }
  .office-shell .topbar-acct .acct-name span { display:none; }
  .office-shell .side-nav { padding:0 8px 16px; }
  .office-brand { padding:0; justify-content:center; margin:0 -8px 16px; }
  .office-brand span, .office-shell .nav-txt, .office-shell .nav-cnt, .office-shell .nav-cap { display:none; }
  .office-shell .nav-item { justify-content:center; padding:12px; }
  .office-shell .wrap { padding:18px 14px; }
  .office-page-head { margin-bottom:16px; gap:12px; }
  .office-page-head h1 { font-size:19px; }
  .office-shell .office-page-actions { width:100%; gap:6px; }
  .office-shell .office-page-actions .btn { padding:5px 9px; font-size:12px; }
  .office-shell .staff-status-strip .stat-card { flex-basis:30%; padding:10px; }
  .office-shell .staff-status-strip .num { font-size:18px; }
  .office-shell .staff-filters { padding:14px; gap:10px; }
  .staff-filters label { flex-basis:42%; }
  .staff-filters .staff-keyword { flex-basis:60%; }
  .staff-table-toolbar, .staff-pagination { padding:12px 14px; }
  .office-shell .grid-2, .office-shell .kv { gap:12px; }
  .office-shell .tabs { gap:18px; padding:0 16px; }
  .office-shell .tab { font-size:13px; }
  .office-shell .detail-head, .office-shell .tab-body { padding:16px; }
  .office-shell .staff-detail-nav { padding:10px 16px; flex-wrap:wrap; }
  .office-shell .sec-title .sub { flex-basis:100%; order:3; }
  .office-shell .mask { padding:16px 10px; }
  .office-shell .modal { max-height:calc(100dvh - 32px); }
  .office-shell .modal-body { padding:16px; gap:14px; }
  .office-shell .modal-head, .office-shell .modal-foot { padding:12px 16px; }
}
@media (max-width:540px) {
  .office-shell .topbar { padding:0 10px; gap:8px; }
  .office-shell .topbar>.spacer { display:none; }
  .office-shell .topbar .ops { flex:0 0 auto; gap:6px; min-width:0; white-space:nowrap; }
  .office-shell .topbar-acct { flex:0 1 auto; min-width:0; max-width:64px; padding:0; border:0; gap:0; }
  .office-shell .topbar-acct .acct-name { min-width:0; max-width:64px; }
  .office-shell .topbar-acct .acct-name b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .office-shell .topbar-acct .acct-ava { display:none; }
  .office-shell .topbar .btn { flex:0 0 auto; padding:4px 6px; white-space:nowrap; }
  .office-shell .office-breadcrumb { display:block; flex:1 1 auto; min-width:0; font-size:12px; overflow:hidden; }
  .office-shell .office-breadcrumb b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .office-shell .wrap { padding:14px 10px; }
  .office-shell .grid-2, .office-shell .kv, .office-shell .modal-body { grid-template-columns:1fr; }
  .office-shell .staff-filters label, .office-shell .staff-filters .staff-keyword { flex-basis:100%; }
  .office-shell .staff-status-strip .stat-card { gap:6px; }
  .office-shell .staff-status-strip .label { font-size:12px; }
  .office-shell .staff-status-strip .label .dot { display:none; }
  .office-shell .staff-status-strip .num { font-size:16px; }
  .office-shell .submission-editor-tip { flex-wrap:wrap; }
  .office-shell .miss-entry { align-items:flex-start; flex-wrap:wrap; }
  .office-shell .miss-item { flex-wrap:wrap; }
  .office-shell .miss-item .mi-main { flex-basis:65%; }
  .office-auth .login-card { padding:26px 22px; }
}
@media (prefers-reduced-motion:reduce) {
  .office-shell .toast, .office-shell .btn, .office-auth .btn { transition:none; }
  .office-shell .mask[aria-busy="true"] .modal-foot button::before { animation:none; }
}
.office-shell .other-materials { margin-top:24px; border-top:1px solid #e5eaf2; padding-top:18px; }
.office-shell .other-material-list { border:1px solid #e1e7f0; border-radius:5px; overflow:hidden; }
.office-shell .other-material-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 14px; background:#fff; }
.office-shell .other-material-row + .other-material-row { border-top:1px solid #e9edf3; }
.office-shell .other-material-info { min-width:0; display:flex; flex-direction:column; gap:4px; }
.office-shell .other-material-info b { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.office-shell .other-material-info span { font-size:12px; color:var(--text-2); white-space:pre-wrap; overflow-wrap:anywhere; }
.office-shell .other-material-actions { display:flex; gap:6px; flex-wrap:wrap; flex-shrink:0; }
.office-shell .other-material-empty, .office-shell .other-material-queue, .office-shell .other-material-result { padding:12px 14px; border-radius:4px; background:#f5f7fb; font-size:13px; color:var(--text-2); overflow-wrap:anywhere; }
.office-shell .other-material-queue ul { margin:0; padding-left:20px; max-height:180px; overflow:auto; }
.office-shell .other-material-queue li + li { margin-top:6px; }
@media (max-width:800px) {
  .office-shell .other-material-row { align-items:flex-start; flex-direction:column; gap:10px; }
  .office-shell .other-material-actions { flex-shrink:1; }
}
