/* ===============================
   GLOBAL THEME (SaaS Gradient)
================================= */

:root {
  --primary-gradient: linear-gradient(135deg, #1d4ed8, #22c55e);
  --primary-blue: #1d4ed8;
  --primary-green: #22c55e;
  --light-bg: #f1f5f9;
}

/* ===============================
   BODY / BACKGROUND
================================= */
body {
  background-color: #f8fafc;
}

.content-wrapper {
  background-color: var(--light-bg);
}

/* ===============================
   SIDEBAR
================================= */
.main-sidebar {
  background: #0f172a;
}

/* Sidebar text */
.sidebar-menu > li > a {
  color: #cbd5e1;
  font-size: 14px;
}

/* Hover */
.sidebar-menu > li > a:hover {
  background: rgba(34, 197, 94, 0.15);
  color: #fff;
  border-radius: 8px;
}

/* Active */
.sidebar-menu li.active > a,
.sidebar-menu li.menu-open > a {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border-radius: 8px;
  margin: 4px 10px;
}

/* ===============================
   HEADER
================================= */
.main-header {
  background: #ffffff;
  border-bottom: none;
}

/* User name */
.user-menu span {
  color: var(--primary-green);
  font-weight: 600;
}

.topbar-user-trigger {
  gap: 8px;
}

.topbar-user-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  display: inline-flex;
  min-height: 42px;
  padding: 4px 10px 4px 6px;
  text-decoration: none;
}

.topbar-user-chip:hover,
.topbar-user-chip:focus {
  background: #f1f5f9;
  color: inherit;
}

.topbar-user-avatar {
  border: 1px solid #cbd5e1;
  height: 30px;
  width: 30px;
}

.topbar-user-name-simple {
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-caret {
  color: #64748b;
  font-size: 13px;
}

/* ===============================
   CARDS / BOX
================================= */
.box {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: #fff;
}

/* Card Header */
.box-header {
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
}

/* ===============================
   BUTTONS
================================= */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-light {
  border-radius: 6px;
}

/* ===============================
   TABLE
================================= */
.table thead {
  background: #f8fafc;
}

.table tbody tr:hover {
  background: #f1f5f9;
}

/* ===============================
   BADGES
================================= */
.badge.bg-success {
  background: var(--primary-green) !important;
}

/* ===============================
   LIST GROUP (Product Types UI)
================================= */
.list-group-item {
  border: none;
  padding: 12px 16px;
}

.list-group-item.active {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border-radius: 8px;
}

/* ===============================
   HOVER EFFECT (Premium Feel)
================================= */
.box:hover {
  transform: translateY(-2px);
  transition: 0.2s ease-in-out;
}

/* ===============================
   SCROLLBAR (OPTIONAL PREMIUM)
================================= */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 10px;
}

/* ===============================
   REMOVE OLD THEME COLORS
================================= */
.bg-lightgreen,
.bg-lightorange,
.bg-lilac,
.bg-purple,
.bg-Tacha,
.bg-shadow-green {
  all: unset;
}

/* CARD */
.table-modern {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}

/* HEADER */
.table-header {
  margin-bottom: 15px;
}

.table-title {
  font-weight: 600;
}

/* SEARCH */
.table-search {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
}

.table-search:focus {
  border-color: #2563eb;
  outline: none;
}

/* ADD BUTTON */
.btn-add {
  background: linear-gradient(90deg, #2563eb, #22c55e);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* TABLE */
.table-modern-table thead {
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.table-modern-table thead th {
  color: #fff;
  border: none;
  padding: 12px;
}

.table-modern-table tbody td {
  padding: 12px;
  color: #334155;
}

.table-modern-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: 0.2s;
}

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

/* BADGES */
.badge-success-modern {
  background: #22c55e;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge-danger-modern {
  background: #ef4444;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* ACTION BUTTON BASE */
.btn-action {
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

/* EDIT */
.btn-action.edit {
  background: #facc15;
  color: #000;
}

.btn-action.edit:hover {
  background: #eab308;
}

/* STATUS ACTIVE */
.btn-action.active {
  background: #22c55e;
  color: #fff;
}

/* STATUS INACTIVE */
.btn-action.inactive {
  background: #ef4444;
  color: #fff;
}

/* HOVER EFFECT */
.btn-action:hover {
  transform: translateY(-1px);
}

.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.4);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999; /* ✅ HIGH */
}

.modal-box {
  width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;

  z-index: 10000; /* ✅ IMPORTANT */
}

.coming-soon {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-box {
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Purchase Create */
.purchase-create-page .purchase-section-card {
  border: 1px solid #e2e8f0;
}
.purchase-create-page {
  padding-bottom: 90px;
}

.purchase-validation-hint {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  font-size: 13px;
  padding: 8px 12px;
}

.purchase-items-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.purchase-items-table {
  margin-bottom: 0;
  min-width: 920px;
}

.purchase-items-table thead th {
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.purchase-items-table tbody td {
  vertical-align: top;
}

.purchase-imei-chip {
  font-size: 11px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.purchase-chip-remove {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.purchase-row-error {
  color: #b91c1c;
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.purchase-scanner-modal {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.purchase-bulk-modal {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.purchase-bulk-modal .modal-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 18px;
}

.purchase-bulk-modal .modal-body {
  padding: 18px;
}

.purchase-bulk-modal .modal-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 12px 18px;
}

.purchase-bulk-textarea {
  font-family: monospace;
  padding-top: 12px;
  min-height: 150px;
}

.purchase-bulk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.purchase-bulk-stat {
  align-items: center;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
}

.purchase-bulk-stat strong {
  font-size: 15px;
  line-height: 1;
}

.purchase-bulk-stat.stat-valid {
  color: #166534;
}

.purchase-bulk-stat.stat-invalid {
  color: #b91c1c;
}

.purchase-bulk-stat.stat-detected {
  color: #1d4ed8;
}

.purchase-bulk-alert {
  background: #f8fafc;
  max-height: 140px;
  overflow: auto;
}

.purchase-summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.purchase-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}

.purchase-summary-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purchase-summary-item .label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.purchase-summary-item strong {
  color: #0f172a;
  font-size: clamp(15px, 2.8vw, 18px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.purchase-summary-item.total {
  background: #ecfdf5;
  border-color: #86efac;
}

.purchase-summary-item.total strong {
  color: #166534;
}

.purchase-save-btn {
  white-space: nowrap;
}

.purchase-supplier-row > div {
  min-width: 240px;
}

.purchase-supplier-add-btn {
  white-space: nowrap;
}

.purchase-sticky-bar {
  position: sticky;
  bottom: 10px;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 10px 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.purchase-sticky-bar strong {
  color: #166534;
  font-size: 20px;
  line-height: 1.1;
}

.purchase-sticky-save-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .purchase-bulk-stats {
    grid-template-columns: 1fr;
  }

  .purchase-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .purchase-sticky-bar {
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .purchase-summary-grid {
    grid-template-columns: 1fr;
  }

  .purchase-summary-item {
    min-width: 0;
  }

  .purchase-save-btn,
  .purchase-supplier-add-btn,
  .purchase-sticky-save-btn {
    width: 100%;
  }

  .purchase-supplier-row > div {
    min-width: 100%;
  }

  .purchase-sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .purchase-sticky-bar strong {
    font-size: 18px;
  }
}

/* Purchase List */
.purchase-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.purchase-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 18px;
}

.purchase-list-filters .purchase-list-input {
  min-width: 145px;
  min-height: 40px;
}

.purchase-list-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(160px, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 760px;
}

.purchase-list-search-wrap {
  position: relative;
}

.purchase-list-search-icon {
  color: #94a3b8;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.purchase-list-filters .purchase-list-search {
  min-width: 220px;
  padding-left: 34px;
}

.purchase-list-filters .purchase-list-date {
  min-width: 160px;
}

.purchase-list-search-btn {
  min-height: 40px;
  white-space: nowrap;
}

.purchase-list-add-btn {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.purchase-list-add-btn:hover {
  color: #fff;
  opacity: 0.92;
}

.purchase-list-table-wrap {
  padding: 0 10px;
}

.purchase-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 12px 10px;
}

.purchase-list-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 14px;
  padding: 12px 10px;
}

.purchase-invoice-no {
  color: #2563eb;
}

.purchase-item-badge {
  background: #e0f2fe;
  color: #075985;
  font-weight: 600;
}

.purchase-status-badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 5px 10px;
}

.purchase-status-badge.active {
  background: #dcfce7;
  color: #166534;
}

.purchase-status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.purchase-row-cancelled td {
  background: #fff7f7;
}

.purchase-list-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .purchase-list-filters {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .purchase-list-filters .purchase-list-search-wrap {
    grid-column: 1 / -1;
  }

  .purchase-list-search-btn,
  .purchase-list-add-btn,
  .purchase-list-filters .purchase-list-date {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .purchase-list-filters {
    grid-template-columns: 1fr;
  }
}

/* Purchase Invoice View */
.purchase-view-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.purchase-view-download-btn {
  background: linear-gradient(135deg, #2563eb, #16a34a);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  min-height: 42px;
}

.purchase-view-download-btn:hover {
  color: #fff;
  opacity: 0.92;
}

.purchase-view-party-card,
.purchase-view-meta-card {
  background: #f8fafc;
  border-color: #e2e8f0 !important;
}

.purchase-view-contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-view-contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px;
}

.purchase-view-party-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.purchase-view-party-name {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.purchase-view-contact-row {
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 8px;
  grid-template-columns: 78px minmax(0, 1fr);
  margin-top: 8px;
  padding-top: 8px;
}

.purchase-view-contact-row span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.purchase-view-contact-row p {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.purchase-view-page .row > [class*="col-"] {
  min-width: 0;
}

.purchase-view-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.purchase-view-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.purchase-view-stat-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.purchase-view-stat-card strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
}

.purchase-view-stat-card.total {
  background: #ecfdf5;
  border-color: #86efac;
}

.purchase-view-stat-card.total strong {
  color: #166534;
}

.purchase-view-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.purchase-view-table {
  margin-bottom: 0;
}

.purchase-view-table th,
.purchase-view-table td {
  padding: 14px 12px;
}

.purchase-view-gst-badge {
  background: #e0f2fe;
  color: #075985;
  font-weight: 600;
}

.purchase-view-summary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-left: auto;
  max-width: 360px;
  padding: 14px;
}

.purchase-view-summary-row {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.purchase-view-summary-row.total {
  border-top: 1px dashed #cbd5e1;
  color: #166534;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .purchase-view-contact-grid {
    grid-template-columns: 1fr;
  }

  .purchase-view-contact-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .purchase-view-summary {
    max-width: 100%;
  }
}

/* Dashboard */
.dashboard-page .dashboard-toolbar {
  align-items: center;
  justify-content: flex-end;
}

.dashboard-page .dashboard-header {
  background: #ffffff;
  border: 1px solid #e2e8f0 !important;
}

.dashboard-page .dashboard-header-left h4 {
  color: #0f172a;
  font-size: 24px;
}

.dashboard-page .dashboard-subtitle {
  color: #64748b;
  font-size: 14px;
}

.dashboard-page .dashboard-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  min-height: 40px;
  min-width: 170px;
}

.dashboard-page .dashboard-refresh-btn {
  align-items: center;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  min-width: 120px;
  white-space: nowrap;
}

.dashboard-page .dashboard-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-page .dashboard-filter-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding-left: 2px;
  text-transform: uppercase;
}

.dashboard-page .dashboard-filter-action .dashboard-filter-label {
  visibility: hidden;
}

.dashboard-page .dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .dashboard-quick-actions .btn {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.dashboard-page .dashboard-kpi-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-page .dashboard-kpi-card small {
  font-size: 12px;
}

.dashboard-page .dashboard-kpi-card h4 {
  font-size: 24px;
}

.dashboard-page .dashboard-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-page .dashboard-chart-card {
  min-height: 390px;
}

.dashboard-page table {
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-page th {
  background: #f1f5f9;
  font-weight: 600;
}

.dashboard-page td {
  vertical-align: middle;
}

.dashboard-collection-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.dashboard-page .dashboard-block-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .dashboard-page .dashboard-toolbar {
    justify-content: stretch;
    width: 100%;
  }

  .dashboard-page .dashboard-select,
  .dashboard-page .dashboard-refresh-btn,
  .dashboard-page .dashboard-quick-actions .btn,
  .dashboard-page .dashboard-filter-group {
    width: 100%;
  }

  .dashboard-page .dashboard-filter-action .dashboard-filter-label {
    display: none;
  }
}

/* Branch List */
.branch-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.branch-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.branch-list-header-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.branch-list-toolbar .branch-list-search {
  min-height: 40px;
  min-width: 280px;
}

.branch-list-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.branch-list-search {
  max-width: 320px;
}

.branch-list-add-btn {
  min-height: 40px;
  white-space: nowrap;
}

.branch-list-table-wrap {
  padding: 0 10px;
}

.branch-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.branch-list-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  padding: 12px 10px;
  vertical-align: middle;
}

.branch-list-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .branch-list-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .branch-list-toolbar,
  .branch-list-toolbar .branch-list-search,
  .branch-list-add-btn {
    width: 100%;
  }

  .branch-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .branch-list-search {
    max-width: 100%;
    margin-right: 0;
  }
}

/* Shared list action buttons */
.list-action-btn {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 72px;
}

.list-limit-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

/* Roles List */
.role-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.role-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

/* Staff List */
.staff-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.staff-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.staff-list-header-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.staff-list-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.staff-list-search {
  min-height: 40px;
  min-width: 280px;
}

.staff-list-add-btn {
  min-height: 40px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .staff-list-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-list-toolbar,
  .staff-list-search,
  .staff-list-add-btn {
    width: 100%;
  }
}

/* Supplier List */
.supplier-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.supplier-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.supplier-list-header-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.supplier-list-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.supplier-list-search {
  min-height: 40px;
  min-width: 280px;
}

.supplier-list-add-btn {
  min-height: 40px;
  white-space: nowrap;
}

.supplier-list-table-wrap {
  padding: 0 10px;
}

.supplier-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.supplier-list-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  padding: 12px 10px;
  vertical-align: middle;
}

.supplier-list-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .supplier-list-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-list-toolbar,
  .supplier-list-search,
  .supplier-list-add-btn {
    width: 100%;
  }
}

/* Customer List */
.customer-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.customer-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.customer-list-header-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.customer-list-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.customer-list-search {
  min-height: 40px;
  min-width: 280px;
}

.customer-list-add-btn {
  min-height: 40px;
  white-space: nowrap;
}

.customer-list-table-wrap {
  padding: 0 10px;
}

.customer-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-list-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  padding: 12px 10px;
  vertical-align: middle;
}

.customer-list-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

@media (max-width: 768px) {
  .customer-list-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-list-toolbar,
  .customer-list-search,
  .customer-list-add-btn {
    width: 100%;
  }
}

/* Inventory List */
.inventory-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.inventory-list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.inventory-list-header-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.inventory-list-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.inventory-filter-select {
  min-height: 40px;
  min-width: 140px;
}

.inventory-list-search {
  min-height: 40px;
  min-width: 240px;
}

.inventory-list-add-btn {
  min-height: 40px;
  white-space: nowrap;
}

.inventory-list-table-wrap {
  padding: 0 10px;
}

.inventory-list-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.inventory-list-table tbody td {
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  padding: 12px 10px;
  vertical-align: middle;
}

.inventory-list-footer {
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.inventory-modal-card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.inventory-modal-body {
  max-height: 400px;
  overflow-y: auto;
}

.inventory-imei-table th {
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .inventory-list-header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-list-toolbar,
  .inventory-filter-select,
  .inventory-list-search,
  .inventory-list-add-btn {
    width: 100%;
  }
}
