:root{font-family:Arial,sans-serif;color:#173b40;background:#f3f6f7;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #dce5e6;display:flex;align-items:center;gap:20px;padding:18px max(24px,calc((100vw - 1120px)/2))}header img{width:140px;height:56px;object-fit:contain}header small{display:block;color:#62767b;margin-top:5px}.badge{margin-left:auto;background:#eaf3f3;color:#285f63;border-radius:20px;padding:9px 13px;font-size:14px;white-space:nowrap}main{max-width:1120px;margin:0 auto;padding:24px}nav{display:flex;gap:8px;margin-bottom:30px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #cbdadd;border-radius:9px;padding:12px 18px;background:white;color:#254e53;font-weight:600}button:hover{background:#e9f1f1}.primary,nav .active{background:#2d7074;color:white;border-color:#2d7074}.primary:hover{background:#225b60}.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}h1{font-size:30px;letter-spacing:-.7px;margin:0 0 10px}h2{font-size:20px;margin:0 0 20px}h3{font-size:18px}p{line-height:1.6;margin:0;color:#62767b}.panel{background:white;padding:26px;border:1px solid #dce5e6;border-radius:14px;margin-bottom:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stat{padding:20px;background:#e8f0f1;border-radius:12px}.stat b{display:block;font-size:28px;margin-bottom:6px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.toolbar input{max-width:300px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}label{display:block;line-height:1.45;font-weight:600;margin-bottom:18px}input,select,textarea{display:block;width:100%;padding:12px;border:1px solid #becfd1;border-radius:8px;margin-top:7px;background:white;color:#173b40}input:focus,select:focus,textarea:focus{outline:2px solid #2d7074;outline-offset:2px}small,.muted{font-size:14px;line-height:1.5;color:#6a7b80;font-weight:400}small{display:block;margin-top:6px}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}.totals{padding:16px;background:#f0f6f6;border-radius:8px;line-height:1.8;margin-bottom:20px}.actions{display:flex;justify-content:flex-end;gap:12px;margin:20px 0}.row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e3eaea;padding:20px 0}.row:last-child{padding-bottom:0}.row strong{display:block;margin-bottom:6px}.pill{display:inline-block;font-size:14px;background:#eaf2f2;border-radius:20px;padding:5px 10px;margin-top:8px}.details{display:grid;grid-template-columns:1fr 1fr;gap:14px}.details div{padding:10px 0}.details b{display:block;font-size:14px;color:#65787b;margin-bottom:7px}.area{border-top:1px solid #dce5e6;padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:14px}.area p{font-size:14px}.banner{border-left:4px solid #2d7074;padding:16px;background:#e9f3f2;margin-bottom:20px;line-height:1.6}dialog{max-width:720px;width:calc(100% - 32px);border:1px solid #cbdadd;border-radius:15px;padding:28px;max-height:85vh}dialog::backdrop{background:#173b4077}pre{white-space:pre-wrap;font:16px/1.7 Arial,sans-serif;color:#254e53}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:14px 20px;background:#173b40;color:white;border-radius:10px;display:none}#error{color:#a32727}[hidden]{display:none!important}@media(max-width:640px){header{padding:15px;gap:12px;flex-wrap:wrap}header img{width:100px;height:44px}.badge{margin-left:0;width:100%;text-align:center}main{padding:18px}h1{font-size:26px}.heading,.toolbar{align-items:stretch;flex-direction:column;gap:16px}.grid,.details{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:13px;font-size:14px}.stat b{font-size:24px}.panel{padding:20px}.row{align-items:flex-start;flex-direction:column}.row button{width:100%}.toolbar input{max-width:none}.area{align-items:stretch;flex-direction:column}.actions{flex-wrap:wrap}.actions button{flex:1}.heading .primary{width:100%}}
.yearbar{display:flex;align-items:center;gap:24px;background:white;border:1px solid #dce5e6;border-radius:12px;padding:18px 22px;margin-bottom:20px}.yearbar label{margin:0;font-size:14px}.yearbar select{min-width:140px}.yearbar p{font-size:14px}@media(max-width:640px){.yearbar{align-items:stretch;flex-direction:column;gap:10px}}
.year-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px;padding-bottom:4px}.year-tabs .active{background:#2d7074;color:white;border-color:#2d7074}
.login-panel{max-width:650px;margin:50px auto;padding:20px}.login-panel h1{margin-bottom:12px}.login-panel .banner{margin-top:22px}.login-panel .actions{justify-content:flex-start;flex-wrap:wrap}#session-controls{font-size:14px;display:flex;gap:10px;align-items:center}details{margin:8px 0}summary{cursor:pointer;font-weight:600;padding:14px 0}details small{margin-bottom:12px}input,select,textarea,.details div,.area p{min-width:0;overflow-wrap:anywhere}#toast{z-index:20;max-width:calc(100vw - 32px)}@media(max-width:640px){#session-controls{width:100%;justify-content:space-between}.login-panel{margin:20px auto}}
.toolbar{flex-wrap:wrap}.toolbar .filter{margin:0;font-size:14px;white-space:normal}.toolbar .filter input{flex:none;width:auto}

/* Marca visible en escritorio y celular */
header img{width:210px;height:84px;flex:0 0 auto}header>div:first-of-type{min-width:0}@media(max-width:640px){header{gap:14px}header img{width:150px;height:60px}header>div:first-of-type{flex:1;min-width:130px}}

header img{height:62px;object-fit:cover;object-position:50% 47.8%}@media(max-width:640px){header img{height:46px}}
