/* =================================================================== */
/* =================== MAIN CONTENT WRAPPER ========================== */
/* =================================================================== */

/* MAIN CONTENT SHIFT */
.main-wrapper {
    /* margin-left: 60px; */
    margin-top: 40px;
    margin-left: 190px; 
    transition: margin-left 0.3s ease;
    padding: 25px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Ensure the inner container doesn't fight the padding */
.container-fluid {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}


/* =================================================================== */
/* ==================== SIDE BAR CONTENT ============================= */
/* =================================================================== */

/* ================= 1. SIDEBAR CONTAINER (Blue Box) ================= */
/* Controls the main blue bar width and position */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #1A4683;
    color: #fff;
    transition: width 0.3s ease;
    z-index: 1050;
    overflow: hidden;

    /* WIDTH ADJUSTMENT: 190px is approx 70% of standard 260px */
    width: 190px; 
    font-size: 12px;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed ~ .main-wrapper {
    margin-left: 60px; /* Matches collapsed sidebar width */
}

.sidebar:not(.collapsed) ~ .main-wrapper {
    margin-left: 190px; /* Matches sidebar width */
}

/* ================= 2. TOGGLE & CONTENT WRAPPER ================= */
/* The hamburger menu and the container for the inner items */
.sidebar-toggle {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #14386a;
    font-size: 1rem;
    padding: 5px;
}

.sidebar-content {
    padding: 10px; /* Reduced outer padding */
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

/* ================= 3. SECTION HEADERS ================= */
/* The titles "Project Overview" and "Displacement Overview" */
.section-header {
    font-size: 10px; /* Tiny uppercase text */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    margin-top: 10px;
    opacity: 0.7;
    font-weight: 600;
    padding-left: 5px;
}

/* ================= 4. BOX INFO (The White Cards) ================= */
/* Controls the size, padding, and spacing of the data cards */
.sidebar-section {
    background-color: white;
    color: #333;
    
    /* COMPACT SIZING */
    padding: 8px 10px;       /* Tight padding inside the box */
    margin: 0 0 6px 0;       /* Tight margin between boxes */
    
    display: flex;
    align-items: center;
    gap: 8px;                /* Closer gap between Icon and Text */
    border-radius: 4px;      /* Smaller rounded corners */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Specific Colors for Status Cards */
.sidebar-section.status-safe { background-color: #5cb85c; color: white; }
.sidebar-section.status-warning { background-color: #f0ad4e; color: white; }
.sidebar-section.status-critical { background-color: #d9534f; color: white; }

/* ================= 5. FONT SIZE INSIDE BOXES ================= */
/* specific typography for the data inside the cards */

/* The Label (e.g., "Site Location") */
.sidebar-section small {
    display: block;
    font-size: 9px;  /* Very small label */
    line-height: 1.2;
    opacity: 0.8;
    margin-bottom: 1px;
    text-transform: uppercase;
}

/* The Value (e.g., "Tujuh Bukit Site") */
.sidebar-section strong {
    font-size: 11px; /* Compact value text */
    font-weight: 700;
    line-height: 1.1;
    display: block;
}

/* Helper to prevent text overflow issues */
.sidebar-section div {
    line-height: 1.1;
    overflow: hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis;
}

/* ================= 6. ICONS ================= */
/* forcing icons to be small to fit the compact design */

/* Wrapper for the icon */
.sidebar-section .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed fixed width/height 40px to let it shrink */
}

/* The SVG Image itself */
.sidebar-section .icon svg {
    width: 18px !important;   /* Force resize */
    height: 18px !important;
}

/* Optional: Slight tint for project overview icons if you want the grey box back */
.sidebar-section.project-overview .icon {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 4px;
    width: 26px; /* Small square container */
    height: 26px;
}

/* =================================================================== */
/* ====================== NAVBAR CONTENT ============================= */
/* =================================================================== */

/* ================= 1. TOP NAVBAR CONTAINER ================= */
/* Main positioning and layout for the black header */
.top-navbar {
    position: fixed;
    top: 0;
    right: 0;
    height: 50px;           /* Matches Sidebar Toggle height */
    
    background: #000000;    /* Black background */
    color: #fff;            /* White text */
    
    z-index: 1040;          /* Lower than sidebar (1050) so sidebar shadow sits on top */
    
    display: flex;
    align-items: center;
    padding: 0 15px;
    
    transition: all 0.3s ease; /* Smooth slide animation */

    /* KEY POSITIONING: Matches the Sidebar Width */
    left: 190px; 
    width: calc(100% - 190px);
    
    /* Optional: Border if you want separation */
    /* border-bottom: 1px solid #333; */
}

/* ================= 2. NAVBAR TEXT & CONTENT ================= */
/* Styling for "Welcome, User" and other text */
.navbar-title {
    font-weight: 600;
    font-size: 16px; /* Reduced from 20px to match compact look */
}

.navbar-user {
    font-size: 13px; /* Slightly smaller */
    color: #ccc;     /* Lighter grey for better contrast on black */
}

/* ================= 3. COLLAPSED STATE ================= */
/* How the navbar behaves when sidebar is small (60px) */
.sidebar.collapsed ~ .top-navbar {
    left: 60px;
    width: calc(100% - 60px);
}

/* Ensure the main page content also slides over */
.sidebar.collapsed ~ .main-wrapper {
    margin-left: 60px;
}


/* =================================================================== */
/* ================== FILTER AND TITLE CONTENT ======================= */
/* =================================================================== */

/* ================= 1. FILTER CONTAINER WRAPPER ================= */
/* The main white box area holding the title and filters */
.filter-container-box {
    padding: 6px 15px 10px 15px;
    margin-bottom: 10px;
    margin-left: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #ffffff;

    display: flex;
    flex-direction: column;
}

.filter-divider {
    margin: 10px 0 16px 0;
    border-color: #dee2e6;
    opacity: 0.8;
}

/* NEW RULE: REMOVE INNER MARGINS */
/* This forces the Bootstrap row inside to stop pushing content down */
.filter-container-box .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100%; /* Ensures the row still fills the width */
}

/* ================= 2. TITLE SECTION (Left Side) ================= */
/* Wrapper for the "Globe Icon + Text" */
.filter-title-left {
    display: flex;
    align-items: center;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
    transition: font-size 0.25s ease;
    gap: 15px; /* Adds space between Icon and Text block */
}

/* The Globe Icon */
.filter-title-left svg {
    width: 55px !important;  /* Force resize from 75px to 45px */
    height: 55px !important; 
}

/* The "GEOTECH MONITORING" text */
.filter-title-left .title {
    font-size: 25px; 
    font-weight: 700;
    line-height: 1.1;
    color: #333;
    letter-spacing: 0.5px;
}

/* The Subtitle text */
.filter-title-left .subtitle {
    font-size: 13px; 
    color: #6c757d;
    font-weight: 500;
}

/* ================= 3. FILTER CARDS (Blue Boxes) ================= */
/* The blue background cards holding the dropdowns */
.filter-card-color {
    background-color: #1A4683; /* Sidebar Blue */
    color: #fff;
    border: none;
    border-radius: 6px;
    height: 100%;
}

.filter-card-color .card-body {
    padding: 10px 14px 12px 14px;
}

/* Labels ("FILTER: POINT ID") */
.filter-card-color label {
    font-size: 9px; 
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
}

/* Clean up Bootstrap grid spacing inside cards */
.filter-card-color .row { margin-top: 0; }
.filter-card-color .col { padding-left: 0.25rem; padding-right: 0.25rem; }

/* ================= 4. FORM INPUTS & DROPDOWNS ================= */
/* Standard Inputs (The white boxes) */
.filter-card-color .form-control {
    font-size: 11px;
    padding: 4px 8px;
    height: 28px;
    border-radius: 3px;
}

/* Specific override for Text Search Inputs if needed */
.filter-card-color input.form-control {
    /* height: 26px; */    /* Optional: can go smaller if 30px is too big */
    width: 100%;           /* Ensure it fills the container */
    max-width: 360px;
}

/* Dropdown specific styling */
.dropdown-toggle::after {
    float: right;
    margin-top: 6px; /* Centers arrow vertically in 30px input */
}

.dropdown-menu {
    max-height: 260px;
    font-size: 11px; /* Ensure dropdown items are also compact */
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent scrollbar from pushing content outside card edge */
    padding-right: 2px;
}

.filter-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

/* ================= 5. CHECKBOX LIST ITEMS ================= */
/* Styling for items inside the dropdown list */
.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.filter-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.filter-item label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    color: #333;
    /* Override the parent .filter-card-color label block/uppercase styles */
    display: inline;
    text-transform: none;
    opacity: 1;
    font-weight: 400;
}

.filter-item.select-all label {
    font-weight: 600;
}

/* Ensure checkbox labels inside filter-card-color dropdowns are not affected
   by the card-level label rule (9px, uppercase, display:block) */
.filter-card-color .filter-item label {
    display: inline;
    font-size: 13px;
    text-transform: none;
    opacity: 1;
    margin-bottom: 0;
    font-weight: 400;
}

.filter-card-color .filter-item.select-all label {
    font-weight: 600;
}

.filter-card-color .filter-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
}

/* ================= 6. BUTTONS & HEADER ================= */
/* The "APPLY" Button */
.apply-square {
    height: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    width: 100%;
    /* background: #000; (Usually handled by btn-dark class) */
}

/* Main App Header (Welcome User Bar) */
.app-header {
    background: #212529;
    color: #fff;
    padding: 10px 24px; /* Reduced padding */
    font-size: 20px;    /* Reduced from 30px */
    font-weight: 600;
}


/* =================================================================== */
/* ========================= MAP CONTENT ============================= */
/* =================================================================== */

/* Map */
#map {
  height: 400px;
  width: 100%;
  border-radius: 0 0 6px 6px;
}

/* Optional: Clean up the card wrapper to ensure no extra padding */
.card-body.p-0 {
    padding: 0 !important;
}



/* =================================================================== */
/* ================= CHART HEADER ADJUSTMENTS ================= */
/* =================================================================== */

/* Turn the existing header row into a white box */
.header-row-tight {
    background: #ffffff;        /* White background */
    border-radius: 8px;         /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* Soft shadow */
    
    padding: 15px 20px !important; /* Force padding inside the box */
    margin-bottom: 20px !important;   /* Remove bottom margin (handled by wrapper) */
    min-height: 80px;              /* Ensure consistent height */
}

/* Fix the Title Font Size inside this specific header */
.header-row-tight h3 {
    font-size: 20px;  
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;      
}

/* Resize the icon next to the title */
.header-row-tight svg {
    width: 28px;
    height: 28px;
}

/* Adjust the Filter Card inside this header to be compact */
.header-row-tight .filter-card-color {
    padding: 0;                /* Remove default card padding */
    background: #1A4683;       /* Ensure blue background */
    border-radius: 6px;
}

.header-row-tight .filter-card-color .card-body {
    padding: 8px 14px;         /* Very compact padding */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Force inputs to be small in this specific section */
.header-row-tight .form-control {
    height: 30px;
    font-size: 12px;
    padding: 4px 8px;
    width: auto;               /* Let inputs shrink */
}

/* Increase the "TIME PERIOD" label size */
.header-row-tight .filter-card-color span {
    font-size: 11px !important; /* Increased from 10px */
}


/* =================================================================== */
/* ======================= CHART SECTION ============================= */
/* =================================================================== */

/* ================= CHART CARDS (Grey Boxes) ================= */
.chart-card {
    /* 1. GREY BACKGROUND */
    background-color: #f3f4f6; /* Light grey */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures child elements don't break rounded corners */
    margin-bottom: 20px;
}

.chart-card .card-body {
    padding: 15px; /* Comfortable padding inside the grey box */
    display: flex;
    flex-direction: column;
    gap: 15px;     /* Adds space between Graph and Info Box */
}

/* ================= GRAPH CONTAINER ================= */
.plot-container {
    width: 100%;
    /* 2. DECREASED GRAPH SIZE */
    height: 300px; /* Reduced from 360px+ */
    min-height: 250px;
    
    /* 3. SPACING FOR TITLE */
    /* This adds a buffer at the top of the chart area */
    margin-top: 10px; 
    border-radius: 4px;
    background-color: #ffffff; /* Optional: Keep graph background white for contrast */
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 10px;
    margin-top: 0;

}

/* Info Box Styling (Bottom part) */
.info-box {
    background-color: #ffffff; /* White background for text readability */
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 12px;
    /* Adjust height to balance with the smaller graph */
    height: 180px; 
    display: flex;
    flex-direction: column;
}


#debugGeojson {
  margin-bottom: 0;
  line-height: 1.2;
}

/* Cards */
.card {
    border-radius: 8px;
}

.card small {
    color: #6c757d;
    font-size: 12px;
}

.kpi-card .card-body {
    min-height: 110px;
}



/* =================================================================== */
/* ======================= TABLE SECTION ============================= */
/* =================================================================== */

.debug-table-scroll {
  max-height: 420px;      /* adjust as needed */
  overflow-y: auto;
  overflow-x: auto;
  border: 2px solid #000;
  position: relative;
  border-radius: 0;
  padding: 0;

}

.debug-table-scroll table {
    margin: 0 !important;
    width: 100% !important;
    border-collapse: collapse; /* Ensures no gaps between cells */
}

.debug-table-scroll .table-bordered {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Optional: keep header visible while scrolling */
.debug-table-scroll thead th {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 2;
  background-color: #1A4683 !important;

  color: #ffffff !important;   /* White text */
  font-weight: 700 !important; /* Bold font weight */
  font-size: 15px;             /* Optional: Adjust size if needed */
  vertical-align: middle;
  border-top: none !important;
}

.debug-table-scroll tbody td {
    /* 1. DECREASE FONT SIZE */
    font-size: 12px !important; /* Adjust this value (e.g., 11px) if you want it smaller */
    font-weight: 400;
    
    /* 2. OPTIONAL: COMPACT SPACING */
    padding: 6px 8px !important; /* Reduces whitespace inside each cell */
    vertical-align: middle;      /* Keeps text centered vertically */
    
    /* Ensure text color is standard black/grey for readability */
    color: #000000; 
}

.debug-table-wrapper {
  border: 1px solid #dcdcdc;
  background: #f5f7fa !important;
  border-radius: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  /* background: #f8f9fa; */
  padding: 15px 20px;
  margin-bottom: 20px !important;
}

.debug-table-wrapper h6 {
    font-size: 22px !important; 
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.5;
}

.debug-table-wrapper .d-flex.align-items-center.gap-2 {
    gap: 12px !important; /* Adjust gap between icon and title */
}

/* Optional: tighten table inside the box */
.debug-table-wrapper table {
  margin-bottom: 0;
  border: 10px solid #000;
  border-radius: 0;
  overflow: hidden;
}

.debug-table-wrapper thead th {
  background-color: #f5f7fa;
  font-weight: 600;
  border-bottom: 2px solid #cfd4da;
  white-space: nowrap;
}


#updateAnomalyBtn, #confirmUpdateAnomaly, #updatePredictionBtn, #confirmUpdatePrediction  {
    background-color: #1A4683 !important;
    border-color: #1A4683 !important;
    color: #ffffff !important;
}

#updateAnomalyBtn:hover, #confirmUpdateAnomaly:hover, #updatePredictionBtn:hover, #confirmUpdatePrediction:hover {
    background-color: #133363 !important;
    border-color: #133363 !important;
}



.summary-title {
    font-size: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Keep colors consistent */
.status-safe {
    background: #5cb85c;
    color: white;
}

.status-warning {
    background: #f0ad4e;
    color: white;
}

.status-critical {
    background: #d9534f;
    color: white;
}



.btn-upload-custom {
    background-color: #2c2c54; /* Darker navy from mockup */
    color: white;
    width: 100%;
    font-weight: 600;
    border: none;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-upload-custom:hover {
    background-color: #1e1e3d;
    color: #ffffff;
}

.file-status-text {
    display: block;
    color: #6c757d;
    font-size: 11px;
    text-align: center;
    margin-top: 8px;
}





.info-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.info-content {
  overflow-y: auto;
  font-size: 13px;
  flex-grow: 1;
}

.mb-6 {
  margin-bottom: 3.5rem;
}


.subtitle {
  font-size: clamp(0.85rem, 0.9vw, 1.25rem);
  font-weight: 400;       /* normal (not bold) */
  color: #6c757d;         /* optional: Bootstrap muted gray */
  margin-top: 6px;
}



/* ================= TABLE CHECKBOX ================= */
.form-check-lg {
  width: 1.25em;
  height: 1.25em;
}


/* ================= TABLE REFRESH ================= */
.table-refresh {
  animation: tableFade 0.6s ease-in-out;
}

@keyframes tableFade {
  0%   { opacity: 0.3; }
  100% { opacity: 1; }
}

.row-updated {
  animation: rowFlash 1.2s ease-out;
}

@keyframes rowFlash {
  0%   { background-color: #fff3cd; }
  100% { background-color: transparent; }
}

.table-refresh-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blur the table content directly when overlay is active — works reliably in all browsers */
.debug-table-scroll:has(.table-refresh-overlay:not(.d-none)) > table {
  filter: blur(2px);
}

/* Map overlay while rendering */
.map-card-body { position: relative; }
.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-overlay-content {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
}

/* Chart render overlay */
.chart-render-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
.chart-render-content {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
}

/* AI summary overlay */
.ai-summary-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
.ai-summary-content {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    align-items: center;
}


.refresh-content-actual {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.refresh-content-prediction {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.refresh-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ================= BUTTON TABLE ================= */
/*
    BUTTONS OVERVIEW

    - `button#revertAnomalyBtn` (Revert Anomaly Data)
        HTML: <button id="revertAnomalyBtn" class="btn btn-warning action-btn fw-bold">...
        CSS target: rules under `button.btn-warning.action-btn` and general `.action-btn`.

    - `input#filterOutlierCheckbox` + label (Filter Outlier)
        HTML: <input type="checkbox" class="btn-check" id="filterOutlierCheckbox">\n
                    <label class="btn btn-warning action-btn fw-bold" for="filterOutlierCheckbox">...
        CSS target: `.btn-check + .btn-warning.action-btn` (label immediately following the hidden checkbox).

    Notes:
    - Both controls share the `.action-btn` base rules below.
    - The Filter Outlier selector is a `label` that is styled like a button using the `btn-check` pattern.
    - Watch out for large `margin-right` rules on the checked state (can push layout unexpectedly).
*/
.action-btn {
  width: 220px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 1 !important; /* Unitless - natural text height */
  padding: 11px 16px !important; /* Calculated for 40px total height */
  text-align: center;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  font-size: 0.875rem !important;
}

/* Regular btn-primary action-btn (Update Anomaly Data, Check All) - increased padding to match label */
button.btn-primary.action-btn {
  background-color: #1A4683 !important;
  border-color: #1A4683 !important;
  color: #fff !important;
  padding: 13px 16px !important;
}
button.btn-primary.action-btn:hover {
  background-color: #153a6e !important;
  border-color: #122f5a !important;
  color: #fff !important;
}

/* Regular btn-warning action-btn (Revert Anomaly Data) - increased padding to match label */
button.btn-warning.action-btn {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000 !important;
  padding: 13px 16px !important;
  margin-right: 8px !important;
}
button.btn-warning.action-btn:hover {
  background-color: #e0a800 !important;
  border-color: #d39e00 !important;
  color: #000 !important;
}

/* Filter Outlier btn-check (warning) — unchecked state */
.btn-check + .btn-warning.action-btn {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    width: 220px !important;
    height: 40px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-right: 4px !important;
}
/* Filter Outlier btn-check (warning) — checked/active state (darker) */
.btn-check:checked + .btn-warning.action-btn {
    background-color: #d39e00 !important;
    border-color: #c69500 !important;
    color: #000 !important;
    margin-right: 4px !important;
}
.btn-check + .btn-warning.action-btn:hover {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #000 !important;
    margin-right: 4px !important;
}
/* Checkbox indicator inside the Filter Outlier button */
.btn-check + .btn-warning.action-btn::before {
    content: "\2610 ";
    font-size: 1rem;
}
.btn-check:checked + .btn-warning.action-btn::before {
    content: "\2611 ";
    font-size: 1rem;
}