/* Sourcewav Features 5-8 — Event Command Center */
/* --------------------------------------------------------------------------
   7. EVENT COMMAND CENTER (หลังบ้านผู้จัดงาน)
--------------------------------------------------------------------------- */
.command-center-modal {
  width: min(1040px, 96vw) !important;
  max-height: 94vh;
  padding: 24px 28px !important;
  overflow-y: auto;
}
.command-center-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.command-event-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.command-event-selector select {
  font: 700 14px var(--font);
  color: #172a40;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 240px;
}

/* KPI Overview Scorecards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(16, 32, 51, 0.04);
}
.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-card .kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #172a40;
  letter-spacing: -0.5px;
}
.kpi-card .kpi-sub {
  font-size: 11px;
  color: #718497;
  margin-top: 5px;
}
.kpi-card.profit {
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
  border-color: #86efac;
}
.kpi-card.profit .kpi-value {
  color: #15803d;
}
.kpi-card.expense {
  background: linear-gradient(145deg, #ffffff, #fef2f2);
  border-color: #fca5a5;
}
.kpi-card.expense .kpi-value {
  color: #b91c1c;
}

.checkin-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.checkin-progress-bar div {
  height: 100%;
  background: #2858ef;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Command Center Columns (Expenses & Crew) */
.command-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}
.command-panel-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}
.command-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.command-panel-head h3 {
  font-size: 15px;
  margin: 0;
  color: #172a40;
}
.command-mini-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 10px;
  font: 600 11px var(--font);
  color: #334155;
  cursor: pointer;
}
.command-mini-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Expense Table */
.expense-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.expense-table th {
  text-align: left;
  padding: 8px 10px;
  color: #64748b;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 600;
}
.expense-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.expense-table tr:last-child td {
  border-bottom: 0;
}

/* Crew Roster List */
.crew-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crew-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crew-info strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
}
.crew-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.crew-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.crew-status-badge.on-duty {
  background: #dcfce7;
  color: #15803d;
}
.crew-status-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

/* Post Event Retrospective Summary Box */
.summary-retro-box {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.summary-retro-box h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #172a40;
}
.summary-retro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.summary-stat-cell {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}
.summary-stat-cell span {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.summary-stat-cell b {
  display: block;
  font-size: 16px;
  color: #172a40;
  margin-top: 3px;
}

/* Organizer Pro Banner */
.pro-tier-banner {
  background: linear-gradient(135deg, #10243a, #19385c);
  color: #ffffff;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pro-tier-banner h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #72ded0;
}
.pro-tier-banner p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
}

