/* status--location-report.css */

.full-width-wrapper { min-width: 0; }
.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; } }

/* ── Page header ── */
.sr-page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 22px 0 18px;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 30px;
}
.sr-page-header h1 {
  font-size: 1.55rem; font-weight: 800; color: #1a1a1a; margin: 0 0 5px;
}
.sr-updated { font-size: .82rem; color: #888; }
.sr-admin-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 6px;
  background: var(--green-1, #5B8D6A); color: #fff;
  font: 600 .83rem/1 system-ui, Arial, sans-serif;
  text-decoration: none; transition: filter .15s;
}
.sr-admin-link:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }

/* ── Location sections — stacked layout ── */
.sr-section {
  margin-bottom: 36px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.sr-section-header {
  background: var(--green-1, #5B8D6A);
  padding: 14px 22px;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.sr-section-title {
  font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0;
}
.sr-section-updated { font-size: .76rem; color: rgba(255,255,255,.72); }

/* Duty officer / comments row */
.sr-section-meta {
  display: flex; gap: 30px; flex-wrap: wrap;
  padding: 13px 22px 11px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: .88rem; color: #333;
}
.sr-meta-label { font-weight: 700; color: #555; margin-right: 4px; }

/* Resource badge strip */
.sr-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 11px 22px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.sr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font: 600 .77rem/1 system-ui, Arial, sans-serif;
  color: #fff; white-space: nowrap;
}
.sr-badge-count {
  background: rgba(255,255,255,.28); border-radius: 10px;
  padding: 1px 6px; font-weight: 800; font-size: .72rem;
}
.badge-engines   { background: #c0392b; }
.badge-crews     { background: #27ae60; }
.badge-dozers    { background: #e67e22; }
.badge-tenders   { background: #2980b9; }
.badge-medical   { background: #e91e8c; }
.badge-heavy_eq  { background: #d35400; }
.badge-overhead  { background: #6f42c1; }
.badge-lookouts  { background: #16a085; }
.badge-patrol    { background: #7f8c8d; }
.badge-other     { background: #95a5a6; }

.sr-no-resources {
  padding: 11px 22px; font-size: .85rem;
  color: #aaa; font-style: italic;
  border-bottom: 1px solid #f0f0f0; background: #fff;
}

/* Resource table */
.sr-table-wrap { overflow-x: auto; background: #fff; }
.sr-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.sr-table thead th {
  padding: 9px 16px; 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;
}
.sr-table tbody tr { border-bottom: 1px solid #f2f2f2; transition: background .1s; }
.sr-table tbody tr:last-child { border-bottom: none; }
.sr-table tbody tr:hover { background: #fafff9; }
.sr-table td { padding: 9px 16px; vertical-align: middle; color: #333; text-align: center;
  border: 1px solid #e0e0e0;
}
.sr-table td:first-child, .sr-table th:first-child { text-align: left; }

/* Status pill */
.sr-status {
  display: inline-block; padding: 2px 10px;
  border-radius: 12px; font-size: .73rem; font-weight: 700; white-space: nowrap;
}
.sr-status-available   { background: #e8f5e9; color: #2e7d32; }
.sr-status-unavailable { background: #fce4ec; color: #b71c1c; }
.sr-status-committed   { background: #fff3e0; color: #e65100; }
.sr-status-other       { background: #f3f3f3; color: #666; }

/* Print */
@media print {
  .sr-admin-link { display: none; }
  .sr-section    { break-inside: avoid; box-shadow: none; }
}

@media (max-width: 600px) {
  .sr-section-meta { gap: 12px; flex-direction: column; }
  .sr-page-header  { flex-direction: column; align-items: flex-start; }
}

.sr-admin-login { display:flex; justify-content:flex-end; margin-bottom:20px; }

/* ── 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; } }

@media (max-width: 700px) {
  .sr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sr-section { margin-bottom: 16px; }
  .sr-meta { flex-direction: column; gap: 4px; }
}
