  html { visibility: hidden; }

  html, body{ height:100%; margin:0; }
        .app-layout{ min-height:100vh; display:flex; flex-direction:column; }
        .app-body{ flex:1; display:flex; min-height:0; }
        .app-body > .container-fluid{ flex:1; min-height:0; overflow:auto; }
        .app-footer{ flex-shrink:0; }
    
    .app-footer {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
    color: #6c757d;
}

.kpi-scroll {
    max-height: 60vh;   /* Ajusta según tu layout */
    overflow-y: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-separator {
    display: inline-block;
}

/* ðŸ“± Responsive: en pantallas chicas se va a dos lÃ­neas */
@media (max-width: 576px) {
    .footer-separator {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 4px;
    }
}


    #articlesTable thead th{
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    white-space: nowrap;
  }

  /* evita que las celdas rompan lÃ­nea (mejor para muchas columnas) */
  #articlesTable td{
    white-space: nowrap;
    vertical-align: middle;
  }
  
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --success-color: #27ae60;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #ecf0f1;
        }

        .navbar-custom {
            background-color: var(--primary-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .sidebar {
            background-color: #34495e;
            min-height: calc(100vh - 56px);
            padding: 20px 0;
        }

        .sidebar .nav-link {
            color: #ecf0f1;
            padding: 12px 20px;
            margin: 5px 0;
            transition: all 0.3s;
        }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            background-color: var(--secondary-color);
            color: white;
            border-left: 4px solid var(--success-color);
        }

        .card {
            border: none;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .card-header {
            background-color: var(--primary-color);
            color: white;
            border-radius: 10px 10px 0 0 !important;
            font-weight: 600;
        }

        .btn-scan {
            background-color: var(--secondary-color);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.1em;
            border-radius: 8px;
            transition: all 0.3s;
        }

        .btn-scan:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
        }

        .scanner-input {
            font-size: 1.5em;
            padding: 15px;
            border: 3px solid var(--secondary-color);
            border-radius: 8px;
            text-align: center;
        }

        .scanner-input:focus {
            border-color: var(--success-color);
            box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
        }

        .stock-badge {
            font-size: 1.2em;
            padding: 8px 15px;
        }

        .low-stock {
            background-color: var(--danger-color);
        }

        .normal-stock {
            background-color: var(--success-color);
        }

        .high-stock {
            background-color: var(--warning-color);
        }

        .product-image {
            max-width: 150px;
            max-height: 150px;
            object-fit: cover;
            border-radius: 8px;
        }

        .stats-card {
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .stats-card h3 {
            font-size: 2.5em;
            margin: 0;
        }

        .stats-card p {
            margin: 0;
            opacity: 0.9;
        }

        .table-hover tbody tr:hover {
            background-color: #f8f9fa;
            cursor: pointer;
        }

        .print-button {
            padding: 10px 20px;
            border-radius: 6px;
            border: none;
            font-weight: 600;
            transition: all 0.3s;
        }

        .print-label {
            background-color: var(--warning-color);
            color: white;
        }

        .print-ticket {
            background-color: var(--success-color);
            color: white;
        }

        .modal-content {
            border-radius: 15px;
        }

        .signature-pad {
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: crosshair;
        }

        #scannerStatus {
            position: fixed;
            top: 70px;
            right: 20px;
            padding: 10px 20px;
            border-radius: 8px;
            background-color: var(--success-color);
            color: white;
            display: none;
            animation: fadeIn 0.3s;
        }

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

        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .spinner-border {
            width: 3rem;
            height: 3rem;
        }
        .content-section {
            display: none;
        }
        
        :root{
  --nav-h: 56px;     /* navbar */
  --footer-h: 46px;  /* ajusta si lo quieres mÃ¡s alto */
}

html, body{
  height: 100%;
  margin: 0;
}

/* para que el contenido no quede tapado por el footer fijo */
body{
  padding-bottom: var(--footer-h);
}

/* footer fijo abajo */
.app-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  width: 100%;
  z-index: 1030; /* arriba del contenido */
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
}