/* CRM 3.5.9 — visual polish, accessible separate status semantics. */
.crm359-finance-state,.crm359-box{margin:1rem 0;padding:1.1rem 1.3rem;border:1px solid #d8e5eb;border-radius:16px;background:#fbfdff}
.crm359-finance-state p,.crm359-box p{margin:.45rem 0;font-size:.9rem;color:#526477;line-height:1.9}
.crm359-paid,.crm359-unpaid,.crm359-review{display:inline-flex;gap:.35rem;align-items:center;padding:.4rem .8rem;border-radius:999px;font-weight:800;font-size:.82rem;white-space:normal}
.crm359-paid{background:#dbf7e9;color:#0e7851}.crm359-unpaid{background:#edf1f5;color:#526477}.crm359-review{background:#fff0db;color:#965019}
.crm359-ledger-explainer{padding:1rem;border-radius:12px;background:#eaf5ff;border:1px solid #c9e2f7;color:#194a70;line-height:1.9}
.crm359-quick-edit{margin:.45rem 0;min-width:155px;padding:.5rem;border:1px solid #c7d7e0;border-radius:10px;background:#f5faff}
.crm359-quick-edit summary{cursor:pointer;color:#155a78;font-weight:800}.crm359-quick-edit form{display:grid;gap:.5rem;margin-top:.5rem}
.crm359-quick-edit textarea{min-height:90px;min-width:180px;font:inherit;resize:vertical;border-radius:9px;border:1px solid #c5d5e3;padding:.65rem}
.crm359-box label{display:flex;gap:.5rem;align-items:center;margin:.65rem 0}
.crm359-box form{display:grid;gap:.6rem}.crm359-box button{justify-self:start}
.crm359-catalog{border:1px solid #dae5ed!important;box-shadow:0 7px 26px rgba(28,68,91,.055);margin-top:1rem!important}
.crm359-catalog .panel-heading{padding:.75rem .4rem 1rem;border-bottom:1px solid #e4ecf0;align-items:center}
.crm359-catalog .panel-heading h3{color:#133f5d;font-size:1.2rem}.crm359-catalog table{border-collapse:separate;border-spacing:0 4px}
.crm359-catalog table thead th{background:#edf5fa;color:#315770;font-weight:800}.crm359-catalog table tbody tr{background:#fafcfe}
.crm359-catalog table tbody td{padding:.85rem .7rem;border-bottom:1px solid #e9eef4}
.crm359-catalog table tbody tr:hover{background:#f0f9ff}
.crm359-catalog .btn.tiny{background:#eef5fc}
.crm359-findbar{margin:1rem 0;padding:1rem;border:1px solid #deebf2;background:#fff;border-radius:14px}
.crm359-findbar label{display:grid;gap:.5rem;font-weight:800;color:#184a63}.crm359-findbar input{border:1px solid #ccdfe7;border-radius:10px;padding:.8rem;font:inherit}
.crm359-doctors{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:.9rem;margin:1rem 0}
.crm359-doctor{padding:1.1rem;border:1px solid #dce9ee;border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(23,64,89,.04)}
.crm359-doc-title{display:flex;align-items:center;gap:.55rem;margin-bottom:.85rem;justify-content:space-between}
.crm359-doc-title h4{flex:1;color:#163d58;margin:0}.crm359-doc-icon{display:grid;place-items:center;min-width:35px;height:35px;border-radius:11px;background:#e5f5f1;color:#197969;font-weight:900}
.crm359-doc-info{display:grid;gap:.6rem;font-size:.9rem;color:#485d6b}.crm359-doc-info span{background:#f5f8fc;padding:.55rem .7rem;border-radius:9px}
.crm359-doc-note{padding:.65rem;background:#fff8ec;border-radius:9px;color:#8d5a24;line-height:1.8}
.crm359-count{font-size:.8rem;color:#0d6e6b;background:#e8f8f4;border-radius:12px;padding:.4rem .8rem}
.crm354-state.tone-mint{background:#d9f7e7;color:#11704d;border:1px solid #9fdec1}
.crm354-state.tone-green{background:#dff6df;color:#146b35;border:1px solid #a6dda8}
.crm354-state.tone-orange{background:#fff0da;color:#995500;border:1px solid #f6d19f}
.crm354-state.tone-red{background:#ffe6ea;color:#b02d4a;border:1px solid #fac4d0}
.crm359-table th,.crm359-table td{text-align:center;white-space:normal}.crm359-table thead th{background:#e8f3fb;color:#184c6c}
.crm358-ledger .filters-bar select{width:100%;font:inherit}
.crm358-ledger .filters-bar label{min-width:180px}
.crm359-box input[type=checkbox]{width:18px;height:18px;accent-color:#166e64}
[hidden]{display:none!important}
@media(max-width:720px){.crm359-doctors{grid-template-columns:1fr}.crm359-catalog{padding:1rem}.crm359-quick-edit textarea{min-width:0;width:100%}}

/* 3.5.9 owner-only permissions and receipt audit */
.crm359-protected{padding:1rem 1.15rem;border-radius:12px;border:1px solid #f1cdb1;background:#fff5eb;color:#854916;font-weight:800;line-height:1.85}
.crm359-today-overview{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:1rem 0}
.crm359-today-overview strong{background:#e2f5e9;color:#106444;border-radius:12px;padding:.7rem 1rem}
.crm359-today-overview span{color:#586d7d;font-size:.85rem}
.crm359-quick-edit label{display:grid;gap:.25rem;font-size:.85rem;color:#184c63}
.crm359-quick-edit input,.crm359-quick-edit select{min-width:150px;max-width:260px;padding:.45rem;border-radius:8px;border:1px solid #c7d7e0;font:inherit}

.crm359-review-form{display:grid;gap:.3rem;margin:.4rem 0}.crm359-review-form input,.crm359-review-form select{border:1px solid #cbdbe6;border-radius:7px;padding:.4rem;max-width:190px;font:inherit}

/* Keep confirmed bookings green, follow-up amber, no-answer red, payments teal */
.v33-status .crm354-state.tone-green,.crm354-state.tone-green{background:#e1f8e8;color:#116e38;border:1px solid #a6dfb4}
.crm354-state.tone-orange{background:#fff0da;color:#905500;border:1px solid #e9c48a}
.crm354-state.tone-red{background:#ffe6ec;color:#a72b47;border:1px solid #edacbd}
.crm354-state.tone-mint{background:#daf6f0;color:#116b62;border:1px solid #9eddd1}
