/* =========================================================
   SAFIRE OVERRIDES (TIDIED)
   - Grouped by component
   - Removed duplicate sidebar + loader blocks
========================================================= */

/* =========================================================
   A) ANIMATIONS
========================================================= */

.safire-dot {
    background: #1C8585;
    box-shadow: ...;
}

/* =========================================================
   B) BRAND TEXT VISIBILITY
   Desktop only for header brand text
========================================================= */

.safire-brand-text { display: none; }

@media (min-width: 1025px) {
    .safire-brand-text { display: inline-block; }
}

/* =========================================================
   C) DASHBOARD KPI CARD CONTRACT
========================================================= */

/* Default traffic light variables, overridden per card via inline style */
.card.dash-widget {
    --kpi-hex: #1C8585;
    --kpi-bg: rgba(28, 133, 133, 0.14);
    --kpi-bd: rgba(28, 133, 133, 0.22);
}

/* Layout + spacing */
.card.dash-widget .d-flex.justify-content-between.align-items-start {
    gap: 12px;
    flex-direction: row-reverse; /* icon on the left */
}

/* Text column must be allowed to shrink */
.card.dash-widget .dash-widget-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* Keep subtitle to one line everywhere */
.card.dash-widget .dash-widget-info .text-muted {
    white-space: nowrap;
}

/* Icon container fixed size */
.card.dash-widget .dash-widget-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--kpi-bg);
    border: 1px solid var(--kpi-bd);
    padding: 0;
    box-shadow: none;

    /* Space between icon and text */
    margin-right: 12px;
    margin-left: 0;
}

/* Icon uses traffic light colour */
.card.dash-widget .dash-widget-icon i {
    color: var(--kpi-hex);
    font-size: 27px;
    line-height: 1;
}

/* Divider above bottom section */
.card.dash-widget hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

/* =========================================================
   D) SIDEBAR – NEAR BLACK (NOT PURE BLACK)
   - Neutral text/icons
   - Subtle hover/active
   - Teal active rail glow
   - Compact spacing + submenu indent
========================================================= */

#sidebar.sidebar,
#sidebar .sidebar-inner,
#sidebar #sidebar-menu {
    background-color: #1F2327 !important;
}

/* Base (so rail can position) */
#sidebar #sidebar-menu ul li > a {
    position: relative;
}

/* Main links */
#sidebar #sidebar-menu ul li a {
    color: rgba(255,255,255,0.78) !important;
}

/* Icons */
#sidebar #sidebar-menu ul li a i,
#sidebar #sidebar-menu ul li a svg {
    color: rgba(255,255,255,0.62) !important;
}

/* Hover – soft lift, no colour */
#sidebar #sidebar-menu ul li a:hover {
    background-color: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.92) !important;
}
#sidebar #sidebar-menu ul li a:hover i {
    color: rgba(255,255,255,0.92) !important;
}

/* Active – quiet emphasis */
#sidebar #sidebar-menu ul li.active > a,
#sidebar #sidebar-menu ul li > a.active {
    background-color: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
}

/* Submenu arrow neutral */
#sidebar #sidebar-menu ul li a .menu-arrow {
    color: rgba(255,255,255,0.50) !important;
}

/* Section titles – neutral */
#sidebar .menu-title .menu-section,
#sidebar .menu-title span {
    color: rgba(255,255,255,0.55) !important;
}

/* Kill coloured suite headers */
#sidebar .menu-title.ceo .menu-section,
#sidebar .menu-title.cfo .menu-section,
#sidebar .menu-title.accountant .menu-section,
#sidebar .menu-title.accounting .menu-section,
#sidebar .menu-title.employees .menu-section,
#sidebar .menu-title.worker .menu-section,
#sidebar .menu-title.admin .menu-section,
#sidebar .menu-title.hr .menu-section {
    color: rgba(255,255,255,0.55) !important;
}

/* Muted links still muted (but readable on dark) */
#sidebar #sidebar-menu a.text-muted,
#sidebar #sidebar-menu .text-muted {
    color: rgba(255,255,255,0.40) !important;
}

/* Submenus stay dark + indent */
#sidebar #sidebar-menu ul ul {
    background-color: rgba(0,0,0,0.08) !important;
    padding-left: 18px;
}

/* Submenu items spacing/size */
#sidebar .sidebar-menu ul ul li a {
    padding: 5px 10px;
    font-size: 12.5px;
    opacity: 0.95;
}

/* Active item glow rail */
#sidebar #sidebar-menu ul li.active > a::before,
#sidebar #sidebar-menu ul li > a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 3px;
    background: #1C8585;
    border-radius: 2px;
    box-shadow:
        0 0 6px rgba(28,133,133,.65),
        0 0 14px rgba(28,133,133,.45);
}

/* Submenu active item – slightly softer */
#sidebar #sidebar-menu ul ul li.active > a::before {
    width: 2px;
    box-shadow:
        0 0 4px rgba(28,133,133,.55),
        0 0 10px rgba(28,133,133,.35);
}

/* Rail transition */
#sidebar #sidebar-menu ul li > a::before {
    transition: box-shadow .25s ease, opacity .25s ease;
}

/* Compact spacing */
#sidebar .sidebar-menu ul li {
    margin-bottom: 4px;
}

#sidebar .sidebar-menu ul li a {
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1.2;
}

#sidebar .menu-title {
    margin: 6px 0 4px;
}

#sidebar .menu-title span {
    font-size: 14px;
    letter-spacing: .4px;
}

/* =========================================================
   E) LOADING SCREEN – BOOTSTRAP WARNING -> TEAL
========================================================= */

.loading-screen .bg-warning,
.loading-screen .text-warning {
    background-color: #1C8585 !important;
    color: #1C8585 !important;
}
.breadcrumb-item a {
    color: #156161 !important;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item:not(:has(a)) {
    color: #6b7280 !important;;
}
