/* ================================================================
   KOOBEN  ·  kb_shell.css  v4  —  Creative Tim Material Dashboard
   Shell: sidebar full-height oscuro, topbar en columna de contenido,
   cards blancas sobre fondo gris, stat-cards con gradiente.

   NO usa EasyUI panel / panel-body en el shell.
   Los módulos cargan con $.load() directo en #mainContent.
   EasyUI funcional (datagrid, dialog…) opera dentro de módulos.
   ================================================================ */

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; overflow: hidden;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  background: var(--kb-surface-c-low);
  color: var(--kb-on-surface);
  -webkit-font-smoothing: antialiased;
}

/* ================================================================
   SHELL — flex horizontal
   ================================================================ */
.kb-shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

/* ================================================================
   SIDEBAR — siempre oscuro (Creative Tim: dark gradient)
   ================================================================ */
.kb-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* Gradiente oscuro con tinte cian de marca */
  background: linear-gradient(195deg, #1e3135 0%, #0d1a1e 100%);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.55),
              0 4px 25px 0 rgba(0,0,0,.2),
              0 8px 10px -5px rgba(0,0,0,.2);
  overflow: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1);
  z-index: 400;
  /* Siempre fondo oscuro en ambos temas */
  color-scheme: dark;
}

/* Rail — colapsado a 72px */
.kb-sidebar--rail { width: 72px; }

/* ---- Marca ---- */
.kb-sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px 16px;
  flex-shrink: 0;
}
.kb-sidebar-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(195deg, #26c5da, #0097b2);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 7px 10px -5px rgba(0,151,178,.5);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.kb-sidebar-logo img {
  width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1);
}
/* Logo de empresa real: fondo blanco neutro, sin filtro */
.kb-sidebar-logo--empresa {
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.12);
}
.kb-sidebar-logo--empresa img {
  width: 36px; height: 36px; object-fit: contain; filter: none;
}
.kb-sidebar-brand-text {
  display: flex; flex-direction: column; overflow: hidden;
}
.kb-sidebar-brand-name {
  font-size: .95rem; font-weight: 800; color: #fff; white-space: nowrap;
  letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis;
}
.kb-brand-apos { color: #26c5da; }
.kb-sidebar-brand-sub {
  font-size: .65rem; color: rgba(255,255,255,.45); white-space: nowrap;
  text-transform: uppercase; letter-spacing: .4px;
}

/* Divisor */
.kb-sidebar-hr {
  border: none; border-top: 1px solid rgba(255,255,255,.1);
  margin: 0 16px 8px;
  flex-shrink: 0;
}

/* ---- Nav scroll ---- */
.kb-nav-scroll {
  flex: 1;
  overflow-y: auto; overflow-x: hidden;
  padding: 0 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.kb-nav-scroll::-webkit-scrollbar { width: 3px; }
.kb-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* ---- Footer usuario ---- */
.kb-sidebar-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.kb-sidebar-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(195deg, #26c5da, #0097b2);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.kb-sidebar-user-info {
  display: flex; flex-direction: column; overflow: hidden;
}
.kb-sidebar-user-name {
  font-size: .8rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kb-sidebar-user-role {
  font-size: .68rem; color: rgba(255,255,255,.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================================================================
   NAVEGACIÓN DEL SIDEBAR — icon-chip
   ================================================================ */

/* ---- Chip contenedor del ícono ---- */
.kb-nav-icon-chip {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  transition: background .18s, box-shadow .18s;
}
.kb-nav-icon-chip .material-symbols-outlined {
  font-size: 1.2rem;
  color: rgba(255,255,255,.85);
  transition: color .18s;
}

/* ---- Ítem flat (Inicio, etc.) ---- */
.kb-nav-flat {
  display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 12px; margin: 2px 10px;
  border-radius: 10px; border: none; background: none; cursor: pointer;
  color: rgba(255,255,255,.82);
  font-size: .88rem; font-weight: 500;
  width: calc(100% - 20px); text-decoration: none;
  white-space: nowrap; overflow: hidden;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.kb-nav-flat:hover { background: rgba(255,255,255,.07); color: #fff; }
.kb-nav-flat:hover .kb-nav-icon-chip { background: rgba(255,255,255,.18); }

/* Activo — pill blanca + chip con gradiente */
.kb-nav-flat.kb-active {
  background: #fff; color: #344767; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,151,178,.4);
}
.kb-nav-flat.kb-active .kb-nav-icon-chip {
  background: linear-gradient(195deg, #26c5da, #0097b2);
  box-shadow: 0 4px 12px rgba(0,151,178,.5);
}
.kb-nav-flat.kb-active .kb-nav-icon-chip .material-symbols-outlined { color: #fff; }
.kb-nav-flat-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* ---- Grupo (sección) ---- */
.kb-nav-group { overflow: hidden; margin-bottom: 2px; }

.kb-nav-group-btn {
  width: 100%; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 5px 14px;
  color: rgba(255,255,255,.47);
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .65px;
  white-space: nowrap; user-select: none;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
/* Icono del grupo: oculto en modo completo, visible en rail */
.kb-nav-group-icon { display: none; }
.kb-nav-group-btn:hover { color: rgba(255,255,255,.82); }

/* Grupo abierto → label y chevron en cyan */
.kb-nav-group.open > .kb-nav-group-btn { color: rgba(38,197,218,.9); }

.kb-nav-group-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.kb-nav-group-chevron {
  font-size: .95rem !important; flex-shrink: 0; margin-left: auto;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.kb-nav-group.open > .kb-nav-group-btn .kb-nav-group-chevron { transform: rotate(180deg); }

.kb-nav-group-items {
  max-height: 0; overflow: hidden;
  transition: max-height .28s cubic-bezier(.4,0,.2,1);
}
.kb-nav-group.open > .kb-nav-group-items { max-height: 700px; }

/* ---- Ítem dentro de grupo ---- */
.kb-nav-item {
  display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 12px; margin: 2px 10px;
  border-radius: 10px; border: none; background: none; cursor: pointer;
  color: rgba(255,255,255,.82);
  font-size: .88rem; font-weight: 500;
  width: calc(100% - 20px); text-decoration: none;
  white-space: nowrap; overflow: hidden;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.kb-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.kb-nav-item:hover .kb-nav-icon-chip { background: rgba(255,255,255,.18); }

/* Activo — pill blanca + chip con gradiente */
.kb-nav-item.kb-active {
  background: #fff; color: #344767; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,151,178,.4);
}
.kb-nav-item.kb-active .kb-nav-icon-chip {
  background: linear-gradient(195deg, #26c5da, #0097b2);
  box-shadow: 0 4px 12px rgba(0,151,178,.5);
}
.kb-nav-item.kb-active .kb-nav-icon-chip .material-symbols-outlined { color: #fff; }
.kb-nav-item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.kb-nav-item-ext { opacity: .75; font-size: .84rem; }
.kb-nav-item-ext:hover { opacity: 1; }

/* Divisor */
.kb-nav-divider {
  height: 1px; background: rgba(255,255,255,.1);
  margin: 8px 14px;
}

/* ----------------------------------------------------------------
   RAIL  (escritorio colapsado)
   ---------------------------------------------------------------- */
.kb-sidebar--rail .kb-sidebar-brand-text,
.kb-sidebar--rail .kb-nav-flat-label,
.kb-sidebar--rail .kb-nav-item-label,
.kb-sidebar--rail .kb-nav-group-label,
.kb-sidebar--rail .kb-nav-group-chevron,
.kb-sidebar--rail .kb-sidebar-user-info { display: none; }

.kb-sidebar--rail .kb-sidebar-brand { padding: 20px 14px; justify-content: center; }
.kb-sidebar--rail .kb-sidebar-footer { justify-content: center; padding: 12px; }
.kb-sidebar--rail .kb-nav-group-btn  { justify-content: center; padding: 10px 0; }
/* En rail, mostrar el ícono del grupo */
.kb-sidebar--rail .kb-nav-group-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem !important; color: rgba(255,255,255,.65);
}
.kb-sidebar--rail .kb-nav-group.open > .kb-nav-group-btn .kb-nav-group-icon {
  color: #26c5da;
}
.kb-sidebar--rail .kb-nav-flat {
  width: 52px; height: 52px; margin: 2px auto; padding: 0; justify-content: center;
  border-radius: 12px;
}
.kb-sidebar--rail .kb-nav-item {
  width: 52px; height: 52px; margin: 2px auto; padding: 0; justify-content: center;
  border-radius: 12px;
}
.kb-sidebar--rail .kb-nav-group.open > .kb-nav-group-items { max-height: 0 !important; }
.kb-sidebar--rail .kb-nav-divider { margin: 6px; }

/* ================================================================
   COLUMNA DE CONTENIDO
   ================================================================ */
.kb-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--kb-surface-c-low);
  position: relative;
}

/* ================================================================
   TOPBAR (dentro de .kb-content)
   ================================================================ */
.kb-topbar {
  height: 72px;
  flex-shrink: 0;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--kb-surface);
  border-bottom: 1px solid var(--kb-outline-variant);
  /* leve sombra hacia abajo */
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  z-index: 200;
}

.kb-topbar-left  { display: flex; align-items: center; gap: 8px; }
.kb-topbar-right { display: flex; align-items: center; gap: 4px; }

/* ---- Breadcrumb ---- */
.kb-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem;
}
.kb-bc-root { color: var(--kb-on-surface-variant); font-weight: 500; }
.kb-bc-sep  { color: var(--kb-outline); font-size: .7rem; }
.kb-bc-current { color: var(--kb-on-surface); font-weight: 700; }

/* ---- Icon button ---- */
.kb-icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--kb-on-surface-variant);
  border-radius: var(--kb-r-full);
  text-decoration: none; position: relative;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.kb-icon-btn .material-symbols-outlined { font-size: 1.3rem; }
.kb-icon-btn::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; background: currentColor;
  opacity: 0; transition: opacity .15s;
}
.kb-icon-btn:hover::before  { opacity: .08; }
.kb-icon-btn:active::before { opacity: .12; }
.kb-icon-btn:hover { color: var(--kb-on-surface); }
.kb-logout-btn:hover { color: var(--kb-error); }

/* ---- Usuario en topbar ---- */
.kb-topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 4px; height: 40px;
  border-radius: var(--kb-r-full);
  background: var(--kb-surface-c-high);
  border: 1px solid var(--kb-outline-variant);
}
.kb-topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(195deg, #26c5da, #0097b2);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.kb-topbar-name {
  font-size: .82rem; font-weight: 600; color: var(--kb-on-surface);
  white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis;
}

/* ================================================================
   OVERLAY MÓVIL
   ================================================================ */
.kb-overlay {
  display: none; position: fixed; inset: 0; z-index: 395;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s;
}
.kb-overlay.kb-visible { display: block; opacity: 1; }

/* ================================================================
   MAIN CONTENT — $.load() inyecta aquí sin ningún wrapper
   ================================================================ */
.kb-main,
#mainContent {
  flex: 1 1 0; min-height: 0; min-width: 0;
  overflow-y: auto; overflow-x: hidden;
  position: relative;
  padding: 0 !important;              /* gana sobre panel_material.css */
  background: var(--kb-surface-c-low);
}

/* ---- Spinner cargando ---- */
.kb-loading-state {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 200px;
  color: var(--kb-on-surface-variant);
}
.kb-loading-state .material-symbols-outlined {
  font-size: 2.5rem; animation: kb-spin 1s linear infinite;
}
@keyframes kb-spin { to { transform: rotate(360deg); } }

/* ---- Spinner pequeño (kb-spinner-sm) ---- */
.kb-spinner-sm {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: kb-spin .7s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---- Pager (kb-pager-*) ---- */
.kb-pager-info { font-size: 12px; color: var(--kb-on-surface); opacity: .6; }
.kb-pager-btns { display: flex; gap: 4px; }
.kb-pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--kb-outline-variant);
  border-radius: var(--kb-r-sm);
  background: var(--kb-surface);
  cursor: pointer;
  color: var(--kb-on-surface);
  transition: background .12s;
}
.kb-pager-btn:hover:not(:disabled) { background: var(--kb-state-hover); }
.kb-pager-btn:disabled { opacity: .4; cursor: default; }
.kb-pager-btn .material-symbols-outlined { font-size: 18px; }

/* ---- Error ---- */
.kb-error-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 100%; min-height: 200px;
  color: var(--kb-on-surface-variant);
}
.kb-error-state .material-symbols-outlined { font-size: 3rem; color: var(--kb-error); }
.kb-error-state p { margin: 0; font-size: .9rem; }

/* ================================================================
   MÓDULOS — padding y card base
   ================================================================ */
.kb-page {
  padding: 24px 20px;
}

/* Card base (módulos y home) */
.kb-card {
  background: var(--kb-surface);
  border-radius: var(--kb-r-lg);     /* 16px */
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 20px;
}

/* Card header */
.kb-card-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--kb-outline-variant);
  display: flex; align-items: center; justify-content: space-between;
}
.kb-card-title {
  font-size: .95rem; font-weight: 700; color: var(--kb-on-surface);
  margin: 0;
}
.kb-card-body { padding: 16px 20px; }

/* Stat card — el strip de gradiente "cuelga" -20px arriba */
.kb-stat-card {
  background: var(--kb-surface);
  border-radius: var(--kb-r-lg);
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  padding: 0 20px 20px;
  position: relative;
}
.kb-stat-icon {
  width: 64px; height: 64px; border-radius: var(--kb-r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.75rem;
  position: absolute; top: -20px; left: 20px;
  /* sombra coloreada */
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,0,0,.3);
}
.kb-stat-icon .material-symbols-outlined { font-size: 1.75rem; }
.kb-stat-body {
  padding-top: 44px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.kb-stat-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--kb-on-surface-variant); margin-bottom: 4px;
}
.kb-stat-value {
  font-size: 1.75rem; font-weight: 800; color: var(--kb-on-surface);
  line-height: 1;
}
.kb-stat-footer {
  border-top: 1px solid var(--kb-outline-variant);
  margin-top: 16px; padding-top: 12px;
  font-size: .78rem; color: var(--kb-on-surface-variant);
  display: flex; align-items: center; gap: 6px;
}
.kb-stat-footer .material-symbols-outlined { font-size: .95rem; }

/* Gradientes de stat cards */
.kb-grad-cyan   { background: linear-gradient(195deg, #26c5da, #0097b2); box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,151,178,.4) !important; }
.kb-grad-green  { background: linear-gradient(195deg, #66bb6a, #43a047); box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(67,160,71,.4)  !important; }
.kb-grad-orange { background: linear-gradient(195deg, #ffa726, #fb8c00); box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(251,140,0,.4)   !important; }
.kb-grad-red    { background: linear-gradient(195deg, #ef5350, #e53935); box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(229,57,53,.4)   !important; }
.kb-grad-purple { background: linear-gradient(195deg, #ab47bc, #8e24aa); box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(142,36,170,.4)  !important; }

/* ================================================================
   OVERRIDE CLASES VISUALES DE EasyUI LAYOUT
   Los módulos aún usan easyui-layout internamente para el motor de
   layout (norte+centro). Se sobreescribe sólo lo visual para que
   no aparezcan los bordes y fondos de EasyUI.
   ================================================================ */
/* Contenedor del layout */
.layout-split-v,
.layout-split-h { background: transparent !important; border: none !important; }

/* Regiones */
.layout-panel   { background: transparent !important; }
.layout-panel > .panel-body { background: transparent !important; border: none !important; }

/* North / South toolbars — fondo transparente, solo borde inferior */
.layout-panel-north > .panel-body {
  overflow: visible !important;
  border-bottom: 1px solid var(--kb-outline-variant) !important;
  padding: 8px 12px !important;
  background: var(--kb-surface) !important;
}
.layout-panel-south > .panel-body {
  border-top: 1px solid var(--kb-outline-variant) !important;
  background: var(--kb-surface) !important;
}

/* panel-htop y portal-panel — usados en productos/ordencompra */
.panel.panel-htop,
.portal-panel { border: none !important; }

/* Ocultar splitbars y handles de resize */
.layout-split-proxy,
.layout-expand,
.layout-collapse { display: none !important; }

/* ================================================================
   LOGIN — cubre #mainContent con position:absolute
   ================================================================ */
.kb-login-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; padding: 24px 16px;
  background:
    radial-gradient(ellipse 55% 65% at 15% 45%, rgba(0,187,238,.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 88% 75%, rgba(0,103,126,.05) 0%, transparent 55%),
    var(--kb-surface-c-low);
}

.kb-login-card {
  width: 100%; max-width: 400px;
  background: var(--kb-surface);
  border: 1px solid var(--kb-outline-variant);
  border-radius: var(--kb-r-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
  animation: kb-fadein .3s cubic-bezier(.4,0,.2,1);
}
@keyframes kb-fadein {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Cabecera con strip de gradiente (estilo Creative Tim) */
.kb-login-header {
  padding: 0 32px 24px; text-align: center;
  position: relative;
}
.kb-login-header::before {
  content: '';
  display: block; height: 80px; margin: 0 -32px 0;
  background: linear-gradient(195deg, #1e3135, #0d1a1e);
  margin-bottom: 0;
}
.kb-login-logo {
  width: 72px; height: 72px; border-radius: var(--kb-r-md);
  object-fit: contain;
  position: relative; z-index: 1;
  margin-top: -36px;
  background: linear-gradient(195deg, #26c5da, #0097b2);
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2), 0 7px 10px -5px rgba(0,151,178,.5);
  display: block; margin-left: auto; margin-right: auto;
}
.kb-login-title {
  font-size: 1.1rem; font-weight: 800; color: var(--kb-on-surface);
  margin: 16px 0 4px; letter-spacing: -.2px;
}
.kb-login-subtitle {
  font-size: .8rem; color: var(--kb-on-surface-variant); margin: 0;
}

.kb-login-body { padding: 20px 28px 28px; }

.kb-login-field { margin-bottom: 16px; }
.kb-login-field label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--kb-on-surface-variant); margin-bottom: 6px;
}
.kb-login-input {
  width: 100%; height: 46px;
  background: var(--kb-surface-c-low);
  border: 1.5px solid var(--kb-outline-variant);
  border-radius: var(--kb-r-md);
  color: var(--kb-on-surface); font-size: .9rem; font-family: inherit;
  padding: 0 14px; outline: none; display: block;
  transition: border-color .2s, box-shadow .2s;
}
.kb-login-input::placeholder { color: var(--kb-outline); }
.kb-login-input:focus {
  border-color: var(--kb-primary);
  box-shadow: 0 0 0 3px var(--kb-state-focus);
}

.kb-login-btn {
  width: 100%; height: 46px; margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(195deg, #26c5da, #0097b2);
  color: #fff; border: none; border-radius: var(--kb-r-full);
  font-size: .9rem; font-weight: 700; font-family: inherit;
  cursor: pointer; letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(0,0,0,.14), 0 7px 10px -5px rgba(0,151,178,.4);
  transition: opacity .15s, transform .1s, box-shadow .2s;
}
.kb-login-btn:hover   { opacity: .9; transform: translateY(-1px); }
.kb-login-btn:active  { opacity: .85; transform: none; }
.kb-login-btn:disabled{ opacity: .4; cursor: not-allowed; transform: none; }

.kb-login-footer {
  padding: 12px; border-top: 1px solid var(--kb-outline-variant);
  background: var(--kb-surface-c-high);
  text-align: center; font-size: .73rem; color: var(--kb-on-surface-variant);
}
.kb-login-footer strong { color: var(--kb-primary); }

/* ================================================================
   RESPONSIVE — tablet/móvil (≤900px)
   ================================================================ */
@media (max-width: 900px) {
  .kb-sidebar {
    position: fixed; top: 0; left: 0; height: 100%;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    width: 260px !important;
    z-index: 500;
  }
  .kb-sidebar--open {
    transform: translateX(0);
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
  }
  .kb-topbar-name { display: none; }
  .kb-breadcrumb  { display: none; }
}

@media (max-width: 480px) {
  .kb-topbar { padding: 0 12px; }
  .kb-login-body { padding: 16px 20px 20px; }
  .kb-login-header::before { height: 64px; }
}
