html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Dashboard wide mode (keeps mobile padding, expands on big screens) */
@media (min-width: 1200px) {
    .wide .page-wrap {
        max-width: 100% !important;
        padding-left: 24px;
        padding-right: 24px;
    }
}


\n\n/* Analyst button palette (screen mode, modern pill design) */
.btn-analyst-primary,
.btn-analyst-secondary,
.btn-analyst-ghost,
.btn-analyst-danger,
.btn-analyst-success,
.btn-analyst-warning {
    border-radius: 999px;
    font-weight: 500;
    padding: 0.35rem 0.95rem;
    font-size: 0.85rem;
    border-width: 1px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

/* Primary (Apply/Save) */
.btn-analyst-primary {
    /* same pill structure as secondary, but blue */
    background-color: #1D4ED8;
    border-color:     #1D4ED8;
    color: #FFFFFF;
}
.btn-analyst-primary:hover {
    background-color: #1E40AF;
    border-color:     #1E40AF;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}
.btn-analyst-primary:active,
.btn-analyst-primary.active {
    background-color: #1B3CA1;
    border-color:     #1B3CA1;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.45);
    transform: translateY(0);
}
/* Secondary (Edit/Manage) */
.btn-analyst-secondary {
    background-color: #374151;
    border-color: #374151;
    color: #FFFFFF;
}
.btn-analyst-secondary:hover {
    background-color: #1F2937;
    border-color: #1F2937;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
    transform: translateY(-1px);
}
.btn-analyst-secondary:active,
.btn-analyst-secondary.active {
    background-color: #111827;
    border-color: #111827;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.4);
    transform: translateY(0);
}

/* Ghost / Quiet (Help / Filter) */
.btn-analyst-ghost {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    color: #1D4ED8;
}
.btn-analyst-ghost:hover {
    background-color: #EFF6FF;
    border-color: #93C5FD;
    color: #1E40AF;
    box-shadow: 0 3px 8px rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}
.btn-analyst-ghost:active,
.btn-analyst-ghost.active {
    background-color: #DBEAFE;
    border-color: #93C5FD;
    color: #1B3CA1;
    box-shadow: 0 2px 5px rgba(148, 163, 184, 0.4);
    transform: translateY(0);
}

/* Danger (Delete) */
.btn-analyst-danger {
    background-color: #B91C1C;
    border-color: #B91C1C;
    color: #FFFFFF;
}
.btn-analyst-danger:hover {
    background-color: #991B1B;
    border-color: #991B1B;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.5);
    transform: translateY(-1px);
}
.btn-analyst-danger:active,
.btn-analyst-danger.active {
    background-color: #7F1D1D;
    border-color: #7F1D1D;
    box-shadow: 0 2px 6px rgba(127, 29, 29, 0.5);
    transform: translateY(0);
}

/* Success (Approve) */
.btn-analyst-success {
    background-color: #16A34A;
    border-color: #16A34A;
    color: #FFFFFF;
}
.btn-analyst-success:hover {
    background-color: #15803D;
    border-color: #15803D;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.45);
    transform: translateY(-1px);
}
.btn-analyst-success:active,
.btn-analyst-success.active {
    background-color: #166534;
    border-color: #166534;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.45);
    transform: translateY(0);
}

/* Warning (Needs attention) */
.btn-analyst-warning {
    background-color: #B45309;
    border-color: #B45309;
    color: #FFFFFF;
}
.btn-analyst-warning:hover {
    background-color: #92400E;
    border-color: #92400E;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.5);
    transform: translateY(-1px);
}
.btn-analyst-warning:active,
.btn-analyst-warning.active {
    background-color: #7C2D12;
    border-color: #7C2D12;
    box-shadow: 0 2px 6px rgba(124, 45, 18, 0.5);
    transform: translateY(0);
}

/* Disabled */
.btn-analyst-primary:disabled,
.btn-analyst-secondary:disabled,
.btn-analyst-ghost:disabled,
.btn-analyst-danger:disabled,
.btn-analyst-success:disabled,
.btn-analyst-warning:disabled,
.btn-analyst-primary.disabled,
.btn-analyst-secondary.disabled,
.btn-analyst-ghost.disabled,
.btn-analyst-danger.disabled,
.btn-analyst-success.disabled,
.btn-analyst-warning.disabled {
    background-color: #E5E7EB;
    border-color: #E5E7EB;
    color: #9CA3AF;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* Focus ring */
.btn-analyst-primary:focus-visible,
.btn-analyst-secondary:focus-visible,
.btn-analyst-ghost:focus-visible,
.btn-analyst-danger:focus-visible,
.btn-analyst-success:focus-visible,
.btn-analyst-warning:focus-visible {
    outline: 2px solid #93C5FD;
    outline-offset: 2px;
}\n
/* =========================================================
   Evidence Web — Light Side Rail
   ========================================================= */

.ew-app-shell {
    display: flex;
    min-height: 100vh;
}

/* Rail */
.ew-sidebar {
    width: 252px; /* between 240–260 px */
    background-color: #F5F7FB; /* rail background */
    border-right: 1px solid #E2E8F0; /* divider */
    flex-shrink: 0;
}

.ew-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0.75rem 0.75rem 1rem;
}

/* Brand */
.ew-sidebar-brand ising   display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem 0.75rem;
}

.ew-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.ew-logo-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F1A2C;
}

.ew-logo-sub {
    font-size: 0.75rem;
    color: #64748B;
}

/* Menu container */
.ew-nav {
    flex: 1;
    overflow-y: auto;
    padding-top: 0.25rem;
}

.ew-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Section label */
.ew-menu-section-label {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.7rem;              /* ~11px */
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
    margin-top: 0.75rem;
}

/* Divider */
.ew-menu-divider {
    border-top: 1px solid #E2E8F0;
    margin: 0.75rem 0.5rem;
}

/* Rows */
.ew-menu-item {
    position: relative;
}

.ew-menu-item-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem 0.55rem 0.9rem;
    min-height: 44px;               /* touch-friendly */
    font-size: 0.9rem;              /* 14–15px */
    color: #0F1A2C;
    text-decoration: none;
    line-height: 1.2;
}

.ew-menu-label {
    font-weight: 500;
}

.ew-menu-secondary {
    font-size: 0.75rem;
    color: #475569;                 /* secondary text */
    margin-top: 0.15rem;
    display: block;
}

/* Badge */
.ew-menu-badge {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 3ch;                 /* 3-digit max, then 99+ */
    text-align: center;
}

/* Hover */
.ew-menu-item-link:hover {
    background-color: #EAF2FF;      /* subtle tint */
    text-decoration: none;
}

/* Active state: blue bar + light row fill */
.ew-menu-item-link.is-active {
    background-color: #EAF2FF;
    color: #0F1A2C;
}

.ew-menu-item-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;                     /* slim bar 3–4px */
    border-radius: 999px;
    background-color: #2563EB;
}

/* Focus ring */
.ew-menu-item-link:focus-visible {
    outline: 2px solid #93C5FD;     /* keyboard focus ring */
    outline-offset: 2px;
}

/* Main content (right of rail) */
.ew-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ew-top-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.ew-main-body {
    flex: 1;
    padding: 0.75rem 1.25rem 1rem;
}

/* Fix .ew-sidebar-brand rule (override earlier typo) */
.ew-sidebar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem 0.75rem;
}

/* Layout override: make sidebar fixed and push content to the right */
.ew-app-shell {
    display: block;           /* stop flex from stacking oddly */
    min-height: 100vh;
}

.ew-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 252px;
    background-color: #F5F7FB;
    border-right: 1px solid #E2E8F0;
}

.ew-main {
    margin-left: 252px;       /* content sits next to the rail */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Remove top navbar line above the dashboard */
.ew-top-nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ==== Evidence Web – refined side menu (icon rows like mockup) ==== */

/* Row base */
.ew-menu-item-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem 0.55rem 0.85rem;
    min-height: 44px;
    font-size: 0.9rem;
    color: #0F1A2C;
    text-decoration: none;
    line-height: 1.2;
}

/* Icon + label group */
.ew-menu-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

/* Icon pill (placeholder letters; can swap to real icons later) */
.ew-menu-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563EB, #60A5FA);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Label text */
.ew-menu-label {
    font-weight: 500;
}

/* Badge (kept small + tight) */
.ew-menu-badge {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 3ch;
    text-align: center;
}

/* Hover / active */
.ew-menu-item-link:hover {
    background-color: #EAF2FF;
    text-decoration: none;
}

.ew-menu-item-link.is-active {
    background-color: #EAF2FF;
    color: #0F1A2C;
}

.ew-menu-item-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background-color: #2563EB;
}

/* Focus ring for keyboard users */
.ew-menu-item-link:focus-visible {
    outline: 2px solid #93C5FD;
    outline-offset: 2px;
}

/* --- Evidence Web logo in sidebar --- */
.ew-logo-mark {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #2563EB;              /* brand blue for EW letters */
    font-size: 1.5rem;           /* bigger like the mockup */
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    box-shadow: none;
    letter-spacing: 0.02em;
}

/* Evidence Web logo image in sidebar */
.ew-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.9rem 1.4rem;
}

.ew-logo-img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Make sidebar background pure white to blend logo background */
.ew-sidebar {
    background-color: #ffffff !important;
}

/* Tighten space between logo and first menu item */
.ew-sidebar-brand {
    padding: 0.4rem 0.9rem 0.2rem;
}

/* ===== Icon set for left menu ===== */

/* Base icon */
.ew-menu-icon {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;              /* hide letter by default */
    border: 2px solid #1D4ED8; /* primary line colour */
    color: #1D4ED8;
    position: relative;
}

/* Dashboard: filled circle with B inside */
.ew-icon-dashboard {
    background-color: #2563EB;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Cases: folder outline */
.ew-icon-cases {
    width: 30px;
    height: 22px;
    border-radius: 6px;
}
.ew-icon-cases::before {
    content: "";
    position: absolute;
    left: 4px;
    top: -5px;
    width: 14px;
    height: 7px;
    border: 2px solid #1D4ED8;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

/* Evidence Map: small network of nodes */
.ew-icon-evidence {
    border: none;
    width: 30px;
    height: 30px;
}
.ew-icon-evidence::before,
.ew-icon-evidence::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 2px solid #1D4ED8;
}
.ew-icon-evidence::before {
    width: 8px;
    height: 8px;
    left: 4px;
    top: 5px;
}
.ew-icon-evidence::after {
    width: 8px;
    height: 8px;
    right: 4px;
    bottom: 5px;
}
.ew-icon-evidence::marker;
.ew-icon-evidence span { display:none; }

.ew-icon-evidence::after,
.ew-icon-evidence::before;

/* connecting diagonal line */
.ew-icon-evidence::selection;
.ew-icon-evidence::placeholder;
.ew-icon-evidence::backdrop;
.ew-icon-evidence::cue;
.ew-icon-evidence::cue-region;
.ew-icon-evidence::target-text;

.ew-icon-evidence {
    background:
      linear-gradient(135deg, transparent 48%, #1D4ED8 50%, #1D4ED8 52%, transparent 54%);
}

/* Case Insights: little bar chart inside a rounded box */
.ew-icon-insights {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}
.ew-icon-insights::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 3px;
    height: 6px;
    background-color: #1D4ED8;
    box-shadow:
      6px -4px 0 0 #1D4ED8,
      12px 2px 0 0 #1D4ED8;
}

/* BrainMap: simple brain outline */
.ew-icon-brain {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
.ew-icon-brain::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background-color: #1D4ED8;
    transform: translateX(-50%);
}
.ew-icon-brain::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 6px;
    bottom: 6px;
    border-left: 2px solid #1D4ED8;
    border-right: 2px solid #1D4ED8;
    border-radius: 999px;
}

/* Uploads: simple upload arrow */
.ew-icon-uploads {
    border: none;
    width: 30px;
    height: 26px;
}
.ew-icon-uploads::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 2px;
    height: 9px;
    background-color: #1D4ED8;
    transform: translateX(-50%);
}
.ew-icon-uploads::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid #1D4ED8;
    transform: translateX(-50%);
}

/* Search: magnifying glass */
.ew-icon-search {
    border: none;
    width: 28px;
    height: 28px;
}
.ew-icon-search::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #1D4ED8;
}
.ew-icon-search::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 2px;
    background-color: #1D4ED8;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* Reports: three vertical bars */
.ew-icon-reports {
    border: none;
    width: 26px;
    height: 26px;
}
.ew-icon-reports::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 3px;
    height: 6px;
    background-color: #1D4ED8;
    box-shadow:
      6px 4px 0 0 #1D4ED8,
      12px -2px 0 0 #1D4ED8;
}

/* Notifications: bell outline */
.ew-icon-bell {
    border: none;
    width: 26px;
    height: 26px;
}
.ew-icon-bell::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 5px;
    bottom: 7px;
    border-radius: 50% 50% 40% 40%;
    border: 2px solid #1D4ED8;
}
.ew-icon-bell::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background-color: #1D4ED8;
}

/* FINAL icon styling to match Evidence Web mockup
   - Only Dashboard is a filled blue circle
   - All other icons are line icons on transparent background
*/

.ew-menu-icon {
    flex: 0 0 32px;
    height: 32px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;                 /* hide letters by default */
    border: none;
    background: transparent !important;
    box-shadow: none !important;
}

/* Dashboard: big blue circle with B */
.ew-icon-dashboard {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
}

/* Cases: folder outline */
.ew-icon-cases {
    width: 30px;
    height: 20px;
}
.ew-icon-cases::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 3px;
    top: 8px;
    border-radius: 6px;
    border: 2px solid #1D4ED8;
}
.ew-icon-cases::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 13px;
    height: 7px;
    border-radius: 4px 4px 0 0;
    border: 2px solid #1D4ED8;
    border-bottom: none;
}

/* Evidence Map: 3 connected nodes */
.ew-icon-evidence {
    width: 30px;
    height: 30px;
}
.ew-icon-evidence::before,
.ew-icon-evidence::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 2px solid #1D4ED8;
}
/* left node */
.ew-icon-evidence::before {
    width: 8px;
    height: 8px;
    left: 4px;
    bottom: 6px;
    box-shadow:
        11px -10px 0 0 #1D4ED8;   /* top-right node */
}
/* bottom-right node (extra circle) */
.ew-icon-evidence::after {
    width: 8px;
    height: 8px;
    right: 4px;
    bottom: 6px;
}
/* connecting lines */
.ew-icon-evidence {
    background-image:
        linear-gradient(45deg, transparent 45%, #1D4ED8 47%, #1D4ED8 53%, transparent 55%),
        linear-gradient(-60deg, transparent 47%, #1D4ED8 49%, #1D4ED8 51%, transparent 53%);
    background-repeat: no-repeat;
    background-position: center;
}

/* Case Insights: little bar chart in a rounded box */
.ew-icon-insights {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #1D4ED8;
}
.ew-icon-insights::before {
    content: "";
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 3px;
    height: 6px;
    background-color: #1D4ED8;
    box-shadow:
      6px -4px 0 0 #1D4ED8,
      12px 2px 0 0 #1D4ED8;
}

/* BrainMap: simple brain outline */
.ew-icon-brain {
    width: 30px;
    height: 28px;
}
.ew-icon-brain::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #1D4ED8;
    transform: translateX(-50%);
}
.ew-icon-brain::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 6px;
    bottom: 6px;
    border-left: 2px solid #1D4ED8;
    border-right: 2px solid #1D4ED8;
    border-radius: 999px;
}

/* Uploads: cloud with upload arrow */
.ew-icon-uploads {
    width: 30px;
    height: 26px;
}
.ew-icon-uploads::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #1D4ED8;
}
.ew-icon-uploads::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid #1D4ED8;
    transform: translateX(-50%);
}
/* small arrow stem */
.ew-icon-uploads span { display:none; }

/* Search: magnifying glass */
.ew-icon-search {
    width: 28px;
    height: 28px;
}
.ew-icon-search::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #1D4ED8;
}
.ew-icon-search::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 2px;
    background-color: #1D4ED8;
    transform: rotate(45deg);
    transform-origin: left center;
}

/* Reports: three vertical bars */
.ew-icon-reports {
    width: 26px;
    height: 26px;
}
.ew-icon-reports::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 3px;
    height: 6px;
    background-color: #1D4ED8;
    box-shadow:
      6px 4px 0 0 #1D4ED8,
      12px -2px 0 0 #1D4ED8;
}

/* Notifications: bell outline */
.ew-icon-bell {
    width: 26px;
    height: 26px;
}
.ew-icon-bell::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 5px;
    bottom: 7px;
    border-radius: 50% 50% 40% 40%;
    border: 2px solid #1D4ED8;
}
.ew-icon-bell::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background-color: #1D4ED8;
}

/* --- FINAL size pass for menu icons to match reference strip --- */

.ew-menu-icon {
    flex: 0 0 40px;
    height: 40px;
}

/* Dashboard: big blue circle with bold B */
.ew-icon-dashboard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #2563EB;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Cases: slightly larger folder */
.ew-icon-cases {
    width: 34px;
    height: 26px;
}
.ew-icon-cases::before {
    left: 3px;
    right: 3px;
    bottom: 3px;
    top: 9px;
    border-width: 2px;
}
.ew-icon-cases::after {
    left: 4px;
    top: 3px;
    width: 15px;
    height: 8px;
    border-width: 2px;
}

/* Evidence Map: enlarge network */
.ew-icon-evidence {
    width: 34px;
    height: 34px;
}
.ew-icon-evidence::before {
    width: 9px;
    height: 9px;
    left: 5px;
    bottom: 7px;
    box-shadow:
        13px -11px 0 0 #1D4ED8;
}
.ew-icon-evidence::after {
    width: 9px;
    height: 9px;
    right: 5px;
    bottom: 7px;
}

/* Case Insights: bigger card */
.ew-icon-insights {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.ew-icon-insights::before {
    left: 6px;
    bottom: 6px;
    width: 4px;
    height: 8px;
    box-shadow:
      7px -4px 0 0 #1D4ED8,
      14px 3px 0 0 #1D4ED8;
}

/* BrainMap: enlarge outline */
.ew-icon-brain {
    width: 32px;
    height: 30px;
}
.ew-icon-brain::before {
    top: 5px;
    bottom: 5px;
}
.ew-icon-brain::after {
    left: 6px;
    right: 6px;
    top: 7px;
    bottom: 7px;
    border-left-width: 2px;
    border-right-width: 2px;
}

/* Uploads: bigger cloud + arrow */
.ew-icon-uploads {
    width: 32px;
    height: 28px;
}
.ew-icon-uploads::before {
    left: 6px;
    right: 6px;
    bottom: 7px;
    height: 11px;
    border-width: 2px;
}
.ew-icon-uploads::after {
    bottom: 17px;
}

/* Search, Reports, Bell: just make slightly larger to match new base size */
.ew-icon-search,
.ew-icon-reports,
.ew-icon-bell {
    width: 30px;
    height: 30px;
}

/* Ensure Dashboard icon is a solid blue circle, overriding earlier !important */
.ew-icon-dashboard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #2563EB !important;
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Use real PNG for Dashboard icon */
.ew-icon-dashboard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: transparent !important;
    background-image: url('/img/nav-dashboard.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;   /* hide the B letter */
    font-size: 0;
}

/* HARD OVERRIDE: Dashboard uses nav-dashboard.png */
.ew-icon-dashboard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: transparent !important;
    background-image: url('/img/nav-dashboard.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    color: transparent !important;   /* hide fallback B text */
    font-size: 0 !important;
}

/* --- Swap: Dashboard back to B-circle, Cases uses PNG icon --- */

/* Dashboard: solid blue circle with B text */
.ew-icon-dashboard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #2563EB !important;
    background-image: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 1.3rem !important;
    font-weight: 700;
}

/* Cases: use the PNG picture icon */
.ew-icon-cases {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: transparent !important;
    background-image: url('/img/nav-dashboard.png') !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border: none !important;
}

/* Kill any old line-art shapes on the cases icon */
.ew-icon-cases::before,
.ew-icon-cases::after {
    content: none !important;
}


/* Evidence Web nav PNG overrides (Evidence Map) */
.ew-icon-evidence {
    width: 30px;
    height: 30px;
    background: url('/img/nav-evidence.png') center center / contain no-repeat !important;
    border: none;
}

/* Disable old pseudo-element lines/circles for Evidence Map icon */
.ew-icon-evidence::before,
.ew-icon-evidence::after {
    content: none !important;
}


/* Evidence Web nav PNG overrides (Case Insights) */
.ew-icon-insights {
    width: 30px;
    height: 30px;
    background: url('/img/nav-insights.png') center center / contain no-repeat !important;
    border: none !important;
}

/* Disable old line-art for Case Insights icon */
.ew-icon-insights::before,
.ew-icon-insights::after {
    content: none !important;
}


/* Evidence Web nav PNG overrides (BrainMap) */
.ew-icon-brain {
    width: 30px;
    height: 30px;
    background: url('/img/nav-brain.png') center center / contain no-repeat !important;
    border: none !important;
}

/* Disable old line-art for BrainMap icon */
.ew-icon-brain::before,
.ew-icon-brain::after {
    content: none !important;
}


/* Evidence Web nav PNG overrides (Uploads, Search, Reports, Notifications) */
.ew-icon-uploads {
    width: 30px;
    height: 30px;
    background: url('/img/nav-uploads.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-uploads::before,
.ew-icon-uploads::after {
    content: none !important;
}

.ew-icon-search {
    width: 30px;
    height: 30px;
    background: url('/img/nav-search.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-search::before,
.ew-icon-search::after {
    content: none !important;
}

.ew-icon-reports {
    width: 30px;
    height: 30px;
    background: url('/img/nav-reports.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-reports::before,
.ew-icon-reports::after {
    content: none !important;
}

.ew-icon-bell {
    width: 30px;
    height: 30px;
    background: url('/img/nav-bell.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-bell::before,
.ew-icon-bell::after {
    content: none !important;
}


/* Slightly larger Search & Reports icons */
.ew-icon-search {
    width: 34px !important;
    height: 34px !important;
}

.ew-icon-reports {
    width: 34px !important;
    height: 34px !important;
}


/* FINAL Cases icon: line-art folder, no PNG background */
.ew-icon-cases {
    width: 30px !important;
    height: 24px !important;
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    border: none !important;
}

/* Draw the folder shape again (override any old content:none) */
.ew-icon-cases::before,
.ew-icon-cases::after {
    content: "" !important;
    position: absolute;
    border: 2px solid #1D4ED8;
}

/* Folder body */
.ew-icon-cases::before {
    left: 3px;
    right: 3px;
    bottom: 3px;
    top: 8px;
    border-radius: 6px;
}

/* Folder tab */
.ew-icon-cases::after {
    left: 3px;
    top: 3px;
    width: 13px;
    height: 7px;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
}


/* Evidence Web nav PNG overrides (Cases -> nav-dashboard.png) */
.ew-icon-cases {
    width: 30px;
    height: 30px;
    background: url('/img/nav-dashboard.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}

/* Kill any folder line-art for Cases icon */
.ew-icon-cases::before,
.ew-icon-cases::after {
    content: none !important;
    border: 0 !important;
}


/* Evidence Web nav PNG overrides (Settings, Support, My Profile) */
.ew-icon-settings {
    width: 30px;
    height: 30px;
    background: url('/img/nav-settings.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-settings::before,
.ew-icon-settings::after {
    content: none !important;
}

.ew-icon-support {
    width: 30px;
    height: 30px;
    background: url('/img/nav-support.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-support::before,
.ew-icon-support::after {
    content: none !important;
}

.ew-icon-profile {
    width: 30px;
    height: 30px;
    background: url('/img/nav-profile.png') center center / contain no-repeat !important;
    border: none !important;
}
.ew-icon-profile::before,
.ew-icon-profile::after {
    content: none !important;
}


/* FINAL account icons: correct images + slightly smaller */
.ew-icon-settings {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-settings.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-icon-settings::before,
.ew-icon-settings::after {
    content: none !important;
    border: 0 !important;
}

.ew-icon-support {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-support.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-icon-support::before,
.ew-icon-support::after {
    content: none !important;
    border: 0 !important;
}

.ew-icon-profile {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-profile.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-icon-profile::before,
.ew-icon-profile::after {
    content: none !important;
    border: 0 !important;
}


/* HARD FIX: account icons (Settings, Support, My Profile) 
   - Force correct image
   - Make them slightly smaller (26x26)
   - Override ANY older rules
*/
.ew-menu .ew-menu-icon.ew-icon-settings {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-settings.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-menu .ew-menu-icon.ew-icon-settings::before,
.ew-menu .ew-menu-icon.ew-icon-settings::after {
    content: none !important;
    border: 0 !important;
}

.ew-menu .ew-menu-icon.ew-icon-support {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-support.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-menu .ew-menu-icon.ew-icon-support::before,
.ew-menu .ew-menu-icon.ew-icon-support::after {
    content: none !important;
    border: 0 !important;
}

.ew-menu .ew-menu-icon.ew-icon-profile {
    width: 26px !important;
    height: 26px !important;
    background: url('/img/nav-profile.png') center center / contain no-repeat !important;
    background-color: transparent !important;
    border: none !important;
}
.ew-menu .ew-menu-icon.ew-icon-profile::before,
.ew-menu .ew-menu-icon.ew-icon-profile::after {
    content: none !important;
    border: 0 !important;
}


/* Account icons using PNGs (Settings / Support / Profile) */
.ew-icon-settings-account,
.ew-icon-support-account,
.ew-icon-profile-account {
    width: 20px;
    height: 20px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Individual images */
.ew-icon-settings-account { background-image: url('/img/nav-settings.png'); }
.ew-icon-support-account  { background-image: url('/img/nav-support.png'); }
.ew-icon-profile-account  { background-image: url('/img/nav-profile.png'); }


/* Hide legacy account ::before icons so only PNG icons show */
.ew-menu-item a[href*="/Settings"]::before,
.ew-menu-item a[href*="/Support"]::before,
.ew-menu-item a[href*="/Profile"]::before {
    content: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin-right: 0 !important;
}


/* Account nav PNG overrides (Settings/Support/Profile) */
.ew-menu-item a[href*="/Settings"]::before,
.ew-menu-item a[href*="/Support"]::before,
.ew-menu-item a[href*="/Profile"]::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.55rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Each account entry gets its own PNG */
.ew-menu-item a[href*="/Settings"]::before {
    background-image: url('/img/nav-settings.png');
}
.ew-menu-item a[href*="/Support"]::before {
    background-image: url('/img/nav-support.png');
}
.ew-menu-item a[href*="/Profile"]::before {
    background-image: url('/img/nav-profile.png');
}


/* Account icons – final size tweak */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 16px;
    height: 16px;
}



/* Account icons – aligned + slightly smaller */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 16px !important;
    height: 16px !important;
    transform: translateY(-1px);
}
/* Account icons – smaller final size */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
}


/* Account icons – force smaller & aligned */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 20px !important;   /* shrink their slot */
    transform: translateY(-1px);
}


/* Account icons – small but keep label alignment with rest of menu */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 32px !important;   /* same gutter as other icons */
    transform: translateY(0);    /* reset vertical nudge */
}


/* Final micro-tweak: account icons vertical alignment */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 32px !important;      /* keep same gutter as other icons */
    transform: translateY(1px) !important;  /* tiny nudge down */
}


/* Final micro-tweak v2: account icons vertical alignment */
.ew-icon-settings,
.ew-icon-support,
.ew-icon-profile {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 32px !important;          /* same gutter as other icons */
    transform: translateY(2px) !important;  /* one more pixel down */
}
