/*
 * Whole Business Engine approved dark-canvas contract.
 *
 * Leads is the visual reference: a nearly black workspace canvas, dark blue
 * structural surfaces, clear light type, and orange reserved for intent.
 * This file loads last so an older page stylesheet cannot quietly restore a
 * light page background. The focused Painting estimator now follows this same
 * approved canvas while retaining its own panel hierarchy and pricing colors.
 */
:root{
  --wbe-approved-canvas:#020811;
  --wbe-approved-surface:#06111b;
  --wbe-approved-border:#263d51;
  --wbe-approved-text:#f5f7fa;
  --wbe-approved-action-orange:#f45a0a;
}

html,
body,
#app{
  background:var(--wbe-approved-canvas)!important;
}

body:not(:has(.painting-module-shell)) .premium-app,
body:not(:has(.painting-module-shell)) .premium-app main,
body:not(:has(.painting-module-shell)) .premium-app .content{
  background:var(--wbe-approved-canvas)!important;
}

/* Every application page begins on the same dark field. Individual content
   cards retain their own hierarchy below; this prevents an entire workspace
   from becoming pale when a legacy page rule wins the cascade. */
body:not(:has(.painting-module-shell)) .premium-app .content>:is(div,section,main){
  background-color:var(--wbe-approved-canvas)!important;
}

/* Painting previously kept an older #0b0b0b page field that reads noticeably
   lighter beside the approved application canvas. Keep the estimator's borders
   and information hierarchy, but return the entire working field to the same
   near-black background used everywhere else. */
body:has(.painting-module-shell) .premium-app,
body:has(.painting-module-shell) .premium-app>main,
body:has(.painting-module-shell) .premium-app>main>section.content,
body:has(.painting-module-shell) .premium-app .hgc-root,
body:has(.painting-module-shell) .premium-app .hgc-page,
body:has(.painting-module-shell) .premium-app .home-repair-painting-embed,
body:has(.painting-module-shell) .premium-app .home-repair-painting-embed>.proposal-page,
body:has(.painting-module-shell) .premium-app .proposal-section-shell,
body:has(.painting-module-shell) .premium-app .proposal-page.project-builder-page,
body:has(.painting-module-shell) .premium-app .pe-layout,
body:has(.painting-module-shell) .premium-app .painting-module-shell,
body:has(.painting-module-shell) .premium-app .painting-project-builder,
body:has(.painting-module-shell) .premium-app .painting-module-builder{
  background:var(--wbe-approved-canvas)!important;
}

body:has(.home-repair-painting-embed) .premium-app,
body:has(.home-repair-painting-embed) .premium-app>main,
body:has(.home-repair-painting-embed) .premium-app>main>section.content,
body:has(.home-repair-painting-embed) .premium-app .content,
body:has(.home-repair-painting-embed) .premium-app .home-repair-painting-embed,
body:has(.home-repair-painting-embed) .premium-app .home-repair-painting-embed>.proposal-page,
body:has(.home-repair-painting-embed) .premium-app .proposal-page.pe-live,
body:has(.home-repair-painting-embed) .premium-app .pe-layout{
  background:var(--wbe-approved-canvas)!important;
}

body:has(.home-repair-painting-embed) .premium-app .topbar{
  position:static!important;
  top:auto!important;
}

body:has(.painting-module-shell) .home-repair-painting-embed :is(
  .pe-main,
  .paint-rooms,
  .painting-pricing-workspace,
  .pe-tool-panel,
  .painting-estimator-section,
  .painting-room-workspace
){
  background-color:#040d16!important;
}

body:has(.painting-module-shell) .home-repair-painting-embed :is(
  .paint-pricing-card,
  .paint-summary-card,
  .paint-room-list>article,
  .paint-addon-row
){
  background-color:var(--wbe-approved-surface)!important;
}

/* Shared operational surfaces. These classes are reused across Dashboard,
   Command Center, Leads, Customers, Calendar, Jobs, Invoices, Workforce,
   Marketing, Reports, Photos, Territory, Founder, and Settings. */
body:not(:has(.painting-module-shell)) .premium-app :is(
  .page-intro,
  .panel,
  .card,
  .metric,
  .notice,
  .workspace-panel,
  .workspace-card,
  .software-card,
  .summary-card,
  .customer-workspace,
  .customer-main,
  .customer-side,
  .deal-panel,
  .chat-panel,
  .template-row,
  .empty-box,
  .report-row,
  .invoice-reference-page,
  .invoice-detail-page
){
  background-color:var(--wbe-approved-surface)!important;
  border-color:var(--wbe-approved-border)!important;
}

/* Finance uses the same extra-dark hierarchy as the dashboard, not a lighter
   bookkeeping skin. Detail panels keep their existing semantic accents. */
body:not(:has(.painting-module-shell)) .premium-app .invoice-reference-page,
body:not(:has(.painting-module-shell)) .premium-app .invoice-detail-page{
  color:var(--wbe-approved-text)!important;
}

body:not(:has(.painting-module-shell)) .premium-app .invoice-reference-ledger,
body:not(:has(.painting-module-shell)) .premium-app .invoice-attention-card,
body:not(:has(.painting-module-shell)) .premium-app .invoice-attention-assistant,
body:not(:has(.painting-module-shell)) .premium-app .invoice-detail-header,
body:not(:has(.painting-module-shell)) .premium-app .invoice-detail-customer-strip,
body:not(:has(.painting-module-shell)) .premium-app .invoice-detail-panel{
  background:#06111b!important;
  border-color:var(--wbe-approved-border)!important;
  box-shadow:none!important;
}

/* Keep bright surfaces only where the interface deliberately asks for action. */
body:not(:has(.painting-module-shell)) .premium-app .primary,
body:not(:has(.painting-module-shell)) .premium-app button.primary{
  /* The compact Add Lead action is the approved orange reference. Keep every
     primary action card on that same deeper, solid orange—not the lighter
     yellow-orange gradient that had started to drift into the dashboard. */
  background:var(--wbe-approved-action-orange)!important;
  border-color:var(--wbe-approved-action-orange)!important;
}

/* Lead detail uses the same action color in both locations. The right-rail
   Project Builder cue must not drift toward the lighter legacy orange while
   Schedule Appointment uses the approved action token. */
body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-header-primary,
body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-project-builder-card .lead-project-builder-btn{
  background:var(--wbe-approved-action-orange)!important;
  border:1px solid var(--wbe-approved-action-orange)!important;
  color:#090d12!important;
  box-shadow:none!important;
  text-shadow:none!important;
}

body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-header-primary:hover,
body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-header-primary:focus-visible,
body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-project-builder-card:hover .lead-project-builder-btn,
body:not(:has(.painting-module-shell)) .premium-app .lead-customer-modal .lead-project-builder-card:focus-visible .lead-project-builder-btn{
  background:#c94a08!important;
  border-color:#c94a08!important;
  color:#090d12!important;
}

/* Dashboard field actions are deliberately quiet until a pointer or keyboard
   reaches them. The orange ring gives every available action the same clear
   affordance without making the resting dashboard look over-highlighted. */
.dashboard-v1 .command-center-final .dashboard-command-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(96px,auto))!important;
  grid-template-areas:"lead schedule" "project project"!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action{
  /* Large areas make the shared action orange feel brighter than the compact
     Add Lead button. Use a deeper companion orange here so the three large
     dashboard actions have the same perceived weight without changing the
     smaller approved button. */
  background:#d85a0e!important;
  border-color:#e56d22!important;
  color:#090d12!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 6px 14px rgba(0,0,0,.2)!important;
  text-shadow:none!important;
  filter:none!important;
  transition:transform .16s ease,box-shadow .16s ease,outline-color .16s ease!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action :is(svg,span,small){
  color:#090d12!important;
  text-shadow:none!important;
  filter:none!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action small{
  color:#1a110b!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action:hover,
.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action:focus-visible{
  background:#e86a1c!important;
  border-color:#ff9a4f!important;
  outline:2px solid rgba(255,154,79,.72)!important;
  outline-offset:1px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px rgba(0,0,0,.26)!important;
  transform:translateY(-1px)!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action:active{
  transform:translateY(0)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 10px rgba(0,0,0,.22)!important;
}

/* Project Builder keeps its deeper burnt-orange identity while the pointer or
   keyboard focus is on it. A press darkens the card slightly instead of
   flashing the washed-out interaction orange used by the shared action rule. */
.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action[data-project-builder-start]:hover,
.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action[data-project-builder-start]:focus-visible{
  background:#d85a0e!important;
  border-color:#ef762d!important;
  color:#090d12!important;
  filter:none!important;
  outline:2px solid rgba(239,118,45,.56)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 16px rgba(0,0,0,.25)!important;
}

.dashboard-v1 .command-center-final .dashboard-command-actions .dashboard-action[data-project-builder-start]:active{
  background:#c94a08!important;
  border-color:#df6218!important;
  color:#090d12!important;
  filter:none!important;
  transform:translateY(0)!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.2),0 4px 10px rgba(0,0,0,.22)!important;
}

/* Keep the approved two-column command center usable on laptop-width canvases. */
@media (min-width:1181px) and (max-width:1500px){
  .dashboard-v1 .dashboard-command-strip.command-center-final{
    grid-template-columns:minmax(280px,.88fr) minmax(0,1.32fr)!important;
  }
}

/* Command Center route workflow: one compact route surface with clear next
   actions. The details are intentionally smaller than the customer/job name,
   and unavailable weather stays legible without becoming the visual focus. */
.command-center-modern :is(.weather-refresh-btn,.weather-calendar-card .btn,.command-live-route>.head .actions .btn){
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
}

.command-center-modern .command-live-route>.head .actions .btn{
  min-height:42px!important;
  padding:9px 14px!important;
}

.command-center-modern .command-route-summary{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}

.command-center-modern .command-route-summary-action{
  appearance:none!important;
  width:100%!important;
  min-width:0!important;
  min-height:62px!important;
  display:grid!important;
  align-content:center!important;
  gap:4px!important;
  padding:10px 11px!important;
  border:1px solid rgba(51,65,85,.88)!important;
  border-radius:8px!important;
  background:#050d17!important;
  color:#f8fafc!important;
  text-align:left!important;
  cursor:pointer!important;
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  text-shadow:none!important;
  filter:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}

.command-center-modern .command-route-summary-action span{
  color:#cbd5e1!important;
  font-size:.76rem!important;
  font-weight:650!important;
  line-height:1.15!important;
}

.command-center-modern .command-route-summary-action strong{
  color:#f8fafc!important;
  font-size:.92rem!important;
  font-weight:700!important;
  line-height:1.16!important;
}

.command-center-modern .command-route-summary-action:hover,
.command-center-modern .command-route-summary-action:focus-visible{
  border-color:#ff8618!important;
  outline:2px solid #ff8618!important;
  outline-offset:1px!important;
  box-shadow:0 0 0 3px rgba(255,134,24,.18)!important;
  background:#0a1723!important;
}

.command-center-modern .route-stop-card{
  gap:12px!important;
  padding:12px!important;
}

.command-center-modern .route-stop-card dl{
  gap:8px!important;
}

.command-center-modern .route-stop-card dt{
  font-size:10px!important;
  font-weight:650!important;
  line-height:1.12!important;
}

.command-center-modern .route-stop-card dd{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.18!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
}

.command-center-modern .route-stop-card dd.status-unavailable{
  font-size:12px!important;
  font-weight:650!important;
}

.command-center-modern :is(.crew-load-grid .empty-box,.conflict-list .ok-box){
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  font-size:.92rem!important;
  font-weight:650!important;
}

@media(max-width:760px){
  .command-center-modern .command-route-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .command-center-modern .command-route-summary-action:last-child{grid-column:1/-1!important;}
}

/* Lead board reliability: header controls use the same crisp text treatment as
   the approved dashboard, while drag targets make every pipeline move visible. */
.premium-app.lead-reference-shell .lead-header-actions :is(button,button span,button b){
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-synthesis:none!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app.lead-reference-shell .lead-header-actions button{
  transform:none!important;
  will-change:auto!important;
}

.premium-app.lead-reference-shell .lead-kanban .lead-ticket.dragging{
  opacity:.45!important;
  cursor:grabbing!important;
}

.premium-app.lead-reference-shell .lead-kanban .lead-column.drop-ready{
  border-color:#ff8618!important;
  background:#0d1b28!important;
  box-shadow:inset 0 0 0 2px rgba(255,134,24,.46),0 0 0 3px rgba(255,134,24,.12)!important;
}

.premium-app.lead-reference-shell .lead-kanban .lead-column.drop-ready .lead-column-head{
  color:#ffb15a!important;
}

/* Customers workspace: equal primary actions, calm legible controls, and a
   hidden native scrollbar for a longer activity history. */
.premium-app.customer-reference-shell .customer-preview-build-project-v10,
.premium-app.customer-reference-shell .customer-open-workspace-v8{
  box-sizing:border-box!important;
  width:164px!important;
  min-width:164px!important;
  height:40px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app.customer-reference-shell .customer-directory-header-actions-v8 :is(.customer-directory-bulk-v8,.customer-inline-upload){
  box-sizing:border-box!important;
  min-width:92px!important;
  height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:0 15px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app.customer-reference-shell .customer-directory-panel-v8>nav button{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.15!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app.customer-reference-shell .customer-preview-card-v8.recent{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}

.premium-app.customer-reference-shell .customer-preview-card-v8.recent .customer-card-heading-v8{
  flex:0 0 auto!important;
}

.premium-app.customer-reference-shell .customer-preview-recent-scroll-v8{
  min-height:0!important;
  max-height:clamp(260px,40vh,420px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}

.premium-app.customer-reference-shell .customer-preview-recent-scroll-v8::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}

/* Customer full-list refinement: keep the action dock clear of the browser
   edge and use the same crisp text standard as the approved workspace header. */
@media(min-width:701px){
  .premium-app.customer-reference-shell .crm-shared-list-customer .crm-shared-customer-row .crm-actions-cell{
    box-sizing:border-box!important;
    padding-right:24px!important;
  }
}

.premium-app.customer-reference-shell .customer-list-filterbar-v9 .crm-clear-filters,
.premium-app.customer-reference-shell .crm-shared-list-customer .crm-shared-pagination :is(button,b,select){
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app.customer-reference-shell .crm-shared-list-customer .crm-shared-pagination :is(button,b,select){
  min-height:38px!important;
}

/* Proposal Pipeline — real row-count control with the approved orange active state. */
.premium-app .proposal-reference-pipeline .proposal-reference-list{
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
}

.premium-app .proposal-reference-pipeline .proposal-reference-list::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}

.premium-app .proposal-reference-footer .proposal-reference-page-size{
  justify-self:end;
  display:block;
}

.premium-app .proposal-reference-footer .proposal-reference-page-size select{
  min-height:34px!important;
  padding:0 30px 0 11px!important;
  border:1px solid #344253!important;
  border-radius:6px!important;
  background:#071521!important;
  color:#d5dee7!important;
  color-scheme:dark!important;
  accent-color:#ff7427!important;
  box-shadow:none!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:12.5px!important;
  font-weight:750!important;
  line-height:1!important;
  -webkit-font-smoothing:auto!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app .proposal-reference-footer .proposal-reference-page-size select:hover,
.premium-app .proposal-reference-footer .proposal-reference-page-size select:focus,
.premium-app .proposal-reference-footer .proposal-reference-page-size select:focus-visible,
.premium-app .proposal-reference-footer .proposal-reference-page-size select:active{
  border-color:#ff7427!important;
  outline:1px solid #ff7427!important;
  outline-offset:1px!important;
  background:#0b1822!important;
  color:#fff!important;
  box-shadow:none!important;
}

.premium-app .proposal-reference-footer .proposal-reference-page-size select option{
  background:#071521!important;
  color:#f7f9fb!important;
}

.premium-app .proposal-reference-footer .proposal-reference-page-size select option:checked{
  background:#8f3c00!important;
  color:#fff!important;
}

/* The status filter is one field: the label owns the orange focus state, not a second nested border. */
.premium-app .proposal-reference-pipeline .proposal-reference-filter{
  min-width:148px!important;
  gap:8px!important;
}

.premium-app .proposal-reference-pipeline .proposal-reference-filter select,
.premium-app .proposal-reference-pipeline .proposal-reference-filter select:hover,
.premium-app .proposal-reference-pipeline .proposal-reference-filter select:focus,
.premium-app .proposal-reference-pipeline .proposal-reference-filter select:focus-visible,
.premium-app .proposal-reference-pipeline .proposal-reference-filter select:active{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#f5f6f7!important;
}

.premium-app .proposal-reference-pipeline .proposal-reference-filter:hover,
.premium-app .proposal-reference-pipeline .proposal-reference-filter:focus-within{
  border-color:#ff7427!important;
  outline:1px solid #ff7427!important;
  outline-offset:1px!important;
  background:#0b1822!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

/* Keep the right-side columns inside the table instead of crowding the edge. */
@media(min-width:1051px){
  .premium-app .proposal-reference-pipeline :is(.proposal-reference-columns,.proposal-reference-row){
    padding-right:54px!important;
  }
}

@media(max-width:680px){
  .premium-app .proposal-reference-footer .proposal-reference-page-size{justify-self:start;}
}

/* Calendar workspace: remove duplicate date chrome, restore legible controls,
   and keep Month cells closer to the square working shape requested by field users. */
.premium-app .app-page-history{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  gap:5px!important;
}

.premium-app .app-page-history .icon-btn{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #30465b!important;
  border-radius:7px!important;
  background:#091725!important;
  color:#edf4fa!important;
  box-shadow:none!important;
}

.premium-app .app-page-history .icon-btn:not(:disabled):hover,
.premium-app .app-page-history .icon-btn:not(:disabled):focus-visible{
  border-color:#ff7a00!important;
  background:#101f2e!important;
  color:#ff9a3d!important;
  outline:0!important;
}

.premium-app .app-page-history .icon-btn:disabled{opacity:.38!important;cursor:not-allowed!important;}
.premium-app .app-page-history .icon-btn svg{width:17px!important;height:17px!important;stroke-width:2!important;}

.premium-app .ironflow-calendar-page .calendar-focus-strip{
  grid-template-columns:1fr!important;
}

.premium-app .ironflow-calendar-page .calendar-control-deck{
  display:grid!important;
  gap:7px!important;
  margin:0 0 8px!important;
}

.premium-app .ironflow-calendar-page .calendar-control-deck>.calendar-focus-strip,
.premium-app .ironflow-calendar-page .calendar-control-deck>.calendar-month-availability-v4{
  margin:0!important;
}

.premium-app .ironflow-calendar-page .calendar-focus-grid{
  grid-template-columns:repeat(9,minmax(108px,1fr))!important;
}

.premium-app .ironflow-calendar-page .month-calendar-grid-v4{
  grid-template-rows:28px repeat(6,154px)!important;
  height:952px!important;
  min-height:952px!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-day{
  min-height:154px!important;
  overflow:hidden!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events{
  height:100px!important;
  min-height:0!important;
  max-height:100px!important;
  grid-auto-rows:48px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:#f58216 #0a151f!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events::-webkit-scrollbar{
  display:block!important;
  width:4px!important;
  height:4px!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events::-webkit-scrollbar-track{
  background:#0a151f!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events::-webkit-scrollbar-thumb{
  border-radius:999px!important;
  background:#f58216!important;
}

.premium-app .ironflow-calendar-page .calendar-board-head :is(h2,button,label,select,span){
  font-family:"Segoe UI",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app .ironflow-calendar-page .calendar-board-head{
  min-height:58px!important;
  gap:13px!important;
}

.premium-app .ironflow-calendar-page .calendar-board-head>h2{
  font-size:19px!important;
  font-weight:800!important;
}

.premium-app .ironflow-calendar-page .calendar-board-view-controls{
  grid-template-columns:repeat(4,84px)!important;
}

.premium-app .ironflow-calendar-page .calendar-board-view-controls .calendar-segment,
.premium-app .ironflow-calendar-page .calendar-board-head-actions :is(.calendar-nav-btn,.calendar-nav-today,.calendar-tool-btn){
  min-height:40px!important;
  height:40px!important;
  font-size:13px!important;
  font-weight:750!important;
}

.premium-app .ironflow-calendar-page .calendar-weather-filter>span,
.premium-app .ironflow-calendar-page .calendar-weather-filter select{
  font-size:12px!important;
  font-weight:700!important;
}

.premium-app .ironflow-calendar-page .calendar-board-head-actions .calendar-weather-filter{
  min-width:198px!important;
  min-height:40px!important;
  height:40px!important;
}

.premium-app .ironflow-calendar-page .calendar-month-availability-v4{
  min-height:64px!important;
}

.premium-app .ironflow-calendar-page .calendar-month-availability-heading-v4 small{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:800!important;
}

.premium-app .ironflow-calendar-page .calendar-month-availability-heading-v4 strong{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:800!important;
}

.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 button,
.premium-app .ironflow-calendar-page .calendar-month-route-v4{
  min-height:42px!important;
  height:42px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:750!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 .add-slot,
.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 .add-slot:hover,
.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 .add-slot:focus-visible,
.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 .add-slot:active{
  border-color:#ff7427!important;
  background:linear-gradient(180deg,#f45a0a 0%,#d94308 100%)!important;
  color:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}

.premium-app .ironflow-calendar-page .calendar-month-open-slots-v4 .add-slot svg{color:#fff!important;}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .request-queue-title-icon{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .request-queue-title-icon svg{
  width:20px!important;
  height:20px!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .head h2{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.08!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .head :is(.eyebrow,div>span){
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .request-card-head strong{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel :is(.lead-age-badge,.request-meta span){
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
}

.premium-app .ironflow-calendar-page:not(.ironflow-production-calendar-page) .calendar-shell .request-queue-panel .calendar-request-actions{
  margin:0 auto!important;
}

@media(max-width:760px){
  .premium-app .app-page-history .icon-btn{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;}
  .premium-app .ironflow-calendar-page .month-calendar-grid-v4{grid-template-rows:28px repeat(6,104px)!important;height:auto!important;min-height:652px!important;}
  #app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-day{min-height:104px!important;overflow:hidden!important;}
  #app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events{
    height:60px!important;
    min-height:0!important;
    max-height:60px!important;
    grid-auto-rows:29px!important;
    gap:2px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-width:none!important;
  }
  #app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-events::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
}

@media(max-width:700px){
  .premium-app.customer-reference-shell .customer-preview-build-project-v10,
  .premium-app.customer-reference-shell .customer-open-workspace-v8{width:100%!important;min-width:0!important;}
}

/* Calendar appointment preview: use the approved deep orange selection and
   keep each detail easy to read and update without opening a second page. */
.premium-app .ironflow-calendar-page .calendar-board-view-controls .calendar-segment.active-chip,
.premium-app .ironflow-calendar-page .calendar-tool-mode.active-chip{
  border-color:#ff7427!important;
  background:linear-gradient(180deg,#f45a0a 0%,#d94308 100%)!important;
  color:#fff!important;
  box-shadow:none!important;
}

.premium-app .ironflow-calendar-page .calendar-event-map-v2{
  width:27px!important;
  height:27px!important;
}

.premium-app .ironflow-calendar-page .calendar-event-map-v2 svg{
  width:16px!important;
  height:16px!important;
}

.calendar-appointment-hover :is(.calendar-hover-time,.calendar-hover-edit-v2,.calendar-hover-edit-v2 span,.calendar-hover-note-composer,.calendar-hover-note-save,dl dt,dl dd){
  font-family:"Segoe UI",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  -moz-osx-font-smoothing:auto!important;
  text-rendering:optimizeLegibility!important;
}

.calendar-appointment-hover .calendar-hover-time{
  color:#ffad52!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.2!important;
}

.calendar-appointment-hover .calendar-hover-edit-v2{
  min-width:100px!important;
  min-height:38px!important;
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:800!important;
}

.calendar-appointment-hover .calendar-hover-edit-v2 svg{
  width:16px!important;
  height:16px!important;
}

.calendar-appointment-hover dl dt{
  font-size:10px!important;
  font-weight:750!important;
  line-height:1.2!important;
  text-transform:none!important;
}

.calendar-appointment-hover dl dd{
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.35!important;
}

.calendar-appointment-hover .calendar-hover-contact-v2.map svg{
  width:18px!important;
  height:18px!important;
  flex-basis:18px!important;
}

.calendar-appointment-hover .calendar-hover-notes-v4{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:6px 8px!important;
}

.calendar-appointment-hover .calendar-hover-note-history{
  grid-column:1/-1!important;
  max-height:44px!important;
  overflow-y:auto!important;
  color:#eaf2f9!important;
  white-space:normal!important;
}

.calendar-appointment-hover .calendar-hover-notes-empty{
  color:#a9bdcc!important;
}

.calendar-appointment-hover .calendar-hover-note-composer{
  grid-column:1!important;
  display:grid!important;
  gap:3px!important;
  color:#a9bdcc!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-transform:none!important;
}

.calendar-appointment-hover .calendar-hover-note-composer textarea{
  height:38px!important;
  min-height:38px!important;
  max-height:72px!important;
  padding:7px 8px!important;
  border:1px solid #365066!important;
  border-radius:6px!important;
  background:#07131d!important;
  color:#f4f7fa!important;
  font:600 12px/1.35 "Segoe UI",Arial,sans-serif!important;
  resize:vertical!important;
}

.calendar-appointment-hover .calendar-hover-note-composer textarea:focus{
  border-color:#ff7427!important;
  outline:1px solid #ff7427!important;
  outline-offset:1px!important;
}

.calendar-appointment-hover .calendar-hover-note-save{
  grid-column:2!important;
  align-self:end!important;
  justify-self:end!important;
  min-height:38px!important;
  padding:0 10px!important;
  border:1px solid #ff7427!important;
  border-radius:6px!important;
  background:#15120f!important;
  color:#ffad52!important;
  font-size:12px!important;
  font-weight:800!important;
}

.calendar-appointment-hover .calendar-hover-note-save:hover,
.calendar-appointment-hover .calendar-hover-note-save:focus-visible{
  background:#21170f!important;
  color:#fff!important;
  outline:1px solid #ff7427!important;
  outline-offset:2px!important;
}

/* Calendar filter: one compact choice control that cannot crowd the Week or Day toolbar. */
.premium-app .ironflow-calendar-page .calendar-board-head-actions .calendar-weather-filter{
  grid-template-columns:minmax(116px,1fr)!important;
  min-width:134px!important;
  gap:0!important;
  padding:0 7px!important;
}

.premium-app .ironflow-calendar-page .calendar-weather-filter>span{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  white-space:nowrap!important;
}

.premium-app .ironflow-calendar-page .calendar-weather-filter select{
  padding-left:7px!important;
  border-left:0!important;
  font-size:12px!important;
  font-weight:750!important;
}

.premium-app .ironflow-calendar-page .calendar-weather-filter select:focus,
.premium-app .ironflow-calendar-page .calendar-weather-filter select:focus-visible{
  border-color:#ff7427!important;
  outline:1px solid #ff7427!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 1px rgba(255,116,39,.28)!important;
}

.dashboard-v1 .dashboard-command-strip,
.dashboard-v1 .dashboard-command-work,
.dashboard-v1 .dashboard-insight-grid,
.dashboard-v1 .dashboard-command-actions,
.dashboard-v1 .dashboard-kpi-grid,
.dashboard-v1 .dashboard-kpi-card,
.dashboard-v1 .dashboard-insight,
.dashboard-v1 .dashboard-pipeline-card,
.dashboard-v1 .dashboard-list-panel,
.dashboard-v1 .dashboard-schedule-panel,
.dashboard-v1 .dashboard-automation-watch-panel{
  -webkit-font-smoothing:antialiased!important;
  text-rendering:geometricPrecision!important;
}

.dashboard-v1 .dashboard-workflow-nav{display:none!important;}

.dashboard-v1 .dashboard-command-copy h2,
.dashboard-v1 .dashboard-list-head h2,
.dashboard-v1 .dashboard-schedule-panel .head h2,
.dashboard-v1 .dashboard-automation-watch-panel .head h2,
.dashboard-v1 .pipeline-panel .head h2{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  letter-spacing:-.02em!important;
}

.dashboard-v1 .dashboard-command-copy h2{
  font-size:30px!important;
  font-weight:800!important;
  line-height:1.04!important;
  letter-spacing:-.03em!important;
}

.dashboard-v1 .dashboard-command-copy p{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:14px!important;
  line-height:1.35!important;
  letter-spacing:0!important;
}

.dashboard-v1 .dashboard-insight-grid .dashboard-insight strong{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:19px!important;
  line-height:1.06!important;
  letter-spacing:-.025em!important;
}

.dashboard-v1 .dashboard-insight-grid .dashboard-insight small{
  font-size:12px!important;
  line-height:1.22!important;
  letter-spacing:0!important;
}

.dashboard-v1 .dashboard-kpi-card strong{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:22px!important;
  line-height:1!important;
  letter-spacing:-.03em!important;
}

.dashboard-v1 .dashboard-kpi-card small,
.dashboard-v1 .dashboard-pipeline-card small,
.dashboard-v1 .dashboard-list-row small,
.dashboard-v1 .dashboard-automation-row small,
.dashboard-v1 .dashboard-schedule-row small{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:12px!important;
  line-height:1.22!important;
  letter-spacing:0!important;
}

.dashboard-v1 .dashboard-list-panel p,
.dashboard-v1 .dashboard-schedule-panel p,
.dashboard-v1 .dashboard-automation-watch-panel p,
.dashboard-v1 .dashboard-list-row strong,
.dashboard-v1 .dashboard-pipeline-card strong{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:14px!important;
  line-height:1.2!important;
}

.dashboard-v1 .dashboard-kpi-card b{display:none!important;}

.command-center-modern .command-kpi-copy small{display:none!important;}
.command-center-modern .command-kpi-copy,
.command-center-modern .command-kpi-copy strong,
.command-center-modern .command-kpi-copy span,
.command-center-modern .command-kpi{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  text-rendering:geometricPrecision!important;
}
.command-center-modern .command-kpi-copy strong{
  font-size:24px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
}
.command-center-modern .command-card .head h2,
.command-center-modern .route-assistant-stops .route-stop-card strong{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  text-shadow:none!important;
  -webkit-font-smoothing:subpixel-antialiased!important;
  text-rendering:geometricPrecision!important;
}
.command-center-modern .command-card .head h2{font-size:19px!important;line-height:1.08!important;}
.command-center-modern .route-assistant-stops .route-stop-card strong{font-size:16px!important;line-height:1.12!important;}
.command-center-modern .route-assistant-stops .route-stop-card small,
.command-center-modern .route-assistant-stops .route-stop-card span{
  font-family:"Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif!important;
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:0!important;
  text-shadow:none!important;
}
.command-center-modern .workflow-nav-standard,
.command-center-modern .dashboard-workflow-nav,
.command-center-modern .app-page-history{display:none!important;}
