html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* VARIABLES DE COLOR */
:root {
    --primary: #0d6efd;
    --dark-sidebar: #1e293b;
    --light-bg: #f8fafc;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ESTRUCTURA */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--dark-sidebar) !important;
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    z-index: 1000;
}

    #sidebar.active {
        margin-left: -260px;
    }

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* MENÚ LATERAL */
#sidebar .sidebar-header {
    background: rgba(0,0,0,0.1);
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 25px;
    font-size: 0.95rem;
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.2s;
}

    #sidebar ul li a:hover {
        color: #fff;
        background: rgba(255,255,255,0.1);
    }

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

/* BOTÓN NUEVA VENTA ESPECIAL */
.btn-nueva-venta {
    background: #2563eb !important;
    margin: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* TARJETAS DEL DASHBOARD */
.card {
    border-radius: 12px;
}

.border-5 {
    border-left-width: 6px !important;
}

/* TABLAS PROFESIONALES */
.table thead th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none;
}

.table tbody td {
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }

        #sidebar.active {
            margin-left: 0;
        }
}