/* ==========================================================
   CKD PORTAL — Chronic Kidney Disease Management System
   Layout  : Sidebar ALWAYS visible, fixed width — no toggling
   Theme   : Royal Navy & Tech Blue (matches Landing & Login Portal)
   Header  : White with Govt. Accent, left edge always = sidebar width
   Font    : Noto Serif (headings) + Segoe UI (body), 14px base
   ========================================================== */

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

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
    /* Brand blues matching Landing Page and Login Page */
    --primary-blue:        #1b61e4;
    --primary-dark-blue:   #0b409c;
    --deep-navy:           #062b70;
    --hero-blue-start:     #063994;
    --hero-blue-end:       #0f52c6;
    --accent-orange:       #f57215;
    --accent-orange-hover: #e06005;

    /* Sidebar / Navbar colours */
    --sidebar-bg-top:      #0b409c;
    --sidebar-bg-bot:      #062b70;
    --sidebar-text:        rgba(255,255,255,0.78);
    --sidebar-text-active: #ffffff;
    --sidebar-hover-bg:    rgba(255,255,255,0.12);
    --sidebar-active-bg:   rgba(255,255,255,0.22);
    --sidebar-sep:         rgba(255,255,255,0.12);

    /* Sidebar dimensions — FIXED, never changes */
    --sidebar-width:  230px;
    --header-height:  66px;

    /* Header */
    --header-bg:       #ffffff;
    --header-border:   rgba(0,0,0,0.08);

    /* Body */
    --bg-body:   #f8fafc;
    --bg-card:   #ffffff;

    /* Brand blues (mapped from legacy greens to preserve all token usages) */
    --g-dark:    #062b70;
    --g-mid:     #0b409c;
    --g-base:    #1b61e4;
    --g-teal:    #2563eb;
    --g-light:   #bfdbfe;
    --g-pale:    #eff6ff;

    /* Semantic */
    --c-amber:   #f59e0b;
    --c-red:     #ef4444;
    --c-success: #10b981;

    /* Typography */
    --font-body:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Noto Serif', Georgia, serif;
    --fs-base:  14px;
    --fs-sm:    12.5px;
    --fs-xs:    11px;

    /* Text */
    --t-dark:  #0f172a;
    --t-mid:   #334155;
    --t-muted: #64748b;

    /* Misc */
    --radius:    8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 10px rgba(6,43,112,0.07);
}

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

body {
    font-family:  var(--font-body);
    font-size:    var(--fs-base);
    line-height:  1.55;
    background:   var(--bg-body);
    color:        var(--t-dark);
    margin:       0;
    padding:      0;
    overflow-x:   hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color:       var(--g-mid);
    margin:      0 0 .5rem;
}

/* ─── LOADER ──────────────────────────────────────────────── */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    display: none;
    background: rgba(237,242,240,0.88);
    backdrop-filter: blur(3px);
}
.loader-col { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.loader img { width: 60px; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR  — always open, always 230 px, no mini mode
   ══════════════════════════════════════════════════════════ */
.sidebar {
    position:   fixed;
    top:        0;
    left:       0;
    height:     100vh;
    width:      var(--sidebar-width);      /* never changes on desktop */
    background: linear-gradient(180deg, var(--sidebar-bg-top) 0%, var(--sidebar-bg-bot) 100%);
    z-index:    1050;
    display:    flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Brand row */
.sidebar-brand {
    height:      var(--header-height);
    min-height:  var(--header-height);
    display:     flex;
    align-items: center;
    gap:         10px;
    padding:     0 16px;
    border-bottom: 1px solid var(--sidebar-sep);
    background:  rgba(0,0,0,0.14);
    flex-shrink: 0;
}

.sidebar-brand .brand-icon {
    width:        34px; height: 34px;
    background:   rgba(255,255,255,0.12);
    border-radius: 8px;
    display:      flex; align-items: center; justify-content: center;
    flex-shrink:  0;
    font-size:    1.2rem;
    color:        var(--g-light);
}

/* Brand text — ALWAYS visible (no display:none) */
.brand-name {
    display:     block;
    opacity:     1;
    font-family: var(--font-heading);
    font-size:   14px;
    font-weight: 700;
    color:       #ffffff;
    line-height: 1.25;
    white-space: nowrap;
}
.brand-name small {
    display:     block;
    font-family: var(--font-body);
    font-size:   10px;
    font-weight: 400;
    color:       rgba(255,255,255,0.38);
    letter-spacing: 0.03em;
}

/* Mobile close btn — hidden on desktop */
#mobile-close-btn { display: none; }

/* Nav list */
.sidebar-nav { list-style: none; padding: 8px 0; margin: 0; flex: 1; }
.sidebar-nav li, .submenu li { list-style: none; padding: 0; margin: 0; }

/* Section label */
.sidebar-section-label {
    display:        block;
    font-size:      9.5px;
    font-weight:    600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.28);
    padding:        14px 18px 4px;
}

/* Nav link */
.sidebar-link {
    display:     flex;
    align-items: center;
    gap:         10px;
    padding:     10px 18px;
    color:       var(--sidebar-text);
    font-size:   var(--fs-sm);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition:  all 0.15s ease;
    white-space: nowrap;
    cursor:      pointer;
}
.sidebar-link:hover {
    background:  var(--sidebar-hover-bg);
    color:       #ffffff;
    border-left-color: rgba(191,219,254,0.7);
}
.sidebar-link.active {
    background:  var(--sidebar-active-bg);
    color:       var(--sidebar-text-active);
    border-left-color: var(--sidebar-text-active);
    font-weight: 600;
}
.sidebar-link i.icon { font-size: 1.2rem; width: 20px; text-align: center; flex-shrink: 0; }

/* Link text — always shown */
.link-text    { display: block; opacity: 1; flex: 1; }
.chevron-icon { display: block; opacity: 1; font-size: 1rem; transition: transform 0.25s ease; }

/* Submenu */
.submenu { display: none; list-style: none; padding: 0; margin: 0; background: rgba(0,0,0,0.16); }
.submenu.show { display: block !important; }

.submenu a {
    display:     flex !important;
    align-items: center;
    gap:         9px;
    padding:     9px 18px 9px 46px !important;
    color:       rgba(255,255,255,0.56);
    font-size:   var(--fs-sm);
    border-left: 3px solid transparent;
    transition:  all 0.15s;
}
.submenu a i { font-size: 1rem; min-width: 18px; text-align: center; }
.submenu a:hover, .submenu a.text-white {
    color:             #fff !important;
    font-weight:       600;
    background:        rgba(255,255,255,0.05);
    border-left-color: rgba(191,219,254,0.5);
}

/* Sidebar footer */
.sidebar-footer-badge {
    padding:    12px 16px;
    border-top: 1px solid var(--sidebar-sep);
    font-size:  10px;
    color:      rgba(255,255,255,0.2);
    letter-spacing: 0.06em;
    flex-shrink: 0;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   HEADER  — left edge fixed at sidebar-width, never moves
   ══════════════════════════════════════════════════════════ */
.portal-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 43, 112, 0.12);
}

.header {
    position:        relative;
    width:           100%;
    min-height:      72px;
    background:      var(--header-bg);
    padding:         10px 24px;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    border-bottom:   1px solid var(--header-border);
}

/* Green underline accent */
/* .header::after {
    content:  '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height:   2px;
    background: linear-gradient(90deg, var(--g-base) 0%, var(--g-light) 55%, transparent 100%);
} */

/* Hamburger — hidden on desktop, shown on mobile */
.toggle-btn {
    display:         none;
    width:           36px; height: 36px;
    align-items:     center;
    justify-content: center;
    border-radius:   8px;
    color:           var(--t-mid);
    cursor:          pointer;
    transition:      background 0.15s;
    flex-shrink:     0;
}
.toggle-btn:hover { background: var(--g-pale); color: var(--g-base); }

/* Logo */
.header-logo-container img { height: 44px; }

/* Title block */
.header-system-title { line-height: 1.25; }
.header-system-title .title-main {
    font-family:  var(--font-heading);
    font-size:    15px;
    font-weight:  700;
    color:        var(--g-mid);
    letter-spacing: .01em;
}
.header-system-title .title-main span { color: var(--g-base); }
.header-system-title .title-sub {
    font-size:   10.5px;
    color:       var(--t-muted);
    font-weight: 400;
    letter-spacing: .02em;
}

/* Online pill */
.header-status-pill {
    display:     inline-flex;
    align-items: center;
    gap:         6px;
    background:  var(--g-pale);
    border:      1px solid #bfdbfe;
    border-radius: 20px;
    padding:     3px 11px;
    font-size:   11px;
    color:       #1e40af;
    font-weight: 600;
}
.header-status-pill::before {
    content:       '';
    width: 6px; height: 6px;
    background:    var(--primary-blue);
    border-radius: 50%;
    animation:     pdot 2s infinite;
}
@keyframes pdot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.8); }
}

/* User info */
.header-user-name {
    font-size:   13px;
    font-weight: 600;
    color:       var(--t-dark);
    line-height: 1.25;
}
.header-user-role {
    font-size:     10px;
    color:         var(--g-base);
    font-weight:   600;
    background:    var(--g-pale);
    padding:       1px 7px;
    border-radius: 4px;
    display:       inline-block;
    margin-top:    2px;
    letter-spacing: .04em;
}

/* Avatar btn */
.header-avatar-btn {
    width:         38px !important; height: 38px !important;
    border-radius: 9px !important;
    background:    linear-gradient(135deg, var(--g-base), var(--g-mid)) !important;
    border:        none !important;
    display:       flex !important;
    align-items:   center !important;
    justify-content: center !important;
    color:         #fff !important;
    font-size:     1rem !important;
    cursor:        pointer;
    transition:    all .15s;
    box-shadow:    0 2px 8px rgba(11,64,156,.3) !important;
    padding:       0 !important;
}
.header-avatar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,64,156,.4) !important; }

/* Dropdown */
.dropdown-menu {
    border:        1px solid rgba(0,0,0,.07) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow:    0 8px 28px rgba(0,0,0,.11) !important;
    overflow:      hidden;
    padding:       4px 0 !important;
    min-width:     175px !important;
    font-size:     var(--fs-sm) !important;
}
.dropdown-menu .dropdown-item {
    padding:     9px 16px !important;
    color:       var(--t-dark) !important;
    display:     flex;
    align-items: center;
    gap:         8px;
    font-size:   var(--fs-sm);
    transition:  background .12s;
}
.dropdown-menu .dropdown-item:hover { background: var(--g-pale) !important; color: var(--g-mid) !important; }
.dropdown-menu .dropdown-item.text-danger:hover { background: #fff1f2 !important; }
.dropdown-divider { margin: 4px 0 !important; border-color: rgba(0,0,0,.06) !important; }

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
    margin-left: 0;   /* no sidebar offset */
    margin-top:  0;
    padding:     20px 22px;
    min-height:  calc(100vh - var(--header-height) - 46px);
    position:    relative;
    z-index:     1;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    margin-left: 0;
    padding:     11px 22px;
    background:  var(--header-bg);
    border-top:  1px solid var(--header-border);
    font-size:   var(--fs-xs);
    color:       var(--t-muted);
    position:    relative;
    z-index:     1;
}
.footer strong { color: var(--g-mid); }
.footer a { color: var(--g-base); }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
    background:    var(--bg-card);
    border-radius: var(--radius-lg);
    border:        1px solid rgba(0,0,0,.06);
    box-shadow:    var(--shadow-md);
    padding:       18px;
}
.card:hover { box-shadow: 0 4px 18px rgba(11,64,156,.09); }

/* ─── TABLES ─────────────────────────────────────────────── */
.table thead {
    background: linear-gradient(90deg, #0b409c 0%, #1b61e4 100%) !important;
}

.table thead th {
    background: transparent !important;
    color: #ffffff !important;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none !important;
    padding: 12px 14px !important;
}
.table td, .table th { vertical-align: middle; font-size: var(--fs-sm); }
.table tbody tr:hover { background: rgba(27,97,228,.04); }

/* ─── BADGES ─────────────────────────────────────────────── */
.status-badge {
    border-radius: 5px; color: #fff;
    padding: 3px 11px; font-weight: 600;
    font-size: var(--fs-xs); letter-spacing: .03em;
}
.status-pending  { background: var(--c-amber); }
.status-approved { background: var(--c-success); }
.status-rejected { background: var(--c-red); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.customBtn {
    background:    linear-gradient(135deg, var(--g-base), var(--g-dark));
    border: none; color: #fff;
    border-radius: var(--radius); cursor: pointer;
    font-size: var(--fs-sm); font-weight: 600;
    transition: all .18s;
    box-shadow: 0 2px 7px rgba(27,97,228,.28);
}
.customBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,97,228,.38); }

.customBtnReset {
    background:    linear-gradient(135deg, #e11d48, #9f1239);
    border: none; color: #fff;
    border-radius: var(--radius); cursor: pointer;
    font-size: var(--fs-sm); font-weight: 600;
    transition: opacity .18s;
}
.customBtnReset:hover { opacity: .88; }

.custom-bg { background: linear-gradient(135deg, var(--g-base), var(--g-dark)); color: #fff; }

.action-btn {
    background:    rgba(27,97,228,.08);
    color:         var(--g-mid);
    border-radius: 6px; font-weight: 600;
    padding: 5px 12px; border: none;
    font-size: var(--fs-sm); transition: background .15s;
}
.action-btn:hover { background: rgba(27,97,228,.16); }

.btn-doc {
    background:    linear-gradient(135deg, var(--g-base), var(--g-dark));
    color: #fff; border: none;
    padding: 9px 17px; border-radius: 7px;
    font-size: var(--fs-sm); font-weight: 600;
    cursor: pointer; transition: all .18s;
}
.btn-doc:hover { opacity: .9; transform: translateY(-1px); }

.btn-delete { color: var(--c-red); font-size: var(--fs-sm); }
.btn-delete:hover { background-color: #fff1f2; }
.btn-add { color: var(--primary-blue); font-size: var(--fs-sm); }
.btn-add:hover { background-color: var(--g-pale); }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(27,97,228,.14);
    border-color: var(--g-base) !important;
    outline: none;
}
.form-control, .form-select { font-size: var(--fs-sm); color: var(--t-dark); }
input[readonly] { background: #f8fafc; cursor: not-allowed; color: var(--t-mid); }
.form-label { font-size: var(--fs-sm); font-weight: 500; color: var(--t-mid); }
.formLabel  { font-size: var(--fs-sm); }

.form-section-title {
    background:    linear-gradient(90deg, rgba(27,97,228,.08), transparent);
    color:         var(--g-mid);
    font-weight:   700;
    font-family:   var(--font-heading);
    cursor:        pointer; user-select: none;
    padding:       11px 16px;
    border-left:   3px solid var(--g-base);
    border-radius: 0 6px 6px 0;
    font-size:     var(--fs-sm);
}
.form-section-title-2 { color: var(--g-mid); font-weight: 700; font-family: var(--font-heading); }
.form-section { background: #fff; border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.05); }

.header-accordion { background: rgba(27,97,228,.06); }
.header-accordion-button { color: var(--g-mid); border: none; background: none; font-weight: 600; }
.accordion-item { background: #fdfdfd; border: 1px solid rgba(0,0,0,.05) !important; }

/* ─── PAGE TITLE ─────────────────────────────────────────── */
.title-section { margin: 0 0 18px; }
.title-section h1 { font-size: 1.5rem; color: var(--g-mid); }
.subtitle { color: var(--t-muted); font-size: var(--fs-xs); margin: 2px 0 0; }
.text-custom-dark { color: var(--g-base) !important; }

/* ─── COLLAPSE ───────────────────────────────────────────── */
.collapse-header {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 700; font-family: var(--font-heading);
    padding: .7rem 1rem; color: var(--g-mid);
}
.collapse-header .chevron { transition: transform .28s; }
.collapse-header[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.rotate-icon { transition: transform .28s; }
.accordion-toggle[aria-expanded="true"] .rotate-icon { transform: rotate(90deg); }

/* ─── NOTING ─────────────────────────────────────────────── */
.noting-content-section {
    display: flex; flex-wrap: wrap; align-items: center;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid rgba(27,97,228,.12);
}
.reviewed_user { width: 75px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reviewed_user img { max-width: 48px; margin-bottom: 5px; }
.vertical-divider { width: 1px; height: 56px; background: #e2e8f0; margin: 0 18px; }
.action-information-box { flex: 1; min-width: 200px; }
.noting-view-button { display: flex; justify-content: flex-end; align-items: center; }
.noting-view-button button {
    color: white;
    background: linear-gradient(135deg, var(--g-base), var(--g-dark));
    border-radius: 8px; border: none;
    margin-right: 14px; padding: 9px 38px;
    font-size: var(--fs-sm); font-weight: 600;
    cursor: pointer; transition: all .18s;
    box-shadow: 0 2px 7px rgba(27,97,228,.28);
}
.noting-view-button button:hover { transform: translateY(-1px); opacity: .93; }

/* ─── RADIO ──────────────────────────────────────────────── */
#approve:checked::after  { background-color: var(--c-success); }
#reject:checked::after   { background-color: var(--c-red); }
#resubmit:checked::after { background-color: var(--c-amber); }

/* ─── STEPPER ────────────────────────────────────────────── */
.stepper-container { position: relative; padding: 10px; }
.step-item { position: relative; padding-bottom: 38px; display: flex; align-items: flex-start; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before { content:''; position:absolute; left:14px; top:30px; bottom:-10px; width:2px; background:#cbd5e1; z-index:1; }
.step-item:last-child::before { display:none; }
.step-circle {
    width:30px; height:30px; border-radius:50%;
    background:#fff; border:2px solid #cbd5e1; color:#94a3b8;
    display:flex; align-items:center; justify-content:center;
    font-weight:bold; font-size:12px; z-index:2; margin-right:14px; flex-shrink:0;
}
.step-item.active .step-circle { border-color:var(--g-base); color:var(--g-base); background:var(--g-pale); }
.step-label { margin-top:4px; font-weight:500; color:var(--t-muted); font-size:var(--fs-sm); }
.step-item.active .step-label { color:var(--g-mid); font-weight:700; }

/* ─── TOAST ──────────────────────────────────────────────── */
.error-row { background:#fff1f2 !important; animation: blink .4s alternate 3; }
@keyframes blink { from{background:#fff1f2} to{background:#fecdd3} }
.fade-out { opacity:0; transform:translateX(-18px); transition:all .4s ease-in-out; }
.toastr-inline {
    display:inline-flex; align-items:center; gap:12px;
    padding:11px 18px 11px 14px;
    background:var(--g-mid); color:#fff;
    border-radius:8px; font-size:var(--fs-sm);
    box-shadow:0 4px 14px rgba(0,0,0,.16);
}
.toastr-inline .toast-icon { flex-shrink:0; width:22px; height:22px; }
.toastr-inline .toast-content { display:flex; align-items:center; gap:8px; }
.toastr-inline .toast-title { font-weight:700; white-space:nowrap; }
.toastr-inline .toast-message { font-weight:300; }

/* ─── MISC ───────────────────────────────────────────────── */
.action-buttons { display:flex; justify-content:flex-end; gap:11px; margin-top:26px; }
.details-content .form-label { font-weight:300 !important; }
.dropdown-menu label { display:block; padding:6px 14px; }
.dropdown-menu label:hover { background:var(--g-pale); }

.select2-container--default .select2-selection--single {
    border-color:#cbd5e1 !important; border-radius:6px !important;
    height:36px !important; font-size:var(--fs-sm) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height:34px !important; color:var(--t-dark) !important; font-size:var(--fs-sm) !important;
}
.select2-container--default .select2-results__option--highlighted { background:var(--g-base) !important; }

/* ─── LAYOUT FIX ─────────────────────────────────────────── */
.layout-fixed .wrapper .sidebar { height:100vh !important; }
.wrapper { display:flex; flex-direction:column; min-height:100vh; }

/* ══════════════════════════════════════════════════════════
   MOBILE  (< 992 px)
   Sidebar becomes a slide-in drawer, hamburger appears
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

    .toggle-btn { display: flex !important; }      /* show hamburger */
    #mobile-close-btn { display: block !important; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        width: 240px;
    }
    .sidebar.mobile-show { transform: translateX(0); }

    /* Header and content fill full width on mobile */
    .header {
        padding: 0 14px;
    }
    .main-content { padding: 16px 14px; }

    /* Overlay */
    .mobile-overlay {
        position: fixed; inset: 0;
        background: rgba(6,43,112,.55);
        z-index: 1040; display: none;
        opacity: 0; transition: opacity .3s;
        backdrop-filter: blur(2px);
    }
    .mobile-overlay.show { display: block; opacity: 1; }

    /* Horizontal stepper */
    .border-end-lg { border-right:none !important; border-bottom:1px solid #e2e8f0; padding-bottom:18px; margin-bottom:18px; }
    .stepper-container { display:flex; flex-direction:row; justify-content:space-between; overflow-x:auto; padding-bottom:10px; }
    .step-item { flex-direction:column; align-items:center; padding-bottom:0; min-width:60px; flex:1; }
    .step-circle { margin-right:0; margin-bottom:5px; }
    .step-label { font-size:11px; text-align:center; line-height:1.2; }
    .step-item::before { content:''; position:absolute; top:15px; left:50%; width:100%; height:2px; background:#cbd5e1; z-index:1; bottom:auto; }
    .step-item:last-child::before { display:none; }

    .noting-content-section { flex-direction:column; align-items:flex-start; }
    .vertical-divider { display:none; }
    .action-information-box { margin:10px 0; }
    .noting-view-button { width:100%; justify-content:flex-start; }
    .noting-view-button button { width:100%; margin-right:0; }
}

@media (max-width: 576px) {
    .step-label { display:none; }
    .step-item.active .step-label { display:block; }
}
/* ── Captcha row ── */
.captcha-img-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.captcha-img {
    height: 44px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.captcha-reload {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}
.captcha-reload:hover {
    background: #e2e8f0;
    border-color: #1b61e4;
    color: #1b61e4;
}
.captcha-reload svg {
    width: 15px;
    height: 15px;
}

/* ── Inline field errors ── */
.field-error {
    display: block;
    font-size: 11px;
    color: #e53e3e;
    margin-top: 4px;
    min-height: 14px;
}
.fw input.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* ─── DATATABLES ENHANCEMENTS (ROYAL & NAVY BLUE THEME) ─── */
table.dataTable thead th, table.dataTable thead td {
    background: linear-gradient(90deg, #0b409c 0%, #1b61e4 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-bottom: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #1b61e4 !important;
    border-color: #1b61e4 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(27, 97, 228, 0.3) !important;
}
.dataTables_wrapper .pagination .page-link {
    color: #0b409c;
    border-radius: 6px;
    margin: 0 2px;
}
.dataTables_wrapper .pagination .page-link:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1b61e4;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #1b61e4 !important;
    box-shadow: 0 0 0 3px rgba(27, 97, 228, 0.15) !important;
    outline: none !important;
}
