/* CSS Loading Debug - Updated 2024-08-31 */
/* .results::before {
  content: "CSS Loaded Successfully v20240831";
  display: block;
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
} */

:root {
  --forest: #1F3A2E;
  --forest-dark: #142B21;
  --stone: #EDEEE6;
  --stone-card: #FFFFFF;
  --ink: #1B1F1C;
  --wheat: #C9A227;
  --water: #2C6E8E;
  --soil: #8B5E34;
  --leaf: #4C7A5C;
  --danger: #B3432B;
  --border: #D9DAD0;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
}

.app {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--forest);
  color: #F1F3EE;
  padding: 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(241, 243, 238, 0.15);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--wheat);
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

.brand .subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #C4CFC7;
}

.panel-block h2 {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wheat);
  margin: 0 0 10px;
}

.panel-block .hint {
  font-size: 13px;
  line-height: 1.5;
  color: #C4CFC7;
  margin: 0 0 10px;
}

.panel-block label {
  display: block;
  font-size: 12.5px;
  color: #C4CFC7;
  margin: 10px 0 4px;
}

.panel-block input[type="date"],
.panel-block input[type="number"],
.panel-block select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(241, 243, 238, 0.25);
  background: rgba(241, 243, 238, 0.06);
  color: #F1F3EE;
  font-family: var(--font-mono);
  font-size: 13px;
}

.panel-block input[type="number"]::placeholder {
  color: rgba(241, 243, 238, 0.5);
}

.panel-block select option { color: #1B1F1C; }

/* Fertilizer and Irrigation Form Styles */
.fertilizer-application, .irrigation-event {
  background: rgba(241, 243, 238, 0.04);
  border: 1px solid rgba(241, 243, 238, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.fertilizer-application h4, .irrigation-event h4 {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--wheat);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.custom-nutrients {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
}

.add-btn, .remove-btn {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}

.add-btn {
  background: rgba(76, 122, 92, 0.15);
  border-color: rgba(76, 122, 92, 0.3);
  color: #8FD6A8;
}

.add-btn:hover {
  background: rgba(76, 122, 92, 0.25);
  border-color: rgba(76, 122, 92, 0.4);
}

.remove-btn {
  background: rgba(179, 67, 43, 0.12);
  border-color: rgba(179, 67, 43, 0.25);
  color: #F3B7A6;
  font-size: 11px;
}

.remove-btn:hover {
  background: rgba(179, 67, 43, 0.2);
  border-color: rgba(179, 67, 43, 0.35);
}

/* Irrigation Settings Sections */
#irrigation-settings {
  margin-top: 12px;
}

#automatic-settings, #fixed-settings, #manual-settings {
  background: rgba(44, 110, 142, 0.08);
  border: 1px solid rgba(44, 110, 142, 0.2);
  border-radius: 6px;
  padding: 14px;
  margin: 10px 0;
}

/* Form Layout Improvements */
.panel-block {
  position: relative;
}

.panel-block:not(:last-child) {
  border-bottom: 1px solid rgba(241, 243, 238, 0.1);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

/* Input Focus States */
.panel-block input:focus,
.panel-block select:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

/* Disabled State */
.panel-block input:disabled,
.panel-block select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Better spacing for nested sections */
.custom-nutrients label:first-child,
#automatic-settings label:first-child,
#fixed-settings label:first-child,
#manual-settings label:first-child {
  margin-top: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  padding: 6px 10px;
  border-radius: 999px;
}

.status-pending {
  background: rgba(201, 162, 39, 0.15);
  color: var(--wheat);
}

.status-ready {
  background: rgba(76, 122, 92, 0.25);
  color: #8FD6A8;
}

.run-button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 13px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--wheat);
  color: #23200F;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.run-button:hover:not(:disabled) { transform: translateY(-1px); }

.run-button:disabled {
  background: rgba(241, 243, 238, 0.15);
  color: rgba(241, 243, 238, 0.45);
  cursor: not-allowed;
}

.error-box, .warning-box {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 8px;
}

.error-box {
  background: rgba(179, 67, 43, 0.18);
  border: 1px solid rgba(179, 67, 43, 0.4);
  color: #F3B7A6;
}

.warning-box {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #EAD48A;
}

.loading-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #C4CFC7;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(241, 243, 238, 0.25);
  border-top-color: var(--wheat);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Main ---------- */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#map {
  height: 58vh;
  min-height: 360px;
  width: 100%;
}

.results { padding: 24px 28px 40px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.summary-card {
  background: var(--stone-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.summary-card .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7268;
  margin-bottom: 6px;
}

.summary-card .value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest-dark);
}

.summary-card .value .unit {
  font-size: 13px;
  color: #6B7268;
  margin-left: 3px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.irrigation-panel {
  background: var(--stone-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--water);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.irrigation-panel h2 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--forest-dark);
}

.irrigation-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3A3F3B;
  margin: 0 0 14px;
}

.irrigation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.irrigation-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7268;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.irrigation-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #F0F0EA;
  font-family: var(--font-mono);
}

.irrigation-table td.stage-critical {
  color: var(--soil);
  font-weight: 600;
  font-family: var(--font-body);
}

.irrigation-table-scroll {
  max-height: 260px;
  overflow-y: auto;
}

.irrigation-table td.scenario-name {
  font-family: var(--font-body);
  font-weight: 500;
}

.delta-positive { color: var(--leaf); font-weight: 600; }
.delta-negative { color: var(--danger); font-weight: 600; }
.delta-zero { color: #6B7268; }
.delta-pct { color: #6B7268; font-size: 12px; }

.chart-card {
  background: var(--stone-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  height: 260px;
}

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { 
    width: 100%; 
    height: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
  #map { height: 40vh; }
  
  .fertilizer-application, .irrigation-event {
    padding: 12px;
  }
  
  .panel-block {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sidebar {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .fertilizer-application, .irrigation-event {
    padding: 10px;
  }
  
  .add-btn, .remove-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}
/* ---------- Cultivar Parameters ---------- */

.parameter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.parameter-group {
  flex: 1;
}

.parameter-group label {
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
  color: #E4E6DD;
}

.parameter-group input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #4A5E54;
  border-radius: 4px;
  background: #2A4235;
  color: #F1F3EE;
}

.parameter-group input[type="number"]:focus {
  outline: none;
  border-color: var(--wheat);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

#cultivar-parameters h4 {
  margin: 16px 0 8px 0;
  color: var(--wheat);
  font-size: 15px;
  font-weight: 600;
}

#cultivar-parameters .hint {
  font-size: 13px;
  color: #B8BDB4;
  margin-bottom: 12px;
}

#cultivar_name:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ---------- Results Display Styles ---------- */

.results {
  padding: 24px 28px 40px;
  margin: 0;
  background: #EDEEE6;
  min-height: 300px;
}

.results[hidden] {
  display: none !important;
}

.results-content {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #D9DAD0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  max-width: 100%;
  margin: 0 auto;
}

.results-content h3 {
  color: #1F3A2E;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #C9A227;
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-content h4 {
  color: #142B21;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Summary Section Improvements */
.summary-section {
  margin-bottom: 32px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #F8F9FA;
  border-radius: 8px;
  border-left: 4px solid #C9A227;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 80px;
  justify-content: space-between;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.summary-item .label {
  font-size: 13px;
  color: #6B7268;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  line-height: 1.2;
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
}

.summary-item .value {
  font-size: 22px;
  color: #1B1F1C;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.2;
  display: block;
  margin-top: auto;
}

/* Field and Cultivar Info Sections */
.field-section, .cultivar-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #E9ECEF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.field-info, .cultivar-section {
  margin-top: 12px;
}

.field-info p, .cultivar-section p {
  margin: 10px 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: #495057;
  line-height: 1.6;
  font-size: 15px;
  display: block;
  white-space: pre-wrap;
}

.field-info p strong, .cultivar-section p strong {
  color: #1F3A2E;
  font-weight: 600;
  display: inline;
}

/* Ensure proper text wrapping for long cultivar info */
.cultivar-section p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Charts Section Improvements */
.charts-section {
  margin: 32px 0;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-container {
  height: 280px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E9ECEF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
}

.chart-container canvas {
  max-height: 100% !important;
  width: 100% !important;
  border-radius: 8px;
}

/* Warnings and Quality Sections */
.warnings-section {
  margin: 24px 0;
  padding: 20px;
  background: #FEF9E7;
  border: 1px solid #F4D03F;
  border-left: 4px solid #F39C12;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.warnings-section h4 {
  color: #B7950B;
  margin-top: 0;
  font-size: 18px;
}

.warnings-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.warnings-section li {
  margin: 8px 0;
  color: #85650D;
  line-height: 1.5;
  font-size: 14px;
}

.quality-section {
  margin: 24px 0;
  padding: 20px;
  background: #E8F8F5;
  border: 1px solid #52C41A;
  border-left: 4px solid #389E0D;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quality-section h4 {
  color: #237804;
  margin-top: 0;
  font-size: 18px;
}

.quality-section p {
  color: #135200;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Data Table Fallback Improvements */
.data-table-fallback {
  margin-top: 20px;
  padding: 20px;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #E9ECEF;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  background: #F8F9FA;
  font-weight: 600;
  color: #1F3A2E;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #E9ECEF;
}

.data-table td {
  padding: 12px 16px;
  color: #495057;
  border-bottom: 1px solid #F1F3F4;
}

.data-table tr:hover {
  background: #F8F9FA;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #1F3A2E;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E9ECEF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 20px 0;
}

.loading h3 {
  color: #1F3A2E;
  margin-bottom: 20px;
  font-size: 24px;
}

.loading-steps {
  text-align: left;
  max-width: 400px;
  margin: 24px auto 0;
}

.loading-steps p {
  margin: 12px 0;
  color: #4C7A5C;
  line-height: 1.5;
}

.error {
  background: #FFF5F5;
  border: 1px solid #E53E3E;
  border-left: 4px solid #E53E3E;
  color: #C53030;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.error h4 {
  margin-top: 0;
  color: #C53030;
  font-size: 18px;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .results {
    padding: 16px;
  }
  
  .results-content {
    padding: 20px;
    margin: 0;
  }
  
  .results-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .results-content h4 {
    font-size: 18px;
    margin: 24px 0 12px 0;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .chart-container {
    height: 240px;
    padding: 16px;
  }
  
  .field-section, .cultivar-section, 
  .warnings-section, .quality-section {
    padding: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .results {
    padding: 12px;
  }
  
  .results-content {
    padding: 16px;
  }
  
  .summary-item {
    padding: 14px 16px;
  }
  
  .summary-item .value {
    font-size: 20px;
  }
  
  .chart-container {
    height: 200px;
    padding: 12px;
  }
}

/* Force proper display for summary items - override any conflicts */
.results .summary-item {
  display: flex !important;
  flex-direction: column !important;
}

.results .summary-item .label {
  display: block !important;
  margin-bottom: 8px !important;
  font-family: "IBM Plex Sans", sans-serif !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #6B7268 !important;
}

.results .summary-item .value {
  display: block !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1B1F1C !important;
}

/* Ensure proper spacing in field and cultivar sections */
.results .field-info p,
.results .cultivar-section p {
  display: block !important;
  margin: 10px 0 !important;
  line-height: 1.6 !important;
}

.results .field-info p strong,
.results .cultivar-section p strong {
  font-weight: 600 !important;
  color: #1F3A2E !important;
}
/* Data table fallback when Chart.js is not available */
.data-table-fallback {
  margin-top: 16px;
  padding: 16px;
  background: #F8F9FA;
  border-radius: 6px;
  border: 1px solid #D9DAD0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #D9DAD0;
}

.data-table th {
  background: #EDEEE6;
  font-weight: 600;
  color: #1F3A2E;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.data-table td {
  color: #1B1F1C;
}

.data-table tr:hover {
  background: #F5F5F5;
}

/* Debug helper */
.debug-info {
  margin-top: 20px;
  padding: 12px;
  background: #F0F0F0;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #666;
  white-space: pre-wrap;
}

/* ── DB Plot popups ───────────────────────────────────────────────── */
.plot-popup {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  min-width: 220px;
}
.plot-popup .plot-id {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #1F3A2E;
}
.plot-popup table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.plot-popup table td {
  padding: 3px 6px;
  vertical-align: top;
}
.plot-popup table td:first-child {
  color: #666;
  white-space: nowrap;
  font-weight: 500;
  width: 90px;
}
.plot-popup table code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  word-break: break-all;
  color: #333;
}
.use-plot-btn {
  display: block;
  width: 100%;
  padding: 7px 0;
  background: #C9A227;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.use-plot-btn:hover {
  background: #a8851e;
}

/* ── Cycle selector panel ─────────────────────────────────────────── */
.cycle-selector-panel {
  background: #f0f7f3;
  border-left: 3px solid #C9A227;
}
.cycle-selector-panel select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #c8d8cc;
  border-radius: 6px;
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  background: #fff;
  color: #1F3A2E;
}

/* ── Plot info card ───────────────────────────────────────────────── */
.plot-info-card {
  background: #eaf4ee;
  border-left: 3px solid #4C7A5C;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.plot-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.plot-info-header h2 {
  margin: 0;
  font-size: 13px;
}
.dismiss-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0 4px;
}
.dismiss-btn:hover { color: #c00; }

.plot-info-card details {
  margin-top: 8px;
}
.plot-info-card summary {
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  color: #1F3A2E;
  margin-bottom: 6px;
}
.info-table-wrap {
  overflow-x: auto;
  max-height: 160px;
  overflow-y: auto;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
}
.info-table th {
  background: #d4e9db;
  padding: 4px 6px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.info-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}
.info-table tr:hover td { background: #f0f8f3; }
