:root { --sidebar: #1e2633; --sidebar-muted: #8e99aa; --bg: #f5f6fb; --blue: #5076fa; --blue-soft: #edf1ff; --ink: #243248; --muted: #909bad; --line: #eff1f6; --line-strong: #e3e8f1; --shadow: 0 8px 28px rgba(37, 57, 101, .045); }
.sidebar { width: 248px; flex: 0 0 248px; padding: 0 0 18px; overflow-y: auto; position: sticky; top: 0; height: 100vh; align-self: flex-start; }
.brand { min-height: 76px; padding: 18px 22px; margin-bottom: 14px; border-bottom: 1px solid #ffffff0b; gap: 12px; }
.brand-mark { background: linear-gradient(145deg, #72a6ff, #4b6de1); border-radius: 11px; box-shadow: 0 4px 12px #4777ef35; }
.brand strong { font-size: 12px; color: #fff; line-height: 1.45; }.brand > div:last-child { min-width: 0; }.brand-mark { flex: 0 0 38px; }.brand span { font-size: 11px; color: #8e99aa; }
.sidebar-section-label { padding: 10px 18px; margin: 0; color: #697587; font-size: 11px; }
.nav-list { gap: 4px; padding: 0; }.nav-item { min-height: 49px; padding: 13px 20px; border-radius: 6px; gap: 12px; font-size: 14px; color: #b1bbc9; width: 100%; }
.nav-item svg { width: 17px; height: 17px; opacity: .8; flex-shrink: 0; }.nav-item:hover { background: #ffffff08; color: #fff; }
.nav-item.active { background: linear-gradient(100deg, #5079ef, #3d59ad); color: #fff; box-shadow: none; }
.nav-parent > span { flex: 1; text-align: left; }.nav-chevron { max-width: 13px; transition: transform .15s; }.nav-parent[aria-expanded="false"] .nav-chevron { transform: rotate(-90deg); }
.nav-group { width: 100%; }.nav-group.current > .nav-parent { color: #eef2ff; }
.nav-children { margin: 2px 15px 8px 36px; border-left: 1px solid #ffffff18; padding-left: 7px; }.nav-children .nav-item { min-height: 40px; padding: 10px 14px; font-size: 13px; }
.sidebar-footer { margin: auto 18px 0; padding-top: 20px; }.main-area { min-width: 0; }.topbar { height: 76px; min-height: 76px; border-bottom: 1px solid #edf0f7; padding: 0 30px; box-shadow: none; }
.mobile-menu { display: inline-grid; }.breadcrumb { font-size: 13px; }.content { padding: 30px 30px 46px; }.page-heading { margin-bottom: 24px; gap: 18px; }.page-heading .eyebrow { display: none; }h1 { font-size: 25px; letter-spacing: -.5px; }.page-subtitle { margin-top: 9px; font-size: 12px; line-height: 1.8; }
.btn { min-height: 38px; border-radius: 5px; font-size: 12px; padding: 9px 15px; }.btn-primary { background: var(--blue); box-shadow: 0 5px 12px #5076fa20; }.btn-primary:hover { background: #4267e4; }.btn-secondary { background: white; border-color: var(--line-strong); }
.panel { border: 1px solid #edf0f7; box-shadow: var(--shadow); border-radius: 8px; padding: 22px; }.data-table th { padding: 15px 14px; font-size: 12px; color: #98a2b3; }.data-table td { padding: 19px 14px; font-size: 12px; }.data-table tbody tr:hover { background: #fafbff; }.avatar { background: #86a4f4; color: #fff; border-radius: 50%; }.metric-card { box-shadow: var(--shadow); }
.workspace-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; margin-bottom: 22px; border-radius: 8px; color: white; background: linear-gradient(110deg, #405fcb, #5b88fa); position: relative; overflow: hidden; }
.workspace-banner::after { content: ''; position: absolute; width: 230px; height: 230px; border: 25px solid #ffffff0b; border-radius: 50%; right: -35px; top: -70px; pointer-events: none; }.workspace-banner h2 { color: white; font-size: 20px; margin-bottom: 9px; }.workspace-banner p { color: #dce5ff; font-size: 12px; line-height: 1.8; }.banner-number { font-size: 32px; font-weight: 600; padding: 0 20px; }.banner-number small { display: block; font-size: 11px; font-weight: 400; color: #dce5ff; text-align: center; }
.page-form-summary { display: flex; gap: 10px; }.page-form-summary span { background: white; border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 5px; color: var(--muted); font-size: 12px; }.page-form-summary strong { color: var(--ink); margin-left: 6px; }
.system-caption { margin-bottom: 20px; padding: 10px 13px; background: #f7f9fe; color: #7c899f; font-size: 12px; border-radius: 5px; line-height: 1.8; }.system-search { margin-bottom: 12px; max-width: 320px; }.system-empty { text-align: center; padding: 38px !important; }.system-table-footer { color: var(--muted); font-size: 11px; padding-top: 16px; }
.staff-manager { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: stretch; min-height: 570px; }
.staff-org-panel, .staff-list-panel { min-width: 0; background: var(--surface, #fff); border: 1px solid #edf0f7; border-radius: 8px; box-shadow: var(--shadow); }
.staff-org-panel { padding: 15px 12px; }
.staff-tree-search { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); }
.staff-tree-search svg { width: 15px; flex: 0 0 auto; }.staff-tree-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font: inherit; background: transparent; }
.staff-org-tree { margin-top: 14px; }.staff-tree-row { min-height: 36px; display: flex; align-items: center; gap: 5px; padding-left: calc(var(--tree-depth) * 14px); border-radius: 5px; }
.staff-tree-row.selected { background: var(--blue-soft); }.staff-tree-toggle { width: 17px; height: 17px; flex: 0 0 17px; padding: 0; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--muted); line-height: 14px; }
.staff-tree-spacer { width: 17px; flex: 0 0 17px; }.staff-tree-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }.staff-tree-row.selected .staff-tree-name { color: var(--blue); }
.staff-org-panel .staff-tree-children { margin-left: 9px; border-left: 1px solid var(--line-strong); }.staff-org-panel .staff-tree-row { padding-top: 2px; padding-bottom: 2px; }.staff-org-panel .staff-tree-toggle:hover { border-color: var(--blue); color: var(--blue); }
/* Keep system-management screens on one compact type and control scale. */
#view-organizations, #view-departments, #view-staff, #view-roles, #view-menus, #view-dictionary, #view-logs { color: var(--ink); font-size: 13px; line-height: 1.5; }
#view-organizations .panel, #view-departments .panel, #view-staff .panel, #view-roles .panel, #view-menus .panel, #view-dictionary .panel, #view-logs .panel { padding: 20px; }
#view-organizations .panel-heading, #view-departments .panel-heading, #view-staff .panel-heading, #view-roles .panel-heading, #view-menus .panel-heading, #view-dictionary .panel-heading, #view-logs .panel-heading { align-items: center; margin-bottom: 16px; }
#view-organizations .panel-heading h2, #view-departments .panel-heading h2, #view-staff .panel-heading h2, #view-roles .panel-heading h2, #view-menus .panel-heading h2, #view-dictionary .panel-heading h2, #view-logs .panel-heading h2 { color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 600; }
#view-organizations .panel-heading p, #view-departments .panel-heading p, #view-staff .panel-heading p, #view-roles .panel-heading p, #view-menus .panel-heading p, #view-dictionary .panel-heading p, #view-logs .panel-heading p { margin-top: 4px; font-size: 12px; line-height: 1.5; }
#view-organizations .system-caption, #view-departments .system-caption, #view-staff .system-caption, #view-roles .system-caption, #view-menus .system-caption, #view-dictionary .system-caption, #view-logs .system-caption { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #edf0f7; background: #f8f9fc; font-size: 12px; line-height: 1.6; }
#view-organizations .form-control, #view-departments .form-control, #view-staff .form-control, #view-roles .form-control, #view-menus .form-control, #view-dictionary .form-control, #view-logs .form-control { height: 38px; border-radius: 5px; font-size: 13px; }
#view-organizations .btn, #view-departments .btn, #view-staff .btn, #view-roles .btn, #view-menus .btn, #view-dictionary .btn, #view-logs .btn { min-height: 36px; padding: 8px 13px; border-radius: 5px; font-size: 13px; line-height: 1.4; }
#view-organizations .data-table, #view-departments .data-table, #view-staff .data-table, #view-roles .data-table, #view-menus .data-table, #view-dictionary .data-table, #view-logs .data-table { min-width: 760px; }
#view-organizations .data-table th, #view-departments .data-table th, #view-staff .data-table th, #view-roles .data-table th, #view-menus .data-table th, #view-dictionary .data-table th, #view-logs .data-table th { padding: 13px 12px; background: #f6f7fa; color: #637083; font-size: 12px; line-height: 1.5; font-weight: 600; border-bottom-color: var(--line-strong); }
#view-organizations .data-table td, #view-departments .data-table td, #view-staff .data-table td, #view-roles .data-table td, #view-menus .data-table td, #view-dictionary .data-table td, #view-logs .data-table td { padding: 13px 12px; color: #465367; font-size: 13px; line-height: 1.5; }
#view-organizations .data-table tbody tr:hover, #view-departments .data-table tbody tr:hover, #view-staff .data-table tbody tr:hover, #view-roles .data-table tbody tr:hover, #view-menus .data-table tbody tr:hover, #view-dictionary .data-table tbody tr:hover, #view-logs .data-table tbody tr:hover { background: #f8faff; }
#view-organizations .staff-manager, #view-staff .staff-manager, #view-menus .staff-manager, #view-dictionary .staff-manager { gap: 16px; min-height: 600px; }
#view-organizations .staff-org-panel, #view-staff .staff-org-panel, #view-menus .staff-org-panel, #view-dictionary .staff-org-panel { padding: 16px 13px; background: #fff; }
#view-organizations .staff-list-panel, #view-staff .staff-list-panel, #view-menus .staff-list-panel, #view-dictionary .staff-list-panel { padding: 20px; }
#view-organizations .staff-tree-row, #view-staff .staff-tree-row, #view-menus .staff-tree-row, #view-dictionary .staff-tree-row { min-height: 38px; }
#view-organizations .staff-tree-name, #view-staff .staff-tree-name, #view-menus .staff-tree-name, #view-dictionary .staff-tree-name { color: #465367; font-size: 13px; line-height: 1.45; }
#view-organizations .staff-tree-row.selected, #view-staff .staff-tree-row.selected, #view-menus .staff-tree-row.selected, #view-dictionary .staff-tree-row.selected { background: #edf2ff; }
#view-organizations .staff-tree-row.selected .staff-tree-name, #view-staff .staff-tree-row.selected .staff-tree-name, #view-menus .staff-tree-row.selected .staff-tree-name, #view-dictionary .staff-tree-row.selected .staff-tree-name { color: #3f64dc; font-weight: 600; }
#view-organizations .staff-toolbar-filters, #view-menus .staff-toolbar-filters, #view-dictionary .staff-toolbar-filters { margin-bottom: 17px; gap: 14px; }
#view-organizations .staff-toolbar-filters > label, #view-menus .staff-toolbar-filters > label, #view-dictionary .staff-toolbar-filters > label { gap: 6px; color: #465367; font-size: 13px; font-weight: 500; }
#view-organizations .staff-list-toolbar, #view-staff .staff-list-toolbar, #view-menus .staff-list-toolbar, #view-dictionary .staff-list-toolbar { gap: 8px; margin: 16px 0 13px; }
#view-organizations .staff-actions button, #view-staff .staff-actions button, #view-menus .staff-actions button, #view-dictionary .staff-actions button { padding: 0 7px; font-size: 12px; line-height: 1.5; }
#view-organizations .staff-pagination, #view-staff .staff-pagination, #view-menus .staff-pagination, #view-dictionary .staff-pagination { min-height: 38px; margin-top: 12px; color: #667286; font-size: 12px; }
#view-organizations .status-tag, #view-staff .status-tag, #view-menus .status-tag, #view-dictionary .status-tag { padding: 4px 8px; font-size: 11px; line-height: 1.3; }
#view-organizations .system-search, #view-departments .system-search, #view-staff .system-search, #view-roles .system-search, #view-menus .system-search, #view-dictionary .system-search, #view-logs .system-search { max-width: 360px; margin-bottom: 16px; }
@media (max-width: 760px) { #view-organizations .staff-list-panel, #view-staff .staff-list-panel, #view-menus .staff-list-panel, #view-dictionary .staff-list-panel { padding: 14px; } }
.analytics-page-heading .page-subtitle { margin-top: 5px; }
.analytics-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; }.analytics-filters > label { display: flex; align-items: center; gap: 8px; color: #465367; font-size: 13px; font-weight: 500; }.analytics-filters > label:first-child { flex-wrap: wrap; }.analytics-filters .form-control { width: auto; min-width: 158px; }.analytics-filters label:first-child .form-control { min-width: 150px; }.analytics-filters .btn { display: inline-flex; align-items: center; gap: 6px; }.analytics-filters .btn svg { width: 14px; height: 14px; }
.analytics-main-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); }.analytics-secondary-grid { grid-template-columns: minmax(300px, .8fr) minmax(400px, 1.2fr); }.analytics-daily-chart { min-height: 245px; display: grid; grid-template-columns: repeat(21, minmax(10px, 1fr)); align-items: end; gap: 7px; padding: 20px 2px 0; border-bottom: 1px solid var(--line-strong); }
.analytics-day-column { min-width: 0; height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); }.analytics-day-column span { height: 14px; font-size: 10px; line-height: 14px; }.analytics-day-column i { display: block; width: min(100%, 24px); height: var(--bar-height); min-height: 3px; background: #7391ee; border-radius: 4px 4px 0 0; }.analytics-day-column small { font-size: 9px; line-height: 16px; }
.analytics-subgroup-table { min-width: 520px !important; }.analytics-model-usage { display: grid; gap: 18px; padding: 18px 2px; }.analytics-model-row { display: grid; grid-template-columns: 70px minmax(80px, 1fr) 34px 20px; gap: 10px; align-items: center; color: #536175; font-size: 13px; }.analytics-model-row > div { height: 9px; overflow: hidden; border-radius: 6px; background: #edf0f5; }.analytics-model-row i { display: block; height: 100%; border-radius: inherit; background: #6685ec; }.analytics-model-row strong { color: var(--ink); text-align: right; font-size: 13px; }.analytics-model-row small { color: var(--muted); font-size: 11px; }.analytics-definition p { color: #657185; font-size: 13px; line-height: 1.8; }.analytics-definition p + p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) { .analytics-main-grid, .analytics-secondary-grid { grid-template-columns: 1fr; }.analytics-filters > label:first-child { width: 100%; } }
@media (max-width: 760px) { .analytics-filters { align-items: stretch; }.analytics-filters > label { width: 100%; flex-wrap: wrap; }.analytics-filters > label .form-control { flex: 1; min-width: 0; }.analytics-filters > .btn { justify-content: center; flex: 1; }.analytics-daily-chart { gap: 2px; }.analytics-day-column small { font-size: 8px; } }
.staff-list-panel { padding: 18px; }.staff-filter-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, .8fr) auto; gap: 14px; align-items: end; }
.staff-filter-row > label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; }.staff-filter-row .form-control { height: 38px; }.staff-filter-actions { display: flex; gap: 8px; }.staff-filter-actions .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }.staff-filter-actions svg,.staff-list-toolbar svg { width: 14px; height: 14px; }
.staff-list-toolbar { display: flex; margin: 20px 0 14px; }.staff-table { min-width: 810px; }.staff-table th, .staff-table td { white-space: nowrap; }.staff-table td { padding-top: 15px; padding-bottom: 15px; }
.staff-status-switch { width: 34px; height: 19px; padding: 2px; display: inline-flex; align-items: center; justify-content: flex-start; border: 0; border-radius: 12px; background: #cbd2dc; cursor: pointer; }.staff-status-switch::after { content: ''; width: 15px; height: 15px; border-radius: 50%; background: #fff; }.staff-status-switch.on { justify-content: flex-end; background: #68c77b; }
.staff-actions { color: var(--blue); }.staff-actions button { border: 0; padding: 0 6px; background: none; color: inherit; cursor: pointer; white-space: nowrap; }.staff-actions button + button { border-left: 1px solid var(--line-strong); }
.staff-pagination { justify-content: flex-end; flex-wrap: wrap; gap: 10px; }.staff-pagination .pagination-pages { gap: 6px; }.staff-pagination .page-button { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); }.staff-pagination .page-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }.staff-pagination .page-button:disabled { color: #c5cad3; cursor: default; }
.staff-manager.compact-tree { grid-template-columns: 250px minmax(0, 1fr); }.staff-toolbar-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }.staff-toolbar-filters > label { display: grid; gap: 7px; min-width: 220px; color: var(--ink); font-size: 12px; }
.staff-table .menu-level { color: var(--muted); font-size: 11px; }.staff-table .dictionary-code { color: var(--muted); font-family: ui-monospace, monospace; }
@media (max-width: 1050px) { .staff-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }.staff-filter-actions { grid-column: 1 / -1; } }
@media (max-width: 760px) { .staff-manager, .staff-manager.compact-tree { grid-template-columns: 1fr; min-height: 0; }.staff-org-panel { max-height: 270px; overflow: auto; }.staff-list-panel { padding: 14px; }.staff-filter-row { grid-template-columns: 1fr; }.staff-filter-actions { grid-column: auto; }.staff-pagination { justify-content: center; } }
.app-shell.sidebar-collapsed .sidebar { display: none; }.app-shell.sidebar-collapsed .main-area { margin-left: 0; width: 100%; }
.page-heading.actions-only { justify-content: flex-end; }
.modal:has(#csv-file) { width: min(80vw, calc(100vw - 40px)); height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.modal:has(#csv-file) .modal-header, .modal:has(#csv-file) .modal-footer { flex-shrink: 0; }
.modal:has(#csv-file) .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.modal:has(#csv-file) .import-preview { max-width: 100%; overflow-x: auto; }
.model-config-card { padding: 28px; margin-bottom: 20px; min-height: 245px; }
.model-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.model-card-heading h2 { font-size: 18px; margin: 0; }
.model-default { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.model-default-switch { width: 44px; height: 24px; border-radius: 20px; padding: 3px; background: #ced5e0; display: flex; align-items: center; transition: background .15s; }
.model-default-switch span { width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #25396525; transition: transform .15s; }
.model-default-switch.selected { background: var(--blue); }.model-default-switch.selected span { transform: translateX(20px); }
.model-formula { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 3px; padding-right: 75px; font-size: 13px; color: var(--ink); }
.model-formula-label { color: var(--muted); margin-right: 10px; }
.model-coefficient { width: 88px; text-align: center; font-family: 'Manrope',sans-serif; font-size: 14px; flex: 0 0 88px; }
.model-save { margin-left: 12px; min-width: 78px; }.model-definitions { margin-top: 26px; color: var(--muted); font-size: 12px; line-height: 1.9; }.model-definitions p { margin: 7px 0; }
@media (max-width: 760px) { .model-config-card { padding: 20px; }.model-card-heading { margin-bottom: 20px; }.model-card-heading h2 { font-size: 16px; }.model-formula { padding-right: 0; gap: 10px; }.model-formula-label { flex-basis: 100%; }.model-coefficient { width: 75px; flex-basis: 75px; }.model-save { margin-left: 0; } }
@media (max-width: 1100px) { .content { padding: 24px 20px; }.sidebar { width: 225px; flex-basis: 225px; }.heading-actions { flex-wrap: wrap; } }
@media (max-width: 760px) { .sidebar { position: fixed; width: 248px; left: -260px; }.sidebar.open { left: 0; }.content { padding: 22px 14px; }.topbar { padding: 0 16px; }.workspace-banner { padding: 20px; }.workspace-banner h2 { font-size: 17px; }.banner-number { display: none; }.panel { padding: 16px; }.page-form-summary { flex-wrap: wrap; } }
