.app-shell .subscription-table tfoot td.subscription-total{text-align:center;vertical-align:middle}
.app-shell .subscription-table{table-layout:auto}
.app-shell .subscription-table .occasion-column{min-width:0;width:1%;white-space:nowrap;padding-inline:9px;border-inline:1px solid #ecd0ca;background:#fff4f2}
html:not([data-theme="dark"]) .app-shell .subscription-table thead th.occasion-column{background:linear-gradient(#fcece8,#f3d6d0);color:#70433d;vertical-align:middle}
html:not([data-theme="dark"]) .app-shell .subscription-table tfoot td.occasion-column{background:#fbe8e3;border-top-color:#e5c9c3}
.occasion-column>strong{display:block;font-size:.875rem;line-height:1.8}
.occasion-column>small{display:block;font-size:.6875rem;font-weight:500;line-height:1.9}
/* Plain status symbols for both monthly and occasion obligations. */
.subscription-payment-status{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;background:none;border:0;padding:0;box-shadow:none}
.subscription-payment-status .icon{width:21px;height:21px;stroke-width:2.3}
.subscription-payment-status.settled{color:#208451}
.subscription-payment-status.unsettled{color:#c54646}
.subscription-payment-status.partial{color:#bd831d;cursor:pointer;font:inherit;appearance:none;border-radius:50%}
.subscription-payment-status.partial:hover{color:#94610b;transform:scale(1.12)}
.subscription-payment-status.partial:focus-visible{outline:2px solid #bd831d;outline-offset:4px}
.partial-payment-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;text-align:center}
.partial-payment-details>div{display:flex;flex-direction:column;gap:8px;padding:12px 0}
.partial-payment-details>div+div{border-inline-start:1px solid var(--border)}
.partial-payment-details strong{font-size:1.6rem;font-weight:650;color:#287b52}
.partial-payment-details>div+div strong{color:#a56f19}
.partial-payment-details small{font-size:.8125rem;font-weight:500}
.modal:has(>.partial-payment-details){width:420px;max-width:calc(100vw - 32px);overflow:hidden}
.modal:has(>.partial-payment-details) .modal-header{padding:16px 20px}
.modal:has(>.partial-payment-details) .modal-header h2{font-size:1.05rem}
.modal:has(>.partial-payment-details) .modal-header p{font-size:.8125rem;line-height:1.9}
.modal:has(>.partial-payment-details) .modal-header .mini-label{display:none}
.modal:has(>.partial-payment-details) .modal-footer{padding:12px 20px}
html[data-theme="dark"] .subscription-payment-status.settled{color:#66d79c}
html[data-theme="dark"] .subscription-payment-status.unsettled{color:#f18181}
html[data-theme="dark"] .subscription-payment-status.partial{color:#e9b34f}
html[data-theme="dark"] .partial-payment-details strong{color:#70d6a0}
html[data-theme="dark"] .partial-payment-details>div+div strong{color:#e9b34f}
.occasion-title{display:inline-flex;align-items:baseline;justify-content:center;gap:6px;white-space:nowrap;font-family:Cairo,sans-serif}
.occasion-title strong{font-size:.8125rem}
.occasion-title>span{font-size:.6875rem;font-weight:500}
.subscription-table .occasion-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:160px;overflow:hidden;white-space:normal;overflow-wrap:anywhere;margin-inline:auto;line-height:1.7}
.subscription-table .monthly-fee{font-size:.625rem;white-space:nowrap;font-weight:500;line-height:1.7}
.occasion-commitment{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid #c7dfd0;border-radius:11px;background:#edf8f1;cursor:pointer}
.occasion-commitment>input{width:19px;height:19px;flex-shrink:0;margin-top:3px;accent-color:#2e7d5b}
.occasion-commitment strong{display:block;color:#245338;font-size:.875rem}
.occasion-commitment small{display:block;color:#567360;font-size:.75rem;line-height:1.9;margin-top:3px}
.occasion-impact{margin-top:12px;font-size:.8125rem;line-height:1.9;color:#476951}
html[data-theme="dark"] .app-shell .subscription-table .occasion-column{background:#392926;border-color:#65453e}
html[data-theme="dark"] .app-shell .subscription-table thead th.occasion-column{background:linear-gradient(#533733,#452c29);color:#f2c9c2}
html[data-theme="dark"] .occasion-commitment{background:#203e2c;border-color:#3b604a}
html[data-theme="dark"] .occasion-commitment strong{color:#c5e5d1}
html[data-theme="dark"] .occasion-commitment small,html[data-theme="dark"] .occasion-impact{color:#a4c3b0}
@media(max-width:520px){.app-shell .page-head:has([data-action="add-occasion-event"]){flex-wrap:wrap;gap:10px}.page-head:has([data-action="add-occasion-event"]) .page-actions{flex-wrap:wrap;gap:8px}.occasion-commitment{padding:10px 11px}.occasion-commitment strong{font-size:.8125rem}.occasion-commitment small{font-size:.6875rem}}
@media(max-width:520px){.payment-modal[data-payment-kind="occasion"] .field:has([name="occasion_id"]){order:1;grid-column:1/-1}.payment-modal[data-payment-kind="occasion"] .occasion-commitment{order:8}}
@media print{.app-shell .subscription-table .occasion-column{min-width:0;width:auto;background:none}.occasion-title strong{font-size:8px}.occasion-title>span,.occasion-column>small,.subscription-table .monthly-fee{font-size:7px}.subscription-payment-status .icon{display:block;width:12px;height:12px}.subscription-payment-status{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
