.cash-tiles{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:12px 0;color:#e2f1e8}.cash-tiles>div{background:#2b5358;padding:8px 7px;border-radius:6px;min-width:0}.cash-tiles small{display:block;font-size:9px;line-height:1.4;color:#c1d7d3}.cash-tiles strong{display:block;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.ops-actions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.cash-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cash-cards article{border:1px solid var(--line);padding:20px;border-radius:10px}.cash-cards p{font-size:13px;line-height:1.7}.finance-fields{padding:13px;background:#f1f6f2;border:1px solid #d9e5da;border-radius:8px}.finance-fields .checkbox-label{display:flex;gap:9px;align-items:center}.print-only{display:none}#daily-content{font-size:12px;line-height:1.6}#daily-content .table-wrap{max-height:none}#daily-content table{font-size:11px}#reports h3{margin:22px 0 12px}#ops-dialog{max-width:760px}.sidebar .nav-button{padding-top:8px;padding-bottom:8px}.sidebar .brand{margin-bottom:18px}#ops-form>div.form-grid>p{line-height:1.6}.report-filters button{white-space:nowrap}
@media(max-width:850px){.cash-tiles{max-width:360px}.cash-cards{grid-template-columns:1fr}}
@media print{@page{size:A4 portrait;margin:8mm}body{background:white;font-size:10pt}.sidebar,.topbar,.demo-banner,footer,.report-filters,.ops-actions,.report-heading,#toast,dialog,button,.patient-comment-form .small-button{display:none!important}main{margin:0;padding:0;min-width:0}.patient-panel{display:none!important}.workspace{display:block}.detail,.reports{padding:0;border:0;width:100%;overflow:visible}.patient-header{margin-top:0}.table-wrap,.history{overflow:visible!important;max-height:none!important}table{width:100%;font-size:9pt}th,td{padding:5px 4px!important;white-space:normal!important}thead{display:table-header-group}tr{break-inside:avoid}.print-only{display:block!important}.print-daily .workspace,.print-daily #reports>.subtle{display:none!important}.print-daily #reports{display:block!important}.print-daily #daily-sheet{display:block}.patient-comment-form textarea{border:0;resize:none}.cash-cards{break-inside:avoid}}

#daily-content table{table-layout:fixed;width:100%}#daily-content td,#daily-content th{white-space:normal;overflow-wrap:anywhere;padding:9px 5px;vertical-align:top}#daily-content .table-wrap{overflow:visible}

/* Compact printed grid: 3 mm between text baselines and 3 mm of row padding. */
@media print {
  table, #daily-content table {
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
    font-size:8pt!important;
  }
  th, td, #daily-content th, #daily-content td {
    border:0.5pt solid #666!important;
    padding:1.5mm 0.6mm!important;
    line-height:3mm!important;
    font-size:8pt!important;
    letter-spacing:0!important;
    text-transform:none!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    vertical-align:top!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  thead {display:table-header-group!important;}
  tr {break-inside:avoid;page-break-inside:avoid;}
  .table-wrap, #daily-content, #daily-sheet {height:auto!important;max-height:none!important;overflow:visible!important;}
  .history th:last-child, .history td:last-child {display:none!important;}

}

.daily-section-divider{border:0;border-top:1px solid #526660;margin:5mm 0 3mm}
@media print {
 .print-daily .daily-screen-details {display:block!important;}
 .daily-section-divider {border-top:0.75pt solid #333!important;margin:4mm 0 2mm!important;}
}

/* Print the same complete movement rows shown on screen, without grouping. */
@media print {
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(1){width:6%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(2){width:5%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(3){width:12%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(4){width:12%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(5){width:8%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(6){width:12%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(7){width:3%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(8){width:10%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(9){width:10%;}
 #daily-content .daily-screen-details > .table-wrap:first-of-type th:nth-child(10){width:22%;}
 #daily-content th,#daily-content td {font-size:7pt!important;font-weight:700!important;padding:1.5mm .45mm!important;line-height:3mm!important;}
 #daily-content h3{margin:3mm 0 1.5mm;font-size:10pt;}
}

.currency-print{display:none}
@media print{.currency-full{display:none!important}.currency-print{display:inline!important}}

@media print{
 #daily-content .daily-screen-details>.table-wrap:first-of-type td:nth-child(8),
 #daily-content .daily-screen-details>.table-wrap:first-of-type td:nth-child(9){white-space:nowrap!important;font-variant-numeric:tabular-nums;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(1){width:7%;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(2){width:5%;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(3){width:58%;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(4){width:10%;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(5),
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) th:nth-child(6){width:10%;}
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) td:nth-child(5),
 #daily-content .daily-screen-details>.table-wrap:nth-of-type(2) td:nth-child(6){white-space:nowrap!important;font-variant-numeric:tabular-nums;}
}

.daily-cash-total{border-top:2px solid #526660;margin-top:18px;padding-top:8px;break-inside:avoid}
.daily-cash-total p{font-size:14px;margin:8px 0}
@media print{
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(1){width:6%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(2){width:5%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(3){width:15%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(4){width:15%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(5){width:9%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(6){width:4%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(7),.daily-screen-details>.table-wrap:first-of-type th:nth-child(8){width:11%!important}
 .daily-screen-details>.table-wrap:first-of-type th:nth-child(9){width:24%!important}
 .daily-cash-total{break-inside:avoid;page-break-inside:avoid}
}
