/* ============================================================
   Spark Production — NUZN Stay house style (navy + orange, Public Sans)
   ============================================================ */

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

:root {
    /* NUZN Stay house style — navy sidebar, orange accent, Sneat base */
    --sp-navy-900: #101d33;
    --sp-navy-800: #14233b;
    --sp-navy-700: #1f3357;
    --sp-navy-600: #2a4470;
    --sp-red: #ff9d3c;          /* NUZN brand orange (accent) */
    --sp-red-dark: #f57c00;
    --sp-ink: #566a7f;          /* Sneat heading ink */
    --sp-muted: #8a93a3;
    --sp-line: #d9dee3;
    --sp-bg: #f5f5f9;
    --sp-radius: 10px;
    --sp-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
    --sp-shadow-sm: 0 0.125rem 0.5rem rgba(75, 70, 92, 0.08);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Public Sans', 'Segoe UI', Roboto, system-ui, sans-serif;
    font-size: 0.9rem;
    background-color: var(--sp-bg);
    color: var(--sp-ink);
    margin-bottom: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Public Sans', 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--sp-navy-800);
}

h2 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

a {
    text-decoration: none;
}

.text-muted {
    color: var(--sp-muted) !important;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
}

.btn-brand,
.btn-primary {
    background: var(--nz-blue);
    border: none;
    color: #fff;
    box-shadow: 0 0.25rem 0.9rem rgba(47, 82, 212, 0.32);
}

.btn-brand:hover,
.btn-primary:hover {
    background: var(--nz-blue-d);
    color: #fff;
    box-shadow: 0 0.35rem 1.1rem rgba(47, 82, 212, 0.42);
}

.btn-red,
.btn-success {
    background: linear-gradient(135deg, var(--sp-red), var(--sp-red-dark));
    border: none;
    color: #fff;
}

.btn-red:hover,
.btn-success:hover {
    background: var(--sp-red-dark);
    color: #fff;
}

.btn-warning {
    background: #f0b429;
    border: none;
    color: #3b2f00;
}

.btn-outline-secondary {
    border-color: var(--sp-line);
    color: var(--sp-navy-700);
    background: #fff;
}

.btn-outline-secondary:hover {
    background: var(--sp-navy-800);
    border-color: var(--sp-navy-800);
    color: #fff;
}

.btn:focus, .btn:active:focus, .form-control:focus,
.form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 63, 130, 0.18);
    border-color: var(--sp-navy-600);
}

/* ---------- Navbar ---------- */
.app-navbar {
    background: linear-gradient(90deg, var(--sp-navy-900), var(--sp-navy-700));
    box-shadow: 0 2px 12px rgba(11, 28, 64, 0.25);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.app-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.2px;
}

.app-navbar .nav-link { font-size: 0.9rem; }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sp-red), var(--sp-red-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(225, 29, 42, 0.35);
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 0.85rem !important;
    transition: all .15s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.show {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.10);
}

.app-navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--sp-shadow);
    padding: 0.4rem;
    margin-top: 0.4rem;
}

.app-navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    color: var(--sp-ink);
}

.app-navbar .dropdown-item:hover {
    background: var(--sp-bg);
    color: var(--sp-navy-800);
}

/* ---------- Cards ---------- */
.card {
    border: none;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-sm);
}

.card-header.bg-dark {
    background: linear-gradient(135deg, var(--sp-navy-800), var(--sp-navy-600)) !important;
    border-top-left-radius: var(--sp-radius);
    border-top-right-radius: var(--sp-radius);
}

/* Headings inside dark headers / modals must be white (was invisible navy-on-navy) */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.modal-header.bg-dark .modal-title,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5 {
    color: #fff !important;
}

/* Give buttons a little room between icon and text */
.btn i.bi { vertical-align: -0.1em; }

/* ---------- Page hero banner (HRMS-style) ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--sp-navy-900) 0%, var(--sp-navy-700) 55%, var(--sp-red) 130%);
    color: #fff;
    border-radius: var(--sp-radius);
    padding: 1.4rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--sp-shadow);
}
.page-hero .hero-left { display: flex; align-items: center; gap: 1rem; }
.page-hero .hero-icon {
    width: 54px; height: 54px; border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.page-hero h2 { color: #fff !important; margin: 0; font-size: 1.5rem; }
.page-hero p { color: rgba(255,255,255,0.82); margin: 0; font-size: 0.9rem; }

/* Letter avatar in list */
.name-avatar {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--sp-navy-700), var(--sp-navy-600));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; margin-right: 0.6rem; flex-shrink: 0;
}

/* ---- DataTables — classic admin grid look ---- */
div.dt-buttons { gap: 0.4rem; display: inline-flex; flex-wrap: wrap; }
div.dt-buttons .dt-button {
    background: #fff; color: var(--sp-navy-700); border: 1px solid var(--sp-line);
    border-radius: 8px; padding: 0.4rem 0.85rem; margin: 0;
    font-size: 0.82rem; font-weight: 600; box-shadow: none;
    display: inline-flex; align-items: center; gap: 0.35rem;
    transition: all .15s ease;
}
div.dt-buttons .dt-button:hover {
    background: var(--sp-red); color: #fff; border-color: var(--sp-red);
    box-shadow: 0 3px 10px rgba(245,124,0,0.28);
}

table.dataTable thead th {
    background: var(--sp-bg); color: var(--sp-muted);
    font-weight: 700; font-size: 0.72rem; letter-spacing: 0.4px; text-transform: uppercase;
    border-bottom: 2px solid var(--sp-line) !important; border-top: none;
    padding-top: 0.75rem; padding-bottom: 0.75rem;
}
table.dataTable tbody td { border-color: #eef1f5; }
table.dataTable tbody tr:nth-child(even) > * { background-color: #fafbfd; }
table.dataTable tbody tr:hover > * { background-color: #fff5ec !important; }

.dataTables_wrapper .dataTables_filter input,
.dt-search input {
    border-radius: 8px; border: 1px solid var(--sp-line);
    padding: 0.4rem 0.75rem; min-width: 220px;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dt-search input:focus { border-color: var(--sp-red); box-shadow: 0 0 0 3px rgba(255,157,60,0.18); outline: none; }
.dataTables_filter label, .dt-search label { color: var(--sp-muted); font-weight: 600; font-size: 0.85rem; }

/* 'Show N entries' length control — own row, tidy spacing, no button overlap */
.dt-length-wrap label,
.dataTables_length label,
.dt-length label {
    display: flex; align-items: center; gap: 6px; margin: 0;
    color: var(--sp-muted); font-size: 0.85rem; white-space: nowrap; font-weight: 500;
}
.dt-length-wrap select,
.dataTables_length select,
.dt-length select {
    width: auto !important; display: inline-block;
    padding: 0.25rem 1.8rem 0.25rem 0.6rem;
    border: 1px solid var(--sp-line); border-radius: 8px;
}

/* Long cell data wraps into multiple lines (caps column width) */
table.dataTable td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 320px;
    vertical-align: middle;
}
table.dataTable thead th { white-space: nowrap; }

/* Pagination — right aligned, orange active page */
div.dt-paging ul.pagination,
.dataTables_wrapper .dataTables_paginate ul.pagination {
    justify-content: flex-end !important;
    margin-bottom: 0;
}
.pagination .page-link { color: var(--sp-navy-700); border-radius: 8px !important; margin: 0 2px; border: 1px solid var(--sp-line); font-size: 0.85rem; }
.pagination .page-link:hover { background: var(--sp-bg); color: var(--sp-red-dark); }
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ffb15a, var(--sp-red-dark));
    border-color: var(--sp-red-dark); color: #fff;
    box-shadow: 0 3px 9px rgba(245,124,0,0.3);
}
.dataTables_info, .dt-info { color: var(--sp-muted); font-size: 0.85rem; }

/* ============================================================
   NUZN-style sidebar layout
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 264px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--sp-navy-900), var(--sp-navy-800));
    color: #cdd5e6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar-brand {
    padding: 0.9rem 1rem;
    background: #fff;
    margin: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.sidebar-brand .brand-name { font-family: 'Public Sans', sans-serif; font-weight: 700; color: var(--sp-navy-800); line-height: 1.05; font-size: 1.05rem; }
.sidebar-brand .brand-sub { font-size: 0.68rem; color: var(--sp-red); font-weight: 600; }

.sidebar-search { padding: 0.25rem 0.85rem 0.5rem; }
.sidebar-search input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 9px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.45); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.25rem 0.7rem 1rem; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.nav-section-label {
    font-size: 0.66rem; letter-spacing: 1.2px; text-transform: uppercase;
    color: rgba(255,255,255,0.38); padding: 1rem 0.6rem 0.35rem; font-weight: 600;
}
.side-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.75rem; border-radius: 9px;
    color: #cdd5e6; font-weight: 500; font-size: 0.9rem; text-decoration: none;
    transition: background .15s ease, color .15s ease;
    cursor: pointer;
}
.side-link i.bi { font-size: 1.05rem; width: 20px; text-align: center; }
.side-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.side-link.active { background: linear-gradient(90deg, var(--sp-red), var(--sp-red-dark)); color: #fff; box-shadow: 0 4px 12px rgba(225,29,42,0.35); }
.side-link .chev { margin-left: auto; font-size: 0.8rem; transition: transform .2s ease; }
.side-link[aria-expanded="true"] .chev { transform: rotate(90deg); }
.side-sub { padding: 0.25rem 0 0.35rem; margin: 0.15rem 0 0.3rem; background: rgba(0,0,0,0.18); border-radius: 10px; }
.side-sub .side-link { padding-left: 2.4rem; font-size: 0.85rem; }
.side-sub .side-link.active { background: linear-gradient(90deg, var(--sp-red-dark), #7d0d15); }

.sidebar-user {
    padding: 0.85rem 1rem; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 0.65rem;
}
.sidebar-user .u-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--sp-red), var(--sp-red-dark));
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; flex-shrink: 0;
}
.sidebar-user .u-name { color: #fff; font-weight: 600; font-size: 0.85rem; line-height: 1.1; }
.sidebar-user .u-role { color: rgba(255,255,255,0.5); font-size: 0.72rem; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: 60px; background: #fff; border-bottom: 1px solid var(--sp-line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; position: sticky; top: 0; z-index: 20;
}
.topbar .crumbs { color: var(--sp-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.topbar .crumbs .cur { color: var(--sp-navy-800); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 0.85rem; }
.topbar-icon {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--sp-line);
    display: inline-flex; align-items: center; justify-content: center; color: var(--sp-navy-700);
    background: #fff; cursor: pointer;
}
.content-area { flex: 1; padding: 1.25rem; }
.sidebar-toggle { display: none; }

@media (max-width: 991px) {
    .sidebar { position: fixed; z-index: 1050; transform: translateX(-100%); transition: transform .25s ease; }
    .app-shell.sb-open .sidebar { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
}

/* Toast/alert message floats on top (above modals) */
#toast:not(.d-none) {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    min-width: 320px;
    max-width: 92%;
    box-shadow: 0 12px 34px rgba(11, 28, 64, 0.28);
    border: none;
}

/* ---------- Sectioned modal form (HRMS-style) ---------- */
.modal-header.bg-dark {
    background: linear-gradient(135deg, var(--sp-navy-800), var(--sp-navy-600)) !important;
    border-bottom: none;
}
.modal-content { border: none; border-radius: 14px; overflow: hidden; }
.modal-body { padding: 1.5rem 1.75rem; }
.form-section-title {
    color: var(--sp-navy-700);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding-bottom: 0.4rem;
    margin: 0.25rem 0 1rem;
    border-bottom: 1px solid var(--sp-line);
}
.form-section-title:not(:first-child) { margin-top: 1rem; }
.req { color: var(--sp-red); font-weight: 700; }
.modal-footer { border-top: 1px solid var(--sp-line); padding: 1rem 1.75rem; }

/* ---------- Tables ---------- */
.table > thead.table-dark th {
    background: var(--sp-navy-800);
    border-color: var(--sp-navy-700);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.table-hover > tbody > tr:hover > * {
    background-color: #eef2fb;
}

/* ---------- Forms ---------- */
.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--sp-muted);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid var(--sp-line);
    padding: 0.6rem 0.85rem;
}

/* ---------- Dashboard ---------- */
.page-head h2 {
    margin-bottom: 0.15rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-sm);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef1f7;
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sp-shadow);
}

.icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 0.9rem;
}

.icon-badge.navy { background: linear-gradient(135deg, var(--sp-navy-800), var(--sp-navy-600)); }
.icon-badge.red  { background: linear-gradient(135deg, var(--sp-red), var(--sp-red-dark)); }
.icon-badge.teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.icon-badge.amber{ background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-card h5 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.stat-card p {
    color: var(--sp-muted);
    font-size: 0.88rem;
    flex-grow: 1;
}

/* ---------- Footer ---------- */
.app-footer {
    border-top: 1px solid var(--sp-line);
    background: #fff;
    padding: 1rem 0;
    color: var(--sp-muted);
    font-size: 0.85rem;
}

/* ============================================================
   Auth / Login split screen
   ============================================================ */
.auth-shell {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

.auth-left {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at -10% -10%, var(--sp-navy-700), transparent),
                linear-gradient(160deg, var(--sp-navy-900), var(--sp-navy-800));
    color: #fff;
    padding: 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
}

.auth-left::before,
.auth-left::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-left::before { width: 520px; height: 520px; right: -160px; top: -120px; }
.auth-left::after  { width: 360px; height: 360px; right: -60px; bottom: -140px; background: rgba(255,255,255,0.02); }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.auth-brand .brand-mark { width: 42px; height: 42px; border-radius: 11px; }

.auth-brand .brand-name {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
}

.auth-brand .brand-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-headline {
    font-family: 'Public Sans', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.15;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.auth-headline .accent { color: #ff5a63; display: block; }

.auth-subtext {
    color: rgba(255, 255, 255, 0.72);
    max-width: 30rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    margin-bottom: 2.25rem;
}

.auth-features {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: auto;
}

.auth-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auth-feature .af-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff8a90;
}

.auth-feature h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.98rem;
}

.auth-feature p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
    margin: 0;
}

.auth-right {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
}

.auth-form-wrap {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
}

.auth-logo-lock {
    font-family: 'Public Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.auth-logo-lock .spark { color: var(--sp-navy-800); }
.auth-logo-lock .pay { color: var(--sp-red); }

.auth-tag {
    color: var(--sp-muted);
    font-size: 0.9rem;
    margin-bottom: 2.25rem;
}

.auth-tag .accent { color: var(--sp-red); font-weight: 600; }

.auth-title {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.auth-sub {
    color: var(--sp-muted);
    margin-bottom: 1.75rem;
}

.input-icon {
    position: relative;
}

.input-icon .ic {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sp-muted);
    pointer-events: none;
}

.input-icon .form-control,
.input-icon .form-select {
    padding-left: 2.5rem;
    background: #f8fafc;
    height: 48px;
}

.input-icon .form-select {
    padding-right: 2.25rem; /* room for the caret so the year never clips */
}

.input-icon .toggle-pass {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sp-muted);
    cursor: pointer;
    padding: 0;
}

.auth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    justify-content: center;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--sp-muted);
    border: 1px solid var(--sp-line);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    background: #fff;
}

.btn-signin {
    height: 50px;
    font-size: 1rem;
    width: 100%;
}

@media (max-width: 991px) {
    .auth-left { display: none; }
    .auth-right { flex-basis: 100%; padding: 2.5rem 1.5rem; }
    .auth-chips { position: static; margin-top: 2rem; }
}

/* ============================================================
   NUZN Stay dashboard — hero, stat tiles, metric chips
   ============================================================ */
.dash-hero {
    background: linear-gradient(120deg, #0f2348 0%, #142a5c 55%, #1a2f63 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 35, 80, 0.18);
}
.dash-hero .hero-ico {
    width: 54px; height: 54px; border-radius: 14px;
    background: rgba(255,255,255,0.12); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.dash-hero h3 { color: #fff; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
.dash-hero .hero-sub { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.dash-hero .hero-loc { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; }
.live-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(113,221,55,0.16); color: #71dd37;
    border: 1px solid rgba(113,221,55,0.35);
    padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #71dd37; box-shadow: 0 0 0 3px rgba(113,221,55,0.25); }

/* panel cards */
.dash-panel { background: #fff; border: none; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,23,42,0.06); }
.dash-panel .panel-title { font-weight: 800; color: var(--sp-navy-800); font-size: 1.05rem; margin: 0; }
.dash-panel .panel-sub { color: var(--sp-muted); font-size: 0.82rem; }

/* colorful gradient stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.85rem; }
.stat-tile {
    border-radius: 16px; padding: 0.85rem 0.9rem; color: #fff; min-height: 92px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 6px 16px rgba(15,23,42,0.12);
}
.stat-tile .st-badge {
    width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.22);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
}
.stat-tile .st-val { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-tile .st-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.9); font-weight: 600; }
.st-blue   { background: linear-gradient(135deg, #4e7df0, #2b59c3); }
.st-teal   { background: linear-gradient(135deg, #26c2bf, #119aa6); }
.st-red    { background: linear-gradient(135deg, #f25c6b, #d12f4f); }
.st-pink   { background: linear-gradient(135deg, #f06aa0, #d83a78); }
.st-purple { background: linear-gradient(135deg, #9b6cf0, #6f3fd1); }
.st-orange { background: linear-gradient(135deg, #ffa63d, #f3791f); }
.st-green  { background: linear-gradient(135deg, #2fb47e, #169b63); }
.st-indigo { background: linear-gradient(135deg, #6b8cf2, #455fd6); }

/* icon-chip metric rows */
.metric-row {
    display: flex; align-items: center; gap: 0.85rem;
    border: 1px solid var(--sp-line); border-radius: 12px; padding: 0.75rem 0.9rem; margin-bottom: 0.7rem;
    background: #fff;
}
.metric-row:last-child { margin-bottom: 0; }
.metric-chip {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.metric-row .m-lbl { font-weight: 700; color: var(--sp-navy-800); line-height: 1.1; }
.metric-row .m-sub { font-size: 0.78rem; color: var(--sp-muted); }
.metric-row .m-val { margin-left: auto; font-size: 1.35rem; font-weight: 800; color: var(--sp-navy-800); }
.chip-blue   { background: #e8effe; color: #2b59c3; }
.chip-teal   { background: #ddf6f5; color: #119aa6; }
.chip-orange { background: #fff0dd; color: #f3791f; }
.chip-green  { background: #e2f7ec; color: #169b63; }
.chip-purple { background: #efe7fd; color: #6f3fd1; }
.chip-red    { background: #fde8ea; color: #d12f4f; }

/* ---------- Topbar: breadcrumb links, user dropdown, refresh ---------- */
.crumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.crumbs .sep { font-size: 0.7rem; color: var(--sp-muted); }
.crumbs a { color: var(--sp-muted); font-weight: 500; display: inline-flex; align-items: center; gap: 0.3rem; }
.crumbs a:hover { color: var(--sp-red-dark); }
.crumbs .cur { color: var(--sp-navy-800); font-weight: 700; }

.topbar-icon { transition: background .15s ease, color .15s ease; }
.topbar-icon:hover { background: var(--sp-bg); color: var(--sp-red-dark); border-color: var(--sp-red); }
.topbar-icon .spin { animation: sp-spin 0.6s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }

.user-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid var(--sp-line); border-radius: 999px;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem; cursor: pointer; color: var(--sp-navy-800);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.user-btn:hover { border-color: var(--sp-red); box-shadow: 0 2px 8px rgba(245,124,0,0.15); }
.user-menu { border: none; border-radius: 12px; min-width: 210px; padding: 0.35rem; }
.user-menu .dropdown-item { border-radius: 8px; padding: 0.5rem 0.75rem; font-weight: 500; }
.user-menu .dropdown-item:hover { background: var(--sp-bg); }

/* search box a touch nicer */
.sidebar-search input:focus { border-color: var(--sp-red); box-shadow: 0 0 0 3px rgba(255,157,60,0.18); }
#noMenuHit { color: rgba(255,255,255,0.5); }

/* ---------- Classic grid page polish (global) ---------- */
/* toolbar row (export buttons + search) sits on a light strip */
.dt-layout-row:first-child,
.dataTables_wrapper > .row:first-child {
    background: #fcfdff;
    border: 1px solid var(--sp-line);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    margin: 0 0 0.9rem 0 !important;
    align-items: center;
}
.dt-layout-row:first-child > * { margin: 0 !important; }

/* grid card a touch tighter + rounded */
.card.shadow-sm > .card-body { padding: 1.1rem 1.25rem; }
table.dataTable { border-collapse: separate; border-spacing: 0; }
table.dataTable tbody tr { transition: background .12s ease; }

/* page title (h5 at top of each grid) — accent bar + weight */
main.content-area h5.mb-0 {
    position: relative; padding-left: 0.85rem; font-weight: 800; color: var(--sp-navy-800);
}
main.content-area h5.mb-0::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 1.05em; border-radius: 3px;
    background: linear-gradient(180deg, #ffb15a, var(--sp-red-dark));
}

/* action buttons in the grid (edit/delete) — pill, brand hover */
td .btn-outline-primary { border-radius: 8px; }
td .btn-outline-primary:hover { background: var(--sp-red); border-color: var(--sp-red); color:#fff; }
td .btn-outline-danger { border-radius: 8px; }

/* status badges a bit softer */
.badge.bg-success { background: #e2f7ec !important; color: #169b63 !important; font-weight: 700; }
.badge.bg-secondary { background: #eef1f5 !important; color: #8a93a3 !important; font-weight: 700; }

/* ===== Sneat / NUZN-style toast notifications (ref: stay.nuzninfotech.com) ===== */
.spk-toast-host{
    position:fixed; top:1.25rem; right:1.25rem; z-index:1095;
    display:flex; flex-direction:column; gap:.75rem;
    pointer-events:none; max-width:calc(100vw - 2rem);
}
.spk-toast{
    pointer-events:auto;
    display:flex; align-items:flex-start; gap:.65rem;
    min-width:300px; max-width:350px;
    padding:.95rem 1.15rem;
    border-radius:.5rem;
    color:#fff; font-weight:500; font-size:.9rem; line-height:1.35;
    background:rgba(133,146,163,.92);
    box-shadow:rgba(133,146,163,.4) 0 .25rem 1rem;
    opacity:0; transform:translateX(120%);
    transition:opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.spk-toast.show{ opacity:1; transform:translateX(0); }
.spk-toast .spk-ic{ font-size:1.15rem; line-height:1.3; flex-shrink:0; }
.spk-toast .spk-body{ flex:1; }
.spk-toast .spk-title{ font-weight:700; display:block; margin-bottom:.1rem; }
.spk-toast .spk-close{
    background:none; border:0; color:#fff; opacity:.8;
    font-size:1rem; line-height:1; cursor:pointer; padding:.1rem .15rem; flex-shrink:0;
}
.spk-toast .spk-close:hover{ opacity:1; }
.spk-toast--success{ background:rgba(113,221,55,.92); box-shadow:rgba(113,221,55,.4) 0 .25rem 1rem; }
.spk-toast--danger { background:rgba(255,62,29,.92);  box-shadow:rgba(255,62,29,.4)  0 .25rem 1rem; }
.spk-toast--warning{ background:rgba(255,171,0,.92);  box-shadow:rgba(255,171,0,.4)  0 .25rem 1rem; color:#4d3800; }
.spk-toast--warning .spk-close{ color:#4d3800; }
.spk-toast--info   { background:rgba(3,195,236,.92);  box-shadow:rgba(3,195,236,.4)  0 .25rem 1rem; }

/* Confirm modal polish to match the theme */
#confirmModal .modal-content{ border:0; border-radius:.6rem; box-shadow:0 .5rem 2rem rgba(20,35,59,.25); }
#confirmModal .modal-header{ border-bottom:0; padding-bottom:.25rem; }
#confirmModal .modal-body{ font-size:.95rem; color:var(--sp-text,#697a8d); }
#confirmModal .btn-confirm-ok{ background:var(--sp-brand,#FF9D3C); border-color:var(--sp-brand,#FF9D3C); color:#fff; }
#confirmModal .btn-confirm-ok:hover{ filter:brightness(.95); }

/* ============================================================
   Report / content pages — NUZN People house style
   (page hero banner + polished option-panel cards)
   ============================================================ */
.page-hero{
    border-radius:14px; padding:24px 28px; color:#fff; position:relative; overflow:hidden;
    background:linear-gradient(115deg,#1b2a6b 0%,#4c2f83 52%,#7c2b4f 100%);
    box-shadow:var(--sp-shadow); margin-bottom:18px;
}
.page-hero::after{content:"";position:absolute;right:-40px;top:-70px;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.06);}
.page-hero::before{content:"";position:absolute;right:130px;bottom:-100px;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.05);}
.page-hero .eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:700;opacity:.82;position:relative;}
.page-hero h1{font-weight:900;font-size:1.9rem;color:#fff;margin:6px 0 8px;letter-spacing:-.3px;position:relative;}
.page-hero p{opacity:.86;max-width:640px;margin:0 0 14px;font-size:.9rem;position:relative;}
.page-hero .hpill{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:30px;padding:5px 13px;font-size:12px;font-weight:600;margin-right:8px;position:relative;}
.page-hero .hpill .dot{width:8px;height:8px;border-radius:50%;background:#3ce88f;box-shadow:0 0 0 4px rgba(60,232,143,.25);}

/* report-type selector row */
.rpt-select label{font-size:11px;letter-spacing:.5px;text-transform:uppercase;font-weight:700;color:var(--sp-muted);margin-bottom:5px;display:block;}

/* upgrade option-panel cards inside a report page */
.rpt-page .card{border:1px solid var(--sp-line);border-radius:14px;box-shadow:var(--sp-shadow);overflow:hidden;}
.rpt-page .card-header{background:#fff;border-bottom:1px solid var(--sp-line);padding:15px 20px;color:#22314f;}
.rpt-page .card-header strong{font-weight:800;font-size:.98rem;}
.rpt-page .card-body{padding:20px 22px;}
.rpt-page .em-lbl{color:#3f4bd6;}

/* ============================================================
   Dashboard — professional KPI cards, quick actions, hero refresh
   ============================================================ */
.page-hero .hero-refresh{position:absolute;right:28px;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:10px;padding:11px 20px;font-weight:700;font-size:.85rem;text-decoration:none;}
.page-hero .hero-refresh:hover{background:rgba(255,255,255,.26);color:#fff;}

.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
@media (max-width:1200px){.kpis{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.kpis{grid-template-columns:1fr;}}
.kpi{border-radius:16px;padding:20px;color:#fff;position:relative;overflow:hidden;min-height:128px;box-shadow:var(--sp-shadow);}
.kpi .ic{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:1.25rem;margin-bottom:12px;}
.kpi .lbl{font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:700;opacity:.92;}
.kpi .val{font-size:1.85rem;font-weight:900;line-height:1.05;margin:2px 0;color:#fff;}
.kpi .sub{font-size:12px;opacity:.82;}
.kpi::after{content:"";position:absolute;right:-30px;bottom:-45px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.1);}
.k-blue{background:linear-gradient(135deg,#3f6fe0,#5b8def);}
.k-orange{background:linear-gradient(135deg,#f0872a,#f7a441);}
.k-teal{background:linear-gradient(135deg,#1f9fc4,#39bdd6);}
.k-green{background:linear-gradient(135deg,#12a594,#1fc3a6);}
.k-purple{background:linear-gradient(135deg,#7b5cf0,#9a7bf5);}
.k-indigo{background:linear-gradient(135deg,#5b6ee0,#7385ef);}

.qa{background:#fff;border:1px solid var(--sp-line);border-radius:14px;box-shadow:var(--sp-shadow);padding:14px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.qa .lab{font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:800;color:var(--sp-muted);}
.qa a{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--sp-line);border-radius:10px;padding:8px 14px;font-weight:700;font-size:.82rem;color:#3f4b66;text-decoration:none;background:#fbfcfe;}
.qa a:hover{border-color:#c9d3e8;background:#f4f7ff;}

.dash-panel{border-radius:14px;box-shadow:var(--sp-shadow);border:1px solid var(--sp-line);}

/* ============================================================
   Dashboard lower panels — classy (earners, dept table, payroll)
   ============================================================ */
.earn{display:flex;align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid #f3f5f9;}
.earn:last-child{border-bottom:none;}
.earn:hover{background:#f9fbff;border-radius:10px;}
.earn .rank{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.8rem;color:#fff;flex-shrink:0;}
.earn .rank.r1{background:linear-gradient(135deg,#f7b733,#f57c00);}
.earn .rank.r2{background:linear-gradient(135deg,#a7b2c6,#77839b);}
.earn .rank.r3{background:linear-gradient(135deg,#e0916a,#c56a3a);}
.earn .rank.rn{background:#eef2f8;color:#94a0b5;}
.earn .ava{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e9eefb,#d7e2f7);color:#4257a8;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.8rem;flex-shrink:0;}
.earn .nm{font-weight:800;color:#2b3a55;font-size:.9rem;line-height:1.15;}
.earn .mt{font-size:.72rem;color:var(--sp-muted);}
.earn .amt{margin-left:auto;text-align:right;}
.earn .amt b{font-weight:900;color:#22314f;font-size:1rem;}
.earn .amt .ep{display:block;font-size:.66rem;color:#12875a;font-weight:700;}

.dt{width:100%;border-collapse:separate;border-spacing:0;}
.dt th{font-size:.66rem;text-transform:uppercase;letter-spacing:.6px;color:var(--sp-muted);font-weight:700;padding:6px 10px 10px;border-bottom:1px solid #eef1f6;text-align:right;}
.dt th:first-child{text-align:left;}
.dt td{padding:11px 10px;border-bottom:1px solid #f4f6fa;font-size:.82rem;text-align:right;font-variant-numeric:tabular-nums;color:#4a5670;}
.dt td:first-child{text-align:left;font-weight:700;color:#2b3a55;}
.dt tr:hover td{background:#f8faff;}
.dt .dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:10px;}
.dt .amt2{font-weight:800;color:#22314f;}
.effc{display:inline-flex;align-items:center;gap:9px;justify-content:flex-end;}
.effc .meter{width:68px;height:7px;border-radius:6px;background:#eef1f6;overflow:hidden;}
.effc .meter>i{display:block;height:100%;border-radius:6px;}
.badge2{min-width:60px;text-align:center;font-weight:800;font-size:.68rem;border-radius:20px;padding:3px 8px;display:inline-block;}
.b-green{background:#e6f7ef;color:#12875a;}.m-green{background:linear-gradient(90deg,#1fc3a6,#12a594);}
.b-blue{background:#e8f1fe;color:#2f6bed;}.m-blue{background:linear-gradient(90deg,#5b8def,#3f6fe0);}
.b-amber{background:#fff4e0;color:#b26a00;}.m-amber{background:linear-gradient(90deg,#ffbf5a,#f0872a);}
.b-red{background:#fdecec;color:#d64545;}.m-red{background:linear-gradient(90deg,#f47b7b,#e25555);}

.pr{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid #f3f5f9;}
.pr:last-child{border-bottom:none;}
.pchip{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1rem;flex-shrink:0;}
.pc1{background:linear-gradient(135deg,#5b8def,#3f6fe0);}
.pc2{background:linear-gradient(135deg,#f7a441,#f0872a);}
.pc3{background:linear-gradient(135deg,#1fc3a6,#12a594);}
.pl{font-weight:700;color:#2b3a55;font-size:.85rem;}
.psub{font-size:.7rem;color:var(--sp-muted);}
.pv{margin-left:auto;font-weight:800;color:#22314f;}
.net{border:1px solid #ffd8ab;background:linear-gradient(180deg,#fff8ef,#fff3e2);border-radius:12px;padding:13px 14px;margin-top:8px;}

/* ============================================================
   Dashboard — ManufacturePro light content (dark sidebar kept)
   ============================================================ */
.dash-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px;}
.dash-topbar .dash-h{font-weight:800;font-size:1.5rem;color:#1f2a44;}
.dash-topbar .dash-sub{font-size:.82rem;color:var(--sp-muted);}
.dash-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.dash-actions .fbtn{background:#fff;border:1px solid var(--sp-line);border-radius:10px;padding:8px 14px;font-weight:600;font-size:.82rem;color:#4a5468;display:inline-flex;align-items:center;gap:8px;}
.dash-actions .btn-line{background:#fff;border:1px solid var(--sp-line);border-radius:10px;padding:8px 15px;font-weight:600;font-size:.82rem;color:#3b57d6;text-decoration:none;display:inline-flex;align-items:center;gap:6px;}
.dash-actions .btn-line:hover{background:#f4f7ff;}
.dash-actions .btn-dark{background:#1f2a44;border:none;border-radius:10px;padding:8px 16px;font-weight:600;font-size:.82rem;color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:6px;}
.dash-actions .btn-dark:hover{background:#12203c;color:#fff;}

.mkpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px;}
@media (max-width:1100px){.mkpis{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.mkpis{grid-template-columns:1fr;}}
.mkpi{border-radius:16px;padding:18px;border:1px solid var(--sp-line);position:relative;}
.mkpi .ic{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.15rem;position:absolute;right:16px;top:16px;}
.mkpi .lb{font-size:.8rem;color:#6b7486;font-weight:600;}
.mkpi .vl{font-size:1.6rem;font-weight:800;color:#1f2a44;margin:8px 0 6px;}
.mkpi .vl small{font-size:.8rem;color:var(--sp-muted);font-weight:600;}
.mkpi .dl{font-size:.7rem;font-weight:600;display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:2px 9px;}
.mk-blue{background:#eef4ff;}.mk-blue .ic{background:#3b82f6;}
.mk-green{background:#eafaf1;}.mk-green .ic{background:#22c55e;}
.mk-cyan{background:#e8f8fb;}.mk-cyan .ic{background:#06b6d4;}
.mk-purple{background:#f1eefe;}.mk-purple .ic{background:#8b5cf6;}
.mk-amber{background:#fff8ec;}.mk-amber .ic{background:#f59e0b;}
.mk-red{background:#fdeeee;}.mk-red .ic{background:#ef4444;}
.dl.up{background:#e6f7ee;color:#16a34a;}.dl.flat{background:#eef0f4;color:#6b7486;}.dl.down{background:#fdecec;color:#ef4444;}

/* ============================================================
   Dashboard — no empty space: panels fit content, long tables scroll
   ============================================================ */
.dash-scroll{max-height:380px;overflow-y:auto;}
.dash-scroll::-webkit-scrollbar{width:7px;}
.dash-scroll::-webkit-scrollbar-thumb{background:#dfe3ea;border-radius:6px;}
.dash-scroll::-webkit-scrollbar-track{background:transparent;}
.dash-scroll .dt thead th{position:sticky;top:0;background:#fff;z-index:2;}

/* ============================================================
   Master grid — classy light (scoped: add .grid-classy wrapper)
   ============================================================ */
.grid-classy .ph{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px;}
.grid-classy .ph .t{display:flex;align-items:center;gap:12px;}
.grid-classy .ph .ic{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#eef2ff,#e0e7ff);color:#4c5fd5;display:flex;align-items:center;justify-content:center;font-size:1.15rem;}
.grid-classy .ph .tt{font-weight:800;font-size:1.25rem;color:#22314f;line-height:1;}
.grid-classy .ph .ts{font-size:.75rem;color:var(--sp-muted);}
.grid-classy .card{border:1px solid var(--sp-line);border-radius:16px;box-shadow:var(--sp-shadow);}
.grid-classy .card-body{padding:6px 8px 10px;}
.grid-classy div.dt-buttons{margin:10px 12px;gap:8px;}
.grid-classy .dt-search,.grid-classy .dataTables_filter{margin:10px 12px;}
.grid-classy .dt-search input,.grid-classy .dataTables_filter input{border:1px solid var(--sp-line);border-radius:22px;padding:8px 14px;font-size:.82rem;background:#fbfcfe;min-width:230px;margin-left:8px;}
.grid-classy table.dataTable{border-collapse:separate;border-spacing:0;}
.grid-classy table.dataTable thead th{font-size:.8rem;text-transform:none;letter-spacing:normal;color:#334155;font-weight:700;background:#fff;border-bottom:2px solid #eceef3;padding:14px 16px;}
.grid-classy table.dataTable tbody td{padding:14px 16px;border-bottom:1px solid #eef1f6;font-size:.85rem;vertical-align:middle;color:#334155;}
.grid-classy table.dataTable.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:transparent;box-shadow:none;background:transparent;}
.grid-classy table.dataTable tbody tr:hover>*{background:#f8faff;}
.grid-classy .pagination{margin:10px 12px 4px;}
.grid-classy .page-link{border:1px solid var(--sp-line)!important;border-radius:8px!important;margin:0 3px;color:#5b6b86;font-weight:600;font-size:.8rem;}
.grid-classy .page-item.active .page-link{background:#f57c00!important;border-color:#f57c00!important;color:#fff!important;}
.grid-classy .dt-info{color:var(--sp-muted);font-size:.78rem;padding:8px 14px;}

/* ============================================================
   Classy modal (add .modal-classy to a .modal) — masters
   ============================================================ */
.modal-classy .modal-content{border:none;border-radius:16px;box-shadow:0 24px 60px rgba(20,33,61,.28);overflow:hidden;}
.modal-classy .modal-header{border-bottom:1px solid var(--sp-line);padding:17px 22px;background:#fff;}
.modal-classy .mh-ic{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#eef2ff,#e0e7ff);color:#4c5fd5;display:flex;align-items:center;justify-content:center;font-size:1rem;}
.modal-classy .modal-title{font-weight:800;color:#22314f;font-size:1.05rem;}
.modal-classy .modal-body{padding:20px 22px;}
.modal-classy .modal-body .form-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.5px;color:var(--sp-muted);font-weight:700;margin-bottom:5px;}
.modal-classy .modal-body .form-control{border:1px solid var(--sp-line);border-radius:10px;padding:10px 13px;background:#fbfcfe;font-size:.9rem;}
.modal-classy .modal-body .form-control:focus{background:#fff;border-color:#f6a04a;box-shadow:0 0 0 .2rem rgba(245,124,0,.15);}
.modal-classy .modal-body .form-control[readonly]{background:#f1f3f8;color:#8a93a3;}
.modal-classy .modal-footer{border-top:1px solid var(--sp-line);padding:14px 22px;gap:8px;}
.modal-classy .modal-footer .btn-secondary{background:#fff;border:1px solid var(--sp-line);color:#5b6b86;border-radius:10px;font-weight:600;}
.modal-classy .modal-footer .btn-secondary:hover{background:#f4f5f9;color:#22314f;border-color:#c9d3e8;}

/* ============================================================
   GLOBAL — NUZN People button & chip theme (blue solid)
   ============================================================ */
:root{ --nz-blue:#2f52d4; --nz-blue-d:#2743b0; --nz-red:#e5484d; --nz-red-d:#c93b40; --nz-green:#17a44e; }

/* export buttons (DataTables) -> solid blue */
.dt-buttons .btn,.dt-button{background:var(--nz-blue)!important;border:1px solid var(--nz-blue)!important;color:#fff!important;border-radius:8px!important;font-weight:600!important;box-shadow:none!important;}
.dt-buttons .btn:hover,.dt-button:hover{background:var(--nz-blue-d)!important;border-color:var(--nz-blue-d)!important;color:#fff!important;}

/* grid edit/delete -> solid blue/red WITH text label */
.btn.js-edit{background:var(--nz-blue);border:1px solid var(--nz-blue);color:#fff;border-radius:8px;padding:.34rem .7rem;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;vertical-align:middle;}
.btn.js-edit:hover{background:var(--nz-blue-d);border-color:var(--nz-blue-d);color:#fff;}
.btn.js-edit::after{content:"Edit";margin-left:5px;font-size:.8rem;}
.btn.js-del{background:var(--nz-red);border:1px solid var(--nz-red);color:#fff;border-radius:8px;padding:.34rem .7rem;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;vertical-align:middle;}
.btn.js-del:hover{background:var(--nz-red-d);border-color:var(--nz-red-d);color:#fff;}
.btn.js-del::after{content:"Delete";margin-left:5px;font-size:.8rem;}

/* danger buttons -> solid red */
.btn-danger{background:var(--nz-red);border:none;color:#fff;}
.btn-danger:hover{background:var(--nz-red-d);color:#fff;}

/* status chips -> solid pills */
.badge.bg-success{background:var(--nz-green)!important;color:#fff!important;border-radius:20px;padding:.4em .85em;font-weight:700;}
.badge.bg-secondary{background:#9aa3b2!important;color:#fff!important;border-radius:20px;padding:.4em .85em;font-weight:700;}
.badge.bg-danger{background:var(--nz-red)!important;color:#fff!important;border-radius:20px;padding:.4em .85em;font-weight:700;}

/* classy modal header -> NUZN blue gradient */
.modal-classy .modal-header{background:linear-gradient(120deg,#1f2a78,#3a4fc4);border-bottom:none;}
.modal-classy .modal-title{color:#fff;}
.modal-classy .modal-header .mh-ic{background:rgba(255,255,255,.18);color:#fff;}
.modal-classy .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(1.8);}

/* ============================================================
   GLOBAL — blue header strip on ALL form modals (NUZN style)
   (confirm/alert dialogs keep their own .bg-dark header)
   ============================================================ */
.modal-content{border:none;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgba(20,33,61,.28);}
.modal-content .modal-header{background:linear-gradient(120deg,#1f2a78,#3a4fc4);border-bottom:none;padding:16px 22px;}
.modal-content .modal-header .modal-title{color:#fff;font-weight:800;}
.modal-content .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(1.8);opacity:.9;}
.modal-content .modal-header .mh-ic{background:rgba(255,255,255,.18);color:#fff;}

/* ============================================================
   GLOBAL — clean modern grid rows (kill striping, NUZN look)
   ============================================================ */
table.dataTable.table-striped{--bs-table-striped-bg:transparent;--bs-table-striped-color:inherit;}
table.dataTable>tbody>tr>td{background:#fff;border-bottom:1px solid #eef1f6;padding:14px 16px;vertical-align:middle;color:#334155;font-size:.85rem;}
table.dataTable>tbody>tr:last-child>td{border-bottom:none;}
table.dataTable>tbody>tr:hover>td{background:#f7f9ff!important;}
table.dataTable>thead>tr>th{background:#fff;border-bottom:2px solid #eceef3;text-transform:none;letter-spacing:normal;font-size:.8rem;color:#334155;font-weight:700;padding:14px 16px;}
table.dataTable{border-bottom:none;}

/* keep edit/delete side by side, never wrap */
td .js-edit,td .js-del{margin:2px 3px;}
