/* techWALL app stylesheet: design tokens, shared primitives (tw-*), site header, multipoint frame.
   Group sheets may override --tw-brand. */

:root {
    --tw-brand: #004787; --tw-brand-dark: #003a6e; --tw-brand-tint: rgba(0, 71, 135, .08);
    --tw-ink: #141b20; --tw-ink-2: #2b3440; --tw-text: #374151; --tw-muted: #6b7280; --tw-faint: #8a94a6;
    --tw-line: #e5e7eb; --tw-line-2: #dfe3ea; --tw-line-soft: #f0f2f6; --tw-surface: #f7f9fc; --tw-hover: #f3f6fb;
    --tw-radius: 8px; --tw-shadow: 0 10px 30px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
    --tw-header-h: 56px;
}

/* ===== primitives ===== */
/* small uppercase label over a group of content */
.tw-caption { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--tw-faint); line-height: 1.2; }
/* status badge tinted from its own colour (--status-color, set inline); neutral grey by default */
.tw-status {
    --status-color: #9ca3af;
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-size: 11.5px; font-weight: 600; color: #1f2937; padding: 2px 9px 2px 7px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--status-color) 45%, #fff); background: color-mix(in srgb, var(--status-color) 18%, #fff);
}
.tw-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); flex: 0 0 auto; }
.tw-status b { font-weight: 600; color: var(--tw-text); }
/* floating panel: dropdown menus, search results */
.tw-popover, .site-header .topbar-nav .metismenu > li > ul {
    background: #fff; border: 1px solid var(--tw-line); border-radius: 10px; padding: 8px;
    box-shadow: var(--tw-shadow); animation: twPopIn .14s ease-out;
}
@keyframes twPopIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* keyboard hint */
.tw-kbd { font: 10px/1.6 inherit; color: var(--tw-faint); border: 1px solid var(--tw-line-2); border-radius: 4px; padding: 0 5px; background: #fff; }
/* key/value row inside a dl */
.tw-kv { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.tw-kv dt { flex: 0 0 150px; color: var(--tw-muted); font-weight: 500; font-size: 12.5px; line-height: 1.35; }
.tw-kv dd { margin: 0; flex: 1 1 auto; min-width: 0; word-break: break-word; }

/* ===== desktop site header (>= 992px): one row, logo, menu pills, hover dropdowns, "More" overflow ===== */
.site-header {
    align-items: center; flex-wrap: nowrap; min-height: var(--tw-header-h); margin: 0; padding: 0 12px;
    background: linear-gradient(#fff, var(--tw-surface)); border-bottom: 1px solid var(--tw-line-2); box-shadow: 0 2px 6px rgba(16, 24, 40, .06);
}
.site-header-logo { flex: 0 0 auto; display: flex; align-items: center; height: var(--tw-header-h); padding: 0 12px 0 8px; }
.site-header-logo img { max-height: 40px; max-width: 220px; width: auto; height: auto; }
.site-header-nav { flex: 1 1 auto; min-width: 0; padding: 0; }

/* menu row: overrides mm-horizontal.css (min-width 8vw per item) and the group sheets' block hover */
.site-header .topbar-nav { background: transparent; }
.site-header .topbar-nav ul { background: transparent; text-align: left; }
.site-header .topbar-nav .metismenu { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 2px; height: var(--tw-header-h); }
.site-header .topbar-nav .metismenu > li { flex: 0 0 auto; min-width: 0; width: auto; display: flex; flex-direction: row; align-items: stretch; position: relative; }
.site-header .topbar-nav .metismenu > li > a {
    flex: 1 1 auto; display: flex; align-items: center; gap: 6px;
    padding: 7px 12px; margin: 0; border: 0; border-radius: var(--tw-radius);
    font-size: 13.5px; font-weight: 600; color: var(--tw-ink-2);
    white-space: nowrap; text-decoration: none; background: transparent;
    transition: background-color .15s, color .15s;
}
.site-header .topbar-nav .metismenu > li > a .nav-label { color: inherit; }
.site-header .topbar-nav .metismenu > li > a .nav-ic { font-size: 12px; color: var(--tw-faint); margin-right: 1px; transition: color .15s; }
.site-header .topbar-nav .metismenu > li > a.has-arrow::after {
    content: ""; display: inline-block; position: static; width: 6px; height: 6px; margin-left: 2px;
    border-style: solid; border-color: currentColor; border-width: 0 1.5px 1.5px 0; /* chevron: two sides only */
    transform: translateY(-2px) rotate(45deg); opacity: .55; transition: none;
}
.site-header .topbar-nav .metismenu > li > a:hover,
.site-header .topbar-nav .metismenu > li > a:focus,
.site-header .topbar-nav .metismenu > li > a:active,
.site-header .topbar-nav .metismenu > li:hover > a,
.site-header .topbar-nav .metismenu > li:has(:focus-visible) > a,
.site-header .topbar-nav .metismenu > li.mm-active > a,
.site-header .topbar-nav .metismenu > li.nav-open > a { background: var(--tw-brand-tint); color: var(--tw-brand); text-decoration: none; }
.site-header .topbar-nav .metismenu > li:hover > a .nav-ic,
.site-header .topbar-nav .metismenu > li.nav-open > a .nav-ic { color: var(--tw-brand); }
.site-header .topbar-nav .metismenu > li.nav-active > a,
.site-header .topbar-nav .metismenu > li.nav-active:hover > a { background: var(--tw-brand); color: #fff; }
.site-header .topbar-nav .metismenu > li.nav-active > a .nav-ic { color: #fff; }
.site-header .topbar-nav .metismenu > li.nav-active > a.has-arrow::after { opacity: .9; }

/* dropdowns (panel look from .tw-popover above) */
.site-header .topbar-nav .metismenu > li > ul {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 1041;
    min-width: 220px; margin: 0; list-style: none; height: auto !important;
}
.site-header .topbar-nav .metismenu > li > ul::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 10px; } /* hover bridge */
.site-header .topbar-nav.is-hoverable .metismenu > li:hover > ul,
.site-header .topbar-nav .metismenu > li:has(:focus-visible) > ul,
.site-header .topbar-nav .metismenu > li > ul.mm-show,
.site-header .topbar-nav .metismenu > li.nav-open > ul { display: block; }
.site-header .topbar-nav .metismenu > li.nav-closed:has(:focus-visible) > ul { display: none; } /* closed with Escape while focused */
.site-header .topbar-nav .metismenu > li > ul > li { display: block; }
.site-header .topbar-nav .metismenu > li > ul > li > a {
    display: block; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 500;
    color: var(--tw-ink); text-align: left; white-space: nowrap; text-decoration: none; background: transparent;
}
.site-header .topbar-nav .metismenu > li > ul > li > a:hover,
.site-header .topbar-nav .metismenu > li > ul > li > a:focus { background: var(--tw-hover); color: var(--tw-brand); text-decoration: none; }
.site-header .topbar-nav .metismenu > li.nav-wide > ul { min-width: 460px; column-count: 2; column-gap: 8px; }
.site-header .topbar-nav .metismenu > li.nav-wide > ul > li { break-inside: avoid; }

/* "More" overflow menu, built by site-header.js */
.site-header .topbar-nav .metismenu > li.nav-folded { display: none !important; }
.site-header .topbar-nav .metismenu > li.nav-more { display: none; }
.site-header .topbar-nav .metismenu > li.nav-more.nav-more-visible { display: flex; }
.site-header .topbar-nav .metismenu > li.nav-flip > ul { left: auto; right: 0; }
.site-header .topbar-nav .metismenu > li.nav-more > ul { left: auto; right: 0; max-height: calc(100vh - var(--tw-header-h) - 60px); overflow-y: auto; }
.site-header .topbar-nav .metismenu > li.nav-more > ul > li.nav-more-top > a { font-weight: 600; }
.site-header .topbar-nav .metismenu > li.nav-more > ul > li.nav-more-sub > a { padding-left: 28px; font-weight: 400; }

/* --- header search (staff) --- */
.site-header .topbar-nav .metismenu > li.nav-search { margin-left: auto; align-items: center; padding: 0 4px; }
.site-header .topbar-nav .metismenu > li.nav-search + li.nav-user { margin-left: 0; }
.site-header .site-search { position: relative; display: flex; align-items: center; gap: 8px; width: 250px; height: 34px; margin: 0; padding: 0 10px; border: 1px solid var(--tw-line-2); border-radius: 999px; background: var(--tw-surface); }
.site-header .site-search:focus-within { background: #fff; border-color: var(--tw-brand); box-shadow: 0 0 0 3px rgba(0, 71, 135, .12); }
.site-header .site-search > i { color: var(--tw-faint); font-size: 13px; }
.site-header .site-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 13px; color: var(--tw-ink); outline: none; padding: 0; height: 30px; }
.site-header .site-search input::placeholder { color: #9aa3b2; }
.site-header .site-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-header .site-search:focus-within > kbd { display: none; }
.site-header .site-search-hits { position: absolute; top: calc(100% + 6px); right: 0; width: 440px; max-width: calc(100vw - 32px); padding: 6px; z-index: 1050; }
.site-header .site-search-list { max-height: min(60vh, 440px); overflow-y: auto; }
.site-header .site-search-group { padding: 6px 10px 3px; }
.site-header .site-search-group + a.site-search-hit { border-top: 0; }
.site-header .site-search-none { padding: 10px 10px 6px; font-size: 13px; color: var(--tw-faint); }
/* result rows; selectors outrank .topbar-nav .metismenu a in the group sheets */
.site-header .site-search-hits a.site-search-hit { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--tw-radius); font-size: 13px; line-height: 1.3; color: var(--tw-ink); text-decoration: none; white-space: nowrap; overflow: hidden; }
.site-header .site-search-hits a.site-search-hit + .site-search-hit { border-top: 1px solid var(--tw-line-soft); border-radius: 0; }
.site-header .site-search-hits a.site-search-hit:hover, .site-header .site-search-hits a.site-search-hit.active { background: var(--tw-hover); color: var(--tw-ink); text-decoration: none; }
.site-header .site-search-hits a.site-search-hit .hit-ico { flex: 0 0 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--tw-radius); background: #eef3f9; color: var(--tw-brand); font-size: 13px; }
.site-header .site-search-hits a.site-search-hit.is-closed .hit-ico { background: #f1f3f5; color: var(--tw-faint); }
.site-header .site-search-hits a.site-search-hit.is-customer .hit-ico { background: #eef7f0; color: #15803d; }
.site-header .site-search-hits a.site-search-hit.is-appt .hit-ico { background: #fff4e5; color: #b45309; }
.site-header .site-search-hits a.site-search-hit .hit-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-header .site-search-hits a.site-search-hit .hit-l1, .site-header .site-search-hits a.site-search-hit .hit-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.site-header .site-search-hits a.site-search-hit .hit-l1 b { font-weight: 700; color: var(--tw-brand); }
.site-header .site-search-hits a.site-search-hit.is-closed .hit-l1 b,
.site-header .site-search-hits a.site-search-hit.is-customer .hit-l1 b,
.site-header .site-search-hits a.site-search-hit.is-appt .hit-l1 b { color: var(--tw-ink); }
.site-header .site-search-hits a.site-search-hit .hit-tag { font-size: 11px; font-weight: 600; color: var(--tw-text); background: #eef2f7; border-radius: 4px; padding: 0 6px; line-height: 17px; }
.site-header .site-search-hits a.site-search-hit .hit-date { margin-left: auto; padding-left: 8px; font-size: 11px; color: var(--tw-faint); }
.site-header .site-search-hits a.site-search-hit .hit-l2 { font-size: 12px; color: #5b6472; }
.site-header .site-search-hits a.site-search-hit .hit-l2 > span { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.site-header .site-search-hits a.site-search-hit .hit-l2 > span:first-child { flex-shrink: 0; max-width: 55%; }
.site-header .site-search-hits a.site-search-hit .hit-l2 > span:last-child:not(:first-child) { flex-shrink: 0; }
.site-header .site-search-hits a.site-search-hit .dot { flex: 0 0 auto; color: #c4c9d2; }
.site-header .site-search-hits a.site-search-hit mark { padding: 0; background: #fff3bf; color: inherit; border-radius: 2px; }
.site-header .site-search-hits a.site-search-hit .tw-status { flex: 0 0 auto; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.site-header .site-search-hits a.site-search-hit.is-closed .tw-status { --status-color: #6b7280; color: #4b5563; }
.site-header .site-search-hits a.site-search-hit.more { gap: 8px; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--tw-line); border-radius: 0 0 var(--tw-radius) var(--tw-radius); color: var(--tw-brand); font-weight: 600; font-size: 12.5px; }
.site-header .site-search-hits a.site-search-hit.more > span { overflow: hidden; text-overflow: ellipsis; }
.site-header .site-search-hits a.site-search-hit.more kbd { margin-left: auto; }

/* --- user pill at the far right: one pill, two links (name -> profile, Logout -> logout) --- */
.site-header .topbar-nav .metismenu > li.nav-user { margin-left: auto; align-items: center; padding-left: 10px; gap: 0; }
.site-header .topbar-nav .metismenu > li.nav-user > a {
    flex: 0 0 auto; gap: 8px; height: 38px; box-sizing: border-box; padding: 3px 10px 3px 3px; border: 1px solid var(--tw-line-2); border-right: 0; border-radius: 999px 0 0 999px; background: #fff; color: var(--tw-ink-2); font-size: 13px;
}
.site-header .topbar-nav .metismenu > li.nav-user > a.nav-user-logout { padding: 3px 12px 3px 0; border-left: 0; border-radius: 0 999px 999px 0; }
.site-header .topbar-nav .metismenu > li.nav-user > a.nav-user-logout::before { content: ""; align-self: center; width: 1px; height: 18px; background: var(--tw-line-2); margin-right: 10px; }
.site-header .topbar-nav .metismenu > li.nav-user > a:hover,
.site-header .topbar-nav .metismenu > li.nav-user > a:focus { background: var(--tw-brand-tint); color: var(--tw-brand); }
.site-header .topbar-nav .metismenu > li.nav-user > a:hover .nav-label,
.site-header .topbar-nav .metismenu > li.nav-user > a:focus .nav-label { color: var(--tw-brand); }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-avatar { position: relative; display: inline-flex; }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-initials { width: 30px; height: 30px; border-radius: 50%; background: var(--tw-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-msgs { position: absolute; top: -5px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-name { font-weight: 600; }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-name:empty { display: none; }
.site-header .topbar-nav .metismenu > li.nav-user > a > i.fa-user { display: none; }
.site-header .topbar-nav .metismenu > li.nav-user > a i { color: var(--tw-brand); margin-right: 2px; }
.site-header .topbar-nav .metismenu > li.nav-user > a .nav-label { font-weight: 400; color: var(--tw-faint); }

/* ===== mobile header and slideout menu (< 992px) ===== */
@media (max-width: 991.98px) {
    .site-header-m { padding: 0; border-bottom: 1px solid var(--tw-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
    .site-header-m-bar { display: flex; align-items: center; justify-content: space-between; height: var(--tw-header-h); padding: 0 6px; }
    .site-header-m-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--tw-ink-2); cursor: pointer; }
    .site-header-m-btn:active { background: var(--tw-brand-tint); }
    .site-header-m-btn i.fa, .site-header-m-btn i.fas { font-size: 20px !important; line-height: 1; color: var(--tw-ink-2); }
    .site-header-m-logo { flex: 1 1 auto; text-align: center; min-width: 0; padding: 0 6px; }
    .site-header-m-logo img { max-height: 40px; max-width: 160px; width: auto; }
    .site-header-m-icons { display: flex; gap: 2px; }
    .site-header-m .mobile-icon-slot { visibility: visible; }

    .sidebar-nav { background: #fff; border-right: 1px solid var(--tw-line); }
    .sidebar-nav ul, .sidebar-nav .metismenu { background: #fff; }
    .sidebar-nav .metismenu li + li, .sidebar-nav .metismenu li:first-child, .sidebar-nav .metismenu li:last-child { margin: 0; }
    .sidebar-nav .metismenu > li { border-top: 1px solid #f3f4f6; }
    .sidebar-nav .metismenu > li > a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; font-weight: 600; color: var(--tw-ink); }
    .sidebar-nav .metismenu > li > a .nav-ic { width: 18px; text-align: center; color: var(--tw-faint); font-size: 14px; }
    .sidebar-nav .metismenu > li > a.has-arrow::after { margin-left: auto; border-color: #9ca3af; }
    .sidebar-nav .metismenu > li.nav-active > a { color: var(--tw-brand); box-shadow: inset 4px 0 0 var(--tw-brand); }
    .sidebar-nav .metismenu > li.nav-active > a .nav-ic { color: var(--tw-brand); }
    .sidebar-nav .metismenu a:hover, .sidebar-nav .metismenu a:focus, .sidebar-nav .metismenu a:active { background: var(--tw-brand-tint); color: var(--tw-brand); }
    .sidebar-nav .metismenu ul { background: var(--tw-surface); }
    .sidebar-nav .metismenu ul a { padding: 10px 16px 10px 46px; font-size: 14px; color: var(--tw-ink); }
}

/* ===== multipoint page frame (.multipoint-shell-v2) ===== */
/* --- RO bar --- */
.multipoint-shell-v2 .ro-bar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 16px;
    background: #fff; padding: 8px 12px;
    border-top: 3px solid var(--tw-brand); border-bottom: 3px solid var(--tw-brand);
}
.multipoint-shell-v2 .ro-bar-summary { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; cursor: pointer; border-radius: 6px; }
.multipoint-shell-v2 .ro-bar-summary:hover { background: #f5f7fa; }
/* three labelled clusters: one large primary value, secondary details small and muted beneath */
.multipoint-shell-v2 .ro-cluster { padding: 2px 18px 2px 14px; border-right: 1px solid var(--tw-line); min-width: 0; }
.multipoint-shell-v2 .ro-cluster:first-child { padding-left: 6px; }
.multipoint-shell-v2 .ro-cluster:last-of-type { border-right: 0; }
.multipoint-shell-v2 .ro-caption { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.multipoint-shell-v2 .ro-type { background: var(--tw-brand); color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .5px; padding: 1px 7px; border-radius: 3px; }
.multipoint-shell-v2 .ro-type-estimate { background: #b45309; }
.multipoint-shell-v2 .ro-primary { font-size: 15px; font-weight: 700; color: #111827; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multipoint-shell-v2 .ro-primary i { font-size: 12px; color: #9ca3af; margin-right: 3px; }
.multipoint-shell-v2 .ro-secondary { font-size: 12.5px; color: var(--tw-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multipoint-shell-v2 .ro-secondary i { font-size: 11px; color: #9ca3af; margin-right: 3px; }
.multipoint-shell-v2 .ro-dot { margin: 0 6px; color: #c4c9d2; }
.multipoint-shell-v2 .ro-status { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px 0 14px; }
.multipoint-shell-v2 .ro-unit { margin-left: 6px; padding: 0 7px; border: 1px solid #d1d5db; border-radius: 9px; font-size: 11.5px; color: var(--tw-text); white-space: nowrap; }
.multipoint-shell-v2 .ro-unit i { color: #9ca3af; margin-right: 3px; }
.multipoint-shell-v2 .ro-bar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* --- action bar --- */
.multipoint-shell-v2 .action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0 8px; border-bottom: 1px solid var(--tw-line); margin-bottom: 6px; }
.multipoint-shell-v2 .open-on-mobile-btn { background-color: #fd7e14; border-color: #fd7e14; color: #fff; }
.multipoint-shell-v2 .open-on-mobile-btn:hover { background-color: #e8700f; border-color: #e8700f; color: #fff; }
/* base.css gives every .dropdown-menu height:150px; undo that here so menus are not clipped */
.multipoint-shell-v2 .dropdown-menu { height: auto; overflow-y: visible; min-width: 12rem; }
.multipoint-shell-v2 .dropdown-item.uveye-btn img { display: block; }
.multipoint-shell-v2 .dropdown-item.disabled { pointer-events: none; }

/* --- wizard chrome (jQuery Steps) --- */
.multipoint-shell-v2 .wizard > .steps { padding: 0; }
.multipoint-shell-v2 .wizard > .steps > ul { display: flex; gap: 28px; border-bottom: 1px solid #d1d5db; }
.multipoint-shell-v2 .wizard > .steps > ul > li { width: auto !important; float: none; }
.multipoint-shell-v2 .wizard > .steps > ul > li > a,
.multipoint-shell-v2 .wizard > .steps > ul > li > a:hover,
.multipoint-shell-v2 .wizard > .steps > ul > li > a:active {
    background: transparent; color: #4b5563; font-weight: 600; padding: 10px 2px; margin: 0;
    border-radius: 0; border-bottom: 3px solid transparent;
}
.multipoint-shell-v2 .wizard > .steps > ul > li.current > a { color: var(--tw-brand); border-bottom-color: var(--tw-brand); }
.multipoint-shell-v2 .wizard > .steps > ul > li.done > a { color: #4b5563; }
.multipoint-shell-v2 .wizard > .steps .number { display: inline; font-size: inherit; }
/* per-tab counts, filled by the page script from each tab's content */
.multipoint-shell-v2 .wizard > .steps .tab-badge { display: inline-block; margin-left: 7px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 600; line-height: 18px; background: var(--tw-line); color: var(--tw-text); vertical-align: 1px; }
.multipoint-shell-v2 .wizard > .steps .tab-badge-red { background: #fde2e2; color: #991b1b; }
.multipoint-shell-v2 .wizard > .steps .tab-badge-amber { background: #fef3c7; color: #92400e; }

/* The plugin clips the wizard (overflow hidden), which disables sticky inside it. Let it overflow and
   lay it out as a column: the content grows to fill the viewport (min-height set from JS), so the
   footer sits at the bottom edge on short tabs and sticks there while long tabs scroll. */
.multipoint-shell-v2 .wizard { overflow: visible; display: flex; flex-direction: column; }
.multipoint-shell-v2 .wizard > .content { flex: 1 0 auto; }
.multipoint-shell-v2 .wizard > .actions {
    position: sticky; bottom: 0; z-index: 1010;
    background: #fff; border-top: 1px solid #d1d5db; padding: 8px 0; margin: 0;
}
.multipoint-shell-v2 .wizard > .actions > ul { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.multipoint-shell-v2 .wizard > .actions > ul > li { float: none; margin: 0; }
/* same geometry as Bootstrap's .btn.btn-sm, house blue for the actions */
.multipoint-shell-v2 .wizard > .actions a,
.multipoint-shell-v2 .wizard > .actions a:hover,
.multipoint-shell-v2 .wizard > .actions a:active {
    display: inline-block; padding: .25rem .5rem; font-size: .875rem; line-height: 1.5; font-weight: 400; border-radius: .2rem;
    background: var(--tw-brand); color: #fff; border: 1px solid var(--tw-brand); margin: 0; text-decoration: none;
    transition: background-color .15s, border-color .15s;
}
.multipoint-shell-v2 .wizard > .actions a:hover { background: var(--tw-brand-dark); border-color: var(--tw-brand-dark); }
/* Previous / Next / Return to Dashboard are the first three items the plugin renders */
.multipoint-shell-v2 .wizard > .actions > ul > li:nth-child(-n+3) > a { background: #fff; color: #495057; border-color: #adb5bd; }
.multipoint-shell-v2 .wizard > .actions > ul > li:nth-child(-n+3) > a:hover { background: #f3f4f6; color: #212529; }
/* a thin divider between the navigation buttons and the RO actions */
.multipoint-shell-v2 .wizard > .actions > ul > li:nth-child(4) { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--tw-line); }
.multipoint-shell-v2 .wizard > .actions .disabled a { opacity: .5; pointer-events: none; }

/* --- drawer --- */
.multipoint-shell-v2 .ro-drawer-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.35); display: none; z-index: 1040; }
.multipoint-shell-v2 .ro-drawer-backdrop.open { display: block; }
.multipoint-shell-v2 .ro-drawer {
    position: fixed; top: 0; right: -440px; width: 420px; max-width: 100%; height: 100%;
    background: #fff; box-shadow: -6px 0 20px rgba(0,0,0,.2); z-index: 1041;
    overflow-y: auto; transition: right .2s;
}
.multipoint-shell-v2 .ro-drawer.open { right: 0; }
.multipoint-shell-v2 .ro-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--tw-line); font-size: 16px; }
.multipoint-shell-v2 .ro-drawer-group { margin: 18px 20px 6px; }
.multipoint-shell-v2 .ro-drawer-list { margin: 0 20px; }
.multipoint-shell-v2 .ro-na { color: #9ca3af; }
.multipoint-shell-v2 .ro-drawer-edit { margin: 10px 20px 4px; display: flex; gap: 6px; flex-wrap: wrap; }

/* unit cards inside the drawer (markup from vehicle-cards.js, restyled) */
.multipoint-shell-v2 .ro-drawer-units .card { margin: 8px 20px; border: 1px solid var(--tw-line); border-radius: 6px; }
.multipoint-shell-v2 .ro-drawer-units .card:first-child { border-color: var(--tw-brand); }
.multipoint-shell-v2 .ro-drawer-units .card-header .btn { color: #0a0a23; font-weight: 600; font-size: 14px; white-space: normal; }
.multipoint-shell-v2 .ro-drawer-units .card-body { padding: 4px 12px 8px; }
.multipoint-shell-v2 .ro-drawer-units .ro-top-field { font-weight: 400; }
.multipoint-shell-v2 .ro-drawer-units #addVehicleBtnCard { border-style: dashed; }

/* --- responsive --- */
@media (max-width: 991.98px) {
    .multipoint-shell-v2 .ro-bar { flex-wrap: wrap; }
    .multipoint-shell-v2 .ro-bar-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 767.98px) {
    .multipoint-shell-v2 .ro-bar { padding: 6px 8px; gap: 8px; }
    .multipoint-shell-v2 .ro-bar-summary { flex-wrap: wrap; row-gap: 4px; }
    .multipoint-shell-v2 .ro-cluster { flex: 1 1 100%; padding: 0 6px; border-right: 0; }
    .multipoint-shell-v2 .ro-cluster + .ro-cluster { border-top: 1px solid var(--tw-line-soft); padding-top: 4px; }
    .multipoint-shell-v2 .ro-status { flex-direction: row; flex-wrap: wrap; padding: 0 6px; }
    .multipoint-shell-v2 .ro-bar-actions { justify-content: flex-start; flex-wrap: wrap; }
    .multipoint-shell-v2 .ro-drawer { width: 100%; right: -100%; }
    .multipoint-shell-v2 .wizard > .steps > ul { gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .multipoint-shell-v2 .wizard > .steps > ul > li > a { white-space: nowrap; }
    .multipoint-shell-v2 .wizard > .actions > ul { justify-content: flex-start; }
    .multipoint-shell-v2 .wizard > .actions > ul > li { width: auto; margin-top: 0; }
}
