/* TSI Dashboard v3 — Angular-dashboard (dashboard-v3) inspired light console
 * Loaded as a real stylesheet AFTER Moodle theme pack so it always wins.
 * Scope: body.local-kopere_dashboard / .path-local-kopere_dashboard only.
 */
/* ===================================================================
   TSI DASHBOARD — Angular-dashboard inspired (v3 light console)
   Reference: angular-dashboards-main/dashboard-v3
   Layout: white sidebar | white sticky top-bar | gray-100 content
   =================================================================== */

/* ---------- Page wrapper ------------------------------------------ */
.local-kopere_dashboard,
.path-local-kopere_dashboard {
    background: #f3f4f6 !important; /* gray-100 */
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    color: #111827 !important;
}

/* ---------- Shell grid -------------------------------------------- */
.local-kopere_dashboard .kopere_dashboard-card-shell,
.path-local-kopere_dashboard .kopere_dashboard-card-shell,
.local-kopere_dashboard [data-kopere_dashboard-shell],
.path-local-kopere_dashboard [data-kopere_dashboard-shell] {
    display: grid !important;
    grid-template-columns: 16rem minmax(0, 1fr) !important; /* w-64 */
    min-height: 100vh !important;
    gap: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed,
.path-local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed {
    grid-template-columns: 4.5rem minmax(0, 1fr) !important;
}

.local-kopere_dashboard .kopere_dashboard-card-main,
.path-local-kopere_dashboard .kopere_dashboard-card-main {
    min-width: 0 !important;
    background: transparent !important;
}

.local-kopere_dashboard .kopere_dashboard-dashboard,
.path-local-kopere_dashboard .kopere_dashboard-dashboard {
    padding: 1rem 1.25rem 2rem !important;
    background: transparent !important;
}

/* ===== SIDEBAR — white rail (angular v3 bg-white) ================= */
.local-kopere_dashboard .kopere_dashboard-card-sidenav,
.path-local-kopere_dashboard .kopere_dashboard-card-sidenav,
.local-kopere_dashboard [data-kopere_dashboard-sidebar],
.path-local-kopere_dashboard [data-kopere_dashboard-sidebar] {
    background: #ffffff !important;
    background-image: none !important;
    border-right: 1px solid #e5e7eb !important;
    color: #4b5563 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    position: sticky !important;
    top: 0 !important;
    align-self: start !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 40 !important;
}

/* No gold bar on light sidebar */
.local-kopere_dashboard .kopere_dashboard-card-sidenav::before,
.path-local-kopere_dashboard .kopere_dashboard-card-sidenav::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: none !important;
}

/* Brand header — compact; content set by JS (Welcome + user). Logo hidden. */
.local-kopere_dashboard .kopere_dashboard-card-brand,
.path-local-kopere_dashboard .kopere_dashboard-card-brand {
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 0.55rem 0.85rem 0.5rem !important;
    text-align: left !important;
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
}
.local-kopere_dashboard .kopere_dashboard-card-brandlink,
.path-local-kopere_dashboard .kopere_dashboard-card-brandlink {
    color: #111827 !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    text-align: left !important;
}
.local-kopere_dashboard .kopere_dashboard-card-brandmark,
.path-local-kopere_dashboard .kopere_dashboard-card-brandmark {
    display: none !important;
}
.local-kopere_dashboard .kopere_dashboard-card-brandmark img,
.path-local-kopere_dashboard .kopere_dashboard-card-brandmark img {
    display: none !important;
}
.local-kopere_dashboard .tsi-kd-brand-meta,
.path-local-kopere_dashboard .tsi-kd-brand-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.05rem !important;
    line-height: 1.2 !important;
}
.local-kopere_dashboard .tsi-kd-brand-name,
.path-local-kopere_dashboard .tsi-kd-brand-name,
.local-kopere_dashboard .kopere_dashboard-card-brandname,
.path-local-kopere_dashboard .kopere_dashboard-card-brandname {
    color: #111827 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
.local-kopere_dashboard .tsi-kd-brand-sub,
.path-local-kopere_dashboard .tsi-kd-brand-sub {
    color: #6b7280 !important;
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}

/* Nav search */
.local-kopere_dashboard .tsi-kd-nav-search,
.path-local-kopere_dashboard .tsi-kd-nav-search {
    padding: 0.5rem 0.85rem 0.65rem !important;
}
.local-kopere_dashboard .tsi-kd-nav-search-inner svg,
.path-local-kopere_dashboard .tsi-kd-nav-search-inner svg {
    color: #9ca3af !important;
}
.local-kopere_dashboard .tsi-kd-nav-search input,
.local-kopere_dashboard .tsi-kd-nav-search input.form-control,
.local-kopere_dashboard .kopere_dashboard-card-sidenav input[data-tsi-kd-navsearch],
.path-local-kopere_dashboard .tsi-kd-nav-search input,
.path-local-kopere_dashboard .kopere_dashboard-card-sidenav input[data-tsi-kd-navsearch],
.path-local-kopere_dashboard [data-tsi-kd-navsearch] {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border: 1px solid transparent !important;
    border-radius: 1rem !important; /* rounded-2xl */
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    caret-color: #3b82f6 !important;
    padding: 0.45rem 0.75rem 0.45rem 2.1rem !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.local-kopere_dashboard .tsi-kd-nav-search input::placeholder,
.path-local-kopere_dashboard .tsi-kd-nav-search input::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
}
.local-kopere_dashboard .tsi-kd-nav-search input:focus,
.path-local-kopere_dashboard .tsi-kd-nav-search input:focus {
    background: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #3b82f6 !important; /* ring-2 ring-blue-500 */
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
.local-kopere_dashboard .tsi-kd-nav-search input:-webkit-autofill,
.path-local-kopere_dashboard .tsi-kd-nav-search input:-webkit-autofill {
    -webkit-text-fill-color: #111827 !important;
    box-shadow: 0 0 0 1000px #f3f4f6 inset !important;
}

/* Group titles */
.local-kopere_dashboard .kopere_dashboard-card-navgroup-title,
.path-local-kopere_dashboard .kopere_dashboard-card-navgroup-title {
    color: #9ca3af !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 1.1rem 1.15rem 0.35rem !important;
    background: transparent !important;
}

/* Nav items — angular v3: uppercase thin gray, hover blue, active gradient */
.local-kopere_dashboard .kopere_dashboard-card-navitem,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem {
    color: #6b7280 !important;
    border: none !important;
    border-right: 4px solid transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    margin: 0.15rem 0 !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-decoration: none !important;
    background: transparent !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navlabel,
.local-kopere_dashboard .kopere_dashboard-card-navlink,
.path-local-kopere_dashboard .kopere_dashboard-card-navlabel,
.path-local-kopere_dashboard .kopere_dashboard-card-navlink {
    color: inherit !important;
    font-size: 0.8rem !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
/* Kill any accidental inputs inside nav labels */
.local-kopere_dashboard .kopere_dashboard-card-navitem input,
.local-kopere_dashboard .kopere_dashboard-card-navlabel input,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem input {
    display: none !important;
}

.local-kopere_dashboard .kopere_dashboard-card-navitem:hover,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem:hover {
    background: transparent !important;
    color: #3b82f6 !important; /* hover:text-blue-500 */
    border-right-color: transparent !important;
    text-decoration: none !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem:hover .kopere_dashboard-card-navlabel,
.local-kopere_dashboard .kopere_dashboard-card-navitem:hover .kopere_dashboard-card-navlink,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem:hover .kopere_dashboard-card-navlabel,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem:hover .kopere_dashboard-card-navlink {
    color: #3b82f6 !important;
}

/* Active: from-white to-blue-100 + border-r-4 border-blue-500 + text-blue-500 */
.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active {
    background: linear-gradient(90deg, #ffffff 0%, #dbeafe 100%) !important;
    border-right: 4px solid #3b82f6 !important;
    border-left: none !important;
    color: #3b82f6 !important;
    font-weight: 600 !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-card-navlabel,
.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-card-navlink,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-card-navlabel,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-card-navlink {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

/* Parent summaries / children */
.local-kopere_dashboard .kopere_dashboard-card-navsummary,
.path-local-kopere_dashboard .kopere_dashboard-card-navsummary {
    cursor: pointer;
}
.local-kopere_dashboard .kopere_dashboard-card-navcaret,
.path-local-kopere_dashboard .kopere_dashboard-card-navcaret {
    color: #9ca3af !important;
    margin-left: auto !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navsummary.is-expanded .kopere_dashboard-card-navcaret,
.path-local-kopere_dashboard .kopere_dashboard-card-navsummary.is-expanded .kopere_dashboard-card-navcaret {
    color: #3b82f6 !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navchildren,
.path-local-kopere_dashboard .kopere_dashboard-card-navchildren {
    background: #f9fafb !important;
    border-left: 2px solid #e5e7eb !important;
    margin: 0 0 0 1rem !important;
    border-radius: 0 !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem--child,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem--child {
    color: #6b7280 !important;
    border-bottom: none !important;
    text-transform: none !important;
    font-size: 0.78rem !important;
    padding: 0.65rem 1rem !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem--child .kopere_dashboard-card-navlabel,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem--child .kopere_dashboard-card-navlabel {
    color: inherit !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem--child.is-active,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem--child.is-active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-right: 3px solid #3b82f6 !important;
}

/* Icons */
.local-kopere_dashboard .kopere_dashboard-card-navicon,
.path-local-kopere_dashboard .kopere_dashboard-card-navicon {
    flex-shrink: 0 !important;
    width: 1.35rem !important;
    text-align: center !important;
    color: inherit !important;
}
.local-kopere_dashboard .kopere_dashboard-material-icon,
.path-local-kopere_dashboard .kopere_dashboard-material-icon {
    color: inherit !important;
    font-size: 1.15rem !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-material-icon,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active .kopere_dashboard-material-icon {
    color: #3b82f6 !important;
}

/* Collapsed sidebar: hide labels */
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .kopere_dashboard-card-navlabel,
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .kopere_dashboard-card-navlink,
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-brand-meta,
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .kopere_dashboard-card-navgroup-title,
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-nav-search {
    display: none !important;
}

/* ===== TOP HEADER BAR (angular v3/v5: white bar, tools right) ======= */
.local-kopere_dashboard .kopere_dashboard-card-header,
.path-local-kopere_dashboard .kopere_dashboard-card-header {
    background: #ffffff !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    min-height: 4rem !important;
}

/* Sticky top row inside dashboard content — single horizontal bar */
.local-kopere_dashboard .kopere_dashboard-toprow,
.path-local-kopere_dashboard .kopere_dashboard-toprow {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 1.25rem !important;
    padding: 0.75rem 1.15rem !important;
    min-height: 4.5rem !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important; /* rounded-2xl */
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04) !important;
    position: sticky !important;
    top: 0.75rem !important;
    z-index: 40 !important;
}

.local-kopere_dashboard .tsi-kd-top-left,
.path-local-kopere_dashboard .tsi-kd-top-left {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    text-align: left !important;
}

.local-kopere_dashboard .kopere_dashboard-breadcrumb,
.path-local-kopere_dashboard .kopere_dashboard-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.2rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    width: auto !important;
}

.local-kopere_dashboard .kopere_dashboard-breadcrumb a,
.path-local-kopere_dashboard .kopere_dashboard-breadcrumb a {
    color: #2563eb !important;
    text-decoration: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
}
.local-kopere_dashboard .kopere_dashboard-breadcrumb a:hover,
.path-local-kopere_dashboard .kopere_dashboard-breadcrumb a:hover {
    text-decoration: underline !important;
}

.local-kopere_dashboard .kopere_dashboard-title,
.local-kopere_dashboard .kopere_dashboard-toprow-left h2,
.path-local-kopere_dashboard .kopere_dashboard-title,
.path-local-kopere_dashboard .kopere_dashboard-toprow-left h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #111827 !important;
    text-align: left !important;
    border: none !important;
    width: auto !important;
}
/* remove weird center underline from finance hero colliding with title */
.local-kopere_dashboard .kopere_dashboard-title::after,
.path-local-kopere_dashboard .kopere_dashboard-title::after {
    display: none !important;
}

/* RIGHT TOOLS CLUSTER */
.local-kopere_dashboard .tsi-kd-top-actions,
.path-local-kopere_dashboard .tsi-kd-top-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;
    width: auto !important;
    max-width: none !important;
    align-self: center !important;
}

.local-kopere_dashboard .tsi-kd-top-sep,
.path-local-kopere_dashboard .tsi-kd-top-sep {
    width: 1px !important;
    height: 1.4rem !important;
    background: #e5e7eb !important;
    margin: 0 0.15rem !important;
}

.local-kopere_dashboard .tsi-kd-chip,
.path-local-kopere_dashboard .tsi-kd-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.35rem 0.7rem !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}
.local-kopere_dashboard .tsi-kd-chip--gold,
.path-local-kopere_dashboard .tsi-kd-chip--gold {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}
.local-kopere_dashboard .tsi-kd-chip--live::before,
.path-local-kopere_dashboard .tsi-kd-chip--live::before {
    content: "" !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18) !important;
}

.local-kopere_dashboard .tsi-kd-icon-btn,
.path-local-kopere_dashboard .tsi-kd-icon-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    border-radius: 0.65rem !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #4b5563 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transform: none !important;
}
.local-kopere_dashboard .tsi-kd-icon-btn .material-symbols-outlined,
.path-local-kopere_dashboard .tsi-kd-icon-btn .material-symbols-outlined {
    font-size: 1.2rem !important;
    line-height: 1 !important;
}
.local-kopere_dashboard .tsi-kd-icon-btn:hover,
.path-local-kopere_dashboard .tsi-kd-icon-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #2563eb !important;
    transform: none !important;
    box-shadow: none !important;
}
.local-kopere_dashboard .tsi-kd-icon-btn--primary,
.path-local-kopere_dashboard .tsi-kd-icon-btn--primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.local-kopere_dashboard .tsi-kd-icon-btn--primary:hover,
.path-local-kopere_dashboard .tsi-kd-icon-btn--primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Mobile: allow wrap only under 640px */
@media (max-width: 640px) {
    .local-kopere_dashboard .kopere_dashboard-toprow,
    .path-local-kopere_dashboard .kopere_dashboard-toprow {
        flex-wrap: wrap !important;
    }
    .local-kopere_dashboard .tsi-kd-top-actions,
    .path-local-kopere_dashboard .tsi-kd-top-actions {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
    }
}


/* ==========================================================================
   Techsavanna light-blue refinements + collapsible groups + main gap
   ========================================================================== */

/* Shell: sidebar hard-left; more air before main content */
.local-kopere_dashboard .kopere_dashboard-card-shell,
.path-local-kopere_dashboard .kopere_dashboard-card-shell,
.local-kopere_dashboard [data-kopere_dashboard-shell],
.path-local-kopere_dashboard [data-kopere_dashboard-shell] {
    grid-template-columns: 15.5rem minmax(0, 1fr) !important;
    column-gap: 1.65rem !important;
    /* Push rail to the left edge — only right/top/bottom breathing room */
    padding: 0.65rem 1rem 0.65rem 0.15rem !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
}
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed,
.path-local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed {
    grid-template-columns: 4.25rem minmax(0, 1fr) !important;
    column-gap: 1.65rem !important;
}

/* Sidebar flush left with soft light-blue tint (Techsavanna) */
.local-kopere_dashboard .kopere_dashboard-card-sidenav,
.path-local-kopere_dashboard .kopere_dashboard-card-sidenav,
.local-kopere_dashboard [data-kopere_dashboard-sidebar],
.path-local-kopere_dashboard [data-kopere_dashboard-sidebar] {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 42%, #ffffff 100%) !important;
    border: 1px solid #d7e8f8 !important;
    border-radius: 0 1rem 1rem 0 !important; /* square left edge against viewport */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: 0 1px 2px rgba(30, 127, 203, 0.04), 0 8px 24px rgba(30, 127, 203, 0.06) !important;
    height: calc(100vh - 1.3rem) !important;
    max-height: calc(100vh - 1.3rem) !important;
    top: 0.65rem !important;
    left: 0 !important;
}

.local-kopere_dashboard .kopere_dashboard-card-main,
.path-local-kopere_dashboard .kopere_dashboard-card-main {
    padding-left: 0.25rem !important;
    min-width: 0 !important;
}

.local-kopere_dashboard .kopere_dashboard-dashboard,
.path-local-kopere_dashboard .kopere_dashboard-dashboard {
    padding: 0.35rem 0.35rem 1.5rem 0.15rem !important;
}

/* Brand strip — compact personalized welcome (no logo; logo is in top bar) */
.local-kopere_dashboard .kopere_dashboard-card-brand,
.path-local-kopere_dashboard .kopere_dashboard-card-brand,
.local-kopere_dashboard .kopere_dashboard-card-brand.tsi-kd-brand--welcome,
.path-local-kopere_dashboard .kopere_dashboard-card-brand.tsi-kd-brand--welcome {
    background: linear-gradient(180deg, #e8f3fc 0%, #f7fbff 100%) !important;
    border-bottom: 1px solid #d7e8f8 !important;
    border-radius: 1rem 1rem 0 0 !important;
    padding: 0.75rem 0.9rem 0.7rem !important;
    min-height: 0 !important;
}

.local-kopere_dashboard .kopere_dashboard-card-brandlink,
.path-local-kopere_dashboard .kopere_dashboard-card-brandlink,
.local-kopere_dashboard .tsi-kd-brandlink--welcome,
.path-local-kopere_dashboard .tsi-kd-brandlink--welcome {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0.15rem 0 !important;
    min-height: 0 !important;
    text-decoration: none !important;
}

/* Hide logo in sidebar brand (duplicate of top-bar logo) */
.local-kopere_dashboard .kopere_dashboard-card-brandmark,
.path-local-kopere_dashboard .kopere_dashboard-card-brandmark,
.local-kopere_dashboard .tsi-kd-brand-logo-hidden,
.path-local-kopere_dashboard .tsi-kd-brand-logo-hidden {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.local-kopere_dashboard .tsi-kd-brand-meta,
.path-local-kopere_dashboard .tsi-kd-brand-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.05rem !important;
    line-height: 1.2 !important;
    width: 100% !important;
}

/* "Welcome," + user name — both bold, larger for readability */
.local-kopere_dashboard .tsi-kd-brand-welcome,
.path-local-kopere_dashboard .tsi-kd-brand-welcome {
    display: block !important;
    color: #0b4f8a !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    line-height: 1.25 !important;
}
.local-kopere_dashboard .tsi-kd-brand-username,
.path-local-kopere_dashboard .tsi-kd-brand-username {
    display: block !important;
    color: #0b4f8a !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.005em !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Legacy brand labels (hidden when welcome is active) */
.local-kopere_dashboard .tsi-kd-brand-name,
.path-local-kopere_dashboard .tsi-kd-brand-name {
    color: #0b4f8a !important;
}
.local-kopere_dashboard .tsi-kd-brand-sub,
.path-local-kopere_dashboard .tsi-kd-brand-sub {
    color: #1e7fcb !important;
}

/* Collapsed sidebar: still show readable name (no 2-letter clip) */
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-brand-welcome,
.path-local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-brand-welcome {
    font-size: 0.7rem !important;
}
.local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-brand-username,
.path-local-kopere_dashboard .kopere_dashboard-card-shell.is-sidebar-collapsed .tsi-kd-brand-username {
    font-size: 0.78rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Search field — soft blue */
.local-kopere_dashboard .tsi-kd-nav-search input,
.path-local-kopere_dashboard .tsi-kd-nav-search input,
.local-kopere_dashboard [data-tsi-kd-navsearch],
.path-local-kopere_dashboard [data-tsi-kd-navsearch] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #cfe3f7 !important;
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f !important;
}
.local-kopere_dashboard .tsi-kd-nav-search input:focus,
.path-local-kopere_dashboard .tsi-kd-nav-search input:focus {
    border-color: #1e7fcb !important;
    box-shadow: 0 0 0 3px rgba(30, 127, 203, 0.18) !important;
}

/* Active nav — Techsavanna blue */
.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active {
    background: linear-gradient(90deg, #ffffff 0%, #e3f1fc 55%, #d4ebfb 100%) !important;
    border-right: 4px solid #1e7fcb !important;
    color: #1e7fcb !important;
}
.local-kopere_dashboard .kopere_dashboard-card-navitem:hover,
.path-local-kopere_dashboard .kopere_dashboard-card-navitem:hover {
    color: #1e7fcb !important;
    background: rgba(30, 127, 203, 0.04) !important;
}

/* ---- Collapsible section headers (Academic / Financial) ---- */
.local-kopere_dashboard .tsi-kd-navgroup-toggle,
.path-local-kopere_dashboard .tsi-kd-navgroup-toggle,
.local-kopere_dashboard .kopere_dashboard-card-navgroup-title.tsi-kd-navgroup-toggle,
.path-local-kopere_dashboard .kopere_dashboard-card-navgroup-title.tsi-kd-navgroup-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0.55rem 0.55rem 0.2rem !important;
    padding: 0.55rem 0.7rem !important;
    border-radius: 0.65rem !important;
    background: #e8f3fc !important;
    border: 1px solid #cfe3f7 !important;
    color: #0b4f8a !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}
.local-kopere_dashboard .tsi-kd-navgroup-toggle:hover,
.path-local-kopere_dashboard .tsi-kd-navgroup-toggle:hover {
    background: #dceefb !important;
    border-color: #9ec9ee !important;
}
.local-kopere_dashboard .tsi-kd-navgroup-caret,
.path-local-kopere_dashboard .tsi-kd-navgroup-caret {
    font-size: 1.15rem !important;
    color: #1e7fcb !important;
    transition: color 0.15s ease !important;
    line-height: 1 !important;
    /* Icon glyph switches in JS: chevron_right (collapsed) / expand_more (open) */
}
.local-kopere_dashboard .tsi-kd-navgroup-body,
.path-local-kopere_dashboard .tsi-kd-navgroup-body {
    overflow: hidden;
}
.local-kopere_dashboard .kopere_dashboard-card-navgroup.is-collapsed .tsi-kd-navgroup-body,
.path-local-kopere_dashboard .kopere_dashboard-card-navgroup.is-collapsed .tsi-kd-navgroup-body {
    display: none !important;
}

/* Primary buttons in console (Techsavanna blue) */
.local-kopere_dashboard .btn-primary,
.path-local-kopere_dashboard .btn-primary,
.local-kopere_dashboard .tsi-fin__btn,
.path-local-kopere_dashboard .tsi-fin__btn,
.local-tsi-finance .tsi-fin__btn {
    background: #1e7fcb !important;
    border: 1px solid #1e7fcb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 127, 203, 0.28) !important;
    font-weight: 700 !important;
}
.local-kopere_dashboard .btn-primary:hover,
.path-local-kopere_dashboard .btn-primary:hover,
.local-kopere_dashboard .tsi-fin__btn:hover,
.path-local-kopere_dashboard .tsi-fin__btn:hover,
.local-tsi-finance .tsi-fin__btn:hover {
    background: #1769a8 !important;
    border-color: #1769a8 !important;
    color: #ffffff !important;
    filter: none !important;
}
.local-kopere_dashboard .tsi-fin__btn--ghost,
.path-local-kopere_dashboard .tsi-fin__btn--ghost,
.local-tsi-finance .tsi-fin__btn--ghost {
    background: #ffffff !important;
    border: 1px solid #cfe3f7 !important;
    color: #1e7fcb !important;
    box-shadow: none !important;
}
.local-kopere_dashboard .tsi-fin__btn--ghost:hover,
.local-tsi-finance .tsi-fin__btn--ghost:hover {
    background: #f0f7ff !important;
    color: #155ea0 !important;
}

/* Dark finance hero: high-contrast primary = brand gold CTA */
.local-kopere_dashboard .kopere_dashboard-hero .tsi-fin__btn,
.local-tsi-finance .kopere_dashboard-hero .tsi-fin__btn,
.local-tsi-finance .tsi-fin__hero .tsi-fin__btn {
    background: #febf02 !important;
    border-color: #febf02 !important;
    color: #04096e !important;
    box-shadow: 0 4px 16px rgba(254, 191, 2, 0.35) !important;
}
.local-kopere_dashboard .kopere_dashboard-hero .tsi-fin__btn:hover,
.local-tsi-finance .kopere_dashboard-hero .tsi-fin__btn:hover {
    background: #ffd04a !important;
    border-color: #ffd04a !important;
    color: #04096e !important;
}
.local-kopere_dashboard .kopere_dashboard-hero .tsi-fin__btn--ghost,
.local-tsi-finance .kopere_dashboard-hero .tsi-fin__btn--ghost {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #0b4f8a !important;
    box-shadow: none !important;
}

/* Icon primary toolbar = brand blue */
.local-kopere_dashboard .tsi-kd-icon-btn--primary,
.path-local-kopere_dashboard .tsi-kd-icon-btn--primary {
    background: #1e7fcb !important;
    border-color: #1e7fcb !important;
    color: #fff !important;
}

/* ==========================================================================
   Dark mode — BUG 005: elements invisible under light-only !important rules
   tsi-dashboard-v3 hardcodes light surfaces; override when body.tsi-kd-dark.
   ========================================================================== */
body.tsi-kd-dark.local-kopere_dashboard,
body.tsi-kd-dark.path-local-kopere_dashboard {
    background: #0b1220 !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-shell,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-shell,
body.tsi-kd-dark.local-kopere_dashboard [data-kopere_dashboard-shell],
body.tsi-kd-dark.path-local-kopere_dashboard [data-kopere_dashboard-shell] {
    background: transparent !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-sidenav,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-sidenav,
body.tsi-kd-dark.local-kopere_dashboard [data-kopere_dashboard-sidebar],
body.tsi-kd-dark.path-local-kopere_dashboard [data-kopere_dashboard-sidebar] {
    background: linear-gradient(180deg, #0f172a 0%, #121a2b 42%, #0b1220 100%) !important;
    border-color: #1e293b !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-brand,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-brand,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-brand.tsi-kd-brand--welcome,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-brand.tsi-kd-brand--welcome {
    background: linear-gradient(180deg, #132033 0%, #0f172a 100%) !important;
    border-bottom-color: #1e293b !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-brand-welcome,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-brand-welcome,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-brand-username,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-brand-username,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-brand-name,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-brand-name {
    color: #f8fafc !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-brand-sub,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-brand-sub {
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-nav-search input,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-nav-search input,
body.tsi-kd-dark.local-kopere_dashboard [data-tsi-kd-navsearch],
body.tsi-kd-dark.path-local-kopere_dashboard [data-tsi-kd-navsearch] {
    background: rgba(0, 0, 0, 0.4) !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #60a5fa !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-nav-search input::placeholder,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-nav-search input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navitem,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navitem {
    color: #cbd5e1 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navitem:hover,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navitem:hover {
    color: #93c5fd !important;
    background: rgba(30, 127, 203, 0.12) !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navitem.is-active,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navitem.is-active {
    background: linear-gradient(90deg, rgba(30, 127, 203, 0.18) 0%, rgba(30, 127, 203, 0.28) 100%) !important;
    border-right-color: #3b82f6 !important;
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navlabel,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navlabel,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navitem .material-symbols-outlined,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navitem .material-symbols-outlined {
    color: inherit !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-navgroup-toggle,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-navgroup-toggle,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-navgroup-title.tsi-kd-navgroup-toggle,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-navgroup-title.tsi-kd-navgroup-toggle {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-navgroup-toggle:hover,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-navgroup-toggle:hover {
    background: #243247 !important;
    border-color: #3b82f6 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-navgroup-caret,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-navgroup-caret {
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-toprow,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-toprow,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-kpi,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-kpi,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-insights,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-insights,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-quick a,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-quick a,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-student-course,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-student-course,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-student-link,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-student-link,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-main,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-main {
    background: #121a2b !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-title,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-title,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-card-title,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-card-title,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-kpi-value,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-kpi-value,
body.tsi-kd-dark.local-kopere_dashboard h1,
body.tsi-kd-dark.path-local-kopere_dashboard h1,
body.tsi-kd-dark.local-kopere_dashboard h2,
body.tsi-kd-dark.path-local-kopere_dashboard h2,
body.tsi-kd-dark.local-kopere_dashboard h3,
body.tsi-kd-dark.path-local-kopere_dashboard h3,
body.tsi-kd-dark.local-kopere_dashboard .tsi-fin__title,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-fin__title {
    color: #f8fafc !important;
}

body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-kpi-title,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-kpi-title,
body.tsi-kd-dark.local-kopere_dashboard .kopere_dashboard-kpi-sub,
body.tsi-kd-dark.path-local-kopere_dashboard .kopere_dashboard-kpi-sub,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-insight,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-insight,
body.tsi-kd-dark.local-kopere_dashboard .text-muted,
body.tsi-kd-dark.path-local-kopere_dashboard .text-muted,
body.tsi-kd-dark.local-kopere_dashboard p,
body.tsi-kd-dark.path-local-kopere_dashboard p,
body.tsi-kd-dark.local-kopere_dashboard .tsi-fin__meta,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-fin__meta {
    color: #94a3b8 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-chip,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-chip,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-icon-btn,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-icon-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-icon-btn:hover,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-icon-btn:hover {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-icon-btn--primary,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-icon-btn--primary {
    background: #1e7fcb !important;
    border-color: #1e7fcb !important;
    color: #ffffff !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-fin__btn--ghost,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-fin__btn--ghost,
body.tsi-kd-dark.local-tsi-finance .tsi-fin__btn--ghost {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-fin__btn--ghost:hover,
body.tsi-kd-dark.local-tsi-finance .tsi-fin__btn--ghost:hover {
    background: #1e293b !important;
    color: #bfdbfe !important;
}

body.tsi-kd-dark.local-kopere_dashboard table,
body.tsi-kd-dark.path-local-kopere_dashboard table,
body.tsi-kd-dark.local-kopere_dashboard .table,
body.tsi-kd-dark.path-local-kopere_dashboard .table {
    background: #121a2b !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard table thead th,
body.tsi-kd-dark.path-local-kopere_dashboard table thead th {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #1e293b !important;
}

body.tsi-kd-dark.local-kopere_dashboard table tbody td,
body.tsi-kd-dark.path-local-kopere_dashboard table tbody td,
body.tsi-kd-dark.local-kopere_dashboard table tbody th,
body.tsi-kd-dark.path-local-kopere_dashboard table tbody th {
    color: #cbd5e1 !important;
    border-color: #1e293b !important;
    background: transparent !important;
}

body.tsi-kd-dark.local-kopere_dashboard table tbody tr:nth-child(even),
body.tsi-kd-dark.path-local-kopere_dashboard table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.tsi-kd-dark.local-kopere_dashboard table tbody tr:hover,
body.tsi-kd-dark.path-local-kopere_dashboard table tbody tr:hover {
    background: rgba(30, 127, 203, 0.14) !important;
}

body.tsi-kd-dark.local-kopere_dashboard .form-control,
body.tsi-kd-dark.path-local-kopere_dashboard .form-control,
body.tsi-kd-dark.local-kopere_dashboard .form-select,
body.tsi-kd-dark.path-local-kopere_dashboard .form-select,
body.tsi-kd-dark.local-kopere_dashboard input[type="text"],
body.tsi-kd-dark.path-local-kopere_dashboard input[type="text"],
body.tsi-kd-dark.local-kopere_dashboard input[type="search"],
body.tsi-kd-dark.path-local-kopere_dashboard input[type="search"],
body.tsi-kd-dark.local-kopere_dashboard select,
body.tsi-kd-dark.path-local-kopere_dashboard select,
body.tsi-kd-dark.local-kopere_dashboard textarea,
body.tsi-kd-dark.path-local-kopere_dashboard textarea {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .form-control::placeholder,
body.tsi-kd-dark.path-local-kopere_dashboard .form-control::placeholder {
    color: #94a3b8 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .card,
body.tsi-kd-dark.path-local-kopere_dashboard .card,
body.tsi-kd-dark.local-kopere_dashboard .generalbox,
body.tsi-kd-dark.path-local-kopere_dashboard .generalbox,
body.tsi-kd-dark.local-kopere_dashboard .box,
body.tsi-kd-dark.path-local-kopere_dashboard .box {
    background: #121a2b !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard a:not(.btn):not(.tsi-fin__btn),
body.tsi-kd-dark.path-local-kopere_dashboard a:not(.btn):not(.tsi-fin__btn) {
    color: #93c5fd !important;
}

body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-table-toolbar,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-table-toolbar,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-table-toolbar input,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-table-toolbar input,
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-csv-btn,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-csv-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .badge,
body.tsi-kd-dark.path-local-kopere_dashboard .badge {
    color: #f8fafc !important;
}

body.tsi-kd-dark.local-kopere_dashboard .alert-info,
body.tsi-kd-dark.path-local-kopere_dashboard .alert-info {
    background: rgba(30, 127, 203, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #bfdbfe !important;
}

body.tsi-kd-dark.local-kopere_dashboard .alert-warning,
body.tsi-kd-dark.path-local-kopere_dashboard .alert-warning {
    background: rgba(254, 191, 2, 0.12) !important;
    border-color: rgba(254, 191, 2, 0.35) !important;
    color: #fde68a !important;
}

body.tsi-kd-dark.local-kopere_dashboard .dropdown-menu,
body.tsi-kd-dark.path-local-kopere_dashboard .dropdown-menu {
    background: #121a2b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .dropdown-item,
body.tsi-kd-dark.path-local-kopere_dashboard .dropdown-item {
    color: #e2e8f0 !important;
}

body.tsi-kd-dark.local-kopere_dashboard .dropdown-item:hover,
body.tsi-kd-dark.path-local-kopere_dashboard .dropdown-item:hover {
    background: rgba(30, 127, 203, 0.18) !important;
    color: #fff !important;
}

/* Chart axes / empty placeholders often invisible on dark */
body.tsi-kd-dark.local-kopere_dashboard canvas,
body.tsi-kd-dark.path-local-kopere_dashboard canvas {
    filter: none;
}
body.tsi-kd-dark.local-kopere_dashboard .tsi-kd-empty,
body.tsi-kd-dark.path-local-kopere_dashboard .tsi-kd-empty,
body.tsi-kd-dark.local-kopere_dashboard .no-data,
body.tsi-kd-dark.path-local-kopere_dashboard .no-data {
    color: #94a3b8 !important;
}
