﻿#dashboard .commercialPanels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#dashboard .commercialPanels>.panel{margin:0;min-width:0}
#dashboard .commercialPanels .cards{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}
#dashboard .commercialPanels .card b{font-size:28px}
@media(max-width:900px){#dashboard .commercialPanels{grid-template-columns:1fr}}

/* Local SVG icons avoid font/CDN dependencies and apply only to Commercial extras. */
#dashboard .ops .commercialPanels .card:before{display:block!important;position:static;width:44px;height:44px;margin-bottom:12px;background-size:27px;background-image:var(--commercial-icon);background-color:var(--commercial-icon-bg,#ff85001d)}
#dashboard .commercialPanels .card{display:block!important;min-height:0!important;height:auto!important;padding:18px!important}
#dashboard .commercialPanels .card small,#dashboard .commercialPanels .card b{grid-column:auto!important;margin-left:0!important}

#dashboard .ops #commercialTemperature .card:nth-child(1){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff8c24%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203c2%205-3%206-1%2010%202-1%203-3%203-5%207%208%205%2013-2%2013S2%2015%207%209c0%204%202%205%203%205-2-5%200-8%202-11%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ff8c2420;}
#dashboard .ops #commercialTemperature .card:nth-child(2){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffbf43%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2014V5a3%203%200%200%201%206%200v9a5%205%200%201%201-6%200M12%208v9%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ffbf4320;}
#dashboard .ops #commercialTemperature .card:nth-child(3){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2355b9ff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202v20M3%207l18%2010M3%2017%2021%207M9%204l3%203%203-3M9%2020l3-3%203%203%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#55b9ff20;}
#dashboard .ops #commercialConversion .card:nth-child(1){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235caaff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h13m-4-4%204%204-4%204M21%2018H8m4-4-4%204%204%204%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#5caaff20;}
#dashboard .ops #commercialConversion .card:nth-child(2){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235caaff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h13m-4-4%204%204-4%204M21%2018H8m4-4-4%204%204%204%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#5caaff20;}
#dashboard .ops #commercialConversion .card:nth-child(3){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%235caaff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h13m-4-4%204%204-4%204M21%2018H8m4-4-4%204%204%204%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#5caaff20;}
#dashboard .ops #commercialDaily .card:nth-child(1){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff941e%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%207a3%203%200%201%201-6%200%203%203%200%200%201%206%200M2%2021v-3a7%207%200%200%201%2014%200v3M16%204a3%203%200%200%201%200%206m2%204a6%206%200%200%201%204%205v2%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ff941e20;}
#dashboard .ops #commercialDaily .card:nth-child(2){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23499afa%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2012s4-7%2010-7%2010%207%2010%207-4%207-10%207S2%2012%202%2012M15%2012a3%203%200%201%201-6%200%203%203%200%200%201%206%200%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#499afa20;}
#dashboard .ops #commercialDaily .card:nth-child(3){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239c6bfc%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2010a3%203%200%201%201%200-6%203%203%200%200%201%200%206M2%2021v-3a7%207%200%200%201%2014%200v3m3-17v6m-3-3h6%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#9c6bfc20;}
#dashboard .ops #commercialDaily .card:nth-child(4){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ff941e%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16v16H4zM8%202v6m8-6v6M4%2011h16%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ff941e20;}
#dashboard .ops #commercialDaily .card:nth-child(5){--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2326ca73%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h3l3%2013h11l3-10H6M10%2021H8m11%200h-2%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#26ca7320;}
#dashboard .ops #commercialRequests .card{--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ad7af5%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h10l5%205v15H5zM14%202v6h6M8%2012h9m-9%204h9%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ad7af520;}
#dashboard .ops #commercialDuration .card{--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2355b9ff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2012a9%209%200%201%201-18%200%209%209%200%200%201%2018%200M12%207v5l4%202%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#55b9ff20;}
#dashboard .ops .commercialPanels>.panel:last-child .card{--commercial-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffbf43%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18v14H3zM3%2010h18M6%2015h4m6-2h5v4h-5z%22%2F%3E%3C%2Fsvg%3E");--commercial-icon-bg:#ffbf4320;}

/* Commercial target popup: preserve scrolling while hiding its scrollbar rails. */
body:has(#app .commercialSalesManagement.active) .modal:has(#targetSaveButton),
body:has(#dashboard.active #commercialDaily) .modal:has(#targetSaveButton),
body:has(#app .commercialSalesManagement.active) .modalbox:has(#targetSaveButton),
body:has(#dashboard.active #commercialDaily) .modalbox:has(#targetSaveButton){scrollbar-width:none;-ms-overflow-style:none}
body:has(#app .commercialSalesManagement.active) .modal:has(#targetSaveButton)::-webkit-scrollbar,
body:has(#dashboard.active #commercialDaily) .modal:has(#targetSaveButton)::-webkit-scrollbar,
body:has(#app .commercialSalesManagement.active) .modalbox:has(#targetSaveButton)::-webkit-scrollbar,
body:has(#dashboard.active #commercialDaily) .modalbox:has(#targetSaveButton)::-webkit-scrollbar{display:none;width:0;height:0}

/* Daily staff activity uses live report counts and a common bar scale. */
.commercialSalesManagement .commercialActivityCharts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:18px 0}
.commercialSalesManagement .commercialPersonChart{border:1px solid #294353;border-radius:14px;background:linear-gradient(145deg,#102330,#0c1821);padding:18px;min-width:0}
.commercialSalesManagement .commercialPersonChart h4{margin:0 0 18px;font-size:16px;color:#f3f7fc}
.commercialSalesManagement .commercialMetricBar{display:grid;grid-template-columns:82px minmax(0,1fr) 38px;gap:12px;align-items:center;margin:13px 0;font-size:12px;--bar-color:#ff981f}
.commercialSalesManagement .commercialMetricBar[data-metric="followups"]{--bar-color:#a175fa}
.commercialSalesManagement .commercialMetricBar[data-metric="visits"]{--bar-color:#499afa}
.commercialSalesManagement .commercialMetricBar[data-metric="sales"]{--bar-color:#25c878}
.commercialSalesManagement .commercialMetricBar strong{color:var(--bar-color);text-align:right;font-variant-numeric:tabular-nums}
.commercialSalesManagement .commercialMetricTrack{display:block;height:9px;border-radius:9px;background:#263b48;overflow:hidden}
.commercialSalesManagement .commercialMetricTrack i{display:block;height:100%;background:var(--bar-color);border-radius:9px}
.commercialSalesManagement .commercialActivityFigures{border-top:1px solid #294353;padding-top:10px}

.commercialSalesManagement .commercialActiveCheck{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:4px 8px;border-radius:20px;background:#22c55e18;color:#4ade80;font-size:11px;white-space:nowrap}
.commercialSalesManagement .commercialPersonChart h4{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:8px}

.commercialSalesManagement .commercialReportsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.commercialSalesManagement .commercialReportCard{--report-color:#ff981f;min-width:0;border:1px solid #86521b;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#17212a,#0b1821)}
.commercialSalesManagement .commercialReportCard-plan{--report-color:#479dff;border-color:#285c94;background:linear-gradient(145deg,#102940,#0b1821)}
.commercialSalesManagement .commercialReportCard header{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;padding:20px;margin:0;border-bottom:1px solid color-mix(in srgb,var(--report-color) 45%,transparent)}
.commercialSalesManagement .commercialReportCard h4{margin:0;font-size:20px}
.commercialSalesManagement .commercialReportIcon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:13px;border:1px solid var(--report-color);color:var(--report-color)}
.commercialSalesManagement .commercialReportIcon svg{width:27px;height:27px}
.commercialSalesManagement .commercialReportBody{padding:18px}
.commercialSalesManagement .commercialSubmittedReport+.commercialSubmittedReport{margin-top:22px;padding-top:20px;border-top:1px solid #294353}
.commercialSalesManagement .commercialReportCard h5{margin:0 0 8px;font-size:15px}
.commercialSalesManagement .commercialReportNote{border:1px solid #344b5c;border-radius:10px;background:#10202c;padding:14px;margin-top:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.commercialSalesManagement .commercialReportEmpty{padding:28px 10px;text-align:center;color:#a9c6dc}
.commercialSalesManagement .commercialReportCard-weekly{grid-column:1/-1}
@media(max-width:900px){.commercialSalesManagement .commercialReportsGrid{grid-template-columns:1fr}.commercialSalesManagement .commercialReportCard header{padding:16px}.commercialSalesManagement .commercialReportBody{padding:14px}}

/* Use the same orange for all staff activity bars and values. */
.commercialSalesManagement .commercialMetricBar[data-metric]{--bar-color:#ff981f}

/* Commercial management matches the established Sales / Executive dark blue surfaces. */
#sales.commercialSalesManagement>.ops{background:transparent;border:0;padding:0;--line:#263f50;--muted:#a2bed2}
#sales.commercialSalesManagement .ops>.panel{background:linear-gradient(120deg,#101f2a,#0b171f);border:1px solid #263f50;border-radius:18px;padding:22px}
#sales.commercialSalesManagement #commercialSalesPricing{padding:0;background:transparent;border:0}
#commercialSalesPricing>.adminHero,#commercialSalesPricing>.panel{border:1px solid #263f50!important;border-radius:18px!important;background:linear-gradient(125deg,#10202b,#0b171f)!important;padding:24px!important;box-shadow:none!important}
#commercialSalesPricing>.adminHero{display:flex;align-items:center;gap:20px;margin-bottom:18px}
#commercialSalesPricing>.adminHero>div:first-of-type{flex:1;min-width:0}
#commercialSalesPricing h2{font-size:24px;letter-spacing:-.5px}
#commercialSalesPricing>.adminHero>div:first-of-type>div{color:#a2bed2;line-height:1.6;margin-top:7px}
#commercialSalesPricing .commercialSettingsIcon{display:grid;place-items:center;width:76px;height:76px;border-radius:20px;background:#ff941e16;color:#ff981f;flex-shrink:0}
#commercialSalesPricing .commercialSettingsIcon svg{width:40px;height:40px}
#commercialSalesPricing .summary{display:flex;gap:14px;flex-wrap:wrap}
#commercialSalesPricing .summary>div{display:grid;grid-template-columns:48px 1fr;gap:4px 14px;align-items:center;padding:16px;border-radius:16px;background:#ff981f12}
#commercialSalesPricing .summary>div:nth-child(2){background:#a7c8e70d}
#commercialSalesPricing .commercialPriceIcon{grid-row:1/3;display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#ff981f15;color:#ff981f}
#commercialSalesPricing .summary>div:nth-child(2) .commercialPriceIcon{color:#d6e5f1;background:#b4cce713}
#commercialSalesPricing .commercialPriceIcon svg{width:27px;height:27px}
#commercialSalesPricing .summary b{font-size:23px;white-space:nowrap}
#commercialSalesPricing .summary small{color:#a2bed2}
#commercialSalesPricing .panelhead h2{border-left:5px solid #ff981f;padding-left:14px}
#commercialSalesPricing .tag{display:inline-flex;align-items:center;gap:7px;background:#ff981f0d!important;color:#ff981f!important;border:1px solid #6e4927;border-radius:22px;padding:8px 12px}
#commercialSalesPricing .tag svg{width:19px;height:19px}
#commercialSalesPricing .formgrid{margin:24px 0;gap:22px}
#commercialSalesPricing .formgroup label{display:block;color:#a2bed2;font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
#commercialSalesPricing input,#commercialSalesPricing select{width:100%;min-height:52px;background:#0e1c26;border:1px solid #354c5d;border-radius:12px;padding:13px 16px;color:#f3f7fc}
#commercialSalesPricing button{display:inline-flex;align-items:center;gap:12px;background:linear-gradient(120deg,#ff981f,#f5881c);border:0;color:#101820;padding:15px 22px;border-radius:13px;font-size:15px}
#commercialSalesPricing button svg{width:22px;height:22px}
@media(max-width:1100px){#commercialSalesPricing>.adminHero{flex-wrap:wrap}#commercialSalesPricing .summary{width:100%}}
@media(max-width:650px){#sales.commercialSalesManagement .ops>.panel{padding:15px}#commercialSalesPricing>.adminHero,#commercialSalesPricing>.panel{padding:18px!important}#commercialSalesPricing h2{font-size:21px}#commercialSalesPricing .commercialSettingsIcon{width:52px;height:52px;border-radius:14px}#commercialSalesPricing .commercialSettingsIcon svg{width:29px;height:29px}#commercialSalesPricing .summary>div{flex:1;grid-template-columns:36px 1fr;padding:12px;gap:5px 9px}#commercialSalesPricing .commercialPriceIcon{width:36px;height:36px}#commercialSalesPricing .summary b{font-size:18px}#commercialSalesPricing .formgrid{grid-template-columns:1fr}}

/* Pricing controls already identify this section; omit the repeated title and description. */
#commercialSalesPricing>.adminHero>div:first-of-type{display:none}

#commercialSalesPricing>.adminHero>[data-tool="targets"]{margin-left:auto;flex-shrink:0}

#dashboard[data-marketing-dashboard="true"] .execTop{background:linear-gradient(115deg,#0c1c26,#091219)!important}#dashboard[data-marketing-dashboard="true"] #opsTargets .opsDeadline{display:none!important}#marketingDashboardSocial .cards .card:before{display:none!important}#marketingDashboardSocial .progressrow{display:grid;grid-template-columns:120px minmax(0,1fr) 90px;gap:16px;align-items:center}#marketingDashboardSocial progress{width:100%}

.marketingPlatformChart{display:grid;gap:20px;padding:20px 0}.marketingPlatformBar{display:grid;grid-template-columns:110px minmax(0,1fr) 65px;gap:16px;align-items:center}.marketingPlatformTrack{height:20px;background:#1c303d;border-radius:6px;overflow:hidden}.marketingPlatformTrack span{display:block;height:100%;background:linear-gradient(90deg,#ff8a18,#ffbd65);border-radius:6px}.marketingPlatformBar:nth-child(2n) .marketingPlatformTrack span{background:linear-gradient(90deg,#278aff,#72c4ff)}.marketingPlatformBar strong{text-align:right;color:#ff9b27}@media(max-width:600px){.marketingPlatformBar{grid-template-columns:80px minmax(0,1fr) 45px;gap:8px}}

.marketingMonthlyGoals .card:before{display:none!important}.marketingMonthlyGoals .card{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;column-gap:16px!important;align-content:start}.marketingMonthlyGoals .card>*{grid-column:2;margin-left:0!important}.marketingMonthlyGoals .marketingGoalIcon{grid-column:1;grid-row:1/5;display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:#ff950020;color:#ff951b}.marketingGoalIcon svg{display:block;width:28px;height:28px}.marketingMonthlyGoals .marketingGoalIcon-visits{color:#329aff;background:#329aff20}.marketingMonthlyGoals .marketingGoalIcon-sales{color:#19ce80;background:#19ce8020}

#opsPerformance .marketingAchievement{display:flex!important;align-items:center;gap:5px;color:#22d782!important;font-size:13px;font-weight:700;margin-top:10px;grid-column:1/-1}#opsPerformance .marketingAchievement svg{width:19px;height:19px;flex:none}

#opsPerformance .marketingHasTarget{position:relative;padding-top:42px!important}#opsPerformance .marketingTargetNumber{position:absolute;top:12px;right:18px;font-size:11px;font-weight:600;line-height:16px;color:#a7cce3;white-space:nowrap;pointer-events:none}
