.report-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.report-orientation-control{display:flex;align-items:center;gap:6px;color:#5f706b;font-size:11px;white-space:nowrap}
.report-orientation-control select{width:auto;min-width:112px;padding:10px 30px 10px 11px}
.catalogue-vendor{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.catalogue-vendor span{padding:3px 7px;border-radius:10px;background:#e8f2ed;color:#176047;font-size:9px;white-space:nowrap}
.ageing-show-tags{border:1px solid #b9cfc5;background:#eff7f3;color:#145d45;border-radius:7px;padding:6px 9px;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}
.ageing-tag-modal{position:fixed;inset:0;z-index:80;background:rgba(6,25,20,.68);padding:24px;overflow:auto}
.ageing-tag-card{width:min(1380px,100%);margin:auto;background:#fff;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.3);overflow:hidden}
.ageing-tag-head{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #dce7e2}
.ageing-tag-head small{color:#59716a}.ageing-tag-head h3{margin:3px 0;font-size:18px}.ageing-tag-head p{margin:0;color:#60736d;font-size:11px}
.ageing-tag-head button{border:0;background:#edf3f0;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}
.ageing-tag-actions{display:flex;justify-content:flex-end;align-items:end;gap:9px;padding:10px 20px;background:#f6faf8}
.ageing-tag-actions label{display:grid;gap:3px;font-size:10px;color:#60736d}.ageing-tag-actions select{min-width:125px;padding:9px}
.ageing-tag-card .table-wrap{max-height:68vh}.ageing-tag-card table{min-width:1120px}.ageing-tag-card th,.ageing-tag-card td{padding:9px 10px;font-size:10px}

@media(max-width:540px){
  .section-head .report-actions{width:100%;justify-content:flex-start}
  .report-orientation-control{flex:1}
  .report-orientation-control select{min-width:0}
  .ageing-tag-modal{padding:8px}.ageing-tag-actions{justify-content:flex-start}.ageing-tag-card .table-wrap{max-height:72vh}
}

@media print{
  body.report-printing{background:#fff!important;color:#111!important}
  body.report-printing .sidebar,
  body.report-printing header,
  body.report-printing .toast,
  body.report-printing .image-lightbox,
  body.report-printing .scanner-modal,
  body.report-printing .crm-occasion-popup,
  body.report-printing .ticket-modal,
  body.report-printing .ageing-tag-modal{display:none!important}
  body.report-printing main{margin:0!important;min-height:0!important}
  body.report-printing main>.page{display:none!important}
  body.report-printing main>.page.print-target{display:block!important;padding:0!important}
  body.report-printing .print-target>.report-filter,
  body.report-printing .print-target>.report-branch-bar,
  body.report-printing .print-target>.tag-history-search,
  body.report-printing .print-target>.section-head .report-actions,
  body.report-printing .print-target>.section-head>button,
  body.report-printing .print-target button{display:none!important}
  body.report-printing .print-target .section-head{margin:0 0 8px!important}
  body.report-printing .print-target .section-head h2{font:700 18px Arial,sans-serif!important}
  body.report-printing .print-target .section-head p{font:10px Arial,sans-serif!important;margin-top:3px!important}
  body.report-printing .print-target .panel,
  body.report-printing .print-target .stats article{box-shadow:none!important;break-inside:avoid}
  body.report-printing .print-target .table-wrap{overflow:visible!important}
  body.report-printing .print-target table{width:100%!important;min-width:0!important}
  body.report-printing .print-target th,
  body.report-printing .print-target td{position:static!important;white-space:normal!important;padding:4px 5px!important;font-size:8px!important;box-shadow:none!important}
  body.report-printing .print-target .stats{gap:6px!important;margin:7px 0!important;grid-template-columns:repeat(4,1fr)!important}
  body.report-printing .print-target .stats article{padding:7px!important;border-radius:4px!important}
  body.report-printing .print-target .stats strong{font-size:12px!important}
}
