:root {
  --elcos-navy: #062b57;
  --elcos-deep: #031a35;
  --elcos-orange: #f47b20;
  --elcos-orange-soft: #fff4ec;
  --elcos-ink: #1f2937;
  --elcos-muted: #64748b;
  --elcos-line: #e2e8f0;
  --elcos-surface: #ffffff;
  --elcos-bg: #f4f7fb;
  --elcos-success: #16805b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--elcos-ink);
  background: var(--elcos-bg);
}

* { box-sizing: border-box; }
.review-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:end; margin-bottom:20px; }
.review-filters label { display:grid; gap:6px; color:var(--elcos-muted); font-size:12px; font-weight:700; }
.review-filters input, .review-filters select { min-height:40px; padding:0 10px; border:1px solid var(--elcos-line); border-radius:9px; background:#fff; }
@media (max-width: 760px) { .review-filters { grid-template-columns:1fr; } }
body { margin: 0; background: var(--elcos-bg); color: var(--elcos-ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.utility-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 28px;
  background: var(--elcos-deep);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}
.utility-bar strong { color: #ffd7bc; }
.utility-right { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244, 123, 32, .18); }

.app-shell { min-height: calc(100vh - 34px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: var(--elcos-navy); color: white; }
.brand-lockup { display: flex; align-items: center; min-height: 72px; padding: 8px 14px; background: white; border-radius: 16px; }
.brand-lockup img { display: block; width: 100%; max-width: 184px; height: auto; }
.brand-caption { padding: 0 12px; color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 11px; color: rgba(255,255,255,.74); font-size: 14px; font-weight: 600; transition: background .18s ease, color .18s ease, transform .18s ease; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.12); color: white; transform: translateX(2px); }
.nav-icon { width: 22px; color: var(--elcos-orange); font-size: 16px; text-align: center; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.emergency-card { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(244,123,32,.12); }
.emergency-card small { color: #ffd7bc; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.emergency-card strong { display: block; margin-top: 6px; font-size: 18px; }
.emergency-card span { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.76); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--elcos-orange); color: white; font-size: 13px; font-weight: 800; }
.user-chip strong { display: block; color: white; font-size: 13px; }

.app-main { min-width: 0; padding: 28px clamp(22px, 4vw, 58px) 44px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--elcos-orange); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 99px; background: var(--elcos-orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--elcos-deep); font-size: clamp(28px, 3vw, 42px); line-height: 1.04; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; color: var(--elcos-deep); font-size: 22px; letter-spacing: -.02em; }
h3 { margin-bottom: 7px; color: var(--elcos-deep); font-size: 15px; }
.lead { max-width: 680px; margin-bottom: 0; color: var(--elcos-muted); line-height: 1.65; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(6,43,87,.14); }
.btn-primary { background: var(--elcos-navy); color: white; }
.btn-accent { background: var(--elcos-orange); color: white; }
.btn-soft { background: var(--elcos-orange-soft); color: #b34d0c; }
.btn-ghost { background: transparent; border: 1px solid var(--elcos-line); color: var(--elcos-navy); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card, .panel { background: var(--elcos-surface); border: 1px solid var(--elcos-line); border-radius: 16px; box-shadow: 0 12px 30px rgba(6,43,87,.05); }
.stat-card { position: relative; overflow: hidden; padding: 18px; }
.stat-card::after { content: ""; position: absolute; right: -16px; bottom: -28px; width: 72px; height: 72px; border: 9px solid var(--elcos-orange-soft); border-radius: 50%; }
.stat-label { color: var(--elcos-muted); font-size: 12px; font-weight: 700; }
.stat-value { margin-top: 7px; color: var(--elcos-deep); font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.stat-note { margin-top: 8px; color: var(--elcos-success); font-size: 11px; font-weight: 800; }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading h2 { margin-bottom: 0; }
.panel-heading a { color: var(--elcos-orange); font-size: 12px; font-weight: 850; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 10px; border-bottom: 1px solid var(--elcos-line); color: var(--elcos-muted); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 16px 10px; border-bottom: 1px solid #edf2f7; color: var(--elcos-muted); font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--elcos-deep); font-weight: 800; }
.data-table a { color: var(--elcos-navy); }
.data-table a:hover { color: var(--elcos-orange); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #e9f8f1; color: var(--elcos-success); font-size: 11px; font-weight: 850; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.empty-state { padding: 35px 18px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #fbfdff; color: var(--elcos-muted); text-align: center; }
.password-change-panel { max-width: 680px; }
.password-change-form { display: grid; gap: 18px; }
.password-change-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-help { display: block; margin-top: 6px; color: var(--elcos-muted); font-size: 11px; line-height: 1.45; }
.form-success { padding: 10px 12px; border-radius: 9px; background: #e9f8f1; color: var(--elcos-success); font-size: 13px; font-weight: 700; }
.error-page { display: grid; justify-items: start; align-content: center; min-height: min(560px, calc(100vh - 120px)); max-width: 680px; }
.error-page-anonymous { width: min(680px, 100%); min-height: 100vh; margin: 0 auto; padding: 32px 22px; }
.error-page-code { margin-bottom: 12px; color: var(--elcos-orange); font-size: clamp(56px, 10vw, 96px); font-weight: 900; letter-spacing: -.08em; line-height: .9; }
.error-page h1 { margin-bottom: 12px; }
.error-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 20px; }
.detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px; border-radius: 17px; background: linear-gradient(135deg, var(--elcos-navy), #0d477f); color: white; }
.detail-hero h1 { margin-bottom: 8px; color: white; }
.detail-hero p { margin-bottom: 0; color: rgba(255,255,255,.74); }
.detail-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--elcos-orange); font-size: 25px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0; }
.detail-list div { padding: 13px; border-radius: 11px; background: #f8fafc; }
.detail-list dt { color: var(--elcos-muted); font-size: 11px; font-weight: 700; }
.detail-list dd { margin: 5px 0 0; color: var(--elcos-deep); font-size: 14px; font-weight: 800; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--elcos-muted); font-size: 12px; }
.breadcrumb a { color: var(--elcos-orange); font-weight: 800; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 10% 0%, rgba(244,123,32,.15), transparent 30%), linear-gradient(135deg, var(--elcos-deep), var(--elcos-navy)); }
.auth-card { display: grid; grid-template-columns: 1fr 1fr; width: min(900px, 100%); overflow: hidden; border-radius: 24px; background: white; box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.auth-visual { display: flex; flex-direction: column; justify-content: space-between; min-height: 510px; padding: 34px; background: linear-gradient(150deg, rgba(6,43,87,.94), rgba(3,26,53,.98)), url("/static/images/logo-elcos.webp") center/58% auto no-repeat; color: white; }
.auth-visual .brand-lockup { width: 204px; }
.auth-visual h1 { max-width: 320px; color: white; font-size: 42px; }
.auth-visual p { max-width: 300px; color: rgba(255,255,255,.72); line-height: 1.65; }
.auth-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #ffd7bc; font-size: 11px; font-weight: 850; }
.auth-form { padding: 58px 48px; }
.auth-form h2 { font-size: 30px; }
.auth-form .muted { margin-bottom: 28px; color: var(--elcos-muted); line-height: 1.55; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field label { color: var(--elcos-deep); font-size: 12px; font-weight: 800; }
.form-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #cbd5e1; border-radius: 9px; outline: none; transition: border .18s ease, box-shadow .18s ease; }
.form-field input:focus { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.13); }
.auth-form .btn { width: 100%; margin-top: 10px; }
.errorlist { margin: 0 0 15px; padding: 10px 12px; border-radius: 9px; background: #fff1f2; color: #be123c; font-size: 12px; }
.muted { color: var(--elcos-muted); font-size: 12px; }
.inventory-filters { margin-bottom: 20px; }
.filter-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filter-form .form-field { flex: 1 1 240px; margin: 0; }
.filter-form .form-field:nth-child(2) { flex: 0 1 190px; }
.form-field select, .form-control { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; outline: none; }
.form-field textarea.form-control { min-height: 96px; }
.form-field select:focus, .form-control:focus { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.13); }
.table-subtitle { display: block; margin-top: 3px; color: var(--elcos-muted); font-size: 11px; font-weight: 500; }
.table-action { color: var(--elcos-orange) !important; font-weight: 800; }
.table-actions { white-space: nowrap; }
.inline-form { display: inline; margin-left: 12px; }
.button-link { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.status-warning { background: #fff7df; color: #a16207; }
.status-danger { background: #fff1f2; color: #be123c; }
.detail-grid .stock-card { background: linear-gradient(150deg, var(--elcos-navy), #0d477f); color: white; }
.stock-card .eyebrow { color: #ffd7bc; }
.stock-number { margin-top: 14px; font-size: 58px; font-weight: 850; letter-spacing: -.06em; }
.stock-card p { color: rgba(255,255,255,.72); }
.stock-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); font-size: 12px; }
.warning-text { color: #ffd7bc; font-weight: 800; }
.people-lower { margin-top: 20px; }
.section-title { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--elcos-line); }
.mini-record { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f7; color: var(--elcos-muted); font-size: 12px; }
.mini-record strong { color: var(--elcos-deep); }
.restricted-panel { margin-top: 20px; border-color: #fed7aa; background: #fffaf5; color: #9a3412; }
.restricted-panel p { margin: 5px 0 0; color: var(--elcos-muted); }
.form-panel { max-width: 980px; }
.vacation-balance-search { display: flex; align-items: end; gap: 14px; }
.vacation-balance-search-field { flex: 1 1 360px; min-width: 0; }
.vacation-balance-search-field label { display: block; margin-bottom: 7px; color: var(--elcos-deep); font-size: 12px; font-weight: 800; }
.vacation-balance-input-wrap { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; transition: border .18s ease, box-shadow .18s ease; }
.vacation-balance-input-wrap:focus-within { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.13); }
.vacation-balance-input-wrap > span { margin-right: 8px; color: var(--elcos-orange); font-size: 21px; line-height: 1; }
.vacation-balance-input-wrap input { width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; color: var(--elcos-deep); background: transparent; }
.vacation-balance-input-wrap input::placeholder { color: #94a3b8; }
.vacation-balance-actions { display: flex; gap: 8px; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field small { color: var(--elcos-muted); }
.form-field input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--elcos-orange); }
.form-actions { justify-content: flex-end; margin-top: 18px; }
.report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.internal-note { display: grid; gap: 2px; min-width: 172px; padding: 10px 13px; border: 1px solid #f3c36b; border-radius: 9px; background: #fff8e9; color: #8b5a09; text-align: center; font-size: 11px; }
.internal-note strong { color: var(--elcos-deep); font-size: 12px; }
.report-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(115deg, #4d2d78, #29183f); color: white; }
.report-hero h2 { margin-bottom: 4px; color: white; font-size: 21px; }
.report-hero p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }
.report-kicker { margin-bottom: 5px; color: #f5d7ff; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.report-hero-link { padding: 9px 12px; border: 1px solid rgba(255,255,255,.38); border-radius: 7px; color: white; font-size: 11px; font-weight: 800; white-space: nowrap; }
.report-card-purple { border-top: 2px solid #5a3288; }
.report-card-blue { border-top: 2px solid #2374bd; }
.report-card-green { border-top: 2px solid var(--elcos-success); }
.report-card-orange { border-top: 2px solid #d98c18; }
.report-card-red { border-top: 2px solid #b44141; }
.report-comparison { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 18px; padding: 18px 16px 14px; border-left: 3px solid var(--elcos-success); border-radius: 12px; background: white; box-shadow: 0 12px 30px rgba(6,43,87,.05); }
.report-comparison div { display: grid; gap: 4px; }
.report-comparison strong { color: var(--elcos-deep); font-size: 12px; }
.report-comparison small { color: var(--elcos-muted); font-size: 10px; }
.report-comparison b { color: var(--elcos-deep); font-size: 18px; }
.report-comparison b.positive { color: var(--elcos-success); }
.report-comparison p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--elcos-muted); font-size: 10px; }
.source-total-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; padding: 11px 14px; border-radius: 8px; background: #eef3f8; color: var(--elcos-muted); font-size: 10px; }
.source-total-strip strong { color: var(--elcos-deep); }
.source-total-strip span { color: var(--elcos-navy); font-weight: 800; }
.report-section-title { margin: 22px 0 12px; font-size: 16px; }
.report-two-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.report-panel { min-width: 0; }
.report-tag { padding: 4px 8px; border-radius: 999px; background: #f0eafa; color: #6b3b99; font-size: 10px; }
.category-bar-row { display: grid; gap: 6px; margin: 15px 0; color: var(--elcos-deep); font-size: 11px; }
.category-bar-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.category-bar-row strong { color: var(--elcos-navy); font-size: 10px; }
.category-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #ebe7f1; }
.category-bar i { display: block; height: 100%; border-radius: inherit; background: #5a3288; }
.compact-table th { padding: 8px 7px; font-size: 9px; }
.compact-table td { padding: 10px 7px; font-size: 11px; }
.report-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 14px 0 18px; }
.report-totals span { padding: 10px 12px; border-radius: 8px; background: #ece8f2; color: var(--elcos-muted); font-size: 10px; }
.report-totals strong { margin-right: 4px; color: #452267; font-size: 16px; }
.report-bottom { align-items: stretch; }
.review-list { display: grid; }
.review-item { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid #edf2f7; }
.review-item:last-child { border-bottom: 0; }
.review-item strong { overflow: hidden; color: var(--elcos-deep); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-item span { color: var(--elcos-muted); font-size: 10px; }
.review-item b { float: right; color: #452267; }
.report-footnote { margin-top: 18px; padding: 11px 14px; border-left: 3px solid #347db7; border-radius: 6px; background: #eaf2fb; color: var(--elcos-navy); font-size: 11px; }

/* Cotizador: respaldo visual para el servidor local y pantallas con CSS modular. */
.quotation-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px}.quotation-panel{max-width:760px}.quotation-form{display:grid;gap:18px}.quotation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quotation-fields .form-field:first-child,.quotation-fields .form-field:nth-child(3),.quotation-fields .form-field:nth-child(5),.quotation-fields .form-field:nth-child(6),.quotation-fields .form-field:nth-child(7){grid-column:1/-1}.quotation-fields input{width:100%;min-height:44px;padding:9px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;outline:none;box-sizing:border-box}.equipment-lines-editor{border-top:1px solid #dbe3ed;padding-top:16px}.equipment-lines-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.equipment-lines-heading small{display:block;color:#61738b;margin-top:4px}.equipment-line-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;padding:14px;margin-bottom:10px;background:#f4f7fb;border-radius:10px}.equipment-line-row label,.quotation-item-preview label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#183b63}.equipment-line-row input,.quotation-item-preview input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-sizing:border-box}.quotation-items-preview{display:grid;gap:10px}.quotation-item-preview{display:grid;grid-template-columns:minmax(0,1fr) 180px 90px;gap:16px;align-items:center;padding:16px;background:#f4f7fb;border-radius:10px}.quotation-item-preview span,.quotation-item-preview small{display:block;color:#61738b;font-size:12px}.quotation-item-preview strong{display:block;margin:4px 0}.quotation-item-preview>.line-total{text-align:right;color:var(--elcos-navy)}.quotation-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.quotation-preview-grid>div{display:grid;gap:5px;padding:16px;background:#f4f7fb;border-radius:10px}.quotation-preview-grid span,.preview-total span{color:#61738b;font-size:13px}.preview-total{display:flex;justify-content:space-between;align-items:center;margin:20px 0;padding:18px 0;border-top:1px solid #dbe3ed;border-bottom:1px solid #dbe3ed}.preview-total strong{font-size:22px;color:var(--elcos-navy)}
@media(max-width:760px){.quotation-layout{grid-template-columns:1fr}.quotation-panel{max-width:none}.quotation-fields,.quotation-preview-grid{grid-template-columns:1fr}.quotation-fields .form-field{grid-column:1/-1}.equipment-line-row,.quotation-item-preview{grid-template-columns:1fr}.equipment-lines-heading{align-items:stretch;flex-direction:column}.quotation-item-preview>.line-total{text-align:left}}

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .utility-bar { padding: 7px 16px; }
  .utility-bar .utility-left { display: none; }
  .app-shell { display: block; }
  .sidebar { gap: 16px; padding: 14px 16px; }
  .brand-caption, .sidebar-footer { display: none; }
  .brand-lockup { width: 180px; min-height: 54px; }
  .side-nav { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .side-nav a { flex: 0 0 auto; padding: 9px 11px; font-size: 12px; }
  .app-main { padding: 24px 16px 36px; }
  .error-page { min-height: calc(100vh - 110px); }
  .page-header { display: block; }
  .header-actions { margin-top: 17px; }
  .detail-grid, .auth-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .report-header, .report-hero { display: block; }
  .internal-note, .report-hero-link { display: inline-flex; margin-top: 14px; }
  .report-comparison, .report-two-columns { grid-template-columns: 1fr; }
  .report-comparison p { grid-column: auto; }
  .report-totals { grid-template-columns: repeat(2, 1fr); }
  .auth-visual { min-height: 270px; padding: 26px; }
  .auth-visual h1 { margin-top: 45px; font-size: 31px; }
  .auth-visual p { display: none; }
  .auth-form { padding: 34px 26px 38px; }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-hero { padding: 20px; }
}
.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:26px}.module-card{display:flex;align-items:center;gap:16px;min-height:118px;padding:24px;border:1px solid #e4e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 25px rgba(11,44,82,.06);color:#0b2c52;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}.module-card:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgba(11,44,82,.12)}.module-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff1e8;color:#f36d21;font-size:25px}.module-card span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:6px}.module-card strong{font-size:17px}.module-card small{color:#64748b}.module-card b{font-size:22px;color:#f36d21}.module-card-noticeable{position:relative}.module-card-notification{position:absolute;top:14px;right:45px;padding:4px 9px;border-radius:999px;background:#b4233c;color:#fff;font-size:11px;font-weight:800;white-space:nowrap}.notification-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;border-radius:999px;background:#b4233c;color:#fff;font-size:11px;font-weight:850;line-height:1}.calendar-nav{display:flex;align-items:center;gap:14px}.calendar-nav strong{min-width:74px;text-align:center;color:#0b2c52}.calendar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.calendar-panel{min-height:420px}.calendar-table td{padding-top:18px;padding-bottom:18px}.calendar-table td strong{display:block;color:#0b2c52}.calendar-table .status-pill{background:#e9f8ef;color:#147a42}
.vacation-calendar{overflow-x:auto}.vacation-calendar-weekdays,.vacation-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px}.vacation-calendar-weekdays{gap:1px;margin-bottom:1px}.vacation-calendar-weekdays span{padding:10px 12px;background:#f4f7fb;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.vacation-calendar-grid{gap:1px;background:#dfe7f0;border:1px solid #dfe7f0}.vacation-calendar-day{min-height:132px;padding:10px;background:#fff}.vacation-calendar-day.is-outside{background:#f7f9fc;color:#a3afbd}.vacation-calendar-day.is-weekend{background:#fbf8f5}.vacation-calendar-day.is-holiday{background:#fff8ef}.calendar-day-number{font-size:16px;font-weight:850;color:#0b2c52}.calendar-day-note{margin-top:2px;color:#c66b1b;font-size:10px;font-weight:700}.calendar-events{display:flex;flex-direction:column;gap:5px;margin-top:8px}.calendar-event{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-left:3px solid #f36d21;border-radius:6px;background:#fff1e8;color:#0b2c52;text-decoration:none;font-size:11px}.calendar-event:hover{background:#ffe1ce}.calendar-event strong{font-size:11px;line-height:1.2}.calendar-event small{color:#64748b;font-size:10px}.leave-detail-panel{max-width:900px}.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e5eaf1;padding-bottom:18px}.detail-header h2{margin:0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:22px 0}.detail-grid>div{display:flex;flex-direction:column;gap:7px}.detail-label{color:#64748b;font-size:12px;font-weight:750}.detail-days{display:flex;flex-wrap:wrap;gap:8px}.detail-day{padding:8px 10px;border-radius:8px;background:#e9f8ef;color:#147a42;font-weight:750}.detail-day small{display:block;color:inherit;font-size:10px;font-weight:600}.detail-day.is-excluded{background:#f3f4f6;color:#64748b}@media(max-width:760px){.detail-grid{grid-template-columns:1fr}.vacation-calendar-day{min-height:110px;padding:8px}.calendar-event{padding:6px}.vacation-calendar-weekdays span{font-size:9px}}
.confirmation-field{padding:14px 16px;border:1px solid #dbe4ef;border-radius:10px;background:#f7f9fc}.confirmation-field label{display:flex;align-items:flex-start;gap:8px;color:#0b2c52;font-weight:700}.confirmation-field input{margin-top:3px}.form-help{color:#64748b;font-size:13px;line-height:1.5}
.calendar-event.birthday-event{border-left-color:#6b3b99;background:#f1eafa}.calendar-event.birthday-event:hover{background:#e8ddfa}
.review-request-list{display:grid;gap:18px}.review-request-card{padding:22px}.review-request-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.review-request-header h2{margin:4px 0}.review-request-summary{display:flex;flex-direction:column;align-items:flex-end;gap:5px;color:#64748b;font-size:13px}.review-request-summary strong{color:#0b2c52;font-size:18px}.review-calendar-disclosure{margin-top:18px;border-top:1px solid #e5eaf1;padding-top:14px}.review-calendar-disclosure summary{cursor:pointer;color:#0b2c52;font-weight:800}.review-calendar-help{margin:10px 0 0;color:#64748b;font-size:12px;line-height:1.45}.review-calendar-months{display:flex;gap:18px;margin-top:14px;overflow-x:auto;padding-bottom:4px}.review-calendar-month{min-width:300px;flex:1}.review-calendar-month h3{margin:0 0 10px;color:#0b2c52;font-size:15px;text-align:center}.review-calendar-weekdays,.review-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.review-calendar-weekdays span{text-align:center;color:#94a3b8;font-size:10px;font-weight:800}.review-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:66px;padding:5px 2px;border-radius:7px;color:#0b2c52;font-size:12px;font-weight:700}.review-calendar-day.is-outside{color:#cbd5e1}.review-calendar-day.is-weekend{color:#94a3b8}.review-calendar-day.is-holiday{background:#fff8ef;color:#c66b1b}.review-calendar-day.is-selected{background:#e9f8ef;color:#147a42;box-shadow:inset 0 0 0 2px #2ca66f}.review-calendar-day.is-selected.is-excluded{background:#f3f4f6;color:#64748b;box-shadow:inset 0 0 0 2px #94a3b8}.review-calendar-occupancy{display:flex;flex-direction:column;align-items:center;gap:1px;margin-top:4px;color:#64748b;font-size:8px;font-weight:600;line-height:1.1;white-space:nowrap}.review-calendar-occupancy span:first-child{color:#147a42}.review-calendar-occupancy span:nth-child(2){color:#b4233c}.review-calendar-legend{display:flex;gap:12px;margin:12px 0 0;color:#64748b;font-size:11px}.review-calendar-legend span{padding:4px 7px;border-radius:5px}.review-calendar-legend .is-selected{background:#e9f8ef;color:#147a42}.review-calendar-legend .is-excluded{background:#f3f4f6;color:#64748b}.review-decision-form{display:grid;gap:8px;margin-top:18px;border-top:1px solid #e5eaf1;padding-top:16px}.review-decision-form label{color:#0b2c52;font-size:12px;font-weight:800}.review-decision-form textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font:inherit;color:#0b2c52}.review-decision-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.review-request-card{padding:16px}.review-request-header{display:grid;gap:12px}.review-request-summary{align-items:flex-start}.review-calendar-months{display:block;overflow:visible}.review-calendar-month{min-width:0;margin-bottom:16px}.review-calendar-month:not(:first-child){border-top:1px solid #e5eaf1;padding-top:14px}.review-calendar-day{min-height:34px}.review-decision-actions .btn{flex:1}.vacation-calendar{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.vacation-calendar-weekdays,.vacation-calendar-grid{min-width:0;gap:2px}.vacation-calendar-weekdays span{padding:8px 2px;font-size:9px;text-align:center}.vacation-calendar-day{min-height:92px;padding:6px 3px}.calendar-day-number{font-size:13px}.calendar-events{gap:3px;margin-top:5px}.calendar-event{padding:4px 3px;border-left-width:2px;font-size:9px;overflow:hidden}.calendar-event strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
.vacation-request-panel{max-width:760px}.vacation-range-picker{overflow:hidden;border:1px solid #dbe4ef;border-radius:14px;background:#fbfcfe}.range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#dbe4ef}.range-inputs>div{display:grid;gap:5px;padding:12px 14px;background:#fff}.range-inputs span{color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.range-inputs input{height:40px;border:0;padding:0;color:#0b2c52;font-size:15px;font-weight:750;outline:none}.range-picker-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 10px;color:#0b2c52}.range-picker-toolbar strong{font-size:15px}.range-nav{width:32px;height:32px;border:1px solid #dbe4ef;border-radius:50%;background:#fff;color:#0b2c52;font-size:24px;line-height:1;cursor:pointer}.range-nav:hover{border-color:#f36d21;color:#f36d21}.range-months{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 18px 14px}.range-month h3{margin:2px 0 10px;text-align:center;color:#0b2c52;font-size:14px}.range-weekdays,.range-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.range-weekdays span{text-align:center;color:#94a3b8;font-size:10px;font-weight:800}.range-day{min-height:34px;border:0;border-radius:8px;background:transparent;color:#0b2c52;font-size:12px;font-weight:700;cursor:pointer}.range-day:hover{background:#fff1e8;color:#f36d21}.range-day.is-weekend{color:#94a3b8}.range-day.is-selected{border-radius:0;background:#eeeafa;color:#452267}.range-day.is-start,.range-day.is-end{border-radius:8px;background:#4f46d8;color:#fff}.range-day.is-empty{cursor:default}.range-help{margin:0;padding:10px 18px;border-top:1px solid #e7edf4;color:#64748b;font-size:12px}@media(max-width:650px){.range-months{grid-template-columns:1fr;gap:12px}.range-inputs{grid-template-columns:1fr}.range-month:nth-child(2){display:none}}
.password-input-wrap{position:relative}.password-input-wrap input{padding-right:145px}.password-toggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);border:0;background:transparent;color:#0b2c52;font-size:12px;font-weight:800;cursor:pointer;padding:7px}.password-toggle:hover{color:#f36d21}
.password-toggle{display:inline-flex;align-items:center;gap:5px;line-height:1}.password-toggle [data-password-icon]{font-size:16px;line-height:1}
.review-calendar-events{display:flex;flex-direction:column;gap:4px;width:100%;margin-top:7px}.review-calendar-event{display:flex;flex-direction:column;gap:2px;padding:6px 7px;border-left:3px solid #f36d21;border-radius:6px;background:#fff1e8;color:#0b2c52;line-height:1.15}.review-calendar-event strong{font-size:10px}.review-calendar-event small{color:#64748b;font-size:9px}.review-calendar-event.is-pending{border-left-color:#b4233c;background:#fff0f2}.review-calendar-event.is-pending small{color:#b4233c}.review-calendar-approved-key{padding:4px 7px;border-radius:5px;background:#fff1e8;color:#c66b1b}
.pending-calendar-event{border-left-color:#b4233c;background:#fff0f2}.pending-calendar-event small{color:#b4233c}.review-agenda-occupancy{display:flex;flex-direction:column;gap:2px;margin-top:8px;font-size:10px;line-height:1.15}.review-agenda-occupancy span:first-child{color:#147a42}.review-agenda-occupancy span:nth-child(2){color:#b4233c}.review-agenda-occupancy small{color:#64748b}.review-agenda-legend{display:flex;align-items:center;gap:10px;margin-top:14px;color:#64748b;font-size:11px}.review-agenda-legend span{padding:4px 7px;border-radius:5px}.review-agenda-legend .approved-key{background:#fff1e8;color:#c66b1b}.review-agenda-legend .pending-key{background:#fff0f2;color:#b4233c}
.review-calendar-months{display:block}.review-calendar-month{min-width:0}.review-calendar-weekdays{gap:1px;margin-bottom:1px}.review-calendar-weekdays span{padding:10px 12px;background:#f4f7fb;color:#64748b;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.review-calendar-grid{gap:1px;background:#dfe7f0;border:1px solid #dfe7f0}.review-calendar-day{min-height:104px;align-items:flex-start;padding:10px;background:#fff;border-radius:0;color:#0b2c52}.review-calendar-day>span:first-child{font-size:16px;font-weight:850}.review-calendar-day.is-outside{background:#f7f9fc;color:#a3afbd}.review-calendar-day.is-weekend{background:#fbf8f5}.review-calendar-day.is-holiday{background:#fff8ef;color:#c66b1b}.review-calendar-day.is-selected{background:#e9f8ef;color:#147a42;box-shadow:inset 0 0 0 2px #2ca66f}.review-calendar-day.is-selected.is-excluded{background:#f3f4f6;color:#64748b;box-shadow:inset 0 0 0 2px #94a3b8}.review-calendar-occupancy{align-items:flex-start;gap:3px;margin-top:8px;font-size:10px;line-height:1.2}.review-calendar-occupancy span{display:block}.review-calendar-occupancy span:first-child{color:#147a42}.review-calendar-occupancy span:nth-child(2){color:#b4233c}.review-calendar-occupancy span:last-child{color:#64748b}
@media(max-width:760px){.password-input-wrap input{padding-right:125px}.password-toggle{font-size:11px;right:5px}.review-calendar-months{overflow:visible}.review-calendar-weekdays span{padding:8px 2px;font-size:8px;text-align:center}.review-calendar-day{min-height:102px;padding:7px 4px}.review-calendar-day>span:first-child{font-size:13px}.review-calendar-occupancy{gap:2px;margin-top:5px;font-size:8px;white-space:normal;overflow-wrap:anywhere}.review-calendar-events{gap:3px;margin-top:5px}.review-calendar-event{padding:4px 3px;border-left-width:2px;overflow:hidden}.review-calendar-event strong{font-size:8px;white-space:normal;overflow-wrap:anywhere}.review-calendar-event small{font-size:8px}.review-agenda-legend{flex-wrap:wrap}}
.review-agenda-panel .vacation-calendar{overflow-x:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior-x:contain}.review-agenda-panel .review-agenda-occupancy,.review-agenda-panel .review-agenda-legend{display:none}
@media(max-width:760px){.review-agenda-panel .vacation-calendar{display:block;width:100%;max-width:100%;overflow-x:scroll!important;overflow-y:hidden;touch-action:pan-x pan-y;scrollbar-width:thin}.review-agenda-panel .vacation-calendar-weekdays,.review-agenda-panel .vacation-calendar-grid{min-width:760px;width:760px;grid-template-columns:repeat(7,minmax(100px,1fr))}.review-agenda-panel .vacation-calendar-day{min-height:86px;padding:6px 3px}.review-agenda-panel .calendar-events{gap:2px;margin-top:5px}.review-agenda-panel .calendar-event{padding:3px 2px;border-left-width:2px;overflow:hidden}.review-agenda-panel .calendar-event strong{font-size:8px;line-height:1.1;white-space:normal;overflow-wrap:anywhere}.review-agenda-panel .calendar-event small{font-size:8px;line-height:1.1;white-space:normal}}
/* EPP y materiales */
.ppe-worker-card{display:flex;align-items:center;gap:32px;margin-bottom:20px}.ppe-worker-card>div{display:flex;flex-direction:column;gap:5px}.ppe-worker-card .btn{margin-left:auto}.ppe-request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}.ppe-request-item{display:grid;grid-template-columns:1fr 110px;gap:12px;padding:18px;border:1px solid var(--elcos-line);border-radius:14px;background:#fbfcfe}.ppe-request-item>div{display:flex;flex-direction:column;gap:4px}.ppe-request-item small{color:var(--elcos-muted)}.ppe-request-item label,.signature-area{display:flex;flex-direction:column;gap:6px;color:var(--elcos-muted);font-size:12px;font-weight:800}.ppe-request-item input{min-height:40px;padding:8px 10px;border:1px solid var(--elcos-line);border-radius:8px}.ppe-wide{grid-column:1/-1}.ppe-list{display:grid;gap:12px}.ppe-list-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--elcos-line)}.ppe-list-row:last-child{border-bottom:0}.ppe-list-row>div{display:flex;flex-direction:column;gap:4px}.ppe-list-row span{color:var(--elcos-muted);font-size:12px}.ppe-delivery-card{margin-top:18px}.ppe-sign-panel{max-width:860px}.signature-area{margin:22px 0}.signature-canvas{width:100%;height:210px;border:2px dashed #aab8c8;border-radius:12px;background:#fff;touch-action:none}.signature-area .btn{align-self:flex-start;margin-top:4px}.form-errors{margin-bottom:18px;padding:14px 18px;border:1px solid #fecaca;border-radius:12px;background:#fef2f2;color:#991b1b}.form-errors p{margin:3px 0}@media(max-width:760px){.ppe-worker-card,.ppe-list-row{align-items:stretch;flex-direction:column}.ppe-worker-card .btn{margin-left:0}.ppe-request-grid{grid-template-columns:1fr}.ppe-request-item{grid-template-columns:1fr}.signature-canvas{height:180px}}
.ppe-delivery-work,.ppe-delivery-card{margin-top:18px}.ppe-action-row{display:flex;align-items:center;gap:14px;margin-top:18px}.ppe-correction{margin-top:20px;padding-top:16px;border-top:1px solid var(--elcos-line)}.ppe-correction summary{cursor:pointer;color:var(--elcos-navy);font-weight:800}.ppe-correction form{display:grid;gap:12px;max-width:620px;margin-top:16px}.ppe-timeline{display:grid;gap:0}.ppe-timeline>div{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid var(--elcos-line)}.ppe-timeline span,.ppe-audit-entry{color:var(--elcos-muted)}
.ppe-open-notice{margin-bottom:18px;padding:13px 16px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;color:#9a3412;font-weight:750}
.ppe-reject-form{display:flex;gap:10px;margin-top:12px}.ppe-reject-form input,.ppe-action-row input{min-height:42px;padding:8px 12px;border:1px solid var(--elcos-line);border-radius:9px}
.app-messages{display:grid;gap:8px;margin-bottom:18px}.app-message{padding:12px 15px;border:1px solid var(--elcos-line);border-radius:10px;background:#eef4fb;color:var(--elcos-navy);font-weight:750}.app-message-success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.app-message-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}

/* Shared intranet frame and reusable responsive layout helpers. */
.mobile-navigation { display: none; }
.responsive-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.responsive-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mobile-stack { min-width: 0; }

@media (max-width: 760px) {
  .sidebar { gap: 12px; }
  .sidebar > .side-nav { display: none; }
  .mobile-navigation { display: block; width: 100%; min-width: 0; }
  .mobile-navigation > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .mobile-navigation > summary::-webkit-details-marker { display: none; }
  .mobile-navigation > summary::before { content: "+"; font-size: 20px; line-height: 1; }
  .mobile-navigation[open] > summary::before { content: "−"; }
  .mobile-navigation > summary:focus-visible,
  .mobile-navigation a:focus-visible { outline: 3px solid var(--elcos-orange); outline-offset: 2px; }
  .mobile-navigation .side-nav { display: grid; gap: 5px; margin-top: 10px; overflow: visible; }
  .mobile-navigation .side-nav a { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
  .mobile-navigation .nav-icon { flex-shrink: 0; }
  .mobile-navigation .side-nav a:hover,
  .mobile-navigation .side-nav a.active { transform: none; }
  .app-main { max-width: 100%; overflow-wrap: anywhere; }
  .app-main img { max-width: 100%; height: auto; }
  .page-header, .page-header > *, .panel, .mobile-stack > * { min-width: 0; }
  .header-actions, .responsive-actions, .mobile-stack { display: flex; flex-direction: column; align-items: stretch; }
  .header-actions > *, .responsive-actions > * { width: 100%; min-width: 0; }
  .responsive-table, .table-wrap { width: 100%; min-width: 0; max-width: 100%; }
  .btn, button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-height: 44px; }
  .range-nav { min-width: 44px; }
  input, select, textarea { max-width: 100%; }
  .table-action { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Mobile identity, directories and inventory. Desktop layout stays unchanged. */
@media (max-width: 760px) {
  .auth-card.mobile-stack { gap: 0; }
  .auth-card.mobile-stack > *, .auth-form .form-field { min-width: 0; }
  .auth-card .auth-visual .brand-lockup { max-width: 100%; }
  .auth-card .auth-badge { max-width: 100%; white-space: normal; }
  .auth-card .auth-form { padding: 28px 20px; overflow-wrap: anywhere; }
  .password-change-actions, .error-page-actions { width: 100%; }
  .password-change-form .form-help { overflow-wrap: anywhere; }
  .error-page { min-width: 0; overflow-wrap: anywhere; }
  .error-page-anonymous .responsive-actions { align-self: stretch; }
  .mobile-module-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-module-grid .module-card { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .mobile-module-grid .module-card-icon { flex-shrink: 0; }
  .mobile-module-grid .module-card span:nth-child(2) { min-width: 0; }
  .mobile-module-grid .module-card-notification { position: static; max-width: 100%; white-space: normal; }
  .detail-grid.mobile-stack { padding: 0; }
  .detail-hero.mobile-stack { gap: 16px; }
  .mobile-stack .detail-list { grid-template-columns: minmax(0, 1fr); }
  .mobile-stack .detail-list dd { overflow-wrap: anywhere; }
  .breadcrumb { flex-wrap: wrap; overflow-wrap: anywhere; }
  .filter-form.mobile-stack .form-field { flex: 0 1 auto; width: 100%; }
  .filter-form.mobile-stack .checkbox-field { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .form-grid.mobile-stack .form-field { width: 100%; }
  .inventory-filters .btn, .form-actions.responsive-actions .btn, .form-actions.mobile-stack .btn { width: 100%; }
  .pagination { flex-wrap: wrap; gap: 12px; }
  .pagination a { display: inline-flex; align-items: center; min-height: 44px; }
  .panel-heading { flex-wrap: wrap; }
  .panel-heading a { display: inline-flex; align-items: center; min-height: 44px; }
  .responsive-table { overscroll-behavior-x: contain; }
  .responsive-table:focus-visible { outline: 3px solid var(--elcos-orange); outline-offset: 2px; }
  .mobile-table-cards, .mobile-table-cards tbody { display: block; width: 100%; }
  .mobile-table-cards thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-table-cards tbody tr { display: block; margin-bottom: 14px; border: 1px solid var(--elcos-line); border-radius: 10px; }
  .mobile-table-cards tbody tr:last-child { margin-bottom: 0; }
  .mobile-table-cards tbody td { display: block; padding: 9px 12px; min-height: 44px; border-bottom: 0; overflow-wrap: anywhere; }
  .mobile-table-cards tbody td[data-label]::before { display: block; margin-bottom: 5px; color: var(--elcos-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
  .mobile-table-cards a { display: inline-flex; align-items: center; min-height: 44px; }
  .report-hero.mobile-stack { gap: 14px; }
  .report-hero-link { min-height: 44px; white-space: normal; }
  .source-total-strip.mobile-stack { gap: 10px; }
  .report-panel .responsive-table { max-width: 100%; }
  .report-panel .data-table { min-width: 440px; }
  .report-panel .review-item { overflow-wrap: anywhere; }
  .category-bar-row > div:first-child { flex-wrap: wrap; gap: 6px; }
}

/* Human Resources: self-service, records and dense calendars on phones. */
@media (max-width: 760px) {
  .people-page > .btn, .people-page > .button { width: 100%; margin-top: 16px; }
  .people-page .people-calendar-nav, .people-page .people-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .people-page .calendar-nav strong { min-width: 0; }
  .people-form { min-width: 0; gap: 12px; }
  .people-form .form-actions, .form-grid.mobile-stack .form-actions { gap: 10px; }
  .people-form .form-field { min-width: 0; }
  .people-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .people-form select, .people-form textarea { width: 100%; min-width: 0; }
  .people-form textarea { min-height: 96px; resize: vertical; }
  .people-form label { overflow-wrap: anywhere; }
  .people-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .people-form input[type="checkbox"] { flex-shrink: 0; }
  .people-form .form-field label:has(input[type="date"]) { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 7px; }
  .people-form > p { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
  .people-form .errorlist { padding-left: 24px; overflow-wrap: anywhere; }
  .people-form .range-inputs > div { min-width: 0; }
  .people-form .range-picker-toolbar { gap: 8px; padding: 12px 10px; }
  .people-form .range-picker-toolbar strong { min-width: 0; text-align: center; }
  .people-form .range-nav { flex-shrink: 0; }
  .people-form .range-months { padding: 0 8px 12px; grid-template-columns: minmax(0, 1fr); }
  .people-form .range-month { min-width: 0; }
  .people-form .range-weekdays, .people-form .range-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .people-form .range-day { min-width: 0; min-height: 44px; padding: 0; }
  .people-form .range-month:nth-child(2) { display: none; }
  .people-review-list, .people-review-list > *, .review-request-header > * { min-width: 0; }
  .people-review-list .review-request-summary { max-width: 100%; }
  .people-review-list .review-decision-form { min-width: 0; }
  .calendar-heading.mobile-stack { gap: 8px; }
  .vacation-calendar.responsive-table { min-width: 0; max-width: 100%; }
  .vacation-calendar.responsive-table .calendar-event { min-height: 44px; justify-content: center; }
  .vacation-calendar.responsive-table .calendar-event strong,
  .vacation-calendar.responsive-table .calendar-event small { font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .accrual-audit-wrap .accrual-audit-table { min-width: 840px; }
  .people-audit-table { min-width: 1000px; }
  .audit-summary-grid.mobile-stack, .metric-grid.mobile-stack { gap: 12px; margin-bottom: 20px; }
  .audit-summary-grid .audit-summary-item { display: flex; flex-direction: column; gap: 8px; }
  .metric-grid.mobile-stack .metric-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--elcos-line); border-radius: 12px; background: white; }
  .metric-grid.mobile-stack .metric-card strong { font-size: 28px; color: var(--elcos-deep); }
  .detail-header.mobile-stack { gap: 12px; }
  .detail-header.mobile-stack .status-pill { align-self: flex-start; }
  .people-detail-grid > *, .people-detail-grid .detail-list > div { min-width: 0; }
  .people-detail-grid .stock-number { font-size: 36px; }
  .people-detail-grid .mini-record { flex-direction: column; gap: 6px; }
  .people-card { min-width: 0; padding: 18px; margin-bottom: 18px; border: 1px solid var(--elcos-line); border-radius: 16px; background: white; }
  .people-card ul { padding-left: 20px; }
  .people-card form + form { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--elcos-line); }
  .people-card .button, .people-page > .button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--elcos-navy); color: white; font-weight: 800; text-align: center; cursor: pointer; }
  .people-card .button:disabled { opacity: .55; cursor: not-allowed; }
  .people-table { width: 100%; border-collapse: collapse; }
  .people-table small { display: block; margin-top: 4px; }
  .people-table input[type="checkbox"] { width: 44px; height: 44px; margin: 0; }
  .people-table-actions { white-space: normal; }
  .people-table-actions .inline-form { display: block; margin-left: 0; }
}

/* EPP: keep records readable and each operation reachable on a phone. */
@media (max-width: 760px) {
  .ppe-page .panel { padding: 18px; }
  .ppe-page .ppe-worker-card { gap: 16px; }
  .ppe-page .ppe-request-item { min-width: 0; padding: 14px; }
  .ppe-page .ppe-request-item > *, .ppe-page .form-field { min-width: 0; }
  .ppe-page .ppe-request-item input,
  .ppe-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .ppe-page select, .ppe-page textarea { width: 100%; min-width: 0; font-size: 16px; }
  .ppe-page textarea { min-height: 96px; resize: vertical; }
  .ppe-page .btn { white-space: normal; text-align: center; }
  .ppe-page .ppe-action-row { align-items: stretch; }
  .ppe-page .ppe-action-row form { display: grid; gap: 10px; }
  .ppe-page .ppe-list-row > div { min-width: 0; }
  .ppe-page .ppe-list-row > .btn, .ppe-page .panel > .btn { width: 100%; }
  .ppe-page .ppe-timeline > div { flex-direction: column; gap: 6px; }
  .ppe-page .ppe-audit-entry { line-height: 1.5; }
  .ppe-page .ppe-correction summary { min-height: 44px; }
  .mobile-signature-panel .confirmation-field { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; line-height: 1.5; }
  .mobile-signature-panel .confirmation-field input { flex-shrink: 0; width: 24px; height: 24px; }
  .mobile-signature-panel .signature-canvas { display: block; width: 100%; height: 260px; touch-action: none; }
  .mobile-signature-panel .signature-area .btn { align-self: stretch; }

  /* The review agenda retains horizontal scrolling and a legible event size. */
  .review-agenda-panel .calendar-event strong,
  .review-agenda-panel .calendar-event small,
  .review-calendar-event strong,
  .review-calendar-event small { font-size: 12px; line-height: 1.35; }
  .review-calendar-occupancy, .review-calendar-weekdays span { font-size: 11px; }
}

/* Oficina de visitas e informes comunitarios. */
.office-section { margin-top: 20px; }
.report-type-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: #eef4fb; color: var(--elcos-navy); font-size: 11px; font-weight: 800; white-space: nowrap; }
.form-section { padding: 22px 0; border-bottom: 1px solid var(--elcos-line); }
.form-section:first-of-type { padding-top: 0; }
.form-section:last-of-type { border-bottom: 0; }
.form-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.form-section-heading > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--elcos-orange-soft); color: #b34d0c; font-size: 11px; font-weight: 900; }
.form-section-heading h2 { margin: 0 0 4px; font-size: 18px; }
.form-section-heading p { margin: 0; color: var(--elcos-muted); font-size: 12px; line-height: 1.5; }
.community-report-form .form-field input:not([type="checkbox"]):not([type="file"]),
.community-report-form .form-field select,
.community-report-form .form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; outline: none; }
.community-report-form .form-field textarea { min-height: 94px; resize: vertical; }
.community-report-form .form-field input:focus,
.community-report-form .form-field select:focus,
.community-report-form .form-field textarea:focus { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.13); }
.finding-card { margin: 14px 0; padding: 16px; border: 1px solid var(--elcos-line); border-radius: 12px; background: #fbfdff; }
.finding-card legend { padding: 0 6px; color: var(--elcos-navy); font-size: 12px; font-weight: 850; }
.delete-option { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: #9f1239; font-size: 12px; }
.evidence-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.evidence-item { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--elcos-line); border-radius: 10px; background: #fbfdff; }
.evidence-item strong { color: var(--elcos-deep); font-size: 12px; }
.evidence-item span { color: var(--elcos-muted); font-size: 11px; }
.assignment-form { max-width: 920px; }
.assignment-step { padding: 22px 0; border-bottom: 1px solid var(--elcos-line); }
.assignment-step:last-of-type { border-bottom: 0; }
.assignment-form input:not([type="hidden"]), .assignment-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; }
.assignment-form input:focus, .assignment-form select:focus { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.13); outline: 0; }
.assignment-form dialog { max-width: min(470px, calc(100vw - 32px)); border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(3,26,53,.28); }
.assignment-form dialog::backdrop { background: rgba(3,26,53,.45); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
@media (max-width: 760px) {
  .office-section { padding: 17px; }
  .community-report-form { padding: 18px; }
  .form-section-heading { gap: 9px; }
  .report-type-pill { white-space: normal; }
  .delete-option { display: flex; margin: 10px 0 0; }
}
.permission-event { border-left-color: #7c3aed; background: #f3eefe; }
.permission-event:hover { background: #e9ddff; }

/* Campañas de publicidad: formulario más claro y cómodo de completar. */
.campaign-page { max-width: 1080px; padding: 28px; background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%); }
.campaign-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--elcos-line); }
.campaign-heading h2 { margin: 4px 0 6px; color: var(--elcos-deep); font-size: clamp(23px, 3vw, 31px); }
.campaign-heading p { margin: 0; color: var(--elcos-muted); }
.campaign-kicker { color: var(--elcos-orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.campaign-step { padding: 8px 12px; border: 1px solid #dbe7f2; border-radius: 999px; color: var(--elcos-deep); background: #eef6ff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.campaign-form { display: grid; gap: 0; }
.campaign-form > p { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; padding: 13px 0; border-bottom: 1px solid #edf2f7; }
.campaign-form > p > label { padding-top: 10px; color: var(--elcos-deep); font-size: 13px; font-weight: 800; }
.campaign-form input:not([type="checkbox"]):not([type="file"]), .campaign-form textarea, .campaign-form select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd8e5; border-radius: 10px; color: var(--elcos-deep); background: #fff; font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.campaign-form textarea { min-height: 132px; resize: vertical; }
.campaign-form input:focus, .campaign-form textarea:focus, .campaign-form select:focus { border-color: var(--elcos-orange); box-shadow: 0 0 0 4px rgba(244,123,32,.14); outline: 0; }
.campaign-form input[type="file"] { padding: 10px 0; color: var(--elcos-muted); }
.campaign-form input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--elcos-orange); }
.campaign-form ul.errorlist { grid-column: 2; margin: 5px 0 0; color: #b42318; font-size: 12px; }
.campaign-form > ul.errorlist { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: #fff1f0; }
.campaign-form .helptext { display: block; margin-top: 6px; color: var(--elcos-muted); font-size: 12px; line-height: 1.45; }
.campaign-form ul.checkboxselectmultiple { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.campaign-form ul.checkboxselectmultiple li { min-width: 0; }
.campaign-form ul.checkboxselectmultiple label { display: flex; align-items: flex-start; gap: 9px; height: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #dce6ef; border-radius: 10px; color: #28435e; background: #fbfdff; font-size: 12px; line-height: 1.35; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.campaign-form ul.checkboxselectmultiple label:hover { border-color: #f4a56d; background: #fff9f5; transform: translateY(-1px); }
.campaign-form fieldset { margin: 18px 0 4px; padding: 18px; border: 1px solid #dbe7f2; border-radius: 12px; background: #f8fbfe; }
.campaign-form fieldset legend { padding: 0 8px; color: var(--elcos-deep); font-size: 13px; font-weight: 900; }
.campaign-form fieldset p { margin: 0 0 10px; color: var(--elcos-muted); font-size: 12px; }
.campaign-form #frame-preview { display: block; margin-top: 12px; max-width: min(100%, 420px); border: 1px solid #d4e0eb; border-radius: 10px; box-shadow: 0 8px 20px rgba(3,26,53,.08); }
.campaign-actions { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--elcos-line); }
.campaign-submit { min-height: 46px; padding-inline: 18px; }
.campaign-submit span { margin-left: 8px; font-size: 18px; }
@media (max-width: 760px) {
  .campaign-page { padding: 20px 16px; }
  .campaign-heading { display: block; }
  .campaign-step { display: inline-block; margin-top: 14px; }
  .campaign-form > p { display: block; }
  .campaign-form > p > label { display: block; margin-bottom: 7px; }
  .campaign-form ul.errorlist { margin-left: 0; }
  .campaign-form ul.checkboxselectmultiple { grid-template-columns: 1fr; }
  .campaign-actions { justify-content: stretch; }
  .campaign-submit { width: 100%; justify-content: center; }
}
