/* One visual system for the private dispatcher and its companion screens. */
body.admin-theme{--green:#155b45;--deep:#18372c;--orange:#fff1c7;--cream:#edf3ef;--line:#dce5df;--muted:#52685d;background:#f5f7f3;color:#18372c;font-family:Arial,sans-serif;line-height:1.5}
.admin-theme *{box-sizing:border-box}.admin-theme [hidden]{display:none!important}
.admin-theme h1,.admin-theme h2,.admin-theme h3,.admin-theme h4{color:#18372c;letter-spacing:-.4px;line-height:1.25}
.admin-theme p{color:#52685d}.admin-theme a{color:#155b45}.admin-theme span{letter-spacing:0;text-transform:none}
.admin-theme button,.admin-theme .campaign-link{font:600 14px Arial,sans-serif;line-height:1.35;min-height:44px;border:0;border-radius:12px;padding:12px 16px;background:#155b45;color:white;cursor:pointer}
.admin-theme button:hover:not(:disabled),.admin-theme .campaign-link:hover{background:#104633;color:white}
.admin-theme button:disabled{opacity:.55;cursor:not-allowed}
.admin-theme .secondary,.admin-theme .restore,.admin-theme .project-image-controls button,.admin-theme .growth-actions .secondary{background:#edf3ef;color:#155b45}
.admin-theme .delete-project,.admin-theme .delete-lead,.admin-theme .project-image-controls .remove-project-photo{background:#fbeae7;color:#8f3028}
.admin-theme label{font-size:14px;font-weight:500;color:#18372c}
.admin-theme input,.admin-theme select,.admin-theme textarea{font:400 16px Arial,sans-serif;width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid #b5c7bc;border-radius:10px;padding:12px;background:#fff;color:#18372c}
.admin-theme textarea{line-height:1.5;resize:vertical}.admin-theme input:is([type=checkbox],[type=radio]){width:18px;min-height:18px;height:18px;padding:0;accent-color:#155b45;vertical-align:middle;flex:none}
.admin-theme :is(button,a,summary,input,select,textarea):focus-visible{outline:3px solid #699d86;outline-offset:3px}
.admin-theme main,body.admin-theme.crm-mode main{width:min(1180px,calc(100% - 48px));margin:24px auto 110px}
.admin-theme .admin-brandbar{height:88px;position:sticky;top:0;z-index:12;background:#f5f7f3;border:0;padding:12px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}
.admin-brandbar>a{display:flex;align-items:center}.admin-theme .admin-brandbar img{width:160px;height:64px;object-fit:contain}
.admin-theme .admin-brandbar #logout{display:none!important}.admin-theme #adminMenu{margin-left:auto;background:transparent;color:#155b45;font-size:20px;letter-spacing:3px;width:48px;padding:8px}

.admin-theme .crm-brand{justify-content:flex-start;background:#f5f7f3;padding:12px 0 16px;min-height:88px}.admin-theme .crm-brand img{width:160px;height:64px}.admin-theme .crm-brand #crmMenu{top:22px}
.admin-theme .admin-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px;background:none;padding:0;border:0;height:auto;position:static}
.admin-theme .admin-page-heading>div{border:0;padding:0}.admin-theme .admin-page-heading h1{font-size:30px;margin:6px 0 10px}.admin-theme .admin-page-heading>a{flex:none;font-size:14px;background:#edf3ef;padding:12px 16px;border-radius:12px;text-decoration:none}
.admin-theme .admin-eyebrow,.admin-theme .admin-page-heading span,.admin-theme .project-admin-head>div>span{color:#52685d;font-size:11px;font-weight:600;letter-spacing:1px}
.admin-theme .admin-overflow{position:relative}.admin-overflow>summary{list-style:none;padding:10px 12px;min-width:46px;min-height:44px;color:#155b45;font-size:20px;letter-spacing:3px;cursor:pointer}.admin-overflow>summary::-webkit-details-marker{display:none}
.admin-overflow>nav{position:absolute;top:100%;right:0;display:grid;gap:6px;padding:12px;width:260px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #dce5df;border-radius:16px;box-shadow:0 8px 32px #18372c20;z-index:20}.admin-overflow nav a{display:block;text-decoration:none;padding:12px;background:#edf3ef;border-radius:10px;font-size:14px}
.admin-theme :is(.project-admin-head,.project-form,.rental-card,.lead-card,.customer-card,.customer-event,.growth-card,.growth-metrics article,.analytics-grid>article,.trend-card,.attempt-card,.period-card,.saved-period,.prospect,.campaign,.review-queue,.discovery,.add,.guidance){background:#fff;border:1px solid #dce5df;border-radius:16px;box-shadow:0 3px 14px #173b2610}
.admin-theme .project-admin-head{padding:24px}.admin-theme .project-admin-head h2{font-size:30px}.admin-theme .project-form{border-width:1px}.admin-theme .project-admin-list{gap:16px}.admin-theme .project-admin-card{border-color:#dce5df;border-radius:16px;padding:18px;box-shadow:0 3px 14px #173b2610}.admin-theme .project-admin-card h3{font-size:20px}.admin-theme .project-state{font-size:12px;letter-spacing:0;background:#fff1c7;color:#745007}.admin-theme .project-state.published{background:#dff1e7;color:#155b45}
.admin-theme .project-card-actions button{min-width:100px}.admin-theme .project-image-controls button{min-width:36px;min-height:36px;padding:6px}.admin-theme .publish-control,.admin-theme .lead-facts,.admin-theme .dates{background:#edf3ef}
.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary){gap:14px}.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary) article{background:#fff;border:1px solid #dce5df;color:#18372c;border-radius:16px;box-shadow:0 3px 14px #173b2610}
.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary) article:first-child{background:#fff7df}.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary) article:nth-child(2){background:#eaf4ed}
.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary) small{color:#52685d;font-size:12px;font-weight:500;letter-spacing:0}.admin-theme :is(.metrics,.analytics-metrics,.growth-metrics,.lead-summary) strong{color:#155b45;font-size:30px;display:block;margin-top:6px}
.admin-theme .history-panel summary{background:#edf3ef;color:#18372c}.admin-theme .history-panel summary span{color:#155b45}.admin-theme .report-note,.admin-theme .analytics-privacy{background:#edf3ef;border-radius:12px;color:#52685d}.admin-theme .analytics-row span{color:#155b45;font-weight:400}
.admin-theme .stage-fill,.admin-theme .trend-bar{background:#a8c5b4}.admin-theme .stage-fill.completed,.admin-theme .trend-bar.completed{background:#155b45}.admin-theme .stage-fill.stopped{background:#d8b86a}.admin-theme .chart-legend .reached-key{background:#a8c5b4}.admin-theme .chart-legend .complete-key{background:#155b45}
.admin-theme .lead-details{border-color:#b8d0c1}.admin-theme .lead-follow-up.scheduled{background:#edf3ef;color:#155b45}.admin-theme .lead-status.new,.admin-theme .badge,.admin-theme .growth-score{background:#fff1c7;color:#745007;letter-spacing:0}.admin-theme .badge.blocked{background:#fbeae7;color:#8f3028}
.admin-theme .toolbar,.admin-theme .lead-toolbar,.admin-theme .funnel-filters{background:#fff;border:1px solid #dce5df;border-radius:14px;padding:18px;gap:14px}.admin-theme .history-toolbar{border-color:#dce5df}.admin-theme .attempt-table th{background:#edf3ef;color:#18372c}
.admin-theme dialog{background:#f5f7f3;color:#18372c;border:1px solid #dce5df;border-radius:18px;padding:24px;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 12px 50px #18372c25}.admin-theme dialog::backdrop{background:#18372c66}
.admin-theme .crm-dialog-head{align-items:center}.admin-theme .crm-dialog-head h2{margin:0;font-size:22px}.admin-theme .crm-dialog-head button{background:#edf3ef;color:#155b45;flex:none}
.admin-theme #crmMoreDialog{background:#fff;top:90px;right:max(24px,calc((100vw - 1180px)/2));padding:18px;max-height:calc(100dvh - 120px)}.admin-theme .crm-more-links button,.admin-theme .crm-more-links a{background:#edf3ef;color:#155b45;min-height:44px;font-weight:500}.admin-theme .crm-more-links button:hover,.admin-theme .crm-more-links a:hover{background:#dfeae3;color:#155b45}
.admin-theme #contactCampaignDialog{width:min(1060px,calc(100vw - 32px));max-width:1060px}.admin-theme #equipmentDemandDialog{width:min(960px,calc(100vw - 32px));max-width:960px}.admin-theme #emailSignaturePreview{background:white;border:1px solid #dce5df;border-radius:12px;padding:16px;overflow-wrap:anywhere;margin:18px 0}
.admin-theme .customer-form-shell,.admin-theme #requestWorkflowDialog .customer-form-shell{background:white;border-color:#dce5df}.admin-theme .crm-work-estimate,.admin-theme .crm-work-billing{background:#edf3ef;border-color:#dce5df}.admin-theme .crm-primary-actions button{box-shadow:none}.admin-theme .crm-quickbooks-icon{background:#fff1c7;color:#155b45}
.admin-theme .crm-bottom-nav{background:#fffffff5;border-color:#dce5df}.admin-theme .crm-bottom-nav button{background:transparent;color:#52685d;font-size:13px}.admin-theme .crm-bottom-nav button[aria-pressed=true]{color:#155b45;background:#edf3ef}
.admin-theme.growth-admin-page .growth-shell{max-width:1180px;padding:0}.admin-theme .growth-card{padding:24px}.admin-theme .growth-card ol{padding-left:24px;line-height:2}.admin-theme .growth-row{border-color:#dce5df;gap:16px;padding:16px 0}.admin-theme .growth-row>div{min-width:0;overflow-wrap:anywhere}.admin-theme .growth-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.admin-theme .growth-actions button{margin:0}.admin-theme .integration-ready{color:#155b45}.admin-theme .integration-waiting{color:#745007}
.admin-theme.b2b-admin-page main{max-width:1180px;padding:0}.admin-theme .campaign,.admin-theme .review-queue,.admin-theme .discovery,.admin-theme .guidance,.admin-theme .add{padding:24px;margin:20px 0}.admin-theme .gmail-connection{background:#edf3ef;border-color:#dce5df;padding:18px;border-radius:14px}.admin-theme #sendGmail{background:#155b45}.admin-theme .campaign-draft{gap:16px}.admin-theme .campaign-contacts,.admin-theme .review-list{border-color:#dce5df;border-radius:12px}.admin-theme .campaign-contact,.admin-theme .review-row{padding:12px;border-color:#dce5df}.admin-theme .prospect{padding:0 20px}.admin-theme .prospect[open]{padding-bottom:20px}.admin-theme .prospect-summary{min-height:76px}.admin-theme .prospect-summary:before{color:#155b45}.admin-theme .identity strong{font-size:17px}.admin-theme .sent{white-space:normal}.admin-theme .edit{gap:16px}.admin-theme .discovery-day summary{background:#edf3ef;border-radius:10px;padding:12px}.admin-theme .discovery-business{border-color:#dce5df}.admin-theme .discovery-business small{color:#52685d}.admin-theme .guidance{background:#fff7df}
@media(min-width:850px){.admin-theme .growth-metrics article{padding:24px}.admin-theme .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-theme .crm-request-counts>div{padding:20px}.admin-theme .crm-request-counts strong{font-size:30px}}
@media(max-width:700px){.admin-theme main,body.admin-theme.crm-mode main{width:calc(100% - 32px);margin:12px auto 110px}.admin-theme #customersPanel{padding:0}.admin-theme .admin-brandbar{padding:10px 16px;height:80px}.admin-theme .admin-brandbar img,.admin-theme .crm-brand img{width:144px;height:58px}.admin-theme .crm-brand{min-height:80px;padding:10px 0}.admin-theme .admin-page-heading{align-items:flex-start;flex-direction:column;gap:8px}.admin-theme .admin-page-heading h1,.admin-theme .project-admin-head h2{font-size:26px}.admin-theme .project-admin-head{padding:20px}.admin-theme .analytics-grid{grid-template-columns:1fr}.admin-theme .growth-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.admin-theme .growth-metrics article{padding:12px 10px}.admin-theme .growth-metrics small{font-size:10px;overflow-wrap:anywhere}.admin-theme .growth-metrics strong{font-size:26px}.admin-theme .growth-card,.admin-theme .campaign,.admin-theme .review-queue,.admin-theme .discovery,.admin-theme .guidance,.admin-theme .add{padding:18px}.admin-theme .growth-row{grid-template-columns:1fr}.admin-theme .project-card-actions{flex-wrap:wrap}.admin-theme .project-card-actions button{flex:1}.admin-theme dialog{padding:18px;max-height:calc(100dvh - 24px)}.admin-theme .crm-dialog-head{gap:10px}.admin-theme .crm-dialog-head h2{font-size:20px}.admin-theme #crmMoreDialog{right:16px}.admin-theme .crm-campaign-grid{grid-template-columns:1fr}.admin-theme .campaign-actions>*{max-width:100%;overflow-wrap:anywhere}.admin-theme .toolbar input{min-width:0}.admin-theme .toolbar label{width:100%}.admin-theme .prospect-summary{flex-wrap:wrap}.admin-theme .identity{flex-basis:calc(100% - 24px)}.admin-theme .prospect{padding:0 16px}.admin-theme .edit,.admin-theme .campaign-draft{grid-template-columns:1fr}.admin-theme .review-row{flex-wrap:wrap}.admin-theme .crm-bottom-nav{padding-top:8px}.admin-theme .crm-bottom-nav button{padding:6px 2px;min-height:52px}.admin-theme .crm-request-card .customer-actions button{min-width:0}.admin-theme .lead-facts{grid-template-columns:90px minmax(0,1fr)}.admin-theme .lead-facts dd{overflow-wrap:anywhere}.admin-theme .form-actions{flex-wrap:wrap}.admin-theme .form-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.admin-theme *{scroll-behavior:auto!important}}

/* Preserve one company header after login and readable destructive actions. */
body.admin-theme.crm-mode>header.admin-brandbar{display:none}
body.admin-theme #customersPanel .crm-primary-actions #trashCustomer{background:#fbeae7!important;color:#8f3028!important}
.admin-theme .history-toolbar span{color:#52685d;font-weight:500;font-size:13px}
@media(max-width:700px){.admin-theme .growth-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-theme .growth-metrics article:first-child{grid-column:1/-1}.admin-theme .growth-metrics small{overflow-wrap:normal}}
