/* Build 866 — Approval Queue + Break Policy modal */

#page-approvals .page-body { padding: 18px 22px; }

.ap-aggregate {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  margin-bottom: 16px;
}
.ap-agg-cell {
  min-width: 110px;
  padding: 6px 12px;
  border-right: 1px solid #1e293b;
}
.ap-agg-cell:last-of-type { border-right: none; }
.ap-agg-num {
  font-size: 22px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.1;
}
.ap-agg-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.ap-agg-spacer { flex: 1; }
.ap-agg-stamp {
  font-size: 12px;
  color: #64748b;
}
.ap-refresh-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  font-size: 14px;
}
.ap-refresh-btn:hover { background: #1e293b; color: #e2e8f0; }

.ap-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.ap-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #1e293b;
  background: #0b1220;
  font-weight: 500;
}
.ap-table th.ap-num, .ap-table td.ap-num { text-align: right; }
.ap-table th.ap-actions, .ap-table td.ap-actions { text-align: right; white-space: nowrap; }
.ap-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a2537;
  color: #e2e8f0;
  vertical-align: middle;
}
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: #111c33; }

.ap-name { font-weight: 500; color: #f1f5f9; }
.ap-reason { color: #fbbf24; font-size: 12px; }

.ap-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 4px;
}
.ap-btn:hover { background: #1e293b; color: #e2e8f0; }
.ap-btn-approve { border-color: #14532d; color: #86efac; }
.ap-btn-approve:hover { background: #14532d; color: #dcfce7; }
.ap-btn-reject { border-color: #7f1d1d; color: #fca5a5; }
.ap-btn-reject:hover { background: #7f1d1d; color: #fee2e2; }

.ap-empty {
  padding: 40px;
  text-align: center;
  color: #64748b;
  background: #0f172a;
  border: 1px dashed #1e293b;
  border-radius: 10px;
}
.ap-error {
  padding: 16px;
  background: #3f1d1d;
  color: #fecaca;
  border-radius: 8px;
  margin-bottom: 12px;
}
.ap-retry {
  background: #7f1d1d;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  margin-left: 8px;
  cursor: pointer;
}

/* Break policy modal (reuses .app-modal-overlay/.app-modal base styles) */
.bp-modal h3 { color: #fbbf24; }
.bp-modal strong { color: #fde68a; }

/* ── Profile schedule editor (build 866) ───────────────────────── */
.sched-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.sched-card h4 {
  margin: 0 0 4px;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
}
.sched-card .sched-hint {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 12px;
}
.sched-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.sched-row label {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 90px;
}
.sched-row input[type="time"],
.sched-row input[type="date"],
.sched-row input[type="text"],
.sched-row select {
  background: #0b1220;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
}
.sched-days { display: flex; gap: 6px; }
.sched-day {
  background: #0b1220;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}
.sched-day.on {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: #dbeafe;
}
.sched-save {
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.sched-save:hover { background: #1d4ed8; }
.sched-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
}

.aw-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  max-height: 180px;
  overflow-y: auto;
}
.aw-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 6px;
  margin-bottom: 6px;
  color: #e2e8f0;
  font-size: 13px;
}
.aw-list li .aw-when { color: #93c5fd; font-variant-numeric: tabular-nums; }
.aw-list li .aw-reason { color: #94a3b8; font-size: 12px; }
.aw-list li .aw-del {
  margin-left: auto;
  background: transparent;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}
.aw-list li .aw-del:hover { background: #7f1d1d; color: #fee2e2; }

/* Build 1006 Phase B — approvals mobile rules.
   Approval card footers + filter pills wrap on narrow viewports. */
@media (max-width: 640px) {
  .ap-card { padding: 12px; }
  .ap-card-head { flex-wrap: wrap; gap: 6px; }
  .ap-meta { flex-wrap: wrap; gap: 6px 10px; }
  .ap-actions { flex-wrap: wrap; gap: 6px; }
  .ap-filter-bar { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
}
