<style data-purpose="custom-utilities">
    /* Hide scrollbar for a cleaner look while keeping functionality */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    
    /* Quantity input spin button removal */
    input[type=number]::-webkit-inner-spin-button, 
    input[type=number]::-webkit-outer-spin-button { 
      -webkit-appearance: none; 
      margin: 0; 
    }
    input[type=number] {
      -moz-appearance: textfield;
    }

    /* Search results dropdown */
    #search-results {
      max-height: 300px;
      overflow-y: auto;
    }
    #search-results .search-item:hover {
      background-color: #e6f6eb;
    }
    #search-results .search-item.active {
      background-color: #e6f6eb;
    }

    /* Payment method active state */
    .payment-btn.active {
      background-color: #00a651 !important;
      color: white !important;
      border-color: #00a651 !important;
    }

    /* Toast notification */
    #toast {
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    #toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    /* Selected cart row */
    .cart-row.selected {
      background-color: #e6f6eb !important;
      border-left: 3px solid #00a651;
    }
    .cart-row.discounted {
      border-left: 3px solid #f59e0b;
    }
    .cart-row.selected.discounted {
      border-left: 3px solid #00a651;
    }
    .cart-row.discounted .discount-badge {
      background-color: #fef3c7;
      color: #d97706;
    }

    /* Discount modal */
    #discount-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #discount-modal.active .modal-content {
      transform: scale(1);
    }

    /* Toggle switch for discount type */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
    }
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0; left: 0; right: 0; bottom: 0;
      background-color: #e5e7eb;
      transition: 0.3s;
      border-radius: 24px;
    }
    .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.3s;
      border-radius: 50%;
    }
    .toggle-switch input:checked + .toggle-slider {
      background-color: #00a651;
    }
    .toggle-switch input:checked + .toggle-slider:before {
      transform: translateX(20px);
    }

    /* Client modal */
    #client-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #client-modal.active .modal-content {
      transform: scale(1);
    }
    #client-search-results {
      max-height: 240px;
      overflow-y: auto;
    }
    .client-item:hover {
      background-color: #e6f6eb;
    }
    .client-item.selected {
      background-color: #e6f6eb;
      border-left: 3px solid #00a651;
    }

    /* Report view */
    #report-view { display: none; }
    #report-view.active { display: flex; }
    #product-view { display: none; }
    #product-view.active { display: flex; }
    #caja-view { display: none; }
    #caja-view.active { display: flex; }
    #client-view { display: none; }
    #client-view.active { display: flex; }
    #mas-view { display: none; }
    #mas-view.active { display: flex; }
    #inventory-view { display: none; }
    #inventory-view.active { display: flex; }
    #settings-view { display: none; }
    #settings-view.active { display: flex; }
    #sale-view.active { display: flex; }
    #sale-view { display: none; }
    #sale-view.active { display: flex; }

    .nav-link.active-nav {
      background-color: #e6f6eb !important;
      color: #00a651 !important;
    }

    .report-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .report-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px -4px rgba(0,0,0,0.08);
    }

    #report-sales-list {
      max-height: calc(100vh - 380px);
      overflow-y: auto;
    }
    #report-sales-list::-webkit-scrollbar {
      width: 4px;
    }
    #report-sales-list::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 4px;
    }

    .sale-row:hover {
      background-color: #f9fafb;
    }
    .sale-row.selected-sale {
      background-color: #e6f6eb !important;
      border-left: 3px solid #00a651;
    }

    /* Sale detail modal */
    #sale-detail-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #sale-detail-modal.active .modal-content {
      transform: scale(1);
    }

    /* Settings modal */
    #settings-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #settings-modal.active .modal-content {
      transform: scale(1);
    }
    .currency-option {
      transition: all 0.2s ease;
    }
    .currency-option:hover {
      border-color: #00a651;
      background-color: #e6f6eb;
    }
    .currency-option.selected {
      border-color: #00a651;
      background-color: #e6f6eb;
    }
    .rate-input:focus {
      border-color: #00a651 !important;
      ring-color: #00a651 !important;
    }

    /* Receipt business header */
    #receipt-business-header {
      transition: all 0.2s ease;
    }
    #receipt-business-logo {
      width: 60px;
      height: 60px;
      object-fit: contain;
      border-radius: 8px;
    }
    #receipt-business-logo-placeholder {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      background-color: rgba(255,255,255,0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }

    /* Settings: business info form */
    .business-input {
      transition: border-color 0.2s ease;
    }
    .business-input:focus {
      border-color: #00a651 !important;
      box-shadow: 0 0 0 2px rgba(0,166,81,0.15) !important;
    }
    #logo-preview {
      width: 64px;
      height: 64px;
      object-fit: contain;
      border-radius: 10px;
    }
    .logo-upload-btn:hover {
      background-color: #e6f6eb;
      border-color: #00a651;
    }

    /* Chart containers */
    .chart-container {
      transition: opacity 0.3s ease;
    }
    .chart-container canvas {
      max-width: 100%;
      max-height: 100%;
    }
    #sales-chart-wrapper {
      min-height: 220px;
    }
    #best-sellers-chart-wrapper {
      min-height: 220px;
    }
    .chart-empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 220px;
      color: #9ca3af;
    }

    /* Report tabs */
    .report-tab-btn {
      transition: all 0.2s ease;
    }
    .report-tab-btn.active {
      background-color: #00a651;
      color: white;
    }
    .report-tab-btn:hover:not(.active) {
      background-color: #e6f6eb;
      color: #00a651;
    }

    /* Best sellers table */
    #report-best-sellers-list {
      max-height: calc(100vh - 380px);
      overflow-y: auto;
    }
    #report-best-sellers-list::-webkit-scrollbar {
      width: 4px;
    }
    #report-best-sellers-list::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 4px;
    }
    .best-seller-row:hover {
      background-color: #f9fafb;
    }
    .best-seller-rank {
      font-feature-settings: 'tnum';
    }
    .sales-bar {
      transition: width 0.6s ease;
    }

        /* Mobile responsive */
    @media (max-width: 1023px) {
      .nav-link span { display: none; }
      .nav-link i { font-size: 1.25rem; margin-bottom: 0; }
      .flex > main { padding-left: 0.75rem !important; padding-right: 0.5rem !important; }
      .flex > main > header h1 { font-size: 1.25rem; }
      #sale-view > header > div:last-child > div:first-child { display: none; }
      .kiosk-footer { display: none; }
    }
    @media (max-width: 639px) {
      .w-24 { width: 3.5rem; padding: 0.5rem 0; }
      .flex > main { padding: 0.25rem !important; }
    }

        /* Category filter chips */
    #category-chips {
      scrollbar-width: none;
    }
    #category-chips::-webkit-scrollbar {
      display: none;
    }
    .category-chip {
      white-space: nowrap;
    }
    .category-chip:hover:not(.active) {
      background-color: #e6f6eb;
      color: #00a651;
      border-color: #00a651;
    }
    .category-chip.active {
      background-color: #00a651;
      color: white;
    }

    /* Modal overlay */
    #receipt-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #receipt-modal.active .modal-content {
      transform: scale(1);
    }
    #ticket-preview-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #ticket-preview-modal.active .modal-content {
      transform: scale(1);
    }
    #ticket-preview-content {
      font-family: "Courier New", "Lucida Console", monospace;
      font-size: 11px;
      line-height: 1.35;
      color: #000;
      background: #fff;
    }
    html.dark #ticket-preview-content {
      background: #fff !important;
      color: #000 !important;
    }
    #ticket-preview-content .tp-header { text-align: center; margin-bottom: 4mm; }
    #ticket-preview-content .tp-header h1 { font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #000; }
    #ticket-preview-content .tp-header p { font-size: 10px; color: #555; margin-top: 1mm; }
    #ticket-preview-content .tp-header .tp-logo { max-width: 120px; max-height: 40px; object-fit: contain; margin-bottom: 2mm; }
    #ticket-preview-content .tp-divider { border-top: 1px dashed #333; margin: 2.5mm 0; }
    #ticket-preview-content .tp-meta { font-size: 10px; margin-bottom: 2mm; color: #000; }
    #ticket-preview-content .tp-meta-row { display: flex; justify-content: space-between; color: #000; }
    #ticket-preview-content .tp-items { margin: 2mm 0; }
    #ticket-preview-content .tp-item-row { display: flex; justify-content: space-between; color: #000; }
    #ticket-preview-content .tp-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #ticket-preview-content .tp-item-qty { text-align: center; width: 8mm; }
    #ticket-preview-content .tp-item-price { text-align: right; width: 18mm; }
    #ticket-preview-content .tp-item-total { text-align: right; width: 22mm; font-weight: bold; }
    #ticket-preview-content .tp-discount-line { font-size: 9px; color: #d97706; text-align: right; }
    #ticket-preview-content .tp-totals { margin: 2mm 0; }
    #ticket-preview-content .tp-totals .tp-line { display: flex; justify-content: space-between; font-size: 10px; padding: 0.5mm 0; color: #000; }
    #ticket-preview-content .tp-totals .tp-grand-total { font-size: 16px; font-weight: bold; border-top: 2px solid #000; padding-top: 1mm; margin-top: 1mm; display: flex; justify-content: space-between; color: #000; }
    #ticket-preview-content .tp-payment-info { margin: 2mm 0; font-size: 10px; }
    #ticket-preview-content .tp-payment-info .tp-line { display: flex; justify-content: space-between; padding: 0.5mm 0; color: #000; }
    #ticket-preview-content .tp-footer { text-align: center; margin-top: 3mm; font-size: 10px; }
    #ticket-preview-content .tp-footer p { margin: 0.5mm 0; color: #000; }
    #ticket-preview-content .tp-footer .tp-thanks { font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; color: #000; }
    #ticket-preview-content .tp-client-line { font-size: 10px; margin: 1.5mm 0; padding: 1.5mm; border: 1px dashed #999; text-align: center; color: #000; }
    #ticket-preview-content .tp-barcode-wrap { text-align: center; margin-top: 2mm; }
    @media print {
      #ticket-preview-modal .modal-content { box-shadow: none !important; border-radius: 0 !important; }
      #ticket-preview-modal .p-4:first-child { display: none !important; }
      #ticket-preview-modal .p-4:last-child { display: none !important; }
    }
  
  
    /* Price History Modal */
    #price-history-modal.active {
      opacity: 1;
      pointer-events: auto;
    }
    #price-history-modal.active .modal-content {
      transform: scale(1);
    }
    #price-history-chart-wrapper {
      min-height: 250px;
    }
    #price-history-chart-wrapper canvas {
      max-width: 100%;
      max-height: 100%;
    }
    .ph-empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      color: #9ca3af;
    }
    .ph-stat-card {
      background: #f3f4f6;
      border-radius: 10px;
      padding: 8px 12px;
      text-align: center;
    }
    html.dark .ph-stat-card {
      background: #334155 !important;
    }
    html.dark #price-history-chart-wrapper {
      background-color: #1e293b !important;
      border-color: #334155 !important;
    }

  
    /* Stock indicators */
    .stock-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
    }
    .stock-badge-high {
      background: #d1fae5;
      color: #059669;
    }
    .stock-badge-low {
      background: #fef3c7;
      color: #d97706;
    }
    .stock-badge-out {
      background: #fee2e2;
      color: #dc2626;
    }
    .stock-input {
      width: 70px;
      text-align: center;
    }
    html.dark .stock-badge-high {
      background: #064e3b !important;
      color: #34d399 !important;
    }
    html.dark .stock-badge-low {
      background: #451a03 !important;
      color: #fbbf24 !important;
    }
    html.dark .stock-badge-out {
      background: #450a0a !important;
      color: #f87171 !important;
    }
    html.dark .stock-input {
      background-color: #334155 !important;
      border-color: #475569 !important;
      color: #e2e8f0 !important;
    }

  
    /* Drag and Drop for cart */
    .cart-row.dragging {
      opacity: 0.5;
      cursor: grabbing !important;
    }
    .cart-row.drag-over {
      border-top: 2px solid #00a651 !important;
      background-color: #e6f6eb !important;
    }
    .cart-row.drag-over-bottom {
      border-bottom: 2px solid #00a651 !important;
      background-color: #e6f6eb !important;
    }
    .cart-row .drag-handle {
      cursor: grab;
      color: #9ca3af;
      transition: color 0.2s ease;
    }
    .cart-row .drag-handle:hover {
      color: #00a651;
    }
    html.dark .cart-row.drag-over,
    html.dark .cart-row.drag-over-bottom {
      background-color: #064e3b !important;
      border-color: #00a651 !important;
    }
    html.dark .cart-row.dragging {
      opacity: 0.4;
    }

  
    /* Product grid drag & drop styles */
    .product-grid-card.dragging {
      opacity: 0.5;
    }
    .product-grid-card.drag-over {
      border-top: 2px solid #00a651 !important;
      background-color: #e6f6eb !important;
    }
    .product-grid-card.drag-over-bottom {
      border-bottom: 2px solid #00a651 !important;
      background-color: #e6f6eb !important;
    }
    .product-grid-card .drag-handle {
      cursor: grab;
      color: #9ca3af;
      transition: color 0.2s ease;
    }
    .product-grid-card .drag-handle:hover {
      color: #00a651;
    }
    html.dark .product-grid-card.drag-over,
    html.dark .product-grid-card.drag-over-bottom {
      background-color: #064e3b !important;
      border-color: #00a651 !important;
    }
    html.dark .product-grid-card.dragging {
      opacity: 0.4;
    }

    /* Multi-select cart styles */
    .cart-select-checkbox {
      width: 16px;
      height: 16px;
      accent-color: #00a651;
      cursor: pointer;
      flex-shrink: 0;
    }
    .cart-row.selected-batch {
      background-color: #e6f6eb !important;
      border-left: 3px solid #00a651 !important;
    }
    html.dark .cart-row.selected-batch {
      background-color: #064e3b !important;
      border-left-color: #00a651 !important;
    }
    #batch-toolbar {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: #00a651;
      color: white;
      font-size: 13px;
      font-weight: 600;
      border-bottom: 1px solid #009048;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    #batch-toolbar.active {
      display: flex;
    }
    #batch-toolbar .batch-btn {
      padding: 4px 12px;
      border-radius: 6px;
      background: rgba(255,255,255,0.15);
      color: white;
      border: none;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: background 0.15s ease;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    #batch-toolbar .batch-btn:hover {
      background: rgba(255,255,255,0.3);
    }
    #batch-toolbar .batch-btn-danger {
      background: rgba(220,38,38,0.7);
    }
    #batch-toolbar .batch-btn-danger:hover {
      background: rgba(220,38,38,0.9);
    }
    #batch-toolbar .batch-count {
      background: rgba(255,255,255,0.2);
      padding: 2px 10px;
      border-radius: 12px;
      font-size: 12px;
      margin-right: auto;
    }
    html.dark #batch-toolbar {
      background: #059669;
      border-bottom-color: #047857;
    }

    /* Activity Timeline */
    .timeline-container {
      position: relative;
      padding-left: 32px;
    }
    .timeline-container::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: #e5e7eb;
      border-radius: 2px;
    }
    html.dark .timeline-container::before {
      background: #334155;
    }
    .timeline-item {
      position: relative;
      padding: 10px 14px;
      margin-bottom: 8px;
      background: #f9fafb;
      border-radius: 10px;
      border: 1px solid #f3f4f6;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .timeline-item:hover {
      transform: translateX(4px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    html.dark .timeline-item {
      background: #1e293b;
      border-color: #334155;
    }
    .timeline-dot {
      position: absolute;
      left: -25px;
      top: 14px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid;
      background: white;
      z-index: 1;
    }
    html.dark .timeline-dot {
      background: #0f172a;
    }
    .timeline-dot.sale { background: #00a651; border-color: #00a651; }
    .timeline-dot.cart_add { background: #3b82f6; border-color: #3b82f6; }
    .timeline-dot.cart_remove { background: #ef4444; border-color: #ef4444; }
    .timeline-dot.product_add { background: #8b5cf6; border-color: #8b5cf6; }
    .timeline-dot.product_edit { background: #f59e0b; border-color: #f59e0b; }
    .timeline-dot.product_delete { background: #dc2626; border-color: #dc2626; }
    .timeline-dot.discount { background: #ec4899; border-color: #ec4899; }
    .timeline-dot.stock { background: #06b6d4; border-color: #06b6d4; }
    .timeline-dot.batch { background: #00a651; border-color: #00a651; }
    .timeline-time {
      font-size: 11px;
      font-weight: 600;
      color: #9ca3af;
      margin-bottom: 2px;
    }
    .timeline-message {
      font-size: 13px;
      font-weight: 600;
      color: #1f2937;
    }
    html.dark .timeline-message {
      color: #e2e8f0;
    }
    .timeline-details {
      font-size: 12px;
      color: #6b7280;
      margin-top: 2px;
    }
    html.dark .timeline-details {
      color: #94a3b8;
    }
    .timeline-icon {
      display: inline-flex;
      width: 22px;
      height: 22px;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      font-size: 11px;
      margin-right: 6px;
      flex-shrink: 0;
    }
    .timeline-icon.sale { background: #e6f6eb; color: #00a651; }
    .timeline-icon.cart_add { background: #eff6ff; color: #3b82f6; }
    .timeline-icon.cart_remove { background: #fef2f2; color: #ef4444; }
    .timeline-icon.product_add { background: #f5f3ff; color: #8b5cf6; }
    .timeline-icon.product_edit { background: #fffbeb; color: #f59e0b; }
    .timeline-icon.product_delete { background: #fef2f2; color: #dc2626; }
    .timeline-icon.discount { background: #fdf2f8; color: #ec4899; }
    .timeline-icon.stock { background: #ecfeff; color: #06b6d4; }
    .timeline-icon.batch { background: #e6f6eb; color: #00a651; }
    html.dark .timeline-icon.sale { background: #064e3b; color: #00a651; }
    html.dark .timeline-icon.cart_add { background: #1e3a5f; color: #60a5fa; }
    html.dark .timeline-icon.cart_remove { background: #450a0a; color: #f87171; }
    html.dark .timeline-icon.product_add { background: #2e1065; color: #a78bfa; }
    html.dark .timeline-icon.product_edit { background: #451a03; color: #fbbf24; }
    html.dark .timeline-icon.product_delete { background: #450a0a; color: #fca5a5; }
    html.dark .timeline-icon.discount { background: #4a0e4e; color: #f472b6; }
    html.dark .timeline-icon.stock { background: #164e63; color: #22d3ee; }
    html.dark .timeline-icon.batch { background: #064e3b; color: #00a651; }
    #activity-empty {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #9ca3af;
      gap: 12px;
    }
    #activity-empty i { font-size: 48px; opacity: 0.3; }
    #activity-empty p { font-size: 16px; font-weight: 500; }
    html.dark #activity-empty { color: #64748b; }
    /* Dashboard hourly chart */
    #dash-chart-wrapper {
      min-height: 220px;
    }
    #dash-chart-wrapper canvas {
      max-width: 100%;
      max-height: 100%;
    }
    html.dark #dash-chart-wrapper { background-color: transparent !important; }
    #dash-top-products .top-product-item:hover,
    #dash-recent-activity .dash-activity-item:hover {
      background-color: #f9fafb;
    }
    html.dark #dash-top-products .top-product-item:hover,
    html.dark #dash-recent-activity .dash-activity-item:hover {
      background-color: #1e293b !important;
    }
    #dash-top-products .top-product-bar {
      transition: width 0.8s ease;
    }
  
  /* Inventory view styles */
  #inventory-view .inv-stock-input {
    width: 65px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  #inventory-view .inv-stock-input:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 2px rgba(0,166,81,0.15);
    outline: none;
  }
  #inventory-view .inv-stock-input.saving {
    border-color: #f59e0b;
    background: #fffbeb;
  }
  #inventory-view .inv-stock-input.saved {
    border-color: #00a651;
    background: #f0fdf4;
  }
  html.dark #inventory-view .inv-stock-input {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
  }
  html.dark #inventory-view .inv-stock-input:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 2px rgba(0,166,81,0.25);
  }
  html.dark #inventory-view .inv-stock-input.saving {
    background: #451a03;
    border-color: #fbbf24;
  }
  html.dark #inventory-view .inv-stock-input.saved {
    background: #064e3b;
    border-color: #34d399;
  }

  #inventory-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
  }
  #inventory-list::-webkit-scrollbar {
    width: 4px;
  }
  #inventory-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
  }
  html.dark #inventory-list::-webkit-scrollbar-thumb {
    background: #475569;
  }
  #inv-movement-log {
    max-height: 200px;
    overflow-y: auto;
  }
  #inv-movement-log::-webkit-scrollbar {
    width: 3px;
  }
  #inv-movement-log::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
  }
  .inv-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .inv-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.08);
  }
  #inv-stock-filter-bar .inv-filter-btn {
    transition: all 0.2s ease;
  }
  #inv-stock-filter-bar .inv-filter-btn.active {
    background-color: #00a651 !important;
    color: white !important;
  }
  #inv-stock-filter-bar .inv-filter-btn:hover:not(.active) {
    background-color: #e6f6eb !important;
    color: #00a651 !important;
  }
  #inv-stock-movement-section {
    transition: all 0.2s ease;
  }
<style id="dark-mode-styles">
    /* Dark mode overrides */
    html.dark body {
      --tw-bg-opacity: 1;
      background-color: #0f172a;
      color: #e2e8f0;
    }
    html.dark .bg-surface { background-color: #0f172a !important; }
    html.dark .bg-surface-card { background-color: #1e293b !important; }
    html.dark .bg-white { background-color: #1e293b !important; }
    html.dark .text-text-primary { color: #e2e8f0 !important; }
    html.dark .text-text-secondary { color: #94a3b8 !important; }
    html.dark .text-text-muted { color: #64748b !important; }
    html.dark .border-gray-100 { border-color: #334155 !important; }
    html.dark .border-gray-200 { border-color: #475569 !important; }
    html.dark .border-gray-300 { border-color: #64748b !important; }
    html.dark .bg-gray-50 { background-color: #1e293b !important; }
    html.dark .bg-gray-100 { background-color: #334155 !important; }
    html.dark .bg-gray-200 { background-color: #475569 !important; }
    html.dark .text-gray-200 { color: #475569 !important; }
    html.dark .bg-gray-200\/50 { background-color: rgba(30, 41, 59, 0.5) !important; }
    html.dark .hover\:bg-surface:hover { background-color: #1e293b !important; }
    html.dark .hover\:bg-gray-50:hover { background-color: #1e293b !important; }
    html.dark .hover\:bg-white:hover { background-color: #334155 !important; }
    html.dark .hover\:border-gray-300:hover { border-color: #64748b !important; }
    html.dark .shadow-card { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important; }
    html.dark .shadow-panel { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important; }
    html.dark .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2) !important; }
    html.dark .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15) !important; }
    html.dark .shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2) !important; }
    html.dark .hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15) !important; }
    html.dark .bg-gray-50\/50 { background-color: rgba(30, 41, 59, 0.5) !important; }
    html.dark select, html.dark input[type="text"], html.dark input[type="number"] {
      background-color: #334155 !important;
      border-color: #475569 !important;
      color: #e2e8f0 !important;
    }
    html.dark .toggle-slider { background-color: #475569 !important; }
    html.dark #search-results { background-color: #1e293b !important; border-color: #475569 !important; }
    html.dark .search-item:hover { background-color: #334155 !important; }
    html.dark .modal-content { background-color: #1e293b !important; }
    html.dark #receipt-modal .modal-content > div:first-child {
      background-color: #008541 !important;
    }
    html.dark .bg-brand-light { background-color: #064e3b !important; }
    html.dark .bg-red-50 { background-color: #450a0a !important; }
    html.dark .text-red-500 { color: #f87171 !important; }
    html.dark .hover\:bg-red-50:hover { background-color: #450a0a !important; }
    html.dark .hover\:text-red-500:hover { color: #f87171 !important; }
    html.dark .border-red-200 { border-color: #7f1d1d !important; }
    html.dark .hover\:border-red-300:hover { border-color: #991b1b !important; }
    html.dark footer { background-color: #1e293b !important; border-color: #334155 !important; }
    html.dark aside { background-color: #1e293b !important; }
    html.dark .bg-amber-100 { background-color: #451a03 !important; }
    html.dark .text-amber-600 { color: #fbbf24 !important; }
    html.dark .text-amber-700 { color: #f59e0b !important; }
    html.dark .bg-blue-100 { background-color: #1e3a5f !important; }
    html.dark .text-blue-600, html.dark .text-blue-700 { color: #60a5fa !important; }
    html.dark .bg-green-100 { background-color: #064e3b !important; }
    html.dark .text-green-700 { color: #34d399 !important; }
    html.dark .bg-purple-100 { background-color: #3b0764 !important; }
    html.dark .text-purple-600, html.dark .text-purple-700 { color: #a78bfa !important; }
    html.dark .bg-cyan-100 { background-color: #164e63 !important; }
    html.dark .text-cyan-700 { color: #22d3ee !important; }
    html.dark .bg-indigo-50 { background-color: #1e1b4b !important; }
    html.dark .text-indigo-600, html.dark .text-indigo-700 { color: #818cf8 !important; }
    html.dark .text-indigo-400, html.dark .text-indigo-500 { color: #6366f1 !important; }
    html.dark .border-indigo-200 { border-color: #3730a3 !important; }
    html.dark .hover\:text-brand:hover { color: #00a651 !important; }
    html.dark .text-brand { color: #00a651 !important; }
    html.dark .bg-brand\/10 { background-color: rgba(0, 166, 81, 0.2) !important; }
    html.dark .bg-brand\/20 { background-color: rgba(0, 166, 81, 0.2) !important; }
    html.dark .border-brand\/20 { border-color: rgba(0, 166, 81, 0.3) !important; }
    html.dark .border-brand\/30 { border-color: rgba(0, 166, 81, 0.4) !important; }
    html.dark .shadow-brand\/20 { box-shadow: 0 4px 6px -1px rgba(0, 166, 81, 0.3) !important; }
    html.dark .shadow-brand\/30 { box-shadow: 0 6px 8px -1px rgba(0, 166, 81, 0.3) !important; }
    html.dark .shadow-brand\/40 { box-shadow: 0 8px 12px -1px rgba(0, 166, 81, 0.3) !important; }
    html.dark .hover\:bg-brand-dark:hover { background-color: #008541 !important; }
    html.dark .cart-row:hover { background-color: #334155 !important; }
    html.dark .cart-row.selected { background-color: #064e3b !important; }
    html.dark .payment-btn { background-color: #334155 !important; border-color: #475569 !important; color: #94a3b8 !important; }
    html.dark .payment-btn.active { background-color: #00a651 !important; color: white !important; border-color: #00a651 !important; }
    html.dark .sale-row:hover { background-color: #1e293b !important; }
    html.dark .best-seller-row:hover { background-color: #1e293b !important; }
    html.dark .report-card:hover { box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3) !important; }
    html.dark .category-chip:not(.active) { background-color: #334155 !important; border-color: #475569 !important; color: #94a3b8 !important; }
    html.dark .category-chip:hover:not(.active) { background-color: #064e3b !important; color: #00a651 !important; border-color: #00a651 !important; }
    html.dark .currency-option { background-color: #1e293b !important; border-color: #475569 !important; }
    html.dark .currency-option:hover, html.dark .currency-option.selected { background-color: #064e3b !important; border-color: #00a651 !important; }
    html.dark .client-form-input { background-color: #334155 !important; border-color: #475569 !important; color: #e2e8f0 !important; }
html.dark .client-item { background-color: #1e293b !important; border-color: #334155 !important; }
    html.dark .client-item:hover { background-color: #334155 !important; border-color: #00a651 !important; }
    html.dark .nav-link.active-nav { background-color: #064e3b !important; color: #00a651 !important; }
    html.dark .report-tab-btn:not(.active) { background-color: transparent !important; color: #94a3b8 !important; }
    html.dark .report-tab-btn:hover:not(.active) { background-color: #064e3b !important; color: #00a651 !important; }
    html.dark .client-badge { background-color: #1e1b4b !important; border-color: #3730a3 !important; }
    html.dark .hover\:bg-brand-light:hover { background-color: #064e3b !important; }
    html.dark .cart-row.discounted .discount-badge { background-color: #451a03 !important; color: #fbbf24 !important; }
    html.dark .bg-gray-200\/50 { background-color: rgba(30, 41, 59, 0.8) !important; }
    html.dark .cart-row .input-qty { background-color: #334155 !important; }
    html.dark .bg-white\/20 { background-color: rgba(255, 255, 255, 0.15) !important; }
    /* Kiosk mode */
    .kiosk-mode aside:first-of-type { display: none !important; }
    .kiosk-mode > .flex > aside.w-\[360px\] { display: none !important; }
    .kiosk-mode .kiosk-footer { display: none !important; }
    .kiosk-mode > .flex > .flex-1 { margin-right: 0 !important; }
    .kiosk-mode > .flex { height: 100vh !important; }
    .kiosk-mode .kiosk-exit-btn { display: flex !important; }
    .kiosk-exit-btn { display: none; position: fixed; top: 12px; right: 12px; z-index: 9999; width: 44px; height: 44px; border-radius: 12px; background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer; align-items: center; justify-content: center; font-size: 18px; transition: background 0.2s ease; }
    .kiosk-exit-btn:hover { background: rgba(220,38,38,0.8); }
    html.dark .kiosk-exit-btn { background: rgba(255,255,255,0.15); }
/* Low stock row highlighting */
.product-row-stock-low {
  background-color: #fffbeb !important;
  border-left: 3px solid #f59e0b !important;
}
.product-row-stock-out {
  background-color: #fef2f2 !important;
  border-left: 3px solid #ef4444 !important;
}
html.dark .product-row-stock-low {
  background-color: #451a03 !important;
  border-left-color: #fbbf24 !important;
}
html.dark .product-row-stock-out {
  background-color: #450a0a !important;
  border-left-color: #f87171 !important;
}
#low-stock-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
#low-stock-summary.has-low {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}
#low-stock-summary.has-out {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
#low-stock-summary.has-low.has-out {
  background: linear-gradient(135deg, #fef3c7 50%, #fee2e2 50%);
  border-color: #fde68a #fecaca #fecaca #fde68a;
}
#low-stock-summary.ok {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
html.dark #low-stock-summary.has-low {
  background: #451a03;
  color: #fbbf24;
  border-color: #78350f;
}
html.dark #low-stock-summary.has-out {
  background: #450a0a;
  color: #f87171;
  border-color: #7f1d1d;
}
html.dark #low-stock-summary.ok {
  background: #064e3b;
  color: #34d399;
  border-color: #065f46;
}

/* Cart stock badge */
.cart-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.cart-stock-high {
  background: #d1fae5;
  color: #059669;
}
.cart-stock-low {
  background: #fef3c7;
  color: #d97706;
}
.cart-stock-out {
  background: #fee2e2;
  color: #dc2626;
}
html.dark .cart-stock-high {
  background: #064e3b !important;
  color: #34d399 !important;
}
html.dark .cart-stock-low {
  background: #451a03 !important;
  color: #fbbf24 !important;
}
html.dark .cart-stock-out {
  background: #450a0a !important;
  color: #f87171 !important;
}


/* Search input focus indicator */
.search-wrapper-focus {
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.25), 0 0 20px rgba(0, 166, 81, 0.1);
  border-color: #00a651 !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-wrapper-focus .search-pulse {
  opacity: 1;
  transform: scaleY(1.2);
}
/* Cobrar button states */
.btn-charge-active {
  animation: charge-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 166, 81, 0.4), 0 4px 14px rgba(0, 166, 81, 0.25) !important;
}
.btn-charge-active:hover {
  animation: none !important;
  box-shadow: 0 0 30px rgba(0, 166, 81, 0.5), 0 6px 20px rgba(0, 166, 81, 0.3) !important;
}
@keyframes charge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 166, 81, 0.4), 0 4px 14px rgba(0, 166, 81, 0.25); }
  50% { box-shadow: 0 0 30px rgba(0, 166, 81, 0.6), 0 4px 18px rgba(0, 166, 81, 0.35); }
}
.btn-charge-empty {
  opacity: 0.5;
  cursor: default !important;
  pointer-events: none;
}
html.dark .btn-charge-active {
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.35), 0 4px 14px rgba(0, 200, 83, 0.2) !important;
}
html.dark .btn-charge-active:hover {
  box-shadow: 0 0 30px rgba(0, 200, 83, 0.45), 0 6px 20px rgba(0, 200, 83, 0.25) !important;
}
@keyframes charge-pulse-dark {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 200, 83, 0.35), 0 4px 14px rgba(0, 200, 83, 0.2); }
  50% { box-shadow: 0 0 30px rgba(0, 200, 83, 0.55), 0 4px 18px rgba(0, 200, 83, 0.3); }
}
/* Cart count badge on cobrar button */
#charge-count-badge {
  background: white;
  color: #00a651;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  line-height: 1.5;
  margin-left: 6px;
}
.btn-charge-empty #charge-count-badge {
  display: none;
}
/* Header cobrar shortcut indicator */
.btn-charge-shortcut-active {
  box-shadow: 0 0 12px rgba(0, 166, 81, 0.35) !important;
}
.btn-charge-shortcut-empty {
  opacity: 0.5;
}

/* Quantity input focus indicator */
.input-qty-wrapper-focus {
  border-color: #00a651 !important;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.2), 0 0 12px rgba(0, 166, 81, 0.1);
}
html.dark .input-qty-wrapper-focus {
  border-color: #00c853 !important;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.25), 0 0 12px rgba(0, 200, 83, 0.12);
}
.input-qty-wrapper-focus .input-qty {
  background-color: #f0fdf4 !important;
}
html.dark .input-qty-wrapper-focus .input-qty {
  background-color: #064e3b !important;
  color: #fff !important;
}

html.dark .search-wrapper-focus {
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.35), 0 0 25px rgba(0, 166, 81, 0.15);
}
.search-wrapper-blur {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    html.dark .kiosk-exit-btn:hover { background: rgba(220,38,38,0.8) !important; }
    html.dark #receipt-note { background-color: #451a03 !important; color: #fbbf24 !important; border-color: #78350f !important; }
    /* Client view styles */
    .client-row:hover { background-color: #f9fafb; }
    .client-row .client-actions-btn { opacity: 0; transition: opacity 0.15s ease; }
    .client-row:hover .client-actions-btn { opacity: 1; }
    html.dark .client-row:hover { background-color: #1e293b !important; }
    .client-type-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
    .client-purchase-count { font-size: 13px; font-weight: 700; }
    /* Mas view cards */
    .mas-card { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
    .mas-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1); }
    html.dark .mas-card:hover { box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3) !important; }
    .shortcut-key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 5px; font-size: 11px; font-weight: 700; color: #374151; font-family: monospace; }
    html.dark .shortcut-key { background: #334155; border-color: #475569; color: #e2e8f0; }
    #mas-shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
    html.dark #receipt-note { background-color: #451a03 !important; color: #fbbf24 !important; border-color: #78350f !important; }
    html.dark .chart-container { background-color: #1e293b !important; border-color: #334155 !important; }
    html.dark #report-date-from, html.dark #report-date-to {
      background-color: #334155 !important;
      border-color: #475569 !important;
      color-scheme: dark;
    }
    html.dark #sales-chart-wrapper, html.dark #best-sellers-chart-wrapper {
      background-color: #1e293b !important;
      border-color: #334155 !important;
    }

/* ---------- Login screen ---------- */
#login-screen { transition: opacity .3s ease; }
#login-screen.hidden-login { opacity: 0; pointer-events: none; }
