.report-section{margin-top:16px}
.report-controls{display:flex;align-items:flex-end;gap:10px;margin:6px 0 14px}
.report-controls label{min-width:190px}
#monthlyReportSummary{grid-template-columns:repeat(4,minmax(140px,1fr))}
#monthlyReportNote{margin-top:12px;line-height:1.7}
#monthlyReportStatus{margin:8px 0}
#channelRulesList{margin-top:14px}
#channelAdminPanel .form-grid{align-items:end}
#channelAdminPanel .form-grid button{justify-self:start}
.daily-report-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.daily-report-controls label{min-width:175px}
.daily-report-meta{display:flex;justify-content:space-between;gap:12px;margin:8px 0;color:#475569}
.daily-report-summary{grid-template-columns:repeat(3,minmax(130px,1fr));margin:12px 0}
.daily-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.daily-report-card{min-width:0;margin:0}
.daily-report-card-wide{grid-column:1/-1}
.daily-report-card h3{margin-top:0}
.daily-report-list{list-style:none;margin:0;padding:0}
.daily-report-list li{display:grid;gap:4px;padding:10px 2px;border-bottom:1px solid #e2e8f0;line-height:1.55}
.daily-report-list li:last-child{border-bottom:0}
.daily-report-list small{color:#475569}
.daily-report-list button{justify-self:start;padding:7px 11px}
.lodging-summary{margin:12px 0;background:#edf6f4;line-height:1.7}
.lodging-summary h3{margin:0 0 8px}
.lodging-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.lodging-summary-grid>div{display:grid;gap:5px;padding:10px;background:#fff;border:1px solid #d8e8e5;border-radius:9px}
.lodging-summary-grid b,.balance-after-notice b{direction:ltr;unicode-bidi:isolate;color:#174c50;font-variant-numeric:tabular-nums}
.balance-after-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.balance-after-notice small{flex-basis:100%}
.unit-code{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.daily-empty{margin:4px 0}
.report-print-header,.report-print-footer{display:none}
.report-empty-note{margin:10px 0;padding:12px 14px;border:1px solid #e4c991;border-radius:10px;background:#fff9ed;color:#6e4b12;line-height:1.7}
.financial-summary-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0}
.financial-summary-head h3{margin:0 0 4px}
.financial-summary-head p{margin:0;color:#64748b}
.financial-summary-cards{grid-template-columns:repeat(4,minmax(150px,1fr));margin:12px 0}
.financial-summary-cards>div{min-width:0}
.financial-summary-cards span{line-height:1.55}
.financial-summary-cards b{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.financial-summary-cards .finance-deposit{border-right:3px solid #32746b}
.financial-status-breakdown{margin-top:12px}
.financial-status-breakdown h4{margin:0 0 10px}
.status-count-grid{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr));gap:8px}
.status-count-grid>div{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #e4e7eb;border-radius:9px;background:#fff}
.status-count-grid b{font-variant-numeric:tabular-nums}
#activityPanel td{max-width:260px;white-space:normal;overflow-wrap:anywhere;line-height:1.55}
#activityPanel td:first-child{min-width:120px;white-space:nowrap}
@media(max-width:650px){
  .report-controls{align-items:stretch;flex-direction:column}
  .report-controls label,.report-controls button{width:100%}
  #monthlyReportSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .daily-report-controls{align-items:stretch;flex-direction:column;width:100%}
  .daily-report-controls label,.daily-report-controls button{width:100%}
  .daily-report-meta{align-items:flex-start;flex-direction:column}
  .daily-report-grid{grid-template-columns:1fr}
  .daily-report-card-wide{grid-column:auto}
  .daily-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lodging-summary-grid{grid-template-columns:1fr}
  .financial-summary-head{align-items:stretch;flex-direction:column}
  .financial-summary-head button{width:100%}
  .financial-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .status-count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@page{size:A4 portrait;margin:13mm 12mm 20mm}
@media print{
  html,body{background:#fff!important;color:#17252c!important;font-family:Tahoma,Arial,sans-serif!important;font-size:9.5pt!important;line-height:1.5!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing-daily-report header,body.printing-marketing-report header,body.printing-customer-contacts header,
  body.printing-monthly-report header,body.printing-financial-summary header,
  body.printing-daily-report .hero,body.printing-marketing-report .hero,body.printing-customer-contacts .hero,
  body.printing-monthly-report .hero,body.printing-financial-summary .hero,
  body.printing-daily-report .tabs,body.printing-marketing-report .tabs,body.printing-customer-contacts .tabs,
  body.printing-monthly-report .tabs,body.printing-financial-summary .tabs,
  body.printing-daily-report main>*:not(#dailyReportPanel),body.printing-marketing-report main>*:not(#marketingReportPanel),
  body.printing-customer-contacts main>*:not(#customerContactsPanel),
  body.printing-monthly-report main>*:not(#reportsPanel),body.printing-financial-summary main>*:not(#reportsPanel),
  body.printing-daily-report #dailyReportPanel .daily-report-tools,
  body.printing-marketing-report #marketingReportPanel .marketing-report-tools,
  body.printing-customer-contacts #customerContactsPanel .customer-contacts-tools,
  body.printing-monthly-report #reportsPanel>.section-head,
  body.printing-monthly-report #reportsPanel>*:not(#monthlyReportPrintArea),
  body.printing-financial-summary #reportsPanel>.section-head,
  body.printing-financial-summary #reportsPanel>*:not(#financialSummaryPrintArea),
  body.printing-monthly-report #monthlyReportPrintArea .report-controls,
  body.printing-financial-summary #financialSummaryPrintArea button,
  body.printing-daily-report #dailyReportStatus,body.printing-monthly-report #monthlyReportStatus,
  body.printing-financial-summary #financialSummaryStatus{display:none!important}
  body.printing-daily-report #dailyReportPanel,body.printing-marketing-report #marketingReportPanel,
  body.printing-customer-contacts #customerContactsPanel,body.printing-monthly-report #reportsPanel,
  body.printing-financial-summary #reportsPanel{display:block!important;visibility:visible!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  body.printing-monthly-report #monthlyReportPrintArea,body.printing-financial-summary #financialSummaryPrintArea,
  body.printing-marketing-report #marketingReportPrintArea,body.printing-customer-contacts #customerContactsCard{display:block!important;visibility:visible!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  body.printing-daily-report #dailyReportPanel h2,body.printing-marketing-report #marketingReportPanel h2,
  body.printing-customer-contacts #customerContactsCard h2,body.printing-monthly-report #monthlyReportPrintArea h2,
  body.printing-financial-summary #financialSummaryPrintArea h2{font-size:17pt!important;color:#173d46!important}
  body.printing-daily-report #dailyReportPanel h3,body.printing-marketing-report #marketingReportPrintArea h3,
  body.printing-monthly-report #monthlyReportPrintArea h3,body.printing-financial-summary #financialSummaryPrintArea h3{font-size:11pt!important;color:#173d46!important}
  body.printing-daily-report .report-print-header,body.printing-marketing-report .report-print-header,
  body.printing-customer-contacts .report-print-header,body.printing-monthly-report .report-print-header,
  body.printing-financial-summary .report-print-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 10px;margin:0 0 10px;border-bottom:2px solid #b89b61}
  .report-print-brand{display:flex;align-items:center;gap:9px;min-width:0}
  .report-print-brand img{width:42px;height:42px;object-fit:contain}
  .report-print-brand div,.report-print-title{display:grid;gap:2px}
  .report-print-brand strong{font-size:13pt;color:#173d46}
  .report-print-brand span,.report-print-title p{font-size:8.5pt;color:#58676d;margin:0}
  .report-print-title{text-align:left}
  .report-print-title h2{margin:0}
  .report-print-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;position:fixed;bottom:-14mm;left:0;right:0;padding-top:5px;border-top:1px solid #cbd5d1;color:#526167;font-size:7.5pt;background:#fff}
  .report-print-footer:after{content:"صفحة " counter(page) " من " counter(pages);white-space:nowrap}
  body.printing-daily-report .daily-report-meta{display:none!important}
  body.printing-daily-report .daily-report-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0}
  body.printing-daily-report .daily-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.printing-daily-report .daily-report-card{break-inside:avoid;padding:8px!important;border:1px solid #d5dfdf!important;border-radius:7px!important;box-shadow:none!important;background:#fff!important}
  body.printing-daily-report .daily-report-list li{padding:5px 0;break-inside:avoid}
  body.printing-daily-report .daily-report-list button{display:none!important}
  body.printing-marketing-report .marketing-report-grid{grid-template-columns:1fr 1fr;gap:8px}
  body.printing-marketing-report .marketing-report-grid>section{break-inside:avoid;padding:8px;border:1px solid #d5dfdf;border-radius:7px}
  body.printing-marketing-report .marketing-report-grid>section:first-child{grid-column:1/-1}
  body.printing-customer-contacts .customer-contact-table,.report-print-area table{width:100%;border-collapse:collapse;direction:rtl}
  body.printing-customer-contacts th,body.printing-customer-contacts td,
  .report-print-area th,.report-print-area td{padding:7px 8px;border:1px solid #d5dfdf;text-align:right;vertical-align:top}
  body.printing-customer-contacts thead,.report-print-area thead{display:table-header-group}
  body.printing-customer-contacts tr,.report-print-area tr{break-inside:avoid}
  body.printing-customer-contacts th,.report-print-area th{background:#eef3f2!important;color:#173d46;font-weight:700}
  body.printing-customer-contacts .customer-contacts-print-heading{display:none!important}
  body.printing-monthly-report #monthlyReportSummary{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0}
  body.printing-monthly-report #monthlyReportSummary>div,body.printing-financial-summary #financialSummaryCards>div{break-inside:avoid;padding:8px;border:1px solid #d5dfdf;border-radius:7px;background:#f8faf9!important}
  body.printing-monthly-report #monthlyReportNote,body.printing-financial-summary #financialSummaryNote{margin:10px 0;padding:9px;border:1px solid #d5dfdf;border-radius:7px;font-size:8pt;line-height:1.6}
  body.printing-financial-summary #financialSummaryCards{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0}
  body.printing-financial-summary #financialStatusCounts{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.printing-financial-summary .financial-status-breakdown{padding:8px;border:1px solid #d5dfdf;border-radius:7px;break-inside:avoid}
  .report-empty-note{background:#fff9ed!important}
}
