:root {
    --sidebar-width: 268px;

    --app-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --sidebar-bg: #0f172a;
    --sidebar-bg-secondary: #111c31;
    --sidebar-border: rgba(255, 255, 255, 0.07);

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-soft: #edf2f7;

    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: #eef2ff;

    --green: #16a34a;
    --green-soft: #dcfce7;

    --yellow: #d97706;
    --yellow-soft: #fef3c7;

    --red: #dc2626;
    --red-soft: #fee2e2;

    --cyan: #0891b2;
    --cyan-soft: #cffafe;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 2px 8px rgba(15, 23, 42, 0.04);

    --shadow-card:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.035);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    font-family:
        Inter,
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    background: var(--app-bg);

    color: var(--text-primary);

    font-size: 14px;

    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}


/* =========================================================
   LOGIN
========================================================= */

.login-wrapper {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(79, 70, 229, 0.1),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(8, 145, 178, 0.08),
            transparent 30%
        ),
        #f8fafc;
}

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

    padding: 42px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.09);
}

.brand-icon {
    width: 60px;
    height: 60px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    color: #ffffff;

    font-size: 23px;

    box-shadow:
        0 12px 25px rgba(79, 70, 229, 0.22);
}


/* =========================================================
   SIDEBAR
========================================================= */

#sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0f172a,
            #0b1220
        );

    color: #cbd5e1;

    z-index: 1030;

    border-right: 1px solid var(--sidebar-border);

    transition:
        transform 0.22s ease;
}

.sidebar-brand {
    min-height: 82px;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    gap: 13px;

    border-bottom:
        1px solid var(--sidebar-border);
}

.sidebar-logo {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: #ffffff;

    font-size: 17px;

    box-shadow:
        0 10px 20px rgba(79, 70, 229, 0.22);
}

.sidebar-brand-name {
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: -0.01em;
}

.sidebar-brand-subtitle {
    margin-top: 2px;

    color: #64748b;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.sidebar-scroll {
    flex: 1;

    overflow-y: auto;

    padding:
        16px 12px
        22px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section-title {
    padding:
        0 11px
        7px;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.sidebar-nav .nav-item {
    min-height: 43px;

    padding: 9px 11px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 9px;

    color: #94a3b8;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.sidebar-nav .nav-item:hover {
    color: #e2e8f0;

    background:
        rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-item.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(99, 102, 241, 0.24),
            rgba(99, 102, 241, 0.09)
        );

    box-shadow:
        inset 3px 0 0 #818cf8;
}

.nav-icon {
    width: 22px;

    display: inline-flex;
    justify-content: center;

    color: #64748b;
}

.nav-item.active .nav-icon {
    color: #a5b4fc;
}

.sidebar-user {
    min-height: 76px;

    padding: 13px 15px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top:
        1px solid var(--sidebar-border);

    background:
        rgba(255, 255, 255, 0.015);
}

.sidebar-user-avatar,
.topbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );

    color: #ffffff;

    font-weight: 700;

    text-transform: uppercase;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;

    font-size: 12px;
}

.sidebar-user-copy {
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    overflow: hidden;

    color: #e2e8f0;

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role {
    margin-top: 2px;

    overflow: hidden;

    color: #64748b;

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-menu {
    width: 30px;
    height: 30px;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #64748b;
}


/* =========================================================
   MAIN SHELL
========================================================= */

#mainContent {
    min-height: 100vh;

    margin-left: var(--sidebar-width);

    transition:
        margin-left 0.22s ease;
}

.topbar {
    height: 76px;

    padding:
        0 28px;

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background:
        rgba(255, 255, 255, 0.92);

    backdrop-filter:
        blur(16px);

    border-bottom:
        1px solid var(--border-soft);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 13px;
}

.topbar-right {
    gap: 10px;
}

.topbar-icon-button {
    width: 38px;
    height: 38px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;

    color: #475569;

    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.topbar-icon-button:hover {
    background: var(--surface-soft);

    color: var(--primary);

    border-color: #cbd5e1;
}

.page-breadcrumb {
    margin-bottom: 2px;

    display: flex;
    align-items: center;

    gap: 6px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.page-breadcrumb i {
    font-size: 7px;
}

.topbar-page-title {
    color: var(--text-primary);

    font-size: 16px;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.topbar-search {
    width: 270px;
    height: 38px;

    padding:
        0 11px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--surface-soft);

    color: #94a3b8;
}

.topbar-search input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text-primary);

    font-size: 12px;
}

.search-shortcut {
    min-width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background: #ffffff;

    color: #94a3b8;

    font-size: 10px;
}

.topbar-profile {
    padding:
        4px 7px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 0;

    border-radius: 11px;

    background: transparent;
}

.topbar-profile:hover {
    background: var(--surface-soft);
}

.topbar-avatar {
    width: 35px;
    height: 35px;

    font-size: 11px;
}

.topbar-profile-copy {
    text-align: left;
}

.topbar-profile-name {
    max-width: 150px;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-profile-role {
    margin-top: 1px;

    color: #94a3b8;

    font-size: 10px;
}

.topbar-profile-chevron {
    color: #94a3b8;

    font-size: 9px;
}

.enterprise-dropdown {
    min-width: 205px;

    padding: 7px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.12);
}

.enterprise-dropdown .dropdown-item {
    padding:
        9px 11px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 8px;

    font-size: 12px;
}

.enterprise-dropdown .dropdown-item i {
    width: 16px;
}


/* =========================================================
   CONTENT
========================================================= */

.content-area {
    max-width: 1680px;

    margin: auto;

    padding:
        28px;
}


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

.dashboard-hero {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.dashboard-eyebrow {
    margin-bottom: 5px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.dashboard-title {
    margin: 0;

    color: var(--text-primary);

    font-size: 27px;
    font-weight: 750;

    letter-spacing: -0.04em;
}

.dashboard-subtitle {
    max-width: 700px;

    margin:
        7px 0 0;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.dashboard-refresh-info {
    display: flex;
    align-items: center;

    gap: 6px;

    color: var(--text-secondary);

    font-size: 11px;
}

.live-indicator {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.12);
}

.enterprise-btn-light {
    padding:
        8px 13px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #ffffff;

    color: #334155;

    font-size: 12px;
    font-weight: 600;
}

.dashboard-filter-panel {
    margin-bottom: 24px;

    padding: 18px 20px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.filter-panel-header {
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-panel-title {
    color: var(--text-primary);

    font-size: 13px;
    font-weight: 700;
}

.filter-panel-subtitle {
    margin-top: 2px;

    color: var(--text-secondary);

    font-size: 11px;
}

.filter-clear-button {
    padding:
        5px 8px;

    display: flex;
    align-items: center;

    gap: 6px;

    border: 0;

    background: transparent;

    color: var(--text-secondary);

    font-size: 11px;
}

.filter-clear-button:hover {
    color: var(--primary);
}

.enterprise-label {
    margin-bottom: 6px;

    color: #475569;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.enterprise-control {
    min-height: 39px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    color: #334155;

    background-color: #ffffff;

    font-size: 12px;

    box-shadow: none !important;
}

.enterprise-control:focus {
    border-color: #a5b4fc;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.09)
        !important;
}

.dashboard-kpi-grid {
    margin-bottom: 24px;
}

.enterprise-kpi {
    height: 100%;

    min-height: 166px;

    padding: 19px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.enterprise-kpi:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.07);
}

.enterprise-kpi-head {
    margin-bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon-box {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 15px;
}

.kpi-indigo {
    color: #4f46e5;
    background: #eef2ff;
}

.kpi-green {
    color: #15803d;
    background: #dcfce7;
}

.kpi-cyan {
    color: #0e7490;
    background: #cffafe;
}

.kpi-amber {
    color: #b45309;
    background: #fef3c7;
}

.kpi-context {
    padding:
        4px 7px;

    border:
        1px solid var(--border-soft);

    border-radius: 20px;

    background: #f8fafc;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.enterprise-kpi-label {
    margin-bottom: 3px;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 500;
}

.enterprise-kpi-value {
    color: var(--text-primary);

    font-size: 27px;
    font-weight: 750;

    letter-spacing: -0.04em;
}

.enterprise-kpi-footer {
    margin-top: 9px;

    color: #94a3b8;

    font-size: 10px;
}

.positive-metric {
    color: var(--green);
}

.enterprise-progress {
    width: 100%;
    height: 6px;

    margin-top: 14px;

    overflow: hidden;

    border-radius: 10px;

    background: #eef2f7;
}

.enterprise-progress-bar {
    height: 100%;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #6366f1,
            #818cf8
        );

    transition: width 0.4s ease;
}


/* =========================================================
   ANALYTICS CARDS
========================================================= */

.analytics-card {
    padding: 20px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}

.analytics-card-header {
    margin-bottom: 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.analytics-title {
    color: var(--text-primary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: -0.01em;
}

.analytics-subtitle {
    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 10px;
}

.card-header-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--primary-soft);

    color: var(--primary);
}

.chart-stat {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--text-secondary);

    font-size: 10px;
}

.chart-stat strong {
    color: var(--text-primary);
}

.chart-stat-separator {
    width: 1px;
    height: 15px;

    display: block;

    background: var(--border);
}

.health-summary {
    margin-bottom: 5px;

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    border:
        1px solid var(--border-soft);

    border-radius: 10px;
}

.health-stat {
    padding: 11px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.health-stat:not(:last-child) {
    border-right:
        1px solid var(--border-soft);
}

.health-stat > div {
    display: flex;
    flex-direction: column;
}

.health-stat span:not(.health-dot) {
    color: var(--text-primary);

    font-size: 15px;
    font-weight: 700;
}

.health-stat small {
    color: var(--text-secondary);

    font-size: 9px;
}

.health-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.health-dot.green {
    background: #22c55e;
}

.health-dot.yellow {
    background: #f59e0b;
}

.health-dot.red {
    background: #ef4444;
}

.chart-container {
    position: relative;

    height: 320px;
}


/* =========================================================
   TABLE
========================================================= */

.enterprise-table {
    margin-bottom: 0 !important;
}

.enterprise-table thead th {
    padding:
        11px 12px !important;

    border-bottom:
        1px solid var(--border) !important;

    background: #f8fafc;

    color: #64748b;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    white-space: nowrap;
}

.enterprise-table tbody td {
    padding:
        13px 12px !important;

    border-bottom:
        1px solid var(--border-soft);

    color: #334155;

    font-size: 11px;

    vertical-align: middle;
}

.enterprise-table tbody tr:hover td {
    background: #fafbff;
}

.table-view-all {
    padding: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    border: 0;

    background: transparent;

    color: var(--primary);

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   STATUS
========================================================= */

.status-badge,
.health-badge {
    display: inline-flex;
    align-items: center;

    padding:
        4px 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;
}

.health-green {
    color: #166534;
    background: var(--green-soft);
}

.health-yellow {
    color: #92400e;
    background: var(--yellow-soft);
}

.health-red {
    color: #991b1b;
    background: var(--red-soft);
}


/* =========================================================
   OLD KPI FALLBACK
========================================================= */

.kpi-card {
    padding: 20px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}

.kpi-label {
    color: var(--text-secondary);

    font-size: 11px;
}

.kpi-value {
    color: var(--text-primary);

    font-size: 25px;
    font-weight: 750;
}


/* =========================================================
   MODALS
========================================================= */

.modal-content {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.18);
}

.modal-header {
    padding:
        17px 20px;

    border-bottom:
        1px solid var(--border-soft);
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding:
        13px 20px;

    background: #fafbfc;

    border-top:
        1px solid var(--border-soft);
}


/* =========================================================
   TIMELINE / NOTES
========================================================= */

.timeline-item {
    position: relative;

    padding:
        0 0
        22px 34px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: 10px;
    top: 22px;
    bottom: 0;

    width: 2px;

    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;

    left: 3px;
    top: 3px;

    width: 16px;
    height: 16px;

    border:
        4px solid #eef2ff;

    border-radius: 50%;

    background: var(--primary);
}

.timeline-title {
    font-weight: 650;
}

.timeline-meta {
    color: var(--text-secondary);

    font-size: 10px;
}

.campaign-note,
.adjustment-item {
    margin-bottom: 10px;

    padding: 13px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;
}


/* =========================================================
   DATATABLES
========================================================= */

div.dt-container .dt-search input,
div.dt-container .dt-length select {
    min-height: 34px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: #ffffff;

    font-size: 11px;
}

div.dt-container .dt-search label,
div.dt-container .dt-length label,
div.dt-container .dt-info {
    color: var(--text-secondary);

    font-size: 10px;
}

.page-link {
    color: #475569;

    font-size: 10px;
}

.active > .page-link {
    background: var(--primary);

    border-color: var(--primary);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .dashboard-title {
        font-size: 24px;
    }

    .topbar-search {
        width: 220px;
    }
}


@media (max-width: 991px) {

    #sidebar {
        transform:
            translateX(-100%);
    }

    #sidebar.show {
        transform:
            translateX(0);
    }

    #mainContent {
        margin-left: 0;
    }

    .content-area {
        padding: 20px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-actions {
        width: 100%;

        justify-content: space-between;
    }
}


@media (max-width: 575px) {

    .topbar {
        padding:
            0 14px;
    }

    .content-area {
        padding:
            16px 12px;
    }

    .dashboard-title {
        font-size: 21px;
    }

    .dashboard-refresh-info {
        display: none;
    }

    .health-summary {
        grid-template-columns: 1fr;
    }

    .health-stat:not(:last-child) {
        border-right: 0;

        border-bottom:
            1px solid var(--border-soft);
    }
}

/* =========================================================
   APPLICATION Z-INDEX LAYERS
========================================================= */

/*
 * Normal application navigation.
 */
#sidebar {
    z-index: 1030;
}

.topbar {
    z-index: 1020;
}

/*
 * Bootstrap normally uses these values already,
 * but declaring them here makes our stacking model explicit.
 */
.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1055;
}
/* =========================================================
   CAMPAIGN MODAL - SCROLLABLE ENTERPRISE LAYOUT
========================================================= */

#campaignModal .modal-dialog {
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#campaignModal .modal-content {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
}

#campaignModal .modal-header {
    flex: 0 0 auto;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    z-index: 2;
}

#campaignModal form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#campaignModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 1.5rem;
    overscroll-behavior: contain;
}

#campaignModal .modal-footer {
    flex: 0 0 auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    z-index: 2;
}

/* Better scrollbar */
#campaignModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#campaignModal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#campaignModal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#campaignModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   SMALLER LAPTOP SCREENS
========================================================= */

@media (max-height: 800px) {

    #campaignModal .modal-dialog {
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    #campaignModal .modal-header {
        padding: 1rem 1.25rem;
    }

    #campaignModal .modal-body {
        padding: 1.25rem;
    }

    #campaignModal .modal-footer {
        padding: 0.75rem 1.25rem;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    #campaignModal .modal-dialog {
        width: calc(100% - 1rem);
        max-width: none;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
        margin: 0.5rem;
    }

    #campaignModal .modal-content {
        border-radius: 12px;
    }

    #campaignModal .modal-body {
        padding: 1rem;
    }

    #campaignModal .modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* =========================================================
   CAMPAIGN DETAILS
========================================================= */

#campaignDetailsModal .modal-dialog {
    max-width: 1180px;
}

.campaign-detail-summary {
    padding: 16px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);
}

.campaign-detail-stat {
    height: 100%;

    padding: 14px 16px;

    border:
        1px solid var(--border-soft);

    border-radius: 11px;

    background: #ffffff;
}

.campaign-detail-stat-label {
    margin-bottom: 4px;

    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.campaign-detail-stat-value {
    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 750;

    letter-spacing: -0.03em;
}


/* Tabs */

.enterprise-tabs {
    border-bottom:
        1px solid var(--border);
}

.enterprise-tabs .nav-link {
    padding:
        10px 14px;

    border: 0;

    border-bottom:
        2px solid transparent;

    color:
        var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}

.enterprise-tabs .nav-link:hover {
    color:
        var(--primary);
}

.enterprise-tabs .nav-link.active {
    color:
        var(--primary);

    background:
        transparent;

    border-bottom-color:
        var(--primary);
}


/* Monthly performance */

.monthly-performance-header {
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.monthly-performance-summary {
    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        var(--surface-soft);

    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.monthly-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.monthly-progress-cell {
    min-width: 125px;

    font-size: 10px;
}

.monthly-progress {
    height: 5px;

    margin-top: 0;
}

.monthly-performance-total th {
    padding:
        13px 12px !important;

    background:
        #f8fafc;

    border-top:
        2px solid var(--border) !important;

    color:
        var(--text-primary);

    font-size: 11px;
}


/* Monthly status */

.monthly-status {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        4px 7px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.monthly-status-completed {
    color: #166534;
    background: #dcfce7;
}

.monthly-status-progress {
    color: #4338ca;
    background: #eef2ff;
}

.monthly-status-missed {
    color: #991b1b;
    background: #fee2e2;
}

.monthly-status-upcoming {
    color: #475569;
    background: #f1f5f9;
}


/* Empty monthly plan */

.monthly-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 19px;
}

/* =========================================================
   CAMPAIGN PORTFOLIO
========================================================= */

.campaign-page-hero {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.campaign-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.enterprise-primary-button {
    padding:
        9px 15px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 600;
}


/* Mini statistics */

.campaign-mini-stat {
    height: 100%;

    min-height: 92px;

    padding: 16px 17px;

    display: flex;
    align-items: center;

    gap: 14px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);
}

.campaign-mini-stat-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 15px;
}

.campaign-stat-indigo {
    color: #4f46e5;
    background: #eef2ff;
}

.campaign-stat-green {
    color: #15803d;
    background: #dcfce7;
}

.campaign-stat-amber {
    color: #b45309;
    background: #fef3c7;
}

.campaign-stat-cyan {
    color: #0e7490;
    background: #cffafe;
}

.campaign-mini-stat-label {
    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.campaign-mini-stat-value {
    margin-top: 2px;

    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 750;

    letter-spacing: -0.03em;
}


/* Filter bar */

.campaign-filter-bar {
    margin-bottom: 18px;

    padding: 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-sm);
}

.campaign-search-box {
    width: 280px;
    height: 38px;

    padding:
        0 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background:
        var(--surface-soft);

    color:
        var(--text-muted);
}

.campaign-search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--text-primary);

    font-size: 11px;
}

.campaign-local-filter {
    width: 170px;

    min-height: 38px;

    border-radius: 9px;

    border-color:
        var(--border);

    font-size: 11px;
}

.campaign-reset-filter {
    padding:
        8px 10px;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-left: auto;

    border: 0;

    background: transparent;

    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.campaign-reset-filter:hover {
    color:
        var(--primary);
}


/* Table */

.campaign-table-card {
    padding-bottom: 14px;
}

.campaign-table-counter {
    padding:
        5px 9px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        var(--surface-soft);

    color:
        var(--text-secondary);

    font-size: 10px;
}

.campaign-table-identity {
    min-width: 200px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.campaign-table-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 12px;
}

.campaign-table-name {
    max-width: 210px;

    overflow: hidden;

    color:
        var(--text-primary);

    font-size: 11px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-table-code {
    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 9px;

    letter-spacing: 0.03em;
}

.campaign-table-primary {
    color:
        #334155;

    font-size: 11px;
    font-weight: 550;
}

.campaign-table-secondary {
    margin-top: 3px;

    color:
        var(--text-muted);

    font-size: 9px;
}


/* Numbers */

.campaign-number-cell {
    display: flex;
    flex-direction: column;
}

.campaign-number-cell strong {
    color:
        var(--text-primary);

    font-size: 11px;
}

.campaign-number-cell small {
    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 8px;
}


/* Status */

.campaign-status-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        5px 8px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.campaign-status-running {
    color: #166534;
    background: #dcfce7;
}

.campaign-status-completed {
    color: #075985;
    background: #e0f2fe;
}

.campaign-status-hold {
    color: #92400e;
    background: #fef3c7;
}

.campaign-status-scheduled {
    color: #4338ca;
    background: #eef2ff;
}

.campaign-status-neutral {
    color: #475569;
    background: #f1f5f9;
}


/* Progress */

.campaign-progress-cell {
    min-width: 125px;
}

.campaign-progress-value {
    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 650;
}

.campaign-progress-track {
    height: 5px;

    overflow: hidden;

    border-radius: 20px;

    background:
        #edf2f7;
}

.campaign-progress-bar {
    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #4f46e5,
            #818cf8
        );
}


/* Dates */

.campaign-date-cell {
    min-width: 145px;

    display: flex;
    align-items: center;

    gap: 5px;

    color:
        var(--text-secondary);

    font-size: 9px;
}

.campaign-date-cell span {
    color:
        var(--text-muted);
}


/* Actions */

.campaign-action-button {
    width: 31px;
    height: 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid transparent;

    border-radius: 8px;

    background: transparent;

    color:
        var(--text-secondary);
}

.campaign-action-button:hover {
    border-color:
        var(--border);

    background:
        var(--surface-soft);

    color:
        var(--text-primary);
}


/* Responsive */

@media (max-width: 991px) {

    .campaign-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .campaign-filter-bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .campaign-search-box {
        width: 100%;
    }

    .campaign-local-filter {
        flex: 1;

        min-width: 150px;
    }

    .campaign-reset-filter {
        margin-left: 0;
    }
}
/* =========================================================
   DELIVERY WORKSPACE
========================================================= */

.delivery-page-hero {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.delivery-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* Filters */

.delivery-filter-panel {
    margin-bottom: 20px;

    padding: 18px 20px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-sm);
}

.delivery-filter-header {
    margin-bottom: 15px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.delivery-search-box {
    min-height: 39px;

    padding:
        0 11px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #ffffff;

    color:
        var(--text-muted);
}

.delivery-search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--text-primary);

    font-size: 11px;
}


/* Campaign selection state */

.delivery-selection-state {
    margin-bottom: 20px;

    padding: 17px 19px;

    display: flex;
    align-items: center;

    gap: 14px;

    border:
        1px dashed #cbd5e1;

    border-radius:
        var(--radius-md);

    background:
        #f8fafc;
}

.delivery-selection-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}


/* Selected campaign */

.delivery-selected-campaign {
    padding: 16px 18px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    border-radius:
        var(--radius-md);

    color: #ffffff;
}

.delivery-campaign-eyebrow {
    margin-bottom: 4px;

    color: #a5b4fc;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.delivery-selected-name {
    font-size: 18px;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.delivery-selected-meta {
    margin-top: 6px;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #94a3b8;

    font-size: 10px;
}

.delivery-meta-dot {
    width: 3px;
    height: 3px;

    display: inline-block;

    border-radius: 50%;

    background: #64748b;
}


/* KPI */

.delivery-kpi-card {
    min-height: 90px;

    padding: 16px;

    display: flex;
    align-items: center;

    gap: 13px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background: #ffffff;

    box-shadow:
        var(--shadow-sm);
}

.delivery-kpi-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
}

.delivery-kpi-indigo {
    color: #4f46e5;
    background: #eef2ff;
}

.delivery-kpi-green {
    color: #15803d;
    background: #dcfce7;
}

.delivery-kpi-amber {
    color: #b45309;
    background: #fef3c7;
}

.delivery-kpi-cyan {
    color: #0e7490;
    background: #cffafe;
}

.delivery-kpi-label {
    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.delivery-kpi-value {
    margin-top: 2px;

    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 750;

    letter-spacing: -0.03em;
}

.delivery-kpi-progress {
    width: 100%;
    height: 5px;

    margin-top: 6px;

    overflow: hidden;

    border-radius: 20px;

    background: #edf2f7;
}

.delivery-kpi-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #4f46e5,
            #818cf8
        );

    transition:
        width 0.3s ease;
}


/* Ledger */

.delivery-ledger-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.delivery-record-counter {
    padding:
        5px 8px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        var(--surface-soft);

    color:
        var(--text-secondary);

    font-size: 9px;
}

.delivery-ledger-campaign {
    min-width: 135px;

    display: flex;
    flex-direction: column;
}

.delivery-ledger-campaign strong {
    color:
        var(--text-primary);

    font-size: 10px;
}

.delivery-ledger-campaign small {
    margin-top: 2px;

    max-width: 170px;

    overflow: hidden;

    color:
        var(--text-muted);

    font-size: 8px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.delivery-ledger-user {
    display: flex;
    align-items: center;

    gap: 7px;
}

.delivery-user-avatar {
    width: 27px;
    height: 27px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 8px;
    font-weight: 700;
}


/* Transaction type */

.delivery-type-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        4px 7px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.delivery-type-delivery {
    color: #166534;
    background: #dcfce7;
}

.delivery-type-adjustment {
    color: #92400e;
    background: #fef3c7;
}

.delivery-type-import {
    color: #075985;
    background: #e0f2fe;
}

.delivery-type-system {
    color: #475569;
    background: #f1f5f9;
}


/* Quantities */

.delivery-quantity {
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.delivery-quantity-positive {
    color: #15803d;
}

.delivery-quantity-negative {
    color: #dc2626;
}


/* Adjustment queue */

.delivery-queue-count {
    min-width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        #fef3c7;

    color:
        #92400e;

    font-size: 9px;
    font-weight: 700;
}

.delivery-adjustment-card {
    margin-bottom: 10px;

    padding: 13px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;
}

.delivery-adjustment-code {
    color:
        var(--text-primary);

    font-size: 11px;
    font-weight: 700;
}

.delivery-adjustment-meta {
    margin-top: 3px;

    color:
        var(--text-muted);

    font-size: 9px;
}

.delivery-adjustment-meta strong {
    color:
        var(--text-secondary);
}

.delivery-adjustment-quantity {
    padding:
        4px 7px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.delivery-adjustment-quantity.positive {
    color: #166534;
    background: #dcfce7;
}

.delivery-adjustment-quantity.negative {
    color: #991b1b;
    background: #fee2e2;
}

.delivery-adjustment-reason {
    margin:
        12px 0;

    padding: 10px;

    border-radius: 8px;

    background:
        var(--surface-soft);

    color:
        var(--text-secondary);

    font-size: 10px;

    line-height: 1.5;
}

.delivery-adjustment-actions {
    display: flex;

    gap: 7px;
}


/* Empty states */

.delivery-empty-icon {
    width: 42px;
    height: 42px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--green-soft);

    color:
        var(--green);
}


/* Delivery modal */

.delivery-modal-section-title {
    color:
        var(--text-primary);

    font-size: 12px;
    font-weight: 700;
}

.delivery-modal-section-subtitle {
    margin-top: 2px;

    color:
        var(--text-secondary);

    font-size: 10px;
}


/* Responsive */

@media (max-width: 991px) {

    .delivery-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-page-actions {
        width: 100%;
    }

    .delivery-selected-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;
    }

    .delivery-meta-dot {
        display: none;
    }
}


@media (max-width: 575px) {

    .delivery-page-actions {
        flex-wrap: wrap;
    }

    .delivery-page-actions .btn {
        flex: 1;
    }

    .delivery-ledger-actions {
        align-items: flex-end;
        flex-direction: column;
    }
}
/* =========================================================
   ENTERPRISE REPORTS
========================================================= */

.reports-page-hero {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.reports-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* Filters */

.reports-filter-panel {
    margin-bottom: 14px;

    padding: 18px 20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);
}

.reports-filter-header {
    margin-bottom: 15px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* Context */

.reports-context-bar {
    margin-bottom: 18px;

    padding:
        10px 14px;

    display: flex;
    align-items: center;

    gap: 18px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #f8fafc;

    color:
        var(--text-secondary);

    font-size: 10px;
}

.reports-context-bar strong {
    margin-left: 5px;

    color:
        var(--text-primary);

    font-weight: 650;
}

.reports-context-label {
    color:
        var(--text-muted);
}

.reports-context-divider {
    width: 1px;
    height: 18px;

    background:
        var(--border);
}

.reports-loading {
    margin-left: auto;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    color:
        var(--primary);

    font-weight: 600;
}


/* KPI */

.report-kpi-card {
    min-height: 115px;

    padding: 15px 16px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background: #ffffff;

    box-shadow:
        var(--shadow-sm);
}

.report-kpi-head {
    margin-bottom: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-kpi-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 12px;
}

.report-kpi-indigo {
    color: #4f46e5;
    background: #eef2ff;
}

.report-kpi-green {
    color: #15803d;
    background: #dcfce7;
}

.report-kpi-amber {
    color: #b45309;
    background: #fef3c7;
}

.report-kpi-cyan {
    color: #0e7490;
    background: #cffafe;
}

.report-kpi-violet {
    color: #7c3aed;
    background: #f3e8ff;
}

.report-kpi-context {
    color:
        var(--text-muted);

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.report-kpi-value {
    color:
        var(--text-primary);

    font-size: 22px;
    font-weight: 750;

    letter-spacing: -0.035em;
}

.report-kpi-label {
    margin-top: 3px;

    color:
        var(--text-secondary);

    font-size: 9px;
}

.report-kpi-progress {
    height: 5px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 20px;

    background: #edf2f7;
}

.report-kpi-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #4f46e5,
            #818cf8
        );

    transition:
        width 0.3s ease;
}


/* Main report card */

.reports-main-card {
    padding-top: 0;
}

.reports-table-toolbar {
    min-height: 58px;

    padding:
        0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid var(--border);
}


/* Tabs */

.reports-tabs {
    margin-bottom: -1px;

    border-bottom: 0;
}

.reports-tabs .nav-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding:
        18px 11px 15px;
}

.reports-tabs .nav-link span {
    min-width: 19px;
    height: 19px;

    padding:
        0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        #f1f5f9;

    color:
        var(--text-muted);

    font-size: 8px;
}

.reports-tabs .nav-link.active span {
    color:
        var(--primary);

    background:
        var(--primary-soft);
}


/* Search */

.reports-search {
    width: 240px;
    height: 36px;

    padding:
        0 11px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        var(--surface-soft);

    color:
        var(--text-muted);
}

.reports-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--text-primary);

    font-size: 10px;
}


/* Report Table */

.report-enterprise-table {
    margin-bottom: 0 !important;
}

.report-campaign-identity {
    min-width: 170px;
}

.report-campaign-code {
    color:
        var(--primary);

    font-size: 9px;
    font-weight: 700;
}

.report-campaign-name {
    margin-top: 2px;

    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}

.report-group-name {
    min-width: 150px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.report-group-icon {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 8px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 10px;
}

.report-group-name strong {
    color:
        var(--text-primary);

    font-size: 10px;
}

.report-number {
    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 650;
}


/* Status */

.report-status {
    padding:
        4px 7px;

    display: inline-flex;
    align-items: center;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.report-status-running {
    color: #166534;
    background: #dcfce7;
}

.report-status-completed {
    color: #075985;
    background: #e0f2fe;
}

.report-status-scheduled {
    color: #4338ca;
    background: #eef2ff;
}

.report-status-hold {
    color: #92400e;
    background: #fef3c7;
}

.report-status-neutral {
    color: #475569;
    background: #f1f5f9;
}


/* Progress */

.report-progress-cell {
    min-width: 115px;

    font-size: 9px;
}

.report-progress-track {
    height: 5px;

    overflow: hidden;

    border-radius: 20px;

    background:
        #edf2f7;
}

.report-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #4f46e5,
            #818cf8
        );
}


/* Variance */

.report-variance {
    padding:
        4px 7px;

    display: inline-block;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 700;
}

.report-variance-positive {
    color: #166534;
    background: #dcfce7;
}

.report-variance-negative {
    color: #991b1b;
    background: #fee2e2;
}


/* Daily delivery */

.report-daily-positive {
    color: #15803d;

    font-size: 10px;
    font-weight: 650;
}

.report-daily-negative {
    color: #dc2626;

    font-size: 10px;
    font-weight: 650;
}

.report-daily-net {
    color:
        var(--primary);

    font-size: 10px;
}


/* Responsive */

@media (max-width: 991px) {

    .reports-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .reports-page-actions {
        width: 100%;
    }

    .reports-table-toolbar {
        padding:
            12px;

        align-items: stretch;
        flex-direction: column;
    }

    .reports-tabs {
        overflow-x: auto;

        flex-wrap: nowrap;
    }

    .reports-tabs .nav-link {
        white-space: nowrap;
    }

    .reports-search {
        width: 100%;
    }

    .reports-context-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}


@media (max-width: 575px) {

    .reports-page-actions {
        flex-wrap: wrap;
    }

    .reports-page-actions > * {
        flex: 1;
    }

    .reports-context-divider {
        display: none;
    }
}
/* MASTER DATA — USERS / TEAMS / CLIENTS */
.master-page-hero{margin-bottom:24px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.master-page-actions{display:flex;align-items:center;gap:10px}
.master-stat-card{min-height:92px;padding:16px 17px;display:flex;align-items:center;gap:14px;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-sm)}
.master-stat-icon{width:42px;height:42px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;font-size:14px}
.master-stat-indigo{color:#4f46e5;background:#eef2ff}.master-stat-green{color:#15803d;background:#dcfce7}.master-stat-amber{color:#b45309;background:#fef3c7}.master-stat-cyan{color:#0e7490;background:#cffafe}.master-stat-violet{color:#7c3aed;background:#f3e8ff}
.master-stat-label{color:var(--text-secondary);font-size:10px;font-weight:600}.master-stat-value{margin-top:2px;color:var(--text-primary);font-size:21px;font-weight:750;letter-spacing:-.03em}
.master-filter-bar{margin-bottom:18px;padding:13px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;box-shadow:var(--shadow-sm)}
.master-search{width:290px;height:38px;padding:0 12px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft);color:var(--text-muted)}
.master-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text-primary);font-size:11px}
.master-filter-control{width:170px;min-height:38px;border-radius:9px;border-color:var(--border);font-size:11px}.master-counter{padding:5px 9px;border:1px solid var(--border);border-radius:20px;background:var(--surface-soft);color:var(--text-secondary);font-size:10px}
.master-identity{min-width:180px;display:flex;align-items:center;gap:10px}.master-avatar{width:36px;height:36px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:750}.master-avatar-team{background:#ecfeff;color:#0e7490}.master-avatar-client{background:#f5f3ff;color:#7c3aed}
.master-name{max-width:220px;overflow:hidden;color:var(--text-primary);font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.master-code{margin-top:2px;color:var(--text-muted);font-size:9px;letter-spacing:.03em}.master-primary{color:var(--text-primary);font-size:10px;font-weight:600}.master-secondary{margin-top:2px;color:var(--text-muted);font-size:8px}
.master-team-chip,.master-code-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:20px;background:#f1f5f9;color:#475569;font-size:9px;font-weight:600}.master-contact{min-width:170px;color:var(--text-secondary);font-size:9px;line-height:1.7}.master-contact i{width:13px;color:var(--text-muted)}.master-description{max-width:420px;color:var(--text-secondary);font-size:10px;line-height:1.55}
.master-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:700;white-space:nowrap}.master-status-active{color:#166534;background:#dcfce7}.master-status-inactive{color:#475569;background:#f1f5f9}
.master-action-button{width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-secondary)}.master-action-button:hover{border-color:var(--border);background:var(--surface-soft);color:var(--text-primary)}
#userModal .modal-content,#userPasswordResetModal .modal-content,#teamModal .modal-content,#clientModal .modal-content{border:0;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.18)}
@media(max-width:991px){.master-page-hero{align-items:flex-start;flex-direction:column}.master-page-actions{width:100%}.master-filter-bar{align-items:stretch;flex-wrap:wrap}.master-search{width:100%}.master-filter-control{flex:1;min-width:150px}}
@media(max-width:575px){.master-page-actions{flex-wrap:wrap}.master-page-actions .btn{flex:1}}
/* =========================================================
   ACTIVITY LOG
========================================================= */

.activity-page-hero {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.activity-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* Summary */

.activity-stat-card {
    min-height: 92px;

    padding: 16px 17px;

    display: flex;
    align-items: center;

    gap: 14px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background: #ffffff;

    box-shadow:
        var(--shadow-sm);
}

.activity-stat-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 14px;
}

.activity-stat-indigo {
    color: #4f46e5;
    background: #eef2ff;
}

.activity-stat-green {
    color: #15803d;
    background: #dcfce7;
}

.activity-stat-cyan {
    color: #0e7490;
    background: #cffafe;
}

.activity-stat-red {
    color: #b91c1c;
    background: #fee2e2;
}

.activity-stat-label {
    color:
        var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
}

.activity-stat-value {
    margin-top: 2px;

    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 750;

    letter-spacing: -0.03em;
}


/* Filters */

.activity-filter-panel {
    margin-bottom: 18px;

    padding: 18px 20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);
}

.activity-filter-header {
    margin-bottom: 15px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.activity-loading {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color:
        var(--primary);

    font-size: 10px;
    font-weight: 600;
}

.activity-search {
    min-height: 39px;

    padding:
        0 11px;

    display: flex;
    align-items: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    background: #ffffff;

    color:
        var(--text-muted);
}

.activity-search input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--text-primary);

    font-size: 11px;
}

.activity-filter-footer {
    margin-top: 14px;
    padding-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid var(--border-soft);

    color:
        var(--text-secondary);

    font-size: 10px;
}

.activity-period-caption {
    margin-right: 5px;

    color:
        var(--text-muted);
}


/* Table */

.activity-log-card {
    padding-bottom: 14px;
}

.activity-user-cell {
    min-width: 150px;

    display: flex;
    align-items: center;

    gap: 9px;
}

.activity-user-avatar {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 8px;
    font-weight: 750;
}

.activity-user-name {
    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}

.activity-user-subtitle {
    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 8px;
}

.activity-entity-cell {
    min-width: 130px;

    display: flex;
    align-items: center;

    gap: 7px;

    color:
        var(--text-secondary);

    font-size: 9px;
}

.activity-entity-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        #f1f5f9;

    color:
        #475569;

    font-size: 9px;
}

.activity-description {
    max-width: 340px;

    overflow: hidden;

    color:
        var(--text-secondary);

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.activity-request-meta {
    min-width: 115px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 4px;
}

.activity-method {
    padding:
        3px 6px;

    border-radius: 5px;

    background:
        #f1f5f9;

    color:
        #475569;

    font-size: 8px;
    font-weight: 700;
}

.activity-method-get {
    color: #075985;
    background: #e0f2fe;
}

.activity-method-post {
    color: #166534;
    background: #dcfce7;
}

.activity-method-put,
.activity-method-patch {
    color: #92400e;
    background: #fef3c7;
}

.activity-method-delete {
    color: #991b1b;
    background: #fee2e2;
}

.activity-ip {
    color:
        var(--text-muted);

    font-size: 8px;
}


/* Action */

.activity-action-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        5px 7px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.activity-action-create {
    color: #166534;
    background: #dcfce7;
}

.activity-action-update {
    color: #4338ca;
    background: #eef2ff;
}

.activity-action-danger {
    color: #991b1b;
    background: #fee2e2;
}

.activity-action-success {
    color: #075985;
    background: #e0f2fe;
}

.activity-action-export {
    color: #7c3aed;
    background: #f3e8ff;
}

.activity-action-neutral {
    color: #475569;
    background: #f1f5f9;
}


/* Details modal */

#activityLogDetailModal .modal-content {
    border: 0;

    border-radius: 14px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.18);
}

.activity-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;
}

.activity-detail-item,
.activity-detail-section {
    padding: 13px 14px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        #ffffff;
}

.activity-detail-section {
    margin-top: 12px;
}

.activity-detail-label {
    margin-bottom: 5px;

    color:
        var(--text-muted);

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.activity-detail-value {
    color:
        var(--text-primary);

    font-size: 10px;
    font-weight: 600;
}

.activity-detail-description {
    color:
        var(--text-secondary);

    font-size: 10px;

    line-height: 1.6;
}

.activity-detail-code {
    max-height: 220px;

    margin: 0;

    padding: 10px;

    overflow: auto;

    border-radius: 8px;

    background:
        #0f172a;

    color:
        #e2e8f0;

    font-size: 9px;

    white-space: pre-wrap;
}


/* Responsive */

@media (max-width: 991px) {

    .activity-page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-filter-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }
}


@media (max-width: 575px) {

    .activity-detail-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ENTERPRISE LOGIN
========================================================= */

.login-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(440px, 0.92fr);

    background: #ffffff;
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.login-brand-panel {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0f172a 0%,
            #172554 45%,
            #1e1b4b 100%
        );

    color: #ffffff;
}

.login-brand-panel::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.035) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.7),
            transparent
        );

    pointer-events: none;
}

.login-brand-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    pointer-events: none;
}

.login-brand-glow-one {
    width: 430px;
    height: 430px;

    top: -180px;
    right: -120px;

    background:
        radial-gradient(
            circle,
            rgba(99,102,241,0.36),
            rgba(99,102,241,0)
        );
}

.login-brand-glow-two {
    width: 500px;
    height: 500px;

    left: -230px;
    bottom: -230px;

    background:
        radial-gradient(
            circle,
            rgba(14,165,233,0.2),
            rgba(14,165,233,0)
        );
}

.login-brand-content {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    padding:
        48px clamp(48px, 7vw, 96px);

    display: flex;
    flex-direction: column;
}


/* Brand */

.login-product-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.login-product-logo {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border:
        1px solid rgba(255,255,255,0.14);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(79,70,229,0.32);

    font-size: 16px;
}

.login-product-name {
    color: #ffffff;

    font-size: 16px;
    font-weight: 750;

    letter-spacing: -0.025em;
}

.login-product-edition {
    margin-top: 1px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.03em;
}


/* Main Brand Message */

.login-brand-message {
    max-width: 650px;

    margin:
        auto 0 42px;
}

.login-brand-eyebrow {
    margin-bottom: 20px;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #a5b4fc;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.login-brand-eyebrow span {
    width: 24px;
    height: 1px;

    background: #818cf8;
}

.login-brand-message h1 {
    max-width: 640px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            38px,
            4.2vw,
            62px
        );

    font-weight: 740;

    line-height: 1.03;

    letter-spacing: -0.055em;
}

.login-brand-message h1 span {
    display: block;

    color: #a5b4fc;
}

.login-brand-message p {
    max-width: 560px;

    margin:
        24px 0 0;

    color: #cbd5e1;

    font-size: 13px;

    line-height: 1.75;
}


/* Features */

.login-feature-grid {
    max-width: 680px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-bottom: auto;
}

.login-feature-item {
    padding: 15px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    border:
        1px solid rgba(255,255,255,0.09);

    border-radius: 12px;

    background:
        rgba(255,255,255,0.045);

    backdrop-filter:
        blur(12px);
}

.login-feature-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(129,140,248,0.14);

    color: #a5b4fc;

    font-size: 11px;
}

.login-feature-item strong {
    display: block;

    color: #f8fafc;

    font-size: 10px;
    font-weight: 650;
}

.login-feature-item span {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 9px;

    line-height: 1.55;
}


/* Brand Footer */

.login-brand-footer {
    margin-top: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #64748b;

    font-size: 8px;
}

.login-security-message {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #94a3b8;
}


/* =========================================================
   RIGHT LOGIN PANEL
========================================================= */

.login-form-panel {
    min-height: 100vh;

    padding:
        44px clamp(34px, 6vw, 86px);

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fafc
        );
}

.login-form-wrapper {
    width: 100%;
    max-width: 430px;
}


/* Mobile brand */

.login-mobile-brand {
    display: none;

    margin-bottom: 40px;

    align-items: center;

    gap: 11px;
}

.login-mobile-brand .login-product-name {
    color:
        var(--text-primary);
}

.login-mobile-brand .login-product-edition {
    color:
        var(--text-muted);
}


/* Heading */

.login-form-heading {
    margin-bottom: 32px;
}

.login-welcome-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 13px;
}

.login-form-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: 27px;
    font-weight: 750;

    letter-spacing: -0.04em;
}

.login-form-heading p {
    margin:
        8px 0 0;

    color: #64748b;

    font-size: 11px;

    line-height: 1.6;
}


/* Fields */

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 10px;
    font-weight: 650;
}

.login-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.login-input-icon {
    position: absolute;

    top: 50%;
    left: 14px;

    z-index: 2;

    transform:
        translateY(-50%);

    color: #94a3b8;

    font-size: 12px;

    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 46px;

    padding:
        0 44px;

    border:
        1px solid #dbe3ee;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #0f172a;

    font-size: 11px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.login-input::placeholder {
    color: #a8b2c1;
}

.login-input:hover {
    border-color: #cbd5e1;
}

.login-input:focus {
    border-color: #6366f1;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(99,102,241,0.10);
}

.login-password-input {
    padding-right: 46px;
}

.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 32px;
    height: 32px;

    transform:
        translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: #94a3b8;

    font-size: 11px;
}

.login-password-toggle:hover {
    background: #f8fafc;

    color: #475569;
}


/* Session Note */

.login-session-note {
    margin:
        3px 0 20px;

    padding:
        10px 12px;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    border:
        1px solid #e2e8f0;

    border-radius: 9px;

    background: #f8fafc;

    color: #64748b;

    font-size: 9px;

    line-height: 1.5;
}

.login-session-note i {
    margin-top: 2px;

    color: #6366f1;
}


/* Sign In Button */

.login-submit-button {
    width: 100%;
    height: 47px;

    padding:
        0 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(79,70,229,0.23);

    font-size: 11px;
    font-weight: 650;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.login-submit-button:hover:not(:disabled) {
    transform:
        translateY(-1px);

    box-shadow:
        0 14px 28px
        rgba(79,70,229,0.28);
}

.login-submit-button:active:not(:disabled) {
    transform:
        translateY(0);
}

.login-submit-button:disabled {
    cursor: not-allowed;

    opacity: 0.72;
}


/* Footer */

.login-form-footer {
    margin-top: 30px;

    padding-top: 22px;

    border-top:
        1px solid #e2e8f0;

    text-align: center;

    color: #94a3b8;

    font-size: 8px;
}

.login-form-footer > div {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    color: #64748b;

    font-weight: 600;
}

.login-form-footer p {
    margin:
        6px 0 0;
}


/* =========================================================
   RESPONSIVE LOGIN
========================================================= */

@media (max-width: 1100px) {

    .login-shell {
        grid-template-columns:
            minmax(0, 0.95fr)
            minmax(420px, 1.05fr);
    }

    .login-brand-content {
        padding:
            42px 44px;
    }

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

    .login-feature-item:nth-child(n+4) {
        display: none;
    }
}


@media (max-width: 850px) {

    .login-shell {
        display: block;

        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;

        padding:
            36px 22px;
    }

    .login-mobile-brand {
        display: flex;
    }

    .login-form-wrapper {
        max-width: 440px;
    }
}


@media (max-width: 480px) {

    .login-form-panel {
        align-items: flex-start;

        padding:
            28px 18px;
    }

    .login-mobile-brand {
        margin-bottom: 46px;
    }

    .login-form-heading h2 {
        font-size: 24px;
    }
}