/* =========================================================================
   公司 OA 系统 · 全局样式
   ========================================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff4ff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --line: #e5eaf2;
    --line-strong: #d6dfec;
    --bg: #f4f7fb;
    --card: #ffffff;
    --green: #059669;
    --green-soft: #ecfdf5;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --amber: #d97706;
    --amber-soft: #fffbeb;
    --purple: #7c3aed;
    --purple-soft: #f5f3ff;
    --teal: #0d9488;
    --teal-soft: #f0fdfa;
    --sidebar: #0d1729;
    --sidebar-soft: #162238;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --radius: 14px;
    --radius-sm: 10px;
    --sidebar-width: 248px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    vertical-align: -3px;
}

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

.text-danger {
    color: var(--red);
}

.text-success {
    color: var(--green);
}

.nowrap {
    white-space: nowrap;
}

.money {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* =========================================================================
   应用框架 / 侧边栏
   ========================================================================= */
.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: radial-gradient(1200px 500px at -20% -10%, #1e3a8a33, transparent 60%), var(--sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 18px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .4);
    flex: 0 0 auto;
}

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

.brand-text strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    color: #7f8ea8;
    font-size: 11px;
    letter-spacing: .8px;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 10px 20px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
}

.nav-section {
    padding: 14px 12px 6px;
    font-size: 10px;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 9px;
    color: #b7c3d5;
    font-size: 13.5px;
    position: relative;
    transition: background .18s ease, color .18s ease;
}

.nav-item .icon {
    width: 17px;
    height: 17px;
    opacity: .85;
}

.nav-item:hover {
    background: rgba(148, 163, 184, .09);
    color: #f1f5f9;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, .28), rgba(37, 99, 235, .12));
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2px 0 0 #60a5fa;
}

.nav-item.active .icon {
    opacity: 1;
    color: #93c5fd;
}

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

.sidebar-user {
    border-top: 1px solid rgba(148, 163, 184, .12);
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
    color: inherit;
}

.user-info:hover {
    color: inherit;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 14px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 12px;
}

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

.user-meta strong {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta small {
    color: #7f8ea8;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    border: 0;
    background: transparent;
    color: #7f8ea8;
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 55;
    opacity: 0;
    transition: opacity .2s ease;
}

.main-panel {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 68px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}

.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 9px;
    padding: 7px;
    cursor: pointer;
}

.topbar-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.topbar-title h1 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.3px;
    white-space: nowrap;
}

.topbar-date {
    color: var(--muted-light);
    font-size: 12px;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 9px;
}

.topbar-profile:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 26px 30px 48px;
    flex: 1;
}

/* =========================================================================
   通用组件
   ========================================================================= */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-head h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.page-head p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.card-head h3 {
    font-size: 15px;
    font-weight: 650;
}

.card-head .sub {
    color: var(--muted-light);
    font-size: 12px;
    margin-top: 2px;
}

.card-body {
    padding: 20px;
}

.card-body.tight {
    padding: 14px 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .1s ease;
    white-space: nowrap;
}

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

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-ghost {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.btn-ghost:hover {
    border-color: #b9c7db;
    background: #f8fafc;
    color: var(--ink);
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.btn-soft:hover {
    background: #e0ebff;
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--red-soft);
    color: var(--red);
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: #047857;
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-lg {
    padding: 11px 22px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.btn-link {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.btn-link:hover {
    background: var(--primary-soft);
}

.btn-link.danger {
    color: var(--red);
}

.btn-link.danger:hover {
    background: var(--red-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}

.badge-pending,
.badge-pending_final {
    background: var(--amber-soft);
    color: var(--amber);
}

.badge-approved,
.badge-published,
.badge-normal {
    background: var(--green-soft);
    color: var(--green);
}

.badge-rejected,
.badge-absent {
    background: var(--red-soft);
    color: var(--red);
}

.badge-canceled,
.badge-none {
    background: #f1f5f9;
    color: var(--muted);
}

.badge-draft {
    background: #f1f5f9;
    color: var(--muted);
}

.badge-late,
.badge-early,
.badge-late-early {
    background: var(--amber-soft);
    color: var(--amber);
}

.badge-leave {
    background: var(--purple-soft);
    color: var(--purple);
}

.badge-trip {
    background: var(--teal-soft);
    color: var(--teal);
}

.badge-missing {
    background: var(--red-soft);
    color: var(--red);
}

.badge-role-admin {
    background: #eef2ff;
    color: #4338ca;
}

.badge-role-manager {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.badge-role-employee {
    background: #f1f5f9;
    color: var(--muted);
}

.badge-type {
    background: #f1f5f9;
    color: var(--ink-soft);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
}

.alert .icon {
    margin-top: 1px;
}

.alert-success {
    background: var(--green-soft);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: var(--red-soft);
    border-color: #fecaca;
    color: #991b1b;
}

.alert-info {
    background: var(--primary-soft);
    border-color: #dbeafe;
    color: #1e40af;
}

.alert-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: currentColor;
    opacity: .55;
    cursor: pointer;
    padding: 2px;
    display: flex;
}

.alert-close:hover {
    opacity: 1;
}

.empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--muted);
}

.empty .icon {
    width: 36px;
    height: 36px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.empty strong {
    display: block;
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 4px;
}

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

/* 表格 */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

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

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

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

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

.table .num {
    font-variant-numeric: tabular-nums;
}

.table .sub {
    display: block;
    color: var(--muted-light);
    font-size: 11.5px;
    margin-top: 1px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.table-actions form {
    display: inline;
    margin: 0;
}

/* 表单 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 18px;
}

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

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

.form-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.form-field label em {
    color: var(--red);
    font-style: normal;
    margin-left: 2px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    padding: 9px 12px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    font-size: 13.5px;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: #93b4f8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.input::placeholder,
.textarea::placeholder {
    color: #b1bccd;
}

.textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.65;
}

.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 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.form-hint {
    font-size: 11.5px;
    color: var(--muted-light);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.form-actions .spacer {
    flex: 1;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.checkbox-row small {
    color: var(--muted-light);
    font-size: 11.5px;
}

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

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

/* 标签页 */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    overflow-x: auto;
}

.tab {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

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

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-count {
    background: #f1f5f9;
    color: var(--muted);
    border-radius: 99px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
}

.tab.active .tab-count {
    background: var(--primary-soft);
    color: var(--primary);
}

.filter-bar {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfe;
    border-radius: var(--radius) var(--radius) 0 0;
}

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form .form-field {
    min-width: 140px;
    gap: 4px;
}

.filter-form .input,
.filter-form .select {
    padding: 7px 10px;
    font-size: 12.5px;
}

.filter-form .select {
    padding-right: 30px;
}

.filter-form .btn {
    padding: 7px 13px;
    font-size: 12.5px;
}

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 17px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.stat-icon .icon {
    width: 20px;
    height: 20px;
}

.stat-icon.green {
    background: var(--green-soft);
    color: var(--green);
}

.stat-icon.amber {
    background: var(--amber-soft);
    color: var(--amber);
}

.stat-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.stat-icon.teal {
    background: var(--teal-soft);
    color: var(--teal);
}

.stat-content {
    min-width: 0;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.6px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.stat-value small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
    margin-left: 3px;
}

.stat-note {
    color: var(--muted-light);
    font-size: 11.5px;
    margin-top: 3px;
}

/* 布局工具 */
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 18px;
}

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

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

/* =========================================================================
   工作台
   ========================================================================= */
.welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.welcome h2 {
    font-size: 23px;
    letter-spacing: -.5px;
    font-weight: 700;
}

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

.clock-card {
    background: linear-gradient(135deg, #0f2a5e 0%, #173f86 58%, #1d4ed8 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 30px rgba(30, 64, 175, .2);
}

.clock-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    right: -80px;
    top: -100px;
}

.clock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.clock-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
    letter-spacing: .4px;
}

.clock-time {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 2px;
    line-height: 1.15;
}

.clock-date {
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.clock-times {
    display: flex;
    gap: 18px;
    margin: 18px 0 16px;
    position: relative;
    z-index: 1;
}

.clock-times div {
    flex: 1;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 9px 12px;
}

.clock-times span {
    display: block;
    font-size: 10.5px;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 2px;
}

.clock-times strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.clock-actions {
    display: flex;
    gap: 9px;
    position: relative;
    z-index: 1;
}

.clock-actions .btn {
    flex: 1;
}

.clock-actions .btn-primary {
    background: #fff;
    color: #1e3a8a;
    box-shadow: none;
}

.clock-actions .btn-primary:hover {
    background: #eaf1ff;
}

.clock-actions .btn-ghost {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.clock-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, .18);
}

.clock-actions .btn[disabled] {
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .4);
    border-color: rgba(255, 255, 255, .1);
}

.clock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11.5px;
}

.clock-note {
    margin-top: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    position: relative;
    z-index: 1;
}

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

.quick-item {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 13px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 12.5px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quick-item .icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.quick-item:hover {
    border-color: #c7d9f8;
    background: #fafcff;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-item {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.notice-item:first-child {
    padding-top: 0;
}

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

.notice-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-item summary::-webkit-details-marker {
    display: none;
}

.notice-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex: 0 0 auto;
}

.notice-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted-light);
    white-space: nowrap;
}

.notice-content {
    margin: 9px 0 0 17px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.profile-strip {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 20px;
    background: linear-gradient(100deg, #f8fbff, #eef4ff);
    border-bottom: 1px solid var(--line);
}

.profile-strip .avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 17px;
}

.profile-strip strong {
    display: block;
    font-size: 14px;
}

.profile-strip span {
    color: var(--muted);
    font-size: 12px;
}

.salary-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
}

.salary-teaser .amount {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
}

/* =========================================================================
   审批 / 详情
   ========================================================================= */
.approval-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

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

.detail-item {
    min-width: 0;
}

.detail-item.full {
    grid-column: 1 / -1;
}

.detail-item span {
    display: block;
    color: var(--muted-light);
    font-size: 11.5px;
    margin-bottom: 3px;
}

.detail-item strong,
.detail-item p {
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 500;
    word-break: break-word;
}

.detail-item p {
    line-height: 1.75;
    white-space: pre-wrap;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    font-weight: 400;
}

.side-card .card-body {
    padding: 18px 20px;
}

.person {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}

.person .avatar {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 16px;
}

.person strong {
    display: block;
    font-size: 14px;
}

.person span {
    color: var(--muted);
    font-size: 12px;
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}

.meta-row span {
    color: var(--muted);
}

.meta-row strong {
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.approval-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.approval-actions .textarea {
    min-height: 76px;
    margin-bottom: 10px;
}

.approval-buttons {
    display: flex;
    gap: 8px;
}

.approval-buttons .btn {
    flex: 1;
}

.result-banner {
    border-radius: 11px;
    padding: 13px 15px;
    font-size: 13px;
    line-height: 1.65;
    margin-top: 14px;
}

.result-banner.approved {
    background: var(--green-soft);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.result-banner.rejected {
    background: var(--red-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.result-banner strong {
    display: block;
    margin-bottom: 2px;
}

/* =========================================================================
   考勤
   ========================================================================= */
.attendance-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 18px;
    margin-bottom: 20px;
}

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

.month-switch .month-label {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    min-width: 104px;
    text-align: center;
}

.month-nav {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.month-nav:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #c7d9f8;
}

.calendar-table th {
    text-align: center;
}

.calendar-table td {
    text-align: center;
}

.calendar-table .date-cell {
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.calendar-table .date-cell strong {
    display: block;
    font-size: 13px;
}

.calendar-table .date-cell span {
    color: var(--muted-light);
    font-size: 11px;
}

.calendar-table tr.weekend {
    background: #fbfcfe;
    color: var(--muted);
}

.calendar-table tr.today {
    background: #f4f8ff;
}

.calendar-table tr.today .date-cell strong {
    color: var(--primary);
}

.calendar-table tr.weekend td {
    color: var(--muted);
}

.legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11.5px;
}

.legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: 1px;
}

.legend .lg-normal { background: #10b981; }
.legend .lg-late { background: #f59e0b; }
.legend .lg-leave { background: #8b5cf6; }
.legend .lg-trip { background: #14b8a6; }
.legend .lg-missing { background: #ef4444; }

.attendance-note {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 14px;
    line-height: 1.7;
}

/* =========================================================================
   明细表格 / 报销 / 工资
   ========================================================================= */
.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th {
    text-align: left;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    padding: 7px 8px;
    border-bottom: 1px solid var(--line);
}

.items-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.items-table .input,
.items-table .select {
    padding: 7px 10px;
    font-size: 12.5px;
}

.items-table .row-remove {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
}

.items-table .row-remove:hover {
    background: var(--red-soft);
    color: var(--red);
}

.items-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 8px 2px;
    font-size: 13px;
    color: var(--muted);
}

.items-total strong {
    font-size: 19px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.add-row-btn {
    margin-top: 8px;
}

.upload-zone {
    border: 1.5px dashed var(--line-strong);
    border-radius: 10px;
    padding: 16px;
    background: #fbfcfe;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12.5px;
}

.upload-zone input[type="file"] {
    max-width: 100%;
    font-size: 12px;
}

.receipt-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
}

.summary-inline {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 10px;
}

.summary-inline strong {
    color: var(--ink);
}

/* 工资条 */
.salary-page {
    max-width: 880px;
    margin: 0 auto;
}

.payslip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.payslip-head {
    padding: 26px 30px 22px;
    background: linear-gradient(120deg, #0f2a5e, #1d4ed8);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.payslip-head h2 {
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 700;
}

.payslip-head p {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    margin-top: 4px;
}

.payslip-month {
    text-align: right;
}

.payslip-month span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: 1px;
}

.payslip-month strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.payslip-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 30px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.payslip-meta div span {
    display: block;
    font-size: 11px;
    color: var(--muted-light);
    margin-bottom: 2px;
}

.payslip-meta div strong {
    font-size: 13px;
    font-weight: 600;
}

.payslip-body {
    padding: 22px 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.payslip-section h3 {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

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

.payslip-table td {
    padding: 7px 2px;
    font-size: 13px;
    border-bottom: 1px dashed #eef2f7;
}

.payslip-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

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

.payslip-table .total td {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-weight: 650;
}

.payslip-net {
    margin: 4px 30px 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(100deg, #eff6ff, #e8f0ff);
    border: 1px solid #dbe8ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payslip-net span {
    color: var(--muted);
    font-size: 13px;
}

.payslip-net strong {
    font-size: 30px;
    letter-spacing: -1px;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

.payslip-foot {
    padding: 20px 30px 26px;
    color: var(--muted-light);
    font-size: 11.5px;
    line-height: 1.7;
}

.payslip-foot .sign {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.print-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.draft-banner {
    background: var(--amber-soft);
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    margin-bottom: 14px;
}

/* =========================================================================
   部门 / 系统设置
   ========================================================================= */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: start;
}

.mini-list {
    display: flex;
    flex-direction: column;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mini-item:last-child {
    border-bottom: 0;
}

.mini-item .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mini-item .grow {
    min-width: 0;
    flex: 1;
}

.mini-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.mini-item span {
    color: var(--muted);
    font-size: 11.5px;
}

.sys-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sys-info .meta-row {
    padding-bottom: 9px;
    border-bottom: 1px dashed #eef2f7;
}

.sys-info .meta-row:last-child {
    border-bottom: 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.profile-hero .avatar {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    font-size: 24px;
}

.profile-hero h3 {
    font-size: 18px;
    font-weight: 700;
}

.profile-hero p {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 3px;
}

/* =========================================================================
   登录页
   ========================================================================= */
.login-body {
    min-height: 100vh;
    background: #0b1424;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.login-hero {
    background:
        radial-gradient(900px 520px at 0% 0%, rgba(37, 99, 235, .38), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(14, 165, 233, .18), transparent 55%),
        #0b1424;
    color: #fff;
    padding: 46px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
    pointer-events: none;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.login-brand .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
}

.login-brand strong {
    display: block;
    font-size: 15px;
    color: #f8fafc;
    font-weight: 600;
}

.login-brand span {
    display: block;
    color: #7f8ea8;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    margin-top: 1px;
}

.login-hero-copy {
    margin: auto 0;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.login-eyebrow {
    display: inline-block;
    color: #93c5fd;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    margin-bottom: 18px;
    border: 1px solid rgba(147, 197, 253, .25);
    background: rgba(37, 99, 235, .12);
    padding: 5px 11px;
    border-radius: 99px;
}

.login-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.18;
    letter-spacing: -1.5px;
    font-weight: 750;
    margin-bottom: 16px;
}

.login-hero h1 em {
    font-style: normal;
    color: #93c5fd;
}

.login-hero > .login-hero-copy > p {
    color: #9fb0c9;
    font-size: 14px;
    line-height: 1.8;
    max-width: 420px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    max-width: 460px;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: #c3cfdf;
}

.login-features .feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(96, 165, 250, .2);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.login-features .feature-icon .icon {
    width: 14px;
    height: 14px;
}

.login-hero-foot {
    position: relative;
    z-index: 1;
    color: #5f708b;
    font-size: 11px;
    letter-spacing: .3px;
}

.login-main {
    background: #f7f9fd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.login-card {
    width: 100%;
    max-width: 396px;
}

.login-card-head {
    margin-bottom: 26px;
}

.login-card-head h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.6px;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .form-field label {
    font-size: 12.5px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .input {
    height: 46px;
    padding-left: 42px;
    border-radius: 10px;
    background: #fff;
}

.login-input-wrap > .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8bd;
    width: 17px;
    height: 17px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11.5px;
    padding: 6px 8px;
    border-radius: 6px;
}

.password-toggle:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.login-submit {
    height: 46px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 4px;
}

.demo-box {
    margin-top: 22px;
    background: #fff;
    border: 1px dashed var(--line-strong);
    border-radius: 11px;
    padding: 13px 15px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.demo-box strong {
    color: var(--ink-soft);
    display: block;
    margin-bottom: 2px;
}

.demo-box code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.login-copyright {
    color: #9aa8bd;
    font-size: 11px;
    text-align: center;
    margin-top: 26px;
}

/* =========================================================================
   安装向导
   ========================================================================= */
.install-body {
    background:
        radial-gradient(800px 500px at 10% -10%, rgba(37, 99, 235, .12), transparent 60%),
        var(--bg);
    padding: 40px 20px 60px;
}

.install-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.install-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.install-head .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 15px;
}

.install-head h1 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.3px;
}

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

.install-card {
    padding: 26px 28px;
    margin-bottom: 18px;
}

.install-card > h2 {
    font-size: 16px;
    font-weight: 650;
    margin-bottom: 5px;
}

.install-card > .muted {
    font-size: 12.5px;
    margin-bottom: 18px;
    display: block;
}

.install-card .form-grid {
    margin-top: 16px;
}

.install-section-title {
    margin-top: 26px !important;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.install-demo {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.install-actions .muted {
    font-size: 12px;
}

.install-tip {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
}

.install-tip code,
.install-card code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11.5px;
}

.install-alert {
    margin-bottom: 18px;
}

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

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    min-width: 0;
}

.check-item.ok .check-icon {
    color: var(--green);
}

.check-item.bad {
    background: var(--red-soft);
    border-color: #fecaca;
}

.check-item.bad .check-icon {
    color: var(--red);
}

.check-icon {
    display: flex;
    flex: 0 0 auto;
}

.check-icon .icon {
    width: 14px;
    height: 14px;
}

.check-label {
    color: var(--ink-soft);
    white-space: nowrap;
}

.check-detail {
    margin-left: auto;
    color: var(--muted-light);
    font-size: 10.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46%;
}

.install-status {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.install-status.success {
    background: var(--green-soft);
    color: var(--green);
}

.install-status .icon {
    width: 28px;
    height: 28px;
}

.install-card > h2 {
    margin-bottom: 6px;
}

.credential-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 6px 16px;
    margin: 18px 0;
}

.credential-box div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
}

.credential-box div:last-child {
    border-bottom: 0;
}

.credential-box span {
    color: var(--muted);
}

.install-steps {
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.install-steps h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

.install-steps ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 2;
}

.install-footer {
    text-align: center;
    color: var(--muted-light);
    font-size: 11px;
    margin-top: 24px;
}

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 1180px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2,
    .approval-layout,
    .split-layout,
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(2, 6, 23, .35);
    }

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

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .sidebar-close {
        display: flex;
    }

    .main-panel {
        margin-left: 0;
    }

    .menu-btn {
        display: flex;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 20px 18px 40px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero {
        display: none;
    }

    .login-main {
        min-height: 100vh;
        background:
            radial-gradient(700px 400px at 20% 0%, rgba(37, 99, 235, .1), transparent 60%),
            #f7f9fd;
        padding: 32px 22px;
    }
}

@media (max-width: 720px) {
    .topbar-date,
    .topbar-name {
        display: none;
    }

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

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

    .payslip-meta {
        gap: 12px;
    }

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

    .payslip-head,
    .payslip-body,
    .payslip-meta,
    .payslip-foot {
        padding-left: 20px;
        padding-right: 20px;
    }

    .payslip-net {
        margin-left: 20px;
        margin-right: 20px;
    }

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

    .install-card {
        padding: 20px 18px;
    }

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

    .page-head h2 {
        font-size: 19px;
    }

    .card-head {
        padding: 14px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .filter-bar {
        padding: 12px 16px;
    }

    .filter-form .form-field {
        flex: 1;
        min-width: 120px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .sidebar,
    .topbar,
    .sidebar-overlay,
    .print-toolbar,
    .alert,
    .draft-banner {
        display: none !important;
    }

    .main-panel {
        margin: 0;
    }

    .content {
        padding: 0;
        max-width: none;
    }

    .salary-page {
        max-width: none;
    }

    .payslip {
        border: 0;
        box-shadow: none;
    }
}

/* 打卡按钮在表单内等宽 */
.clock-actions > form {
    flex: 1;
    margin: 0;
}

/* 打印：确保工资条在无背景色打印时仍然清晰 */
@media print {
    .payslip-head {
        background: #fff !important;
        color: #0f172a !important;
        border-bottom: 2px solid #0f172a;
    }

    .payslip-head p,
    .payslip-month span {
        color: #475569 !important;
    }

    .payslip-head .brand-mark {
        display: none;
    }

    .payslip-net {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1;
    }

    .payslip-net strong {
        color: #0f172a !important;
    }

    .payslip {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 定位打卡状态 */
.geo-status {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 11.5px;
    position: relative;
    z-index: 1;
}

.geo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    flex: 0 0 auto;
}

.geo-status.geo-loading .geo-dot {
    animation: geo-pulse 1.2s ease-in-out infinite;
}

.geo-status.geo-success {
    color: #bbf7d0;
}

.geo-status.geo-success .geo-dot {
    background: #34d399;
}

.geo-status.geo-error {
    color: #fecaca;
}

.geo-status.geo-error .geo-dot {
    background: #f87171;
}

.geo-status .btn-link {
    color: #bfdbfe;
    font-size: 11px;
    padding: 0 3px;
}

.geo-status .btn-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.clock-geo {
    margin-top: 7px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    position: relative;
    z-index: 1;
}

@keyframes geo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
}

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

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--line);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #fff;
}

.page-link:hover {
    border-color: #c7d9f8;
    color: var(--primary);
    background: var(--primary-soft);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.page-link.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--muted-light);
    padding: 0 3px;
}

/* 数据维护 */
.danger-card {
    border-color: #fecaca;
}

.danger-card .card-head {
    background: #fff8f8;
    border-bottom-color: #fecaca;
}

.danger-card .card-head h3 {
    color: #991b1b;
}

/* v1.5：通知、付款、采购/考勤申请 */
.text-warning {
    color: #b45309;
}

.topbar-bell {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #f4f8f8;
    border: 1px solid var(--line);
    margin-right: 8px;
}
.topbar-bell:hover { color: var(--teal); background: #ecf8f5; }
.topbar-bell .icon { width: 17px; height: 17px; }
.topbar-bell em {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    line-height: 16px;
    font-style: normal;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239,68,68,.26);
}

.notification-list { padding: 0 20px; }
.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.notification-item:last-child { border-bottom: 0; }
.notification-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #cbd5d9; flex: none; margin-top: 7px;
}
.notification-item.unread .notification-dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.notification-main { flex: 1; min-width: 0; }
.notification-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.notification-title strong { font-size: 13px; }
.notification-title .muted { font-size: 10px; white-space: nowrap; }
.notification-main p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.notification-actions { display: flex; align-items: center; gap: 12px; margin-top: 7px; }
.notification-actions .text-link { font-size: 11px; color: var(--teal); font-weight: 600; }
.notification-actions form { display: inline; }
.notification-actions .btn { padding: 3px 8px; font-size: 10px; }

@media (max-width: 780px) {
    .topbar-bell { margin-right: 2px; }
    .notification-list { padding: 0 14px; }
}
