@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao+Looped:wght@400;500;600;700&family=Noto+Sans+Lao:wght@400;500;600;700&display=swap');

:root {
  --font-lao: "Noto Sans Lao", sans-serif;
  --font-lao-chart: "Noto Sans Lao", sans-serif;
}

/* ຟອນ Lao — ບໍ່ໃຊ້ * ເພື່ອບໍ່ແຕະ Font Awesome */
body.layout-fixed,
body.hold-transition,
body.admin-shell,
.hold-transition,
.admin-shell .content-wrapper,
.admin-shell .main-header,
.admin-shell .main-sidebar,
.dashboard-page,
.sidebar-page {
  font-family: var(--font-lao);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ແຖບຟ້າຂ້າງຊ້າຍຂອງກາດເນື້ອຫາ (ເນັ້ນສີຟ້າ ບໍ່ໃຊ້ teal) */
.card.card-accent-primary {
  border-top: 3px solid #007bff;
}

/* ຫົວຕາຕະລາງດຳ: ເພີ່ມ padding ໃຫ້ບໍ່ແແອັດ */
table.table thead.thead-dark th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  vertical-align: middle;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.content-wrapper {
  height: auto !important;
  /* override AdminLTE iframe.scss: .content-wrapper { height:100% } */
  min-height: 0 !important;
  overflow-x: hidden;
}

/* AdminLTE + OverlayScrollbars: ແຖບເລື່ອນເມນູຂ້າງບໍ່ແຝງເກີນໄປ */
.main-sidebar .os-scrollbar-vertical {
  opacity: 1 !important;
  visibility: visible !important;
}

.main-sidebar .os-scrollbar-vertical .os-scrollbar-handle {
  background: rgba(255, 255, 255, 0.35) !important;
}

/* ກົດ focus ring ບາງຈຸດໃຫ້ກົມກັບຟອມເກົ່າ */
.form-control:focus,
.form-select:focus {
  box-shadow: none !important;
}

/* ===== App data tables: responsive scroll, cell borders, no wrap ===== */
.content-wrapper .table-responsive,
.content-wrapper [class$="-table-wrap"],
.modal .table-responsive,
.modal-body .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-wrapper [class*="-table-wrap"],
.products-admin-table-wrap,
.cat-admin-table-wrap,
.return-report-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.content-wrapper table.table,
.content-wrapper table[class*="-table"],
.content-wrapper table[class*="-admin-table"],
.modal-body table.table,
.modal-body table[class*="-table"],
.modal-body table[class*="-admin-table"] {
  border-collapse: collapse !important;
  width: 100%;
  margin-bottom: 0;
}

.content-wrapper table.table th,
.content-wrapper table.table td,
.content-wrapper table[class*="-table"] th,
.content-wrapper table[class*="-table"] td,
.content-wrapper table[class*="-admin-table"] th,
.content-wrapper table[class*="-admin-table"] td,
.modal-body table.table th,
.modal-body table.table td,
.modal-body table[class*="-table"] th,
.modal-body table[class*="-table"] td {
  border: 1px solid #dee2e6 !important;
  white-space: nowrap !important;
  vertical-align: middle;
}

.content-wrapper table.table thead th,
.content-wrapper table[class*="-table"] thead th,
.content-wrapper table[class*="-admin-table"] thead th,
.modal-body table.table thead th,
.modal-body table[class*="-table"] thead th {
  background: #c7e4ffd3 !important;
  color: #186de6;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 600;
  font-size: 14.4px !important;
}

/* ── Admin dashboard (Homepage) ── */
.content-wrapper {
  background: #f0f4f8 !important;
}

.admin-shell .main-header {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  z-index: 1030;
}

.admin-shell .main-header .nav-link {
  color: #64748b !important;
}

.admin-shell .main-header .nav-link:hover {
  color: #334155 !important;
}

.admin-shell .content-wrapper {
  padding: 0 !important;
  min-height: calc(100vh - 57px);
  transition: margin-left 0.3s ease-in-out;
}

/* ຄວາມກວ້າງ sidebar ກຳນົດທີ່ admin/index.php :root (--admin-sidebar-width) */
@media (min-width: 768px) {

  body.admin-shell:not(.sidebar-mini-md):not(.sidebar-collapse) .content-wrapper,
  body.admin-shell:not(.sidebar-mini-md):not(.sidebar-collapse) .main-header {
    margin-left: var(--admin-sidebar-width, 210px) !important;
  }
}

@media (min-width: 992px) {

  body.admin-shell.sidebar-mini.sidebar-collapse .content-wrapper,
  body.admin-shell.sidebar-mini.sidebar-collapse .main-header {
    margin-left: var(--admin-sidebar-collapsed, 4.6rem) !important;
  }
}

/* Staff POS: full width (no sidebar offset) */
@media (min-width: 768px) {

  body.admin-shell.user-staff-mode:not(.sidebar-mini-md):not(.sidebar-collapse) .content-wrapper,
  body.admin-shell.user-staff-mode:not(.sidebar-mini-md):not(.sidebar-collapse) .main-header {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (min-width: 992px) {

  body.admin-shell.user-staff-mode.sidebar-mini.sidebar-collapse .content-wrapper,
  body.admin-shell.user-staff-mode.sidebar-mini.sidebar-collapse .main-header {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.admin-shell.user-staff-mode .content-wrapper {
  padding: 0 !important;
}

.dashboard-page {
  /* padding: 1.5rem 1.75rem 2rem; */
  min-height: 100%;
  font-family: var(--font-lao);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #334155;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-dashboard-pushmenu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.2s, border-color 0.2s;
}

.btn-dashboard-pushmenu:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155 !important;
}

.btn-dashboard-pushmenu i {
  font-size: 1.1rem;
}

.dashboard-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.dashboard-header .dashboard-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.btn-dashboard-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-dashboard-fullscreen:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1400px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.stat-card.stat-card--renting {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}

.stat-card.stat-card--overdue {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.stat-card.stat-card--renting .stat-label,
.stat-card.stat-card--overdue .stat-label {
  color: #475569;
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat-card.stat-card--renting .stat-value {
  color: #047857;
}

.stat-card.stat-card--overdue .stat-value {
  color: #b91c1c;
}

.stat-card .stat-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-icon--primary {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon--info {
  background: #cffafe;
  color: #0891b2;
}

.stat-icon--success {
  background: #059669;
  color: #fff;
}

.stat-icon--danger {
  background: #dc2626;
  color: #fff;
}

.stat-icon--warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-main-row {
  margin-bottom: 1.5rem;
}

.dashboard-main-row>[class*="col-"] {
  display: flex;
  flex-direction: column;
}

.dashboard-chart-section,
.dashboard-table-section {
  margin-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-chart-section .section-head,
.dashboard-table-section .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-chart-section .section-head h2,
.dashboard-chart-section .section-head h4,
.dashboard-table-section .section-head h2,
.dashboard-table-section .section-head h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.015em;
}

.dashboard-table-card {
  flex: 1;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf2;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.chart-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-type-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  gap: 2px;
}

.chart-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-lao);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.chart-type-btn i {
  font-size: 0.85rem;
}

.chart-type-btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

.chart-type-btn.is-active {
  color: #1e40af;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.chart-type-btn.is-active[data-chart-type="line"] {
  color: #6d28d9;
}

.chart-year-select {
  min-width: 88px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-lao);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.chart-year-select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.dashboard-chart-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf2;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.15rem 0.75rem;
}

.dashboard-chart-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

.dashboard-chart-section .item-badge,
.dashboard-table-section .item-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 999px;
}

.dashboard-table-card .table {
  margin-bottom: 0;
  border: none !important;
}

.dashboard-table-card .table thead th {
  background: #f8fafc;
  border-top: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #64748b;
  font-family: var(--font-lao);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.dashboard-table-card .table tbody td {
  font-family: var(--font-lao);
  padding: 1rem;
  vertical-align: middle;
  border-color: #f1f5f9 !important;
  white-space: normal !important;
}

.dashboard-table-card .table tbody tr:hover {
  background: #f8fafc;
}

.dashboard-overdue-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-overdue-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 0.65rem 0.5rem !important;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dashboard-overdue-table tbody td {
  padding: 0.65rem 0.5rem !important;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f1f5f9 !important;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle !important;
}

.dashboard-overdue-table tbody td:last-child,
.dashboard-overdue-table thead th:last-child {
  border-right: none;
}

.dashboard-overdue-table tbody tr:last-child td {
  border-bottom: none !important;
}

.dashboard-overdue-table tbody tr:hover td {
  background: #f8fafc;
}

.dashboard-overdue-table .col-num {
  width: 36px;
  text-align: center;
}

.dashboard-overdue-table .col-name {
  width: 22%;
  min-width: 88px;
}

.dashboard-overdue-table .col-tel {
  width: 20%;
  min-width: 90px;
}

.dashboard-overdue-table .col-invoice {
  width: 18%;
  min-width: 72px;
}

.dashboard-overdue-table .col-due {
  width: 18%;
  min-width: 76px;
  white-space: nowrap;
}

.dashboard-overdue-table .col-late {
  width: 72px;
  text-align: center;
}

.overdue-customer-name {
  display: block;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overdue-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.overdue-tel i {
  font-size: 0.7rem;
  color: #94a3b8;
}

.overdue-invoice {
  display: inline-block;
  color: #2563eb;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.overdue-due-date {
  display: inline-block;
  font-weight: 600;
  color: #334155;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-overdue-table .badge-late {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 52px;
  padding: 0.25rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  white-space: nowrap;
}

.dashboard-overdue-table .badge-late i {
  font-size: 0.65rem;
}

/* ── Sidebar-page (module hubs: tabs + AJAX content) ── */
/* Use with .dashboard-page for outer padding */
.sidebar-page-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-page-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 0.5rem;
  margin-bottom: 0;
}

.sidebar-page-tabs::-webkit-scrollbar {
  display: none;
}

.sidebar-page-tabs .nav-item {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.sidebar-page-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: #64748b !important;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.sidebar-page-tabs .nav-link i {
  font-size: 0.95rem;
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
}

.sidebar-page-tabs .nav-link.active i {
  opacity: 1;
}

.sidebar-page-tabs .nav-link:hover {
  color: #334155 !important;
  background: transparent !important;
}

.sidebar-page-tabs .nav-link.active {
  color: rgb(91, 58, 237) !important;
  background: transparent !important;
  border-bottom-color: rgb(91, 58, 237) !important;
}

.sidebar-page-content {
  /* padding: 0.5rem 0.5rem; */
  min-height: 120px;
}

.sidebar-page-content .card.shadow-sm.border-0 {
  border: 1px solid #e8edf2 !important;
  border-radius: 12px;
  box-shadow: none !important;
}

.sidebar-page-content .card-accent-primary {
  border-top: 3px solid #2563eb;
}

/* Add customer modal — photo preview */
#addCustomerModal .modal-dialog {
  max-width: 420px;
}

#addCustomerModal .modal-body {
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

#addCustomerModal .form-wrap .field {
  margin-bottom: 0.75rem;
}

#addCustomerModal .form-wrap .field select,
#addCustomerModal .form-wrap .field input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

#addCustomerModal .photo-box {
  width: 100%;
}

#addCustomerModal .photo-item {
  width: 100%;
  flex-direction: column;
}

#addCustomerModal .photo-preview {
  width: 100%;
  max-width: 100%;
  height: 200px;
  margin: 0 auto;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#addCustomerModal .photo-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#addCustomerModal .photo-file-input {
  display: none;
}

#addCustomerModal .photo-actions {
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
}

#addCustomerModal .photo-actions-menu {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

#addCustomerModal .photo-actions-menu.show {
  display: flex;
}

#addCustomerModal .photo-actions-menu button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  cursor: pointer;
}

#addCustomerModal .photo-actions-menu button:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* POS — customer picker (text row + dropdown) */
#customerSearchWrap .customer-picker-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.4rem 0.1rem;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}

#customerSearchWrap .customer-picker-add {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem 0.2rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb !important;
  text-decoration: none !important;
  white-space: nowrap;
  border-right: 1px solid #e8edf2;
  margin-right: 0.1rem;
}

#customerSearchWrap .customer-picker-add:hover {
  color: #1d4ed8 !important;
}

#customerSearchWrap .customer-picker-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
}

#customerSearchWrap .customer-picker-main:hover {
  background: #f8fafc;
}

#customerSearchWrap .customer-picker-icon {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.95rem;
  width: 1.1rem;
  text-align: center;
}

#customerSearchWrap .customer-picker-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#customerSearchWrap .customer-picker-caret-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  border: none !important;
  border-radius: 6px;
  background: transparent !important;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
}

#customerSearchWrap .customer-picker-caret-btn:hover {
  background: #f1f5f9 !important;
  color: #7c3aed;
}

#customerSearchWrap .customer-search-dropdown {
  position: absolute;
  z-index: 1050;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

#customerSearchWrap .customer-search-filter {
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
}

#customerSearchWrap .customer-search-filter:focus {
  border-color: #a78bfa;
}

#customerSearchWrap .customer-search-results {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  border-radius: 8px;
  background: #f8fafc;
}

#customerSearchWrap .customer-search-results .customer-search-item {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 2px;
  padding: 0.6rem 0.7rem;
  text-align: left;
  font: inherit;
  line-height: 1.35;
  color: #334155;
  background: #fff;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#customerSearchWrap .customer-search-results .customer-search-item:last-child {
  margin-bottom: 0;
}

#customerSearchWrap .customer-search-results .customer-search-item:hover,
#customerSearchWrap .customer-search-results .customer-search-item:focus {
  background: #ede9fe;
  color: #5b21b6;
}

#customerSearchWrap .customer-search-item-line {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#customerSearchWrap .customer-search-item-tel {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.15rem;
}

#customerSearchWrap .customer-search-results .customer-search-item:hover .customer-search-item-tel,
#customerSearchWrap .customer-search-results .customer-search-item:focus .customer-search-item-tel {
  color: #6d28d9;
}

#customerSearchWrap .customer-search-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

#customerSearchWrap .customer-search-empty {
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  background: transparent;
}

#customerSearchWrap.is-open .customer-picker-caret-btn i {
  transform: rotate(180deg);
}

#customerSearchWrap .customer-picker-caret-btn i {
  display: inline-block;
  transition: transform 0.2s ease;
}