/* Salary-statement report style derived from the legacy DICAB PDF appearance.
   Scoped: does not modify original light theme or navigation. */
.dicab-report-export .panel-head{display:flex;gap:12px;align-items:center;justify-content:space-between}
.dicabon-report-dialog{width:min(1020px,96vw)!important;max-width:1020px!important;max-height:92vh;overflow-y:auto;padding:10px!important;background:#f1f5fb!important}
.report-controls{position:sticky;top:-10px;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;background:#fff;border-radius:10px;border:1px solid #cbd5e1}
.report-controls strong{margin-right:auto;color:#102f52}.report-preview-area{padding:10px 0;overflow:auto}
.dicabon-report-sheet{max-width:860px;margin:0 auto;background:#fff;color:#303741;border:1px solid #cad3df;font-family:Arial,'Segoe UI',sans-serif;font-size:12px;line-height:1.43;box-shadow:0 4px 16px rgba(16,47,82,.09)}
.dicabon-report-sheet *{box-sizing:border-box}.report-heading{background:#102f52;color:#fff;padding:26px 30px 22px;min-height:118px}
.report-brand{font-weight:800;letter-spacing:1px;font-size:26px}.report-title{font-size:14px;opacity:.98;margin-top:3px}.report-period{color:#d2e5f7;margin-top:7px;font-size:12px}
.report-body{padding:22px 30px}.report-identity{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;border-bottom:2px solid #dbe2ea;padding-bottom:18px;margin-bottom:18px}
.report-identity>div{min-width:0;overflow-wrap:anywhere}.report-identity span{display:block;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.06em}.report-identity strong{display:block;font-size:13px;margin-top:3px}
.report-section{margin:0 0 20px;break-inside:auto}.report-section h3{margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid #cbd5e1;color:#102f52;font-size:15px;break-after:avoid}
.report-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.report-total{background:#f4f7fa;border:1px solid #dde4ec;padding:11px 12px;border-radius:6px;min-width:0;break-inside:avoid}
.report-total span{display:block;font-size:10px;color:#475569}.report-total strong{display:block;margin-top:4px;font-size:16px;color:#102f52;overflow-wrap:anywhere}
.report-total.report-expense strong{color:#ae2d2d}.report-total.report-salary{background:#f0fbf5;border-color:#b2d8c4}.report-total.report-salary strong{color:#126444}
.report-total.report-salary strong:not(:first-child){font-weight:800}.report-total.report-salary.report-negative strong{color:#a52727}
.report-table-scroll{overflow-x:auto}.dicabon-report-sheet table{width:100%;border-collapse:collapse;font-size:11px}.dicabon-report-sheet th{background:#e8eff6;color:#102f52;text-align:left;white-space:nowrap}.dicabon-report-sheet td,.dicabon-report-sheet th{padding:7px 6px;border-bottom:1px solid #dbe2ea;vertical-align:top;overflow-wrap:anywhere}
.dicabon-report-sheet tbody tr:nth-child(even){background:#f7f9fc}.dicabon-report-sheet tr{break-inside:avoid}.dicabon-report-sheet .align-right{text-align:right;white-space:nowrap}.report-empty{color:#64748b;font-style:italic}.report-footer{padding-top:12px;border-top:1px solid #d3dae3;color:#56667a;font-size:10px}.report-footer>div{margin-top:7px;color:#8292a4}
#dicabon-print-root{display:none}
@media(max-width:560px){.dicabon-report-dialog{width:100%!important;max-height:95vh}.report-controls strong{flex:1 0 100%}.report-body{padding:16px}.report-heading{padding:20px 16px}.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-identity{grid-template-columns:1fr 1fr}.dicabon-report-sheet table{min-width:680px}}
@media print{ @page{size:A4 portrait;margin:12mm} html,body{background:#fff!important;overflow:visible!important}body> *:not(#dicabon-print-root){display:none!important}#dicabon-print-root{display:block!important;position:static!important;width:100%!important}#dicabon-print-root .dicabon-report-sheet{max-width:none;border:0;box-shadow:none;font-size:10px;margin:0}#dicabon-print-root .report-heading{print-color-adjust:exact;-webkit-print-color-adjust:exact}#dicabon-print-root .report-body{padding:16px 20px}#dicabon-print-root .report-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#dicabon-print-root .report-total,#dicabon-print-root th{print-color-adjust:exact;-webkit-print-color-adjust:exact}#dicabon-print-root .report-table-scroll{overflow:visible}#dicabon-print-root table{font-size:9px}#dicabon-print-root .report-heading{padding:22px 20px}#dicabon-print-root .report-section{margin-bottom:15px}}
/* Alpha 31 preview sizing: larger on-screen statement (~12-15%), same A4 print. */
@media screen and (min-width:561px){
  .dicabon-report-dialog{width:min(1170px,98vw)!important;max-width:1170px!important;max-height:94dvh!important}
  .dicabon-report-sheet{max-width:970px;font-size:13px}
  .dicabon-report-sheet .report-heading{padding:29px 34px 24px;min-height:128px}
  .dicabon-report-sheet .report-brand{font-size:28px}
  .dicabon-report-sheet .report-title{font-size:15px}
  .dicabon-report-sheet .report-period{font-size:13px}
  .dicabon-report-sheet .report-body{padding:25px 34px}
  .dicabon-report-sheet .report-identity strong{font-size:14px}
  .dicabon-report-sheet .report-section h3{font-size:16px}
  .dicabon-report-sheet .report-total strong{font-size:18px}
  .dicabon-report-sheet table{font-size:12px}
  .dicabon-report-sheet td,.dicabon-report-sheet th{padding:8px 7px}
}

.report-company-identity{display:flex;gap:14px;align-items:center;min-width:0}.report-company-identity .report-brand{min-width:0;overflow-wrap:anywhere}.report-company-logo{width:68px;height:68px;object-fit:contain;flex:none;border-radius:7px;background:white;padding:4px}@media print{.report-company-logo{width:58px;height:58px}}

/* Alpha 43: One export dropdown everywhere. */
.dicabon-export-dropdown{display:inline-block;position:relative;flex:none;max-width:100%;z-index:5}
.dicabon-export-dropdown summary{list-style:none;cursor:pointer;user-select:none;white-space:nowrap;display:inline-flex;align-items:center;min-height:44px}
.dicabon-export-dropdown summary::-webkit-details-marker{display:none}
.dicabon-export-dropdown[open] summary{outline:2px solid #295cc3;outline-offset:2px}
.dicabon-export-dropdown[open]{z-index:100}
.dicabon-export-options{position:absolute;left:0;right:auto;top:calc(100% + 6px);z-index:50;box-sizing:border-box;width:max-content;min-width:min(215px,calc(100vw - 24px));max-width:calc(100vw - 24px);background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 8px 24px rgba(16,47,82,.18);padding:8px;display:grid;gap:5px}
.dicabon-export-options .btn{width:100%;text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere}
.report-controls .dicabon-export-dropdown{margin-left:auto}
@media(max-width:560px){.report-controls .dicabon-export-dropdown{margin-left:0}}
@media print{.dicabon-export-dropdown{display:none!important}}
