/* prescribed--rx_fire.css */

/* ── Main content padding override ── */
.main-content { padding: 24px 32px 48px; text-align: left !important; font-size: 1rem !important; font-weight: normal !important; }
@media (max-width: 700px) { .main-content { padding: 14px !important; } }
@media (max-width: 480px) { .main-content { padding: 10px !important; } }

/* ── Status text colors ── */
.status-off { color: #b30000; font-weight: 700; }
.status-on  { color: #00811E; font-weight: 700; }

/* ── Page header controls ── */
.rx-controls {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.rx-export-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 6px; border: none;
  background: #546e7a; color: #fff;
  font: 600 .83rem/1 system-ui, Arial, sans-serif;
  cursor: pointer; transition: filter .15s;
}
.rx-export-btn:hover { filter: brightness(1.1); }

/* ── Section wrapper ── */
.rx-section {
  margin-bottom: 36px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.rx-section-header {
  background: var(--green-1, #5B8D6A);
  padding: 13px 20px;
}
.rx-section-header h2 {
  font-size: 1rem; font-weight: 800; color: #fff; margin: 0;
}

/* ── Tables ── */
.rx-table-wrap { overflow-x: auto; background: #fff; }
.rx-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.rx-table thead th {
  padding: 9px 14px; text-align: center;
  font-size: .74rem; font-weight: 700; color: #555;
  text-transform: uppercase; letter-spacing: .04em;
  background: #f5f5f5; border-bottom: 2px solid #ebebeb;
  white-space: nowrap;
  border: 1px solid #e0e0e0;
}
.rx-table th.text-end,
.rx-table td.text-end { text-align: right; }
.rx-table th.text-center,
.rx-table td.text-center { text-align: center; }

.rx-table tbody tr { border-bottom: 1px solid #f2f2f2; transition: background .1s; }
.rx-table tbody tr:last-child { border-bottom: none; }
.rx-table tbody tr:hover { background: #fafff9; }
.rx-table td {
  padding: 9px 14px; vertical-align: middle; color: #333;
  white-space: normal; word-break: break-word; text-align: center;
  border: 1px solid #e0e0e0;
}
.rx-table td:first-child, .rx-table th:first-child { text-align: left; }
.rx-table td:nth-child(2), .rx-table th:nth-child(2) { text-align: left; }  /* project name left */
.rx-table td:nth-child(5) { min-width: 90px; } /* ignition time */

.rx-empty {
  text-align: center; font-style: italic;
  color: #999; padding: 18px !important;
}

/* note below burns table */
.rx-note {
  padding: 10px 20px 14px;
  font-size: .86rem; background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* map pin */
.fire-map-link {
  font-size: 1.1rem; text-decoration: none;
  transition: transform .15s; display: inline-block;
}
.fire-map-link:hover { transform: scale(1.2); }

/* warning note at bottom of burns section */
.rx-warning {
  padding: 12px 20px;
  background: #fff8f0; border-top: 1px solid #ffe0b2;
  font-size: .83rem; font-weight: 700; color: #e65100;
  text-align: center;
}

/* Status / conditions chips */
.status-wrap { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.status-num  { font-weight:900; font-size:1.35em; line-height:1; min-width:2em; text-align:center; }
.status-chip { display:inline-block; padding:3px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.15); background:rgba(0,0,0,.05); font-weight:600; }
.danger-chip { display:inline-block; padding:4px 12px; border-radius:999px; border:1px solid rgba(0,0,0,.15); font-weight:800; letter-spacing:.4px; color:#fff; }

/* Print */
@media print {
  @page { size: landscape; margin: 10mm; }
  body * { visibility: hidden; }
  .main-content, .main-content * { visibility: visible; }
  .main-content { position: absolute; left: 0; top: 0; width: 100%; padding: 0 !important; }
  header, .under-bar, .left-sidebar, .right-sidebar, footer, .no-print, .pub-btn-bar { display: none !important; }
  /* Print title */
  .welcome h1 { font-size: 16px !important; }
  .welcome, .welcome * { visibility: visible; }
  /* Table scaling */
  .rx-table { font-size: 9px !important; border-collapse: collapse !important; width: 100% !important; table-layout: auto; }
  .rx-table th, .rx-table td { padding: 4px 6px !important; }
  .rx-section { box-shadow: none !important; border-radius: 0 !important; break-inside: avoid; margin-bottom: 10px !important; }
  .rx-section-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rx-table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rx-note { display: none; }
}

@media (max-width: 600px) {
  .rx-table { font-size: .78rem;
  border-collapse: collapse;
}
  .rx-table td, .rx-table th { padding: 7px 10px; }
}

/* ── Shared public page button bar ── */
.pub-btn-bar {
  display: flex; justify-content: flex-end; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.pub-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 6px; border: none;
  background: var(--green-1, #5B8D6A); color: #fff;
  font: 600 .83rem/1 system-ui, Arial, sans-serif;
  text-decoration: none; cursor: pointer; transition: filter .15s;
}
.pub-btn:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }
@media print { .pub-btn-bar { display: none !important; } }
