
/* ===================================================================
   Light Theme Refresh (Flat, High-Contrast, Accessible)
   - Lighter backgrounds, darker text
   - Dark sidebar with light text (FINAL overrides placed last)
   - Larger click targets for links & checkboxes
   - Consistent button styles (incl. link-as-button)
   - Keeps your existing class names & structure
   =================================================================== */

/* --- Design tokens ------------------------------------------------- */
:root{
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --fg: #0f172a;
  --muted: #475569;
  --brand: #0b67d0;
  --brand-600: #0a5ab6;
  --brand-700: #084a96;
  --ok:#15803d;
  --warn:#b45309;
  --danger:#b91c1c;
  --radius: 10px;
  --pad: .6rem;
  --gap: .75rem;
  --border:#d4d8e1;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.06);
}

/* --- Base ---------------------------------------------------------- */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

html, body { font-family: 'Helvetica Neue', Helvetica, Arial, ui-sans-serif, system-ui, Segoe UI, Roboto, sans-serif; color: var(--fg); }
body{ margin:0; background: var(--bg); }
a{ color: var(--brand); text-underline-offset: .18em; }
:focus-visible{ outline: 3px solid color-mix(in srgb, var(--brand) 80%, white); outline-offset: 2px; border-radius: 6px; }
.content{ padding-top: 1.1rem; }
h1:focus{ outline: none; }

/* --- Validation ---------------------------------------------------- */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e11d48; }
.validation-message { color: #b91c1c; }

/* --- Buttons (incl. link-as-button) ------------------------------- */
button, a.button, a.link-button, a[href].as-button, .ok-button, .cancel-button{
  appearance:none; display:inline-flex; align-items:center; gap:.5rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px; border:1px solid var(--border);
  background:#e9f2ff; color: var(--brand); font-weight:600;
  text-decoration:none; cursor:pointer; box-shadow: var(--shadow);
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
button:hover, a.button:hover, a.link-button:hover, a[href].as-button:hover, .ok-button:hover, .cancel-button:hover{
  background:#dcebff; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 10px 24px rgba(15,23,42,.08);
}
button:active, a.button:active, a.link-button:active, a[href].as-button:active, .ok-button:active, .cancel-button:active{ transform: translateY(1px); }

.btn-primary{ background: var(--brand); color:#fff !important; border:1px solid var(--brand-600); box-shadow: var(--shadow); }
.btn-primary:hover{ background: var(--brand-600); }
.btn-primary:active{ background: var(--brand-700); }
.btn-primary:disabled{ background:#e5e7eb; color:#9ca3af !important; border-color:#e5e7eb; cursor:not-allowed; box-shadow:none; }

.btn-secondary{ background:#fde7ec; color:#b42334 !important; border:1px solid #f6c7d0; }
.btn-secondary:hover{ background:#fbd5de; }

.link-button{
  text-decoration:none; padding: 0.28rem 0.65rem;
  border:1px solid var(--border); border-radius: 6px;
  background:#eef2f7; color:#0b3a7a !important; font-weight:600; font-size:0.8rem;
  line-height:1.5; box-shadow:none; text-wrap:unset;
}

/* --- Forms --------------------------------------------------------- */
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea{
  background: var(--surface-2); color: var(--fg); border:1px solid var(--border);
  border-radius: 8px; padding:.55rem .7rem; min-height:2.25rem;
}
input::placeholder, textarea::placeholder{ color:#64748b; }

input[type="checkbox"]{ width:1.1rem; height:1.1rem; accent-color: var(--brand); vertical-align:middle; }
label{ cursor:pointer; }
.checkbox-row{ display:flex; align-items:center; gap:.6rem; min-height:2.25rem; padding:.25rem .4rem; border-radius:8px; }
.checkbox-row:hover{ background:#eef2f7; }

*[class*="overlay"], *[class*="backdrop"]{ pointer-events:none; }
input, label, select, button{ pointer-events:auto; }

/* --- Cards & Tables ----------------------------------------------- */
.card{ background: var(--surface); border:1px solid var(--border); border-radius:14px; padding: calc(var(--pad) * 1.2); box-shadow: var(--shadow); }
table{ width:100%; border-collapse:separate; border-spacing:0 6px; }
th, td{ text-align:left; padding:.6rem .75rem; }
thead th{ color: var(--muted); font-weight:700; }
tbody tr{ background: var(--surface); border:1px solid var(--border); }
tbody tr td:first-child, tbody tr th:first-child{ border-top-left-radius:10px; border-bottom-left-radius:10px; }
tbody tr td:last-child, tbody tr th:last-child{ border-top-right-radius:10px; border-bottom-right-radius:10px; }
.table tr:nth-child(even){ background-color:#f8fbff; }
.table tr:nth-child(odd){ background-color:#ffffff; }

/* --- Top bar (light) ---------------------------------------------- */
.custom-topbar{ background: linear-gradient(180deg, #f1f7ff, #e6f0ff); color: var(--fg); }
.top-row{ background-color:#eaf2ff !important; color: var(--fg); border-bottom:1px solid var(--border); box-shadow:none; }
.top-row a{ color:#0b3a7a; } .top-row a:hover{ color: var(--brand); }

/* --- General nav link colours in light UI ------------------------- */
.nav-scrollable .nav-item .nav-link{ color:#0f172a !important; background-color:transparent !important; }
.nav-scrollable .nav-item .nav-link.active{ background-color:#e6eef8 !important; color:#0f172a !important; }
.nav-scrollable .nav-item .nav-link:hover{ background-color:#eef4fd !important; color:#0f172a !important; }
.nav-scrollable .dropdown-toggle{ color:#0f172a !important; }
.nav-scrollable .dropdown-toggle:hover{ background-color:#eef4fd !important; color:#0f172a !important; }

.btn-link{ color: var(--brand) !important; text-decoration: underline !important; }
.btn-link:hover{ color: var(--brand-600) !important; }

/* --- Messages & Utilities ----------------------------------------- */
.message-box{ position:fixed; top:30%; left:50%; transform:translate(-50%,-50%); width:320px; background: var(--surface); border:1px solid var(--border); border-radius:10px; z-index:1000; box-shadow: var(--shadow); }
.message-box-header{ padding:10px; background:#f3f6fb; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); color: var(--fg); }
.message-box-content{ padding:14px; font-size:.95rem; color: var(--fg); }
.message-box-footer{ padding:10px; text-align:right; }
.ok-button, .cancel-button, .close-button{ background:#eef2f7; color:#0b3a7a; border:1px solid var(--border); text-decoration:none; padding:.4rem .7rem; border-radius:8px; font-size:.9rem; }
.ok-button:hover, .cancel-button:hover{ background:#e6eef8; }
.close-button{ font-size:1rem; }
.required-asterisk{ color:#b91c1c; font-size:1.1em; font-weight:700; margin-left:4px; }

.flex-buttons{ display:flex; gap:10px; }
.link-green{ color:#166534 !important; text-decoration: underline !important; }
.link-green:hover{ color:#15803d !important; }
.link-red{ color:#b91c1c !important; text-decoration: underline !important; }
.link-red:hover{ color:#991b1b !important; }

.link-button::after, .link-button:hover::after, .link-login:hover::after{ content:none !important; display:none !important; }

.table-list, .drop-zone{ border:1px solid var(--border); margin:10px; padding:10px; }
.drop-zone{ background: var(--surface-2); min-height:200px; }
.drag-drop-container{ display:flex; flex-direction:column; align-items:center; gap:20px; }
.layout-container{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; align-items:start; }
.two-column-layout{ display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-start; }

.table-box{ border:1px solid var(--border); border-radius:8px; padding:10px; background: var(--surface); box-shadow: var(--shadow); margin-bottom:4px; width:120px; min-width:100px; max-width:140px; flex:none; }
.available-items{ margin-top:10px; padding:10px; border:1px solid var(--border); border-radius:4px; max-height:200px; overflow-y:auto; }
.save-button{ margin-top:20px; padding:10px 20px; font-size:16px; }
.draggable-item{ display:block; margin:5px 0; cursor:pointer; text-decoration:none; color:inherit; border:none !important; background:none !important; padding:0; }
.draggable-item:hover{ text-decoration: underline; color: var(--brand); }
#preset-builder.drag-over{ border: 2px dashed var(--brand); background-color:#f0f7ff; }
.remove-item{ margin-left:10px; padding:5px; background: var(--danger); color:#fff; border:none; border-radius:4px; cursor:pointer; }
.remove-item:hover{ background:#991b1b; }
.item-preview{ margin-top:20px; }
.item-preview ul{ list-style:none; padding:0; }

.scrollable-list{ max-height:200px; overflow-y:auto; border:1px solid var(--border); padding:10px; background: var(--surface-2); border-radius:4px; }
.search-box{ width:100%; margin-bottom:10px; padding:8px; font-size:14px; border:1px solid var(--border); border-radius:4px; }
.search-box:focus{ outline:none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }

.preset-builder-container{ border:2px dashed var(--border); padding:15px; min-height:300px; background: var(--surface-2); border-radius:6px; }
.compact-date-input{ max-width:160px; padding:2px 6px; font-size:.95rem; }

.navbar-brand, .custom-brand-style{ font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.darker-border-checkbox.form-check-input{ border-color:#929292; }
.custom-tooltip[data-bs-toggle="tooltip"]::after{ max-width:250px !important; white-space:normal !important; }

/* ===================================================================
   FINAL SIDEBAR OVERRIDES (placed last to beat earlier rules)
   - Handles common structures: .custom-sidebar or .sidebar container
   - Also overrides .nav-scrollable inside the sidebar
   =================================================================== */
.custom-sidebar, .sidebar{
  background-color:#1f2937;   /* slate-800 */
  color:#e5e7eb;
  border-right:1px solid #111827;
}

/* Make all sidebar links light by default */
.custom-sidebar .nav-link,
.custom-sidebar .dropdown-item,
.custom-sidebar .btn-link,
.sidebar .nav-link,
.sidebar .dropdown-item,
.sidebar .btn-link{
  color:#e5e7eb !important;
  background-color:transparent !important;
  text-decoration:none !important;
}

/* Override nav-scrollable when it's inside the sidebar */
.custom-sidebar .nav-scrollable .nav-item .nav-link,
.custom-sidebar .nav-scrollable .dropdown-toggle,
.sidebar .nav-scrollable .nav-item .nav-link,
.sidebar .nav-scrollable .dropdown-toggle{
  color:#e5e7eb !important;
  background-color:transparent !important;
}

/* Hover / Active */
.custom-sidebar .nav-link:hover,
.custom-sidebar .dropdown-item:hover,
.custom-sidebar .btn-link:hover,
.sidebar .nav-link:hover,
.sidebar .dropdown-item:hover,
.sidebar .btn-link:hover{
  color:#ffffff !important;
  background-color:#374151 !important; /* slate-700 */
}

.custom-sidebar .nav-link.active,
.custom-sidebar .dropdown-item.active,
.custom-sidebar .nav-link[aria-current="page"],
.sidebar .nav-link.active,
.sidebar .dropdown-item.active,
.sidebar .nav-link[aria-current="page"]{
  color:#ffffff !important;
  background-color:#111827 !important; /* slate-900 */
}

/* Dropdown panel inside sidebar */
.custom-sidebar .dropdown-menu,
.sidebar .dropdown-menu{
  background-color:#1f2937;
  border-color:#111827;
}
.custom-sidebar .dropdown-item:focus,
.sidebar .dropdown-item:focus{
  background-color:#374151;
  color:#ffffff;
}

/* Icons/badges in sidebar */
.custom-sidebar .nav-link .badge,
.custom-sidebar .dropdown-item .badge,
.sidebar .nav-link .badge,
.sidebar .dropdown-item .badge{
  background-color:#374151;
  color:#e5e7eb;
  border:1px solid #111827;
}

/* Focus-visible on dark bg */
.custom-sidebar .nav-link:focus-visible,
.custom-sidebar .dropdown-item:focus-visible,
.sidebar .nav-link:focus-visible,
.sidebar .dropdown-item:focus-visible{
  outline:3px solid rgba(96,165,250,.9);
  outline-offset:2px;
  border-radius:8px;
}
/* === Help text + alert styling (for .text-info & .alert-info) === */
.text-info,
.bi.text-info {
    color: var(--brand) !important; /* matches your theme blue */
}

/* Align Bootstrap-style info alert with your palette */
.alert.alert-info {
    background: #e9f2ff; /* soft info bg */
    color: #0b3a7a; /* readable text */
    border: 1px solid #cfe2ff; /* subtle border */
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: .65rem .8rem;
    margin-top: .5rem;
}

    /* Links inside help content */
    .alert.alert-info a {
        color: var(--brand);
        text-decoration: underline;
    }

        .alert.alert-info a:hover {
            color: var(--brand-600);
        }

/* Force darker text for the 'Welcome' span only */
.top-row > .ml-auto,
.top-row span.ml-auto,
.top-row .ml-auto {
    color: #1e293b !important; /* dark slate text */
    font-weight: 600;
}

/* make the blue show inside the dark navbar brand */
.navbar-dark .navbar-brand .nav-itemtext-info {
    color: darkblue !important; /* Bootstrap info */
    font-size: .875rem;
    font-weight: 500;
}

    .navbar-dark .navbar-brand .nav-itemtext-info:hover {
        color:  darkblue !important;
        font-weight:800;
    }

/* OrgUserSiteAccessContainer layout */
.group-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    
    
}

.group-box {
    width: 100%;
    border: inset;
    
}

@media (max-width: 1200px) {
    .group-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .group-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .group-container {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   Login — Split Screen
   =========================== */

.wbo-split-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.wbo-split-left {
    flex: 0 0 44%;
    background: #0f1929;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    color: #ffffff;
}

.wbo-split-brand-name {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.wbo-split-brand-tagline {
    font-size: 1.05rem;
    color: #8ba3c7;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.wbo-split-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wbo-split-bullets li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: #c8d9f0;
}

.wbo-split-bullet-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #e87722;
    font-size: 0.75rem;
    font-weight: 800;
}

.wbo-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #ffffff;
}

.wbo-split-card {
    width: 100%;
    max-width: 400px;
}

.wbo-split-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.wbo-split-card-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .wbo-split-left {
        display: none;
    }
}

.wbo-split-notice {
    margin-top: 3rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(240, 180, 40, 0.3);
    border-radius: 8px;
    background: rgba(240, 180, 40, 0.06);
}

.wbo-split-notice-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.wbo-split-notice-text {
    font-size: 0.875rem;
    color: #c8d9f0;
    line-height: 1.6;
}

/* TM superscript */
.wbo-split-tm {
    font-size: 1rem;
    font-weight: 400;
    vertical-align: super;
    color: #ffffff;
    margin-left: 2px;
}

/* Logixis branding footer */
.wbo-split-logixis {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wbo-split-logixis-powered {
    font-size: 0.7rem;
    color: #4d6480;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.wbo-split-logixis-img {
    height: 28px;
    width: auto;
    display: block;
}

/* Primary button (align with Logixis orange) */
.wbo-btn-primary {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    background: #e87722;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

    .wbo-btn-primary:hover:not(:disabled) {
        background: #d06818;
        transform: translateY(-1px);
    }

    .wbo-btn-primary:disabled {
        opacity: 0.7;
        cursor: default;
    }

/* Link-style actions */
.wbo-link,
.wbo-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #2d8cff;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

    .wbo-link:hover,
    .wbo-link-button:hover {
        text-decoration: underline;
    }

/* Login progress */
.wbo-login-progress {
    margin-top: 0.75rem;
}

.wbo-login-progress-bar {
    height: 4px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2d8cff, #4ade80);
}

.wbo-login-progress-bar-success {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.wbo-login-progress-text {
    font-size: 0.85rem;
    margin-top: 0.4rem;
    color: #0f172a;
}

    .wbo-login-progress-text.success {
        color: #15803d;
    }

/* Links under form */
.wbo-login-links {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.wbo-selection-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Two-column grid: col-1 = labels/cancel (auto), col-2 = value buttons/proceed (auto).
   Both col-2 items share the same column width, so they match automatically. */
.wbo-sel-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.6rem;
    align-items: center;
    justify-content: start;
}

.wbo-sel-btn {
    width: 100%;
    justify-content: center;
}

.wbo-sel-cancel {
    justify-self: start;
}

.wbo-sel-progress {
    grid-column: 1 / -1;
}

.wbo-sel-full {
    grid-column: 1 / -1;
}

.wbo-selection-inline h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

.wbo-selection-inline select.form-control {
    max-width: 100%;
}

/* ===========================
   WBOS Sidebar Nav
   =========================== */

.wbo-nav {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0f1929;
    color: #c8d9f0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    overflow: hidden;
}

/* Org / site context block */
.wbo-nav-context {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.wbo-nav-org {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wbo-nav-sub {
    font-size: 0.75rem;
    color: #7a99bf;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wbo-nav-site {
    font-size: 0.75rem;
    color: #e87722;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Context switcher labels and selects */
.wbo-nav-context-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #7a99bf;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}

.wbo-nav-context-select {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 0.28rem 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    /* custom chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a99bf'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.6rem;
}

.wbo-nav-context-select:focus {
    border-color: #e87722;
}

.wbo-nav-context-select option {
    background: #1a2a42;
    color: #e2e8f0;
}

/* Scrollable nav sections */
.wbo-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.wbo-nav-body::-webkit-scrollbar { width: 4px; }
.wbo-nav-body::-webkit-scrollbar-track { background: transparent; }
.wbo-nav-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Section groupings */
.wbo-nav-section {
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wbo-nav-label {
    display: block;
    padding: 0.65rem 1rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4d6480;
}

/* Individual nav items */
.wbo-nav-item {
    display: flex;
    align-items: center;
    padding: 0.45rem 1rem 0.45rem 1.2rem;
    color: #94b4d4 !important;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.wbo-nav-item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2d4a6a;
    margin-right: 0.65rem;
    flex-shrink: 0;
    transition: background 0.12s ease;
}

.wbo-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff !important;
    border-left-color: rgba(232,119,34,0.4);
}

.wbo-nav-item:hover::before {
    background: #e87722;
}

.wbo-nav .wbo-nav-item.active,
.wbo-nav .wbo-nav-item[aria-current="page"] {
    background: rgba(232,119,34,0.12) !important;
    color: #ffffff !important;
    border-left-color: #e87722 !important;
}

.wbo-nav .wbo-nav-item.active::before,
.wbo-nav .wbo-nav-item[aria-current="page"]::before {
    background: #e87722 !important;
}

.wbo-nav-dot {
    display: none;
}

/* User footer block */
.wbo-nav-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.wbo-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e87722;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wbo-nav-footer-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c8d9f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wbo-nav-footer-level {
    font-size: 0.7rem;
    color: #4d6480;
}

/* Footer "···" more indicator */
.wbo-nav-footer-more {
    margin-left: auto;
    font-size: 1rem;
    color: #2d4a6a;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Clickable footer */
.wbo-nav-footer {
    cursor: pointer;
    transition: background 0.12s ease;
}

.wbo-nav-footer:hover {
    background: rgba(255,255,255,0.05);
}

.wbo-nav-footer:hover .wbo-nav-footer-more {
    color: #94b4d4;
}

/* ===========================
   User popup menu
   =========================== */
.wbo-user-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: transparent;
    pointer-events: auto;
    cursor: default;
}

.wbo-user-popup {
    position: fixed;
    bottom: 68px;
    left: 8px;
    width: 214px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(15,25,41,0.22);
    z-index: 200;
    overflow: hidden;
    animation: wbo-pop 0.15s ease;
}

.wbo-user-popup-hdr {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem;
}

.wbo-user-popup-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
}

.wbo-user-popup-role {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.wbo-user-popup-divider {
    height: 1px;
    background: #f1f5f9;
}

.wbo-user-popup-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.65rem 1rem;
    font-size: 0.84rem;
    color: #334155;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.1s ease;
}

.wbo-user-popup-item:hover {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    transform: none;
    border: none;
}

.wbo-user-popup-item-danger {
    color: #b91c1c;
}

.wbo-user-popup-item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Locked state */
.wbo-nav-locked {
    padding: 1.5rem 1rem;
    color: #4d6480;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

/* ===========================
   WBOS Main Shell & Header
   =========================== */

.wbo-main-shell {
    min-height: 100vh;
    background-color: #f4f7fb;
    color: #0f172a;
}

/* Slim top bar */
.wbo-main-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.25rem;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wbo-main-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.wbo-main-user {
    color: #475569;
    font-weight: 500;
}

.wbo-main-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.wbo-main-logout:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.wbo-main-login-link {
    color: #e87722;
    text-decoration: none;
    font-weight: 600;
}

/* Main content area */
.wbo-main-content {
    padding: 1.5rem 1.5rem 2rem;
}

/* ===========================
   Content Pass — 2030 model
   Page headers, tables, action bars, filter tabs
   =========================== */

/* --- Page title (h3 inside content area) --- */
.wbo-main-content h3 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: -0.01em;
}

/* --- Help toggle row --- */
.wbo-main-content .d-flex.align-items-center.mb-2 {
    font-size: 0.8rem;
    color: #64748b;
    gap: 0.4rem;
}

/* --- Action toolbar (Add / View Inactive buttons) --- */
.link-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

/* --- Compact link-button — toolbars, filter strips, table cells (all the same shape) --- */
.link-container .link-button,
.d-flex.gap-2 > .link-button,
.wbo-main-content .table td .link-button,
.wbo-main-content .table td a.link-button {
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    box-shadow: none;
    line-height: 1.5;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.d-flex.gap-2 > .link-button.fw-bold {
    background: rgba(232,119,34,0.1);
    color: #c05c0a !important;
    border-color: rgba(232,119,34,0.35);
    font-weight: 700 !important;
}

/* --- Search input in filter strip --- */
.d-flex.gap-2 .form-control,
.wbo-main-content input.form-control[placeholder="Search..."] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.d-flex.gap-2 .form-control:focus,
.wbo-main-content input.form-control[placeholder="Search..."]:focus {
    border-color: #e87722;
    box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
    outline: none;
}

/* --- Table overhaul: clean rows + left-border hover --- */
.wbo-main-content .table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.875rem;
    color: #334155;
    background: transparent;
    margin-bottom: 0;
}

/* Reset the generic rounded-row overrides inside content area */
.wbo-main-content .table tbody tr { border-radius: 0; }
.wbo-main-content .table tbody tr td:first-child,
.wbo-main-content .table tbody tr th:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 3px solid transparent;
    transition: border-left-color 0.1s ease;
    padding-left: 0.85rem;
}
.wbo-main-content .table tbody tr td:last-child,
.wbo-main-content .table tbody tr th:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Table header */
.wbo-main-content .table thead th {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    border-left: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.55rem 0.75rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 9;
}
.wbo-main-content .table thead th:first-child {
    padding-left: 0.85rem;
    border-left: 3px solid transparent;
}

/* Table rows */
.wbo-main-content .table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s ease;
}

.wbo-main-content .table tbody tr:hover {
    background: #fff8f4;
}
.wbo-main-content .table tbody tr:hover td:first-child {
    border-left-color: #e87722;
}

/* Kill zebra striping in the content area */
.wbo-main-content .table tr:nth-child(even),
.wbo-main-content .table tr:nth-child(odd) {
    background-color: transparent;
}

.wbo-main-content .table tbody td {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
    color: #334155;
}

/* "YES" / activated cell */
.wbo-main-content .table td span:not(.text-danger) { color: #15803d; font-weight: 600; }
.wbo-main-content .table td .text-danger { color: #b91c1c !important; font-weight: 600; }

/* Loading / empty state rows */
.wbo-main-content .table td[colspan] {
    text-align: center;
    color: #94a3b8;
    padding: 2rem 0;
    font-size: 0.875rem;
}

/* ===========================
   Action Confirm Dialog
   (Deactivate / Reactivate)
   =========================== */
.wbo-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,25,41,0.45);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbo-confirm-dialog {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 64px rgba(15,25,41,0.22);
    animation: wbo-pop 0.15s ease;
}

@keyframes wbo-pop {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.wbo-confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.wbo-confirm-icon-warn   { background: rgba(232,119,34,0.12); color: #e87722; }
.wbo-confirm-icon-ok     { background: rgba(21,128,61,0.1);   color: #15803d; }
.wbo-confirm-icon-danger { background: rgba(185,28,28,0.1);   color: #b91c1c; }

.wbo-confirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.wbo-confirm-body {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.wbo-confirm-skip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.35rem;
    cursor: pointer;
}

.wbo-confirm-skip input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #e87722;
    cursor: pointer;
}

.wbo-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.wbo-confirm-btn-yes {
    background: #e87722;
    color: #ffffff !important;
    border-color: #d06818;
}

.wbo-confirm-btn-yes:hover {
    background: #d06818;
}

.wbo-confirm-btn-danger {
    background: #b91c1c;
    color: #ffffff !important;
    border-color: #991b1b;
}

.wbo-confirm-btn-danger:hover {
    background: #991b1b;
}

