/* ============================================================
OCOMPRAS - ESTILOS PRINCIPALES
============================================================ */

/* ============================================================
ESTILOS GENERALES
============================================================ */

* {
  box-sizing: border-box;
  }

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

body {
background-color: #f5f6f8;


font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Helvetica, Arial, sans-serif;

color: #212529;


}

/* ============================================================
BARRA LATERAL
============================================================ */

.sidebar {
position: fixed;


top: 0;
left: 0;

width: 250px;
height: 100vh;

background-color: #1f2937;

color: white;

z-index: 1000;

overflow-y: auto;


}

/* ============================================================
LOGOTIPO
============================================================ */

.brand {
height: 70px;


display: flex;
align-items: center;

padding: 0 24px;

font-size: 22px;
font-weight: 700;

border-bottom: 1px solid rgba(255, 255, 255, 0.08);


}

.brand-icon {
width: 36px;
height: 36px;


flex: 0 0 36px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 8px;

background-color: #2563eb;

margin-right: 10px;

font-size: 18px;


}

.brand-text {
color: #ffffff;
}

/* ============================================================
MENU LATERAL
============================================================ */

.menu {
padding: 20px 12px;
}

.menu-title {
font-size: 11px;


text-transform: uppercase;

color: #9ca3af;

font-weight: 600;

padding: 12px 12px 8px;

letter-spacing: 0.5px;


}

.menu a {
display: flex;
align-items: center;


padding: 11px 12px;

margin-bottom: 3px;

border-radius: 7px;

color: #d1d5db;

text-decoration: none;

font-size: 14px;

transition: background-color 0.15s ease,
            color 0.15s ease;


}

.menu a i {
width: 22px;


flex: 0 0 22px;

margin-right: 10px;

font-size: 17px;

text-align: center;


}

.menu a:hover {
background-color: #374151;


color: #ffffff;


}

.menu a.active {
background-color: #2563eb;


color: #ffffff;


}

/* ============================================================
CONTENIDO PRINCIPAL
============================================================ */

.main-wrapper {
    min-height: 100vh;
    margin-left: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .main-wrapper {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* ============================================================
BARRA SUPERIOR
============================================================ */

.topbar {
min-height: 70px;


background-color: #ffffff;

border-bottom: 1px solid #e5e7eb;

display: flex;
align-items: center;
justify-content: space-between;

gap: 20px;

padding: 14px 30px;


}

.page-title {
font-size: 20px;

font-weight: 600;

margin: 0;


}

.company-name {
font-size: 13px;


color: #6b7280;

white-space: nowrap;

overflow: hidden;

text-overflow: ellipsis;


}

/* ============================================================
USUARIO
============================================================ */

.user-menu {
display: flex;
align-items: center;


gap: 12px;

min-width: 0;


}

.user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ============================================================
CONTENIDO
============================================================ */

.content {
width: 100%;


padding: 30px;


}

/* ============================================================
BOTONES
============================================================ */

.btn-primary {
background-color: #2563eb;


border-color: #2563eb;


}

.btn-primary:hover,
.btn-primary:focus {
background-color: #1d4ed8;


border-color: #1d4ed8;


}

/* ============================================================
TARJETAS
============================================================ */

.card {
border: 1px solid #e5e7eb;


border-radius: 10px;

box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);

background-color: #ffffff;


}

/* ============================================================
TABLAS
============================================================ */

.table {
margin-bottom: 0;


min-width: 650px;


}

.table thead th {
font-size: 12px;


text-transform: uppercase;

color: #6b7280;

font-weight: 600;

border-bottom: 1px solid #e5e7eb;

white-space: nowrap;


}

.table tbody td {
vertical-align: middle;


border-color: #f0f1f3;


}

/* ============================================================
BADGES DE ESTADO
============================================================ */

.estado-badge {
display: inline-flex;
align-items: center;


padding: 5px 9px;

border-radius: 6px;

font-size: 12px;

font-weight: 600;

white-space: nowrap;


}

.estado-borrador {
background-color: #f3f4f6;


color: #4b5563;


}

.estado-pendiente {
background-color: #fef3c7;


color: #92400e;


}

.estado-aprobada {
background-color: #dcfce7;


color: #166534;


}

.estado-rechazada {
background-color: #fee2e2;


color: #991b1b;


}

.estado-firmada {
background-color: #dbeafe;


color: #1e40af;


}

.estado-recibida {
background-color: #d1fae5;


color: #065f46;


}

.estado-cancelada {
background-color: #ffedd5;


color: #c2410c;


}


/* ============================================================
   AYUDA "?" (orden con firma en pluma)
   ============================================================ */
.ayuda-fisica {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.ayuda-fisica:hover,
.ayuda-fisica:focus {
    color: #0d6efd;
    outline: none;
}


/* ============================================================
DASHBOARD
============================================================ */

.dashboard-card {
min-height: 120px;
}

.dashboard-card .icon {
width: 46px;
height: 46px;


flex: 0 0 46px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 10px;

font-size: 21px;


}

/* ============================================================
FORMULARIOS GENERALES
============================================================ */

.form-label {
font-size: 14px;


font-weight: 600;

color: #374151;


}

.form-control,
.form-select {
border-color: #d1d5db;


border-radius: 7px;

padding: 9px 12px;


}

.form-control:focus,
.form-select:focus {
border-color: #2563eb;


box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);


}

/* ============================================================
LOGIN
============================================================ */

.auth-page {
min-height: 100vh;


margin: 0;

background:
    radial-gradient(
        circle at top left,
        rgba(37, 99, 235, 0.08),
        transparent 35%
    ),
    #f5f6f8;

display: flex;
align-items: center;
justify-content: center;

padding: 24px;


}

.auth-container {
width: 100%;
max-width: 430px;
}

.auth-card {
width: 100%;


background-color: #ffffff;

border: 1px solid #e5e7eb;

border-radius: 14px;

padding: 40px;

box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.04);

}

.auth-brand {
display: flex;
align-items: center;
justify-content: center;

margin-bottom: 34px;

font-size: 24px;
font-weight: 700;

color: #1f2937;

}

.auth-brand-icon {
width: 42px;
height: 42px;

display: flex;
align-items: center;
justify-content: center;

margin-right: 11px;

border-radius: 10px;

background-color: #2563eb;

color: #ffffff;

font-size: 20px;

}

.auth-brand-name {
line-height: 1;
}

.auth-header {
text-align: center;

margin-bottom: 30px;

}

.auth-header h1 {
margin: 0 0 8px;

font-size: 25px;

font-weight: 650;

color: #111827;

}

.auth-header p {
margin: 0;

font-size: 14px;

line-height: 1.6;

color: #6b7280;

}

.auth-field {
margin-bottom: 20px;
}

.auth-field label {
display: block;

margin-bottom: 7px;

font-size: 14px;

font-weight: 600;

color: #374151;

}

.auth-input {
width: 100%;

min-height: 46px;

display: flex;
align-items: center;

border: 1px solid #d1d5db;

border-radius: 8px;

background-color: #ffffff;

transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;

}

.auth-input:focus-within {
border-color: #2563eb;

box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);

}

.auth-input i {
width: 45px;

flex: 0 0 45px;

text-align: center;

color: #9ca3af;

font-size: 17px;

}

.auth-input input {
width: 100%;

min-width: 0;

height: 44px;

padding: 0 12px 0 0;

border: 0;

outline: 0;

background: transparent;

color: #111827;

font-size: 14px;

}

.auth-input input::placeholder {
color: #9ca3af;
}

.auth-submit {
width: 100%;

min-height: 46px;

display: flex;
align-items: center;
justify-content: center;

gap: 10px;

margin-top: 4px;

padding: 10px 18px;

border: 1px solid #2563eb;

border-radius: 8px;

background-color: #2563eb;

color: #ffffff;

font-size: 14px;

font-weight: 600;

cursor: pointer;

transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;

}

.auth-submit:hover {
background-color: #1d4ed8;

border-color: #1d4ed8;

}

.auth-submit:active {
transform: translateY(1px);
}

.auth-error {
display: flex;
align-items: flex-start;

gap: 9px;

margin-bottom: 20px;

padding: 11px 13px;

border: 1px solid #fecaca;

border-radius: 8px;

background-color: #fef2f2;

color: #991b1b;

font-size: 13px;

line-height: 1.4;

}

.auth-error i {
margin-top: 1px;

flex: 0 0 auto;

}

.auth-footer {
margin-top: 28px;

padding-top: 20px;

border-top: 1px solid #f0f1f3;

text-align: center;

color: #9ca3af;

font-size: 12px;

}

/* ============================================================
TELEFONO
============================================================ */

.telefono-pais {
    min-width: 120px;
    padding-right: 2rem;
}

/* ============================================================
AVATAR
============================================================ */

.avatar-wrap {
    position: relative;
    display: block;
    width: 96px;
}

.avatar-editable {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

/* Siempre visible, tenue; un poco más oscuro al pasar el mouse */
.avatar-camara {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.30);
    color: #fff;
    font-size: 1.5rem;
    transition: background .2s ease;
}

.avatar-editable:hover .avatar-camara,
.avatar-editable:focus-within .avatar-camara {
    background: rgba(0, 0, 0, 0.50);
}

.avatar-borrar {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #dc3545;
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.avatar-borrar:hover { background: #bb2d3b; }

/* En pantallas táctiles no existe hover: se deja visible, más tenue */
@media (hover: none) {
    .avatar-camara {
        opacity: 1;
        background: rgba(0, 0, 0, 0.30);
        font-size: 1.3rem;
    }
}

/* ============================================================
LOGO EMPRESA EN CONFIGURACION
============================================================ */

.logo-wrap {
    position: relative;
    display: inline-block;
}

.logo-editable {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100px;
    padding: .5rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #f8f9fa;
    overflow: hidden;
    cursor: pointer;
}

.logo-editable:hover .avatar-camara,
.logo-editable:focus-within .avatar-camara {
    background: rgba(0, 0, 0, 0.50);
}

/* ============================================================
RESPONSIVE - TABLET
============================================================ */

@media (max-width: 991.98px) {

.sidebar {
    width: 72px;
}


.brand {
    justify-content: center;

    padding: 0;
}


.brand-icon {
    margin-right: 0;
}


.brand-text {
    display: none;
}


.menu {
    padding: 16px 10px;
}


.menu-title {
    display: none;
}


.menu a {
    justify-content: center;

    padding: 12px;
}


.menu a i {
    margin-right: 0;
}


.menu a span {
    display: none;
}


.main-wrapper {
    margin-left: 72px;

    width: calc(100% - 72px);
}


.content {
    padding: 24px;
}


.topbar {
    padding: 14px 24px;
}

}

/* ============================================================
RESPONSIVE - MÓVIL
============================================================ */

@media (max-width: 767.98px) {

.sidebar {
    position: fixed;

    width: 58px;
}


.brand {
    height: 60px;
}


.brand-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
}


.menu {
    padding: 12px 7px;
}


.menu a {
    padding: 11px 8px;

    margin-bottom: 4px;
}


.menu a i {
    font-size: 18px;
}


.main-wrapper {
    margin-left: 58px;

    width: calc(100% - 58px);
}


.topbar {
    min-height: 60px;

    padding: 10px 16px;
}


.page-title {
    font-size: 17px;
}


.user-menu {
    gap: 8px;
}


.content {
    padding: 18px 14px;
}


.dashboard-card {
    min-height: 105px;
}


.dashboard-card .icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    font-size: 18px;
}


.table-responsive {
    margin-right: -1px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


.table {
    min-width: 650px;
}


/* Login móvil */

.auth-page {
    align-items: flex-start;

    padding: 20px 14px;
}


.auth-container {
    max-width: 430px;

    margin: auto;
}


.auth-card {
    padding: 30px 22px;

    border-radius: 12px;
}


.auth-brand {
    margin-bottom: 28px;

    font-size: 22px;
}


.auth-brand-icon {
    width: 38px;
    height: 38px;

    margin-right: 9px;

    border-radius: 9px;

    font-size: 18px;
}


.auth-header {
    margin-bottom: 26px;
}


.auth-header h1 {
    font-size: 23px;
}


.auth-header p {
    font-size: 13px;
}

}

/* ============================================================
RESPONSIVE - MÓVIL PEQUEÑO
============================================================ */

@media (max-width: 400px) {

.sidebar {
    width: 52px;
}


.main-wrapper {
    margin-left: 52px;

    width: calc(100% - 52px);
}


.topbar {
    padding-left: 12px;
    padding-right: 12px;
}


.content {
    padding: 16px 10px;
}


.auth-page {
    padding: 12px 10px;
}


.auth-card {
    padding: 26px 18px;
}


.auth-header h1 {
    font-size: 21px;
}


}


/* ============================================================
LANDING PAGE (PÚBLICA)
============================================================ */

body.landing-page {
  background-color: #ffffff;
  color: #1f2937;
}

/* Restablecer layout en Landing (ignora sidebar) */
body.landing-page .main-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Navbar */
.landing-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.landing-logo {
  font-weight: 700;
  font-size: 22px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-logo-icon {
  width: 36px;
  height: 36px;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-nav-actions {
  display: flex;
  gap: 12px;
}

/* Navbar Mobile (Menú Desplegable Ultra Compacto a la Derecha) */
@media (max-width: 991.98px) {
  .landing-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 15px;
    width: 180px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1050;
  }

  .landing-navbar .navbar-nav {
    gap: 2px;
    margin-bottom: 8px !important;
  }

  .landing-navbar .nav-link {
    font-weight: 500;
    font-size: 13px;
    color: #374151;
    padding: 6px 8px !important;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .landing-navbar .nav-link:hover,
  .landing-navbar .nav-link:focus {
    background-color: #f3f4f6;
    color: #2563eb;
  }

  /* Acciones y botones compactos */
  .landing-nav-actions {
    flex-direction: column-reverse; /* Probar gratis arriba, Iniciar sesión abajo */
    width: 100%;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
  }

  .landing-nav-actions .btn {
    width: 100%;
    font-size: 12px;
    padding: 6px 10px;
    text-align: center;
  }
}

/* Hero Section */
.landing-hero {
  padding: 80px 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 40%);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.landing-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 20px;
}

.landing-hero h1 span {
  color: #2563eb;
}

.landing-hero-description {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 30px;
}

.landing-hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.landing-hero-note {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Preview Card */
.landing-dashboard-preview {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.preview-content {
  display: flex;
  min-height: 280px;
}

.preview-sidebar {
  width: 50px;
  background-color: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  gap: 15px;
  color: #9ca3af;
}

.preview-sidebar-item.active {
  color: #ffffff;
}

.preview-main {
  flex: 1;
  padding: 20px;
  background-color: #f5f6f8;
}

.preview-stats {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.preview-stat {
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  flex: 1;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.preview-stat strong {
  display: block;
  font-size: 16px;
}

.preview-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-order {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border: 1px solid #e5e7eb;
}

.preview-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.preview-status.success { background: #dcfce7; color: #166534; }
.preview-status.pending { background: #fef3c7; color: #92400e; }
.preview-status.draft { background: #f3f4f6; color: #4b5563; }

/* Funciones & Secciones */
.landing-section {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .landing-section {
    padding: 35px 0;
  }
}

.landing-section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.landing-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
}

.landing-feature-card {
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  height: 100%;
}

.landing-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

/* Precios / Planes */
.pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features i {
  color: #166534;
}

/* CTA & Footer */
.landing-cta {
  background-color: #2563eb;
  color: #ffffff;
  padding: 60px 0;
  border-radius: 16px;
  margin: 40px auto;
}

.landing-cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-footer {
  padding: 40px 0 20px;
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.landing-footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.landing-footer-links {
  display: flex;
  gap: 20px;
}

.landing-footer-links a {
  color: #6b7280;
  text-decoration: none;
}


/* Barra vertical solo en los títulos y en escritorio */
@media (min-width: 768px) {
    .landing-footer .footer-section-title {
        border-left: 3px solid #2563eb;
        padding-left: 10px;
    }
}

/* ============================================================
RECORTAR FOTO DE PERFIL
============================================================ */

/* Contenedor estricto para evitar desbordamiento vertical en Cropper */
.img-container {
    width: 100%;
    height: 350px; /* Altura fija predecible */
    background-color: #1a1a1a; /* Fondo oscuro elegante para recortar */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Evita deformaciones */
}




/* ============================================================
   ESTILOS RESPONSIVOS PARA ÍTEMS DE ORDEN DE COMPRA (TABLA / TARJETA)
   ============================================================ */

/* En pantallas grandes (Escritorio / PC) */
@media (min-width: 768px) {
    .order-item {
        background-color: #fff !important;
        border: none !important;
        border-bottom: 1px solid #e9ecef !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transition: background-color .15s ease;
    }

    .order-item:last-child {
        border-bottom: none !important;
    }

    .order-item:hover {
        background-color: #f8f9fa !important;
    }

    #order-items {
        border: 1px solid #dee2e6;
        border-top: none;
        border-radius: 0 0 .375rem .375rem;
        overflow: hidden;
    }
}

/* ============================================================
RESPONSIVE - MÓVIL
============================================================ */

@media (max-width: 767.98px) {

.sidebar {
    position: fixed;
    width: 58px;
}

.brand {
    height: 60px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.menu {
    padding: 12px 7px;
}

.menu a {
    padding: 11px 8px;
    margin-bottom: 4px;
}

.menu a i {
    font-size: 18px;
}

/* AQUÍ ESTABA EL MARGEN QUE DEJABA EL ESPACIO EN BLANCO */
.main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
}

.topbar {
    min-height: 60px;
    padding: 10px 16px;
}

.page-title {
    font-size: 17px;
}

.user-menu {
    gap: 8px;
}

.content {
    padding: 18px 14px;
}

.dashboard-card {
    min-height: 105px;
}

.dashboard-card .icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 18px;
}

.table-responsive {
    margin-right: -1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 650px;
}

/* Login móvil */
.auth-page {
    align-items: flex-start;
    padding: 20px 14px;
}

.auth-container {
    max-width: 430px;
    margin: auto;
}

.auth-card {
    padding: 30px 22px;
    border-radius: 12px;
}

.auth-brand {
    margin-bottom: 28px;
    font-size: 22px;
}

.auth-brand-icon {
    width: 38px;
    height: 38px;
    margin-right: 9px;
    border-radius: 9px;
    font-size: 18px;
}

.auth-header {
    margin-bottom: 26px;
}

.auth-header h1 {
    font-size: 23px;
}

.auth-header p {
    font-size: 13px;
}

}

/* ============================================================
RESPONSIVE - MÓVIL PEQUEÑO
============================================================ */

@media (max-width: 400px) {

.sidebar {
    width: 52px;
}

/* AQUÍ TAMBIÉN TENÍA MARGEN */
.main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
}

.topbar {
    padding-left: 12px;
    padding-right: 12px;
}

.content {
    padding: 16px 10px;
}

.auth-page {
    padding: 12px 10px;
}

.auth-card {
    padding: 26px 18px;
}

.auth-header h1 {
    font-size: 21px;
}

}

/* ============================================================
   BARRA DE NAVEGACIÓN INFERIOR (Estilo Sidebar Oscuro)
   ============================================================ */
@media (max-width: 767.98px) {
    /* Fondo oscuro y borde sutil superior idénticos al tono de la sidebar */
    .navbar.fixed-bottom.d-md-none {
        background-color: #1f2937 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    /* Estado inactivo de los elementos (texto gris claro como .menu a) */
    .navbar.fixed-bottom.d-md-none a.text-muted {
        color: #d1d5db !important;
        transition: color 0.15s ease, background-color 0.15s ease;
        border-radius: 6px;
        margin: 0 2px;
    }

    /* Hover en elementos inactivos (tono #374151 idéntico al de la sidebar) */
    .navbar.fixed-bottom.d-md-none a.text-muted:hover {
        background-color: #374151 !important;
        color: #ffffff !important;
    }

    /* Estado ACTIVO (Fondo azul institucional #2563eb e ícono/texto blanco) */
    .navbar.fixed-bottom.d-md-none a.fw-bold,
    .navbar.fixed-bottom.d-md-none a.text-primary {
        background-color: #2563eb !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        border-radius: 6px;
        margin: 0 2px;
    }
}