@import "/mk3/assets/palette.css";

.god-admin-main { padding-top: 64px; }
.god-admin-header { align-items: flex-start; }
.god-admin-kicker { margin: 0 0 6px; color: var(--orange, #fbab18); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.god-admin-header .page-title-v2 { margin-top: 0; }
.god-admin-help { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.god-admin-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; color: var(--navy, #172f5f); border: 1px solid #cfd8e8; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.god-admin-link:hover { background: #f2f5fb; border-color: var(--navy, #172f5f); }
.god-learning-proposal-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(15, 36, 86, .54); }
.god-learning-proposal-dialog { width: min(960px, 100%); max-height: min(88vh, 960px); overflow: auto; padding: 26px; background: #fff; border: 1px solid #dce3ee; border-radius: 15px; box-shadow: 0 24px 70px rgba(15, 36, 86, .28); }
.god-learning-proposal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid #e3e8f1; }
.god-learning-proposal-head h2 { margin: 0; color: var(--navy, #172f5f); font-size: clamp(20px, 3vw, 27px); line-height: 1.35; }
.god-learning-proposal-content { color: #273650; font-size: 14px; line-height: 1.85; }
.god-learning-proposal-subtitle { margin: 20px 0 0; color: #64748b; font-size: 13px; font-weight: 800; }
.god-learning-proposal-summary { margin: 12px 0 20px; padding: 14px 16px; color: #33445e; background: #f6f8fb; border-left: 3px solid var(--orange, #fbab18); border-radius: 5px; }
.god-learning-proposal-toc { margin: 0 0 25px; padding: 15px 17px; background: #fbfcfe; border: 1px solid #e3e8f1; border-radius: 10px; }
.god-learning-proposal-toc strong { display: block; margin-bottom: 6px; color: var(--navy, #172f5f); font-size: 13px; }
.god-learning-proposal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; margin: 0; padding-left: 21px; }
.god-learning-proposal-toc a { color: #2455a6; font-size: 13px; font-weight: 700; text-decoration: none; }
.god-learning-proposal-toc a:hover { text-decoration: underline; }
.god-learning-proposal-article { min-width: 0; }
.god-learning-proposal-article section { margin: 0 0 24px; scroll-margin-top: 18px; }
.god-learning-proposal-article h3 { margin: 0 0 8px; color: var(--navy, #172f5f); font-size: 17px; line-height: 1.5; }
.god-learning-proposal-article p { margin: 0 0 10px; white-space: pre-line; }
.god-learning-proposal-article ul { margin: 4px 0 11px; padding-left: 23px; }
.god-learning-proposal-article li { margin: 4px 0; }
.god-learning-proposal-modal .god-admin-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.god-learning-proposal-modal .god-admin-alert .btn { flex-shrink: 0; }
.god-admin-section { margin: 0 0 24px; padding: 24px; background: #fff; border: 1px solid #e3e8f1; border-radius: 15px; box-shadow: 0 5px 18px rgba(15,36,86,.05); }
.god-admin-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.god-admin-section h2 { margin: 0; color: var(--navy, #172f5f); font-size: 20px; }
.god-admin-other-records { min-width: 180px; }
.god-admin-other-records summary { padding: 8px 10px; color: #64748b; border: 1px solid #e3e8f1; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.god-admin-other-records[open] summary { border-radius: 9px 9px 0 0; }
.funding-readout { min-width: 150px; padding: 10px 13px; background: #f4f6fa; border: 1px solid #e3e8f1; border-top: 0; border-radius: 0 0 9px 9px; text-align: right; }
.funding-readout span { display: block; color: #64748b; font-size: 11px; }
.funding-readout strong { display: block; margin-top: 3px; color: var(--navy, #172f5f); font-size: 19px; }
.funding-readout small { display: block; margin-top: 3px; color: #64748b; font-size: 10px; }
.god-admin-inline { padding: 18px 0; color: #64748b; font-size: 14px; }
.god-admin-alert { margin: 0 0 15px; padding: 11px 13px; border-radius: 9px; font-size: 13px; }
.god-admin-alert.error { color: #9c2636; background: #fff0f2; border: 1px solid #f0bdc6; }
.god-admin-alert.success { color: #176947; background: #edf9f2; border: 1px solid #b8e2c7; }
.god-admin-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.god-admin-stat-row > div { padding: 15px; border: 1px solid #e3e8f1; border-radius: 10px; }
.god-admin-stat-row strong { display: block; color: var(--navy, #172f5f); font-size: 27px; }
.god-admin-stat-row span { color: #64748b; font-size: 12px; }
.god-offer-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.god-form-field { display: flex; flex-direction: column; gap: 7px; }
.god-form-field label { color: #273650; font-size: 13px; font-weight: 800; }
.god-form-field label > span { color: #b42f42; }
.god-form-field small { color: #64748b; font-size: 11px; }
.god-form-field input, .god-form-field select, .god-form-field textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: #1d2b43; background: #fff; border: 1px solid #cfd8e8; border-radius: 8px; font: inherit; font-size: 13px; }
.god-form-field textarea { resize: vertical; }
.god-form-field input:focus, .god-form-field select:focus, .god-form-field textarea:focus, .god-admin-section button:focus-visible, a:focus-visible { outline: 3px solid rgba(251,171,24,.4); outline-offset: 2px; }
.god-form-field input:disabled, .god-form-field select:disabled { background: #f0f3f7; cursor: not-allowed; }
.god-form-wide { grid-column: 1 / -1; }
.god-checkbox-field { justify-content: center; gap: 10px; }
.god-checkbox-field label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.god-checkbox-field input { width: auto; min-height: auto; }
.god-form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.god-admin-empty { padding: 28px; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; text-align: center; }
.god-admin-empty strong { display: block; color: var(--navy, #172f5f); }
.god-admin-empty p { margin: 5px 0 0; font-size: 13px; }
.god-admin-offer-list, .reservation-list { display: grid; gap: 13px; }
.god-admin-offer-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(190px, 1fr) auto; gap: 17px; align-items: start; padding: 17px; border: 1px solid #e3e8f1; border-radius: 11px; }
.god-admin-offer-card.is-inactive { background: #f8fafc; opacity: .78; }
.god-admin-offer-card h3 { margin: 0; color: var(--navy, #172f5f); font-size: 16px; }
.god-admin-offer-card p { margin: 5px 0 0; color: #64748b; font-size: 12px; white-space: pre-line; }
.offer-admin-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.admin-pill { display: inline-flex; padding: 3px 8px; color: #43536b; background: #edf1f7; border-radius: 999px; font-size: 11px; font-weight: 800; }
.admin-pill.active { color: #176947; background: #e5f7ec; }
.admin-pill.inactive { color: #65738a; background: #e8ecf2; }
.god-admin-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.god-admin-card-actions .btn { white-space: nowrap; }
.reservation-card { padding: 17px; border: 1px solid #e3e8f1; border-radius: 11px; }
.reservation-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.reservation-head h3 { margin: 0; color: var(--navy, #172f5f); font-size: 16px; }
.reservation-sub { margin: 3px 0 0; color: #64748b; font-size: 12px; }
.admin-status { display: inline-flex; padding: 4px 9px; color: #43536b; background: #edf1f7; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.admin-status.pending { color: #805a08; background: #fff4d5; }
.admin-status.confirmed, .admin-status.attended { color: #176947; background: #e5f7ec; }
.admin-status.rejected, .admin-status.cancelled, .admin-status.expired { color: #9c2636; background: #fff0f2; }
.reservation-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 15px 0; }
.reservation-meta span { color: #64748b; font-size: 12px; }
.reservation-meta strong { display: block; margin-bottom: 3px; color: #33445e; font-size: 11px; }
.reservation-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0f5; }
.decision-actions { display: flex; gap: 7px; }
.checkin-form { display: flex; align-items: flex-end; gap: 7px; margin-left: auto; }
.checkin-form label { color: #64748b; font-size: 11px; font-weight: 700; }
.checkin-form input { display: block; width: 155px; min-height: 37px; margin-top: 3px; padding: 7px 9px; border: 1px solid #cfd8e8; border-radius: 7px; font: inherit; font-size: 12px; }
.terms-admin { margin: 13px 0 0; padding: 9px 11px; color: #4c5c73; background: #fffaf0; border-left: 3px solid var(--orange, #fbab18); font-size: 12px; white-space: pre-line; }

@media (max-width: 900px) {
  .god-offer-form { grid-template-columns: repeat(2, 1fr); }
  .god-admin-offer-card { grid-template-columns: 1fr 1fr; }
  .god-admin-card-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .reservation-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .god-admin-main { padding-top: 64px; }
  .god-learning-proposal-modal { align-items: flex-start; padding: 10px; }
  .god-learning-proposal-dialog { max-height: calc(100vh - 20px); padding: 19px 15px; border-radius: 11px; }
  .god-learning-proposal-head { align-items: center; }
  .god-learning-proposal-head h2 { font-size: 20px; }
  .god-learning-proposal-toc ol { display: block; }
  .god-learning-proposal-toc li { margin: 4px 0; }
  .god-admin-section { padding: 18px 14px; }
  .god-admin-section-head { flex-direction: column; }
  .god-admin-other-records { width: 100%; }
  .funding-readout { text-align: left; }
  .god-offer-form, .god-admin-stat-row, .god-admin-offer-card { grid-template-columns: 1fr; }
  .god-form-wide { grid-column: auto; }
  .god-form-actions { justify-content: stretch; }
  .god-form-actions .btn { flex: 1; }
  .reservation-actions { align-items: stretch; flex-direction: column; }
  .checkin-form { margin-left: 0; flex-direction: column; align-items: stretch; }
  .checkin-form input { width: 100%; }
}