@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --hc-navy: #07111f;
    --hc-navy-2: #0d1b2e;
    --hc-surface: #ffffff;
    --hc-bg: #f3f6fb;
    --hc-text: #101828;
    --hc-muted: #667085;
    --hc-line: #e4eaf2;
    --hc-primary: #5b6cff;
    --hc-primary-dark: #4455e7;
    --hc-cyan: #18b6c9;
    --hc-success: #12a679;
    --hc-danger: #e5485d;
    --hc-warning: #f59e0b;
    --hc-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--hc-bg);
}

body,
button,
input,
select,
textarea {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.dashboard-page {
    margin: 0 !important;
    padding: 0 24px 44px !important;
    color: var(--hc-text) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(91, 108, 255, .09), transparent 24rem),
        radial-gradient(circle at 95% 12%, rgba(24, 182, 201, .07), transparent 28rem),
        var(--hc-bg) !important;
}

.global-nav {
    margin: 0 -24px 30px;
    min-height: 70px;
    color: #fff;
    background: rgba(7, 17, 31, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(7, 17, 31, .14);
}

.global-nav-inner {
    max-width: 1640px;
    min-height: 70px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.global-brand,
.global-brand:hover {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-cyan));
    box-shadow: 0 8px 22px rgba(91, 108, 255, .32);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.brand-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .52);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.global-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b8c4d6;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2dd4a8;
    box-shadow: 0 0 0 4px rgba(45, 212, 168, .12);
}

.dashboard-page .container,
.dashboard-page .page {
    width: 100% !important;
    max-width: 1640px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.dashboard-page h1 {
    margin: 0 !important;
    color: var(--hc-text) !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    font-weight: 750 !important;
    letter-spacing: -.9px !important;
    text-align: left !important;
}

.page-intro {
    margin: 7px 0 24px;
    color: var(--hc-muted);
    font-size: 14px;
}

.dashboard-page .breadcrumb {
    margin: 0 0 18px !important;
    color: #8791a2 !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: .15px;
}

.dashboard-page .breadcrumb a {
    color: var(--hc-primary) !important;
}

.dashboard-page .tab-header {
    margin: 22px 0 !important;
    padding: 6px !important;
    gap: 5px;
    display: flex;
    background: var(--hc-surface) !important;
    border: 1px solid var(--hc-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.dashboard-page .tab-button {
    min-height: 42px;
    padding: 9px 18px !important;
    color: var(--hc-muted) !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 650 !important;
}

.dashboard-page .tab-button:hover {
    color: var(--hc-text) !important;
    background: #f5f7fb !important;
}

.dashboard-page .tab-button.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--hc-primary), #7887ff) !important;
    box-shadow: 0 8px 18px rgba(91, 108, 255, .22) !important;
}

.dashboard-page .search-box,
.dashboard-page .form-card {
    margin: 18px 0 22px !important;
    padding: 22px !important;
    color: #fff !important;
    background:
        linear-gradient(130deg, rgba(91, 108, 255, .18), rgba(24, 182, 201, .08)),
        var(--hc-navy-2) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(7, 17, 31, .14) !important;
}

.dashboard-page .stats,
.dashboard-page .total-amount,
.dashboard-page .data-source-stats {
    color: var(--hc-text) !important;
    background: var(--hc-surface) !important;
    border: 1px solid var(--hc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055) !important;
}

.dashboard-page .total-amount,
.dashboard-page .data-source-stats {
    text-align: left !important;
    line-height: 1.8 !important;
}

.dashboard-page .stats-grid {
    gap: 14px !important;
}

.dashboard-page .stat-item {
    padding: 16px !important;
    background: #f7f9fc !important;
    border: 1px solid #edf1f6;
    border-radius: 12px !important;
}

.dashboard-page .panel,
.dashboard-page .table-wrap,
.dashboard-page .table-container,
.dashboard-page .report-container {
    background: #fff !important;
    border: 1px solid var(--hc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045) !important;
}

.dashboard-page .panel {
    padding: 18px !important;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page .layui-input {
    min-height: 42px !important;
    color: var(--hc-text) !important;
    background: #fff !important;
    border: 1px solid #d6deea !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus {
    outline: none !important;
    border-color: var(--hc-primary) !important;
    box-shadow: 0 0 0 3px rgba(91, 108, 255, .12) !important;
}

.dashboard-page .btn,
.dashboard-page .search-btn,
.dashboard-page .reset-btn {
    min-height: 40px;
    padding: 9px 15px !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.dashboard-page .btn-primary,
.dashboard-page .search-btn,
.dashboard-page .btn-info {
    color: #fff !important;
    background: var(--hc-primary) !important;
}

.dashboard-page .btn-primary:hover,
.dashboard-page .search-btn:hover,
.dashboard-page .btn-info:hover {
    background: var(--hc-primary-dark) !important;
}

.dashboard-page .btn-danger {
    color: #fff !important;
    background: var(--hc-danger) !important;
}

.dashboard-page .btn-light,
.dashboard-page .reset-btn,
.dashboard-page .btn.gray {
    color: #344054 !important;
    background: #e9eef5 !important;
}

.dashboard-page table {
    color: #344054 !important;
    background: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.dashboard-page th,
.dashboard-page td {
    padding: 12px 10px !important;
    border-color: #e8edf3 !important;
}

.dashboard-page th {
    color: #667085 !important;
    background: #f8fafc !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.dashboard-page tr:hover td {
    background: #f7f9fc !important;
}

.dashboard-page code,
.dashboard-page .key-cell,
.dashboard-page .ip-cell,
.dashboard-page .order-cell,
.dashboard-page .time-cell,
.dashboard-page .ttl-cell {
    font-family: "SFMono-Regular", Consolas, monospace !important;
}

.dashboard-page .pager a,
.dashboard-page .pager span {
    color: #475467 !important;
    background: #fff !important;
    border: 1px solid var(--hc-line) !important;
    border-radius: 8px !important;
}

.dashboard-page .pager .active {
    color: #fff !important;
    background: var(--hc-primary) !important;
    border-color: var(--hc-primary) !important;
}

body.auth-page {
    min-height: 100vh !important;
    padding: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--hc-text);
    background:
        radial-gradient(circle at 15% 20%, rgba(91, 108, 255, .23), transparent 26rem),
        radial-gradient(circle at 85% 82%, rgba(24, 182, 201, .14), transparent 28rem),
        var(--hc-navy) !important;
}

.auth-page .login-container,
.auth-page .reset-container {
    width: 100% !important;
    max-width: 450px !important;
    padding: 38px !important;
    background: rgba(255, 255, 255, .985) !important;
    border: 1px solid rgba(255, 255, 255, .65) !important;
    border-radius: 24px !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .34) !important;
}

.auth-brand {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand .brand-copy strong {
    color: var(--hc-text);
    font-size: 15px;
}

.auth-brand .brand-copy small {
    color: #98a2b3;
}

.auth-page .login-header,
.auth-page .reset-header {
    margin-bottom: 26px !important;
    text-align: left !important;
}

.auth-page .login-header h1,
.auth-page .reset-header h1 {
    margin-bottom: 9px !important;
    color: var(--hc-text) !important;
    font-size: 29px !important;
    font-weight: 760 !important;
    letter-spacing: -1px;
}

.auth-page .login-header p,
.auth-page .reset-header p {
    color: var(--hc-muted) !important;
    font-size: 14px !important;
    line-height: 1.65;
}

.auth-page .form-group label {
    color: #344054 !important;
    font-size: 13px;
    font-weight: 650 !important;
}

.auth-page .form-group input {
    min-height: 48px;
    padding: 12px 14px !important;
    color: var(--hc-text);
    background: #fff;
    border: 1px solid #d6deea !important;
    border-radius: 10px !important;
}

.auth-page .form-group input:focus {
    border-color: var(--hc-primary) !important;
    box-shadow: 0 0 0 4px rgba(91, 108, 255, .12) !important;
}

.auth-page .login-btn,
.auth-page .reset-btn {
    min-height: 49px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--hc-primary), #7685ff) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(91, 108, 255, .22) !important;
}

.auth-page .login-btn:hover,
.auth-page .reset-btn:hover {
    transform: translateY(-1px) !important;
}

.auth-page .first-time-notice,
.auth-page .password-requirements,
.auth-page .security-notice,
.auth-page .error-message,
.auth-page .success-message {
    border-radius: 11px !important;
    text-align: left !important;
}

.auth-page .system-info {
    color: #98a2b3 !important;
    line-height: 1.7;
}

.auth-page a {
    color: var(--hc-primary) !important;
}

@media (max-width: 760px) {
    body.dashboard-page {
        padding: 0 12px 28px !important;
    }
    .global-nav {
        margin: 0 -12px 22px;
    }
    .global-nav-inner {
        padding: 0 14px;
    }
    .global-status {
        display: none;
    }
    .dashboard-page .tab-header {
        overflow-x: auto;
        justify-content: flex-start;
    }
    .dashboard-page .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .dashboard-page .search-box,
    .dashboard-page .form-card {
        padding: 16px !important;
    }
    body.auth-page {
        padding: 16px !important;
    }
    .auth-page .login-container,
    .auth-page .reset-container {
        padding: 28px 22px !important;
        border-radius: 20px !important;
    }
}

/* Editorial enterprise refinement */
body.auth-page {
    padding: 0 !important;
    display: block !important;
    background: #07101d !important;
}

.auth-stage {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(460px, .78fr);
    background: #07101d;
}

.auth-hero {
    min-height: 100vh;
    padding: 48px clamp(52px, 7vw, 112px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
        #07101d;
    background-size: 64px 64px;
}

.auth-hero::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -290px;
    bottom: -350px;
    border: 1px solid rgba(95, 135, 255, .42);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(95,135,255,.025), 0 0 0 180px rgba(95,135,255,.018);
}

.auth-hero-top {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-monogram {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.38);
    font-size: 12px;
    letter-spacing: 0;
}

.auth-hero-copy {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    margin: 0 0 24px;
    color: #7891ff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 2.6px;
}

.auth-hero h2 {
    margin: 0;
    max-width: 780px;
    color: #f8fafc;
    font-size: clamp(48px, 6vw, 86px);
    line-height: .98;
    font-weight: 650;
    letter-spacing: -4px;
}

.hero-description {
    max-width: 610px;
    margin: 30px 0 0;
    color: #93a4ba;
    font-size: 16px;
    line-height: 1.85;
}

.hero-metrics {
    margin-top: 52px;
    padding-top: 25px;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.13);
}

.hero-metrics div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-metrics strong {
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.hero-metrics span {
    color: #65758b;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.hero-footnote {
    color: #526278;
    font-size: 11px;
    letter-spacing: .6px;
}

.auth-page .login-container,
.auth-page .reset-container {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    padding: clamp(46px, 8vh, 90px) clamp(42px, 7vw, 96px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.auth-page .auth-brand {
    margin-bottom: 70px;
}

.auth-page .brand-mark {
    border-radius: 3px;
    background: #1d4ed8;
    box-shadow: none;
}

.auth-page .brand-copy small {
    letter-spacing: 1.8px;
}

.auth-page .login-header h1,
.auth-page .reset-header h1 {
    font-size: clamp(34px, 3vw, 44px) !important;
    font-weight: 650 !important;
    letter-spacing: -1.8px !important;
}

.auth-page .form-group input {
    min-height: 52px;
    border-radius: 3px !important;
    border-color: #cfd7e3 !important;
}

.auth-page .login-btn,
.auth-page .reset-btn {
    min-height: 52px;
    background: #1d4ed8 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

.auth-page .login-btn:hover,
.auth-page .reset-btn:hover {
    background: #173fae !important;
}

.auth-page .system-info {
    margin-top: auto !important;
    padding-top: 44px !important;
    text-align: left !important;
}

body.dashboard-page {
    background: #eef2f6 !important;
}

.global-nav {
    min-height: 82px;
    margin-bottom: 40px;
    background: #07101d;
    box-shadow: none;
}

.global-nav-inner {
    min-height: 82px;
}

.global-nav .brand-mark {
    border-radius: 3px;
    background: #1d4ed8;
    box-shadow: none;
}

.dashboard-page h1 {
    font-size: clamp(31px, 3vw, 42px) !important;
    font-weight: 650 !important;
    letter-spacing: -1.6px !important;
}

.page-intro {
    margin-top: 10px;
    margin-bottom: 34px;
    font-size: 15px;
}

.dashboard-page .tab-header,
.dashboard-page .stats,
.dashboard-page .total-amount,
.dashboard-page .data-source-stats,
.dashboard-page .panel,
.dashboard-page .table-wrap,
.dashboard-page .table-container,
.dashboard-page .report-container {
    border-radius: 6px !important;
    box-shadow: none !important;
}

.dashboard-page .search-box,
.dashboard-page .form-card {
    background: #101c2e !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.dashboard-page .tab-button,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page .layui-input,
.dashboard-page .btn,
.dashboard-page .search-btn,
.dashboard-page .reset-btn {
    border-radius: 4px !important;
}

.dashboard-page .tab-button.active,
.dashboard-page .btn-primary,
.dashboard-page .search-btn,
.dashboard-page .btn-info,
.dashboard-page .pager .active {
    background: #1d4ed8 !important;
    box-shadow: none !important;
}

@media (max-width: 980px) {
    .auth-stage {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        display: none;
    }
    .auth-page .login-container,
    .auth-page .reset-container {
        min-height: 100vh;
        max-width: 620px !important;
        margin: 0 auto;
        padding: 48px 30px !important;
    }
    .auth-page .auth-brand {
        margin-bottom: 54px;
    }
}

/* Dashboard operations workspace enhancement - 2026-07-18 */
body.dashboard-page {
    padding: 0 28px 56px !important;
    font-size: 16px !important;
    background: #edf1f5 !important;
}

.dashboard-page .global-nav {
    margin-right: -28px;
    margin-left: -28px;
    margin-bottom: 34px;
}

.dashboard-page .global-nav-inner,
.dashboard-page .container,
.dashboard-page .page {
    max-width: 1920px !important;
}

.dashboard-page .global-nav-inner {
    padding-right: 28px;
    padding-left: 28px;
}

.dashboard-page h1 {
    font-size: clamp(38px, 3vw, 52px) !important;
    letter-spacing: -2px !important;
}

.dashboard-page .page-intro {
    margin: 10px 0 30px;
    font-size: 16px;
    line-height: 1.7;
}

.dashboard-page .tab-header {
    margin: 24px 0 !important;
    padding: 8px !important;
    gap: 8px;
    border-radius: 8px !important;
}

.dashboard-page .tab-button {
    min-height: 50px;
    padding: 12px 28px !important;
    font-size: 15px !important;
    border-radius: 5px !important;
}

.dashboard-page .search-box {
    padding: 24px 26px !important;
    border-radius: 8px !important;
}

.dashboard-page .dashboard-filter-form {
    display: grid !important;
    grid-template-columns: minmax(460px, 1.55fr) auto minmax(290px, 1fr) minmax(190px, .55fr) auto;
    align-items: end !important;
    gap: 16px !important;
}

.dashboard-page .filter-field {
    min-width: 0;
}

.dashboard-page .filter-label {
    display: block;
    margin-bottom: 8px;
    color: #aebbd0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .7px;
}

.dashboard-page .filter-date-range {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 20px minmax(190px, 1fr);
    align-items: end;
    gap: 8px;
}

.dashboard-page .filter-date-range .filter-label {
    grid-column: 1 / -1;
}

.dashboard-page .date-separator {
    align-self: center;
    color: #8290a6;
    text-align: center;
}

.dashboard-page .filter-keyword .search-input,
.dashboard-page .filter-type .search-select,
.dashboard-page .filter-date-range input {
    width: 100% !important;
    min-width: 0 !important;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page .layui-input {
    min-height: 48px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    border-radius: 5px !important;
}

.dashboard-page .quick-range-group,
.dashboard-page .filter-actions,
.dashboard-page .action-button-group {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-page .quick-range-btn {
    min-height: 48px;
    padding: 0 14px;
    color: #d5deeb;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 650;
    transition: background .18s ease, border-color .18s ease;
}

.dashboard-page .quick-range-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3);
}

.dashboard-page .search-btn,
.dashboard-page .reset-btn,
.dashboard-page .btn {
    min-height: 48px;
    padding: 12px 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 14px !important;
    border-radius: 5px !important;
}

.dashboard-page .total-amount,
.dashboard-page .data-source-stats {
    padding: 19px 22px !important;
    font-size: 16px !important;
    border-radius: 7px !important;
}

.dashboard-page .stats {
    padding: 24px !important;
    border-radius: 7px !important;
}

.dashboard-page .stats h3 {
    margin-bottom: 18px !important;
    font-size: 20px !important;
}

.dashboard-page .stats-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px !important;
}

.dashboard-page .stat-item {
    min-height: 112px;
    padding: 20px !important;
    align-items: flex-start !important;
    justify-content: center;
    border-radius: 6px !important;
}

.dashboard-page .stat-value {
    color: #172033 !important;
    font-size: 32px !important;
    line-height: 1.15;
    letter-spacing: -1px;
}

.dashboard-page .stat-label {
    margin-top: 8px;
    color: #697386 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

.dashboard-page .search-results-info {
    padding: 15px 18px !important;
    font-size: 15px !important;
    line-height: 1.7;
    border-radius: 6px !important;
}

.dashboard-page .action-buttons {
    margin: 24px 0 0 !important;
    padding: 16px 18px;
    gap: 16px;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.dashboard-page .table-status-copy {
    color: #596579;
    font-size: 14px;
    line-height: 1.7;
}

.dashboard-page .data-table-toolbar {
    min-height: 64px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #172033;
    background: #f8fafc;
    border: 1px solid #dfe5ec;
    border-bottom: 0;
}

.dashboard-page .data-table-toolbar > div {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.dashboard-page .data-table-toolbar strong {
    font-size: 17px;
}

.dashboard-page .data-table-toolbar span {
    color: #748096;
    font-size: 13px;
}

.dashboard-page .data-table-count {
    padding: 6px 10px;
    color: #1d4ed8 !important;
    white-space: nowrap;
    background: #e9efff;
    border-radius: 4px;
    font-weight: 700;
}

.dashboard-page .data-table-scroll {
    width: 100%;
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    scrollbar-color: #aab4c3 #edf1f5;
    scrollbar-width: thin;
}

.dashboard-page .data-table-scroll:focus {
    outline: 3px solid rgba(29, 78, 216, .14);
    outline-offset: 2px;
}

.dashboard-page table.biaoge {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.dashboard-page table.biaoge th,
.dashboard-page table.biaoge td {
    height: auto;
    min-height: 54px;
    padding: 11px 8px !important;
    vertical-align: middle !important;
    border-top: 0 !important;
    border-right: 1px solid #edf0f4 !important;
    border-bottom: 1px solid #e6eaf0 !important;
    border-left: 0 !important;
    font-size: 12px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-page table.biaoge thead th {
    position: sticky;
    top: 0;
    z-index: 12;
    height: 52px;
    color: #485467 !important;
    background: #f4f6f9 !important;
    border-bottom: 1px solid #d9e0e8 !important;
    font-size: 12px !important;
    letter-spacing: .45px;
    white-space: nowrap;
}

.dashboard-page table.biaoge tbody tr:nth-child(even) td {
    background: #fbfcfd;
}

.dashboard-page table.biaoge tbody tr:hover td {
    background: #eef4ff !important;
}

.dashboard-page table.biaoge th:first-child,
.dashboard-page table.biaoge td:first-child {
    position: static;
    width: 9% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-shadow: none;
}

.dashboard-page table.biaoge th:nth-child(2),
.dashboard-page table.biaoge td:nth-child(2) {
    position: static;
    width: 5% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-shadow: none;
}

.dashboard-page table.biaoge thead th:first-child,
.dashboard-page table.biaoge thead th:nth-child(2) {
    z-index: 12;
    background: #eef2f7 !important;
}

.dashboard-page table.biaoge tbody tr:nth-child(even) td:first-child,
.dashboard-page table.biaoge tbody tr:nth-child(even) td:nth-child(2) {
    background: #fbfcfd !important;
}

.dashboard-page table.biaoge tbody tr:hover td:first-child,
.dashboard-page table.biaoge tbody tr:hover td:nth-child(2) {
    background: #eef4ff !important;
}

.dashboard-page .key-cell,
.dashboard-page .ip-cell,
.dashboard-page .order-cell,
.dashboard-page .url-cell,
.dashboard-page .domain-cell,
.dashboard-page .amount-cell,
.dashboard-page .time-cell,
.dashboard-page .ttl-cell {
    font-size: 11px !important;
    line-height: 1.5 !important;
}

.dashboard-page .time-cell,
.dashboard-page .ttl-cell {
    white-space: normal !important;
}

.dashboard-page .key-cell,
.dashboard-page .order-cell,
.dashboard-page .url-cell {
    max-width: none !important;
    word-break: break-word;
}

.dashboard-page .success-badge,
.dashboard-page .order-not-found,
.dashboard-page .source-badge,
.dashboard-page .gj-badge,
.dashboard-page .an-badge,
.dashboard-page .xz-badge,
.dashboard-page .order-count-badge,
.dashboard-page .gj-count-badge,
.dashboard-page .an-count-badge,
.dashboard-page .association-badge,
.dashboard-page .gj-association-badge,
.dashboard-page .an-association-badge {
    min-height: 28px;
    max-width: 100%;
    padding: 4px 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
    font-size: 11px !important;
    line-height: 1.35;
    font-weight: 700;
    white-space: normal;
    text-align: center;
}

@media (max-width: 1199px) {
    .dashboard-page .data-table-scroll {
        overflow-x: auto;
    }

    .dashboard-page table.biaoge {
        min-width: 1500px !important;
        table-layout: auto !important;
    }
}

.dashboard-page .pagination {
    margin-top: 24px !important;
    gap: 8px !important;
}

.dashboard-page .pagination a,
.dashboard-page .pagination span {
    min-width: 42px;
    min-height: 42px;
    padding: 9px 13px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px !important;
    font-size: 14px;
}

.dashboard-page .back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 80;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: #172033;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.dashboard-page .back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1500px) {
    .dashboard-page .dashboard-filter-form {
        grid-template-columns: minmax(460px, 1fr) auto;
    }

    .dashboard-page .filter-keyword {
        grid-column: 1;
    }

    .dashboard-page .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body.dashboard-page {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .dashboard-page .global-nav {
        margin-right: -14px;
        margin-left: -14px;
    }

    .dashboard-page .global-nav-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-page .dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .dashboard-page .filter-keyword,
    .dashboard-page .filter-actions {
        grid-column: auto;
    }

    .dashboard-page .filter-date-range {
        grid-template-columns: 1fr;
    }

    .dashboard-page .filter-date-range .filter-label {
        grid-column: auto;
    }

    .dashboard-page .date-separator {
        display: none;
    }

    .dashboard-page .quick-range-group,
    .dashboard-page .filter-actions,
    .dashboard-page .action-button-group {
        flex-wrap: wrap;
    }

    .dashboard-page .quick-range-btn {
        flex: 1;
    }

    .dashboard-page .action-buttons,
    .dashboard-page .data-table-toolbar,
    .dashboard-page .data-table-toolbar > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-page .data-table-scroll {
        max-height: 68vh;
    }

    .dashboard-page table.biaoge th:first-child,
    .dashboard-page table.biaoge td:first-child,
    .dashboard-page table.biaoge th:nth-child(2),
    .dashboard-page table.biaoge td:nth-child(2) {
        position: static;
        width: auto !important;
        min-width: 150px !important;
        max-width: none !important;
        box-shadow: none;
    }
}

/* Fast dashboard tab transitions */
.dashboard-page .container {
    transition: opacity .14s ease, transform .14s ease;
}

body.dashboard-switching .container {
    opacity: .58;
    pointer-events: none;
    transform: translateY(2px);
}

.dashboard-page .tab-button:disabled {
    cursor: wait;
}

.dashboard-page .tab-button.is-loading {
    position: relative;
    padding-right: 42px !important;
}

.dashboard-page .tab-button.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(255,255,255,.38);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: dashboard-spin .65s linear infinite;
}

.dashboard-switch-loader {
    position: fixed;
    top: 96px;
    right: 28px;
    z-index: 120;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    background: #172033;
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(15,23,42,.22);
    font-size: 13px;
    font-weight: 650;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .14s ease, transform .14s ease;
}

.dashboard-switch-loader.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-switch-loader span {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dashboard-spin .65s linear infinite;
}

@keyframes dashboard-spin {
    to { transform: rotate(360deg); }
}
