:root {
    --ink: #102533;
    --muted: #647684;
    --blue: #27a9d3;
    --blue-dark: #168eb8;
    --panel: #ffffff;
    --line: #dce7ec;
    --soft: #f4f8fa;
    --danger-bg: #fff0f0;
    --danger: #b42318;
    --success-bg: #eaf8f1;
    --success: #16794c;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #eef4f6;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
}

.brand-panel {
    padding: 56px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 15% 20%, rgba(39,169,211,.45), transparent 35%),
        linear-gradient(145deg, #0c2634, #153f52 58%, #0d2734);
    position: relative;
    overflow: hidden;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    right: -160px;
    bottom: -140px;
    box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    opacity: .8;
}

.brand-copy { max-width: 590px; position: relative; z-index: 1; }
.brand-copy h1 {
    margin: 18px 0;
    font-size: clamp(44px, 5vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
}
.brand-copy p {
    max-width: 520px;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    line-height: 1.7;
}
.brand-footer { font-size: 13px; opacity: .58; position: relative; z-index: 1; }

.login-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background: linear-gradient(180deg, #f7fafb, #eaf2f5);
}

.login-card {
    width: min(100%, 510px);
    padding: 44px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15,52,69,.08);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(19,55,70,.14);
}

.logo {
    display: block;
    width: 202.5px;
    max-width: 80%;
    height: auto;
    margin-bottom: 38px;
}

.heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2fc487;
    box-shadow: 0 0 0 5px rgba(47,196,135,.13);
}

h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    letter-spacing: -.035em;
}

.subtext { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 18px 0 8px;
}

input, select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: .18s ease;
}

input:focus, select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(39,169,211,.13);
}

.otp {
    font-size: 29px;
    letter-spacing: .32em;
    text-align: center;
    font-weight: 800;
}

button.primary {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 13px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(39,169,211,.25);
}

button.primary:hover { transform: translateY(-1px); }

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.5;
}
.alert.error { color: var(--danger); background: var(--danger-bg); }
.alert.success { color: var(--success); background: var(--success-bg); }

.user-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0 26px;
    padding: 14px 16px;
    background: var(--soft);
    border-radius: 13px;
}
.user-chip span { font-weight: 800; }
.user-chip small { color: var(--muted); }

.secondary-form { text-align: center; }
.link-button {
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    margin-top: 18px;
}

.security-note {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #82919b;
    font-size: 12px;
}

/* Dashboard */
.dashboard-body { background: #f4f8fa; }
.topbar {
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    background: white;
    border-bottom: 1px solid var(--line);
}
.topbar img { width: 230px; }
.topbar-user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.topbar-user span { color: var(--muted); }
.topbar-user a { color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.dashboard-shell { max-width: 1380px; margin: 0 auto; padding: 46px; }
.welcome-banner {
    padding: 42px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, #0e2a38, #155c78);
}
.welcome-banner h1 { font-size: 42px; margin: 12px 0; letter-spacing: -.04em; }
.welcome-banner p { color: rgba(255,255,255,.72); }
.metric-grid, .module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}
.metric-grid article, .module-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
}
.metric-grid span { color: var(--muted); font-size: 13px; }
.metric-grid strong { display: block; font-size: 38px; margin: 12px 0; }
.metric-grid small, .module-grid p { color: var(--muted); }
.module-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .page-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 22px; }
    .login-card { padding: 30px 24px; border-radius: 20px; }
    .topbar { padding: 0 20px; }
    .topbar img { width: 170px; }
    .dashboard-shell { padding: 22px; }
    .metric-grid, .module-grid { grid-template-columns: 1fr; }
}

/* ===== URC PORTAL SHELL ===== */

.portal-body {
    margin: 0;
    min-height: 100vh;
    background: #f1f6f8;
    color: #102533;
    overflow-x: hidden;
}

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

.portal-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 292px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 0 0, rgba(39, 169, 211, .20), transparent 31%),
        linear-gradient(180deg, #102d3c 0%, #0b2532 100%);
    color: #fff;
    z-index: 1000;
    box-shadow: 12px 0 38px rgba(5, 31, 43, .12);
}

.sidebar-header {
    min-height: 94px;
    padding: 19px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.sidebar-logo img {
    display: block;
    width: auto;
    height: 82px;
    max-width: 205px;
    object-fit: contain;
}

.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 31px;
    cursor: pointer;
}

.sidebar-caption {
    padding: 21px 26px 9px;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.portal-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.nav-group {
    margin-bottom: 4px;
}

.nav-main-link,
.nav-nested-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(255, 255, 255, .73);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nav-main-link:hover,
.nav-nested-toggle:hover,
.nav-group.is-active > .nav-main-link {
    background: rgba(39, 169, 211, .15);
    color: #fff;
}

.nav-group.is-active > .nav-main-link {
    box-shadow: inset 3px 0 0 #2db5df;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.nav-icon svg,
.topbar-search svg,
.notification-button svg,
.module-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-label {
    flex: 1;
}

.nav-chevron {
    margin-left: auto;
    font-size: 21px;
    line-height: 1;
    transition: transform .18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-chevron,
.nav-nested-toggle[aria-expanded="true"] .nav-chevron {
    transform: rotate(90deg);
}

.nav-submenu {
    display: none;
    padding: 4px 0 7px 34px;
}

.nav-submenu.is-open {
    display: block;
}

.nav-level-2 {
    padding-left: 15px;
}

.nav-child-link {
    display: block;
    position: relative;
    padding: 8px 12px 8px 20px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.nav-child-link::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.nav-child-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.nav-nested-toggle {
    min-height: 39px;
    padding: 0 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.sidebar-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .08);
}

.sidebar-user-avatar,
.profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #30b7df, #168daf);
    color: #fff;
    font-weight: 900;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
}

.sidebar-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user-details strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-details span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.sidebar-overlay {
    display: none;
}

.portal-main {
    width: calc(100% - 292px);
    min-height: 100vh;
    margin-left: 292px;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 800;
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(280px, 620px) auto;
    align-items: center;
    gap: 28px;
    padding: 0 34px;
    border-bottom: 1px solid #dce7ec;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

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

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid #dce7ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #163747;
}

.page-heading {
    display: flex;
    flex-direction: column;
}

.page-heading .page-path {
    color: #83929b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.page-heading strong {
    margin-top: 3px;
    color: #102b39;
    font-size: 17px;
}

.topbar-search {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid #dce7ec;
    border-radius: 12px;
    background: #f7fafb;
}

.topbar-search svg {
    width: 19px;
    height: 19px;
    color: #7c8c96;
}

.topbar-search input {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
}

.topbar-search input:focus {
    border: 0;
    box-shadow: none;
}

.topbar-actions,
.topbar-profile {
    display: flex;
    align-items: center;
}

.topbar-actions {
    justify-content: flex-end;
    gap: 18px;
}

.notification-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #dce7ec;
    border-radius: 11px;
    background: #fff;
    color: #57707e;
    cursor: pointer;
}

.notification-button svg {
    width: 18px;
    height: 18px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f05a28;
}

.topbar-profile {
    gap: 11px;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.profile-copy strong {
    color: #173240;
    font-size: 12px;
}

.profile-copy span {
    margin-top: 2px;
    color: #87959e;
    font-size: 10px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
}

.signout-link {
    color: #158caf;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.portal-content {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 34px;
}

.dashboard-welcome {
    min-height: 196px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 38px 42px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(54, 191, 229, .32), transparent 30%),
        linear-gradient(132deg, #0d2b39 0%, #124c63 62%, #126d8c 100%);
    box-shadow: 0 22px 45px rgba(20, 73, 94, .13);
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dashboard-welcome h1 {
    margin: 0;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.dashboard-welcome p {
    max-width: 720px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .69);
    font-size: 14px;
    line-height: 1.65;
}

.welcome-date {
    min-width: 145px;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    text-align: right;
}

.welcome-date span {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
}

.welcome-date strong {
    margin-top: 4px;
    font-size: 14px;
}

.dashboard-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 31px 2px 16px;
}

.dashboard-section-header span {
    color: #7a8b95;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-section-header h2 {
    margin: 4px 0 0;
    font-size: 23px;
}

.dashboard-refresh {
    padding: 10px 15px;
    border: 1px solid #d9e5ea;
    border-radius: 10px;
    background: #fff;
    color: #177f9e;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.portal-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.portal-metric-card {
    min-height: 155px;
    padding: 22px;
    border: 1px solid #dfe9ed;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 62, 77, .035);
}

.metric-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #637985;
    font-size: 12px;
}

.metric-status,
.metric-currency {
    color: #1792b7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-metric-card > strong {
    display: block;
    margin: 18px 0 16px;
    color: #102d3b;
    font-size: 36px;
    letter-spacing: -.04em;
}

.portal-metric-card small {
    color: #82919a;
    font-size: 11px;
    line-height: 1.45;
}

.portal-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-top: 22px;
}

.portal-module-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid #dfe9ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 62, 77, .035);
}

.module-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    border-radius: 13px;
}

.module-icon svg {
    width: 21px;
    height: 21px;
}

.reports-module {
    background: #e5f7fc;
    color: #188eb0;
}

.tools-module {
    background: #edf2ff;
    color: #526fce;
}

.admin-module {
    background: #eaf8f0;
    color: #238d5d;
}

.portal-module-card span {
    color: #82919a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-module-card h3 {
    margin: 7px 0 9px;
    color: #132f3e;
    font-size: 18px;
    letter-spacing: -.02em;
}

.portal-module-card p {
    flex: 1;
    margin: 0;
    color: #6f818b;
    font-size: 12px;
    line-height: 1.65;
}

.module-open-button {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #168caf;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .portal-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .topbar-search {
        max-width: none;
    }

    .profile-copy {
        display: none;
    }

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

@media (max-width: 920px) {
    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

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

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(4, 21, 29, .58);
    }

    .sidebar-overlay.is-visible {
        display: block;
    }

    .portal-main {
        width: 100%;
        margin-left: 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .portal-topbar {
        grid-template-columns: 1fr auto;
        padding: 0 20px;
    }

    .topbar-search {
        display: none;
    }

    .portal-content {
        padding: 22px;
    }

    .portal-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .portal-sidebar {
        width: min(88vw, 310px);
    }

    .portal-topbar {
        min-height: 68px;
    }

    .notification-button,
    .profile-copy {
        display: none;
    }

    .dashboard-welcome {
        min-height: 240px;
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .welcome-date {
        align-self: stretch;
        text-align: left;
    }

    .portal-metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .portal-content {
        padding: 16px;
    }
}

/* ===== LIVE DASHBOARD ===== */

.dashboard-period-panel {
    margin-top: 20px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #dce7ec;
    border-radius: 15px;
    background: #fff;
}

.period-buttons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.period-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #dce7ec;
    border-radius: 10px;
    background: #f7fafb;
    color: #5b717d;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.period-button:hover {
    border-color: #95cddd;
    color: #168caf;
}

.period-button.is-active {
    border-color: #20a7cf;
    background: #e6f7fc;
    color: #1387a9;
}

.period-range {
    color: #7c8d97;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #278b65;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-live-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ac282;
    box-shadow: 0 0 0 5px rgba(42, 194, 130, .12);
}

.metric-positive {
    color: #24875f !important;
}

.metric-negative {
    color: #c65353 !important;
}

.metric-neutral {
    color: #82919a !important;
}

.dashboard-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr);
    gap: 18px;
    margin-top: 22px;
}

.dashboard-three-column {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.35fr) minmax(250px, .7fr);
    gap: 18px;
    margin-top: 18px;
}

.dashboard-data-card {
    padding: 23px;
    border: 1px solid #dfe9ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 62, 77, .035);
    overflow: hidden;
}

.data-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.data-card-heading span {
    color: #82919a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.data-card-heading h3 {
    margin: 5px 0 0;
    color: #153342;
    font-size: 17px;
}

.dashboard-chart-large canvas,
.dashboard-chart-medium canvas {
    display: block;
    width: 100%;
}

.location-table-wrap {
    max-height: 320px;
    overflow-y: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.dashboard-table th {
    position: sticky;
    top: 0;
    padding: 9px 8px;
    background: #fff;
    color: #8997a0;
    text-align: left;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-table td {
    padding: 10px 8px;
    border-top: 1px solid #edf2f4;
    color: #506874;
}

.dashboard-table th:nth-child(2),
.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(2),
.dashboard-table td:nth-child(3) {
    text-align: right;
}

.dashboard-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-row {
    display: grid;
    grid-template-columns: 65px 1fr auto;
    align-items: center;
    gap: 10px;
}

.breakdown-price {
    color: #435f6c;
    font-size: 11px;
    font-weight: 800;
}

.breakdown-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf3f5;
}

.breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #28acd3, #1a88a9);
}

.breakdown-count {
    color: #6e828c;
    font-size: 11px;
}

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

.performance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid #edf2f4;
}

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

.performance-item span {
    color: #778b95;
    font-size: 11px;
}

.performance-item strong {
    color: #123342;
    font-size: 22px;
    letter-spacing: -.03em;
}

@media (max-width: 1200px) {
    .dashboard-two-column,
    .dashboard-three-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-period-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .period-range {
        white-space: normal;
    }
}

.subscriber-activity-placeholder {
    min-height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px;
    border: 1px dashed #cfdde3;
    border-radius: 14px;
    background: #f8fbfc;
    text-align: center;
}

.subscriber-placeholder-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 12px;
    background: #e4f6fb;
    color: #168caf;
    font-size: 15px;
    font-weight: 900;
}

.subscriber-activity-placeholder strong {
    color: #163442;
    font-size: 14px;
}

.subscriber-activity-placeholder p {
    max-width: 230px;
    margin: 8px 0 6px;
    color: #728691;
    font-size: 11px;
    line-height: 1.5;
}

.subscriber-activity-placeholder small {
    color: #98a6ad;
    font-size: 9px;
}

.subscriber-activity-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.subscriber-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-bottom: 1px solid #edf2f4;
}

.subscriber-row:last-child {
    border-bottom: 0;
}

.subscriber-rank {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #edf7fa;
    color: #168caf;
    font-size: 10px;
    font-weight: 900;
}

.subscriber-info {
    min-width: 0;
}

.subscriber-info strong {
    display: block;
    overflow: hidden;
    color: #183744;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscriber-info small {
    display: block;
    margin-top: 3px;
    color: #83939c;
    font-size: 9px;
}

.subscriber-revenue {
    color: #173947;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.subscriber-empty {
    padding: 30px 10px;
    color: #82919a;
    font-size: 11px;
    text-align: center;
}
