/* High Holiday Honors — Dashboard Styles */

body {
  background-color: #f3f4f6;
  font-size: 14px;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar.bg-primary {
  background-color: #1e3a5f !important;
}

/* ── Year Bar ────────────────────────────────────────────────────────────── */
.year-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
}

.year-bar-label {
  font-weight: 600;
  color: #374151;
}

.year-select {
  width: 110px;
  border-radius: 8px !important;
  font-size: 13px;
}

/* ── Pill Buttons ────────────────────────────────────────────────────────── */
.btn-pill {
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.btn-pill-primary {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}
.btn-pill-primary:hover { background: #16304f; color: #fff; }

.btn-pill-outline {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.btn-pill-outline:hover { background: #f9fafb; color: #111827; border-color: #9ca3af; }

.btn-pill-outline-danger {
  background: #fff;
  color: #dc2626;
  border-color: #fca5a5;
}
.btn-pill-outline-danger:hover { background: #fef2f2; border-color: #dc2626; }

.btn-pill-green {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn-pill-green:hover { background: #15803d; color: #fff; }

.btn-pill-amber {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}
.btn-pill-amber:hover { background: #b45309; color: #fff; }

.btn-pill-shabbat {
  background: #fff;
  color: #92400e;
  border-color: #fcd34d;
}
.btn-pill-shabbat:hover { background: #fffbeb; }

.btn-pill-shabbat-active {
  background: #fbbf24;
  color: #78350f;
  border-color: #f59e0b;
}
.btn-pill-shabbat-active:hover { background: #f59e0b; }

/* ── Circle Icon Buttons ─────────────────────────────────────────────────── */
.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.btn-circle-edit {
  color: #6b7280;
  border-color: #d1d5db;
}
.btn-circle-edit:hover { background: #f3f4f6; color: #111827; border-color: #9ca3af; }

.btn-circle-danger {
  color: #dc2626;
  border-color: #fca5a5;
}
.btn-circle-danger:hover { background: #fef2f2; border-color: #dc2626; }

.btn-circle-accept {
  color: #16a34a;
  border-color: #86efac;
}
.btn-circle-accept:hover { background: #f0fdf4; border-color: #16a34a; }

/* ── Location Heading ────────────────────────────────────────────────────── */
.location-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e3a5f;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

.location-heading i {
  color: #3b82f6;
  font-size: 16px;
}

/* ── Service List ────────────────────────────────────────────────────────── */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Service Card ────────────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.svc-header {
  display: flex;
  align-items: center;
  padding: 12px 14px 10px;
  gap: 8px;
  cursor: default;
}

.svc-drag-handle {
  display: flex;
  align-items: center;
  padding: 0 4px 0 0;
  color: #9ca3af;
  cursor: grab;
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.15s;
  align-self: stretch;
}
.svc-drag-handle:hover { color: #4f46e5; }

.svc-header-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}

.svc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.svc-name {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}

.svc-date {
  font-size: 13px;
  color: #6b7280;
  margin-left: auto;
}

.svc-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.svc-badge-shabbat {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.svc-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.svc-stat {
  font-size: 12px;
  font-weight: 500;
}

.svc-stat-assigned { color: #374151; }
.svc-stat-accepted { color: #16a34a; }
.svc-stat-pending  { color: #d97706; }
.svc-stat-declined { color: #dc2626; }
.svc-stat-zero     { color: #9ca3af; }

.svc-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

.svc-body {
  border-top: 1px solid #f3f4f6;
  padding: 12px 14px;
  background: #fff;
}

/* ── Service Actions Bar ─────────────────────────────────────────────────── */
.svc-actions {
  padding: 0 0 10px;
}

/* ── Slots Table ─────────────────────────────────────────────────────────── */
.slots-table {
  font-size: 13px;
}

.slots-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.slots-table .drag-handle {
  opacity: 0.35;
  transition: opacity 0.15s;
  cursor: grab;
}
.slots-table tr:hover .drag-handle { opacity: 0.8; }

.slots-table tr.ui-sortable-helper {
  display: table;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ── Assignee Row ────────────────────────────────────────────────────────── */
.assignee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
}

.assignee-row + .assignee-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f3f4f6;
}

.assignee-name-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.assignee-name {
  font-size: 13px;
  color: #111827;
}

.assignee-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: lowercase;
}

.status-accepted { background: #dcfce7; color: #15803d; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-declined { background: #fee2e2; color: #b91c1c; }

/* ── Assign Input ────────────────────────────────────────────────────────── */
.assign-group .form-control {
  font-size: 13px;
}

.ui-autocomplete {
  z-index: 9999 !important;
  font-size: 13px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ui-menu-item-wrapper {
  padding: 6px 10px !important;
}

/* ── Modals ──────────────────────────────────────────────────────────────── */
.modal .list-group-item {
  font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .svc-date { display: none; }
  .svc-actions .btn-pill { font-size: 12px; padding: 4px 10px; }
  .slots-table th, .slots-table td { padding: 5px 4px; }
}
