/* Acabado visual de usuarios, configuración, Mi clave y login. */
body.app .panel { max-width: 1180px; padding-top: 32px; }
body.app .topbar {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  margin-bottom: 28px;
}
body.app .brand { font-size: 18px; }
body.app .brand .dot, body.app .brand img.dot-img { width: 38px; height: 38px; }
body.app .nav { gap: 6px; }
body.app .nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border-color: transparent; background: rgba(255,255,255,.08); color: #e5ebe7;
  transition: background .18s, border-color .18s;
}
body.app .nav a:hover { background: rgba(255,255,255,.15); }
body.app .nav a.active { background: #1a844c; border-color: #309864; box-shadow: none; }
body.app .box {
  padding: clamp(20px, 3vw, 32px); margin-bottom: 24px;
  border: 1px solid #dde5e0; border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
body.app .box h2 { font-size: 21px; padding-bottom: 14px; margin-bottom: 10px; }
body.app .box h2::after { width: 32px; height: 3px; }
body.app .box p.desc { max-width: 75ch; margin-bottom: 24px; }
body.app .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
body.app .field, body.app .grid2 > *, body.app .row-actions > * { min-width: 0; }
body.app label, body.auth label { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
body.app input[type="text"], body.app input[type="password"],
body.app input[type="email"], body.app select,
body.auth .card input[type="text"], body.auth .card input[type="password"] {
  min-height: 48px; border-color: #cdd8d1; background: #f8faf9; border-radius: 12px;
}
body.app input:focus, body.app select:focus,
body.auth .card input[type="text"]:focus, body.auth .card input[type="password"]:focus {
  border-color: #1d9d58; background: #fff; box-shadow: 0 0 0 3px rgba(29,157,88,.13);
}
body.app .btn, body.auth .btn {
  min-height: 46px; border-radius: 12px;
  background: #18834a; box-shadow: 0 4px 10px rgba(24,131,74,.14);
}
body.app .btn-sm { min-height: 40px; }
body.app .btn-ghost { background: #f7faf8; border-color: #d4ded7; color: #304b3b; box-shadow: none; }
body.app .btn-ghost:hover { background: #eaf3ed; }
body.app .btn-danger { background: #b73e37; box-shadow: none; }
body.app .table-wrap { border: 1px solid #dfe7e2; border-radius: 14px; }
body.app th { background: #f2f6f3; padding: 15px; border-bottom-color: #dfe7e2; }
body.app td { padding: 16px 15px; border-bottom-color: #e9eeeb; overflow-wrap: anywhere; }
body.app tbody tr:hover { background: #f8fbf9; }
body.app .badge { padding: 4px 10px; line-height: 1.5; }
body.app .row-actions { gap: 7px; }
body.app .reset[open] { flex-basis: 100%; }
body.app .reset-form { padding: 12px; background: #f2f6f3; border-radius: 12px; }
body.app .logo-preview {
  width: 120px; height: 120px; margin-top: 8px; margin-bottom: 18px;
  border-color: #d4ded7; box-shadow: 0 0 0 8px #f2f7f4;
}
body.app .logo-state { overflow-wrap: anywhere; }
body.app input[type="file"] {
  width: 100%; max-width: 100%; padding: 10px; border: 1px dashed #afc5b7;
  border-radius: 12px; background: #f7faf8; font: inherit;
}
body.app input[type="file"]::file-selector-button {
  padding: 10px 14px; margin-right: 12px; border: 0; border-radius: 8px;
  background: #e2f1e8; color: #12643a; font: inherit; cursor: pointer;
}
body.app[data-tema="claro"] .topbar { background: rgba(255,255,255,.8); border-color: #dbe4de; }
body.app[data-tema="claro"] .nav a { color: #304b3b; background: #edf3ef; }
body.app[data-tema="claro"] .nav a:hover { background: #dfeae3; }
body.app[data-tema="claro"] .nav a.active { color: #fff; background: #18834a; border-color: #18834a; box-shadow: none; }
body.auth { padding: 20px 14px; height: auto; }
body.auth .card {
  max-width: 360px; min-width: 0; padding: clamp(20px, 4vw, 26px); border-radius: 18px;
  background: #fff; border-color: #e1e8e3;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
body.auth .logo { width: 52px; height: 52px; margin-bottom: 12px; }
body.auth .logo svg { width: 28px; height: 28px; }
body.auth .card h1 { font-size: clamp(20px, 5vw, 23px); letter-spacing: -.035em; }
body.auth .sub { margin-bottom: 18px; line-height: 1.4; }
body.auth .field { margin-bottom: 14px; }
body.auth label { margin-bottom: 6px; }
body.auth .card input[type="text"], body.auth .card input[type="password"] {
  min-height: 44px; padding: 10px 48px 10px 12px; font-size: 16px;
}
body.auth .toggle { width: 48px; }
body.auth .hint { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e9eeeb; color: #616e66; }
body.auth .btn-block { min-height: 44px; padding: 10px 14px; }
@media (max-width: 600px) {
  body.auth { padding: 16px 12px; }
  body.auth .logo { display: none; }
  body.auth .card { padding: 20px; }
}
body.page-clave .box { max-width: 640px; margin-left: auto; margin-right: auto; }
body.page-clave .grid2 { grid-template-columns: minmax(0, 1fr); gap: 4px; }
body.page-clave .notice { max-width: 640px; margin: 0 auto 20px; border-radius: 14px; }
body.page-clave .box .desc { line-height: 1.7; }
body.page-clave .fuerza {
  padding: 12px 14px; margin-top: 12px;
  background: #f2f7f4; border: 1px solid #e0eae3; border-radius: 10px;
}
body.page-clave .fuerza-barra { height: 5px; background: #dde7e0; }
body.page-clave .fuerza-texto { margin-top: 8px; }
body.page-clave .box form > .btn { margin-top: 8px; }
@media (max-width: 700px) {
  body.app .panel { padding: 16px 12px 32px; }
  body.app .topbar { padding: 16px; gap: 16px; justify-content: flex-start; margin-bottom: 18px; }
  body.app .nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app .nav a { font-size: 13px; padding: 10px 8px; overflow-wrap: anywhere; }
  body.app .box { padding: 20px 16px; border-radius: 16px; margin-bottom: 18px; }
  body.app .box h2 { font-size: 19px; }
  body.app .grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.app .table-wrap { background: transparent; border: 0; border-radius: 0; }
  body.app table, body.app tbody { display: block; width: 100%; }
  body.app tbody tr { border: 1px solid #dfe7e2; border-radius: 14px; padding: 4px; }
  body.app tbody td { flex-wrap: wrap; justify-content: flex-start; gap: 6px 12px; padding: 12px 10px; }
  body.app tbody td::before { min-width: 80px; }
  body.app .row-actions { width: 100%; }
  body.app .row-actions > *, body.app .actions > * { flex: 1 1 140px; }
  body.app .row-actions .btn, body.app .actions .btn { width: 100%; min-height: 44px; }
  body.app td.cell-acciones { align-items: stretch; }
  body.app .reset-form input { font-size: 16px; }
  body.app .logo-state { flex-direction: column; text-align: center; }
  body.page-clave .box form > .btn { width: 100%; }
}
@media (max-height: 640px) {
  body.auth { align-items: flex-start; }
}
