:root{--ivory:#f6f0e3;--paper:#fffdf8;--green:#173f35;--green2:#24594b;--wine:#7a2638;--gold:#b38a3c;--ink:#262b29;--muted:#6f756f;--line:#ddd4c4;--danger:#a62f36;--ok:#24724f;--shadow:0 12px 36px rgba(31,48,39,.10)}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:var(--ivory);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.45}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.app-header{position:sticky;top:0;z-index:20;background:rgba(246,240,227,.95);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.topbar{max-width:1440px;margin:auto;padding:.35rem 1rem;display:flex;align-items:center;gap:1rem}.brand img{width:auto;height:68px;display:block;object-fit:contain}.nav{display:flex;gap:.25rem;overflow:auto;margin-left:auto}.nav a{white-space:nowrap;text-decoration:none;padding:.7rem .8rem;border-radius:10px;font-weight:650;color:#3f514a}.nav a:hover,.nav a.active{background:#e6ddcc;color:var(--green)}
main{max-width:1440px;margin:auto;padding:1.2rem}.page-title{font-family:Georgia,serif;color:var(--green);font-size:clamp(1.8rem,4vw,2.7rem);margin:.2rem 0}.eyebrow{color:var(--wine);font-weight:750;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}.lead{color:var(--muted);margin-top:.2rem}.grid{display:grid;gap:1rem}.stats{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));margin:1.2rem 0}.card{background:var(--paper);border:1px solid rgba(179,138,60,.22);border-radius:18px;padding:1.1rem;box-shadow:var(--shadow)}.stat strong{display:block;font-family:Georgia,serif;color:var(--green);font-size:clamp(1.3rem,2vw,1.72rem);white-space:nowrap}.stat span{color:var(--muted);font-size:.86rem}.stat.negative strong{color:var(--danger)}
.actions{display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:44px;padding:.72rem 1rem;border-radius:12px;border:1px solid transparent;background:var(--green);color:white;text-decoration:none;font:inherit;font-weight:750;cursor:pointer}.btn:hover{background:var(--green2)}.btn.secondary{background:var(--paper);color:var(--green);border-color:var(--green)}.btn.wine{background:var(--wine)}.btn.danger{background:var(--danger)}.btn.small{min-height:36px;padding:.4rem .65rem;font-size:.86rem}.fab{position:fixed;right:1.2rem;bottom:1.2rem;border-radius:999px;box-shadow:0 10px 30px rgba(23,63,53,.35);z-index:15}
.alert{padding:.85rem 1rem;border-radius:12px;margin:1rem 0;background:#eee6cf;border-left:5px solid var(--gold)}.alert.success{background:#e3f1e9;border-color:var(--ok)}.alert.error{background:#f8e4e4;border-color:var(--danger)}
form.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}.field.full{grid-column:1/-1}label{font-weight:700;color:#34423d}input,select,textarea{width:100%;max-width:100%;min-width:0;min-height:46px;border:1px solid #bdb6aa;background:white;border-radius:10px;padding:.7rem .8rem;font:inherit;color:var(--ink)}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(179,138,60,.26);border-color:var(--gold)}.hint{font-size:.82rem;color:var(--muted)}fieldset{border:1px solid var(--line);border-radius:12px;min-width:0}.month-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:.5rem}.check{display:flex;align-items:center;gap:.4rem;padding:.55rem;border:1px solid var(--line);border-radius:10px}.check input{width:20px;min-height:20px}
.table-wrap{overflow:auto;border-radius:16px;border:1px solid var(--line);background:var(--paper)}table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}th,td{text-align:left;padding:.72rem;border-bottom:1px solid #ebe4d7;vertical-align:top}th{position:sticky;top:0;background:var(--green);color:white;z-index:2;font-size:.8rem}td:first-child,th:first-child{position:sticky;left:0;background:var(--paper);z-index:1}th:first-child{background:var(--green);z-index:3}.month{display:inline-flex;min-width:70px;min-height:48px;padding:.35rem .42rem;align-items:center;justify-content:center;flex-direction:column;border-radius:10px;font-weight:800;line-height:1.12;text-align:center}.month b{font-size:.8rem}.month small{font-size:.61rem;font-weight:750;margin-top:.18rem}.month.paid{background:#dcefe5;color:#17643f}.month.overdue{background:#f7dddd;color:#8e2430}.month.future{background:#eeeae1;color:#615f5a}.month.advance{background:#e2f0e5;color:#17643f}.badge{display:inline-flex;border-radius:999px;padding:.22rem .55rem;font-size:.75rem;font-weight:800;background:#e8e4db}.badge.current,.badge.confirmed,.badge.paid{background:#dcefe5;color:#17643f}.badge.partial{background:#f4ead0;color:#765710}.badge.pending,.badge.pending_confirmation{background:#f7dddd;color:#8e2430}
.license-cards{display:none}.license-card{padding:1rem;background:var(--paper);border:1px solid var(--line);border-radius:14px;margin:.7rem 0}.license-card summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:.8rem}.license-no{display:grid;place-items:center;min-width:45px;height:45px;border-radius:13px;background:var(--green);color:white;font-weight:850}.license-card .months{display:flex;flex-wrap:wrap;gap:.42rem;margin-top:1rem}.profile-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.55rem;margin-top:1rem}.profile-months .month{width:100%;min-height:62px}.month-dot{display:inline-flex;width:39px;height:34px;align-items:center;justify-content:center;border-radius:10px;font-size:.68rem;font-weight:850;letter-spacing:-.02em;border:1px solid transparent}.month-dot.paid{background:#dcefe5;color:#17643f;border-color:#b7dac7}.month-dot.overdue{background:#f7dddd;color:#8e2430;border-color:#e5b4b8}.month-dot.future{background:#eeeae1;color:#615f5a;border-color:#d6d0c5}.month-dot.advance{background:#dcefe5;color:#17643f;border:2px solid #4b9670}.month-legend{display:flex;flex-wrap:wrap;gap:.55rem 1rem;margin:1rem 0;padding:.8rem 1rem;border:1px solid var(--line);border-radius:12px;background:var(--paper);font-size:.82rem}.month-legend span{display:inline-flex;align-items:center;gap:.38rem}.month-legend i{width:15px;height:15px;border-radius:5px;border:1px solid transparent}.month-legend i.paid{background:#dcefe5;border-color:#b7dac7}.month-legend i.overdue{background:#f7dddd;border-color:#e5b4b8}.month-legend i.future{background:#eeeae1;border-color:#d6d0c5}.month-legend i.advance{background:#dcefe5;border:2px solid #4b9670}.card-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.split{grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr)}.movements{list-style:none;padding:0;margin:0}.movements li{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;padding:.8rem 0;border-bottom:1px solid var(--line)}.movement-icon{width:36px;height:36px;border-radius:11px;background:#e8e1d3;display:grid;place-items:center}.money.in{color:var(--ok);font-weight:800}.money.out{color:var(--danger);font-weight:800}
.bars{display:flex;align-items:end;gap:1rem;height:180px;padding:1rem 0}.bar{flex:1;min-width:50px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:.3rem;height:100%}.bar i{width:100%;max-width:72px;border-radius:8px 8px 2px 2px;background:var(--green);min-height:2px}.bar.expense i{background:var(--wine)}
.login-page{min-height:100vh;display:grid;place-items:center;padding:1rem;background:radial-gradient(circle at 80% 10%,rgba(179,138,60,.15),transparent 32%),var(--ivory)}.login-card{width:min(440px,100%);background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:clamp(1.4rem,5vw,2.4rem);box-shadow:var(--shadow)}.login-card .login-brand{display:flex;justify-content:center}.login-card .login-brand img{width:190px;max-height:180px;object-fit:contain;height:auto;margin-bottom:1rem}.password-wrap{position:relative}.password-wrap button{position:absolute;right:.35rem;top:.35rem;min-height:38px;border:0;background:transparent;color:var(--green);font-weight:750}
.report-head{display:flex;align-items:center;gap:1.2rem;padding:1rem 0;border-bottom:2px solid var(--gold)}.report-head img{width:100px;max-height:110px;object-fit:contain;height:auto}.report-head h1{font-family:Georgia,serif;color:var(--green);margin:0;font-size:2rem}.report-head p{margin:.2rem 0;color:var(--muted)}.report-section{margin:1.2rem 0}.report-section h2{font-family:Georgia,serif;color:var(--green);margin:.4rem 0 .7rem}.report-table{min-width:650px}.report-table .total td{font-weight:850;background:#e1eedb}.report-table td:last-child{white-space:nowrap}.contribution-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.contribution-grid>div{display:grid;grid-template-columns:1fr auto;gap:.15rem .7rem;padding:.55rem .7rem;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.contribution-grid small{grid-column:1/-1;color:var(--muted)}.report-total{text-align:right;font-weight:850}.license-report-table{font-size:.78rem;min-width:1240px}.license-report-table th,.license-report-table td{padding:.38rem}.license-report-table .report-month{text-align:center;font-weight:850}.report-paid{background:#dcebd6!important;color:#174d2e}.report-pending{background:#f2cccc!important;color:#7e2028}.report-situation{text-align:center;font-weight:800}.report-situation.current{background:#78b84d;color:#fff}.report-situation.partial{background:#f4ead0;color:#765710}.report-situation.pending{background:#f2cccc;color:#7e2028}.legend{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.legend-paid,.legend-pending{display:inline-flex;padding:.3rem .65rem;border-radius:8px;font-weight:800}.legend-paid{background:#dcebd6;color:#174d2e}.legend-pending{background:#f2cccc;color:#7e2028}.pending-box{padding:1rem;border:1px solid var(--gold);background:#f5edd9;border-radius:12px}.report-footer,.individual-footer{display:none}.profile-stats{grid-template-columns:repeat(3,1fr)}.profile-stats .badge{font-family:Inter,ui-sans-serif,system-ui;font-size:1rem}.individual-footer{margin-top:1.5rem;padding-top:.5rem;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:.78rem}.empty-state{padding:1.2rem;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}.payment-month span{display:flex;flex-direction:column}.payment-month small{font-weight:500;color:var(--muted)}.payment-month.is-paid{background:#e3f1e9;border-color:#8dc3a5}.payment-month.is-pending{background:#f8e4e4;border-color:#dba2a5}.payment-month.is-future{background:#efede7;border-color:#cbc5ba}.duplicate-check{flex-direction:row!important;justify-content:flex-start;align-items:center}.duplicate-check input{flex:0 0 20px}
.report-status-svg{display:block;width:100%;height:34px}.license-report-table td.report-month{padding:0!important}.license-cards+.month-legend{display:none}.footer{padding:2rem 1rem;text-align:center;color:var(--muted);font-size:.82rem}.print-only{display:none}
.correction-panel{margin-top:1.2rem;border-color:#d8c28d}.correction-panel>summary{cursor:pointer;color:var(--green);font-family:Georgia,serif;font-size:1.2rem;font-weight:800}.correction-panel[open]>summary{margin-bottom:.7rem}.correction-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:.5rem}.correction-month{display:flex;align-items:center;gap:.45rem;padding:.55rem;border:1px solid var(--line);border-radius:10px;background:#f7dddd;cursor:pointer}.correction-month.selected{background:#dcefe5;border-color:#8dc3a5}.correction-month input{width:19px;min-height:19px;flex:0 0 auto}.correction-month span{display:flex;flex-direction:column}.correction-month small{font-size:.7rem;color:var(--muted)}.correction-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}.correction-confirm{margin:.75rem 0;background:#f5edd9}.receipt-correction{min-width:155px}.receipt-correction>summary{list-style:none}.receipt-correction>summary::-webkit-details-marker{display:none}.mini-confirm{display:flex;flex-direction:column;gap:.55rem;margin-top:.55rem;padding:.65rem;border:1px solid var(--line);border-radius:10px;background:var(--ivory);min-width:250px}.mini-confirm p{margin:0;font-size:.82rem}.mini-confirm .check{font-size:.8rem;white-space:normal}.mini-confirm .check input{flex:0 0 19px}
.share-pdf{background:#2f6b98}
.pdf-page-dialog{width:min(92vw,590px);max-height:88vh;padding:0;border:0;border-radius:22px;background:#fffdfa;color:var(--ink);box-shadow:0 28px 80px #102b2590;overflow:hidden}.pdf-page-dialog::backdrop{background:#102b25a8;backdrop-filter:blur(3px)}.pdf-page-dialog form{padding:0}.pdf-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.35rem 1.4rem 1.1rem;background:linear-gradient(135deg,#f7f0df,#fffdfa);border-bottom:1px solid #e8dcc5}.pdf-dialog-head .eyebrow{margin:0 0 .2rem;color:#9a7022}.pdf-dialog-head h2{margin:.1rem 0;color:var(--green);font-family:Georgia,serif;font-size:1.55rem}.pdf-dialog-head p:last-child{margin:.35rem 0 0;color:var(--muted);font-size:.9rem}.dialog-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #dfd5c4;border-radius:50%;background:#fff;color:var(--muted);font-size:1.5rem;line-height:1;cursor:pointer}.dialog-close:hover{color:var(--green);border-color:var(--gold)}.pdf-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1.4rem}.pdf-selection-bar>strong{padding:.28rem .55rem;border-radius:999px;background:#e4f0e9;color:var(--green);font-size:.75rem}.pdf-select-all{display:flex;align-items:center;gap:.55rem;font-weight:800}.pdf-page-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;max-height:47vh;padding:0 1.4rem;overflow:auto}.pdf-page-list label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;min-height:88px;padding:.75rem;border:1px solid #e2d9ca;border-radius:14px;background:#faf7f0;cursor:pointer;transition:.16s ease}.pdf-page-list label:hover{border-color:#b99a59;transform:translateY(-1px)}.pdf-page-list label:has(input:checked){border-color:#78a18e;background:#edf5f1;box-shadow:0 0 0 1px #78a18e}.pdf-page-list input{position:absolute;opacity:0;pointer-events:none}.pdf-select-all input{width:19px;height:19px;accent-color:var(--green)}.pdf-page-number{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e9e1d2;color:var(--green);font-family:Georgia,serif;font-size:1.05rem;font-weight:850}.pdf-page-list label:has(input:checked) .pdf-page-number{background:var(--green);color:#fff}.pdf-page-copy{display:grid;gap:.12rem;min-width:0}.pdf-page-copy strong{color:var(--green);font-size:.88rem}.pdf-page-copy small{color:var(--muted);font-size:.75rem;line-height:1.25}.pdf-page-preview{width:max-content;margin-top:.22rem;color:#8b641d;font-size:.74rem;font-weight:800;text-decoration:none}.pdf-page-preview:hover{text-decoration:underline}.pdf-page-check{display:grid;place-items:center;width:23px;height:23px;border:1px solid #cfc5b5;border-radius:50%;color:transparent;font-size:.75rem;font-weight:900}.pdf-page-list label:has(input:checked) .pdf-page-check{border-color:var(--green);background:var(--green);color:#fff}.dialog-actions{display:flex;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;margin-top:1.1rem;padding:1rem 1.4rem 1.25rem;border-top:1px solid #eee5d7;background:#fff}.dialog-actions .btn{min-height:44px}@media(max-width:620px){.pdf-page-dialog{width:100%;max-width:none;max-height:92svh;margin:auto 0 0;border-radius:22px 22px 0 0}.pdf-dialog-head{padding:1.15rem 1rem .9rem}.pdf-dialog-head h2{font-size:1.35rem}.pdf-selection-bar{padding:.75rem 1rem}.pdf-page-list{grid-template-columns:1fr;padding:0 1rem;max-height:50svh}.dialog-actions{padding:.9rem 1rem calc(.9rem + env(safe-area-inset-bottom))}.dialog-actions .btn{flex:1}}
html.pdf-dialog-open,html.pdf-dialog-open body{height:100%;overflow:hidden;overscroll-behavior:none}.pdf-page-dialog form{display:flex;max-height:88vh;flex-direction:column}.pdf-page-list{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.pdf-page-list label{grid-template-columns:auto minmax(0,1fr) auto;align-content:start;min-width:0}.pdf-page-preview{position:relative;display:block;grid-column:1/-1;width:100%;margin-top:.25rem;overflow:hidden;border:1px solid #d7cbb7;border-radius:10px;background:#fff;box-shadow:0 5px 14px #173f3514;text-decoration:none}.pdf-page-preview img{display:block;width:100%;height:auto;aspect-ratio:842/595;object-fit:contain;background:#fff}.pdf-page-preview>span{position:absolute;right:.45rem;bottom:.4rem;padding:.25rem .5rem;border-radius:999px;background:#173f35e8;color:#fff;font-size:.68rem;font-weight:850}.pdf-page-preview:hover{text-decoration:none;box-shadow:0 7px 18px #173f3526}@media(max-width:620px){.pdf-page-dialog{width:100vw;max-height:92vh;max-height:92svh}.pdf-page-dialog form{max-height:92vh;max-height:92svh}.pdf-dialog-head>div{min-width:0}.pdf-dialog-head h2,.pdf-dialog-head p{overflow-wrap:anywhere}.pdf-page-list{max-height:none}.pdf-page-preview img{max-height:none}.pdf-selection-bar{flex-wrap:wrap}.pdf-selection-bar>strong{white-space:nowrap}}
.quota-search-actions{align-items:flex-start}.license-search-wrap{position:relative;flex:1;min-width:min(100%,320px)}.license-search-wrap>input{width:100%}.search-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:30;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.search-suggestions a{display:block;padding:.72rem .85rem;text-decoration:none;border-bottom:1px solid #ebe4d7}.search-suggestions a:last-child{border-bottom:0}.search-suggestions a:hover,.search-suggestions a:focus{background:#e6ddcc;color:var(--green)}.search-result-count{display:block;padding:.25rem .15rem 0;color:var(--muted)}.advance-manager{margin-top:1.2rem}.advance-manager>summary{width:max-content;list-style:none}.advance-manager>summary::-webkit-details-marker{display:none}.advance-manager[open]>summary{margin-bottom:1rem}.advance-create{padding-bottom:1.2rem;border-bottom:1px solid var(--line)}.advance-list{display:grid;gap:1rem;margin-top:1rem}.advance-item{padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fff}.advance-heading{display:flex;justify-content:space-between;gap:1rem}.advance-heading h3,.advance-heading p{margin:.15rem 0}.advance-numbers{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.advance-numbers span{padding:.5rem .65rem;border-radius:9px;background:var(--ivory);font-size:.82rem}.advance-item>details{margin:.7rem 0}.advance-item>details>summary{cursor:pointer;color:var(--green);font-weight:800}.advance-item>details[open]>summary{margin-bottom:.7rem}.refund-history{margin:.8rem 0;padding:.8rem;border-radius:10px;background:var(--ivory)}.refund-history>div{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.5rem 0;border-bottom:1px solid var(--line)}.refund-history>div:last-child{border-bottom:0}
@media print{.page-informes{font-size:12px}.page-informes .report-head h1{font-size:23px}.page-informes .report-section h2{font-size:18px}.page-informes .report-table{font-size:11.5px}.page-informes .report-table th,.page-informes .report-table td{padding:3mm 2.5mm}.page-informes .license-report-table{font-size:9.2px}.page-informes .license-report-table th,.page-informes .license-report-table td{padding:1.75mm .9mm}.page-informes .report-section:nth-of-type(2),.page-informes .report-section:nth-of-type(3){break-inside:avoid}}
@media(max-width:820px){.topbar{align-items:center}.brand img{height:55px}.nav{max-width:calc(100vw - 88px)}main{padding:1rem .75rem 5.5rem}.desktop-table{display:none}.license-cards{display:block}.split{grid-template-columns:1fr}form.grid-form{grid-template-columns:1fr}.field.full{grid-column:auto}.stats{grid-template-columns:repeat(2,1fr)}.actions .btn{flex:1}.quota-search-actions{display:grid;grid-template-columns:1fr}.license-search-wrap{width:100%;min-width:0}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.home-actions .btn{width:100%;min-height:64px;padding:.65rem;flex-direction:column;text-align:center}.home-actions .btn span{font-size:1.25rem;line-height:1}.card{border-radius:15px}.page-title{font-size:2rem}.contribution-grid{grid-template-columns:1fr}.report-table{min-width:720px}.profile-stats{grid-template-columns:1fr}.person-report-head{align-items:flex-start}.person-report-head img{width:74px}.person-report-head h1{font-size:1.5rem}.profile-months{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-table{min-width:900px}.advance-heading,.refund-history>div{align-items:stretch;flex-direction:column}.advance-numbers{justify-content:flex-start}}
@media print{*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.app-header,.actions,.fab,.no-print,.footer{display:none!important}body{background:white;font-size:10px;color:#111}main{max-width:none;padding:0 0 9mm}.card{box-shadow:none;break-inside:avoid}.print-only{display:block}.desktop-table{display:block!important}.license-cards{display:none}.report-head{padding:0 0 4mm}.report-head img{width:20mm;max-height:21mm}.report-head h1{font-size:20px}.report-section{break-inside:auto;margin:5mm 0}.report-section h2{font-size:15px;break-after:avoid}.table-wrap{overflow:visible;border-radius:0}.report-table,.license-report-table{min-width:0;width:100%}th,td{position:static!important;padding:2mm;border-color:#aaa}.report-table{font-size:9.5px}.license-report-page{break-before:page;margin:0}.license-report-table{font-size:8.2px;table-layout:fixed}.license-report-table th,.license-report-table td{padding:1.45mm .9mm;vertical-align:middle}.license-report-table th:nth-child(1){width:5%}.license-report-table th:nth-child(2){width:20%}.license-report-table th:nth-last-child(3){width:10%}.license-report-table th:nth-last-child(-n+2){width:4%}.license-report-table tr{break-inside:avoid}.page-informes .license-report-table{font-size:7.2px;line-height:1}.page-informes .license-report-table th,.page-informes .license-report-table td{padding:.55mm .45mm}.page-informes .report-status-svg{height:17px}.page-informes .license-report-page h2{font-size:13px;margin:0 0 2mm}.contribution-grid{grid-template-columns:repeat(3,1fr)}.contribution-grid>div{break-inside:avoid;padding:1.7mm}.pending-box,.advances-report{break-inside:avoid}.report-footer{display:block;position:fixed;bottom:0;left:0;right:0;border-top:1px solid #bbb;padding-top:2mm;text-align:center;color:#555;font-size:7px}.page-licencia .person-report{page:individual}.page-licencia .person-report .report-head{break-after:avoid}.page-licencia .profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;margin:4mm 0}.page-licencia .profile-stats .card{padding:3mm;border-radius:3mm}.page-licencia .profile-months{display:grid;grid-template-columns:repeat(4,1fr);gap:2mm}.page-licencia .month{min-width:0;min-height:15mm;padding:2mm}.page-licencia .receipt-table{font-size:9px;table-layout:auto}.page-licencia .individual-footer{display:block}.page-licencia .legend{font-size:9px}@page{size:A4 landscape;margin:10mm 10mm 14mm}@page individual{size:A4 portrait;margin:13mm 12mm 14mm}}

/* Miniaturas compactas con tamaño estable en todas las pantallas. */
.pdf-page-preview{height:clamp(88px,12vw,118px)}
.pdf-page-preview img{display:block;width:100%;height:100%;max-height:118px;aspect-ratio:auto;object-fit:cover;object-position:top;background:#fff}
@media(max-width:620px){.pdf-page-preview{height:96px}.pdf-page-preview img{height:96px;max-height:96px}}

/* Vista previa bajo demanda: evita imágenes incrustadas incompatibles en algunos móviles. */
.pdf-page-preview{display:inline-flex!important;grid-column:2;width:max-content!important;height:auto!important;margin-top:.3rem!important;overflow:visible!important;border:0!important;border-radius:9px!important;background:var(--green)!important;box-shadow:none!important}
.pdf-page-preview img{display:none!important}
.pdf-page-preview>span{position:static!important;display:inline-block;padding:.42rem .7rem!important;border-radius:9px!important;background:var(--green)!important;color:#fff!important;font-size:0!important;line-height:1.2}
.pdf-page-preview>span::after{content:"Vista previa";font-size:.74rem;font-weight:850}

/* Centro de correcciones */
.manage-record{min-width:180px}.manage-record>summary,.payment-editor>summary{cursor:pointer;list-style:none}.manage-record>summary::-webkit-details-marker,.payment-editor>summary::-webkit-details-marker{display:none}.manage-record[open],.payment-editor[open]{position:relative;z-index:3}.manage-record .grid-form,.payment-editor .grid-form,.double-confirm{margin-top:12px;padding:16px;border:1px solid #d8ddd9;border-radius:14px;background:#fff;min-width:min(620px,82vw)}.compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}.double-confirm{display:grid;gap:10px;border-color:#e6c6c8;background:#fff9f9}.double-confirm label:not(.check){display:grid;gap:6px}.double-confirm input{max-width:100%;box-sizing:border-box}.voided-row{opacity:.68}.voided-row:hover{opacity:1}.correction-center{margin-top:18px}.payment-editor{border:1px solid #d8ddd9;border-radius:12px;padding:12px;margin-top:10px}.payment-editor>summary{font-weight:700}.receipt-correction{display:none}
@media(max-width:700px){.manage-record .grid-form,.payment-editor .grid-form,.double-confirm{min-width:min(78vw,420px);grid-template-columns:1fr}.compact-form{grid-template-columns:1fr}.manage-record[open]{position:static}.manage-record .month-picker,.payment-editor .month-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
