/* ==========================================================================
   AWESOME CAR RENTAL - COMPLETE ADMIN BOOKINGS STYLESHEET
   Location: assets/css/admin/bookings.css
   Covers: Router, DataTables List View, Edit Form & Dossier Detail View
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE CONTAINERS
   -------------------------------------------------------------------------- */
.acrb-dash-wrap,
.acrb-dash-wrap *,
.acrb-dash-wrap *::before,
.acrb-dash-wrap *::after,
.acrb-edit-shell,
.acrb-edit-shell *,
.acrb-edit-shell *::before,
.acrb-edit-shell *::after,
.acrb-dossier-wrap,
.acrb-dossier-wrap *,
.acrb-dossier-wrap *::before,
.acrb-dossier-wrap *::after {
  box-sizing: border-box;
}

.acrb-dash-wrap,
.acrb-edit-shell,
.acrb-dossier-wrap {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   2. TOPBAR HEADER BANNER & ROUTER METRICS
   -------------------------------------------------------------------------- */
.acrb-dash-wrap .acrb-topbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-dash-wrap .acrb-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-dash-wrap .acrb-topbar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acrb-dash-wrap .acrb-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-dash-wrap .acrb-topbar-text h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acrb-dash-wrap .acrb-topbar-text p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-dash-wrap .acrb-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acrb-dash-wrap .acrb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.acrb-dash-wrap .acrb-stat-pill strong {
  color: #0f172a;
  font-weight: 800;
}

.acrb-dash-wrap .acrb-stat-divider {
  color: #cbd5e1;
  margin: 0 4px;
}

.acrb-dash-wrap .acrb-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
  height: auto !important;
  line-height: normal !important;
}

.acrb-dash-wrap .acrb-topbar-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.acrb-dash-wrap .acrb-topbar-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.acrb-dash-wrap .acrb-notice {
  margin: 0 0 20px 0;
  border-radius: 8px;
}

.acrb-dash-wrap .acrb-main-container {
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. DATATABLES BOOKINGS LIST VIEW
   -------------------------------------------------------------------------- */
.acrb-dash-wrap .acrb-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow-x: auto;
}

.acrb-dash-wrap table.acrb-datatable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
}

.acrb-dash-wrap table.acrb-datatable thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.acrb-dash-wrap table.acrb-datatable thead th.acrb-col-actions,
.acrb-dash-wrap table.acrb-datatable tbody td.acrb-col-actions {
  text-align: right;
}

.acrb-dash-wrap table.acrb-datatable tbody td {
  padding: 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: #1e293b;
}

.acrb-dash-wrap table.acrb-datatable tbody tr:last-child td {
  border-bottom: none;
}

.acrb-dash-wrap table.acrb-datatable tbody tr:hover td {
  background: #f8fafc;
}

.acrb-dash-wrap .acrb-id-badge {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.acrb-dash-wrap .acrb-client-name {
  color: #0f172a;
  font-weight: 800;
  font-size: 13.5px;
}

.acrb-dash-wrap .acrb-client-email {
  color: #64748b;
  font-size: 12px;
  display: inline-block;
  margin-top: 2px;
}

.acrb-dash-wrap .acrb-car-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 13.5px;
}

.acrb-dash-wrap .acrb-ref-tag {
  color: #64748b;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}

.acrb-dash-wrap .acrb-price-display {
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
}

/* Status Labels */
.acrb-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acrb-status.status-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.acrb-status.status-confirmed,
.acrb-status.status-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.acrb-status.status-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.acrb-status.status-cancelled {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Action Icon Buttons */
.acrb-dash-wrap .acrb-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.acrb-dash-wrap .acrb-btn-action {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.acrb-dash-wrap .acrb-btn-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.acrb-dash-wrap .acrb-btn-action .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.acrb-dash-wrap .acrb-btn-delete {
  color: #dc2626 !important;
}

.acrb-dash-wrap .acrb-btn-delete:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

.acrb-dash-wrap .acrb-empty-cell {
  text-align: center;
  padding: 40px !important;
  color: #64748b;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. BOOKING EDIT PANEL & FORM SYSTEM
   -------------------------------------------------------------------------- */
.acrb-edit-shell .acrb-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.acrb-edit-shell .acrb-main-col,
.acrb-edit-shell .acrb-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.acrb-edit-shell .acrb-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.acrb-edit-shell .acrb-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.acrb-edit-shell .acrb-panel-head .dashicons {
  color: #4f46e5;
  font-size: 19px;
  width: 19px;
  height: 19px;
}

.acrb-edit-shell .acrb-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.acrb-edit-shell .acrb-panel-body {
  padding: 22px 20px;
}

.acrb-edit-shell .acrb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.acrb-edit-shell .acrb-form-group {
  display: flex;
  flex-direction: column;
}

.acrb-edit-shell .acrb-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.acrb-edit-shell .acrb-field {
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background: #f8fafc !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  font-family: inherit !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

.acrb-edit-shell .acrb-field:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-edit-shell .acrb-field:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-edit-shell .acrb-select-wrap {
  position: relative;
  width: 100%;
}

.acrb-edit-shell .acrb-select-wrap select.acrb-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  cursor: pointer;
}

.acrb-edit-shell .acrb-select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrb-edit-shell .mb-18 {
  margin-bottom: 18px;
}

.acrb-edit-shell .mt-18 {
  margin-top: 18px;
}

.acrb-edit-shell .acrb-btn-save {
  width: 100%;
  height: 42px;
  background: #4f46e5;
  border: 1px solid #4f46e5;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.acrb-edit-shell .acrb-btn-save:hover {
  background: #4338ca;
  border-color: #4338ca;
  transform: translateY(-1px);
}

.acrb-edit-shell .acrb-btn-save .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
  line-height: 17px;
}

.acrb-edit-shell-notice {
  margin: 0 0 20px 0 !important;
}

/* --------------------------------------------------------------------------
   5. BOOKING DETAILS DOSSIER VIEW
   -------------------------------------------------------------------------- */
.acrb-dossier-wrap .acrb-summary-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  gap: 16px;
  flex-wrap: wrap;
}

.acrb-dossier-wrap .acrb-client-badge-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acrb-dossier-wrap .acrb-client-initial {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrb-dossier-wrap .acrb-client-meta h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.acrb-dossier-wrap .acrb-log-timestamp {
  font-size: 12px;
  color: #64748b;
  margin-left: 8px;
}

.acrb-dossier-wrap .acrb-amount-callout {
  text-align: right;
}

.acrb-dossier-wrap .acrb-amount-callout-lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.acrb-dossier-wrap .acrb-amount-callout-val {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  display: block;
  margin-bottom: 6px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.acrb-dossier-wrap .acrb-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acrb-dossier-wrap .acrb-status-badge.status-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.acrb-dossier-wrap .acrb-status-badge.status-confirmed,
.acrb-dossier-wrap .acrb-status-badge.status-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.acrb-dossier-wrap .acrb-status-badge.status-active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.acrb-dossier-wrap .acrb-status-badge.status-cancelled {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.acrb-dossier-wrap .acrb-dossier-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.acrb-dossier-wrap .acrb-dossier-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acrb-dossier-wrap .acrb-dossier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.acrb-dossier-wrap .acrb-card-heading {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.acrb-dossier-wrap .acrb-card-heading h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acrb-dossier-wrap .acrb-card-heading .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.acrb-dossier-wrap .acrb-icon-indigo {
  color: #4f46e5;
}

.acrb-dossier-wrap .acrb-icon-emerald {
  color: #059669;
}

.acrb-dossier-wrap .acrb-route-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 12px;
}

.acrb-dossier-wrap .acrb-flow-step {
  display: flex;
  flex-direction: column;
}

.acrb-dossier-wrap .acrb-flow-step.text-right {
  text-align: right;
}

.acrb-dossier-wrap .acrb-flow-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.acrb-dossier-wrap .acrb-flow-date {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 800;
}

.acrb-dossier-wrap .acrb-flow-loc {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
  font-weight: 600;
}

.acrb-dossier-wrap .acrb-route-mid {
  text-align: center;
}

.acrb-dossier-wrap .acrb-duration-pill {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-block;
  white-space: nowrap;
}

.acrb-dossier-wrap .acrb-dossier-table {
  width: 100%;
  border-collapse: collapse;
}

.acrb-dossier-wrap .acrb-dossier-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.acrb-dossier-wrap .acrb-dossier-table tr:last-child {
  border-bottom: none;
}

.acrb-dossier-wrap .acrb-dossier-table td {
  padding: 12px 0;
  font-size: 13.5px;
  vertical-align: middle;
}

.acrb-dossier-wrap .acrb-item-main-lbl {
  color: #334155;
  font-weight: 700;
}

.acrb-dossier-wrap .acrb-item-sub-lbl {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

.acrb-dossier-wrap .acrb-val-col {
  text-align: right;
  font-weight: 800;
  color: #0f172a;
}

.acrb-dossier-wrap .acrb-val-included {
  text-align: right;
  font-weight: 800;
  color: #2563eb;
}

.acrb-dossier-wrap .acrb-promo-row td {
  color: #059669;
}

.acrb-dossier-wrap .acrb-val-promo {
  text-align: right;
  font-weight: 900;
  color: #059669;
}

.acrb-dossier-wrap .acrb-vehicle-frame {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.acrb-dossier-wrap .acrb-vehicle-thumb {
  width: 70px;
  height: 50px;
  min-width: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: block;
}

.acrb-dossier-wrap .acrb-vehicle-placeholder {
  width: 70px;
  height: 50px;
  min-width: 70px;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.acrb-dossier-wrap .acrb-vehicle-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.acrb-dossier-wrap .acrb-vehicle-id-tag {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.acrb-dossier-wrap .acrb-data-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acrb-dossier-wrap .acrb-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  border-bottom: 1px solid #f8fafc;
  padding-bottom: 8px;
}

.acrb-dossier-wrap .acrb-data-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.acrb-dossier-wrap .acrb-data-lbl {
  color: #64748b;
  font-weight: 600;
}

.acrb-dossier-wrap .acrb-data-val {
  color: #1e293b;
  font-weight: 700;
}

.acrb-dossier-wrap .acrb-data-val-accent {
  color: #2563eb;
  font-weight: 800;
}

.acrb-dossier-wrap .acrb-comms-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acrb-dossier-wrap .acrb-comms-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s ease;
}

.acrb-dossier-wrap .acrb-comms-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.acrb-dossier-wrap .acrb-comms-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.acrb-dossier-wrap .acrb-btn-wa {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.acrb-dossier-wrap .acrb-btn-wa:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.acrb-dossier-wrap .acrb-btn-wa .dashicons {
  color: #059669;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .acrb-edit-shell .acrb-grid-layout,
  .acrb-dossier-wrap .acrb-dossier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .acrb-dash-wrap .acrb-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .acrb-dash-wrap .acrb-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .acrb-edit-shell .acrb-form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .acrb-dossier-wrap .acrb-summary-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .acrb-dossier-wrap .acrb-amount-callout {
    text-align: left;
    margin-top: 14px;
  }
  .acrb-dossier-wrap .acrb-route-flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .acrb-dossier-wrap .acrb-flow-step.text-right {
    text-align: left;
  }
}