/* =============================================================
   bwm-common.css  –  BWM Module Shared Styles
   Shared across Finance, Workshop, and Driver portals.
   Use Bootstrap utilities for layout/spacing; this file
   covers custom colours, component patterns, and Telerik
   theme overrides specific to the BWM module.
   ============================================================= */

/* ── Page Titles ─────────────────────────── */
.bwm-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px;
    white-space: nowrap;
}

.bwm-page-sub {
    white-space: nowrap;
}

/* ── Cards ───────────────────────────────── */
.bwm-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

.bwm-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #003A70;
    border-bottom: 1px solid #003A70;
    font-size: 14px;
    color: #fff;
}

.bwm-card-title {
    font-weight: 600;
    color: #fff;
}

/* ── Grid Wrapper (horizontal scroll) ───── */
.bwm-grid-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.bwm-grid-wrap > .k-widget,
.bwm-grid-wrap > div {
    min-width: 1000px;
}

/* ── Text Helpers ───────────────────────── */
.bwm-muted     { color: #94a3b8; }
.bwm-ticket-id  { color: #0d2b5e; font-weight: 600; font-size: 13px; }
.bwm-ticket-link {
    background      : none !important;
    border          : none !important;
    padding         : 0;
    color           : #1a56db !important;
    font-weight     : 600;
    font-size       : 13px;
    text-decoration : underline !important;
    text-underline-offset: 3px;
    cursor          : pointer;
    box-shadow      : none !important;
}
.bwm-ticket-link:hover { color: #003A70 !important; text-decoration: underline !important; }

.bwm-card-header .bwm-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ── Status Badges ──────────────────────── */
.bwm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.bwm-badge-pending    { background: #fef3c7; color: #92400e; }
.bwm-badge-approved   { background: #d1fae5; color: #065f46; }
.bwm-badge-rejected   { background: #fee2e2; color: #991b1b; }
.bwm-badge-inprogress { background: #dbeafe; color: #1e40af; }
.bwm-badge-completed  { background: #d1fae5; color: #065f46; }

/* ── Small Icon Buttons (Approve / Reject) ─ */
.bwm-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s, transform 0.1s;
}

.bwm-action-btn:disabled               { opacity: 0.4; cursor: not-allowed; }
.bwm-action-btn:not(:disabled):hover   { transform: scale(1.1); }

.bwm-btn-approve                       { background: #d1fae5; color: #065f46; }
.bwm-btn-approve:not(:disabled):hover  { background: #a7f3d0; }

.bwm-btn-reject                        { background: #fee2e2; color: #991b1b; }
.bwm-btn-reject:not(:disabled):hover   { background: #fecaca; }

/* ── Floating Refresh Button ─── */
.bwm-refresh-bar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 8px;
}

/* ── Workflow Buttons (Start / Complete) ─── */
.bwm-btn-start,
.bwm-btn-complete {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.bwm-btn-start:not(:disabled):hover,
.bwm-btn-complete:not(:disabled):hover { transform: scale(1.04); }

.bwm-btn-start:disabled,
.bwm-btn-complete:disabled             { opacity: 0.4; cursor: not-allowed; }

.bwm-btn-start                         { background: #7c3aed; color: #fff; }
.bwm-btn-start:not(:disabled):hover    { background: #6d28d9; }

.bwm-btn-complete                      { background: #059669; color: #fff; white-space: nowrap; }
.bwm-btn-complete:not(:disabled):hover { background: #047857; }

/* ── Workflow Note ───────────────────────── */
.bwm-workflow-note {
    padding: 14px 22px;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    border-left: 3px solid #003A70;
    background: #f8fafc;
}

/* ── Expiry Indicators ───────────────────── */
.bwm-expiry-expired { color: #c53030; font-weight: 600; }
.bwm-expiry-soon    { color: #c05621; font-weight: 600; }

/* ── Text colour helpers ─────────────────── */
.bwm-text-expired { color: #c53030; }
.bwm-text-soon    { color: #c05621; }

/* ── Validation / Required ──────────────── */
.bwm-required { color: #e53e3e; }

.bwm-validation-msg {
    color: #c53030;
    font-size: 13px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 10px 14px;
}

/* ── Form Section Label (within popup forms) ── */
.bwm-section-label {
    border-left: 3px solid #003A70;
    padding-left: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #003A70;
    letter-spacing: 0.3px;
}

/* ── Form Rows (Window / Dialog) ────────── */
.bwm-form     { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.bwm-form-row { display: flex; flex-direction: column; gap: 4px; }

.bwm-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

/* ── Overview Stat Cards ────────────────── */
.bwm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bwm-stat-card-clickable {
    cursor    : pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.bwm-stat-card-clickable:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
    transform : translateY(-2px);
}

/* ── Driver Dashboard Info Cards ────────── */
.bwm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.bwm-info-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); overflow: hidden; }

.bwm-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.bwm-info-card-icon  { font-size: 26px; line-height: 1; }
.bwm-info-card-title { font-size: 15px; font-weight: 600; color: #1a202c; margin: 0; }

.bwm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 22px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.bwm-info-row:last-child { border-bottom: none; }
.bwm-info-label          { color: #94a3b8; font-weight: 400; }
.bwm-info-value          { font-weight: 700; color: #1a202c; }
.bwm-no-data             { padding: 24px 22px; color: #94a3b8; font-size: 14px; text-align: center; }

/* ── Report Defect Form ──────────────────── */
.bwm-rd-form {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bwm-rd-field  { display: flex; flex-direction: column; gap: 6px; }
.bwm-rd-label  { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: #94a3b8; }
.bwm-rd-checks { display: flex; gap: 28px; align-items: center; padding: 10px 0 4px; }

.bwm-rd-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.bwm-rd-check-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #0d2b5e;
    cursor: pointer;
}

.bwm-rd-actions { padding-top: 8px; border-top: 1px solid #f1f5f9; }

.bwm-rd-submit-btn {
    background: #003A70;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
}

.bwm-rd-submit-btn:hover  { background: #002a54; }
.bwm-rd-submit-btn:active { transform: scale(0.98); }

/* ── Telerik Theme Overrides (BWM Blue) ──── */
.bwm-grid-wrap .k-pager .k-selected,
.bwm-grid-wrap .k-pager .k-state-selected,
.bwm-grid-wrap .k-pager-numbers .k-selected,
.bwm-grid-wrap .k-pager-numbers .k-state-selected,
.bwm-grid-wrap .k-button.k-selected,
.bwm-grid-wrap .k-button-solid-primary {
    background-color: #003A70 !important;
    border-color:     #003A70 !important;
    color: #fff !important;
}

.bwm-grid-wrap .k-pager .k-button:not(.k-selected):hover,
.bwm-grid-wrap .k-pager-numbers .k-link:hover {
    background-color: #e8f0f8 !important;
    color: #003A70 !important;
}

.bwm-grid-wrap .k-sorted .k-cell-inner .k-sort-icon,
.bwm-grid-wrap .k-header.k-sorted { color: #003A70 !important; }

.bwm-grid-wrap .k-column-resizer:hover { background-color: #003A70 !important; }

.bwm-grid-wrap .k-input:focus,
.bwm-grid-wrap .k-input.k-focus {
    border-color: #003A70 !important;
    box-shadow: 0 0 0 2px rgba(0, 58, 112, 0.2) !important;
}

/* ── Window Form Input Overrides (.bwm-form) ─ */
.bwm-form .k-focus,
.bwm-form .k-focus .k-input-inner {
    border-color: #003A70 !important;
    box-shadow: 0 0 0 2px rgba(0, 58, 112, 0.2) !important;
}

/* ── Telerik Form Input Overrides ─────────── */
/* Enabled fields */
.bwm-rd-form .k-input:not(.k-disabled),
.bwm-rd-form .k-textbox:not(.k-disabled),
.bwm-rd-form .k-numerictextbox:not(.k-disabled),
.bwm-rd-form .k-textarea:not(.k-disabled),
.bwm-rd-form .k-dropdownlist:not(.k-disabled) {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1a202c !important;
}

.bwm-rd-form .k-input:not(.k-disabled) .k-input-inner,
.bwm-rd-form .k-textbox:not(.k-disabled) .k-input-inner,
.bwm-rd-form .k-numerictextbox:not(.k-disabled) .k-input-inner,
.bwm-rd-form .k-textarea:not(.k-disabled) .k-input-inner,
.bwm-rd-form .k-dropdownlist:not(.k-disabled) .k-input-inner {
    background-color: #ffffff !important;
    color: #1a202c !important;
}

/* Focus state */
.bwm-rd-form .k-input.k-focus:not(.k-disabled),
.bwm-rd-form .k-textbox.k-focus:not(.k-disabled),
.bwm-rd-form .k-numerictextbox.k-focus:not(.k-disabled),
.bwm-rd-form .k-textarea.k-focus:not(.k-disabled),
.bwm-rd-form .k-dropdownlist.k-focus:not(.k-disabled) {
    background-color: #ffffff !important;
    border-color: #0d2b5e !important;
    box-shadow: 0 0 0 2px rgba(13, 43, 94, 0.15) !important;
}

.bwm-rd-form .k-input-inner::placeholder { color: #94a3b8 !important; }

.bwm-rd-form .k-numerictextbox .k-spinner-increase,
.bwm-rd-form .k-numerictextbox .k-spinner-decrease {
    background-color: #ffffff !important;
    color: #64748b !important;
    border-color: #d1d5db !important;
}

/* Disabled fields */
.bwm-rd-field .k-input.k-disabled,
.bwm-rd-field .k-textbox.k-disabled,
.bwm-rd-field .k-numerictextbox.k-disabled,
.bwm-rd-field .k-input.k-disabled:hover,
.bwm-rd-field .k-textbox.k-disabled:hover {
    background-color: #eef2f7 !important;
    border-color: #dde3ed !important;
    color: #374151 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.bwm-rd-field .k-input.k-disabled .k-input-inner,
.bwm-rd-field .k-textbox.k-disabled .k-input-inner,
.bwm-rd-field .k-numerictextbox.k-disabled .k-input-inner,
.bwm-rd-field .k-disabled input,
.bwm-rd-field .k-disabled textarea {
    background-color: #eef2f7 !important;
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

/* ── Confirmation Overlay ────────────────── */
.bwm-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwm-confirm-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 40px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: bwm-pop .2s ease;
}

@keyframes bwm-pop {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.bwm-confirm-icon  { font-size: 48px; margin-bottom: 12px; }
.bwm-confirm-title { font-size: 18px; font-weight: 700; color: #1a202c; margin: 0 0 10px; }
.bwm-confirm-msg   { font-size: 14px; color: #475569; line-height: 1.6; margin: 0 0 10px; }

.bwm-confirm-tat {
    display: inline-block;
    background: #f0fdf4;
    color: #065f46;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    margin-bottom: 20px;
}

.bwm-confirm-close {
    display: block;
    width: 100%;
    padding: 11px;
    background: #0d2b5e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 16px;
}

.bwm-confirm-close:hover { background: #1a3f7a; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
    .bwm-rd-form      { padding: 16px; }
    .bwm-card-header  { padding: 16px; }

    /* Cards grid: allow cards to go below 340px on narrow phones */
    .bwm-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Stat cards: allow cards to go below 220px on very narrow phones */
    .bwm-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .bwm-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   Portal Layout — shared by Finance (BWMLayout) & Driver (DriverLayout)
   Sidebar + Topbar + Notifications + User Menu
   ============================================================= */

:root {
    --bwm-sidebar:                 #003A70;
    --bwm-active:                  #006BB6;
    --bwm-bg:                      #f0f4f8;
    --bwm-border:                  #e2e8f0;
    --bwm-sidebar-width:           260px;
    --bwm-sidebar-collapsed-width: 64px;
    --bwm-topbar-height:           76px;
}

.bwm-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bwm-bg);
}

/* ── Sidebar ── */
.bwm-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--bwm-sidebar-width);
    height: 100vh;
    background: var(--bwm-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.bwm-sidebar.collapsed { width: var(--bwm-sidebar-collapsed-width); }

.bwm-sidebar-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    white-space: nowrap;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: align-items 0.25s ease;
}

.bwm-sidebar.collapsed .bwm-sidebar-header {
    align-items: center;
    padding: 20px 0 12px;
}

.bwm-logo {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.bwm-sidebar.collapsed .bwm-logo {
    width: 60px; height: 40px;
    max-width: none;
    object-fit: cover;
    object-position: left center;
}

.bwm-role-label {
    margin-top: 6px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.bwm-sidebar.collapsed .bwm-role-label { opacity: 0; pointer-events: none; }

/* ── Nav ── */
.bwm-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.bwm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, padding 0.25s;
    white-space: nowrap;
    overflow: hidden;
}

.bwm-nav-item span { transition: opacity 0.15s ease; opacity: 1; }

.bwm-sidebar.collapsed .bwm-nav-item {
    padding: 13px 0;
    justify-content: center;
    border-left-color: transparent !important;
}

.bwm-sidebar.collapsed .bwm-nav-item span:not(.bwm-nav-icon) {
    opacity: 0; width: 0; overflow: hidden;
}

.bwm-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }

.bwm-nav-item.active { background: var(--bwm-active); color: #fff; border-left-color: #fff; }

.bwm-sidebar.collapsed .bwm-nav-item.active { background: var(--bwm-active); }

.bwm-nav-icon { font-size: 20px; line-height: 1; flex-shrink: 0; width: 24px; text-align: center; }

/* ── Collapse button ── */
.bwm-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
    background: rgba(255,255,255,0.05);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bwm-collapse-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.bwm-collapse-icon {
    font-size: 26px; line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
    font-style: normal;
}

.bwm-collapse-icon.rotated { transform: rotate(180deg); }

/* ── Main area ── */
.bwm-main {
    flex: 1;
    min-width: 0;
    width: 0;
    margin-left: var(--bwm-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.bwm-layout.nav-collapsed .bwm-main { margin-left: var(--bwm-sidebar-collapsed-width); }

/* ── Topbar ── */
.bwm-topbar {
    position: sticky;
    top: 0;
    height: var(--bwm-topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--bwm-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 900;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.bwm-hamburger {
    display: none;
    background: none; border: none;
    font-size: 22px; color: var(--bwm-sidebar);
    cursor: pointer; padding: 4px 8px;
    border-radius: 4px; line-height: 1;
}

.bwm-hamburger:hover { background: var(--bwm-bg); }

.bwm-topbar-title {
    flex: 1;
    font-size: 18px; font-weight: 600;
    color: var(--bwm-sidebar);
    margin: 0;
}

/* ── Branch badge (always visible in header) ── */
.bwm-branch-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e8f4fd;
    border: 1px solid #90caf9;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1565c0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Bell / icon buttons ── */
.bwm-bell-wrap { position: relative; flex-shrink: 0; }

.bwm-bell-btn {
    background: #fff8e1;
    border: 1px solid #ffe082;
    cursor: pointer;
    width: 38px; height: 38px;
    border-radius: 10px; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s;
    line-height: 1; position: relative;
}

.bwm-bell-btn:hover { background: #fff3cd; transform: scale(1.08); }

.bwm-bell-badge {
    position: absolute; top: -6px; right: -6px;
    background: #e53e3e; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
    border: 2px solid #fff;
}

/* ── Dropdown panels ── */
.bwm-notif-backdrop { position: fixed; inset: 0; z-index: 1098; }

@keyframes bwm-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bwm-notif-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 340px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1099;
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: bwm-slide-down 0.2s ease;
}

.bwm-notif-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.bwm-notif-title { font-size: 14px; font-weight: 700; color: #1a202c; }

.bwm-notif-count {
    font-size: 12px; color: #fff;
    background: #e53e3e; border-radius: 20px;
    padding: 2px 8px; font-weight: 600;
}

.bwm-notif-close {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: 15px;
    border-radius: 5px; padding: 3px 5px;
    transition: color 0.15s, background 0.15s;
}

.bwm-notif-close:hover { color: #374151; background: #f1f5f9; }

.bwm-notif-list { overflow-y: auto; max-height: 380px; flex: 1; }

.bwm-notif-empty { padding: 32px; text-align: center; color: #94a3b8; font-size: 13px; }

.bwm-notif-item {
    display: flex; gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
    cursor: pointer;
}

.bwm-notif-item:not(.bwm-notif-read) { border-left: 3px solid #22c55e; }

.bwm-notif-item:hover { background: #f8fafc; }

.bwm-notif-read { opacity: 1; background: #f8fafc; }

.bwm-notif-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0; margin-top: 5px;
}

.bwm-notif-dot-active { background: #e53e3e; }

.bwm-notif-body { flex: 1; min-width: 0; }

.bwm-notif-type {
    font-size: 11px; font-weight: 700;
    color: #003A70;
    text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.bwm-notif-msg {
    font-size: 13px; color: #334155; font-weight: 500; line-height: 1.4;
    word-break: break-word;
}

.bwm-notif-time { font-size: 11px; color: #64748b; font-weight: 400; margin-top: 4px; }

.bwm-notif-hint { font-size: 11px; color: #7c3aed; font-weight: 600; margin-top: 3px; }

/* ── User panel ── */
.bwm-user-panel { width: 220px; }

.bwm-user-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; font-size: 14px; color: #374151;
    cursor: pointer; transition: background 0.1s;
}

.bwm-user-menu-item:hover { background: #fee2e2; color: #991b1b; }

/* ── Content ── */
.bwm-content { flex: 1; min-width: 0; padding: 24px; overflow-x: hidden; }

/* ── Mobile overlay — shown via JS class, never by Blazor re-render ── */
.bwm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 999;
}

.bwm-layout.sidebar-open .bwm-overlay { display: block; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .bwm-sidebar {
        transform: translateX(calc(-1 * var(--bwm-sidebar-width)));
        width: var(--bwm-sidebar-width) !important;
    }

    .bwm-sidebar.is-open { transform: translateX(0); }

    .bwm-main { margin-left: 0 !important; }

    .bwm-hamburger { display: block; }

    .bwm-collapse-btn { display: none; }

    /* On mobile, always show full sidebar text regardless of collapsed state */
    .bwm-sidebar.collapsed { width: var(--bwm-sidebar-width) !important; }
    .bwm-sidebar.collapsed .bwm-nav-item { padding: 11px 20px; justify-content: flex-start; }
    .bwm-sidebar.collapsed .bwm-nav-item span:not(.bwm-nav-icon) { opacity: 1; width: auto; overflow: visible; }
    .bwm-sidebar.collapsed .bwm-sidebar-header { align-items: flex-start; padding: 20px 16px 12px; }
    .bwm-sidebar.collapsed .bwm-role-label { opacity: 1; pointer-events: auto; }

    .bwm-content { padding: 16px 12px; }

    .bwm-topbar { padding: 0 12px; }

    .bwm-topbar-title { font-size: 16px; }

    .bwm-notif-panel { width: calc(100vw - 24px); right: -8px; }
}

/* ── Page title — remove browser focus outline on h1 ── */
.bwm-page-title { outline: none; }

/* ── Telerik TabStrip — remove content-area border & padding ── */
.bwm-content .k-tabstrip,
.bwm-content .k-tabstrip-wrapper { border: none !important; box-shadow: none !important; }
.bwm-content .k-tabstrip > .k-content,
.bwm-content .k-tabstrip-content { border: none !important; padding: 0 !important; box-shadow: none !important; }

/* ── Telerik Dialog (AlertAsync/ConfirmAsync) — blue OK button ── */
.k-dialog .k-button.k-button-solid-primary,
.k-dialog .k-button.k-button-solid.k-button-solid-primary {
    background-color: #2196f3 !important;
    border-color:     #2196f3 !important;
    color:            #ffffff !important;
    border-radius:    30px !important;
}
.k-dialog .k-button.k-button-solid-primary:hover,
.k-dialog .k-button.k-button-solid.k-button-solid-primary:hover {
    background-color: #1976d2 !important;
    border-color:     #1976d2 !important;
}

/* ── Telerik Window — BBMS blue title bar (overrides Material theme purple) ── */
.k-window.k-window-primary .k-window-titlebar,
.k-window-primary .k-window-titlebar,
.popup_sec .k-window-titlebar {
    background-color: #003A70 !important;
    color:            #ffffff !important;
}

/* ── Info popup — bright blue header matching KB Reminder popup ── */
.popup_info .k-window-titlebar {
    background-color: #1976d2 !important;
    color:            #ffffff !important;
}
.popup_info .k-window-titlebar .k-icon,
.popup_info .k-window-titlebar .k-svg-icon,
.popup_info .k-window-titlebar .k-button {
    color: #ffffff !important;
}


/* ── Telerik inputs — remove Material theme purple tint (uses CSS var) ── */
.popup_sec .k-input,
.popup_sec .k-input.k-input-solid,
.popup_sec .k-picker,
.popup_sec .k-picker.k-picker-solid {
    --kendo-color-surface: #ffffff;
    background-color: #ffffff !important;
}
.popup_sec .k-input-inner {
    background-color: #ffffff !important;
    color:            rgba(0,0,0,0.87) !important;
}

/* ── Ticket Detail Popup – Design B ──────────────────────────────────────── */
.bwm-db-header {
    background : linear-gradient(135deg, #003A70 0%, #0059a8 100%);
    padding    : 14px 16px;
    color      : #fff;
}
.bwm-db-card {
    background    : #f8fafc;
    border        : 1px solid #e2e8f0;
    border-radius : 8px;
    padding       : 10px 12px;
    height        : 100%;
}
.bwm-db-card-lbl { font-size:11px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.bwm-db-card-val { font-size:14px; font-weight:600; color:#1e293b; }
