*, *::before, *::after { box-sizing: border-box; }
body.backoffice-shell.admin-shell.theme-modern { --brand-50:#f0f4ff; --brand-100:#e0eaff; --brand-200:#c2d4ff; --brand-500:#3d60e8; --brand-600:#2a47cc; --sidebar:#1e2a45; --text:#1e2a45; --muted:#64748b; --muted-soft:#94a3b8; --line:#e8edf5; --line-soft:#f1f5f9; --page-bg:#f4f6fb; --green:#15803d; --red:#dc2626; --yellow:#d97706; --indigo:#6d28d9; }
body.backoffice-shell.admin-shell.theme-modern { margin:0; background:var(--page-bg); color:var(--text); font-family:"Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; } button,input,select,textarea { font:inherit; } * { scrollbar-width:thin; scrollbar-color:#d1d9e6 transparent; }
.layout { min-height:100vh; overflow:hidden; }
.sidebar { position:fixed; inset:0 auto 0 0; z-index:20; width:240px; min-width:240px; height:100vh; background:var(--sidebar); display:flex; flex-direction:column; }
.main-area { width:calc(100vw - 240px); height:100vh; margin-left:240px; display:flex; flex-direction:column; overflow:hidden; }
.content-area { flex:1; overflow-y:auto; padding:28px; background:var(--page-bg); }
.content-area::-webkit-scrollbar { width:6px; } .content-area::-webkit-scrollbar-thumb { background:#d1d9e6; border-radius:3px; }
.sidebar-logo { padding:24px 20px 20px; border-bottom:1px solid rgba(255,255,255,.08); }
.logo-wrap { display:flex; align-items:center; gap:10px; }
.logo-mark { width:38px; height:38px; background:rgba(61,96,232,.25); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.logo-title { display:block; color:#fff; font-size:14px; font-weight:700; line-height:1.2; }
.logo-subtitle { display:block; color:rgba(255,255,255,.45); font-size:11px; margin-top:1px; }
.nav-menu { flex:1; padding:12px 0; overflow-y:auto; }
.nav-section-title { padding:8px 20px 6px; color:rgba(255,255,255,.25); font-size:11px; font-weight:700; letter-spacing:.08em; }
.nav-group-label { padding:14px 20px 6px; color:rgba(255,255,255,.3); font-size:11px; font-weight:600; letter-spacing:.06em; }
.nav-divider { height:1px; margin:10px 16px; background:rgba(255,255,255,.08); }
.nav-item { display:flex; align-items:center; gap:10px; padding:10px 20px; margin:2px 10px; border-radius:10px; color:rgba(255,255,255,.55); font-size:14px; font-weight:500; cursor:pointer; transition:all .18s ease; position:relative; }
.nav-item span { display:inline-block; line-height:1; }
.nav-item:hover { background:rgba(255,255,255,.07); color:rgba(255,255,255,.85); }
.nav-item.active { background:rgba(61,96,232,.25); color:#fff; font-weight:600; }
.nav-item.active::before { content:""; position:absolute; left:0; top:50%; width:3px; height:20px; background:var(--brand-500); border-radius:0 2px 2px 0; transform:translateY(-50%); }
.nav-item svg { width:16px; height:16px; flex-shrink:0; }
.nav-accordion { margin:2px 0; }
.nav-accordion summary { list-style:none; }
.nav-accordion summary::-webkit-details-marker { display:none; }
.nav-accordion-summary { display:flex; align-items:center; gap:10px; padding:10px 14px 10px 20px; margin:2px 10px; border-radius:10px; color:rgba(255,255,255,.6); font-size:14px; font-weight:600; cursor:pointer; transition:all .18s ease; }
.nav-accordion-summary:hover { background:rgba(255,255,255,.07); color:rgba(255,255,255,.9); }
.nav-accordion.active > .nav-accordion-summary { color:#fff; background:rgba(255,255,255,.06); }
.nav-accordion-summary svg { width:16px; height:16px; flex-shrink:0; }
.nav-accordion-summary span { flex:1; min-width:0; line-height:1; }
.nav-accordion-arrow { margin-left:auto; transition:transform .18s ease; opacity:.6; }
.nav-accordion[open] .nav-accordion-arrow { transform:rotate(180deg); }
.nav-accordion-panel { padding:1px 0 4px; }
.nav-subitem { min-height:34px; padding:8px 18px 8px 46px; margin:1px 10px; font-size:13px; color:rgba(255,255,255,.48); border-radius:8px; }
.nav-subitem::after { content:""; position:absolute; left:30px; top:50%; width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.22); transform:translateY(-50%); }
.nav-subitem.active::before { left:10px; height:16px; }
.nav-subitem.active::after { background:#fff; }
.sidebar-footer { padding:16px 20px; border-top:1px solid rgba(255,255,255,.08); }
.admin-card { display:flex; align-items:center; gap:10px; }
.admin-avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,.2); }
.admin-avatar-placeholder,.topbar-avatar.admin-avatar-placeholder { display:inline-flex; align-items:center; justify-content:center; background:rgba(61,96,232,.35); color:#fff; font-size:13px; font-weight:700; flex-shrink:0; }
.topbar-avatar.admin-avatar-placeholder { width:32px; height:32px; border:2px solid var(--line); color:var(--brand-500); background:var(--brand-100); }
.admin-meta { flex:1; min-width:0; }
.admin-name { color:#fff; font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-email { color:rgba(255,255,255,.4); font-size:11.5px; margin-top:1px; }
.logout-link { color:rgba(255,255,255,.35); line-height:0; } .logout-link svg { width:15px; height:15px; }
.topbar { height:60px; min-height:60px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; padding:0 28px; gap:16px; }
.breadcrumb { display:flex; align-items:center; gap:6px; flex:1; }
.breadcrumb-root { color:var(--muted-soft); font-size:13px; font-weight:500; }
.breadcrumb-current { color:var(--text); font-size:13.5px; font-weight:700; }
.breadcrumb svg { width:14px; height:14px; color:#cbd5e1; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.topbar-user { display:flex; align-items:center; gap:8px; padding-left:16px; border-left:1px solid var(--line-soft); }
.online-dot { width:8px; height:8px; background:#22c55e; border-radius:50%; }
.topbar-name { color:var(--muted); font-size:13px; font-weight:500; }
.topbar-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.card { background:#fff; border-radius:16px; box-shadow:0 2px 12px rgba(0,0,0,.05); }
.card-pad { padding:22px 24px; }
.card-head { padding:14px 20px; border-bottom:1px solid var(--line,#e8e8e8); font-size:14px; font-weight:600; color:var(--text,#1e293b); }
.stat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; border-radius:12px; padding:16px 20px; box-shadow:0 1px 6px rgba(0,0,0,.04); display:flex; align-items:center; gap:14px; }
.stat-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat-icon svg { width:20px; height:20px; } .stat-icon.brand { color:var(--brand-500); background:var(--brand-100); } .stat-icon.cyan { color:#0891b2; background:#e0f2fe; } .stat-icon.yellow { color:var(--yellow); background:#fef3c7; } .stat-icon.green { color:var(--green); background:#dcfce7; } .stat-icon.indigo { color:var(--indigo); background:#ede9fe; }
.stat-value { color:var(--text); font-size:24px; font-weight:700; font-family:Consolas,"JetBrains Mono",monospace; line-height:1; }
.stat-label { color:var(--muted-soft); font-size:12.5px; font-weight:500; margin-top:3px; }

/* Dashboard 分布图 & 趋势图 */
.dist-list { display:flex; flex-direction:column; gap:10px; }
.dist-row { display:flex; align-items:center; gap:10px; }
.dist-label { flex:0 0 auto; min-width:90px; font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dist-track { flex:1; height:22px; background:#f1f5f9; border-radius:4px; overflow:hidden; }
.dist-bar { height:100%; border-radius:4px; min-width:2px; transition:width .4s ease; }
.dist-count { flex:0 0 auto; min-width:42px; text-align:right; font-size:14px; font-weight:700; color:var(--text); }
.dist-unit { font-size:12px; font-weight:400; color:#94a3b8; margin-left:1px; }
.trend-chart { display:flex; align-items:flex-end; gap:14px; height:160px; padding:0 4px; }
.trend-col { flex:1; display:flex; flex-direction:column; align-items:center; height:100%; justify-content:flex-end; }
.trend-val { font-size:12px; margin-bottom:4px; line-height:1; transition:color .2s; }
.trend-bar-wrap { width:100%; max-width:40px; flex:1; display:flex; align-items:flex-end; background:#f8fafc; border-radius:4px 4px 0 0; }
.trend-bar { width:100%; border-radius:4px 4px 0 0; min-height:4px; transition:height .4s ease; }
.trend-date { font-size:11px; color:#94a3b8; margin-top:6px; white-space:nowrap; }
.empty-block { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px 16px; min-height:120px; }
.project-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.project-head,.admit-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.project-title,.admit-title { color:var(--text); font-size:17px; font-weight:700; line-height:1.3; margin-top:8px; }
.time-list { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.time-row { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; }
.time-row svg { width:13px; height:13px; color:var(--muted-soft); flex-shrink:0; }
.mini-stats { display:flex; gap:16px; padding:12px 16px; background:#f8fafc; border-radius:10px; margin-bottom:16px; }
.mini-stat { text-align:center; } .mini-stat-value { color:var(--text); font-size:18px; font-weight:700; font-family:Consolas,"JetBrains Mono",monospace; } .mini-stat-value.green{color:var(--green)} .mini-stat-value.yellow{color:var(--yellow)} .mini-stat-value.brand{color:var(--brand-500)}
.mini-stat-label { color:var(--muted-soft); font-size:11.5px; font-weight:500; } .mini-divider { width:1px; background:var(--line); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:10px; padding:8px 16px; font-size:13.5px; font-weight:600; cursor:pointer; border:none; transition:transform .12s ease,box-shadow .12s ease,background .15s; }
.btn:active { transform:scale(.97); } .btn svg { width:14px; height:14px; }
.btn-primary,.btn:not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-ghost) { background:linear-gradient(135deg,var(--brand-500),var(--brand-600)); color:#fff; box-shadow:0 3px 10px rgba(61,96,232,.25); }
.btn-secondary { background:#fff; color:var(--brand-500); border:1.5px solid var(--brand-200); } .btn-secondary:hover { background:var(--brand-50,#eef3ff); border-color:var(--brand-400,#5b8def); box-shadow:0 2px 8px rgba(61,96,232,.12); }
.btn-success { background:#dcfce7; color:var(--green); border:1px solid #bbf7d0; box-shadow:none; }
.btn-danger { background:#fee2e2; color:var(--red); border:1px solid #fecaca; box-shadow:none; }
.btn-ghost { background:transparent; color:var(--muted); box-shadow:none; } .btn-ghost:hover { background:var(--line-soft); color:var(--text); }
.btn-sm { padding:5px 11px; font-size:12.5px; border-radius:8px; } .btn-xs { padding:4px 9px; font-size:12px; border-radius:7px; } .btn-lg { padding:11px 22px; font-size:14.5px; border-radius:12px; gap:8px; } .btn-lg svg { width:17px; height:17px; } .btn[disabled],button[disabled] { cursor:not-allowed; opacity:.55; box-shadow:none; }
.badge { display:inline-flex; align-items:center; gap:5px; border-radius:20px; padding:3px 10px; font-size:12px; font-weight:600; white-space:nowrap; }
.badge-blue,.badge.pending { background:var(--brand-100); color:var(--brand-500); } .badge-green,.badge.approved { background:#dcfce7; color:var(--green); } .badge-yellow { background:#fef3c7; color:var(--yellow); } .badge-red,.badge.rejected { background:#fee2e2; color:var(--red); } .badge-gray,.badge:not(.badge-blue):not(.badge-green):not(.badge-yellow):not(.badge-red):not(.badge-indigo):not(.pending):not(.approved):not(.rejected) { background:var(--line-soft); color:var(--muted); } .badge-indigo { background:#ede9fe; color:var(--indigo); }
.filter-card { padding:16px 20px; margin-bottom:18px; } .filter-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .filter-select { max-width:220px; padding:7px 30px 7px 10px; font-size:13.5px; } .filter-input { max-width:180px; }
.view > .filter-card:has(+ .table-wrap) { margin-bottom:0; border-radius:16px 16px 0 0; } .view > .filter-card:has(+ .table-wrap) + .table-wrap { margin-top:0; border-top:1px solid var(--line); border-radius:0 0 16px 16px; }
.search-box { display:flex; align-items:center; gap:8px; background:#f8fafc; border:1.5px solid var(--line); border-radius:10px; padding:7px 12px; min-width:200px; } .search-box.grow { flex:1; min-width:180px; } .search-box svg { width:14px; height:14px; color:var(--muted-soft); flex-shrink:0; } .search-box input { width:100%; border:none; background:transparent; outline:none; padding:0; color:var(--text); }
.table-wrap { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.05); } .table-scroll { overflow-x:auto; } .data-table { width:100%; border-collapse:collapse; font-size:13.5px; } .data-table th { background:#f8fafc; color:var(--muted); font-weight:600; font-size:12.5px; letter-spacing:.03em; padding:11px 14px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; } .data-table td { padding:11px 14px; border-bottom:1px solid var(--line-soft); color:#334155; vertical-align:middle; } .data-table tr:last-child td { border-bottom:none; } .data-table tbody tr:hover { background:#f8faff; } .data-table th.text-center, .data-table td.text-center { text-align:center; }
.pagination-wrap { display:flex; justify-content:center; margin:14px 0 0; }
.pager { display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; }
.pager-meta { color:var(--muted-soft); font-size:12px; font-weight:500; margin-right:2px; white-space:nowrap; }
.pager-nums { display:inline-flex; align-items:center; gap:4px; }
.pager-btn,.pager-num { min-width:30px; height:30px; padding:0 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; box-shadow:0 1px 4px rgba(0,0,0,.03); transition:border-color .15s,color .15s,background .15s; }
.pager-btn { padding:0; width:30px; }
.pager-btn:hover,.pager-num:hover { border-color:var(--brand-200); color:var(--brand-500); background:var(--brand-50); }
.pager-num.is-active { border-color:var(--brand-500); background:var(--brand-500); color:#fff; cursor:default; }
.pager-btn.is-disabled,.pager-num.is-disabled { color:var(--muted-soft); background:#f8fafc; border-color:var(--line); cursor:not-allowed; box-shadow:none; pointer-events:none; }
.pager-ellipsis { color:var(--muted-soft); font-size:12px; padding:0 1px; user-select:none; }
.pager-arrow { display:block; flex-shrink:0; }
.pagination { display:flex; align-items:center; gap:4px; margin:0; padding:0; list-style:none; }
.pagination li a,.pagination li span { min-width:30px; height:30px; padding:0 8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; box-shadow:0 1px 4px rgba(0,0,0,.03); }
.pagination li a:hover { border-color:var(--brand-200); color:var(--brand-500); background:var(--brand-50); }
.pagination li.active span { border-color:var(--brand-500); background:var(--brand-500); color:#fff; }
.pagination li.disabled span { color:var(--muted-soft); background:#f8fafc; }
.cell-title { color:var(--text); font-weight:600; } .muted { color:var(--muted-soft); font-size:12.5px; } .mono { font-family:Consolas,"JetBrains Mono",monospace; } .text-center { text-align:center; } .actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .inline-form { display:inline-flex; margin:0; } .hidden-form { display:none; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.3); z-index:100; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .25s ease; } .modal.open { opacity:1; pointer-events:auto; } .modal-card { position:relative; width:520px; max-width:100%; max-height:calc(100vh - 48px); background:#fff; z-index:101; border-radius:12px; transform:scale(.9); opacity:0; transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s ease; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 16px 48px rgba(0,0,0,.15); } .modal-card.wide { width:640px; } .modal.open .modal-card { transform:scale(1); opacity:1; } .modal-card form { min-height:0; flex:1; display:flex; flex-direction:column; overflow:hidden; }
.drawer-header { padding:20px 24px; border-bottom:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; flex-shrink:0; } .drawer-title { color:var(--text); font-size:17px; font-weight:700; } .drawer-subtitle { color:var(--muted-soft); font-size:13px; margin-top:2px; } .drawer-body { flex:1; overflow-y:auto; padding:24px; } .drawer-footer { padding:16px 24px; border-top:1px solid var(--line-soft); display:flex; gap:10px; flex-shrink:0; } .drawer-footer .btn-primary { flex:1; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .field-full { grid-column:1 / -1; } .field label,.form-label { display:block; color:var(--muted); font-size:13px; font-weight:600; letter-spacing:.02em; margin-bottom:6px; } .required-star { color:#ef4444; margin-left:2px; } input,select,textarea { width:100%; border:1.5px solid #e2e8f0; border-radius:10px; padding:9px 12px; font-size:14px; color:var(--text); background:#fff; outline:none; transition:border-color .2s,box-shadow .2s; } input:focus,select:focus,textarea:focus { border-color:var(--brand-500); box-shadow:none; } textarea { resize:vertical; min-height:80px; line-height:1.6; } select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
.admin-datetime-input[readonly] { cursor:pointer; background:#fff; }
.admin-datetime-input[readonly]::placeholder { color:#94a3b8; }
.batch-actions-bar { display:none; align-items:center; gap:10px; margin:12px 0; padding-top:12px; border-top:1px solid var(--line-soft); } .batch-actions-bar.show { display:flex; } .batch-remark { max-width:260px; padding:7px 10px; font-size:13px; } .cb { width:16px; height:16px; border-radius:4px; border:1.5px solid #cbd5e1; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; } .cb input { width:16px; height:16px; margin:0; cursor:pointer; accent-color:var(--brand-500); }
.admit-card { padding:24px; margin-bottom:20px; } .admit-subtitle { color:var(--muted-soft); font-size:13px; margin-top:4px; } .admit-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; } .admit-stat { text-align:center; padding:14px 10px; background:#fff; border-radius:12px; box-shadow:0 1px 6px rgba(0,0,0,.04); } .admit-stat-value { font-size:26px; font-weight:700; font-family:Consolas,"JetBrains Mono",monospace; line-height:1; } .admit-stat-value.brand{color:var(--brand-500)} .admit-stat-value.green{color:var(--green)} .admit-stat-value.yellow{color:var(--yellow)} .admit-stat-label { color:var(--muted-soft); font-size:12px; font-weight:500; margin-top:4px; }
.detail-link { color:var(--brand-500); font-weight:600; } .section-title { color:var(--muted-soft); font-size:13px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin-bottom:12px; } .section-card { margin-top:16px; } .section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; } .status-strip { display:flex; align-items:center; gap:8px; padding:10px 14px; margin-bottom:16px; background:var(--brand-50); border-radius:10px; color:var(--brand-500); font-size:13px; font-weight:600; } .status-strip svg { width:14px; height:14px; } .status-strip b { color:var(--text); } .detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; } .info-row { padding:12px 14px; border:1px solid var(--line-soft); border-radius:12px; background:#fff; } .info-row.wide { grid-column:1 / -1; } .info-row span { display:block; color:var(--muted-soft); font-size:12px; font-weight:600; margin-bottom:6px; } .info-row b { color:var(--text); font-size:13.5px; font-weight:500; }
.toast-container { position:fixed; top:20px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; } .toast-item { background:var(--sidebar); color:#fff; border-radius:10px; padding:12px 18px; font-size:13.5px; font-weight:500; box-shadow:0 4px 20px rgba(0,0,0,.15); }
.confirm-dialog { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.confirm-dialog.open { opacity:1; pointer-events:auto; }
.confirm-dialog-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.confirm-dialog-panel { position:relative; width:100%; max-width:400px; background:#fff; border-radius:18px; padding:28px 28px 24px; box-shadow:0 24px 60px rgba(15,23,42,.18); transform:scale(.96) translateY(8px); transition:transform .25s cubic-bezier(.16,1,.3,1); text-align:center; }
.confirm-dialog.open .confirm-dialog-panel { transform:scale(1) translateY(0); }
.confirm-dialog-icon { width:52px; height:52px; margin:0 auto 16px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.confirm-dialog-icon.danger { background:#fee2e2; color:var(--red); }
.confirm-dialog-icon.default { background:var(--brand-100); color:var(--brand-500); }
.confirm-dialog-icon svg { width:24px; height:24px; }
.confirm-dialog-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:8px; }
.confirm-dialog-message { font-size:14px; line-height:1.65; color:var(--muted); margin-bottom:24px; white-space:pre-wrap; }
.confirm-dialog-actions { display:flex; gap:10px; }
.confirm-dialog-actions .btn { flex:1; }
body.backoffice-shell.admin-shell.theme-modern.confirm-dialog-open { overflow:hidden; }
.qr-dialog { position:fixed; inset:0; z-index:150; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.qr-dialog.open { opacity:1; pointer-events:auto; }
.qr-dialog-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.qr-dialog-panel { position:relative; width:100%; max-width:380px; background:#fff; border-radius:18px; box-shadow:0 24px 60px rgba(15,23,42,.18); transform:scale(.96) translateY(8px); transition:transform .25s cubic-bezier(.16,1,.3,1); overflow:hidden; }
.qr-dialog.open .qr-dialog-panel { transform:scale(1) translateY(0); }
.qr-dialog-header { padding:20px 22px 0; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.qr-dialog-title { font-size:17px; font-weight:700; color:var(--text); }
.qr-dialog-subtitle { font-size:13px; color:var(--muted-soft); margin-top:4px; line-height:1.4; word-break:break-all; }
.qr-dialog-body { padding:20px 22px 8px; display:flex; flex-direction:column; align-items:center; }
.qr-preview-wrap { width:248px; height:248px; padding:12px; background:#fff; border:2px solid var(--line); border-radius:14px; display:flex; align-items:center; justify-content:center; }
.qr-preview-img { display:block; width:224px; height:224px; object-fit:contain; }
.qr-dialog-hint { margin:14px 0 0; font-size:12.5px; color:var(--muted-soft); }
.qr-dialog-footer { padding:16px 22px 22px; display:flex; gap:10px; }
.qr-dialog-footer .btn-primary { flex:1; }
body.backoffice-shell.admin-shell.theme-modern.qr-dialog-open { overflow:hidden; }
.exam-time-dialog { position:fixed; inset:0; z-index:160; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.exam-time-dialog.open { opacity:1; pointer-events:auto; }
.exam-time-dialog-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.exam-time-dialog-panel { position:relative; width:100%; max-width:480px; background:#fff; border-radius:18px; box-shadow:0 24px 60px rgba(15,23,42,.18); transform:scale(.96) translateY(8px); transition:transform .25s cubic-bezier(.16,1,.3,1); overflow:hidden; max-height:80vh; overflow-y:auto; }
.exam-time-dialog.open .exam-time-dialog-panel { transform:scale(1) translateY(0); }
.exam-time-dialog-header { padding:20px 22px 0; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.exam-time-dialog-title { font-size:17px; font-weight:700; color:var(--text); }
.exam-time-dialog-subtitle { font-size:13px; color:var(--muted-soft); margin-top:4px; line-height:1.4; }
.exam-time-dialog-body { padding:18px 22px 8px; display:flex; flex-direction:column; gap:0; }
.exam-time-dialog-hint { margin:4px 0 0; font-size:12.5px; color:var(--muted-soft); line-height:1.5; }
.exam-time-dialog-footer { padding:16px 22px 22px; display:flex; gap:10px; }
.exam-time-dialog-footer .btn-primary { flex:1; }
body.backoffice-shell.admin-shell.theme-modern.exam-time-dialog-open { overflow:hidden; }
.exam-time-row { margin-bottom:14px; }
.exam-time-row-label { font-size:13.5px; font-weight:600; color:var(--text); margin-bottom:6px; }
.exam-time-row-inputs { display:flex; align-items:center; gap:8px; }
.exam-time-row-inputs .admin-datetime-input { flex:1; padding:6px 8px; border:1px solid var(--border); border-radius:8px; font-size:13px; color:var(--text); }
.exam-time-row-inputs .admin-datetime-input:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 2px rgba(var(--brand-rgb,.2),.15); }
.exam-time-sep { color:var(--muted-soft); font-size:14px; }
.login-body { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 18% -10%,rgba(79,70,229,.14),transparent 30%),radial-gradient(circle at 88% 8%,rgba(14,165,233,.13),transparent 26%),linear-gradient(135deg,#f8fafc 0%,#f4f7fb 52%,#eef2ff 100%); font-family:Inter,"Microsoft YaHei",Arial,sans-serif; } .login-card { width:380px; background:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.78); border-radius:24px; padding:36px; box-shadow:0 18px 45px rgba(15,23,42,.08); backdrop-filter:blur(18px); } .login-card h1 { margin:0 0 8px; font-size:25px; letter-spacing:-.02em; } .login-card p { margin:0 0 26px; color:var(--muted); } .login-submit { width:100%; margin-top:22px; } .mt-14 { margin-top:14px; } .error { padding:11px 13px; margin-bottom:16px; border-radius:12px; background:#fee2e2; color:var(--red); border:1px solid #fecaca; }
.project-card-danger { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); }
.project-card-actions { margin-bottom:0; }
.empty-state { text-align:center; padding:48px 24px; }
.empty-state-icon { margin:0 auto 12px; width:48px; height:48px; border-radius:50%; background:var(--line-soft); display:flex; align-items:center; justify-content:center; color:var(--muted-soft); }
.empty-state-icon svg { width:22px; height:22px; }
.empty-state-title { font-size:16px; font-weight:700; color:var(--text); }
.empty-state-desc { font-size:13px; color:var(--muted-soft); margin-top:6px; }
.toast-copied { background:var(--green) !important; }
.toast-error { background:#dc2626 !important; }
.schema-editor-modal { width:min(920px,100vw) !important; max-width:920px; }
.schema-editor-wrap { margin-top:4px; }
.schema-editor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.schema-editor-head > label { margin:0; }
.schema-editor-tabs { display:inline-flex; gap:4px; padding:4px; background:#f1f5f9; border-radius:10px; }
.schema-tab { border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:600; padding:6px 12px; border-radius:8px; cursor:pointer; }
.schema-tab.active { background:#fff; color:var(--text); box-shadow:0 1px 2px rgba(15,23,42,.08); }
.schema-field-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.schema-field-list { display:flex; flex-direction:column; gap:8px; max-height:320px; overflow:auto; padding-right:4px; }
.schema-field-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid var(--line-soft); border-radius:12px; background:#fafbfd; }
.schema-field-hidden { opacity:1; border:1.5px dashed #f97316 !important; background:#fff7ed !important; }
.schema-field-hidden .schema-field-title { text-decoration:line-through; color:#9a3412; }
.badge-orange { background:#f97316; color:#fff; font-size:12px; }
.schema-field-title { font-weight:600; color:var(--text); }
.schema-field-meta { font-size:12px; margin-top:4px; color:var(--muted-soft); }
.schema-field-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.schema-field-actions { display:flex; flex-wrap:wrap; gap:6px; flex-shrink:0; }
.schema-field-editor { margin-top:16px; padding:16px; border:1px dashed #cbd5e1; border-radius:12px; background:#fff; }
.schema-field-editor-title { font-size:15px; font-weight:700; color:var(--text); }
.schema-field-editor-actions { display:flex; gap:8px; margin-top:16px; }
/* 字段编辑嵌套弹窗 */
.field-editor-overlay { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; background:rgba(15,23,42,.35); backdrop-filter:blur(2px); }
.field-editor-overlay[hidden] { display:none !important; }
.field-editor-dialog { width:min(560px,92vw); max-height:88vh; display:flex; flex-direction:column; background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.06); overflow:hidden; animation:fieldDialogIn .18s ease-out; }
.field-editor-dialog .drawer-header { padding:18px 22px 14px; border-bottom:1px solid var(--line-soft,#e2e8f0); flex-shrink:0; }
.field-editor-dialog .drawer-body { padding:20px 22px; overflow-y:auto; flex:1 1 auto; }
.field-editor-dialog .drawer-footer { padding:14px 22px; border-top:1px solid var(--line-soft,#e2e8f0); display:flex; gap:10px; justify-content:flex-end; flex-shrink:0; }
@keyframes fieldDialogIn { from { opacity:0; transform:translateY(16px) scale(.97); } to { opacity:1; transform:none; } }
.schema-validator-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 12px; }
.schema-validator-grid label { display:flex !important; align-items:center; gap:6px; font-size:13px; color:var(--text); font-weight:500; margin-bottom:0; }
.schema-validator-grid label input[type="checkbox"] { width:18px; height:18px; margin:0; flex-shrink:0; accent-color:var(--brand-500); cursor:pointer; }
.checkbox-inline { display:inline-flex !important; align-items:center; gap:6px; font-size:13px; color:var(--text); font-weight:500; }
.schema-empty { padding:28px 16px; text-align:center; color:var(--muted-soft); border:1px dashed #dbe3ee; border-radius:12px; }
.field.checkbox-field { display:flex; align-items:center; }
.field.checkbox-field label { display:inline-flex; align-items:center; gap:10px; margin-bottom:0; font-weight:500; color:var(--text); cursor:pointer; font-size:14px; }
.field.checkbox-field label input[type="checkbox"] { width:18px; height:18px; margin:0; flex-shrink:0; accent-color:var(--brand-500); cursor:pointer; }
.checkbox-inline input[type="checkbox"] { width:18px; height:18px; margin:0; flex-shrink:0; accent-color:var(--brand-500); cursor:pointer; }

/* Stage left-right layout */
.stage-layout { display:flex; gap:0; min-height:calc(100vh - 140px); }
.stage-nav { width:220px; min-width:220px; background:#fff; border-right:1px solid var(--line); border-radius:16px 0 0 16px; padding:16px 0; overflow-y:auto; flex-shrink:0; }
.stage-nav-title { padding:0 20px 14px; font-size:12px; font-weight:700; color:var(--muted-soft); letter-spacing:.08em; text-transform:uppercase; border-bottom:1px solid var(--line-soft); margin-bottom:8px; }
.stage-nav-item { display:flex; align-items:center; gap:10px; padding:10px 20px; margin:2px 0; cursor:pointer; font-size:14px; font-weight:500; color:var(--muted); border-left:3px solid transparent; transition:all .15s ease; position:relative; }
.stage-nav-item:hover { background:var(--brand-50); color:var(--text); }
.stage-nav-item.active { background:var(--brand-50); color:var(--brand-500); font-weight:700; border-left-color:var(--brand-500); }
.stage-nav-icon { width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--line-soft); color:var(--muted-soft); transition:all .15s ease; }
.stage-nav-item.active .stage-nav-icon { background:var(--brand-100); color:var(--brand-500); }
.stage-nav-icon svg { width:14px; height:14px; }
.stage-nav-text { flex:1; min-width:0; }
.stage-nav-name { display:block; line-height:1.3; }
.stage-nav-hint { display:block; font-size:11px; color:var(--muted-soft); font-weight:400; margin-top:1px; }
.stage-status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.stage-status-dot.enabled { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.18); }
.stage-status-dot.disabled { background:#cbd5e1; }
.stage-status-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; padding:2px 7px; border-radius:10px; margin-left:auto; }
.stage-status-badge.on { background:#dcfce7; color:var(--green); }
.stage-status-badge.off { background:var(--line-soft); color:var(--muted-soft); }
.stage-content { flex:1; background:#fff; border-radius:0 16px 16px 0; box-shadow:0 2px 12px rgba(0,0,0,.05); overflow:hidden; display:flex; flex-direction:column; }
.stage-content-header { padding:20px 28px; border-bottom:1px solid var(--line-soft); display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-shrink:0; }
.stage-content-title { font-size:17px; font-weight:700; color:var(--text); }
.stage-content-desc { font-size:13px; color:var(--muted-soft); margin-top:4px; line-height:1.6; }
.stage-panel { display:none; flex:1; overflow-y:auto; padding:24px 28px; }
.stage-panel.active { display:block; }
.stage-panel .form-section { margin-bottom:28px; }
.stage-panel .form-section-title { font-size:13px; font-weight:700; color:var(--muted); letter-spacing:.04em; text-transform:uppercase; margin-bottom:14px; padding-bottom:10px; border-bottom:1px dashed var(--line); }
.stage-footer { padding:16px 28px; border-top:1px solid var(--line-soft); display:flex; align-items:center; gap:10px; flex-shrink:0; background:#fafbfd; }

/* Shared embedded loading state, aligned with the portal dashboard loader. */
.site-loading {
  min-height:160px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:20px;
  color:#718198;
  font-size:13px;
  line-height:1.6;
  text-align:center;
  box-sizing:border-box;
}
.site-loading::before {
  content:'';
  width:24px;
  height:24px;
  flex:0 0 24px;
  border:2px solid #dce5f1;
  border-top-color:#0b63f6;
  border-radius:50%;
  box-sizing:border-box;
  animation:site-loading-spin .7s linear infinite;
}
.site-loading.is-error { color:#b42318; }
.site-loading.is-error::before {
  content:'!';
  display:grid;
  place-items:center;
  border-color:#f0b4ae;
  background:#fff1ef;
  color:#b42318;
  font-size:14px;
  animation:none;
}
@keyframes site-loading-spin { to { transform:rotate(360deg); } }

/* List workspaces combine filters, batch actions and tables without nested cards. */
.application-workspace,
.payment-workspace { overflow:hidden; }
.application-workspace > .filter-card,
.payment-workspace > .filter-card { margin:0; border:0; border-radius:0; box-shadow:none; }
.application-workspace .batch-actions-bar { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; }
.application-workspace .table-wrap,
.payment-workspace .table-wrap { margin:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; }
.payment-workspace .payment-summary { padding:12px 18px; border-top:1px solid var(--line); }
.field.has-validation-error input,
.field.has-validation-error select,
.field.has-validation-error textarea { border-color:#e5484d !important; background:#fff8f8; }
.form-validation-message { display:flex; align-items:center; gap:6px; margin-top:6px; color:#d92d20; font-size:12px; font-weight:500; line-height:1.45; }
.form-validation-message::before { content:'!'; display:inline-grid; width:15px; height:15px; flex:0 0 15px; place-items:center; border-radius:50%; background:#d92d20; color:#fff; font-size:11px; font-weight:800; line-height:1; }
.announcement-workspace { overflow:hidden; }
.announcement-workspace > .filter-card { margin:0; border:0; border-radius:0; box-shadow:none; }
.announcement-workspace .announcement-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-top:1px solid var(--line); font-size:14px; font-weight:650; }
.announcement-workspace .table-wrap { margin:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; }
/* Tenant modern template: white surfaces, gray canvas, restrained blue hierarchy. */
body.backoffice-shell.admin-shell.theme-modern {
  --modern-canvas: #f4f6f8;
  --modern-surface: #ffffff;
  --modern-surface-soft: #f8fafc;
  --modern-text: #172033;
  --modern-muted: #5f6b7a;
  --modern-border: #dde3ea;
  --modern-blue: #2563eb;
  --modern-blue-hover: #1d4ed8;
  --modern-blue-soft: #eaf2ff;
  --modern-success: #16803a;
  --modern-warning: #b54708;
  --modern-danger: #d92d20;
}

body.modern-admin-body,
body.modern-login-body {
  background: var(--modern-canvas);
  color: var(--modern-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.modern-admin-body .layout {
  min-height: 100vh;
  display: flex;
  background: var(--modern-canvas);
  overflow: visible;
}

body.modern-admin-body .sidebar {
  width: 244px;
  min-width: 244px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background: var(--modern-surface);
  border-right: 1px solid var(--modern-border);
  box-shadow: none;
}

body.modern-admin-body .sidebar-logo {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--modern-border);
}

body.modern-admin-body .logo-wrap { gap: 10px; color: var(--modern-text); }
body.modern-admin-body .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--modern-blue);
  box-shadow: none;
}
body.modern-admin-body .logo-title { color: var(--modern-text); font-size: 16px; font-weight: 700; letter-spacing: .01em; }
body.modern-admin-body .nav-menu { flex: 0 1 auto; min-height: 0; padding: 14px 12px; overflow-y: auto; }
body.modern-admin-body .nav-divider { height: 0; margin: 8px 0; background: transparent; }
body.modern-admin-body .nav-item,
body.modern-admin-body .nav-accordion-summary {
  min-height: 42px;
  margin: 2px 0;
  border-radius: 4px;
  color: var(--modern-muted);
  font-size: 14px;
  font-weight: 500;
}
body.modern-admin-body .nav-item:hover,
body.modern-admin-body .nav-accordion-summary:hover { background: var(--modern-surface-soft); color: var(--modern-text); }
body.modern-admin-body .nav-item.active,
body.modern-admin-body .nav-accordion.active > .nav-accordion-summary {
  color: var(--modern-blue);
  background: var(--modern-blue-soft);
  font-weight: 650;
}
body.modern-admin-body .nav-item svg,
body.modern-admin-body .nav-accordion-summary svg { width: 18px; height: 18px; stroke-width: 1.8; }
body.modern-admin-body .nav-accordion-panel { padding: 2px 0 5px; }
body.modern-admin-body .nav-subitem { min-height: 38px; margin-left: 22px; padding-left: 16px; font-size: 13px; }
/* The classic sidebar used a white bullet for nested active items. It becomes
   an accidental arrow/dot on the light modern navigation surface. */
body.modern-admin-body .nav-subitem::after { content: none; }
body.modern-admin-body .nav-subitem.active::before {
  left: 0;
  width: 3px;
  height: 20px;
  background: var(--modern-blue);
  border-radius: 0 2px 2px 0;
}
body.modern-admin-body .admin-card { min-height:42px; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
body.modern-admin-body .admin-avatar { width:36px; height:36px; background:var(--modern-blue-soft); color:var(--modern-blue); border:0; border-radius:50%; }
body.modern-admin-body .admin-name { color:var(--modern-text); font-size:14px; font-weight:650; }
body.modern-admin-body .logout-link { display:grid; width:32px; height:32px; place-items:center; color:var(--modern-muted); border-radius:4px; }
body.modern-admin-body .logout-link:hover { color:var(--modern-danger); background:#fff0ef; }

body.modern-admin-body .main-area {
  width: auto;
  min-width: 0;
  min-height: 100vh;
  height: auto;
  margin-left: 0;
  flex: 1;
  background: var(--modern-canvas);
}
body.modern-admin-body .topbar {
  height: 72px;
  padding: 0 28px;
  background: var(--modern-surface);
  border-bottom: 1px solid var(--modern-border);
  box-shadow: none;
}
body.modern-admin-body .breadcrumb-root { color: var(--modern-muted); font-size: 13px; }
body.modern-admin-body .breadcrumb-current { color: var(--modern-text); font-size: 15px; font-weight: 650; }
body.modern-admin-body .topbar-name { color: var(--modern-text); font-size: 13px; font-weight: 600; }
body.modern-admin-body .online-dot { background: var(--modern-success); box-shadow: 0 0 0 3px #eaf7ef; }
body.modern-admin-body .topbar-logout { display:grid; width:28px; height:28px; place-items:center; margin-left:2px; color:var(--modern-muted); border-radius:4px; }
body.modern-admin-body .topbar-logout svg { width:16px; height:16px; }
body.modern-admin-body .topbar-logout:hover { color:var(--modern-danger); background:#fff0ef; }
body.modern-admin-body .content-area {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 32px 44px;
}

body.modern-admin-body .card,
body.modern-admin-body .table-wrap,
body.modern-admin-body .filter-card,
body.modern-admin-body .modal-card,
body.modern-admin-body .confirm-dialog-panel,
body.modern-admin-body .qr-dialog-panel,
body.modern-admin-body .exam-time-dialog-panel {
  background: var(--modern-surface);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 32, 51, .08);
}
body.modern-admin-body .card-pad { padding: 20px 24px; }
/* Standard list workspace: filters and their result table read as one task area. */
body.modern-admin-body .view > .filter-card:has(+ .table-wrap) {
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 6px 18px rgba(23, 32, 51, .08);
}
body.modern-admin-body .view > .filter-card:has(+ .table-wrap) + .table-wrap {
  margin-top: 0;
  border-top: 1px solid var(--modern-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 18px rgba(23, 32, 51, .08);
}
/* Complex list pages use an explicit workspace so filters, batch actions and results stay one unit. */
body.modern-admin-body .application-workspace,
body.modern-admin-body .payment-workspace { overflow: hidden; }
body.modern-admin-body .application-workspace > .filter-card,
body.modern-admin-body .payment-workspace > .filter-card {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.modern-admin-body .application-workspace .batch-actions-bar {
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--modern-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.modern-admin-body .application-workspace .application-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--modern-border);
}
body.modern-admin-body .application-workspace .table-wrap,
body.modern-admin-body .payment-workspace .table-wrap {
  margin: 0;
  border-top: 1px solid var(--modern-border);
  border-radius: 0;
  box-shadow: none;
}
body.modern-admin-body .payment-workspace .payment-summary {
  padding: 12px 18px;
  border-top: 1px solid var(--modern-border);
}
body.modern-admin-body .announcement-workspace { overflow: hidden; }
body.modern-admin-body .announcement-workspace > .filter-card {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.modern-admin-body .announcement-workspace .announcement-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--modern-border);
  font-size: 14px;
  font-weight: 650;
}
body.modern-admin-body .announcement-workspace .table-wrap {
  margin: 0;
  border-top: 1px solid var(--modern-border);
  border-radius: 0;
  box-shadow: none;
}
/* Shared interview workspaces have one outer elevation only. */
body.modern-admin-body .qualification-workspace .filter-card,
body.modern-admin-body .ticket-workspace .filter-card,
body.modern-admin-body .allocation-workspace .filter-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.modern-admin-body .qualification-workspace .table-wrap,
body.modern-admin-body .ticket-workspace .table-wrap,
body.modern-admin-body .allocation-workspace .table-wrap {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
body.modern-admin-body .project-title { color: var(--modern-text); font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
body.modern-admin-body .time-row { color: var(--modern-muted); font-size: 13px; }
body.modern-admin-body .time-row svg { color: var(--modern-blue); }
body.modern-admin-body .muted { color: var(--modern-muted) !important; }
body.modern-admin-body .section-title { color: var(--modern-text); letter-spacing: 0; text-transform: none; }

body.modern-admin-body .btn {
  min-height: 36px;
  border-radius: 4px;
  border: 0;
  box-shadow: 0 1px 2px rgba(23, 32, 51, .08);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body.modern-admin-body .btn-primary,
body.modern-admin-body .btn.btn-primary { background: var(--modern-blue); border-color: transparent; color: #fff; }
body.modern-admin-body .btn-primary:hover,
body.modern-admin-body .btn.btn-primary:hover { background: var(--modern-blue-hover); border-color: transparent; }
body.modern-admin-body .btn-secondary { background: #fff; border: 1px solid #d8e0e8; color: var(--modern-text); box-shadow: 0 1px 2px rgba(23, 32, 51, .04); }
body.modern-admin-body .btn-secondary:hover,
body.modern-admin-body .btn-ghost:hover { background: var(--modern-surface-soft); border-color: #c7d1db; color: var(--modern-text); }
body.modern-admin-body .btn-ghost { background: transparent; border-color: transparent; color: var(--modern-muted); box-shadow: none; }
body.modern-admin-body .btn-success {
  background: var(--modern-success);
  border-color: transparent;
  color: #fff;
}
body.modern-admin-body .btn-success:hover {
  background: #126b31;
  border-color: transparent;
  color: #fff;
}
body.modern-admin-body .btn-success svg { color: currentColor; }
body.modern-admin-body .btn-danger {
  background: var(--modern-danger);
  border-color: transparent;
  color: #fff;
}
body.modern-admin-body .btn-danger:hover { background: #b42318; border-color: transparent; color: #fff; }
body.modern-admin-body .btn-danger svg { color: currentColor; }
body.modern-admin-body .btn:focus-visible,
body.modern-admin-body a:focus-visible { outline: 2px solid var(--modern-blue); outline-offset: 2px; box-shadow: none; }

body.modern-admin-body input,
body.modern-admin-body select,
body.modern-admin-body textarea,
body.modern-admin-body .filter-select,
body.modern-admin-body .search-box {
  border: 1px solid #dbe3ec;
  border-radius: 3px;
  background-color: #fff;
  color: var(--modern-text);
  box-shadow: none;
}
body.modern-admin-body input:focus,
body.modern-admin-body select:focus,
body.modern-admin-body textarea:focus { border-color: var(--modern-blue); box-shadow: none; outline: none; }
/* Keep form fields consistent even where older templates supply inline borders. */
body.modern-admin-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
body.modern-admin-body select,
body.modern-admin-body textarea {
  border: 1px solid #dbe3ec !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}
body.modern-admin-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
body.modern-admin-body select:focus,
body.modern-admin-body textarea:focus {
  border-color: var(--modern-blue) !important;
  box-shadow: none !important;
  outline: none;
}
/* Search boxes own the visual boundary; their nested input stays borderless.
   Repeat the type exclusions so this wins over the shared field normalizer. */
body.modern-admin-body .search-box input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
body.modern-admin-body .search-box input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  outline: none;
}
body.modern-admin-body .search-box:focus-within {
  border-color: var(--modern-blue);
  box-shadow: none;
}
/* File inputs are enhanced in the shared footer to avoid the browser's native picker. */
body.modern-admin-body .modern-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 440px);
  min-height: 38px;
  padding: 4px;
  border: 1px solid #dbe3ec;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}
body.modern-admin-body .modern-file-picker:focus-within { border-color: var(--modern-blue); }
body.modern-admin-body .modern-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
body.modern-admin-body .modern-file-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--modern-blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
body.modern-admin-body .modern-file-picker-button svg { width: 14px; height: 14px; }
body.modern-admin-body .modern-file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--modern-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.modern-admin-body .modern-file-picker.has-file .modern-file-picker-name { color: var(--modern-text); }
body.modern-admin-body .modern-file-import-source { display: none !important; }
body.modern-file-import-open { overflow: hidden; }
body.modern-admin-body .modern-file-import-dialog {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.modern-admin-body .modern-file-import-dialog.open { display: flex; }
body.modern-admin-body .modern-file-import-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .35);
}
body.modern-admin-body .modern-file-import-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
}
body.modern-admin-body .modern-file-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--modern-text);
  font-size: 16px;
  font-weight: 700;
}
body.modern-admin-body .modern-file-import-close {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  place-items: center;
  background: transparent;
  color: var(--modern-muted);
  cursor: pointer;
}
body.modern-admin-body .modern-file-import-close:hover { background: #f1f5f9; color: var(--modern-text); }
body.modern-admin-body .modern-file-import-close svg { width: 17px; height: 17px; }
body.modern-admin-body .modern-file-import-hint { margin: 0 0 16px; color: var(--modern-muted); font-size: 13px; }
body.modern-admin-body .modern-file-import-step { margin: 0 0 16px; }
body.modern-admin-body .modern-file-import-step:last-child { margin-bottom: 0; }
body.modern-admin-body .modern-file-import-step-label { margin-bottom: 7px; color: var(--modern-text); font-size: 13px; font-weight: 650; }
body.modern-admin-body .modern-file-import-template-note { margin: 0 0 8px; color: var(--modern-muted); font-size: 13px; }
body.modern-admin-body .modern-file-import-content form {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.modern-admin-body .modern-file-import-content .modern-file-picker { flex: 1 1 280px !important; max-width: none !important; }
body.modern-admin-body .allocation-search { flex: 0 1 280px; min-width: 240px; }
body.modern-admin-body .field label,
body.modern-admin-body .form-label { color: var(--modern-text); font-weight: 600; }

body.modern-admin-body .dashboard-project-card { overflow: hidden; }
body.modern-admin-body .dashboard-entry-actions { margin-top: 18px; }
body.modern-admin-body .dashboard-task-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--modern-border);
}
body.modern-admin-body .dashboard-task-copy { max-width: 420px; margin: 0; line-height: 1.65; }
body.modern-admin-body .dashboard-task-actions { flex: 1; flex-wrap: nowrap !important; justify-content: flex-end; gap: 8px !important; }
body.modern-admin-body .dashboard-task-actions .btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
  gap: 5px;
}
body.modern-admin-body .dashboard-task-actions .btn svg { width: 15px; height: 15px; }
body.modern-admin-body .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
body.modern-admin-body .stat-card {
  min-height: 82px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 32, 51, .07);
}
body.modern-admin-body .stat-icon { display: none; }
body.modern-admin-body .stat-value { color: var(--modern-text); font-size: 22px; font-variant-numeric: tabular-nums; }
body.modern-admin-body .stat-label { color: var(--modern-muted); font-size: 13px; }

body.modern-admin-body .data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
}
body.modern-admin-body .data-table th { background: var(--modern-surface-soft); color: var(--modern-text); font-size: 13px; font-weight: 650; border-bottom: 1px solid var(--modern-border); }
body.modern-admin-body .data-table td { color: var(--modern-text); border-bottom: 1px solid var(--modern-border); }
body.modern-admin-body .data-table tbody tr:hover { background: #f8fbff; }
body.modern-admin-body .data-table tbody tr:last-child td { border-bottom: 0; }
/* Tables should scroll horizontally before compact operation controls become unreadable. */
body.modern-admin-body .data-table th:last-child,
body.modern-admin-body .data-table td:last-child { min-width: 144px; white-space: nowrap; }
body.modern-admin-body .data-table td:last-child .actions { flex-wrap: nowrap; }
body.modern-admin-body .table-wrap { border: 0; border-radius: 8px; box-shadow: 0 6px 18px rgba(23, 32, 51, .08); }
body.modern-admin-body .table-wrap .table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.modern-admin-body .table-wrap .table th {
  padding: 11px 14px;
  background: var(--modern-surface-soft);
  color: var(--modern-text);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  border-bottom: 1px solid var(--modern-border);
  white-space: nowrap;
}
body.modern-admin-body .table-wrap .table td {
  padding: 11px 14px;
  color: var(--modern-text);
  border-bottom: 1px solid var(--modern-border);
  vertical-align: middle;
}
body.modern-admin-body .table-wrap .table tbody tr:hover { background: #f8fbff; }
body.modern-admin-body .table-wrap .table tbody tr:last-child td { border-bottom: 0; }
/* List actions are text links, not a mixture of outlined and filled buttons. */
body.modern-admin-body .data-table td:last-child .btn,
body.modern-admin-body .table-wrap .table td:last-child .btn {
  min-height: auto;
  padding: 2px 4px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--modern-blue);
  font-size: 13px;
  font-weight: 500;
}
body.modern-admin-body .data-table td:last-child .btn:hover,
body.modern-admin-body .table-wrap .table td:last-child .btn:hover {
  background: var(--modern-blue-soft);
  color: var(--modern-blue-hover);
}
body.modern-admin-body .data-table td:last-child .btn-danger,
body.modern-admin-body .table-wrap .table td:last-child .btn-danger { color: var(--modern-danger); }
body.modern-admin-body .data-table td:last-child .btn-danger:hover,
body.modern-admin-body .table-wrap .table td:last-child .btn-danger:hover { background: #fff0ef; color: #b42318; }
body.modern-admin-body .data-table td:last-child .btn-success,
body.modern-admin-body .table-wrap .table td:last-child .btn-success { color: var(--modern-success); }
body.modern-admin-body .data-table td:last-child .btn-success:hover,
body.modern-admin-body .table-wrap .table td:last-child .btn-success:hover { background: #edf8f0; color: #126b31; }
body.modern-admin-body .btn { white-space: nowrap; }
body.modern-admin-body .pagination a,
body.modern-admin-body .pagination span { border-radius: 3px; border-color: var(--modern-border); color: var(--modern-muted); }
body.modern-admin-body .pagination .active { background: var(--modern-blue); border-color: var(--modern-blue); color: #fff; }

body.modern-admin-body .badge { border-radius: 3px; font-size: 12px; font-weight: 600; }
body.modern-admin-body .badge-blue,
body.modern-admin-body .badge.pending { background: var(--modern-blue-soft); color: var(--modern-blue); }
body.modern-admin-body .badge.approved,
body.modern-admin-body .badge.success { background: #edf8f0; color: var(--modern-success); }
body.modern-admin-body .badge.rejected,
body.modern-admin-body .badge.danger { background: #fff0ef; color: var(--modern-danger); }
body.modern-admin-body .badge.warning { background: #fff7e9; color: var(--modern-warning); }

body.modern-admin-body .dist-list,
body.modern-admin-body .trend-chart { border: 0; }
body.modern-admin-body .card h4 svg { color: var(--modern-blue) !important; }
body.modern-admin-body .dist-track { background: #e9edf2; border-radius: 0; }
body.modern-admin-body .dist-bar { background: var(--modern-blue) !important; border-radius: 0; }
body.modern-admin-body .trend-bar { background: var(--modern-blue) !important; box-shadow: none !important; }
body.modern-admin-body .trend-val,
body.modern-admin-body .trend-date { color: var(--modern-muted) !important; }

body.modern-admin-body .confirm-dialog-panel,
body.modern-admin-body .qr-dialog-panel,
body.modern-admin-body .exam-time-dialog-panel { border-radius: 4px; }
body.modern-admin-body .confirm-dialog-backdrop,
body.modern-admin-body .qr-dialog-backdrop,
body.modern-admin-body .exam-time-dialog-backdrop { background: rgba(23, 32, 51, .42); }
/* Confirmation dialogs are compact decision prompts, not full-screen feature cards. */
body.modern-admin-body .confirm-dialog-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  display: block;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, .18);
}
body.modern-admin-body .confirm-dialog-icon {
  display: none;
  border-radius: 6px;
}
body.modern-admin-body .confirm-dialog-icon.danger { display: flex; width: 36px; height: 36px; margin: 0 0 12px; }
body.modern-admin-body .confirm-dialog-icon svg { width: 20px; height: 20px; }
body.modern-admin-body .confirm-dialog-icon.default { border-radius: 6px; background: var(--modern-blue-soft); color: var(--modern-blue); }
body.modern-admin-body .confirm-dialog-title { margin: 0; font-size: 16px; line-height: 1.35; }
body.modern-admin-body .confirm-dialog-message { margin: 6px 0 0; font-size: 13px; line-height: 1.55; }
body.modern-admin-body .confirm-dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}
body.modern-admin-body .confirm-dialog-actions .btn { flex: 0 0 auto; min-width: 82px; min-height: 34px; padding: 6px 14px; font-size: 13px; }

body.modern-login-body { background: var(--modern-canvas); }
body.modern-login-body .login-card {
  width: 400px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--modern-border);
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
  backdrop-filter: none;
}
body.modern-login-body .login-card h1 { color: var(--modern-text); font-size: 24px; font-weight: 650; }
body.modern-login-body .login-card p { color: var(--modern-muted); }
body.modern-login-body .login-card input { border-color: #b9c5d2; border-radius: 4px; }
body.modern-login-body .login-card input:focus {
  border-color: var(--modern-blue);
  box-shadow: none;
  outline: none;
}
body.modern-login-body .login-submit { background: var(--modern-blue); border-color: var(--modern-blue); color: #fff; border-radius: 4px; }

body.modern-admin-body .legal-documents-form { display:grid; gap:16px; }
body.modern-admin-body .legal-document-editor { padding:20px 24px; }
body.modern-admin-body .legal-document-tabs { display:flex; gap:20px; margin:0 -24px 20px; padding:0 24px; border-bottom:1px solid var(--modern-border); }
body.modern-admin-body .legal-document-tab { position:relative; min-height:40px; padding:0; border:0; background:transparent; color:var(--modern-muted); font-size:14px; font-weight:600; cursor:pointer; }
body.modern-admin-body .legal-document-tab.is-active { color:var(--modern-blue); }
body.modern-admin-body .legal-document-tab.is-active::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:2px; background:var(--modern-blue); }
body.modern-admin-body .legal-document-tab:focus-visible { outline:2px solid var(--modern-blue); outline-offset:2px; }
body.modern-admin-body .legal-document-hint { margin:5px 0 18px; }
body.modern-admin-body .legal-document-editor .field + .field { margin-top:16px; }
body.modern-admin-body .legal-document-editor textarea { min-height:280px; resize:vertical; font-family:inherit; line-height:1.7; }
body.modern-admin-body .legal-document-updated { margin-top:12px; font-size:12px; }
body.modern-admin-body .legal-documents-actions { display:flex; justify-content:flex-end; }
body.modern-admin-body .legal-documents-notice { margin-bottom:16px; }
body.modern-admin-body .legal-documents-notice.is-success { border-color:#b7e3c3; color:#16803a; background:#edf8f0; }
body.modern-admin-body .legal-documents-notice.is-error { border-color:#f0b4ae; color:#d92d20; background:#fff0ef; }
@media (max-width:767px) {
  body.modern-admin-body .legal-document-editor { padding:18px 16px; }
  body.modern-admin-body .legal-document-tabs { margin-right:-16px; margin-left:-16px; padding:0 16px; }
  body.modern-admin-body .legal-documents-actions .btn { width:100%; }
}
