/* ==============================================================================
 * DESIGN SYSTEM - PANADERÍA "EL PAN DE JESÚS"
 * Paleta Artesanal: Bronce, Cobre, Dorado y Oscuro Mate con Glassmorphism
 * ============================================================================== */

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

.cash-reference-shell {
  background: #f4f3f0;
  border: 1px solid rgba(31, 25, 22, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.cash-reference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: #f7f7f4;
  border-bottom: 1px solid rgba(31, 25, 22, 0.08);
}

.cash-reference-title {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #1f1a17;
}

.cash-reference-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cash-compact-btn {
  border: 1px solid rgba(31, 25, 22, 0.12);
  background: #fff;
  color: #1f1a17;
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.cash-compact-btn.primary {
  background: linear-gradient(135deg, #f4d77a 0%, #e5a93c 100%);
  border-color: rgba(229, 169, 60, 0.75);
  color: #1d1813;
}

.cash-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #d7f1eb;
  border-bottom: 1px solid rgba(18, 82, 67, 0.1);
}

.cash-status-banner--closed {
  background: #fdf0d7;
  border-bottom-color: rgba(180, 120, 17, 0.12);
}

.cash-status-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.cash-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d7a5f;
  box-shadow: 0 0 0 6px rgba(29, 122, 95, 0.12);
}

.cash-status-banner--closed .cash-status-dot {
  background: #d98a16;
  box-shadow: 0 0 0 6px rgba(217, 138, 22, 0.12);
}

.cash-status-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #1d5d4f;
  text-transform: uppercase;
}

.cash-status-banner--closed .cash-status-title {
  color: #7a4f0a;
}

.cash-status-sub {
  margin: 0.15rem 0 0;
  color: rgba(31, 25, 22, 0.7);
  font-size: 0.82rem;
}

.cash-status-amount {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cash-status-amount small {
  color: rgba(31, 25, 22, 0.65);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.cash-status-amount strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1f1a17;
}

.cash-close-btn {
  border: none;
  background: linear-gradient(135deg, #ef5757 0%, #db3d3d 100%);
  color: #fff !important;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.cash-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem 1.2rem 0.2rem;
}

.cash-summary-card {
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  background: #fff;
  border: 2px solid rgba(31, 25, 22, 0.1);
  min-height: 110px;
}

.cash-summary-card.primary { border-color: rgba(46, 126, 255, 0.8); }
.cash-summary-card.success { border-color: rgba(32, 161, 99, 0.8); }
.cash-summary-card.danger { border-color: rgba(222, 53, 69, 0.8); }
.cash-summary-card.dark { border-color: rgba(25, 25, 25, 0.8); background: #1f1f22; }

.cash-summary-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 25, 22, 0.7);
  font-weight: 800;
}

.cash-summary-card.dark .cash-summary-label {
  color: rgba(255,255,255,0.72);
}

.cash-summary-number {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.cash-summary-card.primary .cash-summary-number { color: #1e63d8; }
.cash-summary-card.success .cash-summary-number { color: #1d8a57; }
.cash-summary-card.danger .cash-summary-number { color: #d83d4f; }
.cash-summary-card.dark .cash-summary-number { color: #f5d77a; }

.cash-gasto-box {
  margin: 0.8rem 1.2rem 1rem;
  border: 2px solid rgba(220, 53, 69, 0.9);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cash-gasto-box .title {
  font-weight: 900;
  color: #d81b2d;
  margin: 0;
  font-size: 1.03rem;
}

.cash-gasto-box .subtitle {
  margin: 0.25rem 0 0;
  color: rgba(31, 25, 22, 0.65);
  font-size: 0.8rem;
}

.cash-panel-table {
  margin: 0 1.2rem 1.2rem;
  border: 1px solid rgba(31, 25, 22, 0.1);
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.cash-panel-table table {
  min-width: 880px;
}

.cash-panel-table thead th {
  background: #f8f6f3;
  color: rgba(31, 25, 22, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  border-bottom: 1px solid rgba(31, 25, 22, 0.08);
}

.cash-panel-table tbody td {
  vertical-align: middle;
  font-size: 0.82rem;
  color: #1f1a17;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(31, 25, 22, 0.06);
}

.cash-user-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cash-user-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6d67d 0%, #e5a93c 100%);
  display: grid;
  place-items: center;
  color: #1f1a17;
  font-weight: 900;
  font-size: 0.85rem;
}

.cash-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cash-user-meta strong {
  font-size: 0.9rem;
}

.cash-user-meta small {
  color: rgba(31, 25, 22, 0.6);
}

.badge-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-state.open {
  background: rgba(29, 138, 87, 0.12);
  color: #147a52;
  border-color: rgba(29, 138, 87, 0.2);
}

.badge-state.closed {
  background: rgba(31,25,22,0.06);
  color: rgba(31,25,22,0.72);
  border-color: rgba(31,25,22,0.12);
}

.cash-table-action {
  border: 1px solid rgba(220, 53, 69, 0.7);
  background: transparent;
  color: #c92d39;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.cash-table-action.success {
  border-color: rgba(29, 138, 87, 0.75);
  color: #167e58;
}

.cash-movements-card{overflow:hidden}.cash-movements-card .card-header-bakery{background:linear-gradient(135deg,#17130f,#302419);color:#fff}.cash-movements-card .card-header-bakery h5{color:#fff!important}.cash-movement-row td{padding:14px 16px!important;border-color:rgba(15,23,42,.06)}.cash-movement-row{transition:background .2s ease,transform .2s ease}.cash-movement-row:hover{background:#fffaf0;transform:translateX(3px)}.cash-movement-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:16px}.cash-movement-income{background:#e7f7ed;color:#198754}.cash-movement-expense{background:#fce8eb;color:#dc3545}.cash-movement-close{background:#e7f3ff;color:#0d6efd}.cash-movement-label{font-size:11px;font-weight:800;letter-spacing:.04em}.cash-movement-empty{padding:42px!important}

@media (max-width: 991.98px) {
  .cash-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cash-status-banner,
  .cash-reference-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .cash-status-banner,
  .cash-reference-header,
  .cash-gasto-box {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .cash-panel-table {
    margin-left: 0.7rem;
    margin-right: 0.7rem;
  }
}

:root {
  --bakery-dark: #181512;
  --bakery-darker: #100E0C;
  --bakery-dark-subtle: #24201B;
  --bakery-gold: #E5A93C;
  --bakery-gold-hover: #D4982B;
  --bakery-gold-light: #FFF8EC;
  --bakery-amber: #C86D27;
  --bakery-terracotta: #A84C1C;
  --bakery-bg: #F8F6F2;
  --bakery-card-bg: #FFFFFF;
  --bakery-text: #26221F;
  --bakery-muted: #78716A;
  --bakery-border: #E8E3DA;
  --bakery-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --bakery-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.07);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  background-color: var(--bakery-bg);
  color: var(--bakery-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font: inherit;
}

/* ==========================================
   LAYOUT STRUCTURE (DESKTOP & MOBILE)
   ========================================== */
.app-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Desktop Left Sidebar */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background-color: var(--bakery-dark);
  border-right: 1px solid rgba(229, 169, 60, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  align-self: flex-start;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed Sidebar Mode (Desktop) */
.app-sidebar.sidebar-collapsed {
  width: 76px;
  min-width: 76px;
}

.app-sidebar.sidebar-collapsed .brand-text,
.app-sidebar.sidebar-collapsed .nav-text,
.app-sidebar.sidebar-collapsed .user-info-text,
.app-sidebar.sidebar-collapsed .sidebar-cash-banner span {
  display: none !important;
}

.app-sidebar.sidebar-collapsed .sidebar-section-label {
  display: none;
}

.app-sidebar.sidebar-collapsed .sidebar-header {
  justify-content: center !important;
  padding: 0.85rem 0.5rem !important;
}

.app-sidebar.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 0.65rem 0 !important;
  text-align: center;
}

.app-sidebar.sidebar-collapsed .sidebar-link i {
  margin-right: 0 !important;
  font-size: 1.35rem !important;
}

.app-sidebar.sidebar-collapsed .sidebar-user-footer {
  justify-content: center;
  padding: 0.75rem 0.25rem !important;
}

.app-sidebar.sidebar-collapsed .sidebar-cash-banner {
  padding: 0.5rem 0.4rem !important;
  text-align: center;
}

.sidebar-header {
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  flex: 0 0 auto;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 0.65rem !important;
  padding-bottom: 0.75rem !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 169, 60, 0.3) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(229, 169, 60, 0.3);
  border-radius: 4px;
}

.sidebar-link {
  color: #B8B0A6 !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.62rem 0.85rem !important;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  margin-bottom: 1px;
  min-height: 42px;
  border: 1px solid transparent;
}

.sidebar-link:hover {
  color: #FFFFFF !important;
  background-color: rgba(229, 169, 60, 0.12);
  border-color: rgba(229, 169, 60, 0.12);
  transform: translateX(3px);
}

.sidebar-status-pill {
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.sidebar-status-pill--open {
  background: rgba(25, 135, 84, 0.12);
  color: #b7f7d4 !important;
  border-color: rgba(46, 204, 113, 0.35);
}

.sidebar-status-pill--closed {
  background: rgba(220, 53, 69, 0.12);
  color: #ffc9d1 !important;
  border-color: rgba(220, 53, 69, 0.35);
}

.sidebar-link.active {
  color: var(--bakery-dark) !important;
  background: linear-gradient(135deg, #F5CA7B 0%, #E5A93C 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.3);
}

.sidebar-section-label {
  color: rgba(229, 169, 60, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 0.95rem 0 0.4rem;
  padding: 0 0.85rem;
  text-transform: uppercase;
}

.sidebar-section-label:first-child {
  margin-top: 0.2rem;
}

.sidebar-cash-banner,
.sidebar-user-footer {
  flex: 0 0 auto;
}

/* Mobile Header Bar */
.app-mobile-header {
  background-color: rgba(24, 21, 18, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--bakery-gold);
  z-index: 1030;
  width: 100%;
}

/* Main Workspace Content Area */
.app-main-content {
  flex: 1 1 auto;
  width: calc(100% - 260px);
  min-width: 0;
  max-width: calc(100% - 260px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bakery-bg);
  overflow-x: hidden;
  margin-left: 260px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-notifications {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 2000;
  width: min(390px, calc(100vw - 2rem));
  display: grid;
  gap: 0.7rem;
  pointer-events: none;
}

.system-notification {
  --notification-color: #2f9e64;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0.85rem 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--notification-color) 25%, white);
  border-left: 4px solid var(--notification-color);
  border-radius: 12px;
  background: #fff;
  color: var(--bakery-text);
  box-shadow: 0 14px 32px rgba(24, 21, 18, 0.16);
  pointer-events: auto;
  animation: notificationEnter 0.28s ease-out both;
}

.system-notification-success { --notification-color: #198754; }
.system-notification-danger { --notification-color: #dc3545; }
.system-notification-warning { --notification-color: #c77b00; }
.system-notification-info { --notification-color: #2878a8; }

.system-notification-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--notification-color) 12%, white);
  color: var(--notification-color);
}

.system-notification-content {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-right: 1.3rem;
}

.system-notification-content strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.system-notification-content span {
  color: var(--bakery-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.system-notification-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--bakery-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.system-notification-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--notification-color);
  transform-origin: left;
  animation: notificationProgress 2.2s linear forwards;
}

@keyframes notificationEnter {
  from { opacity: 0; transform: translateY(-10px) translateX(12px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

@keyframes notificationExit {
  to { opacity: 0; transform: translateY(-8px) translateX(12px); }
}

@keyframes notificationProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.system-notification.is-closing {
  animation: notificationExit 0.22s ease-in forwards;
}

.offcanvas#bakeryOffcanvas {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.offcanvas#bakeryOffcanvas .offcanvas-body {
  min-height: 0;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .app-sidebar.sidebar-collapsed ~ .app-main-content {
    width: calc(100% - 76px);
    max-width: calc(100% - 76px);
    margin-left: 76px;
  }
}

/* Footer */
.app-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--bakery-border);
  width: 100%;
}

/* ==========================================
   MEDIA QUERIES FOR MOBILE (< 992px)
   CRITICAL FIX FOR SIDEBAR OVERFLOW BUG
   ========================================== */

@media (max-width: 991.98px) {
  html,
  body {
    height: 100%;
    overflow: hidden !important;
  }

  body {
    min-height: 0 !important;
  }

  .app-layout {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  /* Force hide desktop sidebar completely on mobile/tablets */
  .app-sidebar, aside.app-sidebar {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  .app-mobile-header {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    flex: 0 0 auto;
  }

  .app-main-content {
    flex: 1 1 0% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .app-main-content .container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.85rem !important;
    max-width: 100% !important;
  }

  .app-main-content > .app-footer {
    flex: 0 0 auto;
    padding-top: 0.4rem !important;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom)) !important;
    font-size: 0.7rem !important;
    line-height: 1.2;
  }

  .app-main-content > .app-footer .container-fluid {
    gap: 0.1rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .bakery-card {
    border-radius: 12px;
  }

  .pos-cart-panel {
    position: static !important;
    margin-top: 1.25rem;
    border-radius: 14px;
    width: 100% !important;
  }

  .soles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .btn, .form-control, .form-select {
    min-height: 44px;
  }

  .btn-sm, .form-control-sm, .form-select-sm {
    min-height: 38px;
  }
}

@media (max-width: 575.98px) {
  .row:has(> .col-12 > .bakery-card.border-start) {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .row:has(> .col-12 > .bakery-card.border-start) > .col-12 {
    flex: 0 0 auto;
    width: 50%;
  }

  .bakery-card.border-start {
    padding: 0.75rem !important;
  }

  .bakery-card.border-start > small,
  .bakery-card.border-start > span {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .bakery-card.border-start h3,
  .bakery-card.border-start h4 {
    font-size: 1.1rem !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .bakery-card.border-start strong {
    overflow-wrap: anywhere;
  }

  .cash-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 0.75rem 0.2rem;
  }

  .cash-summary-card {
    min-height: 88px;
    padding: 0.7rem;
  }

  .cash-summary-number {
    margin-top: 0.35rem;
    font-size: 1.2rem;
  }

  .cash-summary-label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .app-main-content .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .app-main-content .kpi-grid .kpi-card {
    min-height: 0;
    padding: 0.7rem;
    border-radius: 14px;
  }

  .app-main-content .kpi-grid .kpi-top {
    margin-bottom: 0.4rem;
  }

  .app-main-content .kpi-grid .kpi-label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .app-main-content .kpi-grid .kpi-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
  }

  .app-main-content .kpi-grid .kpi-value {
    font-size: 1.2rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .app-main-content .kpi-grid .kpi-meta {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .production-kpi-card {
    min-height: 100%;
    padding: 0.65rem !important;
  }

  .production-kpi-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .production-kpi-card .fs-8 {
    font-size: 0.62rem !important;
    line-height: 1.2;
  }

  .production-kpi-card h4 {
    font-size: 1.1rem !important;
  }

  .production-kpi-card h6 {
    font-size: 0.75rem !important;
    line-height: 1.2;
  }

  .production-kpi-icon {
    flex: 0 0 auto;
    padding: 0.55rem !important;
    margin-left: 0.35rem;
  }

  .production-kpi-product {
    max-width: calc(100% - 0.5rem) !important;
  }

  .soles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .product-item-card {
    padding: 0.75rem !important;
  }

  .card-header-bakery {
    padding: 0.75rem 0.9rem;
  }

  h3 {
    font-size: 1.35rem !important;
  }

  h4 {
    font-size: 1.2rem !important;
  }

  h5 {
    font-size: 1.05rem !important;
  }
}

@media (min-width: 992px) {
  .app-mobile-header {
    display: none !important;
  }
}

/* ==========================================
   UTILITY CLASSES & BRAND STYLING
   ========================================== */
.bg-gold {
  background-color: var(--bakery-gold) !important;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #F5CA7B 0%, #E5A93C 100%) !important;
}

.bg-dark-bakery {
  background-color: var(--bakery-dark) !important;
}

.text-gold {
  color: var(--bakery-gold) !important;
}

.text-amber {
  color: var(--bakery-amber) !important;
}

.fw-extrabold {
  font-weight: 800 !important;
}

.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.8rem !important; }
.fs-9 { font-size: 0.725rem !important; }

.btn {
  white-space: nowrap !important;
  border-radius: 10px;
  font-weight: 700;
}

.form-control,
.form-select,
.form-check-input,
.input-group-text {
  border-radius: 10px !important;
  border: 1px solid rgba(24,21,18,0.12) !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.input-group-text:focus {
  border-color: rgba(229, 169, 60, 0.72) !important;
  box-shadow: 0 0 0 0.2rem rgba(229, 169, 60, 0.12) !important;
}

.table-bakery thead th {
  background: rgba(248, 246, 242, 0.9);
  color: var(--bakery-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Pulse animation for active cash status */
@keyframes pulseGlow {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-pulse {
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.border-gold-glow {
  border: 1px solid rgba(229, 169, 60, 0.4) !important;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.08) !important;
}

/* Category controls stay organized as the catalog grows */
.category-scroll-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 76px;
  overflow-y: auto;
  padding: 2px 2px 4px;
  align-content: flex-start;
}

/* Soles Quick Grid Layout */
.soles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}

/* ==========================================
   REFERENCE PANEL SYSTEM (SECOND PASS)
   ========================================== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  grid-column: span 12;
  background: #ffffff;
  border: 1px solid var(--bakery-border);
  border-radius: 20px;
  box-shadow: var(--bakery-shadow);
  overflow: hidden;
}

.panel.span-6 { grid-column: span 6; }
.panel.span-7 { grid-column: span 7; }
.panel.span-5 { grid-column: span 5; }
.panel.span-12 { grid-column: span 12; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255,248,236,0.96) 0%, rgba(255,255,255,0.96) 100%);
  border-bottom: 1px solid var(--bakery-border);
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bakery-text);
}

.panel-sub {
  color: var(--bakery-muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.panel-body {
  padding: 1rem 1.15rem 1.15rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 10px 24px rgba(24, 21, 18, 0.03);
  min-height: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(24, 21, 18, 0.06);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.kpi-label {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bakery-muted);
  font-weight: 800;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,202,123,0.18), rgba(229,169,60,0.12));
  color: var(--bakery-amber);
}

.kpi-value {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--bakery-dark);
  margin-bottom: 0.35rem;
}

.kpi-meta {
  font-size: 0.77rem;
  color: var(--bakery-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 100px;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.18);
  color: var(--bakery-dark);
  font-size: 0.73rem;
  font-weight: 700;
}

.progress {
  height: 10px;
  background: rgba(24, 21, 18, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #E5A93C 0%, #C86D27 100%);
}

.progress-meta {
  margin-top: 0.65rem;
  color: var(--bakery-muted);
  font-size: 0.76rem;
}

.muted {
  color: var(--bakery-muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.timeline li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(248,246,242,0.8);
  border: 1px solid rgba(24, 21, 18, 0.05);
}

.timeline li > div {
  display: grid;
  gap: 0.15rem;
}

.timeline li span,
.timeline li time {
  color: var(--bakery-muted);
  font-size: 0.76rem;
}

.pos-cart-panel {
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
  border: 1px solid var(--bakery-border);
  border-radius: 20px;
  box-shadow: var(--bakery-shadow);
}

.product-item-card {
  border-radius: 16px;
  border: 1px solid var(--bakery-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 169, 60, 0.35);
  box-shadow: 0 12px 24px rgba(24, 21, 18, 0.04);
}

.category-scroll-container .btn {
  flex: 0 0 auto;
  border-radius: 10px;
  font-weight: 700;
}

.category-scroll-container .btn.active {
  background: linear-gradient(135deg, #F5CA7B 0%, #E5A93C 100%);
  border-color: transparent;
  color: var(--bakery-dark);
}

/* Shared select replacement: native menus can overflow modals and mobile screens. */
.custom-select-control {
  position: relative;
  width: 100%;
}

.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.custom-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 38px;
  padding: .375rem 2.25rem .375rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #fff;
  color: var(--bakery-dark);
  font: inherit;
  text-align: left;
}

.custom-select-toggle:hover,
.custom-select-toggle:focus-visible,
.custom-select-toggle[aria-expanded="true"] {
  border-color: var(--bakery-gold);
  box-shadow: 0 0 0 .2rem rgba(229, 169, 60, .16);
  outline: 0;
}

.custom-select-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-toggle i {
  flex: 0 0 auto;
  color: var(--bakery-muted);
}

.custom-select-options {
  position: fixed !important;
  z-index: 10000 !important;
  max-height: min(280px, calc(100vh - 16px));
  overflow-y: auto;
  padding: .25rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 21, 18, .2);
}

.custom-select-option {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: .45rem .65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bakery-dark);
  font: inherit;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option[aria-selected="true"] {
  background: #fff3d3;
  color: var(--bakery-dark);
  outline: 0;
}

.custom-date-control {
  position: relative;
  width: 100%;
}

.custom-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
}

.modal-dialog-scrollable > .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 640px) {
  .modal-dialog-scrollable {
    height: calc(100% - 1rem);
  }

  .modal-dialog-scrollable > .modal-content {
    max-height: calc(100vh - 1rem);
  }
}

.custom-date-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: .375rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #fff;
  color: var(--bakery-dark);
  font: inherit;
  text-align: left;
}

.custom-date-toggle:hover,
.custom-date-toggle:focus-visible,
.custom-date-toggle[aria-expanded="true"] {
  border-color: var(--bakery-gold);
  box-shadow: 0 0 0 .2rem rgba(229, 169, 60, .16);
  outline: 0;
}

.custom-date-calendar {
  position: fixed !important;
  z-index: 10000 !important;
  max-height: min(330px, calc(100vh - 16px));
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 21, 18, .2);
}

.custom-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bakery-dark);
  font-size: .8rem;
  margin-bottom: .5rem;
}

.custom-date-header button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bakery-dark);
}

.custom-date-header button:hover,
.custom-date-header button:focus-visible {
  background: #fff3d3;
}

.custom-date-week,
.custom-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}

.custom-date-week {
  color: var(--bakery-muted);
  font-size: .68rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.custom-date-day {
  min-height: 29px;
  padding: .2rem 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bakery-dark);
  font-size: .75rem;
}

.custom-date-day:hover,
.custom-date-day:focus-visible {
  background: #fff3d3;
}

.custom-date-day.is-selected {
  background: var(--bakery-gold);
  font-weight: 800;
}

.custom-date-day.is-today {
  box-shadow: inset 0 0 0 1px var(--bakery-gold);
}

.custom-datetime-control {
  position: relative;
  width: 100%;
}

.custom-datetime-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
}

.custom-datetime-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: .375rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #fff;
  color: var(--bakery-dark);
  font: inherit;
  text-align: left;
}

.custom-datetime-panel {
  position: fixed !important;
  z-index: 10000 !important;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(24, 21, 18, .2);
}

.custom-datetime-time {
  display: flex;
  align-items: end;
  gap: .35rem;
  margin-top: .65rem;
  padding-top: .6rem;
  border-top: 1px solid var(--bakery-border);
}

.custom-datetime-time label {
  display: grid;
  gap: .2rem;
  color: var(--bakery-muted);
  font-size: .68rem;
  font-weight: 700;
}

.custom-datetime-time input {
  width: 58px;
  min-height: 34px;
  padding: .25rem .35rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: var(--bakery-dark);
  text-align: center;
}

.custom-datetime-time button {
  min-height: 34px;
  padding: .25rem .55rem;
  border: 1px solid var(--bakery-gold);
  border-radius: 6px;
  background: #fff3d3;
  color: var(--bakery-dark);
  font-size: .75rem;
  font-weight: 700;
}

.payroll-header-actions {
  flex-wrap: wrap;
}

.payroll-header-actions .btn {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .payroll-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .payroll-header-actions .btn {
    width: 100%;
  }
}

.categories-modal-dialog {
  width: calc(100% - 1rem);
  max-width: 960px;
}

.categories-modal {
  overflow: visible;
}

.categories-table-wrap {
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.categories-table {
  min-width: 620px;
}

.category-editor-card {
  overflow: visible;
}

@media (max-width: 575.98px) {
  .categories-modal-dialog {
    margin: .5rem auto;
  }

  .categories-modal .modal-body {
    padding: .75rem !important;
  }

  .category-editor-card {
    padding: .75rem !important;
  }

  .category-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-editor-actions .btn {
    width: 100%;
    white-space: normal;
  }
}

/* POS ticket overlay */
.pos-workspace {
  position: relative;
}

#posCatalogColumn {
  width: 100%;
}

#posCartColumn {
  position: fixed;
  z-index: 1060;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 1.25rem;
  overflow-y: auto;
  background: rgba(18, 16, 14, .56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#posCartColumn .pos-cart-panel {
  position: relative !important;
  top: auto !important;
  width: min(650px, 100%);
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 1.25rem !important;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

#posCartColumn .pos-cart-panel > .table-responsive {
  max-height: 180px !important;
  margin-bottom: .75rem !important;
}

#posCartColumn .pos-cart-panel .bg-light.p-3 {
  padding: .75rem !important;
  margin-bottom: .75rem !important;
}

#posCartColumn .pos-cart-panel .fs-3 {
  font-size: 1.45rem !important;
}

#posCartColumn .pos-cart-panel .btn.py-3 {
  padding-top: .65rem !important;
  padding-bottom: .65rem !important;
}

.pos-doc-choice {
  position: relative;
}

.pos-doc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.pos-doc-toggle::after {
  flex: 0 0 auto;
}

.pos-doc-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + .25rem);
  left: 0;
  width: 100%;
  padding: .25rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(24, 21, 18, .16);
}

.pos-doc-options button {
  display: block;
  width: 100%;
  padding: .45rem .6rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bakery-dark);
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
}

.pos-doc-options button:hover,
.pos-doc-options button:focus-visible,
.pos-doc-options button[aria-selected="true"] {
  background: #fff3d3;
  color: var(--bakery-dark);
}

.cash-type-choice {
  position: relative;
}

.cash-type-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.cash-type-toggle::after {
  flex: 0 0 auto;
}

.cash-type-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + .25rem);
  left: 0;
  width: 100%;
  padding: .25rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(24, 21, 18, .16);
}

.cash-type-options button {
  display: block;
  width: 100%;
  padding: .55rem .7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bakery-dark);
  text-align: left;
  font-size: .9rem;
  font-weight: 600;
}

.cash-type-options button:hover,
.cash-type-options button:focus-visible,
.cash-type-options button[aria-selected="true"] {
  background: #fff3d3;
  color: var(--bakery-dark);
}

.reports-date-choice {
  position: relative;
}

.reports-filter-card {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.reports-filter-card.has-open-date {
  padding-bottom: 320px !important;
}

.reports-date-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  white-space: nowrap;
}

.reports-date-toggle::after {
  flex: 0 0 auto;
}

.reports-date-options {
  position: fixed !important;
  z-index: 10000 !important;
  top: 0;
  left: 0;
  width: 280px;
  padding: .65rem;
  border: 1px solid var(--bakery-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(24, 21, 18, .16);
}

.reports-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bakery-dark);
  font-size: .8rem;
  margin-bottom: .5rem;
}

.reports-date-header button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bakery-dark);
}

.reports-date-header button:hover,
.reports-date-header button:focus-visible {
  background: #fff3d3;
}

.reports-date-week,
.reports-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}

.reports-date-week {
  color: var(--bakery-muted);
  font-size: .68rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.reports-date-day {
  min-height: 29px;
  padding: .2rem 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bakery-dark);
  font-size: .75rem;
}

.reports-date-day:hover,
.reports-date-day:focus-visible {
  background: #fff3d3;
}

.reports-date-day.is-selected {
  background: var(--bakery-gold);
  font-weight: 800;
}

.reports-date-day.is-today {
  box-shadow: inset 0 0 0 1px var(--bakery-gold);
}

@media (max-width: 575.98px) {
  #posCartColumn {
    align-items: flex-end;
    padding: .5rem;
  }

  #posCartColumn .pos-cart-panel {
    width: 100%;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: .85rem !important;
    border-radius: 16px;
  }
}

body.pos-modal-open {
  overflow: hidden;
}

.table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bakery-muted);
  font-weight: 800;
}

.table tbody td {
  vertical-align: middle;
}

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

@media (max-width: 767.98px) {
  .panel.span-6,
  .panel.span-7,
  .panel.span-5 {
    grid-column: span 12;
  }

  .panel-header {
    padding: 0.85rem 0.9rem;
  }

  .panel-body {
    padding: 0.9rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CARDS, TABLES & FORM CONTROLS
   ========================================== */
.bakery-card {
  background: var(--bakery-card-bg);
  border: 1px solid var(--bakery-border);
  border-radius: 16px;
  box-shadow: var(--bakery-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  max-width: 100%;
}

.bakery-card-interactive {
  cursor: pointer;
}

.bakery-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--bakery-shadow-hover);
}

.card-header-bakery {
  background-color: #FAF9F6;
  border-bottom: 1px solid var(--bakery-border);
  padding: 1rem 1.25rem;
}

/* Buttons Custom */
.btn-gold {
  background: linear-gradient(135deg, #F5CA7B 0%, #E5A93C 100%);
  color: #181512;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-gold:hover, .btn-gold:focus, .btn-gold:active {
  background: linear-gradient(135deg, #E5A93C 0%, #D4982B 100%);
  color: #100E0C;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.35);
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 1.5px solid var(--bakery-gold);
  color: var(--bakery-gold);
  border-radius: 10px;
  font-weight: 600;
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background-color: var(--bakery-gold);
  color: var(--bakery-dark);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.2);
}

/* Soles Quick Shortcut Buttons in POS */
.btn-soles-quick, .btn-soles {
  background-color: var(--bakery-gold-light);
  border: 1.5px solid rgba(229, 169, 60, 0.5);
  color: var(--bakery-dark);
  font-weight: 800;
  border-radius: 12px;
  padding: 0.55rem 0.5rem;
  transition: all 0.18s ease-in-out;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-soles-quick:hover, .btn-soles:hover, .btn-soles:active {
  background: linear-gradient(135deg, #F5CA7B 0%, #E5A93C 100%);
  border-color: var(--bakery-gold);
  color: var(--bakery-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.25);
}

/* Product Item Cards in POS Grid */
.product-item-card {
  border-radius: 14px;
  border: 1px solid var(--bakery-border);
  transition: all 0.2s ease;
  background-color: #FFFFFF;
  user-select: none;
}

.product-item-card:hover {
  border-color: var(--bakery-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 169, 60, 0.12);
}

/* Tables Styling */
.table-bakery {
  width: 100% !important;
  margin-bottom: 0;
  border-collapse: collapse;
}

.table-bakery th {
  background-color: #F7F4EE;
  color: var(--bakery-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--bakery-border);
  padding: 0.9rem 1rem;
}

.table-bakery td {
  vertical-align: middle;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F2EEE7;
}

.table-bakery tbody tr:hover {
  background-color: rgba(229, 169, 60, 0.03);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 169, 60, 0.3) transparent;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background-color: rgba(229, 169, 60, 0.3);
  border-radius: 4px;
}

/* Badges */
.badge-status {
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
}

/* Form controls */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--bakery-border);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--bakery-gold);
  box-shadow: 0 0 0 4px rgba(229, 169, 60, 0.18);
  outline: none;
}

/* Offcanvas Hamburger Mobile Styling */
.offcanvas-start {
  border-right: 2px solid var(--bakery-amber) !important;
  z-index: 1050 !important;
}

.offcanvas-backdrop {
  z-index: 1045 !important;
}

/* Sticky POS Cart Panel */
.pos-cart-panel {
  background: #FFFFFF;
  border: 1px solid var(--bakery-border);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Floating Mobile Cart Bar */
.mobile-cart-float-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 1020;
  background: var(--bakery-dark);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 1px solid var(--bakery-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  animation: slideUpFloat 0.3s ease-out;
}

@keyframes slideUpFloat {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
