/* Hospital CRM overrides for the supplied AdminLTE 4 / Bootstrap layout. */
:root{--crm-teal:#0b4e77;--crm-navy:#12344a;--crm-muted:#5b7f96;--crm-line:#e1ebf1;--crm-bg:#f3f7f9;--lte-sidebar-width:248px;--bs-primary:#0b4e77;--bs-primary-rgb:11,119,112;--bs-body-font-family:"Segoe UI",Arial,sans-serif;--bs-body-font-size:1rem;--bs-body-color:#1d3f54}
body{font-size:16px;background:var(--crm-bg);color:var(--crm-navy)}h1,h2,h3,h4{color:var(--crm-navy);letter-spacing:-.025em}h1{font-size:1.8rem;font-weight:700}h2{font-size:1.15rem;font-weight:650}h3{font-size:1.05rem;font-weight:650}a{color:var(--crm-teal);text-decoration:none}a:hover{color:#083958;text-decoration:underline}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3a87b7!important;outline-offset:3px;box-shadow:none!important}input[type=checkbox]{width:17px;height:17px;accent-color:var(--crm-teal)}[hidden]{display:none!important}.crm-icon{flex-shrink:0;vertical-align:middle}.skip-link{position:fixed;left:12px;top:-60px;z-index:10000;background:white;padding:12px}.skip-link:focus{top:12px}
.btn{font-size:.94rem;font-weight:600;border-radius:7px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;white-space:nowrap}.btn-sm{font-size:.82rem;min-height:33px;padding:6px 10px}.btn-primary{--bs-btn-bg:var(--crm-teal);--bs-btn-border-color:var(--crm-teal);--bs-btn-hover-bg:#093f61;--bs-btn-hover-border-color:#093f61;--bs-btn-active-bg:#083a5a;--bs-btn-active-border-color:#083a5a;--bs-btn-disabled-bg:#769eb7;--bs-btn-disabled-border-color:#769eb7}.btn-outline-primary{--bs-btn-color:var(--crm-teal);--bs-btn-border-color:#acc9db;--bs-btn-hover-bg:var(--crm-teal);--bs-btn-hover-border-color:var(--crm-teal)}.btn-light{background:white;border-color:var(--crm-line);color:#385c73}.btn-link{color:var(--crm-teal)}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#50748b;width:38px;height:38px;border-radius:7px;position:relative}.icon-button:hover{background:#e8eff4;text-decoration:none;color:var(--crm-teal)}.text-muted{color:var(--crm-muted)!important}
.crm-sidebar{background:#0e2a3b!important;color:#d0dde5;box-shadow:none!important;border-right:0}.sidebar-brand{height:var(--lte-app-header-height);border-bottom:1px solid #234052;justify-content:flex-start;padding:0 24px}.brand-link{display:flex!important;align-items:center;gap:12px;color:white!important;text-decoration:none!important}.brand-mark{display:inline-flex;align-items:center;justify-content:center;background:#dfeef7;color:#0b4c74;width:43px;height:43px;border-radius:12px;flex-shrink:0}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:21px;letter-spacing:2.5px;line-height:1.2}.brand-copy small{font-size:10px;letter-spacing:2px;color:#86a9bf;margin-top:4px}.sidebar-wrapper{padding:23px 14px 100px}.workspace-label{padding:0 14px 12px;font-size:10px;letter-spacing:1.8px;font-weight:700;color:#7a9db3}.sidebar-menu .nav-link{color:#b3c7d4!important;display:flex;align-items:center;gap:13px;padding:12px 14px;margin:2px 0;border-radius:7px;font-size:14px;min-height:45px}.sidebar-menu .nav-link p{margin:0}.sidebar-menu .nav-link:hover{background:#1a384b;color:white!important;text-decoration:none}.sidebar-menu .nav-link.active{background:#1a4b6a!important;color:#fff!important;box-shadow:none;font-weight:600}.sidebar-menu .nav-header{color:#7296ac;font-size:10px;letter-spacing:1.6px;font-weight:700;padding:26px 14px 9px}.nav-dot{margin-left:auto;width:6px;height:6px;background:#55a2d2;border-radius:50%}.sidebar-bottom{display:flex;gap:9px;border-top:1px solid #29475a;padding:20px 8px 0;margin-top:26px;font-size:11px;color:#9fb9ca}.sidebar-bottom small{display:block;font-size:10px;color:#7498af;margin-top:5px}.secure-dot{width:6px;height:6px;border-radius:50%;background:#68a9d2;margin-top:5px;flex-shrink:0}.sidebar-collapse .sidebar-bottom,.sidebar-collapse .workspace-label{visibility:hidden}
.app-header{background:white;border-bottom:1px solid var(--crm-line)}.app-header .container-fluid{flex-wrap:nowrap}.global-search{display:flex;align-items:center;gap:11px;max-width:345px;flex:1;color:#7f9eb2}.global-search input{border:0;background:transparent;min-width:0;width:100%;font-size:14px;padding:9px 0;color:#25465b}.search-submit{border:0;background:none;color:#7f9eb2}.topbar-actions{display:flex;align-items:center;gap:15px;margin-left:auto}.branch-switcher{display:flex;align-items:center;gap:6px;color:#5a7e95}.branch-switcher select{border:0;background:transparent;max-width:140px;font-size:13px;font-weight:600;color:#466679;padding:5px}.branch-label{font-size:13px;display:flex;gap:7px;align-items:center}.topbar-divider{height:32px;width:1px;background:var(--crm-line)}.avatar{width:37px;height:37px;border-radius:50%;background:#e5eef4;color:#185277;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}.profile-menu summary{display:flex;align-items:center;gap:9px;cursor:pointer}.profile-copy{display:flex;flex-direction:column;max-width:130px}.profile-copy strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-copy small{font-size:11px;color:#8c9ba3;margin-top:2px}.notification-dot{position:absolute;right:9px;top:7px;width:6px;height:6px;border-radius:50%;background:#de7c4b;border:1px solid white}.dropdown-panel{position:relative}.dropdown-panel>summary{list-style:none}.dropdown-panel>summary::-webkit-details-marker{display:none}.dropdown-content{position:absolute;right:0;top:calc(100% + 12px);width:280px;max-width:calc(100vw - 30px);background:white;box-shadow:0 12px 36px #13364c26;border:1px solid var(--crm-line);border-radius:10px;padding:20px;z-index:1100;font-size:14px}.dropdown-content a{line-height:1.8}.dropdown-panel[open]>summary{color:var(--crm-teal)}
.app-content{padding:27px 30px 0!important}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.page-heading h1{margin:5px 0 0}.breadcrumb-line{font-size:12px;color:#84949e}.breadcrumb-line span{margin:0 8px;color:#b5c9d5}.page-heading-meta{display:flex;gap:16px;align-items:center}.current-date{display:flex;align-items:center;gap:8px;font-size:12px;color:#73858f}.state-picker summary{font-size:11px}.demo-banner{display:flex;align-items:center;gap:12px;border:1px solid #d9e6ee;background:#eef4f8;border-radius:7px;padding:10px 14px;color:#617b72;font-size:12px;margin-bottom:23px}.demo-tag{letter-spacing:1px;font-size:9px;font-weight:750;white-space:nowrap;color:#34698a;background:#d9e8f2;padding:4px 6px;border-radius:4px}
.card{overflow:hidden}.card-header{background:white;border-bottom:1px solid #ecf2f6;padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-header h2,.card-header h3{margin:0}.card-header p{font-size:12px;color:var(--crm-muted);margin:5px 0 0}.section-gap{margin-bottom:24px}.welcome-row{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 0 22px}.welcome-row h2{font-size:22px;margin-bottom:5px}.welcome-row p{font-size:14px;margin:0;color:#648aa1}.welcome-row .branch-pill{background:white;border:1px solid var(--crm-line);border-radius:7px;padding:9px 14px;font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric-card{padding:18px 19px;position:relative}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px;color:#577e96;min-height:35px;font-weight:500}.metric-icon{width:33px;height:33px;display:flex;justify-content:center;align-items:center;background:#eaf3f8;color:#2e6b91;border-radius:8px}.metric-icon.blue{background:#edf7fd;color:#59aadc}.metric-icon.amber{background:#fbf0eb;color:#d3703e}.metric-icon.rose{background:#faf1ed;color:#c98a6b}.metric-value{font-size:30px;line-height:1.4;font-weight:700;color:#1d3f54;margin:7px 0 4px}.metric-caption{font-size:10px;color:#799bb0}.filter-bar{padding:16px 20px;margin-bottom:23px;overflow:visible}.filter-grid{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.filter-grid>div{flex:1;min-width:125px}.filter-grid .filter-search{flex:1.8;min-width:200px}.filter-grid .filter-submit{flex:0 0 auto;display:flex;gap:8px}.filter-grid label{font-size:11px;display:block;margin-bottom:6px;font-weight:650;color:#5d8299}.filter-grid .form-control,.filter-grid .form-select{font-size:12px;min-height:37px;padding-top:7px;padding-bottom:7px}.filter-grid .btn{font-size:12px;min-height:37px}.form-control,.form-select{border-color:#d9e5ec;border-radius:6px;font-size:16px;min-height:43px}.form-control:focus,.form-select:focus{border-color:#82adc8;box-shadow:0 0 0 .2rem #0b4e7718}.form-label{font-size:14px;font-weight:600;color:#3f6379}.input-icon{position:relative}.input-icon .crm-icon{position:absolute;left:11px;top:11px;color:#7599b0}.input-icon input{padding-left:37px}.form-feedback{background:#fdf5f1;border:1px solid #f3d2c1;padding:12px;border-radius:6px;margin:12px 0;color:#98522f;font-size:14px}.form-help{font-size:12px;color:#6f92a8;margin-top:6px}.required-star{color:#c06e45}.is-invalid{border-color:#d17a4e!important}
.crm-table{font-size:12px;margin:0;color:#41657b;vertical-align:middle;--bs-table-bg:transparent}.crm-table th{background:#f7fafc;color:#7a8b96;font-size:10px;font-weight:650;letter-spacing:.25px;padding:13px 16px;white-space:nowrap;border-bottom:1px solid var(--crm-line)}.crm-table td{padding:16px;border-color:#ebf1f5;white-space:nowrap}.crm-table tbody tr:last-child td{border-bottom:0}.crm-table tr:hover{background:#fafbfc}.wide-table{min-width:1600px}.lead-reference{font-size:11px;font-weight:650;color:#5c88a4}.person-name{color:#21465e;font-weight:600;font-size:12px}.cell-secondary{display:block;font-size:10px;color:#85a3b5;margin-top:4px}.mini-avatar{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;margin-right:7px;border-radius:50%;background:#ebf2f7;font-size:10px;color:#5d8aa6}.status-badge{display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:550;white-space:nowrap;background:#e8f1f7;color:#386f92}.status-badge.blue{background:#eff8fd;color:#5298c4}.status-badge.amber{background:#faeae1;color:#b45a2c}.status-badge.green{background:#e7f1f8;color:#477694}.status-badge.rose{background:#fcf3ee;color:#bf876a}.source-dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:#77abcb;margin-right:6px}.source-dot.whatsapp{background:#5291b9}.source-dot.instagram{background:#84a6bb}.source-dot.website{background:#da8d66}.priority{font-size:10px;color:#6a90a8}.priority.high{color:#ca7d56}.priority.high:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#d88e69;margin-right:5px}.table-footer{padding:16px 20px;border-top:1px solid var(--crm-line);font-size:12px;color:var(--crm-muted);display:flex;justify-content:space-between;align-items:center;gap:15px}.pagination{margin:0;gap:4px}.page-link{border-radius:5px;font-size:12px;color:var(--crm-teal)}.page-item.active .page-link{background:var(--crm-teal);border-color:var(--crm-teal)}.bulk-controls{display:flex;gap:8px;align-items:center}.bulk-controls select{font-size:12px;min-height:34px;max-width:165px}.table-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:45px;color:#6e92a8;white-space:normal}
.chart-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;margin-bottom:24px}.funnel-row{display:grid;grid-template-columns:135px 1fr 32px;align-items:center;gap:13px;margin:13px 0;font-size:12px;color:#557e97}.funnel-track{height:18px;background:#f0f4f7;border-radius:4px;overflow:hidden}.funnel-fill{height:100%;border-radius:4px;background:#4b88ae;min-width:3px}.funnel-row:nth-child(2) .funnel-fill{background:#699cbb}.funnel-row:nth-child(3) .funnel-fill{background:#85afca}.funnel-row:nth-child(4) .funnel-fill{background:#9cc0d6}.funnel-row:nth-child(5) .funnel-fill{background:#b5d0e1}.funnel-row strong{text-align:right;color:#37637e;font-size:12px}.source-chart{display:flex;justify-content:space-around;gap:25px;align-items:center;padding:13px 0}.donut{width:156px;height:156px;border-radius:50%;position:relative;background:conic-gradient(#3c779c 0 33%,#92b7ce 33% 60%,#afcbdc 60% 77%,#e7ab8d 77% 90%,#e5ecf0 90%);display:flex;align-items:center;justify-content:center;flex-shrink:0}.donut:before{content:"";position:absolute;inset:23px;background:white;border-radius:50%}.donut-center{position:relative;text-align:center}.donut-center strong{display:block;font-size:27px}.donut-center small{font-size:10px;color:#8aa099}.legend{display:grid;gap:13px;font-size:12px;min-width:125px}.legend div{display:flex;align-items:center;gap:8px}.legend strong{margin-left:auto;font-weight:600}.legend i{width:8px;height:8px;border-radius:2px;background:#3c779c;display:block}.chart-note{font-size:10px;color:#91a2a8;border-top:1px solid #eef3f6;padding-top:13px;margin:12px 0 0}.alert-strip{background:#fdf6f2;border:1px solid #f5d8c9;color:#a76645;display:flex;align-items:center;gap:12px;border-radius:8px;padding:14px 18px;font-size:12px;margin-bottom:24px}.alert-strip a{color:#a0552f;margin-left:auto;font-weight:600}.progress-thin{height:5px;background:#ebf2f6;border-radius:5px;width:90px;margin-top:5px;overflow:hidden}.progress-thin span{display:block;background:#6c9cba;height:100%}.activity-item{display:flex;gap:14px;margin-bottom:20px}.activity-dot{width:29px;height:29px;border-radius:50%;background:#ebf2f7;display:flex;align-items:center;justify-content:center;color:#5b8caa;flex-shrink:0}.activity-item strong{font-size:12px;font-weight:600}.activity-item p{font-size:11px;color:#7697ab;margin:4px 0}.workspace-footer{display:flex;justify-content:space-between;padding:28px 0 20px;color:#85a3b6;font-size:11px}.workspace-footer span:last-child{display:flex;align-items:center;gap:6px}
.section-actions{display:flex;gap:9px;flex-wrap:wrap}.view-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px;border-bottom:1px solid var(--crm-line);padding-bottom:12px}.view-tabs a,.view-tabs button{border:0;background:transparent;padding:8px 14px;border-radius:6px;color:#758892;font-size:13px;display:flex;align-items:center;gap:7px}.view-tabs .active{background:#e3ecf2;color:#226087;font-weight:600}.view-toggle{display:flex;gap:2px;padding:3px;background:#ebf1f5;border-radius:7px}.view-toggle button{border:0;background:none;border-radius:5px;padding:6px 12px;color:#748990;font-size:12px}.view-toggle .active{background:white;color:#1c577c;box-shadow:0 1px 3px #0000000a}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--crm-line);border:1px solid var(--crm-line);border-radius:7px;overflow:hidden}.calendar-heading{background:#f4f8fa;text-align:center;padding:10px;font-size:11px;color:#628aa3}.calendar-day{background:white;padding:10px;min-height:105px;font-size:12px}.calendar-day.today{background:#eff5f9}.calendar-event{display:block;padding:5px;background:#eaf2f7;border-left:2px solid #5a8fb0;border-radius:3px;font-size:10px;line-height:1.5;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.kanban-board{display:flex;gap:17px;overflow-x:auto;align-items:flex-start;padding-bottom:18px;min-height:400px}.kanban-column{flex:0 0 266px;background:#ebf1f5;border-radius:9px;padding:13px;min-height:320px}.kanban-heading{display:flex;align-items:center;justify-content:space-between;padding:5px 4px 15px;font-size:12px;font-weight:650}.kanban-heading span{background:#d8e4eb;padding:1px 7px;border-radius:5px;color:#547f99}.kanban-card{background:white;border:1px solid #e0e9ef;border-radius:8px;padding:15px;margin-bottom:12px;cursor:grab}.kanban-card:active{cursor:grabbing}.kanban-card h3{font-size:13px;margin:11px 0 5px}.kanban-card p{font-size:11px;color:#6d91a8;margin-bottom:12px}.kanban-card .card-bottom{border-top:1px solid #edf2f6;padding-top:11px;font-size:10px;display:flex;align-items:center;justify-content:space-between;color:#7396ac}.kanban-column.drag-over{outline:2px dashed var(--crm-teal);outline-offset:-3px}.kanban-card.dragging{opacity:.45}.overdue{font-size:10px;color:#c8825e}.detail-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px}.contact-hero{text-align:center;padding:30px 22px}.contact-avatar{height:72px;width:72px;background:#e3eef4;color:#467795;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:auto auto 18px;font-size:25px;font-weight:600}.contact-hero h2{font-size:18px}.contact-meta{text-align:left;margin-top:25px;padding-top:18px;border-top:1px solid var(--crm-line)}.contact-meta dl{margin:0}.contact-meta dt{font-size:11px;font-weight:500;color:#7a9bb0;margin-top:15px}.contact-meta dd{font-size:13px;color:#38617a;margin:3px 0}.timeline{position:relative;padding-left:25px}.timeline:before{content:"";position:absolute;left:6px;top:7px;bottom:10px;width:1px;background:#d9e4eb}.timeline-entry{position:relative;padding:0 0 26px}.timeline-entry:before{content:"";position:absolute;left:-23px;top:6px;height:9px;width:9px;background:#85abc2;border-radius:50%;border:2px solid white}.timeline-entry h3{font-size:13px;margin-bottom:6px}.timeline-entry p{font-size:13px;color:#6c92a9;margin-bottom:6px}.timeline-entry time{font-size:10px;color:#87a5b8}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-actions form{border:1px solid var(--crm-line);border-radius:8px;padding:19px;background:white}.detail-actions h3{font-size:14px;margin-bottom:15px}.detail-actions label{font-size:12px}.detail-actions .form-control{font-size:13px}
.chat-layout{display:grid;grid-template-columns:270px minmax(0,1fr) 260px;min-height:640px}.conversation-list{border-right:1px solid var(--crm-line);padding:0}.conversation-search{padding:19px;border-bottom:1px solid var(--crm-line)}.conversation-search input{font-size:13px}.conversation-item{padding:17px;display:flex;gap:10px;border-bottom:1px solid #eef3f7;color:#2b5169;position:relative}.conversation-item:hover,.conversation-item.active{background:#ecf4f8;text-decoration:none}.conversation-item strong{font-size:12px}.conversation-item small{display:block;font-size:10px;color:#7999ad;margin-top:5px}.unread-badge{margin-left:auto;background:#3d7fa9;color:white;border-radius:50%;width:18px;height:18px;font-size:9px;text-align:center;line-height:18px}.chat-main{display:flex;flex-direction:column;min-width:0;background:#f7f9fb}.chat-header{background:white;padding:18px 22px;border-bottom:1px solid var(--crm-line);display:flex;justify-content:space-between}.chat-header h2{font-size:14px;margin:0}.chat-header small{font-size:11px;color:#7b9baf}.message-history{padding:25px;flex:1;max-height:460px;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.message{max-width:85%;background:white;border:1px solid #e6ecef;padding:12px 15px;border-radius:10px 10px 10px 0;font-size:13px;line-height:1.7;align-self:flex-start}.message.out{background:#e3edf3;border-color:#dce8f0;align-self:flex-end;border-radius:10px 10px 0 10px}.message small{display:block;text-align:right;font-size:9px;color:#6c91a8;margin-top:4px}.message-composer{padding:18px;background:white;border-top:1px solid var(--crm-line)}.message-composer textarea{font-size:13px}.chat-contact{padding:24px;border-left:1px solid var(--crm-line)}.chat-contact h3{font-size:13px}.chat-contact dt{font-size:11px;font-weight:500;color:#7fa0b4}.chat-contact dd{font-size:12px;margin-bottom:19px}.optout-warning{background:#fbf0eb;border:1px solid #f1c7b1;padding:12px;font-size:12px;color:#a25630;border-radius:6px}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.provider-mark{width:47px;height:47px;border-radius:12px;background:#e8f1f6;display:flex;align-items:center;justify-content:center;color:#3e7598;margin-bottom:18px}.provider-meta{display:flex;justify-content:space-between;border-top:1px solid #ebf1f5;padding:13px 0;font-size:12px;color:#6f94ab}.provider-meta strong{font-size:12px;color:#416982}.integration-actions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.integration-actions .btn{font-size:12px;padding:8px 11px}.trend-chart{display:flex;align-items:flex-end;gap:16px;height:200px;padding:12px 15px 25px;border-bottom:1px solid var(--crm-line)}.trend-day{height:100%;flex:1;display:flex;align-items:flex-end;gap:5px;position:relative}.trend-bar{background:#6698b8;flex:1;border-radius:4px 4px 0 0;min-height:3px}.trend-bar.secondary{background:#cedfe9}.trend-day small{position:absolute;bottom:-22px;width:100%;text-align:center;font-size:10px;color:#8a9d9f}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-list{list-style:none;padding:0;margin:0}.settings-list li{padding:12px 0;display:flex;justify-content:space-between;border-bottom:1px solid #ecf1f5;font-size:13px}
.crm-dialog{border:1px solid #d8e3ea;box-shadow:0 20px 80px #0c263740;border-radius:12px;width:min(520px,calc(100% - 30px));max-height:85vh;padding:26px;color:var(--crm-navy)}.crm-dialog::backdrop{background:#0b2e4470}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:14px}.dialog-heading h2{margin:0;font-size:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.crm-dialog label{font-size:13px}.toast-region{position:fixed;right:24px;bottom:24px;max-width:420px;z-index:2200}.crm-toast{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #c4dae8;border-left:4px solid #3a7499;border-radius:9px;padding:17px 19px;box-shadow:0 5px 30px #10324720;font-size:13px;margin-top:10px;color:#2d4f65}.crm-toast.error{border-left-color:#c47a54;border-color:#efd4c6;color:#a46647}.crm-toast button{border:0;background:none;color:inherit;margin-left:auto}.empty-state{padding:70px 20px;text-align:center;align-items:center;gap:14px}.empty-state h2{font-size:22px;margin:0}.empty-state p{max-width:390px;color:#7a9cb1;font-size:14px}.state-illustration{display:flex;align-items:center;justify-content:center;width:78px;height:78px;background:#ecf3f7;color:#6394b2;border-radius:22px;margin-bottom:5px}.skeleton{height:22px;background:#ebf1f5;border-radius:5px;margin:12px 0;animation:skeleton-pulse 1.6s ease-in-out infinite}.skeleton.short{width:55%}.skeleton.tall{height:44px;width:40%}.navigation-loading{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:2400;background:white;box-shadow:0 4px 20px #0b2c4126;padding:12px 24px;border-radius:9px;font-size:13px;display:flex;gap:10px;align-items:center}
.auth-page{background:#edf3f7;min-height:100vh}.auth-container{max-width:480px;margin:auto;padding:65px 20px}.auth-brand{display:flex;align-items:center;justify-content:center;gap:13px;margin-bottom:30px;font-size:24px;font-weight:750;letter-spacing:3px;color:#1d3c4f;text-decoration:none}.auth-brand small{font-size:10px;letter-spacing:3px;display:block;font-weight:500}.auth-card{padding:34px;background:white;border:1px solid #dae5ec;border-radius:14px;box-shadow:0 12px 40px #2d485906}.auth-card h1{font-size:25px;margin-bottom:10px}.auth-card>p{font-size:14px;color:#8a9c9b;margin-bottom:24px}.auth-card label{font-size:13px}.auth-card .form-control{margin-bottom:18px}.auth-footer{text-align:center;font-size:12px;color:#8ca09a;margin-top:26px;display:flex;justify-content:center;gap:7px}.setup-key{display:block;padding:18px;background:#f0f4f7;word-break:break-all;border-radius:8px;color:#30688b;margin-bottom:20px;font-size:15px}.save-strip{padding-top:23px;display:flex;gap:12px;align-items:center;border-top:1px solid var(--crm-line);margin-top:25px}
@keyframes skeleton-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:1700px){.app-content>.container-fluid{max-width:1650px;margin:auto}}
@media(max-width:1350px){.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.global-search{max-width:240px}.profile-copy{display:none}.chat-layout{grid-template-columns:235px minmax(0,1fr)}.chat-contact{display:none}.topbar-actions{gap:10px}.app-content{padding:24px 22px 0!important}}
@media(max-width:1100px){.global-search{max-width:185px}.branch-switcher{display:none}.chart-layout{grid-template-columns:1fr 1fr}.source-chart{gap:12px}.donut{width:125px;height:125px}.donut:before{inset:19px}.legend{min-width:100px;font-size:11px}.integration-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:991px){.crm-sidebar .sidebar-bottom{visibility:visible}.app-header{padding:10px 14px}.global-search{max-width:none}.page-heading-meta .current-date{display:none}.detail-actions{grid-template-columns:1fr}.branch-switcher{display:flex}.app-content{padding:24px 17px 0!important}}
@media(max-width:700px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.metric-card{padding:16px}.chart-layout,.settings-grid,.detail-grid{grid-template-columns:1fr}.card-header{padding:17px;flex-wrap:wrap}.card-body{padding:18px}.global-search{display:none}.branch-switcher{display:none}.topbar-actions{gap:6px}.topbar-divider{display:none}.add-lead-top{font-size:12px;padding:8px 10px}.app-header .container-fluid{gap:5px!important}.page-heading{align-items:flex-end}.page-heading h1{font-size:24px}.page-heading-meta{gap:4px}.demo-banner{align-items:flex-start;flex-direction:column;gap:7px;font-size:11px}.welcome-row{align-items:flex-start}.welcome-row h2{font-size:19px}.welcome-row .branch-pill{display:none}.filter-grid{gap:10px}.filter-grid>div{min-width:calc(50% - 10px)}.filter-grid .filter-search{min-width:100%}.filter-grid .filter-submit{width:100%}.filter-bar{padding:15px}.table-footer{align-items:flex-start;flex-direction:column}.funnel-row{grid-template-columns:110px 1fr 25px;font-size:11px}.source-chart{justify-content:center;gap:40px}.donut{width:145px;height:145px}.alert-strip{align-items:flex-start;flex-wrap:wrap;font-size:11px}.chat-layout{grid-template-columns:1fr}.conversation-list{max-height:235px;overflow:auto;border-bottom:1px solid var(--crm-line);border-right:0}.conversation-item{padding:12px 17px}.conversation-search{padding:12px}.message-history{min-height:250px}.calendar-day{min-height:80px;padding:5px;font-size:10px}.calendar-event{font-size:8px;padding:3px}.calendar-heading{font-size:9px;padding:8px 2px}.workspace-footer{font-size:9px;gap:10px}.toast-region{left:14px;right:14px;bottom:14px;max-width:none}.auth-container{padding-top:40px}.auth-card{padding:25px}.state-picker summary{padding:6px;font-size:10px}.branch-label{display:none}.bulk-controls{flex-wrap:wrap}.detail-actions{grid-template-columns:1fr}}

/* Hospital brand and fixed workspace chrome. */
:root{--crm-teal:#0E6398;--crm-orange:#D76227;--bs-primary:#0E6398;--bs-primary-rgb:14,99,152;--bs-link-color:#0E6398;--bs-link-hover-color:#D76227}
a,a:hover,a:focus,h1,h2,h3,h4,h5,h6{text-decoration:none!important}
.btn-primary{--bs-btn-bg:#0E6398;--bs-btn-border-color:#0E6398;--bs-btn-hover-bg:#0b507b;--bs-btn-hover-border-color:#0b507b;--bs-btn-active-bg:#0b507b;background:#0E6398;border-color:#0E6398}
.btn-outline-primary{--bs-btn-color:#0E6398;--bs-btn-border-color:#0E6398;--bs-btn-hover-bg:#0E6398;--bs-btn-hover-border-color:#0E6398;color:#0E6398;border-color:#0E6398}
.metric-icon.amber,.metric-card.amber .metric-icon{background:#fff0e8;color:#D76227}
.progress-thin span,.trend-bar{background:#0E6398}.trend-bar.secondary{background:#D76227}
.crm-sidebar{background:#0E6398!important}.crm-sidebar .nav-link.active,.lead-submenu a.active{background:#D76227!important;color:white!important}
.hospital-logo{object-fit:contain;background:white;border-radius:8px;width:48px;height:48px;padding:3px}
.brand-mark{background:transparent!important;flex-shrink:0}
.lead-navigation{width:100%}.lead-navigation summary{cursor:pointer;list-style:none}.lead-navigation summary::-webkit-details-marker{display:none}
.lead-navigation summary p{flex:1}.lead-submenu{list-style:none;padding:2px 0 10px 28px;margin:0}.lead-submenu a{display:block;padding:9px 12px;border-radius:6px;color:#e4f2fb;font-size:14px}.lead-submenu a:hover{background:#ffffff18}
.dashboard-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-card{min-width:0}


.sidebar-collapse .lead-submenu{display:none}
@media(max-width:1350px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-submenu{padding-left:20px}.app-header{z-index:1035}.metric-card{padding:15px}}

.crm-pagination{max-width:100%;overflow-x:auto;padding:4px}.crm-pagination .pagination{flex-wrap:wrap;gap:3px}.crm-pagination .page-link{color:#0E6398}.crm-pagination .active .page-link{background:#0E6398;color:white;border-color:#0E6398}.crm-pagination .disabled .page-link{color:#748594}


/* Typography and Bootstrap grid; layout geometry comes from AdminLTE. */
:root{--bs-body-font-family:"Inter",sans-serif}
body,input,select,textarea,p,td{font-family:"Inter",sans-serif}
h1,.brand-copy strong{font-family:"Poppins",sans-serif}
h2,h3,h4,h5,h6{font-family:"Montserrat",sans-serif}
.card-header p,.welcome-row>p,.form-label,.filter-fields label,.filter-dates label,.metric-top,.nav-header{font-family:"Montserrat",sans-serif}
button,.btn,summary.btn{font-family:"Poppins",sans-serif}
.filter-fields label,.filter-dates label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.filter-fields .form-control,.filter-fields .form-select,.filter-dates .form-control{font-size:13px;min-width:0}
.filter-fields>div,.filter-dates>div{min-width:0}
.filter-dates input{width:100%}

/* Requested white sidebar with black navigation text. */
.crm-sidebar{background:#fff!important;color:#000!important;border-right:1px solid #e5e7eb}
.crm-sidebar .brand-link,.crm-sidebar .brand-copy strong,.crm-sidebar .brand-copy small,
.crm-sidebar .workspace-label,.crm-sidebar .nav-header,.crm-sidebar .nav-link,
.crm-sidebar .lead-submenu a,.crm-sidebar .sidebar-bottom,.crm-sidebar .sidebar-bottom small{color:#000!important}
.crm-sidebar .sidebar-brand,.crm-sidebar .sidebar-bottom{border-color:#e5e7eb}
.crm-sidebar .nav-link:hover,.crm-sidebar .lead-submenu a:hover{background:#f3f4f6!important;color:#000!important}
.crm-sidebar .nav-link.active,.crm-sidebar .lead-submenu a.active{background:#e8f2f8!important;color:#000!important;border-left:3px solid #0E6398}

/* Rounded calendar and accessible date picker. */
.calendar-grid{border-radius:20px;gap:6px;padding:8px;background:#f3f7fa;border:1px solid #dde8ef;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-heading{background:transparent;font-weight:600;color:#0E6398;padding:12px 4px}
.calendar-day{border-radius:12px;border:1px solid #e9eff3;min-width:0;padding:10px}
.calendar-day.today{background:#edf6fc;border-color:#0E6398}
.calendar-day time{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;font-weight:600}
.calendar-day.today time{background:#0E6398;color:white;border-radius:50%}
.calendar-event{border-radius:8px;border-left:3px solid #D76227;background:#eef5fa;color:#0E6398;padding:6px;font-size:11px}
.crm-date-picker{width:min(360px,calc(100vw - 32px));border:1px solid #dce7ee;border-radius:22px;padding:20px;box-shadow:0 20px 70px #16384c33;color:#203542}
.crm-date-picker::backdrop{background:#142e4340}
.date-picker-heading,.date-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.date-picker-heading strong{font-family:Poppins,sans-serif;font-size:15px}
.crm-date-picker button{border:0;border-radius:10px;background:#f0f5f8;color:#0E6398;min-height:36px;padding:6px 12px}
.date-picker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:18px 0}
.date-picker-grid span{text-align:center;font-size:11px;color:#617582;padding:6px 0}
.date-picker-grid button{padding:4px;background:white;font-size:13px}
.date-picker-grid button.outside-month{color:#7c8992}
.date-picker-grid button[aria-current=date]{box-shadow:inset 0 0 0 1px #D76227}
.date-picker-grid button.selected{background:#0E6398;color:white}
.crm-date-picker button:hover:not(:disabled){background:#e1eef7;color:#0E6398}
.crm-date-picker button:focus-visible{outline:2px solid #D76227;outline-offset:2px}
.crm-date-picker button:disabled{opacity:.3;cursor:not-allowed}
.date-picker-trigger{font-size:11px;margin-top:4px;border-radius:9px}
@media(max-width:700px){.calendar-grid{gap:3px;padding:4px;border-radius:14px}.calendar-day{padding:3px;border-radius:8px}.calendar-event{font-size:9px;padding:3px}}

.crm-date-picker{box-sizing:border-box;max-width:calc(100vw - 32px)}


.calendar-year{width:76px;min-width:0;border:1px solid #dce7ee;border-radius:9px;padding:6px;color:#0E6398;font:inherit;background:#f4f8fb}
.date-picker-heading{gap:6px}.date-picker-heading strong{flex:1;font-size:13px}
.crm-table.lead-list-table{width:100%;min-width:0;table-layout:fixed}
.crm-table.lead-list-table th,.crm-table.lead-list-table td{white-space:normal;overflow-wrap:anywhere;padding:14px 8px;min-width:0}
.crm-table.lead-list-table th{font-size:11px}.crm-table.lead-list-table td{font-size:12px}
.lead-list-table .stage-badge,.lead-list-table .status-badge{white-space:normal}
@media(max-width:767px){.crm-table.lead-list-table{min-width:850px;table-layout:auto}}

.dashboard-chart-body{display:flex;align-items:center;gap:20px;min-height:360px;padding:24px;flex-wrap:wrap}
.dashboard-chart-visual{flex:1 1 220px;min-width:0;max-width:420px;margin:auto}
.dashboard-chart-visual svg{display:block;width:100%;height:auto;overflow:visible}
.dashboard-chart-total{font-family:Poppins,sans-serif;font-size:26px;font-weight:600;fill:#0E6398}
.dashboard-chart-caption{font-family:Inter,sans-serif;font-size:13px;fill:#64748b}
.dashboard-chart-segment{pointer-events:stroke;transition:opacity .15s}
.dashboard-chart-segment:hover,.dashboard-chart-segment:focus{opacity:.75;outline:none;filter:drop-shadow(0 1px 2px #0e639855)}
.dashboard-chart-legend{list-style:none;padding:0;margin:0;flex:1 1 180px;min-width:0}
.dashboard-chart-legend li{display:flex;align-items:center;gap:9px;font-size:12px;padding:8px 0;border-bottom:1px solid #f1f4f7}
.chart-legend-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.dashboard-chart-legend li>span:nth-child(2){overflow-wrap:anywhere}
.dashboard-chart-legend strong{margin-left:auto;text-align:right;white-space:nowrap;font-size:13px}
.dashboard-chart-legend small{display:block;font-weight:400;color:#64748b;font-size:11px}
.dashboard-chart-empty{width:100%;text-align:center;color:#64748b}.dashboard-chart-empty svg{width:200px;max-width:100%}
@media(max-width:575px){.dashboard-chart-body{padding:16px;gap:12px}.dashboard-chart-visual{flex-basis:100%;max-width:300px}.dashboard-chart-legend{flex-basis:100%}}

tr[data-lead-url]{cursor:pointer}tr[data-lead-url]:hover td{background:#eef5fa}.filter-dates .filter-submit{flex-wrap:nowrap;align-items:center}.filter-dates .filter-submit .btn{white-space:nowrap}

/* Header theme switch and large, high-priority follow-up alerts. */
.toast-region{position:fixed;right:28px;top:calc(var(--lte-app-header-height) + 18px);bottom:auto;width:min(490px,calc(100vw - 32px));z-index:2200}.crm-toast{display:flex;align-items:center;gap:16px;background:#D76227;border:1px solid #b64d1c;border-radius:14px;padding:23px 24px;box-shadow:0 14px 38px #9b3c1580;font:600 17px/1.45 Poppins,sans-serif;margin-bottom:12px;color:#fff;min-height:86px}.crm-toast a{color:#fff;text-decoration:underline;text-underline-offset:3px}.crm-toast.error{background:#a63b32;border-color:#843029;color:#fff}.crm-toast button{border:1px solid #ffffff80;background:#ffffff1f;color:#fff;margin-left:auto;border-radius:50%;width:32px;height:32px;font-size:22px;line-height:1;flex-shrink:0}.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #d5e1e8;background:#fff;color:#0E6398;border-radius:9px;padding:8px 11px;font:600 12px Poppins,sans-serif}.theme-toggle:hover{background:#edf5f9}.crm-dark-theme{background:#17212a;color:#e7edf1}.crm-dark-theme .app-header,.crm-dark-theme .app-main,.crm-dark-theme .app-content,.crm-dark-theme .card,.crm-dark-theme .dropdown-content,.crm-dark-theme .crm-dialog{background:#202c36!important;color:#e7edf1}.crm-dark-theme .card,.crm-dark-theme .app-header,.crm-dark-theme .dropdown-content,.crm-dark-theme .crm-dialog{border-color:#3b4a56}.crm-dark-theme .text-muted,.crm-dark-theme .breadcrumb-line,.crm-dark-theme .profile-copy small{color:#aebdca!important}.crm-dark-theme .theme-toggle{background:#2a3a46;color:#fff;border-color:#50616e}.crm-dark-theme .form-control,.crm-dark-theme .form-select{background:#263641;color:#fff;border-color:#52636f}.crm-dark-theme .table{--bs-table-bg:#202c36;--bs-table-color:#e7edf1;--bs-table-border-color:#3b4a56}.crm-dark-theme .table-light,.crm-dark-theme .crm-table thead th{--bs-table-bg:#2a3945;--bs-table-color:#fff}.crm-dark-theme .dropdown-content a{color:#8ec7ec}@media(max-width:700px){.toast-region{left:14px;right:14px;top:calc(var(--lte-app-header-height) + 12px);width:auto}.crm-toast{font-size:15px;padding:18px;min-height:76px}.theme-toggle-label{display:none}.theme-toggle{padding:8px 10px}}
.crm-dark-theme .crm-sidebar{background:#16232c!important;border-color:#3b4a56!important;color:#edf3f6!important}.crm-dark-theme .crm-sidebar .sidebar-brand,.crm-dark-theme .crm-sidebar .sidebar-bottom{border-color:#3b4a56!important}.crm-dark-theme .crm-sidebar .brand-link,.crm-dark-theme .crm-sidebar .brand-copy strong,.crm-dark-theme .crm-sidebar .brand-copy small,.crm-dark-theme .crm-sidebar .workspace-label,.crm-dark-theme .crm-sidebar .nav-header,.crm-dark-theme .crm-sidebar .nav-link,.crm-dark-theme .crm-sidebar .lead-submenu a,.crm-dark-theme .crm-sidebar .sidebar-bottom,.crm-dark-theme .crm-sidebar .sidebar-bottom small{color:#e7edf1!important}.crm-dark-theme .crm-sidebar .nav-link:hover,.crm-dark-theme .crm-sidebar .lead-submenu a:hover{background:#2a3b47!important;color:#fff!important}.crm-dark-theme .crm-sidebar .nav-link.active,.crm-dark-theme .crm-sidebar .lead-submenu a.active{background:#0e6398!important;color:#fff!important;border-left-color:#d76227}.crm-dark-theme .app-content,.crm-dark-theme .app-main,.crm-dark-theme .content-wrapper{color:#e7edf1!important}.crm-dark-theme h1,.crm-dark-theme h2,.crm-dark-theme h3,.crm-dark-theme h4,.crm-dark-theme h5,.crm-dark-theme h6,.crm-dark-theme p,.crm-dark-theme label,.crm-dark-theme .card-title,.crm-dark-theme .table td,.crm-dark-theme .table th,.crm-dark-theme .page-link{color:#e7edf1}.crm-dark-theme .btn-light,.crm-dark-theme .btn-outline-secondary{background:#2a3a46;color:#e7edf1;border-color:#50616e}.crm-dark-theme .btn-light:hover,.crm-dark-theme .btn-outline-secondary:hover{background:#354a59;color:#fff}.crm-dark-theme .dropdown-menu,.crm-dark-theme .modal-content{background:#202c36;color:#e7edf1}.crm-dark-theme .breadcrumb-item+.breadcrumb-item::before{color:#aebdca}.crm-dark-theme .pagination .page-link{background:#263641;border-color:#50616e}.crm-dark-theme .pagination .page-item.active .page-link{background:#0e6398;border-color:#0e6398}

#toast-region .crm-toast{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2201!important}

body > #due-followup-toast{display:flex!important;position:fixed!important;top:88px!important;right:28px!important;left:auto!important;bottom:auto!important;width:min(500px,calc(100vw - 32px))!important;min-height:96px!important;z-index:2147483647!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;background:#D76227!important;color:#fff!important;border:2px solid #b64d1c!important;border-radius:14px!important;padding:24px!important;box-shadow:0 18px 48px rgba(117,44,10,.55)!important;font:700 18px/1.45 Poppins,Arial,sans-serif!important}body > #due-followup-toast a{display:block!important;color:#fff!important;visibility:visible!important;font:inherit!important}@media(max-width:700px){body > #due-followup-toast{top:76px!important;right:14px!important;width:calc(100vw - 28px)!important;font-size:16px!important}}

body > #due-followup-toast{top:82px!important;width:min(380px,calc(100vw - 28px))!important;min-height:0!important;padding:16px 18px!important;font-size:15px!important;line-height:1.35!important;border-radius:11px!important;gap:10px!important}body > #due-followup-toast button{width:27px!important;height:27px!important;font-size:18px!important}@media(max-width:700px){body > #due-followup-toast{top:72px!important;right:14px!important;width:calc(100vw - 28px)!important;padding:15px!important;font-size:14px!important}}

.lead-submenu a{display:flex!important;align-items:center;gap:10px}.lead-submenu .crm-icon{opacity:.8}
