* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; background: #f1f5f9; }
a { color: inherit; text-decoration: none; }

/* ── Login ─────────────────────────────────────────────── */
.w-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #0D1B3D, #103A5F); }
.w-login-card { background: #fff; border-radius: 18px; padding: 32px 26px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: center; }
/* Marca del login unificada con el portal admin (base): logo + RH+ + raya verde. */
.w-login-logo { display: flex; justify-content: center; margin-bottom: 8px; }
.w-login-logo .brand-svg { border-radius: 21px; filter: drop-shadow(0 6px 18px rgba(13,27,61,.18)); }
.w-login-title { display: block; height: 24px; width: auto; margin: 8px auto 0; }
.w-login-accent { width: 48px; height: 3px; background: #00BB94; border-radius: 2px; margin: 8px auto 0; }
.w-login-sub { color: #64748b; font-size: 13px; margin: 12px 0 24px; line-height: 1.4; }
.w-field { text-align: left; margin-bottom: 14px; }
.w-field label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.w-input { width: 100%; padding: 12px 13px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; }
.w-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.w-btn-primary { width: 100%; padding: 13px; background: #2563eb; color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.w-btn-primary:hover { background: #1d4ed8; }
.w-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.w-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; margin-bottom: 12px; text-align: left; }
.w-pick-label { font-size: 13px; color: #475569; margin: 8px 0 12px; }
.w-tenant { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 2px; padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; margin-bottom: 10px; }
.w-tenant:hover { background: #eff6ff; border-color: #93c5fd; }
.w-tenant span { font-size: 12px; color: #64748b; }
.w-login-foot { text-align: center; margin: 16px 0 0; font-size: 13px; color: #64748b; }
.w-login-foot a { color: #00BB94; text-decoration: none; font-weight: 600; cursor: pointer; }
.w-login-foot a:hover { text-decoration: underline; }

/* ── Shell ─────────────────────────────────────────────── */
.w-shell { min-height: 100vh; display: flex; flex-direction: column; }
.w-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0D1B3D; color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 10; }
.w-brand { display: flex; align-items: center; gap: 8px; }
.w-brand-logo { display: flex; }
.w-brand-logo .brand-svg { display: block; border-radius: 8px; }
.w-brand-name { display: block; height: 18px; width: auto; }
.w-top-right { display: flex; align-items: center; gap: 10px; }
.w-email { font-size: 12px; color: #cbd5e1; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-logout { background: rgba(255,255,255,.1); border: none; color: #fff; padding: 7px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.w-logout:hover { background: rgba(255,255,255,.2); }
.w-content { flex: 1; padding: 20px 16px; max-width: 760px; width: 100%; margin: 0 auto; }

.w-h1 { font-size: 22px; margin: 4px 0 2px; }
.w-h2 { font-size: 15px; margin: 0 0 8px; color: #334155; }
.w-muted { color: #64748b; font-size: 14px; margin: 0 0 16px; }
.w-back { display: inline-block; color: #2563eb; font-size: 14px; margin-bottom: 6px; }

/* ── Frase motivadora del día (home) ───────────────────── */
.w-quote { position: relative; margin: 4px 0 18px;
  background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #00BB94;
  border-radius: 12px; padding: 14px 18px 14px 46px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w-quote-mark { position: absolute; top: 6px; left: 14px; font-size: 34px; line-height: 1;
  color: #00BB94; font-family: Georgia, "Times New Roman", serif; pointer-events: none; }
.w-quote-text { margin: 0; font-size: 15px; line-height: 1.5; font-style: italic; color: #334155; }
.w-quote-author { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #64748b; }

/* ── Tarjetas del home ─────────────────────────────────── */
.w-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.w-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
a.w-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(37,99,235,.12); transform: translateY(-1px); transition: all .15s; }
.w-card-ico { font-size: 26px; }
.w-card-t { font-weight: 700; font-size: 15px; }
.w-card-d { font-size: 12px; color: #64748b; }
.w-card-soon { opacity: .65; }
.w-soon-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: #92400e;
  background: #fef3c7; padding: 2px 7px; border-radius: 999px; }

/* ── Perfil ────────────────────────────────────────────── */
.w-profile-head { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.w-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.w-name { font-size: 18px; font-weight: 700; }
.w-sub { color: #64748b; font-size: 13px; }
.w-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.w-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.w-kv:last-child { border-bottom: none; }
.w-kv span { color: #64748b; }
.w-kv b { text-align: right; }

/* ── Documentos: chips + lista ─────────────────────────── */
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.w-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff;
  font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
.w-chip:hover { background: #f1f5f9; }
.w-chip.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.w-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 28px 16px;
  text-align: center; color: #64748b; font-size: 14px; }
.w-doc-list { display: flex; flex-direction: column; gap: 10px; }
.w-doc { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w-doc-ico { font-size: 26px; flex-shrink: 0; }
.w-doc-main { flex: 1; min-width: 0; }
.w-doc-t { font-weight: 700; font-size: 15px; }
.w-doc-d { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-doc-btn { flex-shrink: 0; background: #2563eb; color: #fff; border: none; padding: 9px 14px;
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.w-doc-btn:hover { background: #1d4ed8; }
.w-doc-btn:disabled { opacity: .6; cursor: not-allowed; }
.w-doc-na { flex-shrink: 0; font-size: 12px; color: #94a3b8; }

/* ── Vacaciones: saldo + cuenta corriente ──────────────── */
.w-lv-hero { background: linear-gradient(135deg, #0D1B3D, #103A5F); color: #fff; border-radius: 16px;
  padding: 20px; text-align: center; margin: 8px 0 18px; }
.w-lv-avail-l { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.w-lv-avail { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0 14px; }
.w-lv-avail.neg { color: #fca5a5; }
.w-lv-break { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w-lv-break > div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px 6px; }
.w-lv-break span { display: block; font-size: 17px; font-weight: 700; }
.w-lv-break small { font-size: 11px; color: #cbd5e1; }

.w-section-title { font-size: 15px; font-weight: 700; color: #334155; margin: 4px 0 10px; }
.w-mov-list { display: flex; flex-direction: column; gap: 8px; }
.w-mov { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 12px 14px; }
.w-mov-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0; }
.w-mov-ico.pos { background: #dcfce7; color: #16a34a; }
.w-mov-ico.neg { background: #fee2e2; color: #dc2626; }
.w-mov-ico.neu { background: #f1f5f9; color: #64748b; }
.w-mov-main { flex: 1; min-width: 0; }
.w-mov-t { font-weight: 700; font-size: 14px; }
.w-mov-d { font-size: 12px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-mov-days { font-weight: 800; font-size: 15px; flex-shrink: 0; }
.w-mov-days.pos { color: #16a34a; }
.w-mov-days.neg { color: #dc2626; }

/* ── Solicitudes ───────────────────────────────────────── */
.w-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-btn-sm-primary { background: #2563eb; color: #fff; border: none; padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.w-btn-sm-primary:hover { background: #1d4ed8; }
.w-toast { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; padding: 10px 14px;
  border-radius: 10px; font-size: 13px; margin: 8px 0; }
.w-check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: 13px;
  color: #374151; cursor: pointer; }
.w-check input { margin-top: 2px; }
.w-karin-code { display: inline-block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #103A5F; background: #ecfdf5;
  border: 1px dashed #00BB94; border-radius: 8px; padding: 10px 16px; margin: 6px 0 4px; }
.w-file-list { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; color: #374151; }
.w-file-list li { padding: 4px 0; border-bottom: 1px solid #f1f5f9; }
.w-form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.w-form-field label { font-size: 12px; font-weight: 600; color: #475569; }
.w-form-field textarea { resize: vertical; font-family: inherit; }
.w-form-row { display: flex; gap: 12px; }
.w-form-row .w-form-field { flex: 1; }
.w-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.w-btn-ghost { background: #f1f5f9; color: #475569; border: none; padding: 11px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.w-btn-inline { width: auto; margin-top: 0; padding: 11px 18px; }

.w-pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.w-pill.on { background: #dcfce7; color: #15803d; }
.w-pill.off { background: #fee2e2; color: #b91c1c; }
.w-pill.warn { background: #fef3c7; color: #b45309; }

.w-req-list { display: flex; flex-direction: column; gap: 10px; }
.w-req { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w-req-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.w-req-t { font-weight: 700; font-size: 15px; }
.w-req-d { font-size: 13px; color: #475569; }
.w-req-c { font-size: 13px; color: #64748b; font-style: italic; margin-top: 6px; }
.w-req-review { font-size: 13px; color: #0f172a; background: #f8fafc; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.w-req-cancel { margin-top: 10px; background: #fff; color: #b91c1c; border: 1px solid #fecaca; padding: 7px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.w-req-cancel:hover { background: #fef2f2; }

/* ── Encuestas ─────────────────────────────────────────── */
.w-card-list { display: flex; flex-direction: column; gap: 10px; }
.w-survey { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w-survey-main { flex: 1; min-width: 0; }
.w-survey-t { font-weight: 700; font-size: 15px; }
.w-survey-d { font-size: 13px; color: #64748b; margin-top: 2px; }
.w-survey-meta { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.w-privacy { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 12px;
  padding: 12px 14px; font-size: 12px; margin: 12px 0 18px; }

.w-q { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.w-q-text { font-weight: 700; font-size: 15px; margin-bottom: 12px; line-height: 1.35; }
.w-q-req { color: #dc2626; }

.w-scale { display: flex; gap: 8px; justify-content: space-between; }
.w-scale-chip { flex: 1; aspect-ratio: 1; max-width: 56px; border: 1px solid #cbd5e1; background: #fff;
  border-radius: 12px; font-size: 18px; font-weight: 700; color: #374151; cursor: pointer; }
.w-scale-chip:hover { background: #f1f5f9; }
.w-scale-chip.sel { background: #2563eb; border-color: #1d4ed8; color: #fff; }
.w-scale-ends { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; margin-top: 6px; }

.w-choices { display: flex; flex-direction: column; gap: 8px; }
.w-choice { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.w-choice:hover { background: #f8fafc; }
.w-choice.sel { background: #eff6ff; border-color: #2563eb; }
.w-choice-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9ca3af; flex-shrink: 0; position: relative; }
.w-choice.sel .w-choice-dot { border-color: #2563eb; }
.w-choice.sel .w-choice-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #2563eb; }
.w-choice-t { font-size: 14px; color: #0f172a; }

/* ── Novedades (feed) ──────────────────────────────────── */
.w-post { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.w-post:hover { border-color: #93c5fd; }
.w-post-pin { display: inline-block; font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.w-post-t { font-weight: 700; font-size: 15px; }
.w-post-p { font-size: 13px; color: #64748b; margin-top: 4px; line-height: 1.4; }
.w-post-meta { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.w-post-img { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.w-post-body { font-size: 15px; line-height: 1.6; color: #1f2937; white-space: pre-wrap; margin-bottom: 16px; }

/* ── Notificaciones ────────────────────────────────────── */
.w-notif { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; cursor: pointer; }
.w-notif:hover { background: #f8fafc; }
.w-notif.unread { background: #eff6ff; border-color: #bfdbfe; }
.w-notif-dot { width: 9px; height: 9px; border-radius: 50%; background: #2563eb; flex-shrink: 0; margin-top: 5px; }
.w-notif-main { flex: 1; min-width: 0; }
.w-notif-t { font-weight: 700; font-size: 14px; }
.w-notif.unread .w-notif-t { color: #1e40af; }
.w-notif-b { font-size: 13px; color: #475569; margin-top: 2px; line-height: 1.4; }
.w-notif-meta { font-size: 11px; color: #94a3b8; margin-top: 6px; }

/* ─── Reconexión del circuito Blazor ─── */
.reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 1000; background: rgba(13, 27, 61, 0.55);
}
.reconnect-box { background:#fff; color:#103A5F; border-radius:12px; padding:16px 22px;
    font-size:14px; font-weight:600; box-shadow:0 16px 40px rgba(0,0,0,.35); }
