/* FiberVu Monitoring: THE THEME FILE of the older stylesheets. Colors only. Redesign 2026-11-24: the blue family points to the tokens of
   resources/css/filament/app/tokens.css (blue #1F4FD1 light / #7DA0FF dark), each with its hex as a fallback for pages without the theme.
   Status colors (green Normal / Online, yellow Filling / Warning, red Full / Critical / Fiber issue, amber Power failure, purple Unknown, grey Other),
   the NAP map colors and the Network (red) / Customers (blue) bells are NOT part of the theme and are not touched here.
   Filament's own primary color is set from the same blue in app/Providers/Filament/AdminPanelProvider.php (->colors(['primary' => Color::hex('#1F4FD1')])).
   The side panel is light (navy in dark mode) since the shell step: public/css/fibervu-sidepanel.css. */

:root {
    --blue:        var(--imat-primary, #1F4FD1);          /* main color: buttons, links, focus, selected */
    --blue-hover:  var(--imat-primary-hover, #1A43B3);    /* buttons / links on mouse-over */
    --blue-dark:   var(--imat-primary-active, #163A99);   /* pressed state */
    --blue-light:  #5C7FE0;                               /* secondary blue (charts if needed) */
    --blue-tint:   var(--imat-tint, #EAF0FF);             /* selected tab / row, soft backgrounds */
    --blue-line:   var(--imat-primary-line, #BCCBF5);     /* a border a little stronger than the tint (derived) */
    --orange:      var(--imat-brand, #F26B2A);            /* small touches ONLY: the logo and small alert badges (not used in this file any more) */

    --on-blue:       #FFFFFF;                      /* text and icons on the blue sidebar */
    --on-blue-soft:  rgba(255, 255, 255, .85);     /* inactive menu items */
    --on-blue-faint: rgba(255, 255, 255, .72);     /* group labels, small print */
    --on-blue-hover: rgba(255, 255, 255, .10);     /* menu item on mouse-over */
    --on-blue-line:  rgba(255, 255, 255, .22);

    --focus-ring: color-mix(in srgb, var(--blue) 22%, transparent);

    /* the names the older stylesheets use for "the accent": all of them are the blue now */
    --fv-accent: var(--blue);
    --fv-accent-hover: var(--blue-hover);
    --fv-accent-ink: var(--dk-fgv-blue, var(--blue));
    --fv-accent-tint: var(--blue-tint);
    --fv-accent-line: var(--blue-line);
    --fv-acc: var(--blue);
    --fv-accbg: var(--blue-tint);
}

/* ------------------------------------------------------------ sidebar: the light side panel of the redesign is in public/css/fibervu-sidepanel.css (the solid blue rules are gone) */

/* the Settings side menu is a white card inside the page: its selected item is a soft blue tint */
.fi-page-sub-navigation-sidebar-ctn .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--blue-tint) !important; box-shadow: inset 3px 0 0 var(--blue); }
.fi-page-sub-navigation-sidebar-ctn .fi-sidebar-item.fi-active .fi-sidebar-item-label, .fi-page-sub-navigation-sidebar-ctn .fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--dk-fgv-blue, var(--blue)) !important; }
.fi-page-sub-navigation-sidebar-ctn .fi-sidebar-item-btn:hover { background: var(--blue-tint) !important; }
.fi-page-sub-navigation-sidebar-ctn .fi-sidebar-item-btn:hover .fi-sidebar-item-icon { color: var(--dk-fgv-blue, var(--blue)) !important; }

/* ------------------------------------------------------------ top bar: white, a thin blue line at the bottom */
.fv-top { border-bottom: 2px solid var(--blue); }
body:not(:has(:is(.fv-page, .fv-settings))) .fi-topbar { border-bottom: 2px solid var(--blue) !important; }

/* ------------------------------------------------------------ buttons, links, focus */
.fi-btn.fi-color-primary, .bk-btn, .m-perm button, .mj-btn-primary, .m-fab, .fv-btn.dk, .fs-ib.fs-main, .fs-ask { background: var(--blue) !important; border-color: var(--blue) !important; color: var(--imat-on-primary, #fff) !important; }
.fi-btn.fi-color-primary:hover, .bk-btn:hover, .m-perm button:hover, .mj-btn-primary:hover, .fv-btn.dk:hover, .fs-ib.fs-main:hover { background: var(--blue-hover) !important; border-color: var(--blue-hover) !important; }
.fi-btn.fi-color-primary:active, .bk-btn:active, .mj-btn-primary:active, .fv-btn.dk:active, .fs-ib.fs-main:active { background: var(--blue-dark) !important; border-color: var(--blue-dark) !important; }
.fi-btn.fi-outlined.fi-color-primary, .fv-btn.out { background: var(--dk-bg-ffffff, #fff) !important; color: var(--dk-fgv-blue, var(--blue)) !important; border: 1px solid var(--blue) !important; }
.bk-btn-2:hover { background: var(--blue-tint) !important; border-color: var(--blue-line) !important; color: var(--dk-fgv-blue, var(--blue)) !important; }
a.tn-open, .ws-link, .mp-link, .mp-back, .cw-csv { color: var(--dk-fgv-blue, var(--blue)); }
a.tn-open:hover, .ws-link:hover, .mp-link:hover, .mp-back:hover { color: var(--blue-hover); }
input[type="checkbox"], input[type="radio"], .map-chip input, .fv-map .fv-chip input { accent-color: var(--dk-fgv-blue, var(--blue)); }
:focus-visible { outline-color: var(--blue); }
input:focus, select:focus, textarea:focus, .fi-input-wrp:focus-within { border-color: var(--blue) !important; box-shadow: 0 0 0 3px var(--focus-ring) !important; }
.m-step.is-done::before, .m-step.is-current::before, .m-step.is-done .m-step-dot { background: var(--blue); }
.m-step.is-done .m-step-dot { border-color: var(--blue); }
.m-step.is-current .m-step-dot { border-color: var(--blue); color: var(--dk-fgv-blue, var(--blue)); box-shadow: 0 0 0 4px var(--focus-ring); }

/* ------------------------------------------------------------ selected tab / chip / segment: soft blue, blue text */
.fv-tab.is-on, button.fv-chip.is-on, .fv-seg .is-on, .fv-dens button.is-on, .fs-seg .is-on, .pc-tabs button.is-on, .ln-rng button.is-on, .cw-range button.is-on, .ln-mhits button.is-on, .cw-pager button.is-on,
.pc-counters button.is-on, .pc-filter button.is-on, .prov-seg a.is-on, .nb-tabs button.is-on, .cw-tabs button.is-on { background: var(--blue-tint) !important; color: var(--dk-fgv-blue, var(--blue)) !important; border-color: var(--blue) !important; box-shadow: none !important; font-weight: 700; }
.fv-tab.is-on i { background: var(--dk-bg-ffffff, #fff); }
.pc-filter button.is-on, .cw-tabs button.is-on { border-color: transparent !important; box-shadow: inset 0 -2px 0 var(--blue) !important; }
.fv-tab:hover, .fv-seg button:hover, .pc-tabs button:hover, .cw-range button:hover { color: var(--dk-fgv-blue, var(--blue)); }
.fs-ib.is-on { background: var(--blue-tint); border-color: var(--blue); color: var(--dk-fgv-blue, var(--blue)); }
.fv-listitem.is-on { background: var(--blue-tint); }
.map-search-list button.is-active, .map-search-list button:hover { background: var(--blue-tint); }
.fs-ib:hover, .fs-seg button:hover { color: var(--dk-fgv-blue, var(--blue)); }

/* ------------------------------------------------------------ selected / hovered rows: tint, and a 3px blue edge on the selected one */
.m-table tbody tr:hover, .fv-tbl tr.click:hover { background: var(--blue-tint); }
tr.is-sel, tr.is-on, tr.is-selected, tr[aria-selected="true"], .ln-orow.is-sel, .ln-ogrid .ln-orow.is-sel { background: var(--blue-tint) !important; }
tr.is-sel > td:first-child, tr.is-on > td:first-child, tr.is-selected > td:first-child, tr[aria-selected="true"] > td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.ln-orow.is-sel { box-shadow: inset 3px 0 0 var(--blue); border-color: var(--blue-line); }
.ln-ogrid .ln-orow:hover, .m-stat:hover, .pc-tile:hover { border-color: var(--blue-line) !important; }
.fv-tbl th .ar { color: var(--dk-fgv-blue, var(--blue)); }

/* ------------------------------------------------------------ notifications */
.fi-no-notification.fi-color-info, .fi-no-notification.fi-status-info { border-left: 3px solid var(--blue); }

/* ------------------------------------------------------------ the pop-up windows had a solid orange header: white with a blue title and a blue line now */
.sub-head, .ln-mhd, .cw-hd { background: var(--dk-bg-ffffff, #fff); color: var(--dk-fgv-blue, var(--blue)); border-bottom: 2px solid var(--blue); }
.sub-x, .ln-mhd button, .cw-hd button { color: var(--dk-fgv-blue, var(--blue)); }
.sub-tn.is-open { color: var(--dk-fgv-blue, var(--blue)); }

/* ------------------------------------------------------------ selected rows, unread rows */
.fv-tbl tr.sel td, tr.click.cur-c td { background: var(--blue-tint) !important; }
.fv-tbl tr.sel td:first-child, tr.click.cur-c td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.nr.is-unread { background: var(--blue-tint); }
.nr.is-link:hover { background: color-mix(in srgb, var(--blue-tint) 55%, var(--dk-bg-ffffff, #fff)); }
.nr.is-read.is-link:hover { background: var(--dk-bg-f9fafb, #F9FAFB); }

/* ------------------------------------------------------------ bell panel: its links and the do-not-disturb switch (the red / blue bells and the alert levels keep their colors) */
.nb-link, .nb-f a { color: var(--dk-fgv-blue, var(--blue)); }
.nb-dnd.is-on { color: var(--dk-fgv-blue, var(--blue)); background: var(--blue-tint); }
