table.pretty {
    width: 100%;
}

table.pretty th, table.pretty td {
    border: 1px solid gainsboro;
    padding: 0.2em;
}

table.pretty caption {
    font-style: italic;
    font-weight: bold;
    margin-left: inherit;
    margin-right: inherit;
}

table.pretty thead tr th {
    border-bottom: 2px solid;
    font-weight: bold;
    text-align: center;
}

table.pretty thead tr th.empty {
    border: 0 none;
}

table.pretty tfoot tr th {
    border-bottom: 2px solid;
    border-top: 2px solid;
    font-weight: bold;
    text-align: center;
}

table.pretty tbody tr th {
    text-align: center;
}

table.pretty tbody tr td {
    border-top: 1px solid;
    text-align: center;
}

table.pretty tbody tr.odd td {
    background: none repeat scroll 0 0 #EBF4FB;
}

table.pretty tbody tr.even td {
    background: none repeat scroll 0 0 #BCEEEE;
}

table.pretty thead tr th.highlightcol {
    border-color: #2E6E9E #2E6E9E gainsboro;
    border-style: solid;
    border-width: 2px 2px 1px;
}

table.pretty tfoot tr th.highlightcol {
    border-left: 2px solid #2E6E9E;
    border-right: 2px solid #2E6E9E;
}

table.pretty thead tr th.lefthighlightcol, table.pretty tbody tr td.lefthighlightcol, table.pretty tfoot tr th.lefthighlightcol {
    border-left: 2px solid #2E6E9E;
}

table.pretty thead tr th.righthighlightcol, table.pretty tbody tr td.righthighlightcol, table.pretty tfoot tr th.righthighlightcol {
    border-right: 2px solid #2E6E9E;
}

table.pretty thead tr th.lefthighlightcolheader, table.pretty tbody tr td.lefthighlightcolheader, table.pretty tfoot tr th.lefthighlightcolheader {
    border-left: 2px solid #2E6E9E;
}

table.pretty thead tr th.righthighlightcolheader, table.pretty tbody tr td.righthighlightcolheader, table.pretty tfoot tr th.righthighlightcolheader {
    border-right: 2px solid #2E6E9E;
}

.strikethrough {
    text-decoration: line-through;
    color: red;
}

.month, .year {
    margin: 2px;
}

caption, th {
    text-align: left;
}

.font-11 {
    font-size: 11px;
}

.style-0 {
    empty-cells: show;
    table-layout: fixed;
    width: 1315pt;
}

.style-1 {
    color: white;
    padding-left: 10pt;
    font-size: 14pt;
    font-family: "Arial";
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
    text-align: left;
    word-spacing: 0pt;
    letter-spacing: 0pt;
    background-color: #339933;
}

.opacity-75 {
    opacity: 0.75;
    filter: alpha(opacity=75);
}
.opacity-50 {
    opacity: 0.5;
    filter: alpha(opacity=50);
}
.opacity-25 {
    opacity: 0.25;
    filter: alpha(opacity=25);
}
.opacity-0 {
    opacity: 0;
    filter: alpha(opacity=0);
}
.no-edge-top {
    top: 0;
}
.no-edge-bottom {
    bottom: 0;
}
.no-edge-left {
    left: 0;
}
.no-edge-right {
    right: 0;
}
.user_name {
    font-size: 14px;
    font-weight: bold;
}
.comments-list .media {
    border-bottom: 1px dotted #ccc;
}

/* =========================================================
   UI POLISH — modern palette, typography, and component refresh
   ========================================================= */

:root {
    --brand-900: #064E3B;
    --brand-800: #065F46;
    --brand-700: #047857;
    --brand-600: #059669;
    --brand-500: #10B981;
    --brand-400: #34D399;
    --brand-300: #6EE7B7;
    --brand-100: #ECFDF5;

    --accent: #F97316;
    --accent-dark: #EA580C;
    --accent-light: #FFF7ED;

    --cyan: #06B6D4;
    --red: #EF4444;
    --green: #22C55E;
    --orange: #F59E0B;
    --purple: #8B5CF6;
    --pink: #EC4899;

    --success: #16A34A;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #0EA5E9;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;

    --radius: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);

    --heading-font: "Plus Jakarta Sans", "Source Sans Pro", -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(4, 120, 87, .05), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(5, 150, 105, .06), transparent 45%),
        var(--bg);
    color: var(--text);
}

/* Typography ------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--brand-900);
    letter-spacing: -.01em;
}

.content-header h1 {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--brand-900);
    display: flex;
    align-items: center;
    gap: .75rem;
}

label:not(.form-check-label):not(.custom-file-label) {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted);
}

a {
    color: var(--brand-700);
}
a:hover {
    color: var(--brand-500);
}

::selection {
    background: var(--accent-light);
    color: var(--brand-900);
}

/* Focus visibility (accessibility) --------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.custom-select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Layout / content wrapper ------------------------------------ */
.content-wrapper {
    background: var(--bg);
}

.content-header {
    padding-top: 1.5rem;
    padding-bottom: .5rem;
}

.breadcrumb {
    background: transparent;
    font-size: .85rem;
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}
.breadcrumb-item a {
    color: var(--brand-700);
    font-weight: 500;
}

/* Top header --------------------------------------------------- */
.main-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Sidebar -------------------------------------------------------- */
.main-sidebar,
.main-sidebar .sidebar {
    background: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 100%);
}

.brand-link {
    font-family: var(--heading-font);
    font-weight: 700;
    background: var(--brand-900);
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

.user-panel {
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

.user-panel .info,
.user-panel a {
    color: rgba(255, 255, 255, .85);
}

/* Glassmorphism nav tiles ------------------------------------------ */
.nav-sidebar.nav-pills,
.sidebar-menu {
    padding: 0 .5rem;
}

.nav-sidebar > .nav-item,
.sidebar-menu > li {
    margin-bottom: 8px;
}

.nav-sidebar > .nav-item > .nav-link,
.sidebar-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 11px 14px;
    margin: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.nav-sidebar > .nav-item > .nav-link:hover,
.sidebar-menu > li:hover > a {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
    transform: translateX(2px);
}

.nav-sidebar > .nav-item > .nav-link.active,
.sidebar-menu > li.active > a {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .22);
    color: #fff !important;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
    transform: none;
}

.nav-sidebar .nav-icon,
.sidebar-menu > li > a > i {
    color: inherit;
    opacity: .95;
    width: 20px;
    text-align: center;
}

/* Cycle icon accents through the brand palette on inactive tiles */
.nav-sidebar > .nav-item:nth-of-type(6n+1) > .nav-link:not(.active) .nav-icon { color: #6EE7B7; }
.nav-sidebar > .nav-item:nth-of-type(6n+2) > .nav-link:not(.active) .nav-icon { color: #A7F3D0; }
.nav-sidebar > .nav-item:nth-of-type(6n+3) > .nav-link:not(.active) .nav-icon { color: #C4B5FD; }
.nav-sidebar > .nav-item:nth-of-type(6n+4) > .nav-link:not(.active) .nav-icon { color: #FCD34D; }
.nav-sidebar > .nav-item:nth-of-type(6n+5) > .nav-link:not(.active) .nav-icon { color: #FCA5A5; }
.nav-sidebar > .nav-item:nth-of-type(6n+6) > .nav-link:not(.active) .nav-icon { color: #F9A8D4; }

/* Top navbar — vibrant brand bar */
.main-header.navbar-light,
.navbar-light.main-header {
    background: linear-gradient(90deg, #065F46 0%, #0D9488 55%, #10B981 100%);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(6, 95, 70, .18);
}
.main-header.navbar-light .nav-link,
.navbar-light.main-header .nav-link {
    color: rgba(255, 255, 255, .92) !important;
}
.main-header.navbar-light .nav-link:hover,
.navbar-light.main-header .nav-link:hover {
    color: #fff !important;
}

/* Cards ------------------------------------------------------------ */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--brand-900);
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card-preview,
.card-bordered {
    border: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons --------------------------------------------------------- */
.btn {
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: var(--radius);
    padding: .5rem 1.1rem;
    transition: transform .1s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand-700);
    border-color: var(--brand-700);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-600);
    border-color: var(--brand-600);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}
.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}
.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: #fff;
}
.btn-info {
    background: var(--info);
    border-color: var(--info);
}

.btn-outline-light {
    border-color: var(--border);
    color: var(--text);
}
.btn-outline-light:hover {
    background: var(--brand-100);
    border-color: var(--brand-100);
    color: var(--brand-900);
}

/* Forms ------------------------------------------------------------- */
.form-control,
.custom-select,
.vs__dropdown-toggle {
    border-radius: var(--radius);
    border-color: var(--border);
    padding-top: .5rem;
    padding-bottom: .5rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.form-group {
    margin-bottom: 1.15rem;
}

/* Tables -------------------------------------------------------------- */
.table thead th {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    background: var(--brand-100);
    border-bottom: none;
}

.table td,
.table th {
    border-color: var(--border);
}

.table-hover tbody tr:hover {
    background: var(--brand-100);
}

/* Badges ---------------------------------------------------------------- */
.badge {
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: 999px;
    padding: .3em .7em;
}

/* Scrollbar (webkit) ------------------------------------------------------ */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* Print fix ----------------------------------------------------------------- */
@media print {
    body, .container, .container-fluid, .wrapper, .content-wrapper {
        min-width: 0 !important;
        width: 100% !important;
    }
    .content-wrapper {
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    .main-sidebar,
    .main-header,
    .content-header .btn,
    .content-header .breadcrumb,
    #sidebar-overlay {
        display: none !important;
    }
    table {
        width: 100% !important;
        font-size: 9pt;
    }
}

/* Vibrant stat cards (dashboard summary tiles) ---------------------------- */
.small-box,
.info-box,
.stat-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.small-box:hover,
.info-box:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.small-box[class*="bg-"],
.info-box[class*="bg-"] {
    color: #fff;
}

.small-box .icon,
.info-box-icon {
    opacity: 1;
}
.small-box h3,
.info-box-number,
.stat-card .stat-value {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--brand-900);
}
.small-box[class*="bg-"] h3,
.info-box[class*="bg-"] .info-box-number {
    color: #fff;
}
.small-box p,
.info-box-text,
.stat-card .stat-label {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}
.small-box[class*="bg-"] p,
.info-box[class*="bg-"] .info-box-text {
    color: rgba(255, 255, 255, .9);
}

/* Icon square */
.icon-box,
.widget-icon,
.small-box > .icon,
.info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: calc(var(--radius) - .15rem);
}

.bg-cyan, .small-box.bg-info, .info-box.bg-info { background: var(--cyan) !important; }
.bg-red, .small-box.bg-danger, .info-box.bg-danger { background: var(--red) !important; }
.bg-green, .small-box.bg-success, .info-box.bg-success { background: var(--green) !important; }
.bg-orange, .small-box.bg-warning, .info-box.bg-warning { background: var(--orange) !important; }
.bg-purple { background: var(--purple) !important; }

/* Pill action-bar buttons */
.btn-pill,
.action-bar .btn {
    border-radius: 999px;
    padding: .45rem 1.25rem;
    font-size: .85rem;
    box-shadow: var(--shadow-sm);
}
.action-bar .btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Status badges */
.badge-warning { background: var(--orange) !important; color: #fff; }
.badge-info { background: var(--cyan) !important; color: #fff; }
.badge-danger { background: var(--red) !important; color: #fff; }
.badge-success { background: var(--green) !important; color: #fff; }
.badge-primary { background: var(--brand-700) !important; color: #fff; }
.badge-secondary { background: var(--text-muted) !important; color: #fff; }

/* .btn-info — primary listing actions */
.btn-info {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
}
.btn-info:hover,
.btn-info:focus {
    background: #0891B2;
    border-color: #0891B2;
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Table action buttons */
.btn-group .btn,
.btn-trigger.btn-icon,
.btn-default {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-group .btn:hover,
.btn-trigger.btn-icon:hover,
.btn-default:hover {
    background: var(--brand-100);
    color: var(--brand-900);
    box-shadow: var(--shadow-sm);
}
.btn-group .dropdown-toggle::after {
    vertical-align: middle;
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: .35rem;
    font-size: .9rem;
}
.dropdown-menu .dropdown-item {
    border-radius: calc(var(--radius) - .2rem);
    padding: .45rem .75rem;
    transition: background-color .1s ease;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--brand-100);
    color: var(--brand-900);
}
.dropdown-menu .dropdown-divider {
    border-color: var(--border);
    margin: .35rem 0;
}

/* Search box on listing pages */
.input-group .form-control {
    border-right: none;
}
.input-group .btn,
.input-group-append .btn {
    border: 1px solid var(--border);
    border-left: none;
    background: var(--surface);
    color: var(--text-muted);
}
.input-group:focus-within .form-control,
.input-group:focus-within .btn {
    border-color: var(--brand-500);
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}
.page-link {
    border-radius: var(--radius);
    margin: 0 .15rem;
    border-color: var(--border);
    color: var(--brand-700);
}
.page-item.active .page-link {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

/* =========================================================
   FINAL POLISH — login page, alerts, tabs, modals, dialogs
   ========================================================= */

/* Login page ----------------------------------------------------------------- */
.login-page, .register-page, body:has(.login-box), body:has(.register-box) {
    background:
        radial-gradient(circle at 12% 15%, rgba(16, 185, 129, .55), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, .45), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(249, 115, 22, .5), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(6, 182, 212, .4), transparent 40%),
        linear-gradient(135deg, #052e24 0%, var(--brand-900) 45%, #064e3b 100%);
    min-height: 100vh;
    background-attachment: fixed;
}
.login-box, .register-box {
    animation: fadeInUp .4s ease both;
}
.login-logo, .register-logo {
    margin-bottom: 1.5rem;
}
.login-logo h4, .register-logo h4 {
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 800;
}
.login-box .card, .register-box .card {
    background: transparent;
    border: none;
    box-shadow: none;
}
.login-card-body, .register-card-body {
    border-radius: 1.1rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 2.25rem;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    position: relative;
}
.login-box-msg, .register-box-msg {
    color: rgba(255, 255, 255, .8);
    margin-bottom: 1.25rem;
}
.login-card-body label,
.register-card-body label {
    color: rgba(255, 255, 255, .92) !important;
}
.login-card-body .form-control,
.register-card-body .form-control {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
}
.login-card-body .form-control::placeholder,
.register-card-body .form-control::placeholder {
    color: rgba(255, 255, 255, .55);
}
.login-card-body .form-control:focus,
.register-card-body .form-control:focus {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
    color: #fff;
}
.login-card-body .link,
.register-card-body .link {
    color: rgba(255, 255, 255, .85) !important;
}
.login-card-body .link:hover,
.register-card-body .link:hover {
    color: #fff !important;
}
.login-card-body .passcode-icon,
.register-card-body .passcode-icon {
    color: rgba(255, 255, 255, .7);
}
.login-card-body .invalid-feedback,
.register-card-body .invalid-feedback {
    color: #ffd7d2;
}
.login-card-body .form-control.is-invalid,
.register-card-body .form-control.is-invalid {
    border-color: #ff8a80;
}
.login-card-body .btn-primary,
.register-card-body .btn-primary {
    width: 100%;
    padding: .65rem;
    font-size: 1rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alerts / flash messages ----------------------------------------------------- */
.alert {
    border: none;
    border-radius: var(--radius);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-sm);
    font-family: var(--heading-font);
    font-weight: 500;
}
.alert-success { background: var(--brand-100); border-left-color: var(--success); color: #0d5c3a; }
.alert-danger { background: #FDEDEC; border-left-color: var(--danger); color: #8a2c25; }
.alert-warning { background: #FFF4E5; border-left-color: var(--warning); color: #8a5a09; }
.alert-info { background: #E8F6FC; border-left-color: var(--info); color: #0d5a78; }

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border);
}
.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.1rem;
    border-radius: 0;
    transition: color .15s ease;
}
.nav-tabs .nav-link:hover {
    color: var(--brand-700);
    border-color: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--brand-700);
    background: transparent;
    border-bottom: 2px solid var(--brand-700);
}

/* Modals ----------------------------------------------------------------------- */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    font-family: var(--heading-font);
}
.modal-footer {
    border-top: 1px solid var(--border);
}

/* SweetAlert2 confirm dialogs --------------------------------------------------- */
.swal2-popup {
    border-radius: var(--radius) !important;
    font-family: var(--heading-font);
}
.swal2-title {
    font-weight: 800 !important;
    color: var(--brand-900) !important;
}
.swal2-confirm {
    background: var(--brand-700) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
}
.swal2-cancel {
    border-radius: var(--radius) !important;
}
.swal2-icon.swal2-warning { border-color: var(--orange) !important; color: var(--orange) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--green) !important; }
.swal2-icon.swal2-error { border-color: var(--red) !important; color: var(--red) !important; }

/* Custom checkboxes / radios / switches ----------------------------------------- */
.custom-control-input:checked ~ .custom-control-label::before {
    background: var(--brand-700);
    border-color: var(--brand-700);
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background: var(--brand-700);
}

/* Subtle entrance motion for main content -------------------------------------- */
.content-wrapper > .content,
.content-wrapper > section.content {
    animation: fadeInUp .25s ease both;
}

/* Empty-state polish */
.dataTables_empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0 !important;
}

/* Report category cards */
.report-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.report-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-500);
    text-decoration: none;
}
.report-category-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    transition: background-color .15s ease, color .15s ease;
}
.report-category-card:hover .report-category-icon {
    background: var(--brand-700);
    color: #fff;
}
.report-category-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-900);
    margin-bottom: .6rem;
}
.report-category-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: auto;
}
.report-category-card:hover .report-category-link {
    color: var(--brand-700);
}
.report-category-link i {
    margin-left: .3rem;
    transition: transform .15s ease;
}
.report-category-card:hover .report-category-link i {
    transform: translateX(3px);
}

/* =========================================================
   Colorful card accents (Reports / menu section landing pages)
   ========================================================= */

.report-category-card {
    position: relative;
    overflow: hidden;
}
.report-category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    transition: background-color .15s ease;
}

.report-category-icon {
    background: var(--brand-100);
    color: var(--brand-700);
}

/* --- cyan --- */
.report-category-card.accent-cyan::before { background: var(--cyan); }
.report-category-card.accent-cyan .report-category-icon { background: rgba(6, 182, 212, .14); color: var(--cyan); }
.report-category-card.accent-cyan:hover { border-color: var(--cyan); }
.report-category-card.accent-cyan:hover .report-category-icon { background: var(--cyan); color: #fff; }
.report-category-card.accent-cyan:hover .report-category-link { color: var(--cyan); }

/* --- purple --- */
.report-category-card.accent-purple::before { background: var(--purple); }
.report-category-card.accent-purple .report-category-icon { background: rgba(139, 92, 246, .14); color: var(--purple); }
.report-category-card.accent-purple:hover { border-color: var(--purple); }
.report-category-card.accent-purple:hover .report-category-icon { background: var(--purple); color: #fff; }
.report-category-card.accent-purple:hover .report-category-link { color: var(--purple); }

/* --- orange --- */
.report-category-card.accent-orange::before { background: var(--orange); }
.report-category-card.accent-orange .report-category-icon { background: rgba(245, 158, 11, .16); color: var(--orange); }
.report-category-card.accent-orange:hover { border-color: var(--orange); }
.report-category-card.accent-orange:hover .report-category-icon { background: var(--orange); color: #fff; }
.report-category-card.accent-orange:hover .report-category-link { color: var(--orange); }

/* --- red / coral --- */
.report-category-card.accent-red::before { background: var(--red); }
.report-category-card.accent-red .report-category-icon { background: rgba(239, 68, 68, .14); color: var(--red); }
.report-category-card.accent-red:hover { border-color: var(--red); }
.report-category-card.accent-red:hover .report-category-icon { background: var(--red); color: #fff; }
.report-category-card.accent-red:hover .report-category-link { color: var(--red); }

/* --- pink --- */
.report-category-card.accent-pink::before { background: var(--pink); }
.report-category-card.accent-pink .report-category-icon { background: rgba(236, 72, 153, .14); color: var(--pink); }
.report-category-card.accent-pink:hover { border-color: var(--pink); }
.report-category-card.accent-pink:hover .report-category-icon { background: var(--pink); color: #fff; }
.report-category-card.accent-pink:hover .report-category-link { color: var(--pink); }

/* --- brand green --- */
.report-category-card.accent-green::before { background: var(--brand-700); }
.report-category-card.accent-green .report-category-icon { background: var(--brand-100); color: var(--brand-700); }
.report-category-card.accent-green:hover { border-color: var(--brand-500); }
.report-category-card.accent-green:hover .report-category-icon { background: var(--brand-700); color: #fff; }
.report-category-card.accent-green:hover .report-category-link { color: var(--brand-700); }

/* =========================================================
   Dashboard vibrance pass — stat tiles, progress bar, chart cards
   ========================================================= */

.small-box, .info-box, .stat-card {
    position: relative;
}
.small-box::before, .info-box::before, .stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-700);
}
.small-box.bg-info::before, .info-box.bg-info::before { background: var(--cyan); }
.small-box.bg-success::before, .info-box.bg-success::before { background: var(--green); }
.small-box.bg-warning::before, .info-box.bg-warning::before { background: var(--orange); }
.small-box.bg-danger::before, .info-box.bg-danger::before { background: var(--red); }
.small-box.bg-purple::before, .info-box.bg-purple::before { background: var(--purple); }

/* Filled tiles → soft gradient */
.small-box.bg-info, .info-box.bg-info { background: linear-gradient(135deg, var(--cyan), #22d3ee) !important; }
.small-box.bg-success, .info-box.bg-success { background: linear-gradient(135deg, var(--green), var(--brand-500)) !important; }
.small-box.bg-warning, .info-box.bg-warning { background: linear-gradient(135deg, var(--orange), #fbbf24) !important; }
.small-box.bg-danger, .info-box.bg-danger { background: linear-gradient(135deg, var(--red), #f87171) !important; }
.small-box.bg-purple, .info-box.bg-purple { background: linear-gradient(135deg, var(--purple), #a78bfa) !important; }

/* Icon square: soft shadow + glass on filled tiles */
.icon-box, .widget-icon, .small-box > .icon, .info-box-icon {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}
.small-box[class*="bg-"] > .icon,
.info-box[class*="bg-"] .info-box-icon {
    background: rgba(255, 255, 255, .22) !important;
}

/* Plain white stat tiles: brand green icon square */
.small-box:not([class*="bg-"]) .icon,
.info-box:not([class*="bg-"]) .info-box-icon {
    background: var(--brand-100);
    color: var(--brand-700);
}

/* Progress bars */
.progress {
    background: var(--brand-100);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}
.progress-bar {
    background: linear-gradient(90deg, var(--brand-700), var(--cyan)) !important;
    border-radius: 999px;
}

/* Chart cards top-strip */
.card:has(canvas) {
    position: relative;
    overflow: hidden;
}
.card:has(canvas)::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-700), var(--cyan), var(--purple));
}

/* Footer ------------------------------------------------------------------- */
.main-footer {
    background: var(--surface);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #065F46, #0D9488, #10B981) 1;
    padding: 1rem 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
    box-shadow: 0 -2px 10px rgba(6, 95, 70, .06);
}
.main-footer strong,
.main-footer b {
    color: var(--brand-900);
    font-family: var(--heading-font);
}