:root {
    --ent-bg: #f3f4f6;
    --ent-card: #ffffff;
    --ent-border: #e5e7eb;
    --ent-text: #111827;
    --ent-text-secondary: #6b7280;
    --ent-text-muted: #9ca3af;
    --ent-dark: #1f2937;
    --ent-positive-bg: #dcfce7;
    --ent-positive-text: #15803d;
    --ent-negative-bg: #fee2e2;
    --ent-negative-text: #b91c1c;
    --ent-chart-line: #374151;
    --ent-navbar-height: 68px;
    --ent-modules-bar-height: 42px;
    --ent-sidebar-width: 168px;
    --ent-radius: 12px;
    --ent-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.enterprise-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ent-bg);
    color: var(--ent-text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Top navbar ---------- */
.enterprise-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ent-card);
    border-bottom: 1px solid var(--ent-border);
    box-shadow: var(--ent-shadow);
}

.enterprise-navbar-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--ent-navbar-height);
}

.enterprise-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ent-text);
    flex-shrink: 0;
    min-width: 0;
}

.enterprise-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--ent-dark);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.enterprise-brand-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.enterprise-brand-text {
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .04em;
    white-space: nowrap;
}

.enterprise-nav {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.enterprise-nav::-webkit-scrollbar {
    display: none;
}

.enterprise-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ent-text-secondary);
    text-decoration: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

button.enterprise-nav-link {
    border: none;
    background: transparent;
    cursor: pointer;
}

button.enterprise-nav-link.dropdown-toggle::after {
    display: none;
}

.enterprise-nav-link:hover {
    color: var(--ent-text);
    background: transparent;
}

.enterprise-nav-link.active {
    color: var(--ent-text);
    background: transparent;
    box-shadow: none;
    border-bottom-color: var(--ent-dark);
}

.enterprise-nav-chevron {
    font-size: .55rem;
    opacity: .65;
    transition: transform .15s ease;
}

.enterprise-nav-link--modules[aria-expanded="true"] .enterprise-nav-chevron {
    transform: rotate(180deg);
}

.enterprise-nav-dropdown .dropdown-menu {
    margin-top: .5rem !important;
}

/* ---------- Modules secondary bar ---------- */
.enterprise-modules-bar {
    display: none;
    border-top: 1px solid var(--ent-border);
    background: var(--ent-card);
}

.enterprise-modules-bar.is-open {
    display: block;
}

.enterprise-modules-bar-inner {
    display: flex;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--ent-modules-bar-height);
}

.enterprise-nav--modules {
    flex: 1;
    min-width: 0;
    gap: .1rem;
}

.enterprise-nav--modules .enterprise-nav-link {
    padding: .3rem .7rem;
    font-size: .65rem;
    letter-spacing: .05em;
}

.enterprise-nav-search {
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border: 1px solid var(--ent-border);
    border-radius: 999px;
    background: var(--ent-bg);
    min-width: 200px;
    max-width: 240px;
}

.enterprise-nav-search i {
    color: var(--ent-text-muted);
    font-size: .75rem;
}

.enterprise-nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .78rem;
    width: 100%;
    color: var(--ent-text);
}

.enterprise-nav-search input::placeholder {
    color: var(--ent-text-muted);
}

.enterprise-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    background: var(--ent-card);
    color: var(--ent-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    padding: 0;
}

.enterprise-icon-btn.active {
    background: var(--ent-bg);
    color: var(--ent-text);
    border-color: #d1d5db;
}

.msg-nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.enterprise-icon-btn:hover:not(:disabled) {
    background: var(--ent-bg);
    color: var(--ent-text);
    border-color: #d1d5db;
}

.enterprise-icon-btn:disabled {
    opacity: .55;
    cursor: default;
}

.enterprise-icon-btn i {
    font-size: .85rem;
}

.enterprise-navbar-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    margin-left: auto;
}

.enterprise-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid var(--ent-border);
    border-radius: 999px;
    background: var(--ent-card);
    color: var(--ent-text-secondary);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}

.enterprise-profile-btn:hover {
    background: var(--ent-bg);
    color: var(--ent-text);
    border-color: #d1d5db;
}

.enterprise-profile-btn.active {
    background: var(--ent-dark);
    border-color: var(--ent-dark);
    color: #fff;
}

.enterprise-profile-btn i {
    font-size: .8rem;
}

.enterprise-settings-btn i {
    transition: transform .2s ease;
}

.enterprise-settings-btn:hover i {
    transform: rotate(45deg);
}

.enterprise-menu-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    background: var(--ent-card);
    color: var(--ent-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.enterprise-menu-toggle:hover {
    background: var(--ent-bg);
    color: var(--ent-text);
}

.enterprise-user-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--ent-border);
    border-radius: 999px;
    background: var(--ent-card);
    padding: .2rem .45rem .2rem .2rem;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.enterprise-user-btn:hover {
    background: var(--ent-bg);
    border-color: #d1d5db;
}

.enterprise-user-chevron {
    font-size: .65rem;
    color: var(--ent-text-muted);
    margin-right: .15rem;
}

.enterprise-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ent-dark);
    color: #fff;
    font-weight: 600;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Main content ---------- */
/* ---------- Module sidebar ---------- */
.enterprise-shell {
    display: flex;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
}

.enterprise-sidebar {
    width: var(--ent-sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--ent-navbar-height) + 1rem);
    padding: 1.5rem 0 2rem 1.25rem;
}

.enterprise-sidebar-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
    padding: 0 .5rem .65rem;
}

.enterprise-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.enterprise-sidebar-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ent-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}

.enterprise-sidebar-link:hover {
    color: var(--ent-text);
    background: rgba(0, 0, 0, 0.03);
}

.enterprise-sidebar-link.active {
    color: var(--ent-text);
    background: var(--ent-card);
    border-left-color: var(--ent-dark);
    box-shadow: var(--ent-shadow);
}

.enterprise-sidebar-icon {
    width: 14px;
    font-size: .68rem;
    text-align: center;
    flex-shrink: 0;
    opacity: .75;
}

.enterprise-sidebar-link.active .enterprise-sidebar-icon {
    opacity: 1;
}

.enterprise-sidebar-group {
    margin-bottom: .25rem;
}

.enterprise-sidebar-group-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .48rem .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color .15s, background .15s;
    text-align: left;
}

.enterprise-sidebar-group-toggle:hover,
.enterprise-sidebar-group-toggle.active {
    color: var(--ent-text);
    background: rgba(0, 0, 0, 0.03);
}

.enterprise-sidebar-group-label {
    flex: 1;
    min-width: 0;
}

.enterprise-sidebar-group-chevron {
    font-size: .55rem;
    opacity: .55;
    transition: transform .2s;
}

.enterprise-sidebar-group--open .enterprise-sidebar-group-chevron,
.enterprise-sidebar-group-toggle[aria-expanded="true"] .enterprise-sidebar-group-chevron {
    transform: rotate(180deg);
}

.enterprise-sidebar-group-items {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .15rem 0 .35rem .35rem;
}

.enterprise-sidebar-group-items .enterprise-sidebar-link {
    padding-left: 1.65rem;
    font-size: .7rem;
    font-weight: 600;
}

.enterprise-nav-menu .dropdown-header {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
}

.enterprise-main {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.5rem 2rem;
    min-height: calc(100vh - var(--ent-navbar-height) - 80px);
}

.enterprise-alert {
    margin-bottom: 1rem;
    border-radius: var(--ent-radius);
}

/* ---------- Hero ---------- */
.enterprise-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ent-shadow);
}

.enterprise-hero-status {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ent-text-muted);
    margin: 0 0 .75rem;
}

.enterprise-hero-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 .65rem;
    line-height: 1.25;
}

.enterprise-hero-desc {
    font-size: .88rem;
    color: var(--ent-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

.enterprise-hero-date {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex-shrink: 0;
    border: 1px solid var(--ent-border);
    border-radius: 10px;
    padding: .85rem 1.1rem;
    background: var(--ent-bg);
}

.enterprise-hero-date > i {
    color: var(--ent-text-secondary);
    font-size: 1.1rem;
    margin-top: .15rem;
}

.enterprise-hero-date-main {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

.enterprise-hero-date-sub {
    font-size: .65rem;
    color: var(--ent-text-muted);
    letter-spacing: .04em;
    margin-top: .2rem;
    white-space: nowrap;
}

/* ---------- KPI grid ---------- */
.enterprise-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.enterprise-kpi-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--ent-shadow);
    display: flex;
    flex-direction: column;
    min-height: 130px;
}

.enterprise-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.enterprise-kpi-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .07em;
    color: var(--ent-text-muted);
}

.enterprise-kpi-icon {
    width: 30px;
    height: 30px;
    background: var(--ent-bg);
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ent-text-secondary);
    font-size: .75rem;
}

.enterprise-kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: auto;
    padding: .25rem 0 .75rem;
}

.enterprise-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.enterprise-kpi-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.enterprise-kpi-badge--positive {
    background: var(--ent-positive-bg);
    color: var(--ent-positive-text);
}

.enterprise-kpi-badge--negative {
    background: var(--ent-negative-bg);
    color: var(--ent-negative-text);
}

.enterprise-kpi-dept {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--ent-text-muted);
}

/* ---------- Analytics ---------- */
.enterprise-analytics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.enterprise-analytics-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.enterprise-analytics-subtitle {
    font-size: .82rem;
    color: var(--ent-text-secondary);
    margin: 0;
}

.enterprise-reload-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    background: var(--ent-card);
    font-size: .82rem;
    font-weight: 500;
    color: var(--ent-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.enterprise-reload-btn:hover {
    background: var(--ent-bg);
}

.enterprise-reload-btn i {
    font-size: .8rem;
}

.enterprise-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.enterprise-chart-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.25rem 1.5rem 1rem;
    box-shadow: var(--ent-shadow);
}

.enterprise-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.enterprise-chart-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 0;
    color: var(--ent-text);
}

.enterprise-period-toggle {
    display: inline-flex;
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.enterprise-period-toggle button {
    border: none;
    background: transparent;
    padding: .3rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ent-text-secondary);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.enterprise-period-toggle button:not(:last-child) {
    border-right: 1px solid var(--ent-border);
}

.enterprise-period-toggle button.active {
    background: var(--ent-dark);
    color: #fff;
}

.enterprise-chart-body {
    position: relative;
    min-height: 200px;
}

.enterprise-chart-body canvas {
    width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .enterprise-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .enterprise-main {
        padding: 1rem;
    }

    .enterprise-hero {
        flex-direction: column;
        padding: 1.25rem;
    }

    .enterprise-hero-date {
        align-self: flex-start;
    }

    .enterprise-kpi-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-charts-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-analytics-header {
        flex-direction: column;
    }

    .enterprise-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991.98px) {
    .enterprise-nav,
    .enterprise-modules-bar {
        display: none !important;
    }

    .enterprise-profile-btn span {
        display: none;
    }

    .enterprise-profile-btn,
    .enterprise-settings-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 8px;
    }

    .enterprise-user-chevron {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .enterprise-brand-text {
        display: none;
    }

    .enterprise-kpi-value {
        font-size: 1.25rem;
    }
}

/* ---------- Nav dropdowns ---------- */
.enterprise-nav-menu {
    border: 1px solid var(--ent-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: .4rem;
    min-width: 200px;
    margin-top: .35rem !important;
}

.enterprise-nav-menu .dropdown-item {
    border-radius: 6px;
    font-size: .84rem;
    padding: .45rem .75rem;
}

.enterprise-nav-menu .dropdown-item:hover {
    background: var(--ent-bg);
}

.enterprise-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.enterprise-mobile-nav-link {
    display: block;
    padding: .6rem 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ent-text-secondary);
    text-decoration: none;
}

.enterprise-mobile-nav-link:hover,
.enterprise-mobile-nav-link.active {
    color: var(--ent-text);
}

/* ---------- Page content (shared across modules) ---------- */
.enterprise-breadcrumb {
    margin-bottom: 1rem;
}

.enterprise-breadcrumb .breadcrumb {
    font-size: .82rem;
}

.enterprise-breadcrumb .breadcrumb-item a {
    color: var(--ent-text-secondary);
    text-decoration: none;
}

.enterprise-breadcrumb .breadcrumb-item a:hover {
    color: var(--ent-text);
}

.stat-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.25rem;
    box-shadow: var(--ent-shadow);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.avatar-circle {
    border-radius: 50%;
    background: var(--ent-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.enterprise-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.enterprise-page-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.enterprise-body .btn-primary {
    background: var(--ent-dark);
    border-color: var(--ent-dark);
}

.enterprise-body .btn-primary:hover,
.enterprise-body .btn-primary:focus {
    background: #111827;
    border-color: #111827;
}

.enterprise-body .btn-outline-secondary {
    border-color: var(--ent-border);
    color: var(--ent-text-secondary);
}

.enterprise-body .btn-outline-secondary:hover {
    background: var(--ent-bg);
    border-color: #d1d5db;
    color: var(--ent-text);
}

.enterprise-body .form-control,
.enterprise-body .form-select {
    border-color: var(--ent-border);
    border-radius: 8px;
}

.enterprise-body .form-control:focus,
.enterprise-body .form-select:focus {
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.enterprise-body .table {
    --bs-table-bg: transparent;
    font-size: .88rem;
}

.enterprise-body .table > :not(caption) > * > * {
    border-color: var(--ent-border);
}

/* ---------- Auth pages ---------- */
body.auth-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ent-card);
    color: var(--ent-text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-split-hero {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #020617 0%, #0f172a 45%, #0c4a6e 100%);
    color: #f8fafc;
}

.auth-binary-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-binary-layer {
    position: absolute;
    inset: -50%;
    background-image: url('../img/binary-pattern.svg');
    background-size: 320px 320px;
    opacity: .55;
    animation: auth-binary-drift 40s linear infinite;
}

.auth-binary-layer--2 {
    opacity: .35;
    animation-duration: 55s;
    animation-direction: reverse;
    transform: rotate(180deg);
}

@keyframes auth-binary-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-160px, -160px, 0); }
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem;
    max-width: 420px;
}

.auth-hero-logo {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 24px rgba(34, 211, 238, .35));
}

.auth-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: .18em;
    margin: 0 0 .75rem;
    text-shadow: 0 0 40px rgba(34, 211, 238, .25);
}

.auth-hero-tagline {
    font-size: .95rem;
    color: rgba(226, 232, 240, .75);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0;
}

.auth-hero-pulse-line {
    margin-top: 2rem;
    color: #22d3ee;
    opacity: .85;
    animation: auth-pulse-glow 2.5s ease-in-out infinite;
}

.auth-hero-pulse-line svg {
    width: min(220px, 70vw);
    height: auto;
}

@keyframes auth-pulse-glow {
    0%, 100% { opacity: .6; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .4)); }
    50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(34, 211, 238, .7)); }
}

.auth-split-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--ent-card);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand-logo {
    flex-shrink: 0;
}

.auth-brand-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.auth-brand-subtitle {
    font-size: .875rem;
    color: var(--ent-text-muted);
    margin-top: .15rem;
}

.auth-body .btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    padding: .65rem 1rem;
    font-weight: 600;
}

.auth-body .btn-primary:hover {
    background: #020617;
    border-color: #020617;
}

.auth-body .form-control:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}

@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-split-hero {
        flex: 0 0 auto;
        min-height: 280px;
        padding: 2rem 1rem;
    }

    .auth-hero-content {
        padding: 1.5rem;
    }

    .auth-hero-logo {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .auth-hero-pulse-line {
        display: none;
    }

    .auth-split-panel {
        flex: 1;
        padding: 2rem 1.25rem 2.5rem;
    }
}

/* ---------- Settings workspace (admin portal style) ---------- */
.enterprise-workspace-hero {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ent-shadow);
}

.enterprise-workspace-hero--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.enterprise-workspace-hero__main {
    min-width: 0;
    flex: 1;
}

.enterprise-workspace-hero__actions {
    flex-shrink: 0;
    padding-top: 1.75rem;
}

.enterprise-workspace-cta {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.15rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 8px;
    white-space: nowrap;
}

/* ---------- Data panel (portal tables) ---------- */
.enterprise-data-panel {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    box-shadow: var(--ent-shadow);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.enterprise-data-panel__head {
    padding: 1.35rem 1.75rem 1rem;
    border-bottom: 1px solid var(--ent-border);
}

.enterprise-data-panel__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 .35rem;
    color: var(--ent-text);
}

.enterprise-data-panel__subtitle {
    font-size: .78rem;
    color: var(--ent-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.enterprise-data-panel__toolbar {
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--ent-border);
    background: #fafafa;
}

.enterprise-data-panel__body {
    padding: 0;
}

.enterprise-data-panel__body .table-responsive {
    margin: 0;
}

.enterprise-data-table {
    width: 100%;
    margin: 0;
    font-size: .84rem;
}

.enterprise-data-table thead th {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--ent-border);
    background: transparent;
    white-space: nowrap;
}

.enterprise-data-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ent-border);
    vertical-align: middle;
}

.enterprise-data-table tbody tr:last-child td {
    border-bottom: none;
}

.enterprise-data-table tbody tr:hover {
    background: #fafafa;
}

.enterprise-data-table__primary {
    font-weight: 600;
    color: var(--ent-text);
    text-decoration: none;
}

.enterprise-data-table__primary:hover {
    color: var(--ent-text);
    text-decoration: underline;
}

.enterprise-data-table__meta {
    font-size: .75rem;
    color: var(--ent-text-muted);
    margin-top: .15rem;
}

.enterprise-data-table__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .78rem;
    color: var(--ent-text-secondary);
}

.enterprise-data-table__amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.enterprise-data-panel__footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--ent-border);
    background: #fafafa;
}

/* Status pills — portal signature style */
.enterprise-status-pill {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .03em;
    border-radius: 999px;
    white-space: nowrap;
}

.enterprise-status-pill--approved,
.enterprise-status-pill--active {
    background: var(--ent-dark);
    color: #fff;
}

.enterprise-status-pill--pending,
.enterprise-status-pill--on_leave {
    background: #f3f4f6;
    color: var(--ent-text-secondary);
    border: 1px solid var(--ent-border);
}

.enterprise-status-pill--draft,
.enterprise-status-pill--inactive {
    background: #f9fafb;
    color: var(--ent-text-muted);
    border: 1px solid var(--ent-border);
}

.enterprise-status-pill--rejected,
.enterprise-status-pill--terminated {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.enterprise-status-pill--deleted {
    background: #1f2937;
    color: #fff;
    margin-left: .35rem;
}

.enterprise-row-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.enterprise-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem 1rem;
    align-items: end;
}

.enterprise-filter-grid .enterprise-field-label {
    margin-bottom: .35rem;
}

.enterprise-filter-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.enterprise-employee-cell {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.enterprise-employee-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.enterprise-employee-avatar--placeholder {
    background: var(--ent-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
}

/* Profile workspace */
.enterprise-profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.enterprise-profile-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.75rem;
    box-shadow: var(--ent-shadow);
    text-align: center;
}

.enterprise-profile-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--ent-border);
}

.enterprise-profile-card__photo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ent-dark);
    color: #fff;
    font-size: 2.25rem;
    font-weight: 600;
}

.enterprise-profile-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .25rem;
}

.enterprise-profile-card__role {
    font-size: .82rem;
    color: var(--ent-text-secondary);
    margin-bottom: .5rem;
}

.enterprise-profile-card__id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .75rem;
    color: var(--ent-text-muted);
    margin-bottom: 1rem;
}

.enterprise-detail-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--ent-shadow);
    margin-bottom: 1rem;
}

.enterprise-detail-card__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0 0 1.15rem;
    color: var(--ent-text);
}

.enterprise-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.enterprise-detail-item {
    margin: 0;
}

.enterprise-detail-item dt {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
    margin: 0 0 .25rem;
}

.enterprise-detail-item dd {
    font-size: .84rem;
    margin: 0;
    color: var(--ent-text);
}

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

@media (max-width: 991.98px) {
    .enterprise-workspace-hero--split {
        flex-direction: column;
    }

    .enterprise-workspace-hero__actions {
        padding-top: 0;
        width: 100%;
    }

    .enterprise-workspace-cta {
        width: 100%;
        justify-content: center;
    }

    .enterprise-profile-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-detail-list {
        grid-template-columns: 1fr;
    }
}

.enterprise-workspace-crumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.enterprise-crumb-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    background: var(--ent-dark);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.enterprise-crumb-sep {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ent-text-muted);
    text-transform: uppercase;
}

.enterprise-crumb-current {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ent-text-secondary);
    text-transform: uppercase;
}

.enterprise-workspace-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .65rem;
}

.enterprise-workspace-desc {
    font-size: .88rem;
    color: var(--ent-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 720px;
}

.enterprise-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.enterprise-settings-card {
    background: var(--ent-card);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--ent-shadow);
}

.enterprise-settings-card + .enterprise-settings-card {
    margin-top: 1rem;
}

.enterprise-settings-card__head {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.35rem;
}

.enterprise-settings-card__head i {
    color: var(--ent-text-secondary);
    font-size: .9rem;
}

.enterprise-settings-card__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ent-text);
}

.enterprise-settings-card__intro {
    font-size: .8rem;
    color: var(--ent-text-secondary);
    line-height: 1.55;
    margin: -.75rem 0 1.25rem;
}

.enterprise-settings-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

.enterprise-settings-fields--single {
    grid-template-columns: 1fr;
}

.enterprise-field {
    min-width: 0;
}

.enterprise-field-label {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ent-text-muted);
    margin-bottom: .45rem;
}

.enterprise-field .form-control,
.enterprise-field .form-select {
    font-size: .84rem;
    padding: .6rem .85rem;
    background: var(--ent-card);
}

.enterprise-field-readonly {
    font-size: .84rem;
    padding: .6rem .85rem;
    background: var(--ent-bg);
    border: 1px solid var(--ent-border);
    border-radius: 8px;
    color: var(--ent-text);
    word-break: break-all;
}

.enterprise-field-readonly--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .78rem;
}

.enterprise-settings-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ent-border);
}

.enterprise-settings-card__footer .btn-primary {
    padding: .55rem 1.15rem;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 8px;
}

.enterprise-logo-panel {
    text-align: center;
    padding: 1rem 0 .25rem;
}

.enterprise-logo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto .85rem;
    border: 1px solid var(--ent-border);
    border-radius: 12px;
    background: var(--ent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.enterprise-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.enterprise-logo-preview i {
    font-size: 2rem;
    color: var(--ent-text-muted);
}

.enterprise-logo-name {
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.enterprise-logo-panel .form-control {
    font-size: .78rem;
}

.enterprise-logo-panel .btn {
    font-size: .78rem;
}

.enterprise-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.enterprise-quick-links .btn {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 8px;
}

.enterprise-app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--ent-border);
}

.enterprise-app-footer__powered {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-decoration: none;
    transition: opacity .15s ease;
}

.enterprise-app-footer__powered-label {
    color: #000;
}

.enterprise-app-footer__powered-brand {
    color: #22d3ee;
    transition: color .15s ease;
}

.enterprise-app-footer__powered:hover {
    opacity: .9;
}

.enterprise-app-footer__powered:hover .enterprise-app-footer__powered-brand {
    color: #06b6d4;
}

@media (max-width: 991.98px) {
    .enterprise-settings-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-settings-fields {
        grid-template-columns: 1fr;
    }

    .enterprise-workspace-hero {
        padding: 1.25rem;
    }

    .enterprise-workspace-title {
        font-size: 1.35rem;
    }

    .enterprise-data-panel__head,
    .enterprise-data-panel__toolbar,
    .enterprise-data-panel__footer {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .enterprise-data-table thead th,
    .enterprise-data-table tbody td {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 767.98px) {
    .enterprise-settings-card {
        padding: 1.15rem;
    }
}

/* Module toggle list (settings/modules) */
.enterprise-module-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.enterprise-module-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ent-border);
    border-radius: 10px;
    background: var(--ent-bg);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.enterprise-module-item:hover {
    border-color: var(--ent-accent, #2563eb);
    background: rgba(37, 99, 235, .04);
}

.enterprise-module-item--core {
    opacity: .85;
    cursor: default;
}

.enterprise-module-item input[type="checkbox"] {
    margin-top: .35rem;
    flex-shrink: 0;
}

.enterprise-module-item__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: var(--ent-surface, #fff);
    border: 1px solid var(--ent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ent-text-muted);
}

.enterprise-module-item__body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.enterprise-module-item__title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ent-text);
}

.enterprise-module-item__desc {
    font-size: .78rem;
    color: var(--ent-text-muted);
    line-height: 1.45;
}

