:root{--report-ink:#262522;--report-muted:#696a66;--report-line:#e7e4df;--report-orange:#e66e00;--report-paper:#fff;--report-soft:#f7f5f1}
.report-context,.ar-context{color:var(--report-muted);font-size:13px;line-height:1.55;margin:8px 0 0}
.report-context strong,.ar-context strong{color:var(--report-ink)}
.report-header,.ar-head{border-bottom:2px solid var(--report-orange);padding-bottom:18px;margin-bottom:20px}
.report-header h1,.ar-head h1{color:var(--report-ink);letter-spacing:-.025em}
.report-summary,.report-summary-grid,.summary-cards{gap:12px}
.report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));margin:16px 0}
.report-summary>span,.summary-cards>p{display:flex;flex-direction:column;gap:6px;background:var(--report-soft);border:1px solid var(--report-line);border-radius:12px;padding:14px;color:var(--report-muted);font-size:12px}
.report-summary b,.summary-cards b{color:var(--report-ink);font-size:18px;font-variant-numeric:tabular-nums}
.report-summary .cash-balance{background:#fff2e5;border-color:#f0c99f;color:#75410f}
.report-table,.attendance-report-table,.ar-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.report-table thead th,.attendance-report-table th,.ar-table th{background:#343431!important;color:white!important;border-bottom:2px solid var(--report-orange)!important;font-size:10px;letter-spacing:.06em;text-transform:uppercase}
.report-table th,.report-table td,.attendance-report-table th,.attendance-report-table td,.ar-table th,.ar-table td{padding:10px 11px;border-bottom:1px solid var(--report-line);vertical-align:top}
.report-table tbody tr:nth-child(even),.attendance-report-table tr:nth-child(even),.ar-table tbody tr:nth-child(even){background:#faf9f7}
.report-integrity{border:1px solid #ead9c4;border-left:4px solid var(--report-orange);border-radius:12px;background:#fffaf4;padding:16px 18px;margin:18px 0;color:var(--report-ink)}
.report-integrity h2,.report-integrity h3{margin:0 0 8px;font-size:16px}
.report-integrity p,.report-integrity li{color:var(--report-muted);font-size:12px;line-height:1.6}
.report-integrity-ok{border-left-color:#3e8a62;background:#f3faf5}
.report-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--report-line);padding-top:12px;margin-top:18px;color:var(--report-muted);font-size:10px}
.report-actions,.ar-actions{display:flex;gap:8px;flex-wrap:wrap}
.diem-report-heading{align-items:center;justify-content:space-between}
.report-warning{color:#9a4b06;background:#fff3e5;border-radius:9px;padding:10px 12px}
.report-detail>h2{margin:0 0 12px;color:var(--report-ink);font-size:17px;letter-spacing:-.015em}
.report-table td small{display:block;margin-top:3px;color:var(--report-muted);font-size:10px}
.report-table .report-amount{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.report-integrity ul{padding-left:20px}
.report-integrity li+li{margin-top:4px}
@media(max-width:700px){.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.report-footer{display:block}.report-footer>*{display:block;margin:4px 0}}
@page{size:A4 landscape;margin:11mm}
@media print{
 html,body{background:#fff!important;color:#222!important;font-size:10pt!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .side,.main>header,.module-search,.nav-backdrop,.report-actions,.ar-actions,.report-filters,.diem-filters,.cash-report-box,.login-foot,.sidebar-bottom,.header-quick,.no-print,button,form,.screen-only{display:none!important}
 .app,.main,.content,.attendance-report,.cash-report,.ar-wrap{display:block!important;width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}
 .content{padding-top:0!important}.heading{margin:0 0 12px!important}.heading h1{font-size:24pt!important}
 .panel,.report-integrity,.summary-cards>p{box-shadow:none!important;break-inside:avoid;page-break-inside:avoid}
 .panel{border:0!important;padding:0!important;margin:0 0 14px!important;background:#fff!important}
 table{width:100%!important;border-collapse:collapse!important;font-size:7.5pt!important;break-inside:auto}
 thead{display:table-header-group}tr{break-inside:avoid;page-break-inside:avoid}
 th,td{padding:5px 6px!important;border-bottom:1px solid #d8d6d2!important}
 a{color:inherit!important;text-decoration:none!important}
 .report-header,.ar-head{padding-bottom:10px;margin-bottom:12px}.report-header h1,.ar-head h1{font-size:22pt!important}
 .report-summary,.summary-cards{grid-template-columns:repeat(4,1fr)!important;display:grid!important;gap:6px!important}
 .report-summary>span,.summary-cards>p{padding:7px!important;border-radius:4px!important}
 .report-summary b,.summary-cards b{font-size:12pt!important}
 .report-footer{display:flex!important;position:static!important;bottom:auto!important;left:auto!important;right:auto!important;font-size:8pt;border-top:1px solid #bbb;padding-top:4px;margin-top:10px}
 .report-table th,.attendance-report-table th,.ar-table th{background:#343431!important;color:white!important}
 .report-integrity-ok{background:#f3faf5!important}
 .tablewrap{overflow:visible!important}
}


/* Saldo neto consolidado: verde cuando hay caja disponible y rojo cuando existe reembolso o saldo negativo. */
.report-summary-net.is-available { border: 1px solid #9bc9a8 !important; border-left: 4px solid #348153 !important; background: #eff8f1 !important; color: #245e37 !important; font-weight: 400 !important; }
.report-summary-net.is-available b { color: #245e37 !important; font-weight: 600 !important; }
.report-summary-net.is-reimbursement { border: 1px solid #e3aaa3 !important; border-left: 4px solid #bd4439 !important; background: #fff1ef !important; color: #8c2e27 !important; font-weight: 400 !important; }
.report-summary-net.is-reimbursement b { color: #8c2e27 !important; font-weight: 600 !important; }
.report-summary-net.is-balanced { border: 1px solid var(--report-line) !important; border-left: 4px solid #aaa !important; background: var(--report-soft) !important; color: var(--report-muted) !important; font-weight: 400 !important; }
.report-summary-net.is-balanced b { font-weight: 600 !important; }
.report-summary > span:not(.report-summary-net) { font-weight: 400 !important; }
.report-summary > span:not(.report-summary-net) b { font-weight: 600 !important; }
