/* Saved channel preferences stay distinct from delivery-service configuration. */
.reminder-master-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:10px; }
.reminder-master-card { position:relative; overflow:hidden; padding:23px; border:1px solid #414653; border-radius:16px; background:linear-gradient(125deg,#20232b,#13151c 72%); box-shadow:0 12px 28px #0000001f; }
.reminder-master-card.is-on { border-color:#a63849; background:radial-gradient(ellipse at 100% 0,#571c2a66,transparent 67%),linear-gradient(125deg,#25232b,#14151c 72%); }
.reminder-master-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.reminder-channel-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid #84505a; border-radius:11px; color:#ffbdc5; background:#3e2530; font-size:22px; }
.reminder-service { padding:6px 9px; border:1px solid #48515e; border-radius:20px; color:#d8dfe9; font-size:11px; line-height:1.3; }
.reminder-service.is-configured { border-color:#366957; color:#a6ebd3; background:#12372b66; }
.reminder-service.needs-setup { border-color:#8d7140; color:#f6dcae; background:#3c2b1466; }
.reminder-master-card h3 { margin:0 0 15px; color:#f8f7fa; font-size:20px; line-height:1.3; }
.reminder-master-card p { margin:15px 0 0; color:#bec7d5; font-size:12px; line-height:1.65; max-width:54ch; }
.reminder-master-control { display:flex; align-items:center; flex-wrap:wrap; gap:13px; }
.reminder-master-control > span { color:#e2e4eb; font-size:12px; }
.reminder-switch { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; gap:10px; min-height:42px; padding:7px 11px; border:1px solid #5d6371; border-radius:10px; background:#21252f; color:#f5f6fa; font:inherit; font-size:12px; font-weight:750; cursor:pointer; touch-action:manipulation; }
.reminder-switch-master { min-height:50px; padding:10px 14px; font-size:15px; }
.reminder-switch[aria-checked=true] { background:#631e2e; border-color:#d54b61; color:#fff; }
.reminder-switch-track { display:inline-flex; align-items:center; width:34px; height:20px; padding:2px; border-radius:20px; background:#596172; }
.reminder-switch-track > span { width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 4px #0006; transform:translateX(0); transition:transform .15s ease; }
.reminder-switch[aria-checked=true] .reminder-switch-track { background:#f14b65; }
.reminder-switch[aria-checked=true] .reminder-switch-track > span { transform:translateX(14px); }
.reminder-switch:hover { border-color:#ff8296; }
.reminder-switch:focus-visible { outline:3px solid #8acbff; outline-offset:3px; }
.reminder-switch:disabled { opacity:.65; cursor:wait; }
.reminder-switch-state { min-width:25px; text-align:left; }
.reminder-save-status { min-height:20px; margin:0 0 20px; color:#bac7d6; font-size:12px; }
.automation-row.reminder-invoice-row { grid-template-columns:minmax(180px,1.1fr) minmax(115px,.65fr) minmax(250px,1.3fr); gap:18px; align-items:start; padding:22px 0; }
.reminder-invoice-heading { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-width:0; }
.reminder-invoice-heading b { display:block; color:#f1f3f7; line-height:1.5; overflow-wrap:anywhere; }
.reminder-invoice-heading small { margin-top:3px; }
.reminder-invoice-status { display:flex; flex-direction:column; gap:7px; padding-top:3px; }
.reminder-invoice-status .automation-status { color:#f3f4f8; font-weight:750; }
.reminder-invoice-status small { line-height:1.45; }
.reminder-invoice-channels { display:grid; gap:9px; }
.reminder-invoice-channel { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #383f4e; border-radius:10px; padding:9px 10px; background:#151a24; }
.reminder-invoice-channel b { color:#eff2f8; font-size:12px; }
.reminder-invoice-channel small { font-size:10px; line-height:1.4; margin-top:3px; }
.reminder-rule-fields { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:end; gap:16px; padding-top:4px; }
.reminder-rule-fields > label:first-child { min-width:190px; font-size:11px; color:#c3cddd; }
.reminder-rule-fields input[type=date] { display:block; margin-top:6px; }
.reminder-rule-fields .check-row { font-size:12px; margin-bottom:4px; }
.reminder-rule-fields .btn { margin-left:auto; min-height:42px; }
.reminder-new-channel { display:flex; gap:9px; align-items:center; min-height:34px; color:#e0e6f0; font-size:12px; }
.reminder-new-channel input[type=checkbox] { width:17px; height:17px; margin:0; accent-color:#d82542; }
.reminder-not-scheduled { color:#eac788!important; font-size:11px; line-height:1.5; }
@media(max-width:1050px) { .automation-row.reminder-invoice-row { grid-template-columns:minmax(0,1fr) minmax(240px,1fr); } .reminder-invoice-heading { grid-column:1; } .reminder-invoice-status { grid-column:1; grid-row:2; } .reminder-invoice-channels { grid-column:2; grid-row:1/3; } }
@media(max-width:650px) { .reminder-master-grid { grid-template-columns:minmax(0,1fr); gap:12px; } .reminder-master-card { padding:19px; } .reminder-master-card h3 { font-size:19px; } .automation-row.reminder-invoice-row { grid-template-columns:minmax(0,1fr); gap:13px; } .reminder-invoice-heading,.reminder-invoice-status,.reminder-invoice-channels { grid-column:1; grid-row:auto; } .reminder-rule-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; } .reminder-rule-fields > label:first-child { min-width:0; } .reminder-rule-fields .btn { margin-left:0; width:100%; } .reminder-rule-fields input[type=date] { width:100%; min-width:0; } .reminder-master-control > span { flex:1; min-width:120px; } }
@media(prefers-reduced-motion:reduce) { .reminder-switch-track > span { transition:none; } }

/* Shared customer-profile and edit-dialog reminder settings. */
.customer-reminders-panel { padding:20px; border:1px solid #65414c; border-radius:14px; background:radial-gradient(ellipse at 100% 0,#65233933,transparent 70%),#171a22; margin:15px 0; }
.customer-reminder-header { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:10px; }
.customer-reminders-panel h3 { color:#f4f5fa; font-size:18px; line-height:1.3; margin:5px 0 0; }
.customer-reminder-intro { color:#bdc7d7; font-size:12px; line-height:1.6; margin:9px 0 14px; }
.customer-reminder-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.customer-reminder-channel { display:flex; align-items:center; justify-content:space-between; gap:13px; padding:14px; border:1px solid #434958; border-radius:11px; background:#11151e; min-width:0; }
.customer-reminder-channel h4 { color:#f2f3f8; font-size:13px; margin:0 0 4px; }
.customer-reminder-channel p { color:#b7c2d2; font-size:11px; line-height:1.55; margin:0; }
.customer-reminder-channel .reminder-switch { flex-shrink:0; min-width:85px; }
.customer-reminder-status { min-height:18px; color:#dbe5f2; font-size:11px; margin:13px 0 5px; }
.customer-reminder-help { color:#aeb9ca; font-size:11px; line-height:1.55; margin:0; }
.modal .customer-reminder-channels { grid-template-columns:minmax(0,1fr); }
.reminder-master-scope { display:block; color:#ff9aab; font-size:10px; font-weight:800; letter-spacing:1px; margin:0 0 6px; }
@media(max-width:700px) { .customer-reminder-channels { grid-template-columns:minmax(0,1fr); } .customer-reminders-panel { padding:16px; } .customer-reminder-header { align-items:flex-start; gap:9px; } .customer-reminder-channel { padding:12px; } .customer-reminders-panel h3 { font-size:17px; } }

/* Long historical payment links must wrap inside the customer activity cards. */
#view-customerDetail > .grid > *, #view-customerDetail .act-row, #view-customerDetail .act-note { min-width:0; }
#view-customerDetail .act-note { overflow-wrap:anywhere; }
