/* ==========================================================================
   AWESOME CAR RENTAL - COMPLETE ADMIN FLEET MAINTENANCE STYLESHEET
   Location: assets/css/admin/admin-maintenance.css
   Covers: Main Controller, Sub-Navigation Pills, List Table, Status Pills, View Dossier & Add/Edit Form
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESET & BASE WRAPPERS
   -------------------------------------------------------------------------- */
.acrb-maint-wrapper,
.acrb-maint-wrapper *,
.acrb-maint-wrapper *::before,
.acrb-maint-wrapper *::after,
.acrb-maint-nav-wrapper,
.acrb-maint-nav-wrapper *,
.acrb-maint-nav-wrapper *::before,
.acrb-maint-nav-wrapper *::after,
.acrb-table-wrap,
.acrb-table-wrap *,
.acrb-table-wrap *::before,
.acrb-table-wrap *::after,
.acrb-maint-view-grid,
.acrb-maint-view-grid *,
.acrb-maint-view-grid *::before,
.acrb-maint-view-grid *::after,
.acrb-maint-card,
.acrb-maint-card *,
.acrb-maint-card *::before,
.acrb-maint-card *::after {
  box-sizing: border-box;
}

.acrb-maint-wrapper {
  width: 100%;
  max-width: 1100px;
  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 & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.acrb-maint-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-maint-topbar-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acrb-maint-topbar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
  flex-shrink: 0;
}

.acrb-maint-topbar-icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.acrb-maint-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-maint-topbar-meta p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.acrb-maint-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.acrb-maint-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   3. SUB-NAVIGATION PILL STRIP
   -------------------------------------------------------------------------- */
.acrb-maint-nav-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.acrb-maint-nav-item {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.acrb-maint-nav-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.15s ease;
}

.acrb-maint-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-maint-nav-item:hover .dashicons {
  color: #0f172a;
}

.acrb-maint-nav-item.is-active {
  background: #eff6ff;
  color: #4f46e5;
  border-color: #c7d2fe;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.acrb-maint-nav-item.is-active .dashicons {
  color: #4f46e5;
}

.acrb-maint-nav-label {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. FLEET MAINTENANCE DATATABLE LIST VIEW & STATUS PILLS
   -------------------------------------------------------------------------- */
.acrb-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.acrb-maint-table {
  width: 100% !important;
  border-collapse: collapse;
}

.acrb-maint-table th,
.acrb-maint-table td {
  vertical-align: middle;
  padding: 12px 16px;
}

.acrb-maint-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0;
}

.acrb-maint-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 13px;
}

.acrb-maint-table tbody tr:hover {
  background-color: #fcfdfe;
}

.acrb-maint-th-actions {
  text-align: right !important;
  width: 110px;
}

.acrb-maint-car-name {
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
}

.acrb-maint-type-badge {
  background: #eff6ff;
  color: #4f46e5;
  border: 1px solid #dbeafe;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  white-space: nowrap;
}

.acrb-maint-cost-val {
  white-space: nowrap;
  color: #059669;
  font-weight: 700;
  font-size: 13.5px;
}

.acrb-maint-date-val {
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.acrb-status-pill {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  white-space: nowrap;
}

.acrb-status-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.acrb-status-in-progress {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.acrb-status-completed {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.acrb-maint-cell-actions {
  text-align: right !important;
}

.acrb-maint-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.acrb-table-wrap .acrb-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.acrb-table-wrap .acrb-btn-action:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.acrb-table-wrap .acrb-btn-action .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

.acrb-table-wrap .acrb-btn-delete {
  color: #dc2626 !important;
  border-color: #fee2e2 !important;
  background: #fff5f5 !important;
}

.acrb-table-wrap .acrb-btn-delete:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

.acrb-maint-empty {
  text-align: center;
  padding: 44px 20px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. MAINTENANCE RECORD VIEW DOSSIER & PANEL
   -------------------------------------------------------------------------- */
.acrb-maint-view-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.acrb-maint-view-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.acrb-maint-dossier {
  text-align: center;
}

.acrb-maint-avatar-wrap {
  width: 72px;
  height: 72px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  border: 2px solid #e0e7ff;
}

.acrb-maint-avatar-wrap .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acrb-maint-view-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.acrb-maint-view-type {
  background: #eff6ff;
  color: #4f46e5;
  border: 1px solid #dbeafe;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

.acrb-maint-meta-list {
  margin-top: 20px;
  text-align: left;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.acrb-maint-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.acrb-maint-meta-label {
  color: #64748b;
  font-weight: 500;
}

.acrb-maint-meta-val {
  color: #0f172a;
  font-weight: 700;
}

.acrb-maint-meta-cost {
  color: #059669;
  font-weight: 700;
  font-size: 14px;
}

.acrb-maint-view-actions {
  margin-top: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acrb-maint-btn-edit {
  background: #4f46e5;
  color: #ffffff !important;
  border: none;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease;
}

.acrb-maint-btn-edit:hover {
  background: #4338ca;
  color: #ffffff !important;
}

.acrb-maint-btn-edit .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.acrb-maint-btn-back {
  color: #64748b !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  transition: color 0.15s ease;
}

.acrb-maint-btn-back:hover {
  color: #0f172a !important;
}

.acrb-maint-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.acrb-maint-details-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.acrb-maint-details-heading {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acrb-maint-details-text {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

.acrb-maint-notfound {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. MAINTENANCE ADD / EDIT FORM CARD
   -------------------------------------------------------------------------- */
.acrb-maint-card {
  max-width: 820px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.acrb-maint-header-title {
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.acrb-maint-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.acrb-maint-form-group {
  margin-bottom: 18px;
}

.acrb-maint-form-group-full {
  margin-bottom: 22px;
}

.acrb-maint-label {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.acrb-maint-input,
.acrb-maint-select,
.acrb-maint-textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.acrb-maint-input,
.acrb-maint-select {
  height: 42px !important;
  line-height: 20px !important;
}

.acrb-maint-textarea {
  line-height: 1.5 !important;
  resize: vertical;
}

.acrb-maint-input:hover,
.acrb-maint-select:hover,
.acrb-maint-textarea:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-maint-input:focus,
.acrb-maint-select:focus,
.acrb-maint-textarea:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

.acrb-maint-btn-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.acrb-maint-btn-submit {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.acrb-maint-btn-submit:hover {
  background: #4338ca;
  color: #ffffff;
  transform: translateY(-1px);
}

.acrb-maint-btn-submit .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

.acrb-maint-btn-cancel {
  color: #64748b;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.acrb-maint-btn-cancel:hover {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 782px) {
  .acrb-maint-topbar-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .acrb-maint-view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .acrb-maint-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}