:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #142033;
    --muted: #6d7b91;
    --line: #e5eaf1;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #111b2e;
    --navy-2: #17243c;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(31, 41, 55, .08);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 272px; min-height: 100vh; position: fixed; inset: 0 auto 0 0; background: linear-gradient(180deg, var(--navy) 0%, #0d1627 100%); color: white; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.sidebar-brand { padding: 28px 24px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark, .login-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #4f46e5); color: white; font-size: 1.25rem; box-shadow: 0 10px 25px rgba(37,99,235,.35); }
.brand-title { font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }.brand-subtitle { color: #8fa0ba; font-size: .75rem; margin-top: 1px; }
.sidebar-nav { padding: 20px 14px; display: grid; gap: 6px; }.nav-item { color: #9eacc1; min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border-radius: 12px; font-weight: 600; font-size: .91rem; transition: .2s ease; }.nav-item i { font-size: 1.05rem; }.nav-item:hover { color: white; background: rgba(255,255,255,.06); }.nav-item.active { color: white; background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(79,70,229,.22)); box-shadow: inset 0 0 0 1px rgba(96,165,250,.18); }
.sidebar-footer { margin-top: auto; padding: 18px; border-top: 1px solid rgba(255,255,255,.07); }.mini-user { display: flex; align-items: center; gap: 10px; padding: 5px 4px 16px; }.mini-user-copy { min-width: 0; display: grid; }.mini-user-copy strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.mini-user-copy span { color: #8090a8; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.10); color: white; font-weight: 800; flex: 0 0 auto; }.avatar-soft { background: #eaf1ff; color: #2459c6; }.btn-sidebar { width: 100%; color: #a9b6c9; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }.btn-sidebar:hover { color: white; background: rgba(255,255,255,.07); }
.main-content { margin-left: 272px; width: calc(100% - 272px); min-height: 100vh; }.topbar { height: 92px; padding: 0 32px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1010; }.topbar h1 { font-size: 1.42rem; margin: 0; font-weight: 800; letter-spacing: -.03em; }.eyebrow { color: #7e8da3; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.topbar-user { align-items: center; gap: 10px; }.topbar-user > div:last-child { display: grid; }.topbar-user strong { font-size: .83rem; }.topbar-user span { color: var(--muted); font-size: .72rem; }.mobile-menu { display: none; border: 0; background: transparent; font-size: 1.6rem; }.content-wrap { padding: 30px 32px 46px; max-width: 1680px; margin: 0 auto; }
.hero-strip { border-radius: 22px; padding: 30px 32px; background: radial-gradient(circle at 88% 15%, rgba(96,165,250,.34), transparent 28%), linear-gradient(135deg, #162846 0%, #1d4ed8 100%); color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; box-shadow: 0 22px 45px rgba(29,78,216,.18); }.hero-strip h2 { font-size: 1.65rem; margin: 5px 0 7px; font-weight: 800; letter-spacing: -.03em; }.hero-strip p { margin: 0; color: #d6e4ff; }.hero-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .15em; color: #9fc1ff; }
.metric-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; display: flex; align-items: center; gap: 15px; box-shadow: 0 8px 24px rgba(17,24,39,.035); }.metric-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.12rem; flex: 0 0 auto; }.metric-icon.blue { background: #eaf2ff; color: #2563eb; }.metric-icon.purple { background: #f0ecff; color: #6d43d9; }.metric-icon.green { background: #e8f8ef; color: #15803d; }.metric-icon.amber { background: #fff5df; color: #c66a00; }.metric-card > div:last-child { display: grid; }.metric-card span { color: var(--muted); font-size: .74rem; font-weight: 650; }.metric-card strong { font-size: 1.55rem; letter-spacing: -.04em; line-height: 1.2; margin: 2px 0; }.metric-card small { color: #98a4b6; font-size: .71rem; }.metric-card .metric-date, .metric-card .metric-status { font-size: 1.08rem; letter-spacing: -.02em; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(17,24,39,.04); overflow: hidden; }.panel-heading { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 15px; }.panel-heading h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }.btn { border-radius: 11px; font-weight: 700; }.btn-primary { background: linear-gradient(135deg, #2f6ff5, #2557da); border-color: transparent; box-shadow: 0 8px 18px rgba(37,99,235,.18); }.btn-primary:hover { background: linear-gradient(135deg, #235edc, #1d4ed8); border-color: transparent; }.btn-soft { color: #426080; background: #f3f6fa; border: 1px solid #e5eaf1; }.btn-soft:hover { background: #eaf0f7; }.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; color: #5a6b82; background: #f6f8fb; border: 1px solid #e6ebf2; }
.app-table { --bs-table-bg: transparent; }.app-table th { padding: 13px 18px; color: #7b899d; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .69rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; white-space: nowrap; }.app-table td { padding: 15px 18px; border-bottom-color: #edf1f5; font-size: .84rem; color: #334155; }.app-table td small { display: block; color: #8b98a9; font-size: .7rem; margin-top: 2px; }.app-table tbody tr:hover { background: #fbfcfe; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.status-badge.status-success { background: #e8f8ef; color: #15803d; }.status-badge.status-failed { background: #fff0f0; color: #c62828; }.status-badge.status-processing { background: #eaf2ff; color: #2459c6; }.status-lg { padding: 7px 14px; font-size: .72rem; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }.empty-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: #f2f5f9; color: #7790ad; font-size: 1.4rem; }.empty-state h4 { color: var(--ink); font-size: 1rem; font-weight: 800; }.empty-state p { margin: 0; font-size: .85rem; }
.upload-zone { position: relative; margin: 14px 24px 0; min-height: 310px; border: 2px dashed #cdd8e8; border-radius: 18px; background: linear-gradient(180deg, #fbfdff, #f7faff); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; cursor: pointer; transition: .2s ease; }.upload-zone:hover,.upload-zone.dragging { border-color: #5a8cf3; background: #f5f9ff; transform: translateY(-1px); }.upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.upload-illustration { width: 70px; height: 70px; border-radius: 22px; background: #e9f1ff; color: #2864e6; display: grid; place-items: center; font-size: 1.75rem; margin-bottom: 17px; }.upload-zone h4 { font-size: 1.02rem; font-weight: 800; }.upload-zone p { color: var(--muted); margin: 4px 0 12px; }.upload-meta { color: #92a0b2; font-size: .75rem; }.selected-file { margin: 15px 24px 0; padding: 14px 16px; border: 1px solid #dce5f1; border-radius: 14px; display: flex; align-items: center; gap: 12px; background: #fbfcfe; }.selected-file > div:nth-child(2) { display: grid; flex: 1; }.selected-file strong { font-size: .86rem; }.selected-file span { color: var(--muted); font-size: .72rem; }.file-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e8f8ef; color: #15803d; font-size: 1.15rem; }.upload-zone + .selected-file + .d-flex { padding: 0 24px 24px; }
.sticky-card { position: sticky; top: 120px; padding-bottom: 18px; }.sticky-card > .eyebrow,.sticky-card > h3,.sticky-card > .requirement-item,.sticky-card > .info-note,.sticky-card > .role-guide { margin-left: 22px; margin-right: 22px; }.sticky-card > .eyebrow { margin-top: 22px; }.requirement-item { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }.requirement-item > i { color: #16a34a; margin-top: 2px; }.requirement-item > div { display: grid; }.requirement-item strong { font-size: .84rem; }.requirement-item span { color: var(--muted); font-size: .72rem; }.info-note { display: flex; gap: 10px; margin-top: 18px; padding: 14px; border-radius: 13px; background: #edf5ff; color: #335f96; font-size: .76rem; }.info-note p { margin: 0; }.preview-header { padding: 25px; display: flex; align-items: center; gap: 16px; }.preview-header h2 { font-size: 1.25rem; font-weight: 800; margin: 2px 0 4px; }.success-orb { width: 58px; height: 58px; border-radius: 18px; background: #e8f8ef; color: #15803d; display: grid; place-items: center; font-size: 1.6rem; }.summary-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; display: grid; height: 100%; }.summary-tile span { color: var(--muted); font-size: .73rem; font-weight: 700; }.summary-tile strong { font-size: 1.65rem; letter-spacing: -.04em; margin: 3px 0; }.summary-tile small { color: #95a0af; }.period-chips { padding: 20px 24px 24px; display: flex; flex-wrap: wrap; gap: 8px; }.period-chips span { background: #eef4ff; color: #2b5fc9; border: 1px solid #dce8ff; padding: 7px 11px; border-radius: 999px; font-size: .75rem; font-weight: 800; }.commit-bar { background: #13233d; color: white; border-radius: var(--radius); padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }.commit-bar > div:first-child { display: grid; }.commit-bar strong { font-size: .87rem; }.commit-bar span { color: #9fb1ca; font-size: .74rem; }
.auth-body { background: #101a2b; }.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(440px, .9fr); }.auth-visual { position: relative; padding: 70px; color: white; overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(59,130,246,.42), transparent 28%), radial-gradient(circle at 80% 75%, rgba(99,102,241,.30), transparent 30%), linear-gradient(145deg, #0d182b 0%, #132b50 100%); display: flex; align-items: center; }.auth-visual:before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent); }.auth-visual-inner { position: relative; max-width: 650px; }.auth-badge { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); border-radius: 999px; padding: 8px 13px; color: #bcd5ff; font-size: .75rem; font-weight: 700; }.auth-visual h1 { font-size: clamp(2.2rem, 4vw, 4.25rem); letter-spacing: -.06em; line-height: 1.02; font-weight: 800; margin: 26px 0 20px; }.auth-visual p { max-width: 600px; color: #adbed4; font-size: 1.03rem; }.auth-points { display: grid; gap: 13px; margin-top: 30px; }.auth-points div { display: flex; gap: 10px; color: #d7e3f4; font-size: .9rem; }.auth-points i { color: #70a3ff; }.auth-panel { background: #f7f9fc; display: grid; place-items: center; padding: 40px; }.login-card { width: min(440px, 100%); background: white; border: 1px solid #e5eaf1; border-radius: 24px; padding: 36px; box-shadow: 0 26px 70px rgba(15,23,42,.11); }.login-card .login-logo { margin-bottom: 24px; }.login-card h2 { font-weight: 800; letter-spacing: -.035em; }.form-label { font-size: .78rem; font-weight: 750; color: #44546b; }.form-control,.form-select { min-height: 46px; border-radius: 11px; border-color: #dce3ec; font-size: .88rem; }.form-control:focus,.form-select:focus { border-color: #78a1f5; box-shadow: 0 0 0 .22rem rgba(37,99,235,.10); }.input-icon { position: relative; }.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8493a7; z-index: 1; }.input-icon .form-control { padding-left: 41px; }.password-field .form-control { padding-right: 45px; }.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8493a7; padding: 8px; }.auth-flash { position: fixed; z-index: 2000; top: 22px; right: 22px; width: min(420px, calc(100vw - 44px)); }.flash-stack:not(.auth-flash) { margin-bottom: 20px; }
.user-cell { display: flex; align-items: center; gap: 10px; }.user-cell > div:last-child { display: grid; }.user-cell span { color: var(--muted); font-size: .72rem; }.role-chip { border-radius: 999px; padding: 5px 10px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.role-admin { background: #efeaff; color: #6941c6; }.role-viewer { background: #eaf2ff; color: #2459c6; }.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b8c0cc; }.status-dot.online { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }.role-guide { display: grid; gap: 16px; }.role-guide p { color: var(--muted); font-size: .76rem; margin: 8px 0 0; }.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(15,23,42,.18); }.modal-header,.modal-footer { border-color: #edf1f5; }.modal-title { font-weight: 800; }.dropdown-menu { border-radius: 12px; padding: 7px; }.dropdown-item { border-radius: 8px; font-size: .82rem; padding: 8px 10px; }.pagination-wrap { padding: 18px 22px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--muted); font-size: .76rem; }.detail-grid { padding: 22px 24px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }.detail-grid > div { padding: 15px; border: 1px solid #e7ecf2; border-radius: 13px; background: #fbfcfe; display: grid; }.detail-grid span { color: var(--muted); font-size: .7rem; }.detail-grid strong { margin-top: 3px; font-size: .9rem; }.error-box { margin: 0 24px 24px; padding: 14px; border-radius: 13px; background: #fff1f1; color: #a11f1f; display: flex; gap: 11px; }.error-box p { margin: 3px 0 0; font-size: .8rem; }.error-page { grid-template-columns: 1fr; place-items: center; background: #f3f6fa; }.error-code { font-size: 4.5rem; line-height: 1; font-weight: 900; color: #dce5f2; letter-spacing: -.06em; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) { .sidebar { transform: translateX(-100%); }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; width: 100%; }.mobile-menu { display: inline-flex; }.topbar { padding: 0 20px; }.content-wrap { padding: 22px 18px 38px; }.sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.38); z-index: 1030; }.auth-shell { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: 100vh; }.detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 767.98px) { .hero-strip,.commit-bar { align-items: flex-start; flex-direction: column; }.hero-strip { padding: 25px; }.content-wrap { padding-left: 14px; padding-right: 14px; }.topbar { height: 80px; }.topbar h1 { font-size: 1.18rem; }.panel-heading { padding: 18px; }.upload-zone { margin-left: 16px; margin-right: 16px; min-height: 270px; }.selected-file { margin-left: 16px; margin-right: 16px; }.detail-grid { grid-template-columns: 1fr; }.auth-panel { padding: 20px; }.login-card { padding: 28px 22px; }.commit-bar .d-flex { width: 100%; }.commit-bar form,.commit-bar button { flex: 1; } }
/* Account menu and settings */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    transition: .2s ease;
}
.topbar-user:hover,
.topbar-user[aria-expanded="true"] {
    background: #f4f7fb;
    border-color: #e4eaf2;
}
.topbar-user-copy {
    min-width: 0;
}
.topbar-user-copy strong,
.topbar-user-copy > span {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-user-copy strong {
    font-size: .83rem;
}
.topbar-user-copy > span {
    color: var(--muted);
    font-size: .72rem;
}
.account-menu-caret {
    color: #8a98aa;
    font-size: .7rem;
    transition: transform .2s ease;
}
.topbar-user[aria-expanded="true"] .account-menu-caret {
    transform: rotate(180deg);
}
.account-dropdown {
    width: min(310px, calc(100vw - 28px));
    margin-top: 9px !important;
    padding: 9px;
    border: 1px solid var(--line) !important;
}
.account-dropdown-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 9px 8px;
}
.account-dropdown-header > span:last-child {
    min-width: 0;
    display: grid;
    justify-items: start;
}
.account-dropdown-header strong,
.account-dropdown-header small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-dropdown-header strong {
    font-size: .86rem;
}
.account-dropdown-header small {
    color: var(--muted);
    font-size: .72rem;
    margin: 1px 0 7px;
}
.account-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
}
.account-dropdown .dropdown-item > i {
    width: 22px;
    color: #5c7190;
    font-size: 1rem;
    text-align: center;
}
.account-dropdown .dropdown-item > span {
    display: grid;
}
.account-dropdown .dropdown-item strong {
    color: var(--ink);
    font-size: .8rem;
}
.account-dropdown .dropdown-item small {
    color: var(--muted);
    font-size: .69rem;
}
.account-dropdown form {
    margin: 0;
}
.account-dropdown .account-logout,
.account-dropdown .account-logout > i {
    color: var(--danger);
}
.account-page-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
}
.security-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: #5746ce;
    font-size: 1.12rem;
}
.account-readonly-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.account-readonly-row > div {
    display: grid;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}
.account-readonly-row span {
    color: var(--muted);
    font-size: .7rem;
}
.account-readonly-row strong {
    margin-top: 2px;
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .topbar {
        padding-left: 14px;
        padding-right: 14px;
        gap: 10px;
    }
    .topbar h1 {
        font-size: 1.05rem;
    }
    .topbar .eyebrow {
        display: none;
    }
    .topbar-user {
        padding: 5px;
        gap: 5px;
    }
    .account-menu-caret {
        display: none;
    }
    .account-settings .panel-card {
        height: auto !important;
    }
    .account-readonly-row {
        grid-template-columns: 1fr;
    }
}
.topbar-user .avatar {
    color: #2459c6;
    font-size: .82rem;
}
/* Refined topbar account trigger */
.account-menu {
    margin-left: auto;
}
.account-menu .topbar-user {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: auto;
    min-height: 52px;
    padding: 6px 9px 6px 6px;
    border: 0;
    border-radius: 15px;
    outline: 0;
    box-shadow: none;
    background: transparent;
    font: inherit;
    line-height: 1;
}
.account-menu .topbar-user:hover,
.account-menu .topbar-user[aria-expanded="true"] {
    border-color: transparent;
    background: #f3f6fa;
}
.account-menu .topbar-user:focus {
    outline: 0;
    box-shadow: none;
}
.account-menu .topbar-user:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.account-menu .topbar-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, #eaf1ff, #eef0ff);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .06);
    color: #315fc4;
    font-size: .84rem;
}
.account-menu .topbar-user-copy {
    align-content: center;
    gap: 3px;
    text-align: left;
    line-height: 1.15;
}
.account-menu .topbar-user-copy strong {
    color: #26364d;
    font-weight: 750;
}
.account-menu .account-menu-caret {
    margin: 0 2px 0 4px;
}

@media (max-width: 767.98px) {
    .account-menu .topbar-user {
        min-height: 46px;
        padding: 3px;
        border-radius: 14px;
    }
    .account-menu .topbar-user .avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
}

/* Dashboard master-data content */
.dashboard-note { color: #7b899d; background: #f6f8fb; border: 1px solid #e7ecf3; border-radius: 999px; padding: 7px 11px; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.stock-table { min-width: 1040px; }
.stock-code { color: #19375f; font-size: .88rem; letter-spacing: .015em; }
.rank-pill { min-width: 38px; display: inline-flex; justify-content: center; padding: 5px 9px; border-radius: 9px; background: #eef4ff; color: #285cc0; font-size: .72rem; font-weight: 850; }
.category-chip { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f3f0ff; color: #6941c6; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.numeric-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.value-positive,.value-negative { display: inline-flex; justify-content: flex-end; min-width: 75px; padding: 5px 8px; border-radius: 9px; font-weight: 800; font-size: .74rem; font-variant-numeric: tabular-nums; }
.value-positive { color: #14803d; background: #eaf8ef; }
.value-negative { color: #bd3030; background: #fff0f0; }
.gain-list,.category-list { padding: 8px 20px 18px; }
.gain-item { display: flex; align-items: center; gap: 11px; padding: 13px 2px; border-bottom: 1px solid #edf1f5; }
.gain-item:last-child,.category-row:last-child { border-bottom: 0; }
.gain-rank { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: #eef4ff; color: #2b5fc9; font-size: .72rem; font-weight: 850; }
.gain-copy { min-width: 0; flex: 1; display: grid; }
.gain-copy strong { color: #243b5a; font-size: .83rem; }
.gain-copy span { overflow: hidden; color: #8b98a9; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.gain-value { color: #15803d; font-size: .81rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #edf1f5; color: #53657c; font-size: .8rem; }
.category-row strong { min-width: 32px; border-radius: 9px; padding: 5px 9px; background: #f3f6fa; color: #2f4665; text-align: center; }
.dashboard-footnote { padding: 12px 18px; border-top: 1px solid #edf1f5; background: #fafbfd; color: #8390a2; font-size: .7rem; }
@media (max-width: 767.98px) { .dashboard-note { display: none; } }

/* Dashboard data-quality summary */
.quality-metric-card { height: 100%; min-height: 88px; padding: 15px 16px; border: 1px solid #e8edf4; border-radius: 14px; background: #fbfcfe; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.quality-metric-card span { color: #7c8b9f; font-size: .7rem; font-weight: 700; }
.quality-metric-card strong { color: #263b5a; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
