/* ==========================================================================
   ACRB ADMIN FLEET AVAILABILITY CALENDAR (SCOPED - NO :ROOT, NO GRADIENTS)
   ========================================================================== */

.acrb-cal-wrapper,
.acrb-cal-wrapper *,
.acrb-cal-wrapper *::before,
.acrb-cal-wrapper *::after {
  box-sizing: border-box;
}

.acrb-cal-wrapper {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Topbar Header Banner (Solid Clean Surface - No Gradients)
   -------------------------------------------------------------------------- */
.acrb-cal-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-cal-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-cal-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-cal-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-cal-topbar-meta h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.acrb-cal-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Controls Bar & Filters
   -------------------------------------------------------------------------- */
.acrb-cal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.acrb-cal-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.acrb-cal-select-wrap {
  position: relative;
}

.acrb-cal-select {
  height: 40px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0 36px 0 12px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  line-height: 38px !important;
  font-family: inherit !important;
}

.acrb-cal-select:hover {
  border-color: #94a3b8 !important;
}

.acrb-cal-select:focus {
  border-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-cal-select-car {
  min-width: 220px;
}

.acrb-cal-select-year {
  width: 104px;
}

.acrb-cal-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Year Jump Navigation
   -------------------------------------------------------------------------- */
.acrb-year-jump-group {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 3px;
  height: 40px;
}

.acrb-year-jump-btn {
  padding: 6px 12px;
  text-decoration: none !important;
  color: #475569;
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.acrb-year-jump-btn:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.acrb-year-current-label {
  font-weight: 800;
  padding: 0 10px;
  color: #0f172a;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   12-Month Matrix Grid & Cards
   -------------------------------------------------------------------------- */
.acrb-months-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.acrb-month-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.acrb-month-card:hover {
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.acrb-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.acrb-month-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.acrb-month-name .dashicons {
  color: #4f46e5;
  font-size: 17px;
  width: 17px;
  height: 17px;
}

.acrb-month-year-pill {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Month Calendar Days Grid */
.acrb-month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.acrb-weekday-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acrb-day-cell {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
  position: relative;
}

.acrb-day-cell:hover {
  transform: scale(1.08);
  z-index: 2;
}

.acrb-day-available {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.acrb-day-booked {
  background: #4f46e5;
  color: #ffffff;
  border: 1px solid #4338ca;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.acrb-day-today {
  outline: 2px solid #0f172a;
  outline-offset: 1px;
}

.acrb-day-empty {
  background: transparent;
}

/* --------------------------------------------------------------------------
   Legend Bar
   -------------------------------------------------------------------------- */
.acrb-cal-legend {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  width: fit-content;
  flex-wrap: wrap;
}

.acrb-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.acrb-legend-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.acrb-legend-box-booked {
  background: #4f46e5;
  border: 1px solid #4338ca;
}

.acrb-legend-box-available {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.acrb-legend-box-today {
  background: #ffffff;
  border: 2px solid #0f172a;
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 782px) {
  .acrb-cal-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .acrb-cal-controls {
    width: 100%;
  }
  .acrb-cal-filter-form {
    width: 100%;
    flex-wrap: wrap;
  }
  .acrb-cal-select-car {
    width: 100%;
    min-width: 100%;
  }
}