/* Hosting-Fox Monitoring UI 2026
 * Loaded after the legacy theme so this file is the single visual authority.
 */

:root {
    --mon-ink: #102038;
    --mon-muted: #687b94;
    --mon-line: #dce5f0;
    --mon-surface: #ffffff;
    --mon-canvas: #edf3f9;
    --mon-navy: #071321;
    --mon-navy-soft: #0d1d30;
    --mon-blue: #1479d3;
    --mon-cyan: #19a8bb;
    --mon-green: #0ea875;
    --mon-amber: #e69b19;
    --mon-red: #e24b4b;
    --mon-header: 66px;
    --mon-sidebar: 272px;
    --mon-sidebar-mini: 76px;
    --mon-radius: 18px;
    --mon-shadow: 0 16px 42px rgba(18, 43, 70, .08);
}

html,
body {
    min-height: 100%;
}

body.bootstrap5-shell {
    color: var(--mon-ink) !important;
    background:
        radial-gradient(circle at 84% 4%, rgba(25, 168, 187, .09), transparent 28rem),
        linear-gradient(180deg, #f5f8fc 0, var(--mon-canvas) 38rem) !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body.bootstrap5-shell a {
    color: #1174c2;
}

body.bootstrap5-shell .wrapper {
    min-height: 100vh !important;
    overflow-x: clip !important;
    background: transparent !important;
}

/* Header */
body.bootstrap5-shell .main-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1200 !important;
    height: var(--mon-header) !important;
    min-height: var(--mon-header) !important;
    max-height: var(--mon-header) !important;
    background: rgba(7, 19, 33, .96) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(190, 215, 239, .13) !important;
    box-shadow: 0 12px 35px rgba(5, 16, 29, .18) !important;
    backdrop-filter: blur(18px);
}

body.bootstrap5-shell .main-header .logo {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: var(--mon-sidebar) !important;
    height: var(--mon-header) !important;
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: #f7fbff !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(190, 215, 239, .12) !important;
    line-height: 1 !important;
}

body.bootstrap5-shell .main-header .logo .logo-lg {
    display: block !important;
    overflow: hidden;
    color: #f7fbff !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.bootstrap5-shell .main-header .logo .logo-mini {
    display: none !important;
}

body.bootstrap5-shell .main-header .navbar {
    position: relative !important;
    width: calc(100% - var(--mon-sidebar)) !important;
    height: var(--mon-header) !important;
    min-height: var(--mon-header) !important;
    margin: 0 0 0 var(--mon-sidebar) !important;
    padding: 0 16px 0 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

body.bootstrap5-shell .main-header .navbar::before,
body.bootstrap5-shell .main-header .navbar::after {
    display: none !important;
}

body.bootstrap5-shell .main-header .sidebar-toggle {
    position: relative !important;
    inset: auto !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    color: #c8d8e9 !important;
    background: rgba(255, 255, 255, .055) !important;
    border: 1px solid rgba(190, 215, 239, .12) !important;
    border-radius: 14px !important;
}

body.bootstrap5-shell .main-header .sidebar-toggle:hover {
    color: #fff !important;
    background: rgba(25, 168, 187, .18) !important;
}

body.bootstrap5-shell .main-header .navbar-custom-menu,
body.bootstrap5-shell .main-header .app-topbar-menu {
    position: relative !important;
    inset: auto !important;
    height: var(--mon-header) !important;
    max-width: calc(100vw - var(--mon-sidebar) - 72px) !important;
    margin-left: auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    float: none !important;
    overflow: visible !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav {
    height: var(--mon-header) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav > li {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    float: none !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav > li > a {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #c9d9e8 !important;
    background: rgba(255, 255, 255, .045) !important;
    border: 1px solid rgba(190, 215, 239, .09) !important;
    border-radius: 13px !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav > li.open > a,
body.bootstrap5-shell .main-header .app-topbar-nav > li > a:hover {
    color: #fff !important;
    background: rgba(20, 121, 211, .22) !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav .label {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 5px !important;
    color: #fff !important;
    border: 2px solid var(--mon-navy) !important;
    border-radius: 99px !important;
    font-size: 10px !important;
    line-height: 14px !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav > li.user-menu > a {
    width: auto !important;
    min-width: 48px !important;
    padding: 0 11px !important;
    gap: 8px !important;
}

body.bootstrap5-shell .main-header .user-image {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
}

body.bootstrap5-shell .main-header .app-topbar-nav > li > .dropdown-menu {
    top: 54px !important;
    right: 0 !important;
    left: auto !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--mon-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 58px rgba(11, 31, 52, .22) !important;
}

/* Sidebar */
body.bootstrap5-shell .main-sidebar,
body.bootstrap5-shell .left-side {
    position: fixed !important;
    inset: var(--mon-header) auto 0 0 !important;
    z-index: 1100 !important;
    width: var(--mon-sidebar) !important;
    height: calc(100vh - var(--mon-header)) !important;
    padding: 0 !important;
    overflow: hidden auto !important;
    background:
        radial-gradient(circle at 0 0, rgba(20, 121, 211, .16), transparent 18rem),
        var(--mon-navy-soft) !important;
    box-shadow: 15px 0 45px rgba(8, 27, 47, .08) !important;
}

body.bootstrap5-shell .main-sidebar .sidebar {
    min-height: 100%;
    padding: 16px 12px 28px !important;
}

body.bootstrap5-shell .app-sidebar-profile {
    min-height: 74px !important;
    margin: 0 3px 14px !important;
    padding: 13px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, .055) !important;
    border: 1px solid rgba(190, 215, 239, .09) !important;
    border-radius: 16px !important;
}

body.bootstrap5-shell .app-sidebar-profile::before,
body.bootstrap5-shell .app-sidebar-profile::after {
    display: none !important;
}

body.bootstrap5-shell .app-sidebar-profile .image {
    float: none !important;
}

body.bootstrap5-shell .app-sidebar-profile .info {
    position: static !important;
    min-width: 0;
    margin-left: 12px;
    padding: 0 !important;
    float: none !important;
}

body.bootstrap5-shell .app-sidebar-profile .info p {
    overflow: hidden;
    color: #f3f8fd !important;
    font-weight: 800;
    text-overflow: ellipsis;
}

body.bootstrap5-shell .app-sidebar-search {
    margin: 0 3px 15px !important;
    overflow: hidden;
    border: 1px solid rgba(190, 215, 239, .1) !important;
    border-radius: 13px !important;
}

body.bootstrap5-shell .app-sidebar-search input,
body.bootstrap5-shell .app-sidebar-search button {
    color: #dce9f5 !important;
    background: rgba(255, 255, 255, .045) !important;
    border: 0 !important;
}

body.bootstrap5-shell .sidebar-menu > li.header {
    padding: 13px 14px 8px !important;
    color: #7189a2 !important;
    background: transparent !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .13em;
}

body.bootstrap5-shell .sidebar-menu > li {
    margin: 3px 0 !important;
}

body.bootstrap5-shell .sidebar-menu > li > a {
    min-height: 45px !important;
    padding: 11px 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #9fb2c6 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 13px !important;
    font-weight: 650;
}

body.bootstrap5-shell .sidebar-menu > li > a > .fa {
    width: 22px !important;
    color: #7990a8 !important;
    font-size: 15px;
    text-align: center;
}

body.bootstrap5-shell .sidebar-menu > li.active > a,
body.bootstrap5-shell .sidebar-menu > li:hover > a {
    color: #f5fbff !important;
    background: linear-gradient(135deg, rgba(20, 121, 211, .3), rgba(25, 168, 187, .17)) !important;
    box-shadow: inset 0 0 0 1px rgba(100, 190, 232, .14) !important;
}

body.bootstrap5-shell .sidebar-menu > li.active > a > .fa,
body.bootstrap5-shell .sidebar-menu > li:hover > a > .fa {
    color: #69d6df !important;
}

body.bootstrap5-shell .sidebar-menu .treeview-menu {
    margin: 4px 0 7px !important;
    padding: 5px !important;
    background: rgba(1, 8, 16, .22) !important;
    border-radius: 13px !important;
}

/* Main canvas */
body.bootstrap5-shell .right-side,
body.bootstrap5-shell .content-wrapper {
    min-height: 100vh !important;
    margin-left: var(--mon-sidebar) !important;
    padding-top: var(--mon-header) !important;
    background: transparent !important;
}

body.bootstrap5-shell .content-header,
body.bootstrap5-shell .entity-page-header {
    max-width: 1900px;
    margin: 0 auto;
    padding: 28px 28px 8px !important;
}

body.bootstrap5-shell .content-header > h1 {
    color: var(--mon-ink) !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(25px, 2vw, 35px) !important;
    font-weight: 700 !important;
    letter-spacing: -.035em;
}

body.bootstrap5-shell .content-header > h1 > .fa {
    margin-right: 8px;
    color: var(--mon-blue);
}

body.bootstrap5-shell .content-header > h1 small {
    margin-left: 9px;
    color: var(--mon-muted) !important;
    font-family: "Manrope", sans-serif;
    font-size: 14px !important;
    font-weight: 550;
    letter-spacing: 0;
}

body.bootstrap5-shell .content-header > .breadcrumb {
    top: 29px !important;
    right: 28px !important;
    padding: 9px 13px !important;
    background: rgba(255, 255, 255, .7) !important;
    border: 1px solid rgba(204, 217, 232, .8) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(12px);
}

body.bootstrap5-shell .content {
    width: 100% !important;
    max-width: 1900px !important;
    margin: 0 auto !important;
    padding: 18px 28px 42px !important;
}

/* Universal components */
body.bootstrap5-shell .box,
body.bootstrap5-shell .nav-tabs-custom,
body.bootstrap5-shell .small-box {
    overflow: hidden;
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid rgba(205, 218, 233, .88) !important;
    border-radius: var(--mon-radius) !important;
    box-shadow: var(--mon-shadow) !important;
}

body.bootstrap5-shell .box.box-primary,
body.bootstrap5-shell .nav-tabs-custom {
    border-top: 1px solid rgba(205, 218, 233, .88) !important;
}

body.bootstrap5-shell .box-header {
    min-height: 58px;
    padding: 17px 20px !important;
    color: var(--mon-ink) !important;
    border-bottom: 1px solid #e8eef5 !important;
}

body.bootstrap5-shell .box-header .box-title {
    color: var(--mon-ink) !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.bootstrap5-shell .box-body,
body.bootstrap5-shell .nav-tabs-custom > .tab-content {
    padding: 20px !important;
}

body.bootstrap5-shell .nav-tabs-custom > .nav-tabs {
    min-height: 60px;
    padding: 7px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 5px !important;
    background: #f7fafd !important;
    border: 0 !important;
    border-bottom: 1px solid #e7eef5 !important;
}

body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li {
    flex: 0 1 auto !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
}

body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li > a {
    min-height: 44px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #5f7289 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 700;
}

body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li.active > a,
body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li > a:hover {
    color: #075ea9 !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(28, 65, 99, .09) !important;
}

body.bootstrap5-shell .btn {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 11px !important;
    font-weight: 750;
    box-shadow: none !important;
}

body.bootstrap5-shell .btn-primary,
body.bootstrap5-shell .btn-info {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mon-blue), #1768bd) !important;
    border-color: transparent !important;
}

body.bootstrap5-shell .btn-success {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mon-green), #07865d) !important;
    border-color: transparent !important;
}

body.bootstrap5-shell .btn-danger {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mon-red), #ca3636) !important;
    border-color: transparent !important;
}

body.bootstrap5-shell .form-control,
body.bootstrap5-shell .select2-container--default .select2-selection--single,
body.bootstrap5-shell .select2-container--default .select2-selection--multiple {
    min-height: 43px !important;
    color: var(--mon-ink) !important;
    background: #fbfdff !important;
    border: 1px solid #ccd8e6 !important;
    border-radius: 11px !important;
    box-shadow: inset 0 1px 2px rgba(15, 36, 60, .025) !important;
}

body.bootstrap5-shell .form-control:focus {
    border-color: #54a4dc !important;
    box-shadow: 0 0 0 3px rgba(20, 121, 211, .12) !important;
}

body.bootstrap5-shell .label {
    padding: 5px 8px;
    border-radius: 999px;
    font-weight: 750;
}

body.bootstrap5-shell .alert,
body.bootstrap5-shell .callout {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(22, 48, 78, .06);
}

/* Tables */
body.bootstrap5-shell .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 0 !important;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
}

body.bootstrap5-shell table.table,
body.bootstrap5-shell table.dataTable {
    width: 100% !important;
    margin: 0 !important;
    color: #20344d;
    background: #fff;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px !important;
}

body.bootstrap5-shell .table > thead > tr > th {
    padding: 12px 13px !important;
    color: #61748b !important;
    background: #f4f7fb !important;
    border: 0 !important;
    border-bottom: 1px solid #dce6f0 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: .075em;
    text-transform: uppercase;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

body.bootstrap5-shell .table > tbody > tr > td {
    padding: 12px 13px !important;
    background: #fff;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    vertical-align: middle !important;
}

body.bootstrap5-shell .table-striped > tbody > tr:nth-of-type(odd) > td {
    background: #fbfcfe !important;
}

body.bootstrap5-shell .table-hover > tbody > tr:hover > td {
    background: #f3f8fd !important;
}

body.bootstrap5-shell .dataTables_wrapper .top,
body.bootstrap5-shell .dataTables_wrapper .dt-margin {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px !important;
}

body.bootstrap5-shell .dataTables_filter input {
    width: min(300px, 45vw) !important;
    height: 42px !important;
    margin-left: 7px !important;
    border: 1px solid #ccd8e6 !important;
    border-radius: 12px !important;
}

body.bootstrap5-shell .pagination > li > a,
body.bootstrap5-shell .pagination > li > span {
    margin: 0 2px;
    color: #37536f;
    border: 0 !important;
    border-radius: 9px !important;
}

/* Dashboard operations layer */
body.bootstrap5-shell .dashboard-hero {
    color: #fff !important;
    background:
        radial-gradient(circle at 83% 16%, rgba(77, 215, 224, .3), transparent 18rem),
        radial-gradient(circle at 15% 100%, rgba(41, 128, 216, .3), transparent 24rem),
        linear-gradient(135deg, #08182a, #102d4b) !important;
    border: 1px solid rgba(95, 161, 215, .22) !important;
    box-shadow: 0 24px 54px rgba(7, 28, 49, .2) !important;
}

body.bootstrap5-shell .dashboard-hero .box-body {
    padding: 26px !important;
}

.operations-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.operations-eyebrow {
    color: #7edce3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

body.bootstrap5-shell .dashboard-hero-copy h2 {
    margin: 7px 0 5px !important;
    color: #fff !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(25px, 2.3vw, 38px) !important;
    letter-spacing: -.04em;
}

body.bootstrap5-shell .dashboard-hero-copy p {
    margin: 0 !important;
    color: #aac1d7 !important;
}

.operations-state {
    min-width: 220px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 2px 10px;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
}

.operations-state > span {
    grid-row: 1 / 3;
    align-self: center;
    width: 10px;
    height: 10px;
    background: var(--mon-green);
    border-radius: 99px;
    box-shadow: 0 0 0 6px rgba(14, 168, 117, .12);
}

.operations-state.is-warning > span { background: var(--mon-amber); box-shadow: 0 0 0 6px rgba(230, 155, 25, .12); }
.operations-state.is-critical > span { background: var(--mon-red); box-shadow: 0 0 0 6px rgba(226, 75, 75, .12); }
.operations-state strong { color: #f3f8fd; font-size: 12px; }
.operations-state small { color: #8da8c0; font-size: 10px; }

.fleet-pulse-grid {
    margin-top: 23px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.fleet-pulse-card {
    min-width: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    color: #dceafa !important;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    transition: transform .16s ease, background .16s ease;
}

.fleet-pulse-card:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.fleet-pulse-card span { color: #9eb6cc; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fleet-pulse-card strong { margin: 7px 0 2px; color: #fff; font: 700 28px/1 "Space Grotesk", sans-serif; }
.fleet-pulse-card small { overflow: hidden; color: #91aac1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-pulse-card.is-healthy strong { color: #4ee0ac; }
.fleet-pulse-card.is-warning strong { color: #ffc766; }
.fleet-pulse-card.is-critical strong { color: #ff8585; }

body.bootstrap5-shell .dashboard-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px !important;
}

body.bootstrap5-shell .dashboard-stat-grid::before,
body.bootstrap5-shell .dashboard-stat-grid::after { display: none !important; }
body.bootstrap5-shell .dashboard-metric-col { width: auto !important; padding: 0 !important; }

body.bootstrap5-shell .dashboard-stat-card {
    min-height: 136px !important;
    margin: 0 !important;
    color: var(--mon-ink) !important;
    background: #fff !important;
}

body.bootstrap5-shell .dashboard-stat-card .inner { padding: 17px !important; }
body.bootstrap5-shell .dashboard-stat-card .inner h3 { color: var(--mon-ink) !important; font: 700 30px/1 "Space Grotesk", sans-serif !important; }
body.bootstrap5-shell .dashboard-stat-card .inner p { color: var(--mon-muted) !important; font-weight: 700; }
body.bootstrap5-shell .dashboard-stat-card .icon { top: 12px !important; right: 15px !important; color: rgba(20, 121, 211, .13) !important; font-size: 44px !important; }
body.bootstrap5-shell .dashboard-stat-card .small-box-footer { color: #1674c4 !important; background: #f5f9fd !important; font-weight: 750; }

.fleet-attention-panel .box-header {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fleet-attention-count {
    min-width: 25px;
    height: 25px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--mon-blue);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
}

.fleet-attention-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fleet-attention-item { min-width: 0; padding: 12px 13px; display: grid; grid-template-columns: 10px minmax(110px, .65fr) minmax(140px, 1.5fr) auto 10px; align-items: center; gap: 10px; color: var(--mon-ink) !important; background: #f8fbfe; border: 1px solid #e4ebf3; border-radius: 13px; }
.fleet-attention-item:hover { background: #f1f7fc; border-color: #cbdcea; }
.fleet-attention-dot { width: 9px; height: 9px; background: var(--mon-amber); border-radius: 99px; }
.fleet-attention-item.is-critical .fleet-attention-dot { background: var(--mon-red); }
.fleet-attention-name { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.fleet-attention-reason { overflow: hidden; color: var(--mon-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-attention-item small { color: #8797aa; white-space: nowrap; }
.fleet-all-clear { padding: 18px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #187b5e; background: #effaf6; border-radius: 14px; }
.fleet-all-clear > i { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--mon-green); border-radius: 99px; }
.fleet-all-clear strong, .fleet-all-clear span { display: block; }
.fleet-all-clear span { margin-top: 2px; color: #678879; font-size: 12px; }

.monitoring-core-strip {
    margin: 0 0 18px;
    padding: 11px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(205, 218, 233, .9);
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(18, 43, 70, .055);
    backdrop-filter: blur(12px);
}

.monitoring-core-strip > div {
    min-width: 0;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    border-right: 1px solid #e5ecf3;
}

.monitoring-core-strip > div:last-child { border-right: 0; }
.monitoring-core-strip span { grid-column: 1 / 3; color: #7a8ba0; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.monitoring-core-strip strong { overflow: hidden; color: var(--mon-ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.monitoring-core-strip small { align-self: center; color: #8494a6; font-size: 10px; white-space: nowrap; }

/* Server inventory */
body.bootstrap5-shell .servers-list-toolbar-copy p { margin: 4px 0 0; }
body.bootstrap5-shell .servers-table { table-layout: auto !important; }
body.bootstrap5-shell .servers-table > thead > tr > th,
body.bootstrap5-shell .servers-table > tbody > tr > td { display: table-cell !important; }
body.bootstrap5-shell .server-ip-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, max-content)) !important; gap: 6px !important; }
body.bootstrap5-shell .server-ip-chip { max-width: 150px; padding: 5px 8px !important; overflow: hidden; color: #37516d !important; background: #f0f5fa !important; border: 1px solid #d5e0eb !important; border-radius: 9px !important; font: 700 11px/1.2 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body.bootstrap5-shell .server-service-stack { min-width: 170px !important; display: grid !important; grid-template-columns: repeat(2, minmax(80px, 1fr)) !important; gap: 6px !important; }
body.bootstrap5-shell .server-service-pill { min-width: 80px !important; min-height: 43px !important; padding: 6px 8px !important; display: flex !important; align-items: center; justify-content: flex-start; gap: 7px; background: #f5f8fb !important; border: 1px solid #e0e8f0 !important; border-radius: 10px !important; }
body.bootstrap5-shell .server-service-pill.is-ok { background: #effaf6 !important; border-color: #cdeee1 !important; }
body.bootstrap5-shell .server-service-pill.is-warning { background: #fff8e9 !important; border-color: #f3dfad !important; }
body.bootstrap5-shell .server-service-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
body.bootstrap5-shell .server-service-copy strong { overflow: hidden; color: #354b62; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
body.bootstrap5-shell .server-service-copy small { overflow: hidden; margin-top: 2px; color: #8190a1; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
body.bootstrap5-shell .server-os-badge { min-width: 72px; display: flex !important; flex-direction: column; align-items: center; gap: 5px; }
body.bootstrap5-shell .server-os-icon img { width: 31px !important; height: 31px !important; object-fit: contain; }
body.bootstrap5-shell .server-os-label { max-width: 82px; overflow: hidden; color: #627489; font-size: 10px !important; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
body.bootstrap5-shell .server-name-head a { font-weight: 850; }
body.bootstrap5-shell .server-name-host { margin-top: 3px; color: #8290a0 !important; font-size: 10px !important; }
body.bootstrap5-shell .server-mobile-label { display: none; }
body.bootstrap5-shell .server-state { display: inline-flex; align-items: center; gap: 7px; }
body.bootstrap5-shell .server-state > i { font-size: 20px; }
body.bootstrap5-shell .server-state.is-ok > i { color: var(--mon-green); }
body.bootstrap5-shell .server-state.is-warning > i { color: var(--mon-amber); }
body.bootstrap5-shell .server-state.is-alert > i { color: var(--mon-red); }
body.bootstrap5-shell .server-state.is-maintenance > i { color: var(--mon-cyan); }
body.bootstrap5-shell .server-state.is-unknown > i { color: #a8b5c3; }
body.bootstrap5-shell .server-state-copy { display: none; }
body.bootstrap5-shell .server-metric { min-width: 54px; display: flex !important; flex-direction: column; align-items: center; gap: 4px !important; }
body.bootstrap5-shell .server-metric-value { color: #34495f; font-size: 10px; font-weight: 800; white-space: nowrap; }
body.bootstrap5-shell .server-net-cell { min-width: 105px; }
body.bootstrap5-shell .server-net-row { display: flex; gap: 4px; white-space: nowrap; }
body.bootstrap5-shell .server-agent-stack strong { color: var(--mon-ink); }
body.bootstrap5-shell .server-uptime-strip { min-width: 178px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
body.bootstrap5-shell .server-uptime-item { min-width: 0; display: flex; align-items: center; gap: 5px; }
body.bootstrap5-shell .server-uptime-copy { display: flex; flex-direction: column; line-height: 1.05; }
body.bootstrap5-shell .server-uptime-copy small { color: #8292a5; font-size: 8px; font-weight: 800; text-transform: uppercase; }
body.bootstrap5-shell .server-uptime-copy strong { margin-top: 2px; color: #345269; font-size: 9px; white-space: nowrap; }
body.bootstrap5-shell .server-action-label { display: none; }
body.bootstrap5-shell .servers-table .btn-group { display: inline-flex; gap: 4px; }
body.bootstrap5-shell .servers-table .btn-group .btn { width: 34px; min-width: 34px; min-height: 34px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 9px !important; }

/* Linux health and prediction */
.server-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.server-health-card { min-width: 0; min-height: 102px; padding: 13px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; gap: 5px 9px; background: #f7fafc; border: 1px solid #e2eaf2; border-radius: 14px; }
.server-health-card > i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #6e8298; border-radius: 11px; }
.server-health-card > span { color: #738399; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.server-health-card > strong { overflow-wrap: anywhere; color: var(--mon-ink); font-size: 14px; }
.server-health-card.is-ok > i { background: var(--mon-green); }
.server-health-card.is-warning > i { background: var(--mon-amber); }
.server-health-card.is-danger > i { background: var(--mon-red); }
.server-signal-strip { margin-top: 11px; padding: 11px 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #60758b; background: #f2f7fb; border-radius: 12px; font-size: 11px; }
.server-health-detail { margin-top: 10px; padding: 11px 13px; color: #a33b3b; background: #fff3f3; border-radius: 12px; font-size: 12px; overflow-wrap: anywhere; }
.server-unit-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.server-unit-chip { padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; color: #9c3030; background: #fff; border: 1px solid #efcaca; border-radius: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; }
.redis-table-tools { margin-bottom: 12px; padding: 11px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; background: #f5f8fb; border: 1px solid #dfe8f1; border-radius: 12px; }
.redis-table-tools label { min-width: min(100%, 280px); margin: 0; flex: 1; }
.redis-table-tools label > span { margin-bottom: 5px; display: block; color: #60758b; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.redis-table-pager { display: flex; align-items: center; gap: 7px; }
.redis-table-pager > span { color: #6f8194; font-size: 11px; font-weight: 750; white-space: nowrap; }
#redisTable tr.redis-row-hidden { display: none !important; }
#redisTable tr[id$="-details"]:not(.is-expanded) { display: none !important; }
.redis-key-toolbar { margin-bottom: 12px; padding: 11px; display: grid; grid-template-columns: minmax(220px, 1fr) 130px auto; align-items: end; gap: 10px; background: #f5f8fb; border: 1px solid #dfe8f1; border-radius: 12px; }
.redis-key-toolbar label { margin: 0; }
.redis-key-toolbar label > span { margin-bottom: 5px; display: block; color: #60758b; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.redis-key-pager { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.redis-key-pager > strong { color: #60758b; font-size: 11px; white-space: nowrap; }
#redisTopKeysTable tr.redis-key-row-hidden { display: none !important; }
.disk-prediction-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.disk-prediction-card { padding: 14px; background: #f8fbfe; border: 1px solid #e0e9f2; border-radius: 14px; }
.disk-prediction-card-head { display: flex; justify-content: space-between; gap: 10px; }
.disk-prediction-card-head span { color: var(--mon-blue); font-weight: 850; }
.disk-prediction-card-body { margin-top: 8px; color: var(--mon-muted); font-size: 11px; }

/* Entity grids and charts */
body.bootstrap5-shell .entity-summary-grid,
body.bootstrap5-shell .haproxy-intelligence-grid,
body.bootstrap5-shell .mysql-summary-grid { gap: 12px !important; }

body.bootstrap5-shell .chart {
    position: relative;
    min-height: 250px !important;
    overflow: hidden !important;
}

body.bootstrap5-shell .chart canvas,
body.bootstrap5-shell .shelly-chart-canvas canvas {
    max-width: 100% !important;
}

/* Modal authority */
body.bootstrap5-shell.modal-open { overflow: hidden !important; }
body > #myModal.modal,
body.bootstrap5-shell .modal { position: fixed !important; inset: 0 !important; z-index: 50000 !important; padding: 20px 10px !important; overflow: hidden auto !important; }
body.bootstrap5-shell .modal-dialog { width: min(900px, calc(100vw - 24px)) !important; margin: 20px auto !important; }
body.bootstrap5-shell .modal-content { overflow: visible !important; background: #fff !important; border: 1px solid var(--mon-line) !important; border-radius: 18px !important; box-shadow: 0 30px 90px rgba(5, 20, 37, .28) !important; }
body.bootstrap5-shell .modal-header,
body.bootstrap5-shell .modal-footer { padding: 16px 20px !important; background: #f7fafc; border-color: #e4ebf3 !important; }
body.bootstrap5-shell .modal-header { border-radius: 18px 18px 0 0; }
body.bootstrap5-shell .modal-footer { border-radius: 0 0 18px 18px; }
body.bootstrap5-shell .modal-body { max-height: calc(100vh - 190px); padding: 20px !important; overflow-y: auto !important; }
body > .modal-backdrop,
body.bootstrap5-shell .modal-backdrop { position: fixed !important; inset: 0 !important; z-index: 49990 !important; background: #071321 !important; }
body.bootstrap5-shell .select2-container--open,
body.bootstrap5-shell .select2-dropdown { z-index: 50010 !important; }

/* Not found */
.not-found-page .content { min-height: calc(100vh - var(--mon-header)); display: grid; place-items: center; }
.empty-state-card { width: min(520px, 100%); padding: 48px 28px; text-align: center; background: #fff; border: 1px solid var(--mon-line); border-radius: 24px; box-shadow: var(--mon-shadow); }
.empty-state-icon { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--mon-blue), var(--mon-cyan)); border-radius: 20px; font-size: 28px; }
.empty-state-kicker { color: var(--mon-blue); font-weight: 850; letter-spacing: .13em; }
.empty-state-card h1 { font: 700 31px/1.1 "Space Grotesk", sans-serif; }
.empty-state-card p { color: var(--mon-muted); }

/* Collapsed desktop shell */
@media (min-width: 768px) {
    body.bootstrap5-shell.sidebar-collapse .main-header .logo { width: var(--mon-sidebar-mini) !important; padding: 0 !important; justify-content: center !important; }
    body.bootstrap5-shell.sidebar-collapse .main-header .logo .logo-lg { display: none !important; }
    body.bootstrap5-shell.sidebar-collapse .main-header .logo .logo-mini { display: block !important; }
    body.bootstrap5-shell.sidebar-collapse .main-header .navbar { width: calc(100% - var(--mon-sidebar-mini)) !important; margin-left: var(--mon-sidebar-mini) !important; }
    body.bootstrap5-shell.sidebar-collapse .main-sidebar { width: var(--mon-sidebar-mini) !important; }
    body.bootstrap5-shell.sidebar-collapse .right-side,
    body.bootstrap5-shell.sidebar-collapse .content-wrapper { margin-left: var(--mon-sidebar-mini) !important; }
    body.bootstrap5-shell.sidebar-collapse .app-sidebar-profile,
    body.bootstrap5-shell.sidebar-collapse .app-sidebar-search,
    body.bootstrap5-shell.sidebar-collapse .sidebar-menu > li.header { display: none !important; }
    body.bootstrap5-shell.sidebar-collapse .sidebar-menu > li > a { justify-content: center !important; padding: 12px !important; }
    body.bootstrap5-shell.sidebar-collapse .sidebar-menu > li > a > span,
    body.bootstrap5-shell.sidebar-collapse .sidebar-menu > li > a > .pull-right { display: none !important; }
}

@media (max-width: 1500px) {
    .fleet-pulse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.bootstrap5-shell .dashboard-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .server-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.bootstrap5-shell .servers-table > thead > tr > th,
    body.bootstrap5-shell .servers-table > tbody > tr > td { display: table-cell !important; }
}

@media (max-width: 1100px) {
    .fleet-attention-list { grid-template-columns: 1fr; }
    body.bootstrap5-shell .dashboard-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .disk-prediction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* iPad and iPhone */
@media (max-width: 767px) {
    :root { --mon-header: 60px; --mon-sidebar: min(86vw, 310px); }

    body.bootstrap5-shell .main-header .logo {
        z-index: 1203 !important;
        width: 60px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    body.bootstrap5-shell .main-header .logo .logo-lg { display: none !important; }
    body.bootstrap5-shell .main-header .logo .logo-mini { display: block !important; }

    body.bootstrap5-shell .main-header .navbar {
        width: calc(100% - 60px) !important;
        margin-left: 60px !important;
        padding: 0 max(7px, env(safe-area-inset-right)) 0 6px !important;
    }

    body.bootstrap5-shell .main-header .sidebar-toggle {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
    }

    body.bootstrap5-shell .main-header .app-topbar-menu { max-width: calc(100vw - 112px) !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav { gap: 4px !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav > li:not(:first-child):not(.user-menu) { display: none !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav > li.user-menu > a > .hidden-xs { display: none !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav > li.user-menu > a > .user-image { display: block !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav > li.user-menu > a { width: 42px !important; min-width: 42px !important; padding: 0 7px !important; }
    body.bootstrap5-shell .main-header .app-topbar-nav > li > a { width: 39px !important; min-width: 39px !important; height: 39px !important; min-height: 39px !important; }

    body.bootstrap5-shell .main-sidebar {
        inset: var(--mon-header) auto 0 0 !important;
        width: var(--mon-sidebar) !important;
        height: calc(100dvh - var(--mon-header)) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        transform: translateX(-105%) !important;
        transition: transform .22s ease !important;
        box-shadow: 25px 0 70px rgba(4, 16, 29, .35) !important;
    }

    body.bootstrap5-shell.sidebar-open .main-sidebar { transform: translateX(0) !important; }

    body.bootstrap5-shell .right-side,
    body.bootstrap5-shell .content-wrapper,
    body.bootstrap5-shell.sidebar-collapse .right-side,
    body.bootstrap5-shell.sidebar-collapse .content-wrapper {
        margin-left: 0 !important;
        padding-top: var(--mon-header) !important;
    }

    body.bootstrap5-shell .content-header,
    body.bootstrap5-shell .entity-page-header { padding: 20px 14px 7px !important; }
    body.bootstrap5-shell .content-header > h1 { padding-right: 0 !important; font-size: 26px !important; }
    body.bootstrap5-shell .content-header > h1 small { display: block; margin: 5px 0 0; }
    body.bootstrap5-shell .content-header > .breadcrumb { display: none !important; }
    body.bootstrap5-shell .content { padding: 12px 12px calc(28px + env(safe-area-inset-bottom)) !important; }
    body.bootstrap5-shell .box-header { padding: 14px 15px !important; }
    body.bootstrap5-shell .box-body,
    body.bootstrap5-shell .nav-tabs-custom > .tab-content { padding: 14px !important; }

    body.bootstrap5-shell .nav-tabs-custom > .nav-tabs {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }
    body.bootstrap5-shell .nav-tabs-custom > .nav-tabs::-webkit-scrollbar { display: none; }
    body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li { flex: 0 0 auto !important; }
    body.bootstrap5-shell .nav-tabs-custom > .nav-tabs > li > a { white-space: nowrap !important; }

    .operations-hero-head { flex-direction: column; }
    .operations-state { width: 100%; min-width: 0; }
    .fleet-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fleet-pulse-card { padding: 12px; }
    .fleet-pulse-card strong { font-size: 24px; }
    body.bootstrap5-shell .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.bootstrap5-shell .dashboard-stat-card { min-height: 128px !important; }
    .fleet-attention-item { grid-template-columns: 9px 1fr auto; }
    .fleet-attention-reason { grid-column: 2 / 4; white-space: normal; }
    .fleet-attention-item > i { display: none; }
	.monitoring-core-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.monitoring-core-strip > div:nth-child(2) { border-right: 0; }
	.monitoring-core-strip > div { border-bottom: 1px solid #e5ecf3; }
	.monitoring-core-strip > div:nth-child(n+3) { border-bottom: 0; }
    .server-health-grid,
    .disk-prediction-grid { grid-template-columns: 1fr; }

    body.bootstrap5-shell .dataTables_filter,
    body.bootstrap5-shell .dataTables_filter label,
    body.bootstrap5-shell .dataTables_filter input { width: 100% !important; }
    body.bootstrap5-shell .dataTables_filter input { margin: 0 !important; }

    /* Entity columns must be allowed to shrink below their desktop table content. */
    body.bootstrap5-shell .entity-overview-layout { display: block !important; }
    body.bootstrap5-shell .entity-main-column,
    body.bootstrap5-shell .entity-side-column {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        display: block !important;
        float: none !important;
    }
    body.bootstrap5-shell .entity-main-column .box,
    body.bootstrap5-shell .entity-side-column .box { width: 100% !important; min-width: 0 !important; }
    body.bootstrap5-shell .chart,
    body.bootstrap5-shell .chartjs-render-monitor,
    body.bootstrap5-shell canvas {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Multi-column datasets become labelled records instead of desktop tables in a scroller. */
    body.bootstrap5-shell .table-responsive:has(> table.mobile-card-table),
    body.bootstrap5-shell .table-responsive:has(table.mobile-card-table),
    body.bootstrap5-shell .table-responsive.has-mobile-card-table { overflow: visible !important; }
    body.bootstrap5-shell table.mobile-card-table,
    body.bootstrap5-shell table.mobile-card-table.dataTable,
    body.bootstrap5-shell table.mobile-card-table > tbody {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
        border: 0 !important;
        background: transparent !important;
    }
    body.bootstrap5-shell table.mobile-card-table > thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body.bootstrap5-shell table.mobile-card-table > tbody > tr {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 12px !important;
        padding: 5px 12px !important;
        display: block !important;
        overflow: hidden !important;
        background: #fff !important;
        border: 1px solid #dce6ef !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 22px rgba(22, 45, 70, .055) !important;
    }
    body.bootstrap5-shell table.mobile-card-table > tbody > tr > td,
    body.bootstrap5-shell table.mobile-card-table > tbody > tr > td:nth-child(n) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 42px !important;
        padding: 10px 2px !important;
        display: grid !important;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 12px !important;
        overflow: visible !important;
        color: #243950 !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e8eef4 !important;
        border-radius: 0 !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
        text-align: left !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
    body.bootstrap5-shell table.mobile-card-table > tbody > tr > td:last-child { border-bottom: 0 !important; }
    body.bootstrap5-shell table.mobile-card-table > tbody > tr > td.mobile-table-empty {
        min-height: 0 !important;
        display: block !important;
        text-align: center !important;
    }
    body.bootstrap5-shell .mobile-table-label {
        min-width: 0;
        display: block !important;
        color: #687d93 !important;
        font-size: 10px !important;
        font-weight: 850 !important;
        line-height: 1.3 !important;
        letter-spacing: .065em !important;
        text-transform: uppercase !important;
        white-space: normal !important;
    }
    body.bootstrap5-shell table.mobile-card-table .pull-right { float: none !important; }
    body.bootstrap5-shell table.mobile-card-table .btn-group { display: flex !important; flex-wrap: wrap; gap: 6px; }
    body.bootstrap5-shell table.mobile-card-table .btn { min-width: 36px; border-radius: 8px !important; }
    body.bootstrap5-shell table.mobile-card-table pre { max-width: 100%; white-space: pre-wrap !important; overflow-wrap: anywhere; }

    body.bootstrap5-shell table.mobile-keyvalue-table,
    body.bootstrap5-shell table.mobile-keyvalue-table.dataTable {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    body.bootstrap5-shell table.mobile-keyvalue-table > tbody > tr > td,
    body.bootstrap5-shell table.mobile-keyvalue-table > tbody > tr > th {
        width: auto !important;
        max-width: none !important;
        padding: 10px 9px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
    body.bootstrap5-shell table.mobile-keyvalue-table > tbody > tr > td:first-child,
    body.bootstrap5-shell table.mobile-keyvalue-table > tbody > tr > th:first-child { width: 42% !important; }

    body.bootstrap5-shell .mobile-table-order {
        margin: 0 0 11px;
        padding: 9px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        align-items: end;
        gap: 7px;
        background: #f4f8fb;
        border: 1px solid #dfe8f1;
        border-radius: 12px;
    }
    body.bootstrap5-shell .mobile-table-order label { margin: 0; }
    body.bootstrap5-shell .mobile-table-order label > span {
        margin: 0 0 5px;
        display: block;
        color: #60768e;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .065em;
        text-transform: uppercase;
    }
    body.bootstrap5-shell .mobile-table-order select,
    body.bootstrap5-shell .mobile-table-order button { height: 38px !important; border-radius: 9px !important; }
    body.bootstrap5-shell table.mobile-card-table > tbody > tr.mobile-static-page-hidden { display: none !important; }
    body.bootstrap5-shell .mobile-static-pagination {
        margin: 4px 0 14px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        color: #60768e;
        background: #f4f8fb;
        border: 1px solid #dfe8f1;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 800;
    }
    body.bootstrap5-shell .mobile-static-pagination-actions { display: flex; gap: 6px; }
    body.bootstrap5-shell .mobile-static-pagination .btn { min-height: 36px; border-radius: 9px !important; }
    body.bootstrap5-shell .redis-table-tools { display: grid; grid-template-columns: 1fr; }
    body.bootstrap5-shell .redis-table-pager { display: grid; grid-template-columns: 1fr auto auto; }
    body.bootstrap5-shell .redis-key-toolbar { grid-template-columns: minmax(0, 1fr) 105px; }
    body.bootstrap5-shell .redis-key-pager { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; }

    /* Compact full-information server cards. Every desktop field remains visible. */
    body.bootstrap5-shell .servers-header { display: grid; grid-template-columns: 1fr; gap: 12px; }
    body.bootstrap5-shell .servers-header > .pull-left,
    body.bootstrap5-shell .servers-header > .pull-right { width: 100%; margin: 0 !important; float: none !important; }
    body.bootstrap5-shell .servers-header > .pull-right { display: flex; flex-wrap: wrap; gap: 8px; }
    body.bootstrap5-shell .servers-header > .pull-right form,
    body.bootstrap5-shell .servers-header > .pull-right .btn { min-width: 0; margin: 0 !important; flex: 1 1 145px; }
    body.bootstrap5-shell .servers-list-box > .box-body { padding: 8px !important; }
    body.bootstrap5-shell .servers-page .table-responsive { overflow: visible !important; }
    body.bootstrap5-shell .servers-page .dataTables_wrapper { width: 100% !important; }
    body.bootstrap5-shell .servers-page table.servers-table,
    body.bootstrap5-shell .servers-page table.servers-table tbody { width: 100% !important; min-width: 0 !important; display: block !important; }
    body.bootstrap5-shell .servers-page table.servers-table thead { display: none !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody tr {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 14px !important;
        padding: 14px !important;
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 9px;
        overflow: hidden;
        background: #fff !important;
        border: 1px solid #d7e2ed !important;
        border-radius: 18px !important;
        box-shadow: 0 12px 28px rgba(20, 45, 72, .08);
    }
    body.bootstrap5-shell .servers-page table.servers-table tbody td,
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(n) {
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 9px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 6px !important;
        color: #243950 !important;
        background: #f6f9fc !important;
        border: 1px solid #e4ebf3 !important;
        border-radius: 12px !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
    }
    body.bootstrap5-shell .servers-page table.servers-table tbody td::before {
        display: none !important;
    }
    body.bootstrap5-shell .servers-page .server-mobile-label {
        width: 100%;
        padding-bottom: 6px;
        display: block !important;
        color: #526a83;
        border-bottom: 1px solid #dfe8f1;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.15;
        letter-spacing: .075em;
        text-transform: uppercase;
    }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(1) { grid-column: 1 / 7; grid-row: 2; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(1)::before { display: none !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(3) .server-mobile-label,
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(13) .server-mobile-label { padding-bottom: 3px; border: 0; font-size: 8px; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(1) .server-mobile-label,
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(2) .server-mobile-label { font-size: 9px; }
    body.bootstrap5-shell .servers-page .server-state { min-height: 26px; padding: 4px 8px; color: #31536d; background: #eef5fa; border-radius: 99px; font-size: 10px; font-weight: 800; }
    body.bootstrap5-shell .servers-page .server-state > i { font-size: 12px !important; }
    body.bootstrap5-shell .servers-page .server-state-copy { display: inline !important; white-space: nowrap; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(2) { grid-column: 7 / 13; grid-row: 2; font-weight: 800; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(2)::before { content: "ID"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(3) { grid-column: 1 / 9; grid-row: 1; padding: 5px 7px !important; background: transparent !important; border: 0 !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(3)::before { display: none !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(13) { grid-column: 9 / 13; grid-row: 1; align-items: flex-end !important; padding: 5px 7px !important; background: transparent !important; border: 0 !important; text-align: right !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(13)::before { content: "Agent"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(4)::before { content: "IPv4 addresses"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(5) { grid-column: 1 / 8; grid-row: 4; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(5)::before { content: "Services"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(6) { grid-column: 8 / 13; grid-row: 4; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(6)::before { content: "Operating system"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(7),
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(8),
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(9) { grid-row: 5; align-items: center !important; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(7) { grid-column: 1 / 5; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(8) { grid-column: 5 / 9; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(9) { grid-column: 9 / 13; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(7)::before { content: "CPU"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(8)::before { content: "Memory"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(9)::before { content: "Disk"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(10) { grid-column: 1 / 5; grid-row: 6; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(10)::before { content: "Load"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(11) { grid-column: 5 / 13; grid-row: 6; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(11)::before { content: "Network"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(12) { grid-column: 1 / 13; grid-row: 7; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(12)::before { content: "Uptime"; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(14) { grid-column: 1 / -1; grid-row: 8; }
    body.bootstrap5-shell .servers-page table.servers-table tbody td:nth-child(14)::before { content: "Actions & maintenance"; }
    body.bootstrap5-shell .servers-page .server-name-head a { font-size: 16px; }
    body.bootstrap5-shell .servers-page .server-name-host { font-size: 11px !important; }
    body.bootstrap5-shell .servers-page .server-agent-stack { text-align: right; }
    body.bootstrap5-shell .servers-page .server-ip-list { width: 100% !important; max-width: none !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.bootstrap5-shell .servers-page .server-ip-chip,
    body.bootstrap5-shell .servers-page .server-ip-chip:not(:first-child) { display: block !important; max-width: none !important; text-align: center; }
    body.bootstrap5-shell .servers-page .server-service-stack { width: 100% !important; min-width: 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.bootstrap5-shell .servers-page .server-service-pill { min-width: 0 !important; min-height: 54px !important; padding: 8px 9px !important; }
    body.bootstrap5-shell .servers-page .server-service-copy strong { font-size: 11px; }
    body.bootstrap5-shell .servers-page .server-service-copy small { font-size: 9px; }
    body.bootstrap5-shell .servers-page .server-os-badge { min-width: 0; flex-direction: row !important; align-items: center !important; }
    body.bootstrap5-shell .servers-page .server-os-icon img { width: 28px !important; height: 28px !important; }
    body.bootstrap5-shell .servers-page .server-os-label { max-width: none !important; font-size: 11px !important; }
    body.bootstrap5-shell .servers-page .server-metric { min-width: 0; flex-direction: row !important; align-items: center !important; }
    body.bootstrap5-shell .servers-page .server-metric-value { font-size: 13px; }
    body.bootstrap5-shell .servers-page .server-net-cell { min-width: 0; }
    body.bootstrap5-shell .servers-page .server-net-value { font-size: 12px; }
    body.bootstrap5-shell .servers-page .server-uptime-strip { width: 100%; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    body.bootstrap5-shell .servers-page .server-uptime-item { min-height: 42px; padding: 6px 8px; justify-content: center; background: #fff; border: 1px solid #e0e9f2; border-radius: 9px; }
    body.bootstrap5-shell .servers-page .server-uptime-copy small { font-size: 9px; }
    body.bootstrap5-shell .servers-page .server-uptime-copy strong { font-size: 10px; }
    body.bootstrap5-shell .servers-page .server-actions { width: 100%; float: none !important; }
    body.bootstrap5-shell .servers-page .btn-group { width: 100%; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    body.bootstrap5-shell .servers-page .server-maintenance-form { grid-column: 1 / -1; }
    body.bootstrap5-shell .servers-page .server-maintenance-select { width: 100% !important; }
    body.bootstrap5-shell .servers-page .btn-group > form:not(.server-maintenance-form) { display: contents !important; }
    body.bootstrap5-shell .servers-page .servers-table .btn-group .btn { width: 100% !important; min-width: 0 !important; min-height: 40px; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
    body.bootstrap5-shell .servers-page .server-action-label { display: inline !important; font-size: 11px; }
    body.bootstrap5-shell .servers-page .dataTables_info,
    body.bootstrap5-shell .servers-page .dataTables_paginate { width: 100%; text-align: center !important; }

    body.bootstrap5-shell .modal { padding: 4px !important; }
    body.bootstrap5-shell .modal-dialog { width: calc(100vw - 8px) !important; margin: 4px auto !important; }
    body.bootstrap5-shell .modal-content { min-height: calc(100dvh - 8px); border-radius: 16px !important; }
    body.bootstrap5-shell .modal-body { max-height: calc(100dvh - 142px); padding: 15px !important; }
}

@media (min-width: 768px) {
    body.bootstrap5-shell .mobile-table-label,
    body.bootstrap5-shell .mobile-table-order,
    body.bootstrap5-shell .mobile-static-pagination { display: none !important; }
    body.bootstrap5-shell table > tbody > tr.mobile-static-page-hidden { display: table-row !important; }
}

@media (max-width: 390px) {
    .fleet-pulse-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
    body.bootstrap5-shell .dashboard-stat-grid { grid-template-columns: 1fr; }
	.monitoring-core-strip { grid-template-columns: 1fr; }
	.monitoring-core-strip > div { border-right: 0; border-bottom: 1px solid #e5ecf3 !important; }
	.monitoring-core-strip > div:last-child { border-bottom: 0 !important; }
}

/* Login shares the same visual language without exposing the product codename. */
body.bootstrap5-login {
    color: var(--mon-ink);
    background: #071321;
    font-family: "Manrope", sans-serif;
}

body.bootstrap5-login .login-shell {
    background:
        radial-gradient(circle at 18% 22%, rgba(25, 168, 187, .22), transparent 27rem),
        radial-gradient(circle at 72% 85%, rgba(20, 121, 211, .18), transparent 34rem),
        #071321 !important;
}

body.bootstrap5-login .login-panel {
    overflow: hidden;
    border: 1px solid rgba(217, 230, 242, .86) !important;
    border-radius: 24px !important;
    box-shadow: 0 32px 90px rgba(0, 9, 20, .32) !important;
}

body.bootstrap5-login .login-brand-mark {
    background: linear-gradient(135deg, var(--mon-blue), var(--mon-cyan)) !important;
    border-radius: 14px !important;
}

body.bootstrap5-login .form-control {
    min-height: 48px !important;
    border: 1px solid #ccd8e6 !important;
    border-radius: 12px !important;
}

body.bootstrap5-login .login-submit {
    min-height: 48px;
    background: linear-gradient(135deg, var(--mon-blue), #1768bd) !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
