/* ==========================================================================
   柏钏国际 · 行政管理系统
   设计系统 / 全局样式
   ========================================================================== */

:root {
    --brand: #2E6BFF;
    --brand-600: #2159E0;
    --brand-700: #1B45AC;
    --brand-soft: #EEF3FF;
    --brand-softer: #F7F9FF;

    --teal: #0E9F8E;
    --teal-soft: #F0FDF9;
    --ink: #0B1B33;
    --text: #344054;
    --muted: #667085;
    --faint: #98A2B3;

    --line: #E7EAF0;
    --line-soft: #F0F2F7;
    --bg: #F5F7FB;
    --surface: #FFFFFF;

    --ok: #067647;
    --ok-soft: #ECFDF3;
    --warn: #B54708;
    --warn-soft: #FFFAEB;
    --danger: #B42318;
    --danger-soft: #FEF3F2;
    --purple: #6941C6;
    --purple-soft: #F4F3FF;
    --indigo: #3538CD;
    --indigo-soft: #EEF4FF;
    --blue: #175CD3;
    --blue-soft: #EFF8FF;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 6px 16px -4px rgba(16, 24, 40, .1), 0 2px 6px -2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 24px 48px -16px rgba(11, 27, 51, .24), 0 4px 12px -4px rgba(11, 27, 51, .08);

    --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sidebar-w: 258px;
    --topbar-h: 68px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

svg {
    display: block;
    flex: none;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

::selection {
    background: rgba(46, 107, 255, .18);
}

/* 滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: #CFD6E2 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: #CFD6E2;
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #B6C0D0;
}

/* ==========================================================================
   1. 布局骨架
   ========================================================================== */

.app {
    background:
        radial-gradient(1100px 520px at 100% -8%, #E9F0FF 0%, rgba(233, 240, 255, 0) 62%),
        radial-gradient(900px 500px at -10% 100%, #EAF8F6 0%, rgba(234, 248, 246, 0) 55%),
        var(--bg);
    background-attachment: fixed;
}

.app__shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    height: 100vh;
    padding: 20px 14px 16px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--line);
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 22px;
}

.brand__mark {
    width: 40px;
    height: 40px;
    padding: 3px;
    border-radius: 11px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 4px 12px -6px rgba(11, 27, 51, .38), 0 0 0 1px rgba(11, 27, 51, .07);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__text strong {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .01em;
}

.brand__text small {
    font-size: 11.5px;
    color: var(--faint);
    letter-spacing: .12em;
}

.nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 18px;
}

.nav__group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav__label {
    padding: 0 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    color: #A6AEBD;
}

.nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #4A5568;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav__icon {
    width: 18px;
    height: 18px;
    color: #8B96A8;
    transition: color .16s ease;
}

.nav__item:hover {
    background: #F5F7FB;
    color: var(--ink);
}

.nav__item:hover .nav__icon {
    color: #5A677B;
}

.nav__item.is-active {
    background: linear-gradient(180deg, #EEF3FF 0%, #E8EFFF 100%);
    color: var(--brand-700);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(46, 107, 255, .08);
}

.nav__item.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand);
}

.nav__item.is-active .nav__icon {
    color: var(--brand);
}

.nav__badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #FFE4E0;
    color: #C4320A;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.sidebar__foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.support {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F7FAFF 0%, #F2F7FF 100%);
    border: 1px solid #E8EFFC;
}

.support__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-xs);
}

.support__icon svg {
    width: 17px;
    height: 17px;
}

.support__text strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 600;
}

.support__text p {
    font-size: 11.5px;
    color: var(--muted);
}

.sidebar__copy {
    font-size: 10.5px;
    line-height: 1.5;
    color: #A6AEBD;
    padding: 0 4px;
}

/* ---------- 主区域 ---------- */
.app__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--topbar-h);
    padding: 0 30px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231, 234, 240, .9);
}

.topbar__menu {
    display: none !important;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--faint);
    white-space: nowrap;
}

.crumb strong {
    color: var(--ink);
    font-weight: 600;
}

.crumb__sep {
    color: #CBD2DE;
}

.searchbox {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(380px, 34vw);
    height: 38px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.searchbox:focus-within {
    border-color: #B9CCFF;
    box-shadow: 0 0 0 4px rgba(46, 107, 255, .1);
}

.searchbox__icon {
    width: 16px;
    height: 16px;
    color: var(--faint);
}

.searchbox input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.searchbox input::placeholder {
    color: #A9B2C1;
}

.searchbox kbd {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: var(--font);
    font-size: 10.5px;
    color: #A9B2C1;
    background: #FBFCFE;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iconbtn {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #5A677B;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.iconbtn:hover {
    background: #F3F6FB;
    color: var(--ink);
}

.iconbtn svg {
    width: 19px;
    height: 19px;
}

.iconbtn--bordered {
    border-color: var(--line);
    background: #fff;
}

.iconbtn__dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F04438;
    box-shadow: 0 0 0 2px #fff;
}

.userbtn {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 8px 0 6px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}

.userbtn:hover {
    background: #F7F9FD;
    border-color: var(--line-soft);
}

.userbtn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.userbtn__text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.userbtn__text small {
    font-size: 11px;
    color: var(--faint);
}

.userbtn__chevron {
    width: 15px;
    height: 15px;
    color: #A9B2C1;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--avatar, #2E6BFF);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    flex: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.avatar--lg {
    width: 42px;
    height: 42px;
    font-size: 13.5px;
}

.avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 10.5px;
}

/* ---------- 下拉 ---------- */
.dropdown {
    position: relative;
}

.dropdown__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 248px;
    padding: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 60;
}

.dropdown.is-open .dropdown__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__panel--bell {
    width: 330px;
    padding: 0;
    overflow: hidden;
}

.dropdown__panel--user {
    width: 236px;
}

.dropdown__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.dropdown__head strong {
    font-size: 13.5px;
    color: var(--ink);
}

.dropdown__head span {
    font-size: 11.5px;
    color: var(--faint);
}

.belllist li + li {
    border-top: 1px solid var(--line-soft);
}

.belllist a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    transition: background .15s ease;
}

.belllist a:hover {
    background: #F8FAFD;
}

.belllist__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
}

.belllist__icon svg {
    width: 16px;
    height: 16px;
}

.belllist__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.belllist__text strong {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.belllist__text small {
    font-size: 11px;
    color: var(--faint);
}

.belllist__arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: #C6CDD9;
}

.dropdown__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 16px;
    color: var(--faint);
}

.dropdown__empty svg {
    width: 26px;
    height: 26px;
    color: #B9C4D4;
}

.dropdown__empty p {
    font-size: 12.5px;
}

.dropdown__foot {
    display: block;
    padding: 11px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    background: #FAFBFF;
    border-top: 1px solid var(--line-soft);
}

.dropdown__foot:hover {
    background: #F4F7FF;
}

.dropdown__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 6px;
}

.dropdown__user strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
}

.dropdown__user small {
    font-size: 11px;
    color: var(--faint);
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.dropdown__item svg {
    width: 16px;
    height: 16px;
    color: #8B96A8;
}

.dropdown__item:hover {
    background: #F6F8FC;
}

.dropdown__item--danger {
    color: var(--danger);
}

.dropdown__item--danger svg {
    color: var(--danger);
}

.dropdown__item--danger:hover {
    background: var(--danger-soft);
}

.dropdown__logout {
    margin: 4px 0 0;
    padding-top: 4px;
    border-top: 1px solid var(--line-soft);
}

/* ---------- 内容 ---------- */
.content {
    flex: 1;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px 30px 44px;
}

.pagehead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.pagehead__text h1 {
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.pagehead__text p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.pagehead__text p strong {
    color: var(--ink);
    font-weight: 600;
}

.pagehead__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 3px;
}

/* ---------- 页脚 ---------- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 30px 24px;
    border-top: 1px solid rgba(231, 234, 240, .8);
    color: #98A2B3;
    font-size: 12px;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__mark {
    width: 24px;
    height: 24px;
    padding: 2px;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgba(11, 27, 51, .08);
    opacity: .92;
}

/* 设置页 · 品牌标识预览 */
.brand-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #FAFBFF, #F4F6FC);
}

.brand-preview__art {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 86px;
    height: 86px;
    padding: 7px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 27, 51, .07), 0 6px 16px -10px rgba(11, 27, 51, .4);
}

.brand-preview__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-preview__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-preview__meta strong {
    font-size: 13px;
    color: var(--ink);
}

.brand-preview__meta span {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.footer__left p {
    font-size: 11.5px;
    color: #8B96A8;
}

.footer__left strong {
    color: #5A677B;
    font-weight: 600;
}

.footer__right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #A6AEBD;
}

.footer__dot {
    color: #D2D8E2;
}

/* ==========================================================================
   2. 通用组件
   ========================================================================== */

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #3D78FF 0%, #2E6BFF 100%);
    box-shadow: 0 1px 2px rgba(46, 107, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn--primary:hover {
    background: linear-gradient(180deg, #2F6BF5 0%, #2059E6 100%);
    box-shadow: 0 4px 12px -3px rgba(46, 107, 255, .5);
}

.btn--ghost {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
    background: #F8FAFD;
    border-color: #D8DEE9;
}

.btn--soft {
    color: var(--brand-700);
    background: var(--brand-soft);
    border-color: rgba(46, 107, 255, .12);
}

.btn--soft:hover {
    background: #E3ECFF;
}

.btn--danger {
    color: #fff;
    background: #D92D20;
    box-shadow: 0 1px 2px rgba(217, 45, 32, .3);
}

.btn--danger:hover {
    background: #B42318;
}

.btn--sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 8px;
}

.btn--sm svg {
    width: 15px;
    height: 15px;
}

.btn--block {
    width: 100%;
}

.btn--link {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--brand);
    font-weight: 600;
}

.btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

/* 卡片 */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.card__title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.card__title h2 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.005em;
}

.card__title p {
    font-size: 12px;
    color: var(--faint);
}

.card__body {
    padding: 20px;
}

.card__body--flush {
    padding: 0;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
}

.card__link svg {
    width: 14px;
    height: 14px;
}

.card__link:hover {
    color: var(--brand-700);
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}

.badge--plain::before {
    display: none;
}

.badge--gray { color: #475467; background: #F2F4F7; border-color: #EAECF0; }
.badge--blue { color: #175CD3; background: #EFF8FF; border-color: #D1E9FF; }
.badge--indigo { color: #3538CD; background: #EEF4FF; border-color: #E0EAFF; }
.badge--green { color: #067647; background: #ECFDF3; border-color: #D1FADF; }
.badge--amber { color: #B54708; background: #FFFAEB; border-color: #FEDF89; }
.badge--red { color: #B42318; background: #FEF3F2; border-color: #FECDCA; }
.badge--teal { color: #0E9384; background: #F0FDF9; border-color: #CCFBEF; }
.badge--purple { color: #6941C6; background: #F4F3FF; border-color: #E9D7FE; }

/* 提示条 */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 13px;
}

.alert svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.alert--info { background: #F5F8FF; border-color: #DDE7FF; color: #1B45AC; }
.alert--warn { background: var(--warn-soft); border-color: #FEDF89; color: var(--warn); }
.alert--danger { background: var(--danger-soft); border-color: #FECDCA; color: var(--danger); }

/* 表格 */
.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 100%;
}

.table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #667085;
    background: #FAFBFD;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table th:first-child,
.table td:first-child {
    padding-left: 18px;
}

.table th:last-child,
.table td:last-child {
    padding-right: 18px;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
    vertical-align: middle;
    color: var(--text);
}

.table tbody tr {
    transition: background .14s ease;
}

.table tbody tr:hover {
    background: #FAFBFE;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.table .muted {
    color: var(--muted);
    font-size: 12.5px;
}

.table .nowrap {
    white-space: nowrap;
}

.table th.ta-r,
.table td.ta-r {
    text-align: right !important;
}

.table__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.table__sub {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--faint);
}

.cell-strong {
    font-weight: 600;
    color: var(--ink);
}

.cell-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cell-avatar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.cell-avatar__text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.cell-avatar__text small {
    font-size: 11.5px;
    color: var(--faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.cell-email {
    display: block;
    max-width: 152px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 公司/客户标识块 */
.tile {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: none;
    background: linear-gradient(180deg, #F5F9FF 0%, #EAF1FF 100%);
    border: 1px solid #E1EBFF;
    color: #2E6BFF;
}

.tile svg {
    width: 17px;
    height: 17px;
}

.tile--lg {
    width: 54px;
    height: 54px;
    border-radius: 15px;
}

.tile--lg svg {
    width: 25px;
    height: 25px;
}

.actionbtn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98A2B3;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.actionbtn svg {
    width: 16px;
    height: 16px;
}

.actionbtn:hover {
    background: #F2F5FA;
    color: var(--brand);
}

.actionbtn--danger:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

/* 工具条 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.toolbar__search {
    position: relative;
    flex: 1 1 240px;
    max-width: 340px;
}

.toolbar__search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--faint);
    pointer-events: none;
}

.toolbar__search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.toolbar__search input:focus {
    border-color: #B9CCFF;
    box-shadow: 0 0 0 4px rgba(46, 107, 255, .1);
}

.toolbar__spacer {
    flex: 1;
}

.toolbar__count {
    font-size: 12.5px;
    color: var(--faint);
}

.select {
    height: 38px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-size: 13px;
    color: var(--text);
    appearance: none;
    outline: 0;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.select:focus {
    border-color: #B9CCFF;
    box-shadow: 0 0 0 4px rgba(46, 107, 255, .1);
}

/* 分段筛选 */
.segmented {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #F3F5FA;
    gap: 2px;
}

.segmented a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.segmented a:hover {
    color: var(--ink);
}

.segmented a.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
}

.segmented .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #E9EDF4;
    color: #667085;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
}

.segmented a.is-active .count {
    background: #E4EDFF;
    color: var(--brand-700);
}

/* 分页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.pager__info {
    font-size: 12px;
    color: var(--faint);
}

.pager__links {
    display: flex;
    gap: 4px;
}

.pager__item {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pager__item:hover {
    background: #F4F7FC;
    color: var(--ink);
}

.pager__item.is-active {
    background: var(--brand-soft);
    color: var(--brand-700);
    font-weight: 700;
    border-color: rgba(46, 107, 255, .14);
}

.pager__item.is-disabled {
    opacity: .4;
    pointer-events: none;
}

/* 空状态 */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 24px;
    text-align: center;
}

.empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #F4F7FC;
    color: #94A3B8;
}

.empty__icon svg {
    width: 24px;
    height: 24px;
}

.empty h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.empty p {
    font-size: 12.5px;
    color: var(--faint);
    max-width: 320px;
}

/* 紧凑型空状态：图标与文案同处一行，用于卡片内的小区块 */
.empty--inline {
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    padding: 12px 0 16px;
    text-align: left;
}

.empty--inline .empty__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #F4F7FC;
}

.empty--inline .empty__icon svg {
    width: 15px;
    height: 15px;
}

.empty--inline p {
    max-width: none;
    line-height: 1.4;
}

/* 表单 */
.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.form-section__title svg {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #475467;
}

.field label .req {
    color: #F04438;
    margin-left: 2px;
}

.field__hint {
    font-size: 11.5px;
    color: var(--faint);
}

.input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 13.5px;
    color: var(--ink);
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.input::placeholder {
    color: #ADB6C4;
}

.input:hover {
    border-color: #D6DDE8;
}

.input:focus {
    border-color: #A9C1FF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46, 107, 255, .1);
}

select.input {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    appearance: none;
    cursor: pointer;
}

textarea.input {
    height: auto;
    min-height: 96px;
    padding: 10px 12px;
    line-height: 1.65;
    resize: vertical;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group .input {
    flex: 1;
}

.input-group__suffix {
    font-size: 12.5px;
    color: var(--faint);
    white-space: nowrap;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
}

.form-actions .spacer {
    margin-right: auto;
    font-size: 12px;
    color: var(--faint);
}

/* 单选卡片 */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 12.5px;
    color: var(--text);
    cursor: pointer;
    transition: all .15s ease;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip:hover {
    border-color: #C9D6F5;
    background: #FBFCFE;
}

.chip:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-700);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(46, 107, 255, .08);
}

/* 头像名单 */
.people {
    display: flex;
    flex-direction: column;
}

.people__row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.people__row:last-child {
    border-bottom: 0;
}

.people__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}

.people__meta strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.people__meta small {
    font-size: 11.5px;
    color: var(--faint);
}

.people__status {
    margin-left: auto;
    flex: none;
}

/* 提示块 */
.hintbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #F8FAFD;
    border: 1px dashed #DDE3EE;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
}

.hintbox svg {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #98A2B3;
}

.hintbox--danger {
    background: var(--danger-soft);
    border-color: #F3D2CE;
    color: var(--danger);
}

.hintbox--danger svg {
    color: var(--danger);
}

/* Toast */
.toasts {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 344px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn .26s cubic-bezier(.2, .8, .3, 1) both;
}

.toast.is-leaving {
    animation: toastOut .2s ease forwards;
}

.toast__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex: none;
}

.toast__icon svg {
    width: 16px;
    height: 16px;
}

.toast p {
    flex: 1;
    padding-top: 3px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text);
}

.toast__close {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #A9B2C1;
    cursor: pointer;
}

.toast__close svg {
    width: 13px;
    height: 13px;
}

.toast__close:hover {
    background: #F2F5FA;
    color: var(--ink);
}

.toast--success .toast__icon { background: var(--ok-soft); color: var(--ok); }
.toast--error .toast__icon { background: var(--danger-soft); color: var(--danger); }
.toast--info .toast__icon { background: var(--brand-soft); color: var(--brand); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(16px); }
}

/* 遮罩 */
.scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(11, 27, 51, .4);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
}

/* ==========================================================================
   3. 控制台
   ========================================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat {
    position: relative;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.stat::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow, rgba(46, 107, 255, .09)) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.stat > * {
    position: relative;
    z-index: 1;
}

.stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--tint, var(--brand-soft));
    color: var(--accent, var(--brand));
}

.stat__icon svg {
    width: 20px;
    height: 20px;
}

.stat__delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #ECFDF3;
    color: #05603A;
    border: 1px solid #D1FADF;
}

.stat__delta svg {
    width: 12px;
    height: 12px;
}

.stat__delta.is-down {
    background: #FEF3F2;
    color: #912018;
    border-color: #FECDCA;
}

.stat__delta.is-flat {
    background: #F2F4F7;
    color: #475467;
    border-color: #EAECF0;
}

.stat__label {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat__value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.stat__value small {
    font-size: 13px;
    font-weight: 600;
    color: var(--faint);
    margin-left: 3px;
    letter-spacing: 0;
}

.stat__foot {
    margin-top: 9px;
    font-size: 11.5px;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat--brand { --accent: #2E6BFF; --tint: #EEF3FF; --glow: rgba(46, 107, 255, .13); }
.stat--teal { --accent: #0E9F8E; --tint: #EDFBF7; --glow: rgba(14, 159, 142, .12); }
.stat--purple { --accent: #7A5AF8; --tint: #F4F2FF; --glow: rgba(122, 90, 248, .12); }
.stat--amber { --accent: #DC6803; --tint: #FFF8EC; --glow: rgba(220, 104, 3, .11); }

/* 可点击的指标卡（控制台） */
a.stat--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.stat--link:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 26px -14px rgba(16, 24, 40, .35);
    transform: translateY(-2px);
}

a.stat--link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

a.stat--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.stat--link .stat__label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--faint, #98A2B3);
    transition: color .18s ease, transform .18s ease;
}

.stat__go svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.3;
}

.stat--link:hover .stat__go {
    color: var(--accent);
    transform: translateX(2px);
}

.dash-grid > *,
.grid-2 > *,
.grid-3 > *,
.stack > * {
    min-width: 0;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: start;
}

.dash-grid--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 柱状图 */
.chart {
    padding: 18px 20px 8px;
}

.chart__plot {
    position: relative;
    height: 208px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 2px 0;
    background-image: repeating-linear-gradient(to top, #EFF2F8 0 1px, transparent 1px 52px);
    background-position: 0 100%;
}

.chart__col {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chart__bar {
    position: relative;
    width: 100%;
    max-width: 46px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #6F9BFF 0%, #2E6BFF 100%);
    box-shadow: 0 6px 14px -8px rgba(46, 107, 255, .7);
    transition: filter .18s ease, transform .18s ease;
    animation: growUp .7s cubic-bezier(.2, .9, .3, 1) both;
    transform-origin: bottom;
}

.chart__bar.is-current {
    background: linear-gradient(180deg, #3DD6C2 0%, #0E9F8E 100%);
    box-shadow: 0 6px 14px -8px rgba(14, 159, 142, .7);
}

.chart__bar:hover {
    filter: brightness(1.06);
}

.chart__bar::after {
    content: attr(data-value);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.chart__bar:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes growUp {
    from { transform: scaleY(.02); opacity: .4; }
    to { transform: scaleY(1); opacity: 1; }
}

.chart__labels {
    display: flex;
    gap: 14px;
    padding: 0 2px;
    margin-top: 10px;
}

.chart__labels span {
    flex: 1;
    text-align: center;
    font-size: 11.5px;
    color: var(--faint);
    white-space: nowrap;
}

.chart__foot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 2px 10px;
    margin-top: 6px;
    border-top: 1px dashed var(--line-soft);
    font-size: 11.5px;
    color: var(--faint);
}

.chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.dot--teal { background: var(--teal); }

/* 环形图 */
.donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 22px 20px 18px;
}

.donut {
    position: relative;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #F2F4F8;
}

.donut__center {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.3;
}

.donut__center strong {
    display: block;
    font-size: 25px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.donut__center span {
    font-size: 11.5px;
    color: var(--faint);
}

.legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.legend--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 16px;
}

.legend--two .legend__row {
    gap: 7px;
    font-size: 12px;
    min-width: 0;
}

.legend--two .legend__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend--two .legend__pct {
    display: none;
}

.legend__row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
}

.legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex: none;
}

.legend__name {
    color: var(--muted);
}

.legend__val {
    margin-left: auto;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.legend__pct {
    width: 42px;
    text-align: right;
    font-size: 11.5px;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* 审批列表 */
.tasklist {
    display: flex;
    flex-direction: column;
}

.task {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.task:last-child {
    border-bottom: 0;
}

.task__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: none;
}

.task__icon svg {
    width: 17px;
    height: 17px;
}

.task__icon--leave { background: #FFF6ED; color: #DC6803; }
.task__icon--expense { background: #F4F2FF; color: #7A5AF8; }

.task__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.task__body strong {
    font-size: 12.8px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task__body small {
    font-size: 11.5px;
    color: var(--faint);
}

.task__amount {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.task__actions {
    display: flex;
    gap: 4px;
}

.task__actions form {
    display: flex;
}

/* 公告列表 */
.notices {
    display: flex;
    flex-direction: column;
}

.notice {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.notice:last-child {
    border-bottom: 0;
}

.notice__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
    margin-top: 1px;
}

.notice__pin svg {
    width: 14px;
    height: 14px;
}

.notice__body {
    min-width: 0;
    flex: 1;
}

.notice__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.notice__title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice__excerpt {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice__meta {
    margin-top: 5px;
    font-size: 11px;
    color: var(--faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 出勤概览 */
.attend-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 20px 6px;
}

.mini-stat {
    padding: 11px 13px;
    border-radius: 11px;
    background: #F9FBFE;
    border: 1px solid #EFF2F8;
}

.mini-stat span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 2px;
}

.mini-stat strong {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mini-stat strong small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--faint);
    margin-left: 2px;
}

.meter {
    height: 6px;
    border-radius: 999px;
    background: #EEF1F7;
    overflow: hidden;
}

.meter__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
}

.meter__fill--teal { background: var(--teal); }
.meter__fill--amber { background: #F79009; }
.meter__fill--red { background: #F04438; }

.attend-rows {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px 20px 20px;
}

.attend-row__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.attend-row__head strong {
    margin-left: auto;
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   4. 登录页
   ========================================================================== */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: #fff;
}

.auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 54px 38px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(760px 520px at 12% 8%, rgba(70, 128, 255, .55) 0%, rgba(70, 128, 255, 0) 62%),
        radial-gradient(620px 520px at 92% 88%, rgba(14, 159, 142, .45) 0%, rgba(14, 159, 142, 0) 58%),
        linear-gradient(152deg, #061a38 0%, #0a2450 48%, #062338 100%);
}

.auth__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}

.auth__map {
    position: absolute;
    right: 12px;
    bottom: 24px;
    width: 508px;
    height: 381px;
    opacity: .92;
    pointer-events: none;
}

.auth__brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth__brand-mark {
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 13px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .18);
}

.auth__brand-text strong {
    display: block;
    font-size: 15px;
    letter-spacing: .12em;
    font-weight: 700;
}

.auth__brand-text small {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .58);
    max-width: 300px;
    line-height: 1.55;
}

.auth__hero {
    position: relative;
    z-index: 2;
    max-width: 460px;
    padding-bottom: 20px;
}

.auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 11.5px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .82);
}

.auth__eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3DD6C2;
    box-shadow: 0 0 0 3px rgba(61, 214, 194, .22);
}

.auth__hero h1 {
    font-size: 38px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -.015em;
}

.auth__hero h1 em {
    font-style: normal;
    background: linear-gradient(92deg, #8FB6FF 0%, #5FE3D0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth__hero p {
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .62);
    max-width: 400px;
}

.auth__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 30px;
}

.auth__point {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
}

.auth__point svg {
    width: 15px;
    height: 15px;
    color: #4FE3CE;
}

.auth__foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 26px;
    font-size: 11px;
    color: rgba(255, 255, 255, .42);
}

.auth__foot strong {
    color: rgba(255, 255, 255, .68);
    font-weight: 600;
}

.auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 56px;
    position: relative;
    background:
        radial-gradient(640px 400px at 100% 0%, #F3F7FF 0%, transparent 60%),
        #fff;
}

.auth__panel-inner {
    width: 100%;
    max-width: 372px;
    margin: 0 auto;
}

.auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 10px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: #F5F8FD;
    border: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}

.auth__badge svg {
    width: 13px;
    height: 13px;
    color: var(--teal);
}

.auth__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.auth__subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 28px;
}

.auth__field {
    position: relative;
}

.auth__field > svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #A6B0C0;
    pointer-events: none;
}

.auth__field .input {
    height: 46px;
    padding-left: 40px;
    background: #FCFDFF;
}

.auth__field .input:focus {
    background: #fff;
}

.auth__field .toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #A6B0C0;
    cursor: pointer;
}

.auth__field .toggle-pass svg {
    width: 17px;
    height: 17px;
}

.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    margin: 2px 0 2px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    cursor: pointer;
}

.checkbox input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
    margin: 0;
}

.auth__link {
    color: var(--brand);
    font-weight: 600;
}

.auth__error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--danger-soft);
    border: 1px solid #FECDCA;
    color: var(--danger);
    font-size: 12.5px;
}

.auth__error svg {
    width: 15px;
    height: 15px;
}

.auth__submit {
    height: 46px;
    margin-top: 4px;
    font-size: 14px;
}


.auth__copy {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    font-size: 11px;
    color: #A6AEBD;
    line-height: 1.7;
}

.auth__copy strong {
    color: #6B7789;
    font-weight: 600;
}

/* ==========================================================================
   5. 业务页面细节
   ========================================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.grid-2--sidebar {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
}

@media (max-width: 980px) {
    .grid-2--sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mb-18 {
    margin-bottom: 18px;
}

.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }

.amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
}

.amount--lg {
    font-size: 17px;
}

/* 详情 / 档案 */
.profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 18px;
}

.profile__main h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.profile__main p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.profile__tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px 20px 16px;
}

.detail-list__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    min-width: 0;
}

.detail-list__item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.detail-list__item dt {
    font-size: 11.5px;
    color: var(--faint);
    margin-bottom: 2px;
}

.detail-list__item dd {
    margin: 0;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    word-break: break-word;
}

.detail-list--1 {
    grid-template-columns: minmax(0, 1fr);
}

.detail-list--1 .detail-list__item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--line-soft);
}

.detail-list--1 .detail-list__item:last-child {
    border-bottom: 0;
}

/* 匿名说明（仅人事后台可见） */
.anon-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 20px 16px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #F9FAFB;
    border: 1px solid var(--line-soft);
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
}

.anon-note svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 2px;
    color: var(--faint);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.quick:hover {
    border-color: #CBD9F8;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    flex: none;
}

.quick__icon svg {
    width: 16px;
    height: 16px;
}

.quick strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 600;
}

.quick small {
    font-size: 11px;
    color: var(--faint);
}

/* 公告正文 */
.notice-detail {
    padding: 24px 26px 26px;
}

.notice-detail h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    letter-spacing: -.01em;
}

.notice-detail__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--faint);
}

.notice-detail__content {
    padding-top: 18px;
    font-size: 13.5px;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
}

/* ==========================================================================
   6. 人事模块组件
   ========================================================================== */

/* 顶栏只读提示（员工端） */
.searchbox--static {
    background: #F7F9FD;
    border-style: dashed;
    gap: 8px;
}

.searchbox--static span {
    font-size: 12px;
    color: var(--faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 堆叠柱状图（评分分布） */
.bar-stack {
    width: 100%;
    max-width: 46px;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 8px 8px 4px 4px;
    overflow: hidden;
    box-shadow: 0 6px 14px -8px rgba(11, 27, 51, .4);
    transition: filter .18s ease;
    animation: growUp .7s cubic-bezier(.2, .9, .3, 1) both;
    transform-origin: bottom;
}

.bar-stack span {
    display: block;
    width: 100%;
}

.bar-stack:hover {
    filter: brightness(1.07);
}

.chart__count {
    margin-bottom: 2px;
    font-size: 11px;
    font-style: normal;
    color: var(--faint);
    font-variant-numeric: tabular-nums;
}

/* 评分聚焦面板 */
.score-panel {
    padding: 18px 20px 4px;
}

.score-panel__main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: #F4F6FA;
    color: #98A2B3;
    border: 6px solid #E9EEF7;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.score-ring--excellent { background: #ECFDF3; color: #067647; border-color: #D1FADF; }
.score-ring--good { background: #EFF8FF; color: #175CD3; border-color: #D1E9FF; }
.score-ring--poor { background: #FEF3F2; color: #B42318; border-color: #FECDCA; }
.score-ring--none { background: #F4F6FA; color: #B4BDCB; border-color: #E9EEF7; font-size: 22px; }

.score-panel__text {
    min-width: 0;
}

.score-panel__text strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.score-panel__text p {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.score-panel__text small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--faint);
}

.score-panel__att {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 11px;
    background: #F8FAFD;
    border: 1px solid #EEF2F8;
}

.score-panel__att-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
}

.score-panel__att-note {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.6;
}

/* 评分选择卡 */
.grade-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.grade-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.grade-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.grade-option__letter {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex: none;
    background: #F2F5FA;
    color: #667085;
    font-size: 17px;
    font-weight: 700;
}

.grade-option__text strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
}

.grade-option__text small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--faint);
}

.grade-option:hover {
    border-color: #C9D6F5;
    background: #FCFDFF;
}

.grade-option--excellent { --grade: #067647; --grade-soft: #F3FDF7; }
.grade-option--good { --grade: #175CD3; --grade-soft: #F5FAFF; }
.grade-option--poor { --grade: #B42318; --grade-soft: #FFF8F7; }
.grade-option--warn { --grade: #B54708; --grade-soft: #FFFCF5; }

.grade-picker--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
    .grade-picker--2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 个人页全勤记录 */
.att-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px 18px;
}

.att-history__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.att-history__row strong {
    font-weight: 600;
    color: var(--text);
}

.att-history__note {
    font-size: 11px;
    color: var(--faint);
    margin-left: auto;
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.grade-option:has(input:checked) {
    border-color: var(--grade);
    background: var(--grade-soft);
    box-shadow: 0 0 0 3px rgba(46, 107, 255, .06);
}

.grade-option:has(input:checked) .grade-option__letter {
    background: #fff;
    color: var(--grade);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

/* 个人信息页 */
.profile__aside {
    margin-left: auto;
    text-align: right;
    flex: none;
}

.profile__hire span {
    display: block;
    font-size: 10.5px;
    letter-spacing: .08em;
    color: var(--faint);
}

.profile__hire strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.profile__hire small {
    display: block;
    font-size: 11px;
    color: var(--faint);
}

a.people__row {
    transition: background .15s ease;
}

a.people__row:hover {
    background: #FAFBFE;
}

.notice__title {
    flex-wrap: wrap;
}

/* 日志表格 */
.table--log td {
    font-size: 12.5px;
}

.table--log .badge {
    height: 20px;
    font-size: 11px;
    padding: 0 8px;
}

@media (max-width: 1240px) {
    .grade-picker {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .profile__aside {
        display: none;
    }

    .score-panel__main {
        align-items: flex-start;
    }
}

/* 移动端 */
@media (max-width: 1240px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dash-grid,
    .dash-grid--even {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-102%);
        transition: transform .24s cubic-bezier(.4, 0, .2, 1);
        background: #fff;
        box-shadow: var(--shadow-lg);
        z-index: 45;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .scrim {
        opacity: 1;
        visibility: visible;
    }

    .topbar__menu {
        display: grid !important;
        margin-left: -6px;
    }

    .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth__aside {
        display: none;
    }

    .auth__panel {
        padding: 40px 26px;
    }
}

@media (max-width: 820px) {
    .content {
        padding: 20px 18px 34px;
    }

    .topbar {
        padding: 0 18px;
        gap: 12px;
    }

    .searchbox {
        display: none;
    }

    .userbtn__text,
    .crumb span:first-child {
        display: none;
    }

    .crumb__sep {
        display: none;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px 22px;
    }

    .grid-2,
    .grid-3,
    .form-grid,
    .form-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pagehead {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .pagehead__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-list__item {
        border-bottom: 1px solid var(--line-soft) !important;
    }

    .detail-list__item:last-child {
        border-bottom: 0 !important;
    }

    .toolbar {
        padding: 12px 14px;
    }

    .toolbar__search {
        max-width: none;
    }

    .table th:first-child,
    .table td:first-child {
        padding-left: 14px;
    }

    .table th:last-child,
    .table td:last-child {
        padding-right: 14px;
    }

    .pagehead__text h1 {
        font-size: 20px;
    }

    .toasts {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .auth__panel {
        padding: 30px 20px;
    }

    .auth__title {
        font-size: 23px;
    }
}

@media print {
    .sidebar, .topbar, .footer, .pagehead__actions, .toolbar, .pager, .toasts {
        display: none !important;
    }

    .content {
        padding: 0;
    }

    .card {
        box-shadow: none;
    }
}
