/* Page shell */
.customer-dash{
  --customer-nav-height: 86px;
  --customer-sidebar-width: 300px;
  padding: 0;
  background: #f3f6fb;
  height: calc(100dvh - var(--customer-nav-height));
  overflow: hidden;
}

.customer-dash-container{
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.customer-dash-row{
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  height: calc(100dvh - var(--customer-nav-height));
  min-height: 0;
}

.customer-dash .dash-card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.customer-dash .dash-card--side{
  min-height: calc(100dvh - var(--customer-nav-height));
  position: sticky;
  top: 0;
  height: calc(100dvh - var(--customer-nav-height));
  max-height: calc(100dvh - var(--customer-nav-height));
  overflow: hidden;
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
  padding: 18px;
}

.customer-dash .dash-card--main{
  height: calc(100dvh - var(--customer-nav-height));
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  padding: 22px;
}

@media (min-width: 992px){
  body.customer-dashboard-lock{
    overflow: hidden;
  }

  .customer-dash-row > .col-lg-3{
    width: var(--customer-sidebar-width);
    flex: 0 0 var(--customer-sidebar-width);
  }

  .customer-dash-row > .col-lg-9{
    width: calc(100% - var(--customer-sidebar-width));
    flex: 0 0 calc(100% - var(--customer-sidebar-width));
    margin-left: var(--customer-sidebar-width);
  }

  .customer-dash .dash-card--side{
    position: fixed;
    left: 0;
    top: var(--customer-nav-height);
    bottom: 0;
    width: var(--customer-sidebar-width);
    height: calc(100dvh - var(--customer-nav-height));
    max-height: calc(100dvh - var(--customer-nav-height));
    z-index: 20;
  }
}

@media (max-width: 991px){
  .customer-dash{
    height: auto;
    min-height: calc(100vh - var(--customer-nav-height));
    overflow: visible;
  }

  .customer-dash-row{
    height: auto;
    min-height: auto;
  }

  .customer-dash .dash-card--side,
  .customer-dash .dash-card--main{
    min-height: auto;
    position: static;
    max-height: none;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-left: 0;
    padding: 16px;
  }
}

/* Sidebar */
.dash-side{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dash-user{
  display:flex;
  gap:12px;
  align-items:center;
  padding-bottom:14px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.dash-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  background:#eef2ff;
  color:#1e40af;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.dash-user-name{ font-weight:800; line-height:1.1; }
.dash-user-email{ font-size:12px; color:#6b7280; }

.dash-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.dash-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  color:#111827;
  background:transparent;
}

.dash-link i{
  width:18px;
  text-align:center;
  opacity:.75;
}

.dash-link:hover{ background:#f3f4f6; }

.dash-link.active{
  background:#2563eb;
  color:#fff;
}

.dash-link.active i{ opacity:1; }

.dash-badge{
  margin-left:auto;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:3px 8px;
  border-radius:999px;
}

.dash-logout{
  margin-top:6px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.06);
}

.dash-logout-btn{
  width:100%;
  border:1px solid rgba(239,68,68,.35);
  background:transparent;
  color:#b91c1c;
  padding:10px 12px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
}


.dash-logout-btn:hover{
  background:rgba(239,68,68,.06);
}

/* =========================================================
   CUSTOMER DASHBOARD – ORDERS PAGE
   Used by: customerdashboard/orders.blade.php
========================================================= */

/* Order card wrapper */
.order-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

/* Top section */
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.order-id {
  font-size: 14px;
  font-weight: 600;
}

/* Meta row */
.order-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-meta i {
  opacity: .7;
  margin-right: 4px;
}

.dot {
  opacity: .5;
}

/* Right column */
.order-right {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Status pill */
.pill {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pill-delivered {
  background: #fef3c7;
  color: #92400e;
}

.pill-paid {
  background: #dcfce7;
  color: #166534;
}

.pill-pending {
  background: #e5e7eb;
  color: #374151;
}

.pill-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* Total amount */
.order-total {
  text-align: right;
}

.order-total .label {
  font-size: 11px;
  color: #6b7280;
}

.order-total .value {
  font-size: 18px;
  font-weight: 900;
}

/* Items list */
.order-items {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.06);
}

.order-item-title {
  font-size: 13px;
  font-weight: 800;
}

.order-item-sub {
  font-size: 12px;
  color: #6b7280;
}

/* View button */
.order-card .btn {
  border-radius: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
  .order-top {
    flex-direction: column;
  }

  .order-right {
    justify-content: space-between;
  }

  .order-total {
    text-align: left;
  }
}
/* Scroll area inside dashboard content */
.orders-scroll{
  max-height: 68vh;   /* scroll in content area */
  overflow: auto;
  padding-right: 6px; /* avoids scrollbar overlay */
}

/* nicer scrollbar (optional) */
.orders-scroll::-webkit-scrollbar{ width: 10px; }
.orders-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}
.orders-scroll::-webkit-scrollbar-track{ background: transparent; }

/* Card shades by status */
.order-card--delivered{
  background: #fffaf0; /* warm */
  border-color: rgba(146, 64, 14, .18);
}
.order-card--paid{
  background: #f6fffb; /* greenish */
  border-color: rgba(22, 101, 52, .18);
}
.order-card--pending{
  background: #f8fafc; /* neutral */
  border-color: rgba(55, 65, 81, .16);
}
.order-card--cancelled{
  background: #fff5f5; /* red tint */
  border-color: rgba(153, 27, 27, .18);
}

/* Pagination arrows too big fix (safe) */
.pagination .page-link{
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: .35rem .6rem !important;
}

/* Dashboard pagination color fix */
.customer-dash .pagination .page-link{
  color: #2563eb !important;        /* blue */
  border-color: rgba(0,0,0,.12);
}

.customer-dash .pagination .page-item.active .page-link{
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.customer-dash .pagination .page-item.disabled .page-link{
  color: #9ca3af !important;
}

/* remove weird focus glow if any */
.customer-dash .pagination .page-link:focus{
  box-shadow: none !important;
}

/* =========================================================
   CUSTOMER DASHBOARD - ORDERS TABLE VIEW
========================================================= */

.orders-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.orders-eyebrow{
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.orders-title{
  margin:2px 0 4px;
  color:#0f172a;
  font-size:28px;
  font-weight:900;
}

.orders-subtitle{
  margin:0;
  color:#64748b;
  font-size:14px;
}

.orders-new-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(37,99,235,.24);
  background:#2563eb;
  color:#fff;
  text-decoration:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
  white-space:nowrap;
}

.orders-new-btn:hover{
  background:#1d4ed8;
  color:#fff;
}

.orders-filter-panel{
  background:linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border:1px solid rgba(37,99,235,.12);
  border-radius:16px;
  box-shadow:0 16px 36px rgba(15,23,42,.07);
  margin-bottom:18px;
  padding:14px;
}

.orders-search-wrap{
  position:relative;
  display:flex;
  align-items:center;
  min-height:46px;
  background:#fff;
  border:1px solid rgba(37,99,235,.18);
  border-radius:14px;
  overflow:hidden;
}

.orders-search-wrap > i{
  position:absolute;
  left:15px;
  color:#2563eb;
  font-size:15px;
  pointer-events:none;
}

.orders-search-wrap input{
  width:100%;
  min-height:46px;
  border:0;
  outline:0;
  background:transparent;
  color:#0f172a;
  font-size:14px;
  font-weight:700;
  padding:11px 46px 11px 42px;
}

.orders-search-wrap input::placeholder{
  color:#94a3b8;
  font-weight:600;
}

.orders-search-clear{
  position:absolute;
  right:10px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#64748b;
  background:#f1f5f9;
  text-decoration:none;
}

.orders-search-clear:hover{
  background:#fee2e2;
  color:#991b1b;
}

.orders-filter-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(130px, 1fr));
  gap:10px;
  margin-top:12px;
}

.orders-filter-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:0;
}

.orders-filter-field span{
  color:#1e3a8a;
  font-size:11px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.orders-filter-field select{
  width:100%;
  min-height:40px;
  border:1px solid rgba(37,99,235,.16);
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  font-size:13px;
  font-weight:800;
  outline:0;
  padding:8px 10px;
}

.orders-filter-field select:focus,
.orders-search-wrap:focus-within{
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.orders-filter-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.orders-filter-btn,
.orders-reset-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  padding:8px 13px;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}

.orders-filter-btn{
  border:1px solid #2563eb;
  background:#2563eb;
  color:#fff;
  box-shadow:0 10px 20px rgba(37,99,235,.18);
}

.orders-filter-btn:hover{
  background:#1d4ed8;
}

.orders-reset-btn{
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#475569;
}

.orders-reset-btn:hover{
  color:#0f172a;
  background:#f8fafc;
}

.orders-filter-count{
  margin-left:auto;
  color:#64748b;
  font-size:12px;
  font-weight:800;
}

.orders-table-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  box-shadow:0 16px 36px rgba(15,23,42,.07);
  overflow:hidden;
}

.orders-table-scroll{
  width:100%;
  overflow:auto;
}

.orders-table{
  width:100%;
  min-width:1080px;
  border-collapse:separate;
  border-spacing:0;
}

.orders-table th{
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:13px 14px;
  border-bottom:1px solid rgba(37,99,235,.14);
  white-space:nowrap;
}

.orders-table td{
  padding:14px;
  vertical-align:middle;
  border-bottom:1px solid rgba(15,23,42,.08);
  color:#0f172a;
  font-size:14px;
}

.orders-table tbody tr:last-child td{
  border-bottom:0;
}

.orders-row:hover td{
  background:#f8fbff;
}

.orders-ref{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
}

.orders-strong{
  font-weight:800;
  color:#0f172a;
}

.orders-muted{
  color:#64748b;
  font-size:12px;
}

.orders-address{
  color:#475569;
  font-size:12px;
  line-height:1.35;
  max-width:230px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.orders-items-cell{
  min-width:280px;
}

.orders-item-summary{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.orders-item-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  max-width:310px;
}

.orders-item-name{
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.orders-item-qty{
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  flex:0 0 auto;
}

.orders-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}

.orders-pill--success{
  background:#dcfce7;
  color:#166534;
}

.orders-pill--blue{
  background:#dbeafe;
  color:#1d4ed8;
}

.orders-pill--warning{
  background:#fef3c7;
  color:#92400e;
}

.orders-pill--danger{
  background:#fee2e2;
  color:#991b1b;
}

.orders-pill--muted{
  background:#e5e7eb;
  color:#374151;
}

.orders-total{
  color:#0f172a;
  font-size:16px;
  font-weight:900;
  white-space:nowrap;
}

.orders-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.orders-icon-btn{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(37,99,235,.18);
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:10px;
  text-decoration:none;
}

.orders-icon-btn:hover{
  background:#2563eb;
  color:#fff;
}

.orders-empty{
  display:flex;
  align-items:center;
  gap:16px;
  background:#eff6ff;
  border:1px solid rgba(37,99,235,.16);
  border-radius:14px;
  padding:18px;
}

.orders-empty-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#2563eb;
  color:#fff;
  font-size:20px;
  flex:0 0 auto;
}

.orders-empty h5{
  margin:0 0 4px;
  font-weight:900;
}

.orders-empty p{
  margin:0 0 4px;
  color:#64748b;
}

.orders-empty a{
  color:#1d4ed8;
  font-weight:800;
}

.order-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.order-detail-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}

.order-detail-shell{
  width:100%;
}

.order-detail-summary{
  display:grid;
  grid-template-columns:minmax(260px, 1.4fr) repeat(3, minmax(140px, .7fr));
  gap:14px;
  align-items:stretch;
  margin-bottom:18px;
}

.order-detail-summary-main,
.order-detail-stat{
  background:linear-gradient(135deg, #ffffff, #f8fbff);
  border:1px solid rgba(37,99,235,.12);
  border-radius:16px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  padding:16px;
}

.order-detail-summary-main{
  display:flex;
  align-items:center;
  gap:14px;
}

.order-detail-summary-icon{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#2563eb;
  color:#fff;
  box-shadow:0 12px 24px rgba(37,99,235,.24);
  font-size:20px;
  flex:0 0 auto;
}

.order-detail-ref{
  color:#0f172a;
  font-size:20px;
  font-weight:900;
  line-height:1.2;
}

.order-detail-stat{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}

.order-detail-stat strong{
  color:#0f172a;
  font-size:15px;
}

.order-detail-total{
  color:#1d4ed8 !important;
  font-size:20px !important;
}

.order-detail-card{
  background:#fff;
  border-color:rgba(15,23,42,.08) !important;
  border-radius:14px !important;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.08);
  padding:18px;
  margin-bottom:18px;
}

.order-detail-card-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  color:#0f172a;
  font-size:16px;
  font-weight:900;
}

.order-detail-card-title i{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#eff6ff;
  color:#2563eb;
  flex:0 0 auto;
}

.order-detail-shell .table-responsive{
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  overflow:auto;
}

.order-detail-shell .table{
  margin-bottom:0;
}

.order-detail-shell .table thead th{
  background:#eff6ff;
  color:#1e3a8a;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(37,99,235,.14);
  white-space:nowrap;
}

.order-detail-shell .table tbody td{
  vertical-align:middle;
}

.order-detail-shell .list-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.order-detail-shell .list-group-item{
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:#f8fbff;
}

@media (max-width: 991px){
  .orders-page-head{
    align-items:stretch;
    flex-direction:column;
  }

  .orders-title{
    font-size:24px;
  }

  .orders-new-btn{
    justify-content:center;
  }

  .orders-filter-panel{
    padding:12px;
  }

  .orders-filter-grid{
    grid-template-columns:1fr 1fr;
  }

  .orders-filter-count{
    width:100%;
    margin-left:0;
  }

  .orders-table-card{
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:visible;
  }

  .orders-table-scroll{
    overflow:visible;
  }

  .orders-table{
    min-width:0;
    border-collapse:collapse;
  }

  .orders-table thead{
    display:none;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td{
    display:block;
    width:100%;
  }

  .orders-row{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:14px;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
    margin-bottom:14px;
    overflow:hidden;
  }

  .orders-table td{
    display:grid;
    grid-template-columns:118px minmax(0, 1fr);
    gap:12px;
    align-items:start;
    padding:11px 14px;
    border-bottom:1px solid rgba(15,23,42,.07);
    text-align:left !important;
  }

  .orders-table td::before{
    content:attr(data-label);
    color:#64748b;
    font-size:11px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
  }

  .orders-table td:last-child{
    border-bottom:0;
  }

  .orders-row:hover td{
    background:transparent;
  }

  .orders-address,
  .orders-item-line{
    max-width:none;
  }

  .orders-actions{
    justify-content:flex-start;
  }

  .order-detail-head{
    flex-direction:column;
    align-items:stretch;
  }

  .order-detail-head-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .order-detail-summary{
    grid-template-columns:1fr;
  }

  .order-detail-shell .d-flex.justify-content-between.align-items-center{
    align-items:stretch !important;
    flex-direction:column;
    gap:10px;
  }
}


/* =========================================================
   NOTIFICATIONS PAGE
========================================================= */

.notif-scroll{
  max-height: 68vh;
  overflow: auto;
  padding-right: 6px;
}

.notif-scroll::-webkit-scrollbar{ width: 10px; }
.notif-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.12);
  border-radius: 999px;
}
.notif-scroll::-webkit-scrollbar-track{ background: transparent; }

.notif-item{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.notif-item.is-unread{
  background: #f8fafc;
  border-color: rgba(37,99,235,.18);
}

.notif-left{ min-width: 0; }
.notif-title{
  font-weight: 900;
  font-size: 14px;
  color: #111827;
}

.notif-message{
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

.notif-time{
  margin-top: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.notif-right{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.notif-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#2563eb;
  display:inline-block;
  margin-top: 6px;
}

/* Dashboard pagination color fix (keeps it from orange) */
.customer-dash .pagination .page-link{
  color: #2563eb !important;
  border-color: rgba(0,0,0,.12);
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: .35rem .6rem !important;
}

.customer-dash .pagination .page-item.active .page-link{
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.customer-dash .pagination .page-item.disabled .page-link{
  color: #9ca3af !important;
}

.customer-dash .pagination .page-link:focus{
  box-shadow: none !important;
}

@media (max-width: 991px){
  .notif-item{
    flex-direction: column;
  }
  .notif-right{
    justify-content:flex-end;
  }
}

@media (max-width: 560px){
  .orders-filter-grid{
    grid-template-columns:1fr;
  }

  .orders-filter-actions{
    align-items:stretch;
    flex-direction:column;
  }

  .orders-filter-btn,
  .orders-reset-btn{
    width:100%;
  }
}

/* =========================================================
   CUSTOMER DASHBOARD - MY VEHICLE
========================================================= */

.vehicles-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
.vehicles-eyebrow{color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.vehicles-title{margin:2px 0 4px;color:#0f172a;font-size:28px;font-weight:900;}
.vehicles-subtitle{margin:0;color:#64748b;font-size:14px;}
.vehicles-add-btn{border:1px solid rgba(37,99,235,.24);background:#2563eb;color:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;font-weight:900;text-decoration:none;box-shadow:0 12px 24px rgba(37,99,235,.18);white-space:nowrap;}
.vehicles-add-btn:hover{background:#1d4ed8;color:#fff;}
.vehicles-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.vehicles-table-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px;box-shadow:0 16px 36px rgba(15,23,42,.07);overflow:hidden;}
.vehicles-table-scroll{width:100%;overflow:auto;}
.vehicles-table{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;}
.vehicles-table th{background:#eff6ff;color:#1e3a8a;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;padding:13px 14px;border-bottom:1px solid rgba(37,99,235,.14);white-space:nowrap;}
.vehicles-table td{padding:14px;vertical-align:middle;border-bottom:1px solid rgba(15,23,42,.08);color:#0f172a;font-size:14px;}
.vehicles-table tbody tr:last-child td{border-bottom:0;}
.vehicles-row:hover td{background:#f8fbff;}
.vehicles-strong{font-weight:800;color:#0f172a;white-space:nowrap;}
.vehicles-notes-cell{max-width:220px;color:#475569;font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.vehicle-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;box-shadow:0 16px 36px rgba(15,23,42,.07);padding:14px;overflow:hidden;}
.vehicle-card-media{min-height:150px;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#dbeafe);overflow:hidden;}
.vehicle-card-media img,.vehicle-placeholder{width:100%;height:100%;min-height:150px;object-fit:cover;}
.vehicle-placeholder{display:flex;align-items:center;justify-content:center;color:#1d4ed8;font-size:34px;}
.vehicle-card-body{min-width:0;}
.vehicle-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;}
.vehicle-rego{color:#0f172a;font-size:20px;font-weight:900;line-height:1.1;}
.vehicle-muted{color:#64748b;font-size:12px;font-weight:700;}
.vehicles-pill{border-radius:999px;display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:5px 10px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;}
.vehicles-pill--success{background:#dcfce7;color:#166534;}
.vehicles-pill--danger{background:#fee2e2;color:#991b1b;}
.vehicles-pill--muted{background:#e5e7eb;color:#374151;}
.vehicle-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.vehicle-detail-list div,.vehicle-service-row div{background:#f8fbff;border:1px solid rgba(37,99,235,.08);border-radius:12px;padding:9px;min-width:0;}
.vehicle-detail-list span,.vehicle-service-row span{color:#64748b;display:block;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
.vehicle-detail-list strong,.vehicle-service-row strong{color:#0f172a;display:block;font-size:13px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.vehicle-service-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
.vehicle-notes{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:12px;color:#475569;font-size:12px;line-height:1.4;margin-top:8px;max-height:58px;overflow:auto;padding:9px;}
.vehicles-empty{display:flex;align-items:center;gap:16px;background:#eff6ff;border:1px solid rgba(37,99,235,.16);border-radius:14px;padding:18px;}
.vehicles-empty-icon{width:52px;height:52px;border-radius:16px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;}
.vehicles-empty h5{color:#0f172a;font-weight:900;margin:0 0 4px;}
.vehicles-empty p{color:#64748b;margin:0 0 8px;}
.vehicles-empty button{border:0;background:transparent;color:#1d4ed8;font-weight:900;padding:0;}
.vehicle-modal{display:none;inset:0;position:fixed;z-index:1080;}
.vehicle-modal.is-open{display:block;}
.vehicle-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px);}
.vehicle-modal-panel{position:relative;width:min(980px,calc(100vw - 28px));max-height:calc(100dvh - 34px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 28px 90px rgba(15,23,42,.35);margin:17px auto;}
.vehicle-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;background:#fff;border-bottom:1px solid rgba(15,23,42,.08);}
.vehicle-modal-head h4{color:#0f172a;font-size:22px;font-weight:900;margin:2px 0 0;}
.vehicle-modal-close{width:36px;height:36px;border:1px solid rgba(15,23,42,.12);border-radius:999px;background:#fff;color:#475569;}
.vehicle-form{padding:18px 20px 20px;}
.vehicle-form-note{background:#eff6ff;border:1px solid rgba(37,99,235,.12);border-radius:12px;color:#1e3a8a;margin-bottom:14px;padding:10px 12px;}
.vehicle-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.vehicle-field{display:flex;flex-direction:column;gap:5px;margin:0;}
.vehicle-field--wide{grid-column:span 2;}
.vehicle-field span{color:#1e3a8a;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
.vehicle-field input,.vehicle-field textarea{width:100%;border:1px solid rgba(37,99,235,.16);border-radius:12px;background:#fff;color:#0f172a;font-size:13px;font-weight:700;outline:0;padding:9px 10px;}
.vehicle-field input{min-height:40px;}
.vehicle-field textarea{resize:vertical;}
.vehicle-field input:focus,.vehicle-field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.vehicle-field small{color:#dc2626;font-size:11px;font-weight:800;}
.vehicle-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
.vehicle-cancel-btn{border:1px solid rgba(15,23,42,.12);border-radius:12px;background:#fff;color:#475569;min-height:42px;padding:10px 14px;font-weight:900;}
body.vehicle-modal-open{overflow:hidden;}

@media (max-width: 1280px){
  .vehicles-grid{grid-template-columns:1fr;}
}

@media (max-width: 991px){
  .vehicles-page-head{align-items:stretch;flex-direction:column;}
  .vehicles-title{font-size:24px;}
  .vehicles-add-btn{width:100%;}
  .vehicle-form-grid{grid-template-columns:1fr 1fr;}
  .vehicles-table-card{background:transparent;border:0;box-shadow:none;overflow:visible;}
  .vehicles-table-scroll{overflow:visible;}
  .vehicles-table{min-width:0;border-collapse:collapse;}
  .vehicles-table thead{display:none;}
  .vehicles-table,.vehicles-table tbody,.vehicles-table tr,.vehicles-table td{display:block;width:100%;}
  .vehicles-row{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.06);margin-bottom:14px;overflow:hidden;}
  .vehicles-table td{display:grid;grid-template-columns:128px minmax(0,1fr);gap:12px;align-items:start;padding:11px 14px;border-bottom:1px solid rgba(15,23,42,.07);}
  .vehicles-table td::before{content:attr(data-label);color:#64748b;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
  .vehicles-table td:last-child{border-bottom:0;}
  .vehicles-row:hover td{background:transparent;}
  .vehicles-notes-cell{max-width:none;white-space:normal;}
}

@media (max-width: 640px){
  .vehicle-card{grid-template-columns:1fr;}
  .vehicle-card-media,.vehicle-card-media img,.vehicle-placeholder{min-height:190px;}
  .vehicle-detail-list,.vehicle-service-row,.vehicle-form-grid{grid-template-columns:1fr;}
  .vehicle-field--wide{grid-column:auto;}
  .vehicle-modal-actions{align-items:stretch;flex-direction:column;}
  .vehicle-cancel-btn,.vehicle-modal-actions .vehicles-add-btn{width:100%;}
}

/* =========================================================
   CUSTOMER DASHBOARD - MY FAVORITE
========================================================= */

.favorites-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
.favorites-eyebrow{color:#2563eb;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.favorites-title{margin:2px 0 4px;color:#0f172a;font-size:28px;font-weight:900;}
.favorites-subtitle{margin:0;color:#64748b;font-size:14px;}
.favorites-shop-btn{border:1px solid rgba(37,99,235,.24);background:#2563eb;color:#fff;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;font-weight:900;text-decoration:none;box-shadow:0 12px 24px rgba(37,99,235,.18);white-space:nowrap;}
.favorites-shop-btn:hover{background:#1d4ed8;color:#fff;}
.favorites-table-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px;box-shadow:0 16px 36px rgba(15,23,42,.07);overflow:hidden;}
.favorites-table-scroll{width:100%;overflow:auto;}
.favorites-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;}
.favorites-table th{background:#eff6ff;color:#1e3a8a;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;padding:13px 14px;border-bottom:1px solid rgba(37,99,235,.14);white-space:nowrap;}
.favorites-table td{padding:14px;vertical-align:middle;border-bottom:1px solid rgba(15,23,42,.08);color:#0f172a;font-size:14px;}
.favorites-table tbody tr:last-child td{border-bottom:0;}
.favorites-row:hover td{background:#f8fbff;}
.favorites-product{display:flex;align-items:center;gap:12px;min-width:260px;}
.favorites-product img{width:54px;height:54px;border-radius:12px;object-fit:contain;background:#f8fbff;border:1px solid rgba(37,99,235,.08);}
.favorites-product-name{font-weight:900;color:#0f172a;line-height:1.25;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.favorites-muted{color:#64748b;font-size:12px;}
.favorites-strong{font-weight:800;color:#0f172a;white-space:nowrap;}
.favorites-price{font-size:15px;font-weight:900;color:#0f172a;white-space:nowrap;}
.favorites-pill{display:inline-flex;align-items:center;justify-content:center;min-height:26px;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap;}
.favorites-pill--success{background:#dcfce7;color:#166534;}
.favorites-pill--warning{background:#fef3c7;color:#92400e;}
.favorites-actions{display:flex;justify-content:flex-end;gap:8px;}
.favorites-actions form{margin:0;}
.favorites-icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(37,99,235,.18);background:#eff6ff;color:#1d4ed8;border-radius:10px;text-decoration:none;}
.favorites-icon-btn:hover{background:#2563eb;color:#fff;}
.favorites-icon-btn--danger{border-color:#fecaca;background:#fff5f5;color:#dc2626;}
.favorites-icon-btn--danger:hover{background:#dc2626;color:#fff;}
.favorites-empty{display:flex;align-items:center;gap:16px;background:#eff6ff;border:1px solid rgba(37,99,235,.16);border-radius:14px;padding:18px;}
.favorites-empty-icon{width:52px;height:52px;border-radius:16px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;}
.favorites-empty h5{color:#0f172a;font-weight:900;margin:0 0 4px;}
.favorites-empty p{color:#64748b;margin:0 0 8px;}
.favorites-empty a{color:#1d4ed8;font-weight:900;}

@media (max-width: 991px){
  .favorites-page-head{align-items:stretch;flex-direction:column;}
  .favorites-title{font-size:24px;}
  .favorites-shop-btn{width:100%;}
  .favorites-table-card{background:transparent;border:0;box-shadow:none;overflow:visible;}
  .favorites-table-scroll{overflow:visible;}
  .favorites-table{min-width:0;border-collapse:collapse;}
  .favorites-table thead{display:none;}
  .favorites-table,.favorites-table tbody,.favorites-table tr,.favorites-table td{display:block;width:100%;}
  .favorites-row{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.06);margin-bottom:14px;overflow:hidden;}
  .favorites-table td{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;align-items:start;padding:11px 14px;border-bottom:1px solid rgba(15,23,42,.07);text-align:left !important;}
  .favorites-table td::before{content:attr(data-label);color:#64748b;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;}
  .favorites-table td:last-child{border-bottom:0;}
  .favorites-row:hover td{background:transparent;}
  .favorites-product{min-width:0;}
  .favorites-product-name{max-width:none;white-space:normal;}
  .favorites-actions{justify-content:flex-start;}
}
