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

:root {
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-app: #f1f5f9;
  --color-primary: #1e293b;
  --color-accent: #2563eb;
  --color-success: #16a34a;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: #0f172a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for clean horizontal tabs */
.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar,
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Cards & Containers */
.card-clean {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.card-dark-header {
  background: #0f172a;
  color: #ffffff;
}

/* Tab Navigation */
.nav-tab-btn {
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
}

.nav-tab-active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Category Chips */
.chip-btn {
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.15s ease-in-out;
}

/* Tables */
table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #475569;
  background-color: #f8fafc;
}

/* Progress bars */
.progress-bar-bg {
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

/* Thermal Ticket & Statement A4 Printing Style */
@media print {
  body > * {
    display: none !important;
    visibility: hidden !important;
  }

  body > #thermal-ticket-container.is-printing,
  body > #statement-print-container.is-printing,
  body > #thermal-ticket-container:not(.hidden),
  body > #statement-print-container:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > #thermal-ticket-container.is-printing,
  body > #thermal-ticket-container:not(.hidden) {
    width: 76mm !important;
    max-width: 76mm !important;
    padding: 2mm 1mm 10mm 1mm !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
  }

  body > #statement-print-container.is-printing,
  body > #statement-print-container:not(.hidden) {
    width: 100% !important;
    max-width: 210mm !important;
    padding: 8mm 10mm !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  .no-print {
    display: none !important;
  }

  @page {
    margin: 2mm;
    size: auto;
  }
}

/* Prevenir estiramiento de tarjetas en grillas de productos al filtrar o buscar */
#prod-free-items-grid,
#pos-product-grid,
#ws-product-grid {
  align-content: flex-start;
  grid-auto-rows: max-content;
}

/* Grillas con lineas separadoras nitidas y alineacion uniforme */
.table-bordered-grid {
  border-collapse: collapse !important;
  width: 100%;
}
.table-bordered-grid th,
.table-bordered-grid td {
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  vertical-align: middle;
}
.table-bordered-grid th:first-child,
.table-bordered-grid td:first-child {
  border-left: 1px solid #e2e8f0 !important;
}
.table-bordered-grid th:last-child,
.table-bordered-grid td:last-child {
  border-right: 1px solid #e2e8f0 !important;
}
.table-bordered-grid thead th {
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  background-color: #f8fafc;
  font-weight: 700;
  color: #334155;
}
.table-bordered-grid tbody tr:hover {
  background-color: #f8fafc;
}
.table-bordered-grid tfoot td,
.table-bordered-grid tfoot th {
  border-top: 2px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  background-color: #f8fafc;
  font-weight: 700;
}



