.recurring-alert-grid,.recurring-contract-head,.recurring-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.recurring-alert-grid article,.recurring-contract-head>div{background:#fff;border:1px solid var(--border,#e4e7ec);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:5px}.recurring-alert-grid strong{font-size:28px}.recurring-alert-grid .critical strong,.balance-critical{color:#b42318}.recurring-progress,.recurring-bars label>span{display:block;height:8px;background:#edf0f2;border-radius:99px;overflow:hidden;margin:5px 0}.recurring-progress i,.recurring-bars i{display:block;height:100%;background:#25876d;border-radius:inherit}.recurring-modal-panel{width:min(1180px,94vw);max-height:92vh;overflow:auto}.recurring-contract-head span,.recurring-contract-head strong{display:block}.recurring-bars{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:16px 0}.recurring-bars label>strong{float:right}.recurring-tabs{margin:18px 0}.delivery-product{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #e7e9ec}.delivery-product span,.delivery-product small{display:block}.delivery-product input{max-width:180px}.recurring-report-grid{grid-template-columns:1fr 1fr}.recurring-report-grid p{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #eee;padding:10px 0}.recurring-row-action{margin-left:6px}.primary-btn.compact,.danger-btn.compact{padding:7px 10px;font-size:12px}@media(max-width:900px){.recurring-alert-grid,.recurring-contract-head,.recurring-report-grid,.recurring-bars{grid-template-columns:1fr}.delivery-product{align-items:flex-start;flex-direction:column}.delivery-product input{max-width:none;width:100%}}

.recurring-list-wrap{overflow-x:auto;padding-bottom:6px}.recurring-clients-table{width:100%;min-width:1180px;table-layout:fixed;border-collapse:collapse}.recurring-clients-table th,.recurring-clients-table td{padding:14px 12px;vertical-align:top;overflow-wrap:normal;word-break:normal}.recurring-clients-table th:nth-child(1){width:180px}.recurring-clients-table th:nth-child(2){width:170px}.recurring-clients-table th:nth-child(3),.recurring-clients-table th:nth-child(4),.recurring-clients-table th:nth-child(5){width:125px}.recurring-clients-table th:nth-child(6){width:190px}.recurring-clients-table th:nth-child(7){width:130px}.recurring-clients-table th:nth-child(8){width:240px}.recurring-identity strong,.recurring-identity span,.recurring-identity small{display:block;margin:0 0 5px}.recurring-identity strong{white-space:nowrap;font-size:13px}.recurring-identity span{font-weight:600;line-height:1.35}.recurring-contract-status{width:max-content;padding:3px 8px;border-radius:99px;background:#eaf6f1;color:#1e705c}.recurring-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}.recurring-actions .text-btn,.recurring-actions .primary-btn{margin:0;white-space:nowrap}.recurring-actions .primary-btn{width:100%;justify-content:center}.recurring-actions-cell{min-width:240px}.recurring-clients-table td:nth-child(2),.recurring-clients-table td:nth-child(3),.recurring-clients-table td:nth-child(4),.recurring-clients-table td:nth-child(5),.recurring-clients-table td:nth-child(7){white-space:nowrap}.recurring-clients-table td:nth-child(6) small{display:block;line-height:1.45;margin-top:6px}

/* Keep the close control visible while scrolling a long delivery history. */
#recurringModal .recurring-modal-panel{display:flex;flex-direction:column;overflow:hidden}
#recurringModal .recurring-modal-panel>.panel-head{flex:none}
#recurringModalBody{overflow:auto;min-height:0}
#recurringModalBody td small{display:block;color:var(--muted,#667085);margin-top:4px}
