:root{font-family:Inter,system-ui,sans-serif;color:#132e53;background:#f3f6fb;font-size:14px}*{box-sizing:border-box}body{margin:0}button,a,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:0;background:#145cc5;color:white;border-radius:8px;padding:11px 16px;text-decoration:none;display:inline-block}button:hover,.button:hover{filter:brightness(.94)}button.secondary{background:#edf2fa;color:#153d71}button.danger{background:#bb2769}input,select,textarea{width:100%;padding:11px;border:1px solid #d2dce9;border-radius:7px;background:white;color:#143558}label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}aside{background:#fff;border-right:1px solid #e1e8f0;width:245px;position:fixed;height:100vh;padding:28px 18px;display:flex;flex-direction:column;gap:9px}aside img{width:205px;height:70px;object-fit:contain;margin-bottom:25px}nav{display:flex;flex-direction:column;gap:5px}nav button{text-align:left;background:transparent;color:#526881;font-weight:550}nav button.active{color:#185fc7;background:#edf4ff}main{margin-left:245px;padding:30px 42px;max-width:1650px}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.muted{color:#73839a;font-size:13px}h1{font-size:29px;letter-spacing:-1px;margin:6px 0}h2{font-size:18px;margin:0 0 20px}.badge{display:inline-block;background:#fff0f7;color:#b12566;font-size:11px;font-weight:750;border-radius:5px;padding:6px 9px}.notice{border-left:3px solid #d43788;padding:13px 16px;background:#fff5fa;color:#8a285b;margin-bottom:22px;line-height:1.6}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:white;border:1px solid #e3eaf2;border-radius:12px;padding:23px;box-shadow:0 4px 12px #19385a04;margin-bottom:20px}.stat{font-size:30px;font-weight:700;margin:12px 0 5px}.pink{color:#cc347f}.actions{display:flex;gap:10px;flex-wrap:wrap}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}td,th{padding:14px 10px;border-bottom:1px solid #eaf0f6;font-size:13px}th{color:#708198;font-weight:550;background:#f9fbfd}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.field{margin-bottom:10px}.formgrid .wide{grid-column:1/-1}form button{margin-top:10px}.empty{text-align:center;color:#7a8ba3;padding:40px}.login{max-width:460px;margin:7vh auto;padding:36px}.login img{width:260px;max-width:100%;display:block;margin:auto auto 25px}.login .field{margin-top:20px}.login button{width:100%}.sidefoot{margin-top:auto;padding:12px;font-size:12px;color:#73839a}.tag{background:#edf4ff;color:#1957a8;border-radius:4px;padding:5px 8px;font-size:11px}#toast{position:fixed;bottom:25px;right:25px;background:#153c70;color:white;border-radius:9px;padding:15px;display:none;max-width:440px;z-index:10}.search{max-width:420px;margin:0 0 15px}.row{display:flex;gap:18px;align-items:center;justify-content:space-between}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.small{font-size:12px;line-height:1.7}.status{color:#a32c6a;font-weight:600}pre{white-space:pre-wrap}a{color:#145cc5}footer{font-size:12px;color:#8190a4;margin-top:20px}@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}main{padding:25px}.two{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:100%;height:auto;padding:15px}aside img{height:45px;width:180px;margin:0}nav{flex-direction:row;overflow:auto}nav button{white-space:nowrap}.sidefoot{display:none}main{margin:0;padding:20px 14px}.formgrid{grid-template-columns:1fr}.formgrid .wide{grid-column:auto}.top{align-items:start}h1{font-size:25px}.card{padding:18px}.stat{font-size:24px}}

select[multiple]{min-height:150px}details{white-space:normal;max-width:520px;line-height:1.7}summary{cursor:pointer;color:#145cc5}.table-wrap td small{display:block;white-space:normal;max-width:280px}

aside img{height:120px}input[type=checkbox]{width:auto;margin-right:8px}.stat{overflow-wrap:anywhere}#health-results{white-space:pre-wrap;margin-top:20px}

/* Menú utilizable en MacBook y expedientes extensos. */
aside{overflow-y:auto}nav,.sidefoot{flex-shrink:0}
#medical-body{margin-top:18px}
#medical-body .table-wrap td{white-space:normal;min-width:95px;max-width:390px;overflow-wrap:anywhere;vertical-align:top}
#medical-body .card{margin-top:18px}

[hidden]{display:none!important}.metric-link{text-align:left;display:flex;flex-direction:column;gap:8px;white-space:normal}.metric-link strong{font-size:1.6rem}.metric-link small{font-weight:normal}.metric-link:focus{outline:3px solid #c73078}#medical-body th{white-space:normal}

.voucher-validation main{margin:32px auto;max-width:780px;padding:16px}.issuer-logo{width:210px;max-width:80%;height:auto}.voucher-validation table{white-space:normal}.voucher-validation td,.voucher-validation th{overflow-wrap:anywhere}

/* MAX_ASSISTANCE_PANEL_CONTRASTE_V1 */
/* Las tarjetas son botones: necesitan texto oscuro sobre fondo blanco. */
button.card.metric-link {
  color: #132e53;
  background: #ffffff;
  border-color: #cbd8e8;
  min-width: 0;
  overflow-wrap: anywhere;
}
button.card.metric-link > span,
button.card.metric-link > strong { color: #132e53; }
button.card.metric-link > small { color: #526881; }
button.card.metric-link:hover { background: #edf4ff; filter: none; }
button.card.metric-link:focus {
  outline: 3px solid #c73078;
  outline-offset: 3px;
}
/* FIN_MAX_ASSISTANCE_PANEL_CONTRASTE_V1 */
