/* Staging data warning banner */
.staging-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50%;
    text-align: center;
    color: black;
    font-size: 12px;
    font-weight: bold;
    z-index: 999999;
    background-color: #ffc107;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 36px 36px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 6px var(--shadow-strong);
}

.staging-banner a {
    color: black;
    text-decoration: underline;
}

/* IndeVets Color Scheme - Semantic/Usage-Based */
:root {
  /* Brand Identity Colors - Keep these as-is for brand consistency */
  --brand-navy: #0e2440;
  --brand-navy-light: #1a3556;
  --brand-teal: #00a9b7;
  --brand-teal-light: #008a94;
  --brand-teal-accent: #99c9cd;
  --brand-gray: #f8f8f8;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: aliceblue;
  --bg-surface: rgba(242, 239, 233, 0.8);
  --bg-overlay-light: rgba(255, 255, 255, 0.8);
  --bg-overlay-medium: rgba(255, 255, 255, 0.9);
  --bg-overlay-heavy: rgba(255, 255, 255, 0.95);
  --bg-overlay-dark: rgba(0, 0, 0, 0.7);
  --bg-input: rgba(255, 255, 255, 0.1);
  --bg-input-focus: rgba(255, 255, 255, 0.15);
  --bg-spinner: rgba(255, 255, 255, 0.25);
  --bg-backdrop: rgba(255, 255, 255, 0.2);
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #555555;
  --text-muted: #6c757d;
  --text-disabled: #666666;
  --text-inverse: #ffffff;
  --text-placeholder: rgba(255, 255, 255, 0.6);
  
  /* Border Colors */
  --border-light: #ddd;
  --border-medium: #e1e5e9;
  --border-focus: var(--brand-teal);
  --border-brand-light: rgba(0, 169, 183, 0.2);
  --border-brand-medium: rgba(0, 169, 183, 0.3);
  --border-brand-strong: rgba(0, 169, 183, 0.4);
  
  /* Interactive Colors */
  --color-primary: #3498db;
  --color-primary-hover: #2980b9;
  --color-focus: #3b82f6;
  --color-focus-dark: #2676f6;
  --color-accent: #00BFFF;
  
  /* Status Colors */
  --status-success: #328a32;
  --status-success-bright: #008000;
  --status-warning: #e1c433;
  --status-danger: #a32121;
  --status-error: #ff6b6b;
  --status-error-bright: #ff0000;
  --status-debug: rgba(36, 139, 139, 0.7);
  --status-info: rgba(0, 128, 255, 0.7);
  --status-warning-bg: rgba(230, 126, 0, 0.7);
  --status-error-bg: rgba(255, 50, 0, 0.7);
  --status-dev-warning: #940000;
  
  /* Button Colors */
  --button-disabled: #cccccc;
  --button-secondary: #f0f0f0;
  --button-secondary-hover: #e1e1e1;
  
  /* Shadow Colors */
  --shadow-subtle: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.2);
  --shadow-heavy: rgba(0, 0, 0, 0.3);
  --shadow-brand: rgba(0, 169, 183, 0.15);
  --shadow-brand-strong: rgba(0, 169, 183, 0.3);
  --shadow-brand-heavy: rgba(0, 169, 183, 0.4);
  
  /* Focus & Selection Colors */
  --focus-bg-subtle: rgba(59, 130, 246, 0.1);
  --focus-bg-light: rgba(59, 130, 246, 0.15);
  --focus-bg-medium: rgba(59, 130, 246, 0.2);
  --focus-bg-strong: rgba(59, 130, 246, 0.25);
  --focus-bg-heavy: rgba(59, 130, 246, 0.3);
  --focus-bg-intense: rgba(59, 130, 246, 0.35);
  
  /* Surface Elevation Colors */
  --surface-raised: rgba(0, 169, 183, 0.05);
  --surface-hover: rgba(0, 0, 0, 0.1);
}

html, body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* Prevents scrollbars */
}

body {
  background-image: url('/assets/hex-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

hr {
  margin: 0 ;
}

h1, h2, h3, h4 {
  font-family: Tiempos Headline Semibold, Georgia, Times New Roman, Times, serif;
}

/* App container and map */
.app-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Checkbox and radio button group styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-group .tooltip-wrapper,
.radio-group .tooltip-wrapper {
  flex: 1;
  min-width: 0;
}

.checkbox-group .area-elements-checklist,
.radio-group .color-mode-radio,
.area-elements-radio {
  margin: 0;
  padding: 0;
}

/* Style for geographic overlays radio buttons */
.area-elements-radio .form-check {
  margin-right: 15px;
  margin-bottom: 4px;
}

.area-elements-radio .form-check-input {
  margin-right: 5px;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Main app container */
.app-container {
  display: flex;
  flex-direction: column;
}

.navbar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--brand-navy);
  height: 40px;
  background: var(--bg-overlay-light);
  position: absolute;
  top: 0;
  z-index: 3;
  justify-content: center;
}

.navbar-title {
  color: var(--text-inverse);
  margin: 0;
}

.controls-container {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--brand-gray);
}

.dropdown-container {
  width: 300px;
  margin-right: 20px;
}

.dropdown {
  border-radius: 4px;
  border: 1px solid var(--border-light);
  margin-bottom: 2px;
  font-size: 14px;
}

/* Buttons */
.action-button, .action-button-small {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 1px !important;
  cursor: pointer;
  transition: background-color 0.2s;
}
.action-button:hover {
  background-color: var(--color-primary-hover);
}
.action-button:disabled {
  background-color: var(--button-disabled);
  color: var(--text-disabled);
  cursor: not-allowed;
  opacity: 0.6;
}
.action-button:disabled:hover {
  background-color: var(--button-disabled);
}
.action-button.danger {
  background-color: var(--status-danger);
}
.action-button.success {
  background-color: var(--status-success);
}
.action-button.warning {
  background-color: var(--status-warning);
}
.action-button-small {
  padding: 4px 8px;
  font-size: 12px;
}

/* Map graph container (direct parent of the graph) */
.map-graph-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* The actual graph element */
.map-graph {
  height: 100% !important;
  width: 100% !important;
}

/* Force graph SVG to take full height */
.js-plotly-plot, .plot-container, .svg-container {
  height: 100% !important;
  width: 100% !important;
}

.small-checkbox {
  margin-bottom: 0 !important;
  font-size: 14px !important;
}

/* Checklist container styles */
.checklist-container {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

/* Change from column to row layout */
.map-elements-checklist, .area-elements-checklist {
  display: inline-block;
}

/* Style the label/checkbox pairs */
.map-elements-checklist label, .area-elements-checklist label {
  display: flex;
  align-items: center;
  color: var(--brand-navy);
  font-weight: 500;
  white-space: nowrap; /* Prevent labels from breaking */
}

.map-elements-checklist input[type="checkbox"], .area-elements-checklist input[type="checkbox"] {
  margin-right: 6px;
}

.map-elements-checklist label:nth-child(1)::before {
  content: "🔵";
  margin-right: -20px;
  font-size: 20px;
}

.map-elements-checklist label:nth-child(2)::before {
  content: "🟢";
  margin-right: -20px;
  font-size: 20px;
}

.map-elements-checklist label:nth-child(3)::before {
  content: "🔴";
  margin-right: -20px;
  font-size: 20px;
}

.map-elements-checklist label:nth-child(4)::before {
  content: "🟣";
  margin-right: -20px;
  font-size: 20px;
}

.color-mode-radio label input, .area-elements-radio label input {
  margin-right: 5px;
}

/* loading spinner styles */
.loading-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dash-spinner-container{
  background-color: var(--bg-spinner) !important;
}

/* Create a full-page overlay for the loading spinner */
#loading-spinner ._dash-loading-callback-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 1000 !important;
  background-color: var(--bg-backdrop) !important;
}

/* Style the Dash loading spinner */
._dash-loading {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1001 !important;
  width: 50px !important;
  height: 50px !important;
  padding: 30px !important;
}

.dash-spinner {
  transform: scale(0.5) !important; /* Adjust 0.8 to your desired smaller size (e.g., 0.7, 0.9) */
  transform-origin: center !important; /* Ensures the scaling is centered */
}

/* Electric blue coloring for the spinner */
._dash-loading .spinner {
  border-color: var(--color-accent) !important;
}

._dash-loading svg {
  fill: var(--color-accent) !important;
  stroke: var(--color-accent) !important;
}

._dash-loading svg circle,
._dash-loading svg path,
._dash-loading svg rect {
  fill: var(--color-accent) !important;
  stroke: var(--color-accent) !important;
}

/* The actual spinner */
._dash-loading-callback {
  z-index: 1000 !important;
}

/* Make sure the spinner is visible and centered */
._dash-loading {
  margin: auto;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1001 !important;
}

/* Custom hexagon spinner animation */
@keyframes hexagon-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hexagon-spinner {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 15px auto;
}

.hexagon-spinner:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexagon-rotate 1.5s linear infinite;
}

.hexagon-spinner:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: hexagon-rotate 2s linear infinite reverse;
}

/* Add to your CSS file */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

/* Modal content */
.modal-content {
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px var(--shadow-strong);
}

.modal-backdrop {
  --bs-backdrop-bg: var(--bg-primary) !important;
  --bs-backdrop-opacity: 0.2 !important;
}

.modal-body {
  overflow-y: auto;
  max-height: 80vh;
  padding: 0px;
}

.popup-modal {
  --bs-modal-width: calc(100vw - 40px);
}

@media (min-width: 1200px) {
  .modal-lg {
      --bs-modal-width: calc(100vw - 40px);
  }
  .modal-xl {
      --bs-modal-width: calc(100vw - 40px);
  }
}

/* Floating panel */
.floating-control-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 300px;
  background-color: var(--bg-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-strong);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-body {
  padding: 15px 15px 25px 15px;
  flex: 1;
  overflow-y: auto;
}

/* Panel header and title */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px 6px 12px;
  background-color: var(--brand-navy);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.panel-title-text {
  color: var(--text-inverse);
  margin: 0;
  font-size: 1.1rem;
  flex-grow: 1;
  padding: 3px 0;
}

.panel-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.panel-title-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.panel-buttons-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.panel-close-button {
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.panel-close-button:hover {
  color: var(--status-error);
}

.zoom-button {
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.zoom-button:hover {
  color: var(--brand-teal);
}

/* Control items */
.panel-control-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.control-label {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Full width utility */
.full-width {
  width: 100%;
}

/* Floating menu button that appears when panel is collapsed */
.floating-menu-button {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: var(--brand-navy);
  color: white;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 2px 10px var(--shadow-heavy);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.floating-menu-button:hover {
  background-color: var(--brand-teal);
  transform: scale(1.05);
}

.panel-footer {
  padding: 10px 15px;
  border-top: 1px solid var(--shadow-subtle);
  margin-top: auto;
  background-color: var(--bg-overlay-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  color: var(--brand-navy);
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.logout-link {
  font-size: 12px;
}

.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/assets/hex-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-container {
    background-color: var(--brand-navy);
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow-heavy), 0 0 20px var(--border-brand-light);
    border: 1px solid var(--border-brand-medium);
    width: 400px;
    max-width: 90%;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-container h2 {
    color: var(--text-inverse);
    margin-bottom: 30px;
    text-shadow: 0 2px 4px var(--shadow-heavy);
}

.login-container .form-control,
.login-container .form-control:focus {
    background-color: var(--bg-input);
    border: 1px solid var(--border-brand-strong);
    color: var(--text-inverse);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-container .form-control:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 2px var(--border-brand-light);
    background-color: var(--bg-input-focus);
}

.login-container .form-control::placeholder {
    color: var(--text-placeholder);
}

.login-container .btn-primary {
    background: linear-gradient(45deg, var(--brand-teal), var(--brand-teal-light));
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px var(--shadow-brand-strong);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-container .btn-primary:hover {
    background: linear-gradient(45deg, var(--brand-teal-light), var(--brand-teal));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-brand-heavy);
}

/* Date range buttons */
.date-range-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.date-range-button {
  flex: 1;
  min-width: 50px;
  padding: 6px 0;
  font-size: 12px;
  background-color: var(--button-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.date-range-button:hover {
  background-color: var(--button-secondary-hover);
}

.date-range-button.active {
  background-color: var(--brand-teal);
  color: white;
  border-color: var(--brand-teal);
}

/* Quarters and 120 Days Buttons */
.timescale-group-container {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    gap: 4px; /* Add space between buttons */
    margin-bottom: 0px; /* Consistent margin with other elements */
}

.timescale-group-container .date-range-button {
    flex: 1; /* Make all buttons take up equal space */
    margin-right: 0; /* Override the default right margin */
}

/* Quarter range styling - matches date range buttons */
.quarter-range-container {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
}

.custom-calendar-container {
  cursor: pointer !important;
}

.custom-calendar-container .DateRangePicker {
  width: 100%;
}

.custom-calendar-container .DateRangePicker__picker {
  position: static !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  margin-top: 10px;
  display: block !important;
  visibility: visible !important;
}

.DateRangePicker_picker__portal {
  z-index: 100;
}

.custom-calendar-container .DateRangePicker__tether-target {
  position: static !important;
}

.custom-calendar-container .DateInput {
  width: 42%;
}

.custom-calendar-container .DateInput_input {
  font-size: 12px;
  padding: 2px 8px;
}

.custom-calendar-container .DateInput__input {
  font-size: 10px;
  padding: 2px 4px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  height: 22px;
  width: 100%;
}

.custom-calendar-container .DateRangePickerInput_arrow_svg {
  height: 19px;
  width: 19px;
}

.custom-calendar-container .CalendarMonth {
  font-size: 11px;
  padding: 5px;
}

.custom-calendar-container .CalendarDay {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* Container for tables */
.tables-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px); /* Full height minus some margin */
  max-height: 100vh; /* Constrain maximum height */
}

/* Container for graphs */
.graphs-container {
  z-index: 2;
}

/* Style for stats tables */
.stat-table {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.stat-table h3 {
    margin-top: 0;
    color: var(--brand-navy);
    font-size: 16px;
}

/* Hide containers by default */
.graphs-container, .tables-container {
    display: none;
    position: absolute;
    left: 350px; /* Position to the right of the control panel */
    right: 20px;
    background-color: var(--bg-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-strong);
    z-index: 10;
    pointer-events: auto;
    font-size: 12px;
}

/* When active, show the containers with proper positioning */
.graphs-container.active {
    display: block;
    top: 20px;
    bottom: 20px;
    overflow-y: auto;
}

.tables-container.active {
    display: flex;
    top: 20px;
    bottom: 20px;
}

/* Container header with title and close button */
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--shadow-subtle);
}

.container-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.5em;
}

/* Close button for containers */
.container-close-button {
    background: transparent;
    color: var(--brand-navy);
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-close-button:hover {
    background-color: var(--surface-hover);
}

/* Status panel styling */
.status-panel {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background-color: var(--bg-overlay-dark);
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    z-index: 99999999;
    font-size: 13px;
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 4px var(--shadow-heavy);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Add variants for different status types */
.status-panel.debug {
  background-color: var(--status-debug);
}
.status-panel.info {
    background-color: var(--status-info);
}
.status-panel.warning {
  background-color: var(--status-warning-bg);
}
.status-panel.error {
  background-color: var(--status-error-bg);
}
/* move debug menu up */
.dash-debug-menu__outer {
  bottom: 40px !important;
}

/* Legacy classes - now consolidated into .info-container, .info-grid, etc. */

/* Table containers in modals - now handled by .table-container-modal class */

/* Hide the Toggle Columns button */
.show-hide {
    display: none;
}

/* Developer warning styles */
.developer-warning {
    font-size: 8px;
    color: white;
    background-color: var(--status-dev-warning);
    padding: 2px 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
}

/* Custom tooltip styles */
.custom-tooltip {
    background-color: var(--brand-navy) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    max-width: 300px !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 8px var(--shadow-strong) !important;
    z-index: 1000 !important;
}

.custom-tooltip .tooltip-inner {
    background-color: var(--brand-navy) !important;
}

.custom-tooltip .tooltip-arrow {
    border-top-color: var(--brand-navy) !important;
    border-bottom-color: var(--brand-navy) !important;
    border-left-color: var(--brand-navy) !important;
    border-right-color: var(--brand-navy) !important;
}

/* Tooltip wrapper styles */
.tooltip-wrapper {
    position: relative;
}

/* Global DataTable cell highlighting - change from red to blue */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet .cell.focused,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet .cell:focus {
    background-color: var(--focus-bg-light) !important; /* Light blue */
    border: 1px solid var(--color-focus) !important; /* Blue border */
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet .cell.highlighted {
    background-color: var(--focus-bg-strong) !important; /* Slightly darker blue */
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet .cell:hover {
    background-color: var(--focus-bg-subtle) !important; /* Very light blue on hover */
}

/* Selected cell styling */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .dash-spreadsheet .cell.selected {
    background-color: var(--focus-bg-medium) !important; /* Blue for selected */
    border: 2px solid var(--color-focus) !important;
}

/* Alternative selectors for different versions of Dash */
.dash-cell.focused,
.dash-cell:focus {
    background-color: var(--focus-bg-intense) !important;
    border: 1px solid var(--color-focus-dark) !important;
}

.dash-cell.highlighted {
    background-color: var(--focus-bg-heavy) !important;
}

.dash-cell:hover {
    background-color: var(--focus-bg-strong) !important;
}

.dash-cell.selected {
    background-color: var(--focus-bg-medium) !important;
    border: 2px solid var(--color-focus) !important;
}

/* Expandable card components */
.expandable-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px var(--shadow-subtle);
    transition: box-shadow 0.2s ease;
}

/* DataTable Styling - Consolidated from all table components */
.dash-table-container {
  background-color: var(--bg-primary);
  box-shadow: 0 1px 3px var(--shadow-subtle);
  border-radius: 8px;
  overflow-y: hidden;
  overflow-x: auto !important;
}

/* Standard DataTable Styles */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.dash-table-container .dash-cell,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner ._dash-cell {
  text-align: left !important;
  padding: 4px !important;
  white-space: normal !important;
  height: auto !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  vertical-align: top !important;
}

.dash-table-container .dash-header,
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner ._dash-header {
  background-color: var(--bg-secondary) !important;
  font-weight: bold !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

/* Success/Error indicators */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner ._dash-cell[data-dash-column*="Meets Min"][data-dash-row*="✓"] {
  background-color: var(--status-success) !important;
  opacity: 0.2 !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner ._dash-cell[data-dash-column*="Meets Min"][data-dash-row*="✗"] {
  background-color: var(--status-error) !important;
  opacity: 0.2 !important;
}

/* Info containers - following panel style */
.info-container {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  min-height: 0; /* Important for flex children to be scrollable */
}

/* Ensure DataTable respects container height */
.info-container .dash-table-container {
  height: 100%;
}

.info-container .dash-table-container .dash-spreadsheet-container {
  max-height: 100%;
  overflow-y: auto;
}

/* Force DataTable to respect height constraints */
.info-container .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.info-container .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
  max-height: calc(100vh - 160px);
}

/* Alternative approach - set fixed height on the entire DataTable */
.info-container .Select-control,
.info-container .dash-table-container {
  max-height: calc(100vh - 122px);
}

/* Special handling for reports with download buttons */
.info-container:has(.download-button) .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
  max-height: calc(100vh - 220px);
}

.info-container:has(.download-button) .dash-table-container {
  max-height: calc(100vh - 180px);
}

/* Fallback for browsers that don't support :has() - target specific table IDs */
.info-container #zipcode-table {
  max-height: calc(100vh - 180px);
}

.info-container #zip-cluster-table {
  max-height: calc(100vh - 180px);
}

.info-container .download-button {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.info-container h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.info-container h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 12px;
}

.info-item {
  padding: 8px;
  background-color: var(--bg-primary);
  border-radius: 4px;
  box-shadow: 0 1px 3px var(--shadow-subtle);
  border: 1px solid var(--border-light);
}

.info-label {
  font-weight: bold;
  color: var(--text-secondary);
}

.info-value {
  margin-left: 4px;
  color: var(--text-primary);
}

.info-value.status-met {
  color: var(--status-success-bright);
  font-weight: bold;
}

.info-value.status-unmet {
  color: var(--status-error-bright);
  font-weight: bold;
}

/* Download buttons - consistent with action buttons */
.download-button {
  margin-bottom: 10px !important;
}

/* Popup container improvements */
.popup-container {
  max-width: 100%;
}

/* Text area styling for forms */
.form-textarea {
  width: 100%;
  resize: vertical;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--bg-primary);
}

.form-textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 2px var(--border-brand-light);
}

/* Form styling improvements */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Checkbox and radio styling */
.form-checkbox,
.form-radio {
  margin-right: 8px;
}

.form-checkbox-group,
.form-radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Status indicators for different content */
.status-indicator {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-indicator.success {
  background-color: var(--status-success);
  color: var(--text-inverse);
}

.status-indicator.error {
  background-color: var(--status-error);
  color: var(--text-inverse);
}

.status-indicator.warning {
  background-color: var(--status-warning);
  color: var(--text-primary);
}

.status-indicator.info {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

.expandable-card:hover {
    box-shadow: 0 2px 6px var(--shadow-medium);
}

.expandable-card.expanded {
    border-color: var(--brand-teal-accent);
    box-shadow: 0 2px 8px var(--shadow-brand);
}

.card-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.expandable-card.expanded .card-header {
    background-color: var(--surface-raised);
}

.card-title {
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0;
    font-size: 14px;
}

.card-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 12px;
}

.expandable-card.expanded .card-chevron {
    transform: rotate(180deg);
    color: var(--brand-teal);
}

.card-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    padding: 0 15px;
}

.modal-body .card-content {
  overflow: visible;
  font-size: 13px;
}

.info-label-divider {
  padding: 0 6px 0 7px;
  color: #cccccc;
}

.expandable-card.expanded .card-content {
    max-height: 1000px; /* Large enough to accommodate content */
    padding: 15px;
}

.expandable-card.expanded .card-content {
  max-height: none; /* Allow content to expand as needed */
}

/* Update existing panel control item for card content */
.card-content .panel-control-item {
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.card-content .panel-control-item:last-child {
    margin-bottom: 0;
}

#find-vet-dropdown .ReactVirtualized__Grid {
  height: 105px !important;
}

/* Modal header styling to match panel headers */
.modal-header.panel-header .modal-title {
    font-family: Tiempos Headline Semibold, Georgia, Times New Roman, Times, serif;
}

/* Modal close button styling - make it white like panel close button */
.modal-header.panel-header .btn-close {
    color: var(--text-inverse) !important;
    --bs-btn-close-color: var(--text-inverse);
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    border: none !important;
    opacity: 1 !important;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.modal-header.panel-header .btn-close:hover {
    color: var(--status-error) !important;
    opacity: 1 !important;
}

/* Report container headers - style like panel headers */
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px 6px 12px;
    background-color: var(--brand-navy);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.container-title {
    color: var(--text-inverse);
    margin: 0;
    font-size: 1.1rem;
    font-family: Tiempos Headline Semibold, Georgia, Times New Roman, Times, serif;
    flex-grow: 1;
    padding: 3px 0;
}

.container-close-button {
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.container-close-button:hover {
    color: var(--status-error);
}

/* Simulation modal specific styling - don't affect reports */
#simulation-modal .modal-body {
    padding: 15px;
}

#simulation-modal .expandable-card {
    margin-bottom: 15px;
}

#simulation-modal .expandable-card:last-child {
    margin-bottom: 0;
}

#simulation-modal .card-content {
    padding: 15px;
}

#simulation-modal .card-header {
    padding: 12px 15px;
}

/* Force horizontal scrolling for all modal and popup tables */
.modal .dash-table-container,
.modal .dash-spreadsheet-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Specifically target vet and hospital modals */
#vet-shift-modal .dash-table-container,
#hospital-shift-modal .dash-table-container,
#simulation-modal .dash-table-container {
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100%;
}

/* Ensure the inner spreadsheet container also scrolls */
.modal .dash-spreadsheet-container .dash-spreadsheet-inner {
    overflow-x: auto !important;
    min-width: 100%;
}

/* Modal form styling - moved from inline styles */
.form-label {
    margin-bottom: 0px;
}

.form-option-container:not(:last-child) {
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-brand-light);
}

.form-dropdown {
    margin-bottom: 2px;
}

.form-button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.modal-section-row {
    margin-bottom: 20px;
}

.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.table-header-text {
    margin: 0;
    flex: 1;
}

/* NCA input styling */
.nca-input {
  font-size: 12px !important;
  padding: 3px 4px !important;
  margin-bottom: 2px !important;
  margin-right: 2px !important;
}

.nca-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.nca-address-input {
  flex: 1;
  min-width: 0;
}

.nca-radius-input {
  width: 40px;
  flex-shrink: 0;
}

.nca-button {
  font-size: 14px !important;
  padding: 4px 8px !important;
  min-width: 30px !important;
  flex-shrink: 0;
}

.nca-status {
  font-size: 12px;
  margin-top: 2px;
  color: rgb(21, 87, 36);
  padding-left: 4px;
}

.nca-radius-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.form-radio-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-radio-label {
  margin-right: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Ensure tables remain interactive and selectable */
.dash-table-container,
.dash-table-container * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  pointer-events: auto !important;
}

/* In modals, make sure tables sit above incidental overlays */
.modal .dash-table-container,
.modal .dash-spreadsheet-container,
.modal .dash-spreadsheet-container .dash-spreadsheet-inner {
  position: relative;
  z-index: 2;
}

/* Geo Hiring Targets Report */ 
.geo-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

/* Remove top padding from info-container when it contains geo-grid-table to fix sticky header gap */
.info-container:has(.geo-grid-table) {
  padding-top: 0;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
}

.geo-grid-table {
  width: 100%;
  border-collapse: separate; /* Required for sticky headers */
  border-spacing: 0;
}

.geo-grid-header {
  padding: 4px;
  text-align: left;
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.geo-grid-header-right {
  padding: 4px;
  text-align: right;
  background-color: #f8f9fa;
  font-weight: 600;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.geo-grid-cell {
  padding: 4px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  font-size: 14px;
}

.geo-grid-cell a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.geo-grid-cell a:hover {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}

.geo-grid-cell-right {
  padding: 4px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  font-size: 14px;
}

.geo-grid-cell-bar {
  padding: 0px;
  width: 100%;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

.geo-grid-row-white {
  background-color: white;
}

.geo-grid-row-gray {
  background-color: #f8f9fa;
}

.geo-grid-bar-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: 30px;
}

.geo-grid-box {
  flex: 0 0 auto;
  height: 30px;
  outline: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  cursor: pointer;
  position: relative; /* For tooltip positioning */
  text-decoration: none; /* Remove underline for A elements */
  color: inherit; /* Inherit text color */
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.geo-grid-box:hover {
  outline: 2px solid #0066cc;
  outline-offset: -1px;
  text-decoration: none; /* Ensure no underline on hover */
}

.geo-grid-box.zipcode-highlighted {
  outline: 4px solid #0066cc !important;
  outline-offset: -2px;
  box-shadow: 0 0 10px rgba(0, 6, 168, 0.5);
  z-index: 1001;
  position: relative;
  animation: zipcode-pulse 1s ease-in-out infinite;
}

@keyframes zipcode-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 6, 168, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 6, 168, 0.8);
  }
}

.geo-grid-tooltip {
  visibility: hidden;
  max-width: 200px;
  min-width: 140px;
  background-color: #fff;
  color: #333;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none; /* Don't interfere with mouse */
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 1px solid #dee2e6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tooltip arrow (pointing up) */
.geo-grid-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%; /* Arrow at top of tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

/* Detail page styles */
.detail-page-container {
  padding: 12px;
}

.detail-page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.detail-page-back-btn {
  background-color: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  margin-right: 8px;
  padding: 0;
}

.detail-page-title {
  margin-bottom: 0;
  color: #333;
  display: inline-block;
  margin: 0;
}

.detail-page-section {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-page-section-heading {
  margin-bottom: 8px;
  color: #555;
}

.detail-page-section-heading-spaced {
  margin-bottom: 8px;
  color: #555;
  margin-top: 30px;
}


.detail-page-link {
  color: blue;
}

.detail-page-error-message {
  display: block;
  padding: 20px;
  color: red;
}

.detail-page-error-container {
  display: block;
  height: 100%;
  width: 100%;
}

.detail-page-hidden {
  display: none;
}

.detail-page-full-container {
  display: block;
  height: 100%;
  width: 100%;
}

.detail-page-graph-container {
  height: 500px;
}

.detail-page-button-spacing {
  margin-bottom: 15px;
}

.detail-page-loading-content {
  margin-top: 15px;
}

.detail-page-loading-message {
  padding: 40px;
  text-align: center;
}

/* Detail page key-value tables */
.detail-page-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background-color: #fff;
}

.detail-page-table-key {
  padding: 4px 6px;
  font-weight: 500;
  border-bottom: 1px solid #e9ecef;
  width: 40%;
}

.detail-page-table-value {
  padding: 4px 6px;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

.detail-page-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive design for detail pages */
@media (min-width: 600px) {
  .detail-page-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .detail-page-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DataTable Assignment Type and Status Styling Classes */
/* CSS Custom Properties for DataTable styling */
:root {
  /* Assignment Type background colors */
  --dt-assignment-approved-bg: rgba(50, 138, 50, 0.15);
  --dt-assignment-matched-bg: rgba(50, 138, 50, 0.25);
  --dt-assignment-available-bg: rgba(52, 152, 219, 0.25);
  --dt-assignment-none-bg: rgba(220, 220, 220, 0.15);
  
  /* Daily Status stripe patterns */
  --dt-status-unavailable-bg: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(108, 117, 125, 0.3) 12px);
  --dt-status-pto-bg: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(230, 126, 0, 0.3) 12px);
  --dt-status-loa-bg: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(163, 63, 33, 0.4) 12px);
  --dt-status-holiday-bg: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255, 255, 255, 0.4) 8px, rgba(170, 30, 30, 0.4) 12px, rgba(50, 140, 210, 0.4) 16px);
  --dt-status-blackout-bg: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(108, 117, 125, 0.4) 12px);
  --dt-status-not-employed-bg: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(64, 64, 64, 0.4) 12px);
  
  /* Shift Type overlays */
  --dt-shift-cancelled-bg: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255, 193, 7, 0.4) 12px, rgba(255, 193, 7, 0.4) 12px);
  --dt-assignment-reserved-bg: repeating-linear-gradient(90deg, rgba(52, 152, 219, 0.25) 0px, rgba(52, 152, 219, 0.25) 6px, rgba(50, 138, 50, 0.25) 6px, rgba(50, 138, 50, 0.25) 12px);
  --dt-shift-prediction-bg: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(138, 43, 226, 0.4) 12px, rgba(138, 43, 226, 0.4) 12px);
}

