/* Only adaptations needed for safe forms and narrow screens; production CSS stays intact. */
.center{text-align:center}header .logout{border:0;background:transparent;color:#ff0;font:inherit;cursor:pointer}header form:has(.logout){margin-right:15%}.import-option{display:inline-block;text-align:left;font-weight:400;margin:0}.radioGroup{border:1px solid #333;padding:5px;display:flex;justify-content:center;align-items:center;gap:18px}.imports h1{padding-bottom:0;margin-bottom:0}.imports .search{min-height:100px}.imports .search h3:first-of-type{padding-top:0;margin-top:0}section.tb-carta .lookup{padding:.4em}input:disabled,button:disabled{cursor:not-allowed}.table{overflow:auto}.tb-input p{font-size:2em}
body:has(header .logo) footer{width:calc(100% - 40px)}
@media(min-width:768px){body:has(header .logo) footer{margin-left:40px;margin-right:0}}
@media(max-width:760px){body main{width:96%}main>form{max-width:100%;width:100%}main form>section.tb-inputs,main form>section.tb-inicio,main form>section.tb-total{flex-wrap:wrap;gap:1.5em;margin-bottom:1.5em}main form>section.tb-inputs>div,main form>section.tb-inicio>div,main form>section.tb-total>div{height:auto;max-width:100%;margin:0}main form>section.tb-carta{flex-wrap:wrap;gap:.5em}main form>section.tb-carta input{width:60%;margin-left:0}main form>section.tb-carta div{margin:.5em auto}main form>section.tb-carta img{max-width:200px;height:auto}textarea{max-width:100%}h1{font-size:1.5em}header div>p,footer div>p{margin:0 1em}footer div{height:auto;min-height:2em}section.search{min-width:0;width:auto;max-width:95%}.radioGroup{flex-wrap:wrap;gap:8px 14px}}
header.imports{height:auto!important;min-height:0;flex:1;gap:1.5rem;padding-bottom:2rem}header.imports .search{height:auto!important;min-height:0!important;flex:none;max-width:100%;width:480px;margin:1.5rem auto 0}header.imports form{height:auto!important}.import-message{text-align:left;white-space:normal!important;margin-top:1rem;line-height:1.55;overflow-wrap:anywhere}.import-message>p{margin:.5rem 0}.import-message details,.import-help details{border:1px solid #cddfd5;border-radius:6px;padding:.8rem;background:#f8fbf9}.import-message summary,.import-help summary{cursor:pointer;font-weight:600;text-align:left}.import-message ul,.import-help ul{padding-left:1.3rem;text-align:left}.import-message li{margin:.6rem 0}.import-help{width:480px;max-width:100%;margin:0 auto;text-align:left;line-height:1.55}.import-help p{margin:.8rem 0}body:has(header.imports){height:auto;min-height:100vh}body:has(header.imports) footer{position:static;flex:none;height:auto}
