@import url("responsive-engine.css?v=20261024-global-1");

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/source-sans-3/source-sans-3-latin-400-normal.woff2") format("woff2");
}

/* Escala tipográfica base, fluida y definida solo en CSS (sin saltos al cargar).
   Teléfono 16px, tablet 15.5px, laptop 15px a 1366px, 16px a 1600px y hasta 17px en pantallas muy grandes. */
html {
  font-size: 16px;
  --erp-ui-scale: 1;
}
@media (min-width: 576px) and (max-width: 991.98px) {
  html { font-size: 15.5px; }
}
@media (min-width: 992px) {
  html { font-size: clamp(14.5px, calc(9.17px + .427vw), 16px); }
}
@media (min-width: 1920px) {
  html { font-size: clamp(16px, calc(16px + (100vw - 1920px) * .0016), 17px); }
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/source-sans-3/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/source-sans-3/source-sans-3-latin-700-normal.woff2") format("woff2");
}

[hidden] { display: none !important; }

.login-box {
  width: min(100%, 460px);
}

.login-box .card {
  margin-bottom: 0;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3.5rem rgba(20, 48, 92, .16) !important;
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 8% 14%, rgba(13, 110, 253, .13), transparent 33%),
    radial-gradient(ellipse at 92% 86%, rgba(13, 202, 240, .15), transparent 30%),
    #f2f6fc !important;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1.4rem 1rem .6rem;
}

.auth-brand-mark,
.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0d6efd, #084298);
  box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .25);
}

.auth-brand-mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  font-size: 1.5rem;
}

.auth-brand-copy { text-align: left; }
.auth-brand-copy .brand-name { display: block; color: #172b4d; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.auth-brand-copy .brand-caption { color: #6c7a90; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

.login-box .card-header {
  padding-top: 1.1rem;
  border-bottom: 0;
  background: transparent;
}

.login-box .card-body { padding: 1.4rem 2rem 2rem; }
.login-box-msg { margin-bottom: 1.4rem; color: #62718a; }
.login-box .form-control { min-height: 2.9rem; border-color: #dce4ef; }
.login-box .form-control:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12); }
.login-box .input-group-text { border-color: #dce4ef; color: #71809a; background: #f8faff; }
.login-box .btn-primary { min-height: 2.9rem; border-radius: .55rem; font-weight: 600; box-shadow: 0 .4rem 1rem rgba(13, 110, 253, .17); }
.login-box .form-label { display: block; margin-bottom: 1rem; color: #34445d; font-weight: 600; }
.login-box .form-label .form-control { margin-top: .4rem; font-weight: 400; }

.app-sidebar .sidebar-brand { min-height: 4.25rem; }
.sidebar-menu .nav-link { display: flex; align-items: center; gap: .45rem; }
.app-sidebar .sidebar-menu .nav-link.active {
  position: relative;
  margin: .12rem .45rem;
  width: calc(100% - .9rem);
  border-radius: .45rem;
  color: #fff !important;
  background: linear-gradient(100deg, rgba(13, 110, 253, .38), rgba(13, 110, 253, .16)) !important;
  box-shadow: inset 3px 0 0 #69a7ff, 0 .25rem .8rem rgba(0, 0, 0, .18);
}
.app-sidebar .sidebar-menu .nav-link.active .nav-icon { color: #8fc0ff !important; }
.app-sidebar .sidebar-menu .nav-link.active p { font-weight: 700; }
.sidebar-menu .nav-link p { flex: 1 1 auto; margin: 0; }
.sidebar-menu .menu-estado { flex: 0 0 auto; color: rgba(255,255,255,.48); font-size: .62rem; white-space: nowrap; }
.sidebar-menu .nav-link.menu-pendiente:hover .menu-estado { color: rgba(255,255,255,.75); }
.brand-link { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 2.15rem; height: 2.15rem; border-radius: .65rem; font-size: 1.1rem; }
.app-header { min-height: 4.25rem; box-shadow: 0 .1rem .5rem rgba(31, 45, 61, .06); }
.app-content-header { padding-top: 1.4rem; }
.page-heading { color: #26364f; font-weight: 700; }
.page-subheading { color: #71809a; }
.dashboard-stat .info-box { min-height: 6.4rem; border: 1px solid rgba(34, 55, 88, .06); border-radius: .8rem; box-shadow: 0 .25rem 1.1rem rgba(35, 57, 90, .055); }
.dashboard-stat .info-box-icon { width: 4rem; border-radius: .75rem; }
.dashboard-stat .info-box-number { color: #253650; font-size: 1.12rem; }
.dashboard-stat .info-box-text { color: #75839a; font-size: .75rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.app-content .card { border: 1px solid rgba(34, 55, 88, .07); border-radius: .8rem; box-shadow: 0 .25rem 1.1rem rgba(35, 57, 90, .045); }
.app-content .card-header { padding: 1rem 1.15rem; border-bottom-color: #edf0f5; background: transparent; }
.app-content .card-title { color: #26364f; font-size: 1rem; font-weight: 700; }
.app-content .table thead th { padding: .85rem 1rem; color: #6c7a90; background: #f8faff; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.app-content .table tbody td { padding: .9rem 1rem; vertical-align: middle; }
.sales-welcome { max-width: 52rem; padding: clamp(1.5rem, 5vw, 3.5rem); border: 0 !important; border-radius: 1.1rem !important; color: #fff; background: linear-gradient(120deg, #0b2e59 0%, #0756a5 58%, #087da5 100%); box-shadow: 0 1rem 2.5rem rgba(12, 62, 112, .18) !important; }
.sales-welcome .sales-icon { display: grid; width: 4rem; height: 4rem; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 1rem; background: rgba(255,255,255,.13); font-size: 1.8rem; }
.sales-welcome p { max-width: 38rem; color: rgba(255,255,255,.78); }
.user-avatar { display: inline-grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: #0756a5; background: #e7f1ff; font-size: .8rem; font-weight: 700; }

@media (max-width: 575.98px) {
  .login-box .card-body { padding: 1.2rem 1.25rem 1.5rem; }
  .app-content { padding-bottom: 1rem; }
}
