/* =========================================
   1. Design System Tokens
   ========================================= */
:root {
    /* Typography */
    --font-heading: 'Avenirnextltpro Demi', sans-serif;
    --font-body: 'AvenirNextLTPro', sans-serif;

    /* Color Palette */
    --primary-blue: #000099;
    /* Brand Blue */
    --accent-orange: #ff5c53;
    /* Accent */
    --bg-neutral: #f8f9fa;
    /* Backgrounds */
    --text-dark: #212529;
    /* Text */
    --border-light: #dee2e6;
    /* Borders */
}

/* Global Applied Styles */
html {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-neutral);
    color: var(--text-dark);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link {
    font-family: var(--font-heading);
}

/* =========================================
   2. Login Page Styles
   ========================================= */

/* Main Container */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: auto;
    flex-direction: row; /* override column from body rule */
}

.login-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    width: 350px;
    /* Token: Floating shadow, remove default borders */
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 99, 0.1);
}

.login-container h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 10;
    /* Ensure icon stays on top */
}

.input-group input {
    width: 100%;
    /* Token: Increase padding to 0.75rem (vertical), keeping horizontal for icon */
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    /* Token: Remove heavy default borders */
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background-color: #f8f9fa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body);
}

/* Token: Focus State - Primary Blue with soft glow */
.input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 0, 153, 0.1);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-blue);
    border: none;
    color: white;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
}

.btn-login:hover {
    background-color: #000077;
    /* Slightly darker for hover */
}

/* =========================================
   3. Main Page (Map) Styles
   ========================================= */

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-light);
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    /* Muted text */
    background: transparent;
    font-weight: 500;
    margin-bottom: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-blue);
}

/* Active Tab Token: Bottom-border design, Primary Blue text */
.nav-tabs .nav-link.active {
    color: var(--primary-blue);
    background-color: transparent;
    border-bottom: 3px solid var(--accent-orange);
}

/* Tab Content Container */
.tab-content {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0;
}

/* Each visible tab pane fills the container */
.tab-pane.show.active {
    height: 100%;
}

/* Tab 2 (scrollable) */
.tab-padded {
    overflow-y: auto;
}

/* Leaflet/Map Adjustments if needed to fit new container style */
#map {
    border-radius: 6px;
    /* Smooth corners for the map too */
    border: 1px solid var(--border-light);
    /* Lighter border than before */
}



/* Sidebar List Branding */
#sidebar li {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    padding: 12px 15px;
    /* More breathing room */
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

#sidebar li:hover {
    background-color: var(--primary-blue);
    color: white;
    padding-left: 20px;
    /* Slide effect */
}

/* List Group Item Branding (Generic) */
.list-group-item {
    border-color: var(--border-light);
    color: var(--text-dark);
    font-family: var(--font-body);
}

.list-group-item:hover,
.list-group-item:focus {
    background-color: #f1f3f5;
    color: var(--primary-blue);
}

.list-group-item.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Date List Specifics (Map Page) */
#date-list .list-group-item.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* =========================================
   4. Progress Page Styles
   ========================================= */
.progress-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.progress-title {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: transform 0.2s;
}

.progress-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.icon-success {
    color: var(--primary-blue);
}

.icon-spinner {
    color: var(--accent-orange);
    animation: spin 1s linear infinite;
}

.icon-pending {
    color: #adb5bd;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   5. Map Page Specifics
   ========================================= */

/* Zoom Slider Customization */
#zoom-slider {
    -webkit-appearance: none;
    width: 150px;
    height: 6px;
    background: var(--border-light);
    border-radius: 5px;
    outline: none;
    transition: background 0.2s;
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Radio Button Group (Graph Selection) override */
.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-family: var(--font-body);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-check:checked+.btn-outline-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    /* Add a subtle accent border to show "Active" status clearly? */
    z-index: 2;
}

/* Send Alert Button */
#webhook-btn {
    background-color: var(--accent-orange) !important;
    /* Make it pop */
    border-color: var(--accent-orange) !important;
    font-family: var(--font-heading);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#webhook-btn:hover {
    border-color: #e04a41 !important;
}

/* Alert Table Styling */
.table tr.alert-critical>td {
    background-color: rgba(255, 92, 83, 0.25) !important;
    --bs-table-bg: rgba(255, 92, 83, 0.25) !important;
    color: #a8201a !important;
}

.table tr.alert-critical {
    border-left: 4px solid var(--accent-orange);
}

.table tr.alert-info-row>td {
    background-color: rgba(0, 0, 153, 0.1) !important;
    --bs-table-bg: rgba(0, 0, 153, 0.1) !important;
    color: var(--primary-blue) !important;
}

.table tr.alert-info-row {
    border-left: 4px solid var(--primary-blue);
}

/* =========================================
   6. App Header (Navbar)
   ========================================= */

/* Top bar styles live in topbar.css */

/* =========================================
   7. Tab Bar
   ========================================= */

.app-tabs-bar {
    background-color: #ffffff;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-tabs .nav-link {
    padding: 1.15rem 1.4rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-eng {
    font-size: 0.58rem;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.12em 0.42em;
    border-radius: 3px;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    vertical-align: middle;
    line-height: 1.4;
}

/* =========================================
   8. Map Tab — Flex Layout
   ========================================= */

.tab-map-pane {
    padding: 0 !important;
}

.map-layout {
    display: flex;
    height: 100%;
    min-height: 0;
}

#map {
    flex: 1 1 auto;
    height: 100%;
    border-radius: 0;
    border: none;
}

#sidebar {
    width: 360px;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    background-color: #ffffff;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 0;
    float: none;
}

/* Address Card */
#address-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
    flex-shrink: 0;
}

.address-card-icon {
    font-size: 1.4rem;
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 1px;
}

.address-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.address-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    font-family: var(--font-heading);
}

#address-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.45;
    word-break: break-word;
    font-weight: 500;
}

/* Zoom Control */
#zoom-control {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background-color: #fafafa;
    flex-shrink: 0;
    text-align: left;
}

.zoom-label {
    font-size: 0.68rem;
    color: #6c757d;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
}

.zoom-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-slider {
    flex: 1;
    height: 3px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    opacity: 0.75;
    transition: opacity 0.15s;
}

.zoom-slider:hover {
    opacity: 1;
}

.zoom-value-badge {
    font-size: 0.7rem;
    color: #6c757d;
    font-family: var(--font-heading);
    min-width: 18px;
    text-align: right;
}

/* Sidebar Section Label */
.sidebar-section-label {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    font-family: var(--font-heading);
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Feature List */
#feature-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Map Alert Button */
.map-alert-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* =========================================
   9. Device Status Tab (Tab 2)
   ========================================= */

.tab-padded {
    padding: 1.5rem;
}

.section-heading {
    color: var(--primary-blue);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

.status-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.status-cell {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background-color: #ffffff;
    transition: background 0.12s;
}

.status-cell:hover {
    background-color: #fafbff;
}

.status-card-key {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    font-family: var(--font-heading);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-card-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
}

/* =========================================
   10. Technical Reports Tab (Tab 3)
   ========================================= */

.tech-panel {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.tech-panel-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    font-family: var(--font-heading);
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--border-light);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-panel-body {
    padding: 0.75rem;
}

/* =========================================
   12. JSON Viewer — dark theme
   ========================================= */

#json-display-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.json-viewer {
    font-family: 'Cascadia Code', 'Consolas', 'Fira Code', monospace;
    font-size: 0.76rem;
    line-height: 1.55;
    background: #1e1e2e;
    color: #cdd6f4;
    margin: 0;
    padding: 0.85rem 1rem;
    min-height: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    border-radius: 0;
}

.json-key    { color: #89b4fa; }
.json-string { color: #a6e3a1; }
.json-num    { color: #fab387; }
.json-bool   { color: #cba6f7; }
.json-null   { color: #6c7086; }

/* =========================================
   13. Criticality Badge
   ========================================= */

.crit-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.67rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.crit-lvl-1, .crit-lvl-2, .crit-lvl-3 { background-color: #dc3545; }
.crit-lvl-4, .crit-lvl-5               { background-color: #fd7e14; }
.crit-lvl-6, .crit-lvl-7, .crit-lvl-8 { background-color: var(--primary-blue); }

/* =========================================
   14. Chart metric selector (in tech-panel-title)
   ========================================= */

.tech-panel-title-chart {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-metric-selector {
    display: flex;
    gap: 3px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(0, 0, 99, 0.2);
}

.chart-metric-btn {
    font-size: 0.7rem;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 99, 0.25);
    color: var(--primary-blue);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
    line-height: 1.5;
}

.btn-check:checked + .chart-metric-btn {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.chart-metric-btn:hover {
    background-color: rgba(0, 0, 99, 0.08);
}

.chart-export-btn {
    font-size: 0.7rem;
    padding: 0.18rem 0.7rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 99, 0.3);
    color: var(--primary-blue);
    font-family: var(--font-body);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.5;
}

.chart-export-btn:hover {
    background-color: rgba(0, 0, 99, 0.08);
}

.chart-export-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* =========================================
   15. Report date list items
   ========================================= */

.report-date-item {
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.report-date-str {
    font-size: 0.82rem;
    display: block;
    font-family: var(--font-body);
}

/* Rapports sans position dans la barre latérale */
#sidebar li.sidebar-unmapped {
    cursor: default;
    pointer-events: none;
    font-style: italic;
    opacity: 0.85;
}

#sidebar li.sidebar-unmapped--wifi {
    color: #0d6efd;
}

#sidebar li.sidebar-unmapped--antenna {
    color: #fd7e14;
}

/* Rapports positionnés via le dictionnaire wifi : même couleur que la
   version "non localisée", mais cliquable puisqu'une position est connue. */
#sidebar li.sidebar-mapped--wifi {
    color: #0d6efd;
}

#sidebar li.sidebar-skipped {
    color: #dc3545;
    cursor: default;
    pointer-events: none;
    font-style: italic;
    opacity: 0.85;
}

/* =========================================
   16. Tab 3 — no-scroll flex layout
   ========================================= */

#extra {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.6rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

#extra.show.active {
    display: flex !important;
}

.reports-top-row {
    display: flex;
    gap: 0.6rem;
    flex: 1 1 0;
    min-height: 200px;
}

.reports-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.reports-col--list {
    flex: 0 1 220px;
    min-width: 150px;
}

.reports-col--json {
    flex: 1 1 200px;
    min-width: 160px;
}

.reports-col--alerts {
    flex: 2 1 380px;
    min-width: 260px;
    overflow-x: auto;
}

.reports-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.reports-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* =========================================
   17. Reports date filter bar
   ========================================= */

.reports-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.5rem 0.9rem;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    flex-shrink: 0;
}

.reports-filter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reports-filter-input {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 99, 0.3);
    color: var(--primary-blue);
    font-family: var(--font-body);
}

.reports-filter-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 99, 0.3);
    color: var(--primary-blue);
    background: white;
    font-family: var(--font-body);
}

.reports-date-input-group {
    display: flex;
    align-items: stretch;
}

.reports-date-input-group .reports-filter-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.reports-date-stepper {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 99, 0.3);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    overflow: hidden;
}

.reports-date-step-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    padding: 0 3px;
    border: none;
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    line-height: 1;
    font-size: 0.6rem;
}

.reports-date-step-btn:first-child {
    border-bottom: 1px solid rgba(0, 0, 99, 0.3);
}

.reports-date-step-btn:hover {
    background-color: rgba(0, 0, 99, 0.08);
}

.reports-filter-clear {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 99, 0.3);
    color: var(--primary-blue);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
}

.reports-filter-clear:hover {
    background-color: rgba(0, 0, 99, 0.08);
}

.reports-filter-hint {
    font-size: 0.72rem;
    color: #6c757d;
}

.date-filtered-out {
    display: none !important;
}

.chart-row {
    flex: 0 0 clamp(220px, 38vh, 620px);
}

.chart-row .tech-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-row .tech-panel-body {
    flex: 1;
    min-height: 0;
    padding: 0.5rem 0.75rem 0.75rem;
}

/* =========================================
   17. Client Sheet (Status Tab)
   ========================================= */

.client-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-section {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.client-section-header {
    background-color: var(--primary-blue);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.45rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 7px;
}

.client-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    border-top: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.client-field {
    padding: 0.65rem 1rem;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
    transition: background 0.12s;
}

.client-field:hover {
    background: #fafbff;
}

.client-field-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6c757d;
    font-family: var(--font-heading);
    margin-bottom: 3px;
}

.client-field-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
}

/* =========================================
   18. Header Serial Jump Input
   ========================================= */

/* =========================================
   19. Sidebar Unmapped Reason Tag
   ========================================= */

.sidebar-unmapped-reason {
    display: inline-block;
    font-size: 1rem;
    font-style: normal;
    border-radius: 3px;
    padding: 0.1em 0.35em;
    margin-left: 5px;
    letter-spacing: 0.03em;
    font-family: var(--font-heading);
    vertical-align: middle;
}

.sidebar-reason--wifi {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.sidebar-reason--antenna {
    background: rgba(253, 126, 20, 0.12);
    color: #fd7e14;
}

.btn-mnc-lookup {
    display: block;
    margin-top: 4px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    pointer-events: auto;
    font-style: normal;
    opacity: 0.82;
    transition: opacity 0.15s;
}
.btn-mnc-lookup:hover:not(:disabled) { opacity: 1; }
.btn-mnc-lookup.active { background: #a29bfe; opacity: 1; }
.btn-mnc-lookup--unparseable { background: #adb5bd; cursor: default; opacity: 0.6; }
.btn-mnc-lookup:disabled { cursor: default; }

#sidebar li.sidebar-antenna-lookup {
    pointer-events: auto;
    cursor: pointer;
}
#sidebar li.sidebar-antenna-lookup:hover {
    background: rgba(108, 92, 231, 0.07);
}

.sidebar-skipped-reason {
    display: inline-block;
    font-size: 0.82rem;
    font-style: normal;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border-radius: 3px;
    padding: 0.1em 0.4em;
    letter-spacing: 0.03em;
    font-family: var(--font-heading);
    vertical-align: middle;
}
