/* Fit content to its container; do not conceal overflowing columns. */
.shell{grid-template-columns:220px minmax(0,1fr)}main,.panel,.card,.closing-layout>*{min-width:0;max-width:100%}main{padding:26px 28px}table{white-space:normal;table-layout:fixed}th,td{overflow-wrap:anywhere;white-space:normal}td.num,th.num{white-space:normal}.table-wrap{overflow:visible}.entry-tabs{flex-wrap:wrap;overflow:visible;gap:6px}.entry-tabs button{flex:1 1 110px;min-width:0;white-space:normal}.report-tabs button{min-width:0;flex:1 1 125px}.heading{flex-wrap:wrap}.card strong{font-size:clamp(20px,1.8vw,28px);overflow-wrap:anywhere}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.report-controls{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin-bottom:22px}.report-controls label{min-width:150px;flex:0 1 230px}.mode-buttons{display:flex;background:#e7edf7;padding:5px;border-radius:9px;gap:5px}.mode-buttons button{background:transparent;color:#58708f;padding:10px 22px}.mode-buttons .selected{background:white;color:#174bb8;box-shadow:0 2px 6px #142f5010}.payment-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.payment-strip>div{display:flex;flex-direction:column;gap:5px;padding:14px 17px;background:#eaf0fa;border-radius:9px;min-width:0}.payment-strip span{font-size:14px;color:#657792}.payment-strip b{overflow-wrap:anywhere}.report-period{padding:14px 20px;border-bottom:1px solid #e9edf4;color:#65758e;font-size:14px}.report-table-wrap{width:100%;max-width:100%}.fit-table{table-layout:fixed;width:100%;white-space:normal;font-size:14px}.fit-table th,.fit-table td{padding:15px 16px;overflow-wrap:anywhere;white-space:normal;vertical-align:middle}.fit-table th:first-child{width:28%}.fit-table td:not(:first-child),.fit-table th:not(:first-child){text-align:right}.fit-table .record-date{display:block;font-size:12px;color:#7d8aa0;margin-top:4px}.detail-button{padding:8px 12px;font-size:14px}.report-pagination{display:flex;align-items:center;justify-content:flex-end;padding:14px;gap:15px}.report-pagination button:disabled{opacity:.4;cursor:default}.closing-dialog{width:min(820px,94vw);max-height:90vh;overflow-y:auto;padding:0}.closing-dialog .panel-head{position:sticky;top:0;background:white;z-index:1}.detail-body{padding:22px}.detail-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-totals>div{display:flex;flex-direction:column;background:#edf3ff;border-radius:7px;padding:12px;overflow-wrap:anywhere}.detail-totals span{font-size:14px;color:#587192}.detail-section{margin-top:24px}.detail-section h3{font-size:16px;margin:0 0 10px}.detail-section dl{margin:0;display:grid;gap:0}.detail-section dl>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #edf1f6;padding:9px 0}.detail-section dt,.detail-section dd{overflow-wrap:anywhere;margin:0;min-width:0}.detail-section dd{text-align:right;font-weight:600}.expense-detail{padding:12px 0;border-bottom:1px solid #e5ebf4}.expense-detail span{display:block;font-size:14px;color:#6a7c94}.expense-detail p{overflow-wrap:anywhere}.notice{overflow-wrap:anywhere}.foot{overflow-wrap:anywhere}.entry-panel{min-height:0}.summary-lines>div{min-width:0}.summary-lines b{white-space:normal;overflow-wrap:anywhere;text-align:right}.closing-meta{flex-wrap:wrap}.closing-meta label{min-width:0}.form{max-width:100%}
.courier-report-panel{margin-top:22px}.courier-report-panel>.panel-head{display:flex;align-items:center;justify-content:space-between}.courier-report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#dce5f2;border-top:1px solid #dce5f2;border-bottom:1px solid #dce5f2}.courier-report-summary>div{padding:15px 18px;background:#f8fbff}.courier-report-summary span{display:block;color:#6c7e98;font-size:13px}.courier-report-summary b{display:block;margin-top:5px;color:#17396b;font-size:20px;font-variant-numeric:tabular-nums}.courier-report-table th,.courier-report-table td{text-align:left!important}.courier-report-table th:nth-child(1){width:18%}.courier-report-table th:nth-child(2){width:14%}.courier-report-table th:nth-child(3){width:9%}.courier-report-table th:nth-child(4){width:17%}.courier-report-table th:nth-child(5){width:7%}.courier-report-table th:nth-child(6){width:11%}.courier-report-table th:nth-child(7){width:12%}.courier-report-table th:nth-child(8){width:12%}.courier-report-table td:nth-child(5),.courier-report-table th:nth-child(5){text-align:right!important}.courier-report-status{margin:16px}
@media(max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{grid-template-columns:185px minmax(0,1fr)}main{padding:22px 18px}.fit-table td,.fit-table th{padding:13px 10px}}
@media(max-width:700px){.shell{display:block}main{padding:20px 14px}nav{flex-wrap:wrap;overflow:visible}nav button{white-space:normal;flex:1 1 120px}.report-controls label{flex:1 1 140px;min-width:0}.mode-buttons{width:100%}.mode-buttons button{flex:1}.report-tabs button{flex:1 1 40%;font-size:14px}.fit-table thead{display:none}.fit-table,.fit-table tbody,.fit-table tr,.fit-table td{display:block;width:100%}.fit-table tbody>tr{padding:12px 16px;border-bottom:1px solid #e1e8f2}.fit-table td{display:flex;justify-content:space-between;align-items:center;gap:15px;border:0;padding:7px 0!important;text-align:right!important;font-size:14px}.fit-table td::before{content:attr(data-label);font-weight:500;color:#77869c;text-align:left;flex-shrink:0}.fit-table td:first-child{display:block;text-align:left!important}.fit-table td:first-child::before{display:none}.fit-table td[colspan]{display:block;text-align:left!important}.payment-strip{gap:10px}.payment-strip>div{padding:12px}.entry-tabs button{flex-basis:90px}.closing-meta label:first-child{min-width:0}.top-actions{flex-wrap:wrap}.courier-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.courier-report-summary>div{padding:13px}.courier-report-table td{display:flex!important;text-align:right!important}.courier-report-table td:first-child{display:block!important;text-align:left!important}}
@media print{.report-controls,.report-tabs,.report-pagination,.detail-button,.notice,.top,nav,aside{display:none!important}.shell{display:block}main{padding:0}.heading p{display:none}.heading h1{font-size:23px}.cards,.payment-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.report-period{color:#17243b}.fit-table{display:table!important;font-size:10px!important}.fit-table thead{display:table-header-group!important}.fit-table tbody{display:table-row-group!important}.fit-table tr{display:table-row!important;break-inside:avoid}.fit-table th,.fit-table td{display:table-cell!important;padding:8px!important}.fit-table td::before{display:none!important}.fit-table td:first-child{display:table-cell!important}.report-panel{overflow:visible}.cards .card strong{font-size:17px}.payment-strip b{font-size:12px}}
