/* ==========================================================================
   BREWMASTER MODERN ADMIN UI REDESIGN
   Ultra-clean, modern SaaS styling inspired by the attached BrewMaster design.
   ========================================================================== */

/* --- Root & Layout Background --- */
.layout-bg,
body:has(#app) .min-h-screen.h-screen.flex.layout-bg,
.layout-bg main {
  background-color: #f8f9fa !important;
  color: #0f172a !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
}

/* --- Clean White Sidebar --- */
.sidebar-bg,
.hidden.md\:flex .sidebar-bg,
div.sidebar-bg {
  background-color: #ffffff !important;
  border-right: 1px solid #eaedf0 !important;
  box-shadow: none !important;
  width: 250px !important;
}

/* Mobile Sidebar Drawer */
div.bg-gray-800.max-w-xs {
  background-color: #ffffff !important;
  border-right: 1px solid #eaedf0 !important;
}

/* Sidebar Top Logo Area - PURE CLEAN (NO shadow, NO border, NO hover changes) */
.sidebar-bg a[href="/admin"],
.sidebar-bg a[href="/admin"]:hover,
.sidebar-bg a[href="/admin"]:focus,
.sidebar-bg a[href="/admin"]:active,
.sidebar-bg a[href="/admin"].router-link-active,
.sidebar-bg a[href="/admin"].router-link-active:hover,
.sidebar-bg a[href="/admin"].router-link-active:focus,
.sidebar-bg a[href="/admin"].router-link-active:active,
.sidebar-bg .h-16,
.sidebar-bg .h-16:hover,
.sidebar-bg div.h-16,
.sidebar-bg a.flex.h-16,
.sidebar-bg a.flex.h-16:hover,
.sidebar-bg a.flex.h-16:focus,
.sidebar-bg a.flex.h-16:active,
.sidebar-bg a.flex.h-16.router-link-active,
.sidebar-bg a.flex.h-16.router-link-active:hover {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  cursor: default !important;
  outline: none !important;
}

.sidebar-bg a[href="/admin"] .uppercase,
.sidebar-bg a[href="/admin"] .font-semibold,
.sidebar-bg a[href="/admin"] .text-white,
.sidebar-bg a[href="/admin"]:hover .uppercase,
.sidebar-bg a[href="/admin"]:hover .font-semibold,
.sidebar-bg a[href="/admin"]:hover .text-white,
.sidebar-bg a.flex.h-16 .text-white,
.sidebar-bg a.flex.h-16:hover .text-white {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.sidebar-bg a[href="/admin"] img,
.sidebar-bg a.flex.h-16 img {
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
}

/* Sidebar Dashboard Link Specific Padding & Styling */
.sidebar-bg a[href="/admin/dashboard"],
.sidebar-bg a[href="/admin/dashboard"].router-link,
.sidebar-bg a[href="/admin/dashboard"].router-link-desktop,
.sidebar-bg a[href="/admin/dashboard"].router-link-mobile {
  padding: 9.5px 14px !important;
  margin: 2px 10px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.sidebar-bg a[href="/admin/dashboard"].router-link-active,
.sidebar-bg a[href="/admin/dashboard"].router-link-exact-active {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Sidebar Section Headers (Portals, Foods, Expenses, People, Reports, Advance) */
.sidebar-bg .text-orange-500,
.sidebar-bg .my-2.mx-4.text-orange-500 {
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 18px 16px 6px 16px !important;
}

/* Sidebar Navigation Items (Default / Inactive State) */
.router-link.router-link-desktop,
.router-link.router-link-mobile,
.sidebar-bg .router-link,
.sidebar-bg a.router-link {
  color: #64748b !important;
  background-color: transparent !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 9.5px 14px !important;
  margin: 2px 10px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ERADICATE ALL ORANGE (focus, active, hover, while loading) */
.sidebar-bg .router-link:hover,
.sidebar-bg .router-link:focus,
.sidebar-bg .router-link:active,
.sidebar-bg .router-link:not(.router-link-active):hover,
.sidebar-bg .router-link:not(.router-link-active):focus,
.sidebar-bg .router-link:not(.router-link-active):active,
.sidebar-bg a.router-link:hover,
.sidebar-bg a.router-link:focus,
.sidebar-bg a.router-link:active,
.sidebar-bg .bg-orange-600,
.sidebar-bg .bg-orange-400,
.sidebar-bg .bg-orange-500,
.sidebar-bg a.bg-orange-600,
.sidebar-bg a.bg-orange-400,
.sidebar-bg a.bg-orange-500 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-bg .router-link svg,
.sidebar-bg .router-link svg-vue {
  color: #64748b !important;
  width: 17px !important;
  height: 17px !important;
  margin-right: 12px !important;
  transition: all 0.15s ease !important;
}

.sidebar-bg .router-link:hover svg,
.sidebar-bg .router-link:focus svg,
.sidebar-bg .router-link:active svg,
.sidebar-bg .router-link:hover svg-vue,
.sidebar-bg .router-link:focus svg-vue,
.sidebar-bg .router-link:active svg-vue {
  color: #0f172a !important;
}

/* --- ACTIVE NAV ITEM (BrewMaster Pitch-Black Pill Always) --- */
.sidebar-bg .router-link.router-link-active,
.sidebar-bg .router-link.router-link-exact-active,
.sidebar-bg .router-link.router-link-active:hover,
.sidebar-bg .router-link.router-link-active:focus,
.sidebar-bg .router-link.router-link-active:active,
.sidebar-bg .router-link.router-link-exact-active:hover,
.sidebar-bg .router-link.router-link-exact-active:focus,
.sidebar-bg .router-link.router-link-exact-active:active,
.sidebar-bg a.router-link-active,
.sidebar-bg a.router-link-exact-active,
.sidebar-bg a.router-link-active:hover,
.sidebar-bg a.router-link-active:focus,
.sidebar-bg a.router-link-active:active {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.sidebar-bg .router-link.router-link-active svg,
.sidebar-bg .router-link.router-link-exact-active svg,
.sidebar-bg .router-link.router-link-active svg-vue,
.sidebar-bg .router-link.router-link-exact-active svg-vue,
.sidebar-bg a.router-link-active svg,
.sidebar-bg a.router-link-exact-active svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.sidebar-bg .router-link svg.bm-side-icon {
  fill: none !important;
  stroke: #64748b !important;
  stroke-width: 2 !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.sidebar-bg .router-link:hover svg.bm-side-icon,
.sidebar-bg .router-link:focus svg.bm-side-icon,
.sidebar-bg .router-link:active svg.bm-side-icon {
  stroke: #0f172a !important;
}

.sidebar-bg .router-link.router-link-active svg.bm-side-icon,
.sidebar-bg .router-link.router-link-exact-active svg.bm-side-icon,
.sidebar-bg a.router-link-active svg.bm-side-icon,
.sidebar-bg a.router-link-exact-active svg.bm-side-icon {
  fill: none !important;
  stroke: #ffffff !important;
}

/* --- Clean White Top Navbar (No Drop Shadow) --- */
.relative.z-10.flex-shrink-0.flex.h-16.bg-white,
.h-16.bg-white.shadow,
.h-16.shadow,
div.h-16.bg-white {
  background-color: #ffffff !important;
  border-bottom: 1px solid #eaedf0 !important;
  box-shadow: none !important;
}

#user-menu img {
  border-radius: 50% !important;
  border: 2px solid #eaedf0 !important;
  width: 36px !important;
  height: 36px !important;
}

/* --- Global Admin Page Title & Header --- */
.content-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
}

.content-title-icon {
  color: #0f172a !important;
  width: 22px !important;
  height: 22px !important;
  margin-right: 10px !important;
}

/* --- Modern Buttons --- */
.btn.btn-app {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
}

.btn.btn-app:hover:not(:disabled) {
  background-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-0.5px) !important;
}

.btn.btn-secondary {
  background-color: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
}

.btn.btn-secondary:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.btn.btn-red {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.btn.btn-red:hover {
  background-color: #fca5a5 !important;
}

.btn.btn-green {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

/* --- Modern Input & Form Controls --- */
.form-input,
input[type="text"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="email"],
select.form-input,
textarea.form-input {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  transition: all 0.15s ease !important;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #000000 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px #000000 !important;
}

/* --- ALL DATA TABLES MODERN REDESIGN --- */
.min-w-full.divide-y,
table.min-w-full,
.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

/* Table Container Card */
.content-card-body,
.sales-list,
.align-middle.inline-block.min-w-full {
  background-color: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #eaedf0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden !important;
}

/* Clean Modern Table Header (Replacing harsh cyan-900 / orange) */
table thead tr,
table thead tr.bg-cyan-900,
thead tr {
  background-color: #fafbfc !important;
  color: #64748b !important;
  border-bottom: 1px solid #eaedf0 !important;
}

table thead th,
thead th {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 13px 16px !important;
  background-color: #fafbfc !important;
  border: none !important;
}

/* Modern Table Body & Rows */
table tbody tr,
tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.12s ease !important;
}

table tbody tr:hover,
tbody tr:hover {
  background-color: #f8fafc !important;
}

table tbody td,
tbody td {
  padding: 13px 16px !important;
  font-size: 13px !important;
  color: #334155 !important;
  vertical-align: middle !important;
  border: none !important;
}

/* Modern Status Badges in Tables (Replacing outdated harsh yellow badges) */
.bg-yellow-200,
.bg-gray-200,
span.bg-yellow-200,
span.bg-gray-200 {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 2.5px 7px !important;
}

/* ==========================================================================
   BREWMASTER DASHBOARD COMPONENT STYLES
   ========================================================================== */

.bm-dashboard-wrap {
  padding: 40px 40px 72px 40px !important;
  background-color: #f8f9fa !important;
  min-height: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

/* Header Area */
.bm-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px !important;
  flex-wrap: wrap;
  gap: 16px;
}

.bm-header-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.bm-header-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 500;
}

.bm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Filter Segmented Control */
.bm-segmented-pills {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.bm-seg-pill {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-seg-pill:hover {
  color: #0f172a;
}

.bm-seg-pill.is-active {
  background-color: #000000;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bm-icon-btn {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-icon-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

/* 4 Top KPI Stat Cards Grid */
.bm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px !important;
}

@media (max-width: 1200px) {
  .bm-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bm-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.bm-kpi-card {
  background-color: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.bm-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bm-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #8c9ba5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bm-kpi-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
}

.bm-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-top: 10px;
  line-height: 1.15;
}

.bm-kpi-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.bm-trend-up {
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bm-trend-down {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 3px;
}

.bm-trend-sub {
  color: #94a3b8;
  font-weight: 500;
}

/* Main 2-Column Split: Left (2/3) & Right (1/3) */
.bm-main-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1100px) {
  .bm-main-split {
    grid-template-columns: 1fr;
  }
}

.bm-left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sales Overview Chart Card */
.bm-chart-card {
  background-color: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.bm-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bm-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.bm-card-subtitle {
  font-size: 12px;
  color: #8c9ba5;
  margin-top: 2px;
}

.bm-chart-svg-container {
  width: 100%;
  height: 240px;
  position: relative;
}

/* 4 Mini Quick-Stat Badges */
.bm-mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.bm-mini-card {
  background-color: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bm-mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #8c9ba5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bm-mini-card-arrow {
  color: #cbd5e1;
  font-size: 13px;
}

.bm-mini-card-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px;
}

.bm-mini-card-val.is-red {
  color: #ef4444;
}

/* Recent Orders Modern Table Card */
.bm-orders-card {
  background-color: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.bm-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bm-link-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bm-link-btn:hover {
  color: #000000;
}

.bm-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.bm-orders-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: #8c9ba5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.bm-orders-table td {
  padding: 14px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
}

.bm-orders-table tbody tr:hover {
  background-color: #fbfcfd;
}

.bm-order-id {
  font-weight: 700;
  color: #0f172a;
}

.bm-order-total {
  font-weight: 700;
  color: #0f172a;
}

/* Status Pill Badges */
.bm-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bm-status-pill.is-ready {
  background-color: #dcfce7;
  color: #15803d;
}

.bm-status-pill.is-preparing {
  background-color: #f1f5f9;
  color: #475569;
}

.bm-status-pill.is-new {
  background-color: #000000;
  color: #ffffff;
}

/* Popular Items Right Card */
.bm-popular-card {
  background-color: #ffffff;
  border: 1px solid #eaedf0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.bm-popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  flex: 1;
}

.bm-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bm-popular-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background-color: #f1f5f9;
  flex-shrink: 0;
}

.bm-popular-info {
  flex: 1;
  min-width: 0;
}

.bm-popular-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-popular-sold {
  font-size: 11.5px;
  color: #8c9ba5;
  margin-top: 2px;
}

.bm-popular-right {
  text-align: right;
  flex-shrink: 0;
}

.bm-popular-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.bm-popular-trend {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.bm-popular-trend.is-pos {
  color: #16a34a;
}

.bm-popular-trend.is-neg {
  color: #ef4444;
}

.bm-performance-btn {
  margin-top: 24px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
  display: block;
}

.bm-performance-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

/* Sidebar Profile Widget at Bottom */
.bm-sidebar-user-widget {
  padding: 14px 16px;
  margin: 12px 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eaedf0;
  background-color: #f1f5f9;
  flex-shrink: 0;
}

.bm-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.bm-sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-sidebar-user-role {
  font-size: 11px;
  color: #8c9ba5;
  font-weight: 500;
}

/* --- Waiters Analytics & Rankings Styles --- */
.text-2xs {
  font-size: 10px !important;
  line-height: 13px !important;
}

.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow-xs {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

/* --- Waiter Management Collapsible Sidebar Menu --- */
.sidebar-bg a.router-link[href*="waiters"],
.sidebar-bg .router-link.router-link-desktop[href*="waiters"],
.sidebar-bg .router-link.router-link-mobile[href*="waiters"],
a.router-link[href*="/admin/waiters"],
a.router-link[href*="waiters"] {
  display: none !important;
}

.bm-waiter-collapsible-group {
  margin: 2px 10px !important;
}

.bm-waiter-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9.5px 14px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background-color: transparent !important;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out !important;
  box-sizing: border-box !important;
}

.bm-waiter-header-row:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.bm-waiter-header-row:hover .bm-side-icon,
.bm-waiter-header-row:hover .bm-waiter-chevron {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

.bm-waiter-header-row.is-active {
  color: #1e293b !important;
}

.bm-waiter-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.bm-waiter-header-row .bm-side-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  color: #64748b !important;
  stroke: #64748b !important;
  fill: none !important;
  margin: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: color 0.15s ease, stroke 0.15s ease !important;
}

.bm-waiter-header-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: inherit !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
}

.bm-waiter-chevron {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  color: #94a3b8 !important;
  stroke: currentColor !important;
  display: inline-block !important;
  transform: rotate(0deg) !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease !important;
  transform-origin: center center !important;
}

.bm-waiter-chevron.expanded {
  transform: rotate(90deg) !important;
}

.bm-waiter-sub-container {
  margin-left: 22px !important;
  padding-left: 12px !important;
  border-left: 1.5px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  overflow: hidden !important;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, margin 0.25s ease !important;
}

.bm-waiter-sub-container.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none !important;
}

.bm-waiter-sub-container.expanded {
  max-height: 400px !important;
  opacity: 1 !important;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
  pointer-events: auto !important;
}

.bm-sub-item {
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.bm-sub-item:not(.active):hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.bm-sub-item.active {
  background-color: #ededed !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Two-column layout for Waiter Overview: Balanced table & wider Preview container */
.bm-overview-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .bm-overview-grid {
    grid-template-columns: 42% 58% !important;
    gap: 24px !important;
  }
}

@media (min-width: 1280px) {
  .bm-overview-grid {
    grid-template-columns: 38% 62% !important;
    gap: 24px !important;
  }
}

.bm-overview-table-card {
  min-width: 0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
}

.bm-overview-inspector-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  padding: 20px !important;
  position: sticky !important;
  top: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Icon size restraints */
.bm-icon-14 {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
}

.bm-icon-16 {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
}

.bm-icon-20 {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
}

/* ==========================================================================
   WAITER MANAGEMENT & SALARY MANAGEMENT: IMAGE 3 INSPIRED CARDS & SPACING
   ========================================================================== */

/* 4-Card KPI Grid with guaranteed bottom gap to the table below */
.bm-kpi-grid-container {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
}

@media (min-width: 640px) {
  .bm-kpi-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .bm-kpi-grid-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 28px !important;
  }
}

/* Image 3 Inspired Card Layout */
.bm-card-kpi-v3 {
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.bm-card-kpi-v3:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Card Header: Title on Left, Circular Badge with ↗ on Right */
.bm-card-kpi-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.bm-card-kpi-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: -0.01em !important;
}

.bm-card-kpi-arrow-badge {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9999px !important;
  background-color: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0f172a !important;
  flex-shrink: 0 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Card Body: Bolder and Much Larger Numbers (Per Image 3 and prompt requirement) */
.bm-card-kpi-value {
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  margin-top: 14px !important;
  margin-bottom: 12px !important;
}

/* Card Subtitle / Footer */
.bm-card-kpi-subtitle {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Timeframe Filter Pills with Proper Visible Gaps */
.bm-filter-pills-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.bm-filter-pill-btn {
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: none !important;
}

.bm-filter-pill-btn.active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.bm-filter-pill-btn:not(.active) {
  background-color: transparent !important;
  color: #64748b !important;
}

.bm-filter-pill-btn:not(.active):hover {
  color: #0f172a !important;
}

/* Export CSV Button (Ensured width, never wraps to two lines) */
.bm-export-csv-btn {
  white-space: nowrap !important;
  min-width: 115px !important;
  padding: 7px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.bm-export-csv-btn:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Search by Waiter input with guaranteed space for the icon */
.bm-search-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 220px !important;
  max-width: 320px !important;
}

.bm-search-icon-fixed {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}

input.bm-search-input-fixed,
.bm-search-container input[type="text"],
.bm-search-container .bm-search-input-fixed {
  width: 100% !important;
  padding-left: 38px !important;
  padding-right: 12px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  outline: none !important;
}

input.bm-search-input-fixed:focus,
.bm-search-container input[type="text"]:focus,
.bm-search-container .bm-search-input-fixed:focus {
  border-color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 1px #0f172a !important;
}

/* Modals Padding Fix */
.admin-waiters-modal-card {
  padding: 24px 28px !important;
  border-radius: 20px !important;
  max-width: 520px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.admin-waiters-modal-card input,
.admin-waiters-modal-card select {
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}

/* Permanently hide removed sidebar items */
a.router-link[href*="stock-alerts"],
a.router-link[href*="imports-exports"],
a.router-link[href*="service-tables"],
a.router-link[href*="payment-methods"],
a.router-link[href*="Languages"],
a.router-link[href*="languages"] {
  display: none !important;
}

/* ==========================================================================
   ITEMS & CATEGORIES MODERN iOS-STYLE UI & BRAND BLACK BUTTONS
   ========================================================================== */

/* 1. Brand Black Buttons across Items, Categories, and Admin */
.bg-cyan-900,
.bg-cyan-800,
.btn-app,
a.bg-cyan-900,
a.bg-cyan-800,
button.bg-cyan-900,
button.bg-cyan-800,
.content-card-body .bg-cyan-900,
.content-card-body .bg-cyan-800,
.content-card-body a[href*="/edit"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  border: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
}

.bg-cyan-900:hover,
.bg-cyan-800:hover,
.btn-app:hover,
a.bg-cyan-900:hover,
a.bg-cyan-800:hover,
button.bg-cyan-900:hover,
button.bg-cyan-800:hover,
.content-card-body .bg-cyan-900:hover,
.content-card-body .bg-cyan-800:hover,
.content-card-body a[href*="/edit"]:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.bg-cyan-900:active,
.bg-cyan-800:active,
.btn-app:active,
a.bg-cyan-900:active,
a.bg-cyan-800:active,
button.bg-cyan-900:active,
button.bg-cyan-800:active,
.content-card-body .bg-cyan-900:active,
.content-card-body .bg-cyan-800:active {
  transform: translateY(0) !important;
  background-color: #000000 !important;
}

/* 2. Modern Table Card Container */
.content-card-body {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden !important;
}

/* 3. Modern Table Rows and Dividers */
.border-cyan-900 {
  border-color: #f1f5f9 !important;
}

.content-card-body table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.content-card-body tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.15s ease !important;
  height: 68px !important;
}

.content-card-body tbody tr:hover {
  background-color: #f8fafc !important;
}

.content-card-body tbody tr:last-child {
  border-bottom: none !important;
}

/* 4. Food & Category Avatars */
.content-card-body img.rounded,
.content-card-body img.h-12 {
  border-radius: 12px !important;
  object-fit: cover !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f1f5f9 !important;
}

/* 5. Typography on Items and Categories rows */
.content-card-body p.text-gray-700,
.content-card-body p.text-gray-800 {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.content-card-body span.text-gray-400,
.content-card-body span.text-xs {
  font-size: 12px !important;
  color: #94a3b8 !important;
}

/* 6. Filter & Search Controls bar */
.content-card-body .p-4 {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.content-card-body .form-input,
.content-card-body input#search {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  transition: all 0.15s ease !important;
}

.content-card-body .form-input:focus,
.content-card-body input#search:focus {
  border-color: #000000 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 1px #000000 !important;
  outline: none !important;
}

.content-card-body select.form-input {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background-color: #ffffff !important;
  font-size: 13px !important;
  color: #0f172a !important;
  padding: 8px 12px !important;
}

.content-card-body button.form-input {
  background-color: #f8fafc !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.content-card-body button.form-input:hover {
  background-color: #f1f5f9 !important;
}

/* 7. Action Bar (Add & Bulk Buttons) */
.content-card-body .bg-gray-100 {
  background-color: transparent !important;
  border: none !important;
  padding: 12px 20px !important;
}

/* 8. Pagination Links */
.pagination-link {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  background-color: #ffffff !important;
  transition: all 0.15s ease !important;
}

.pagination-link:not(:disabled):hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #000000 !important;
}

/* 9. iOS Modern Checkbox */
input[type="checkbox"].form-checkbox {
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

input[type="checkbox"].form-checkbox:checked {
  background-color: #000000 !important;
  border-color: #000000 !important;
}


