/* ===================================
   STAFF PORTAL SPA
   Extends base profile-app.css styles
   =================================== */

/* --- Hide theme header/footer/adminbar when Staff SPA is active ---
   B3: Use visibility + position offscreen instead of display:none
   so Divi's JS doesn't crash accessing .style on removed elements. --- */
body:has(.abs-staff-shell) #main-header,
body:has(.abs-staff-shell) .et-l--header,
body:has(.abs-staff-shell) #top-header,
body:has(.abs-staff-shell) #main-footer,
body:has(.abs-staff-shell) .et-l--footer,
body:has(.abs-staff-shell) #footer-bottom,
body:has(.abs-staff-shell) .et_pb_menu,
body:has(.abs-staff-shell) .et-l--body .et_pb_section:not(:has(.abs-staff-shell)),
body:has(.abs-staff-shell) #wpadminbar {
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
}

body:has(.abs-staff-shell) {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* --- Force Divi wrappers to be full-width & no spacing --- */
body:has(.abs-staff-shell) #page-container,
body:has(.abs-staff-shell) #et-main-area,
body:has(.abs-staff-shell) .et_builder_inner_content,
body:has(.abs-staff-shell) .et_pb_section,
body:has(.abs-staff-shell) .et_pb_row,
body:has(.abs-staff-shell) .et_pb_column,
body:has(.abs-staff-shell) .et_pb_module,
body:has(.abs-staff-shell) .et_pb_text_inner,
body:has(.abs-staff-shell) .entry-content,
body:has(.abs-staff-shell) .et-l--body {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body:has(.abs-staff-shell) #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: hidden;
  overflow-y: visible !important;
}

/* Ensure sticky works — no overflow:hidden on ancestors */
body:has(.abs-staff-shell) #et-main-area,
body:has(.abs-staff-shell) .et_builder_inner_content,
body:has(.abs-staff-shell) .et_pb_section,
body:has(.abs-staff-shell) .et_pb_row,
body:has(.abs-staff-shell) .et_pb_column,
body:has(.abs-staff-shell) .et_pb_module,
body:has(.abs-staff-shell) .entry-content {
  overflow: visible !important;
}

/* Staff badge in header */
.abs-staff-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #6366f1;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.abs-staff-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #fff;
}

.abs-staff-header .abs-app-logo { 
  color: #fff; 
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.2;
}

.abs-staff-header .abs-app-logo-img {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
}

.abs-staff-header .abs-app-logo-icon {
  width: clamp(28px, 5vw, 36px);
  height: clamp(28px, 5vw, 36px);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.abs-staff-header .abs-app-header-actions { 
  gap: clamp(6px, 2vw, 12px);
  flex-shrink: 0;
}

.abs-staff-header .abs-app-header-actions a { 
  color: #c7d2fe; 
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  white-space: nowrap;
}

.abs-staff-header .abs-app-header-actions a:hover { color: #fff; }

/* Responsive header adjustments */
@media (max-width: 600px) {
  .abs-staff-header {
    padding: 10px 12px;
    min-height: 52px;
  }
  
  .abs-staff-header .abs-app-logo {
    gap: 4px 6px;
  }
  
  .abs-staff-header .abs-staff-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
    margin-left: 4px;
  }
  
  /* Hide text in header links on very small screens, show only icons if present */
  .abs-staff-header .abs-app-header-actions a {
    padding: 4px 6px;
  }
}

@media (max-width: 400px) {
  .abs-staff-header .abs-app-header-actions a:not(.abs-header-portal-link) {
    font-size: 0.7rem;
  }
}

/* ---- Dashboard ---- */
.abs-staff-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .abs-staff-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Booking Cards ---- */
.abs-staff-booking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abs-staff-booking-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.abs-staff-booking-card:hover { border-color: #c7d2fe; }

/* Top row: date/time + service/client */
.abs-staff-booking-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 10px;
}

.abs-staff-booking-datetime {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  min-width: 80px;
}

.abs-staff-booking-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.abs-staff-booking-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
}

.abs-staff-booking-time svg { flex-shrink: 0; width: 14px; height: 14px; }

.abs-staff-booking-info { flex: 1; min-width: 0; }

.abs-staff-booking-service {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abs-staff-booking-client {
  font-size: 0.8rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom row: status + actions */
.abs-staff-booking-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 12px;
  border-top: 1px dashed #e2e8f0;
}

.abs-staff-booking-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .abs-staff-booking-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .abs-staff-booking-datetime {
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }
  .abs-staff-booking-bottom {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* Status badge */
.abs-staff-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--status-color) 15%, transparent);
  color: var(--status-color);
  border: 1px solid color-mix(in srgb, var(--status-color) 30%, transparent);
}

/* Extra-small buttons */
.abs-btn-xs {
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  border-radius: 6px !important;
  line-height: 1 !important;
}

.abs-btn-xs svg { width: 14px; height: 14px; }

.abs-btn-ghost {
  background: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.abs-btn-ghost:hover { background: #f1f5f9; }

.abs-btn-lg {
  padding: 12px 24px !important;
  font-size: 1rem !important;
}

/* ---- Section headers ---- */
.abs-staff-section {
  margin-bottom: 24px;
}

.abs-staff-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

.abs-staff-section-header {
  margin-bottom: 16px;
}

.abs-staff-section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.abs-staff-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ---- Filters ---- */
.abs-staff-filters-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}
.abs-staff-filters-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.abs-staff-filters-row + .abs-staff-filters-row {
  border-top: 1px solid #e2e8f0;
}
.abs-staff-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 52px;
  flex-shrink: 0;
}
.abs-staff-filters-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.abs-staff-filters-toggle input[type="checkbox"] {
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
/* Legacy compat */
.abs-staff-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ---- Compact Filters with Dropdowns ---- */
.abs-staff-filters-compact {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.abs-staff-filters-main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.abs-staff-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.abs-staff-filter-select,
.abs-staff-filter-input {
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #1e293b;
  min-width: 140px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.abs-staff-filter-select:focus,
.abs-staff-filter-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.abs-staff-filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.abs-custom-range {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.abs-custom-range .abs-staff-filter-label {
  min-width: auto;
}

.abs-custom-range .abs-staff-filter-input {
  min-width: 130px;
}

.abs-label-to {
  margin-left: 4px;
}

.abs-staff-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.abs-staff-filter-actions .abs-staff-filters-toggle {
  margin-left: 0;
  white-space: nowrap;
}

.abs-custom-range.is-hidden {
  display: none;
}

/* Responsive filters */
@media (max-width: 768px) {
  .abs-staff-filters-main {
    flex-direction: column;
    align-items: stretch;
  }

  .abs-staff-filter-field {
    width: 100%;
  }

  .abs-staff-filter-select,
  .abs-staff-filter-input {
    width: 100%;
    min-width: auto;
  }

  .abs-custom-range {
    flex-direction: column;
    align-items: stretch;
  }

  .abs-custom-range .abs-staff-filter-input {
    width: 100%;
  }

  .abs-label-to {
    margin-left: 0;
  }

  .abs-staff-filter-actions {
    margin-left: 0;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
  }
}

/* ---- Pagination ---- */
.abs-staff-pagination {
  margin-top: 16px;
}

.abs-staff-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.abs-staff-page-info {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}


/* ===================================
   STAFF DASHBOARD (PREMIUM)
   =================================== */

.abs-dash-welcome {
  margin-bottom: 30px;
}

.abs-dash-welcome h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0;
}

.abs-dash-welcome p {
  color: #64748b;
  font-size: 1rem;
  margin: 4px 0 0;
}

/* Modern Stats Grid */
.abs-dash-stats-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.abs-stat-modern {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.abs-stat-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.abs-stat-modern-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #6366f1;
}

.abs-stat-modern-data {
  display: flex;
  flex-direction: column;
}

.abs-stat-modern-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.abs-stat-modern-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Next Appointment Card */
.abs-dash-next-section {
  margin-bottom: 32px;
}

.abs-dash-next-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
  position: relative;
  overflow: hidden;
}

.abs-dash-next-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.abs-next-info h4 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.abs-next-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.abs-next-client {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.abs-next-time {
  text-align: right;
}

.abs-next-time-val {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.abs-next-countdown {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 8px;
  display: inline-block;
}

/* Agenda Timeline */
.abs-dash-agenda {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
}

.abs-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.abs-agenda-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  position: relative;
}

.abs-agenda-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 59px;
  top: 40px;
  bottom: -16px;
  width: 2px;
  background: #f1f5f9;
}

.abs-agenda-time {
  width: 60px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  padding-top: 2px;
}

.abs-agenda-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  margin-top: 6px;
  z-index: 1;
  flex-shrink: 0;
}

.abs-agenda-item.active .abs-agenda-dot {
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.abs-agenda-content {
  flex: 1;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.abs-agenda-content:hover {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

.abs-agenda-service {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.abs-agenda-client {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

.abs-agenda-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .abs-dash-stats-premium { grid-template-columns: 1fr 1fr; }
  .abs-dash-next-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .abs-next-time { text-align: left; }
}

/* ===================================
   STAFF CALENDAR (WEEKLY)
   =================================== */
.abs-staff-cal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.abs-staff-cal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  flex: 1;
  text-align: center;
}

.abs-staff-cal-today { margin-left: auto; }

.abs-staff-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

@media (max-width: 768px) {
  .abs-staff-week-grid {
    grid-template-columns: 1fr;
  }
}

.abs-staff-week-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  min-height: 120px;
}

.abs-staff-today { border-color: #6366f1; }

.abs-staff-week-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.abs-staff-today .abs-staff-week-day-header { background: #eef2ff; }

.abs-staff-week-dayname {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.abs-staff-week-daynum {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.abs-today-num {
  background: #6366f1;
  color: #fff;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.abs-staff-week-day-slots {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.abs-staff-slot {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef2ff;
  border-left: 3px solid #6366f1;
  font-size: 0.78rem;
}

.abs-staff-slot-confirmed { border-left-color: #10b981; background: #ecfdf5; }
.abs-staff-slot-completed { border-left-color: #6366f1; background: #eef2ff; }
.abs-staff-slot-pending   { border-left-color: #f59e0b; background: #fffbeb; }
.abs-staff-slot-cancelled { border-left-color: #ef4444; background: #fef2f2; }
.abs-staff-slot-noshow,
.abs-staff-slot-noshow { border-left-color: #94a3b8; background: #f1f5f9; }

.abs-staff-slot-time {
  font-weight: 700;
  color: #334155;
  display: block;
}

.abs-staff-slot-client {
  color: #475569;
  font-weight: 500;
  display: block;
}

.abs-staff-slot-service {
  color: #94a3b8;
  font-size: 0.72rem;
  display: block;
}

.abs-staff-slot-clickable {
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.abs-staff-slot-clickable:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  filter: brightness(0.96);
}

.abs-staff-booking-highlight {
  animation: abs-highlight-pulse 2.5s ease-out;
}
@keyframes abs-highlight-pulse {
  0%   { box-shadow: 0 0 0 3px rgba(99,102,241,0.5); }
  70%  { box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
  100% { box-shadow: none; }
}

.abs-staff-slot-empty {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 12px 4px;
}

/* ===================================
   STAFF NEW BOOKING FORM
   =================================== */
.abs-staff-new-view {
  max-width: 560px;
}

.abs-staff-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abs-staff-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin: 0;
}

.abs-staff-fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  padding: 0 8px;
}

.abs-staff-form .abs-form-group {
  margin-bottom: 12px;
}

.abs-staff-form .abs-form-group:last-child {
  margin-bottom: 0;
}

.abs-staff-form .abs-form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #475569;
}

.abs-staff-form .abs-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.95rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.abs-staff-form .abs-form-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.abs-form-row {
  display: flex;
  gap: 12px;
}

.abs-form-half { flex: 1; }

@media (max-width: 480px) {
  .abs-form-row { flex-direction: column; gap: 0; }
}

.abs-staff-form-actions {
  padding-top: 8px;
}

/* ---- View Placeholder ---- */
.abs-view-placeholder {
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
}

.abs-view-placeholder svg {
  margin-bottom: 12px;
  color: #cbd5e1;
}

.abs-view-placeholder h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #64748b;
}

.abs-view-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===================================
   CLIENT SEARCH AUTOCOMPLETE
   =================================== */
.abs-search-wrap {
  position: relative;
}

.abs-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}

.abs-search-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f1f5f9;
}

.abs-search-item:last-child { border-bottom: none; }
.abs-search-item:hover { background: #eef2ff; }

.abs-search-item strong {
  font-size: 0.9rem;
  color: #1e293b;
}

.abs-search-item span {
  font-size: 0.78rem;
  color: #64748b;
}

.abs-search-empty {
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}

/* ===================================
   TIME SLOTS GRID
   =================================== */
.abs-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.abs-slot-btn {
  padding: 8px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  min-width: 64px;
  text-align: center;
}

.abs-slot-btn:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
}

.abs-slot-btn.selected {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.abs-slots-loading,
.abs-slots-empty,
.abs-slots-error {
  padding: 16px 0;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
}

.abs-slots-error { color: #ef4444; }

/* ===================================
   FORCE OUTSIDE SCHEDULE
   =================================== */
.abs-force-schedule {
  margin-top: 8px;
}

.abs-toggle-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

.abs-toggle-inline input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===================================
   MINI CALENDAR WIDGET
   =================================== */
.abs-mini-cal {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.abs-mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.abs-mini-cal-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.abs-mini-cal-nav {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s;
}

.abs-mini-cal-nav:hover {
  background: #f1f5f9;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.abs-mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.abs-mini-cal-dayname {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  padding: 4px 0;
}

.abs-mini-cal-cell {
  text-align: center;
  padding: 8px 2px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  color: #475569;
}

.abs-mini-cal-cell.empty {
  cursor: default;
}

.abs-mini-cal-cell.past {
  color: #cbd5e1;
  cursor: default;
}

.abs-mini-cal-cell.working {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
}

.abs-mini-cal-cell.working:hover {
  background: #c7d2fe;
}

.abs-mini-cal-cell.off {
  color: #94a3b8;
  background: #f8fafc;
}

.abs-mini-cal-cell.off:hover {
  background: #f1f5f9;
}

.abs-mini-cal-cell.selected {
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
}

.abs-mini-cal-days {
  margin-bottom: 4px;
}

/* ===================================
   STAFF SETTINGS VIEW
   =================================== */

/* Settings sections (reuse profile-app settings styles) */
.abs-staff-shell .abs-settings-section {
  margin-bottom: 28px;
}

.abs-staff-shell .abs-settings-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.abs-staff-shell .abs-settings-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 500px) {
  .abs-staff-shell .abs-settings-form-grid { grid-template-columns: 1fr; }
}

.abs-staff-shell .abs-settings-field { margin-bottom: 10px; }

.abs-staff-shell .abs-settings-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.abs-staff-shell .abs-settings-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.92rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.abs-staff-shell .abs-settings-input:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.abs-staff-shell .abs-settings-input[readonly] {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.abs-staff-shell .abs-settings-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 4px 0 12px;
}

/* Schedule table */
.abs-staff-schedule-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.abs-schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  font-size: 0.88rem;
}

.abs-schedule-row:last-child { border-bottom: none; }

.abs-schedule-header {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.03em;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}

.abs-schedule-day {
  font-weight: 600;
  color: #1e293b;
}

.abs-schedule-off {
  color: #cbd5e1;
}

.abs-schedule-off .abs-schedule-day { color: #cbd5e1; }

.abs-schedule-closed {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.82rem;
}

@media (max-width: 500px) {
  .abs-schedule-row { grid-template-columns: 90px 1fr 1fr; font-size: 0.8rem; }
}

/* Services list */
.abs-staff-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abs-staff-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.abs-staff-service-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.abs-staff-service-meta {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
}

/* Special dates */
.abs-staff-special-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.abs-staff-special-row:last-child { border-bottom: none; }

.abs-staff-special-type {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #6366f1;
  min-width: 90px;
}

.abs-staff-special-reason {
  color: #94a3b8;
  font-style: italic;
}

/* Booking phone display */
.abs-staff-booking-phone {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Contact actions group */
.abs-staff-booking-contact {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

/* Outline button */
.abs-btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  transition: all 0.12s;
}

.abs-btn-outline:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #eef2ff;
}

/* WhatsApp green accent */
.abs-btn-wa { color: #25d366; border-color: #25d366; }
.abs-btn-wa:hover { background: #dcfce7; color: #128c7e; border-color: #128c7e; }

/* ===================================
   SCHEDULE MANAGEMENT VIEW
   =================================== */

/* Tab row */
.abs-sched-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.abs-sched-tab-btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 7px 16px !important;
  transition: all 0.15s ease;
}

/* Working hours summary */
.abs-sched-wh-summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.abs-sched-wh-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.abs-sched-wh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.abs-sched-wh-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

.abs-sched-wh-pill.working {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.abs-sched-wh-pill.off {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.abs-sched-wh-pill strong {
  font-weight: 700;
}

/* Form card */
.abs-sched-form {
  margin-bottom: 20px;
}

.abs-sched-form h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.abs-sched-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.abs-sched-form-row .abs-settings-field {
  flex: 1;
  min-width: 140px;
}

/* Item list */
.abs-sched-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abs-sched-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.abs-sched-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.abs-sched-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.abs-sched-item-date {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.88rem;
  white-space: nowrap;
}

.abs-sched-item-time {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.abs-sched-item-reason,
.abs-sched-item-until {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

/* Type badges */
.abs-sched-item-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.abs-sched-type-holiday {
  background: #fef3c7;
  color: #92400e;
}

.abs-sched-type-closed {
  background: #fee2e2;
  color: #991b1b;
}

.abs-sched-type-special_hours {
  background: #dbeafe;
  color: #1e40af;
}

.abs-sched-type-recurring {
  background: #ede9fe;
  color: #5b21b6;
}

/* Delete button on items */
.abs-sched-delete {
  flex-shrink: 0;
}

/* Empty state */
.abs-sched-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 0.9rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
}

/* Sub-tabs (inside Nueva cita tab) */
.abs-sched-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
}

.abs-sched-subtab {
  flex: 1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.abs-sched-subtab.active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.abs-sched-subtab:hover:not(.active) {
  color: #334155;
}

/* Slot grid (manual blocks toggle) */
.abs-sched-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
}

.abs-sched-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid;
  cursor: pointer;
  transition: all 0.15s ease;
}

.abs-sched-slot.available {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46;
}
.abs-sched-slot.available:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.abs-sched-slot.blocked {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.abs-sched-slot.blocked:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.abs-sched-slot.booked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

.abs-sched-slot:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Day checkboxes (recurring bookings) */
.abs-sched-day-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.abs-sched-day-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}

.abs-sched-day-check:has(input:checked) {
  background: #eef2ff;
  border-color: #818cf8;
  color: #4338ca;
}

/* Custom date tags */
.abs-sched-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.abs-sched-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.abs-sched-tag-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0 2px;
  line-height: 1;
}

/* Reminder cooldown badge */
.abs-reminder-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-left: 4px;
}

.abs-reminder-cooldown {
  color: #f59e0b;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .abs-sched-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .abs-sched-form-row .abs-settings-field {
    min-width: 100%;
  }

  .abs-sched-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .abs-sched-item-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .abs-sched-delete {
    align-self: flex-end;
  }

  .abs-sched-wh-pills {
    gap: 4px;
  }

  .abs-sched-slots-grid {
    gap: 4px;
  }

  .abs-sched-slot {
    min-width: 56px;
    font-size: 0.75rem;
    padding: 5px 8px;
  }
}

/* ── Reschedule / Generic Staff Modal ── */
.abs-staff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: absFadeIn 0.15s ease;
}
.abs-staff-modal {
  background: var(--abs-card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: absSlideUp 0.2s ease;
}
.abs-staff-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--abs-border, #e2e8f0);
}
.abs-staff-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.abs-staff-modal-body {
  padding: 16px 20px;
}
.abs-staff-modal-body .abs-form-group {
  margin-bottom: 14px;
}
.abs-staff-modal-body .abs-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--abs-muted, #64748b);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.abs-staff-modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--abs-border, #e2e8f0);
}
.abs-staff-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.abs-staff-slots-grid .abs-resc-slot {
  min-width: 54px;
  text-align: center;
}
@keyframes absFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes absSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===================================
   COMPLETION MODAL (PREMIUM)
   =================================== */
.abs-staff-modal-overlay.abs-completion-overlay {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.abs-premium-modal {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.abs-completion-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abs-header-content h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.abs-client-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.abs-modal-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-modal-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.abs-completion-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.abs-completion-section {
    margin-bottom: 24px;
}

.abs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.abs-completion-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin: 0;
}

.abs-search-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.85rem;
    width: 180px;
    transition: all 0.2s;
}

.abs-search-pill:focus {
    width: 220px;
    border-color: #6366f1;
    background: #fff;
}

/* Checklist */
.abs-checklist-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.abs-checklist-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-checklist-item:hover {
    background: #f8fafc;
}

.abs-checklist-item.active {
    border-color: #6366f1;
    background: #f5f3ff;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.abs-check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    transition: all 0.2s;
}

.active .abs-check-circle {
    background: #6366f1;
    border-color: #6366f1;
}

.abs-check-label {
    flex: 1;
}

.abs-check-name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
}

.abs-check-price {
    font-size: 0.8rem;
    color: #64748b;
}

/* Custom Extra */
.abs-custom-extra-form {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.abs-form-select-minimal {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #64748b;
    outline: none;
    cursor: pointer;
}

.abs-form-input-minimal {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    padding: 6px 0;
    font-size: 0.9rem;
    flex: 1;
}

.abs-form-input-minimal:focus {
    border-color: #6366f1;
    outline: none;
}

.abs-price-input {
    width: 70px;
    text-align: right;
}

.abs-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-btn-circle:hover {
    background: #0f172a;
    transform: rotate(90deg);
}

.abs-extras-mini-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abs-extra-mini-item {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.abs-remove-mini {
    cursor: pointer;
    color: #94a3b8;
}

.abs-remove-mini:hover {
    color: #ef4444;
}

/* Payment Config */
.abs-payment-config-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.abs-input-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.abs-input-card label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.abs-price-input-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.abs-price-large {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    font-weight: 800;
    width: 100%;
    color: #1e293b;
}

.abs-price-large:focus { outline: none; }

.abs-payment-methods-selector label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
}

.abs-methods-grid {
    display: flex;
    gap: 8px;
}

.abs-method-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.abs-method-option input {
    position: absolute;
    opacity: 0;
}

.abs-method-option span {
    display: block;
    text-align: center;
    padding: 10px 4px;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.abs-method-option input:checked + span {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Summary */
.abs-completion-summary-new {
    background: #1e293b;
    border-radius: 24px;
    padding: 24px;
    color: #fff;
}

.abs-completion-summary-new h4 {
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
}

.abs-summary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.abs-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}

.abs-summary-item.extra { color: #86efac; opacity: 1; }

.abs-summary-total-line {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abs-summary-total-line span:first-child {
    font-weight: 600;
    color: #94a3b8;
}

.abs-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
}

.abs-completion-footer {
    padding: 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.abs-btn-primary-gradient {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s;
}

.abs-btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

@media (max-width: 500px) {
    .abs-checklist-container, .abs-payment-config-grid {
        grid-template-columns: 1fr;
    }
}



/* ===================================
   FLOATING DOCK NAVIGATION (PREMIUM)
   =================================== */
@media (min-width: 769px) {
    .abs-app-tabbar { display: none !important; }
    .abs-staff-shell { padding-bottom: 20px !important; }
}

@media (max-width: 768px) {
    .abs-app-sidebar { display: none !important; }
    
    .abs-app-tabbar {
        position: fixed !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 320px;
        max-width: 95vw;
        height: 64px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 32px !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 10px !important;
        z-index: 2000 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .abs-staff-shell {
        padding-bottom: 120px !important; /* Extra space for pagination to breathe */
    }
}

.abs-app-tabbar .abs-tab {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    gap: 4px !important;
    transition: all 0.2s;
    min-width: 50px !important;
}

.abs-app-tabbar .abs-tab svg {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.2s;
}

.abs-app-tabbar .abs-tab.active {
    color: #4f46e5 !important;
}

.abs-app-tabbar .abs-tab.active svg {
    transform: translateY(-2px);
}

/* Center Highlighted Button (Hero FAB) */
.abs-app-tabbar .abs-tab-new {
    flex: 0 0 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-radius: 50% !important;
    margin-top: -32px !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4) !important;
    border: 4px solid #fff !important;
    color: #fff !important;
    z-index: 2001;
}

.abs-app-tabbar .abs-tab-new svg {
    width: 28px !important;
    height: 28px !important;
    color: #fff !important;
}

.abs-app-tabbar .abs-tab-new span {
    display: none !important; /* Hide label for the hero button */
}

.abs-app-tabbar .abs-tab-new:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.5) !important;
}

/* Scrollable sides on small screens */
@media (max-width: 400px) {
    .abs-app-tabbar {
        min-width: 280px;
        justify-content: flex-start !important;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .abs-app-tabbar::-webkit-scrollbar { display: none; }
}

/* More Menu Popup */
.abs-tab-more {
    position: relative !important;
    cursor: pointer;
}

.abs-tab-more-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    z-index: 2100;
}

.abs-tab-more-menu.is-open {
    display: flex;
    animation: abs-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.abs-tab-more-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.abs-tab-more-menu a:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.abs-tab-more-menu svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}


/* Report Accordion */
.abs-report-accordion {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.abs-report-summary {
    padding: 16px 20px;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}

.abs-report-summary::-webkit-details-marker { display: none; }

.abs-report-summary:hover {
    background: #f1f5f9;
}

.abs-report-accordion[open] .abs-report-summary {
    border-bottom: 1px solid #e2e8f0;
}

.abs-report-accordion[open] .abs-summary-chevron {
    transform: rotate(180deg);
}

.abs-summary-chevron {
    transition: transform 0.3s;
    font-size: 1.2rem;
    color: #94a3b8;
}

.abs-report-accordion .abs-table-responsive {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* ---- Reports View ---- */
/* ---- Reports View ---- */
.abs-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.abs-reports-period-selector {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.abs-reports-period-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-reports-period-btn.active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.abs-revenue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.abs-revenue-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.abs-revenue-card.estimated { border-left: 4px solid #94a3b8; }
.abs-revenue-card.actual { border-left: 4px solid #10b981; }

.abs-revenue-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.abs-revenue-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.abs-revenue-diff {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 6px;
}

.abs-revenue-diff.positive { background: #ecfdf5; color: #10b981; }
.abs-revenue-diff.negative { background: #fef2f2; color: #ef4444; }

.abs-reports-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.abs-report-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
}

.abs-report-widget h4 {
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

/* Mini CSS Charts */
.abs-mini-chart-bar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abs-mini-chart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abs-mini-chart-label {
    width: 80px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abs-mini-chart-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.abs-mini-chart-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.abs-mini-chart-value {
    width: 40px;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

.abs-alert-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #92400e;
    font-size: 0.9rem;
}

.abs-alert-banner svg { color: #f59e0b; flex-shrink: 0; }

.abs-pdf-export-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.abs-pdf-info h3 { margin: 0 0 4px; font-size: 1.1rem; }
.abs-pdf-info p { margin: 0; font-size: 0.85rem; color: #94a3b8; }

.abs-btn-pdf {
    background: #fff;
    color: #1e293b;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-btn-pdf:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #475569;
    color: #94a3b8;
}

.abs-btn-pdf:not(:disabled):hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Schedule Collapsible */
.abs-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.abs-collapsible-header:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.abs-collapsible-header h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #1e293b; }

.abs-collapsible-content {
    display: none;
    padding: 4px 0 16px;
}

.abs-collapsible-content.active {
    display: block;
}

.abs-chevron-icon {
    transition: transform 0.2s;
    color: #94a3b8;
}

.abs-collapsible-header.active .abs-chevron-icon {
    transform: rotate(180deg);
}

/* Loading state for buttons */
.abs-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.abs-btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: abs-spin 0.6s linear infinite;
}

@keyframes abs-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .abs-reports-charts-grid {
        grid-template-columns: 1fr;
    }
    .abs-pdf-export-box {
        flex-direction: column;
        text-align: center;
    }
    .abs-btn-pdf { width: 100%; justify-content: center; }
}
