/* assets/css/admin.css
   Styles specific to the protected admin section.
*/

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: var(--hf-navy);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.admin-topbar img { height: 26px; }
.admin-topbar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.admin-topbar nav a {
  color: #C9D6E4;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-topbar nav a:hover, .admin-topbar nav a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}
.admin-topbar .admin-user {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-main {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Metric cards ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.metric-card .metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hf-navy);
}
.metric-card .metric-label {
  font-size: 0.82rem;
  color: var(--hf-text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.metric-card.warn .metric-value { color: var(--status-standby); }
.metric-card.danger .metric-value { color: var(--status-not-compliant); }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-end;
}
.filter-bar .field { margin-bottom: 0; min-width: 160px; }

/* ---- Login page ---- */
.admin-login-wrap {
  max-width: 380px;
  margin: 60px auto;
  padding: 0 16px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.ai-draft-box {
  background: var(--status-review-bg);
  border: 1px dashed var(--status-review);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.ai-draft-box .ai-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--status-review);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* ---- Branded Quarterly Summary Report: header ---- */
.branded-report-header {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid var(--hf-navy);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.branded-report-logo-left {
  width: 80px;
  height: auto;
  flex: 0 0 auto;
}
.branded-report-logo-right {
  width: 60px;
  height: auto;
  flex: 0 0 auto;
  margin-left: auto;
}
.branded-report-title-block {
  min-width: 0;
}
.branded-report-title-block h1 {
  margin: 0;
  font-size: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.branded-report-title-block .field-hint {
  font-size: 0.8rem;
  line-height: 1.35;
}
