/* visit-view-overrides.css */

.visit-view-estimate-item-container h6 {
  margin: 2px 0;
  line-height: 1.2;
}
/* visit-view-overrides.css */

.visit-view-estimate-item-container .cell.large-12 h6 {
  margin: 2px 0;
  line-height: .8;
}
/* ==========================================
   CHAT VISUAL FLASH EFFECT
========================================== */

.chat-flash {
  animation: chatFlash 1.2s ease;
}

@keyframes chatFlash {
  0% { background-color: #fff3cd; }
  100% { background-color: transparent; }
}
/* ==========================================
   CHAT AGGREGATED NOTIFICATION BANNER
========================================== */

.chat-notification-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1b4f72;
  color: #fff;
  padding: 16px 22px;
  border-radius: 8px;
  z-index: 9999;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  animation: slideInChatBanner 0.25s ease;
}

/* Reporter support stays visible without blocking the app. Opening a ticket
   acknowledges its notice; minimize retains the right-side ticket reminder. */
.support-reporter-notice {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 10020;
  width: min(420px, calc(100vw - 40px));
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid #99c625;
  border-radius: 8px;
  background: #ffffff;
  color: #102231;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.support-reporter-notice-copy { min-width: 0; flex: 1 1 auto; }
.support-reporter-notice strong { display: block; margin-bottom: 4px; color: #365f27; }
.support-reporter-notice p { margin: 0; overflow-wrap: anywhere; }
.support-reporter-notice span { display: block; margin-top: 6px; color: #526778; font-size: .82rem; }
.support-reporter-notice .button { flex: 0 0 auto; margin: 0; padding: 10px 12px; background: #99c625; color: #102231; font-weight: 700; }
.support-reporter-notice .button:hover,
.support-reporter-notice .button:focus { background: #82a81f; color: #102231; }
.support-reporter-notice-minimize { flex:0 0 auto; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; color:#526778; font-size:24px; line-height:1; cursor:pointer; }
.support-reporter-notice-minimize:hover,.support-reporter-notice-minimize:focus { background:#edf4fa; color:#102231; }
.support-ticket-launcher { position:fixed; top:144px; right:0; z-index:10010; display:flex; align-items:center; gap:7px; margin:0; padding:12px 10px 12px 14px; border:0; border-radius:8px 0 0 8px; background:#305b7c; color:#fff; font-weight:700; box-shadow:0 6px 18px rgba(0,0,0,.22); cursor:pointer; }
.support-ticket-launcher:focus-visible,.support-ticket-flyout button:focus-visible { outline:3px solid #99c625; outline-offset:2px; }
.support-ticket-badge { min-width:20px; padding:2px 6px; border-radius:999px; background:#99c625; color:#102231; font-size:12px; text-align:center; }
.support-ticket-flyout { position:fixed; top:76px; right:12px; z-index:10021; width:min(390px,calc(100vw - 24px)); max-height:min(70vh,620px); overflow:auto; box-sizing:border-box; padding:16px; border:1px solid #9bb5c8; border-radius:8px; background:#fff; color:#102231; box-shadow:0 12px 34px rgba(0,0,0,.28); }
.support-ticket-flyout header { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.support-ticket-flyout h2 { margin:0; font-size:20px; }.support-ticket-flyout header button { width:34px; height:34px; padding:0; border:0; border-radius:50%; background:#edf4fa; color:#102231; font-size:24px; line-height:1; cursor:pointer; }
.support-ticket-flyout p { margin:10px 0; }.support-ticket-flyout ul { margin:12px 0; padding:0; list-style:none; }.support-ticket-flyout li { margin:8px 0; }
.support-ticket-flyout li button { width:100%; padding:11px; border:1px solid #d9e1e8; border-radius:6px; background:#fff; color:#102231; text-align:left; cursor:pointer; }.support-ticket-flyout li button:hover { background:#edf4fa; }
.support-ticket-flyout li strong,.support-ticket-flyout li span,.support-ticket-flyout li em { display:block; }.support-ticket-flyout li span { margin-top:3px; color:#526778; font-size:13px; }.support-ticket-flyout li em { margin-top:5px; color:#365f27; font-size:12px; font-style:normal; font-weight:700; }.support-ticket-all { width:100%; padding:10px; border:1px solid #305b7c; border-radius:4px; background:#fff; color:#305b7c; font-weight:700; cursor:pointer; }
@media (max-width: 600px) {
  .support-reporter-notice { top: 62px; left: 10px; right: 10px; width: auto; gap:8px; padding:10px; align-items:center; }
  .support-reporter-notice strong { margin:0; }.support-reporter-notice p { display:none; }.support-reporter-notice span { margin-top:2px; }
  .support-reporter-notice .button { padding:8px 10px; font-size:13px; }.support-reporter-notice-minimize { width:28px; height:28px; font-size:21px; }
  .support-ticket-launcher { top:122px; padding:10px 8px 10px 12px; font-size:13px; }
  .support-ticket-flyout { top:58px; right:8px; width:calc(100vw - 16px); max-height:calc(100dvh - 76px); padding:14px; }
}

@keyframes slideInChatBanner {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   OTS SALE MOBILE ACCEPTANCE
========================= */
.estimate-ots-reveal {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1f1f1f;
    overflow: hidden;
}

.estimate-ots-header {
    height: 60px;
    background: #111;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.estimate-ots-title {
    font-size: 20px;
    font-weight: 700;
}

.estimate-ots-rotate-container {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 30px;
}

.estimate-ots-rotate-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.estimate-ots-rotate-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.estimate-ots-rotate-message {
    font-size: 18px;
    max-width: 320px;
    line-height: 1.5;
}

.estimate-ots-signature-container {
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.estimate-ots-signature-inner {
    width: 100%;
    max-width: 1100px;
}

.estimate-ots-signature-label {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.estimate-ots-signature-pad {
    width: 100%;
    height: 55vh;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}
.estimate-ots-step-title-light {

    background: #ffffff;

    color: #333333;

    padding: 15px 20px;

    font-size: 24px;

    font-weight: 700;

    border-bottom: 1px solid #dddddd;

}
.estimate-ots-step-container {

    display: flex;

    flex-direction: column;

    height: calc(100vh - 80px);

}

.estimate-ots-terms-scroll {

    flex: 1;

    overflow-y: auto;

    background: #ffffff;

    padding: 20px;

}

.estimate-ots-step-message {

    color: #333333;

    line-height: 1.5;

    word-break: break-word;

}

.estimate-ots-footer {

    padding: 15px;

    background: #111111;

    border-top: 1px solid #333333;

}

.estimate-ots-continue-button {

    margin: 0;

}
.estimate-ots-terms-scroll {

    flex: 1;

    overflow-y: auto;

    background: #111111;

    padding: 20px;

}

.estimate-ots-step-message {

    background: #ffffff;

    border-radius: 8px;

    padding: 25px;

    color: #333333;

    line-height: 1.6;

    font-size: 16px;

    word-break: break-word;

    max-width: 1200px;

    margin: 0 auto;

}
.estimate-ots-payment-actions {

    margin-top: 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

}
/*
|--------------------------------------------------------------------------
| NORMALIZE INJECTED HTML
|--------------------------------------------------------------------------
*/

.estimate-ots-step-message p,
.estimate-ots-step-message span,
.estimate-ots-step-message div,
.estimate-ots-step-message td,
.estimate-ots-step-message li {

    color: #333333 !important;

    font-size: 16px !important;

    line-height: 1.6 !important;

    font-family: Helvetica, Arial, sans-serif !important;

}

/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/

.estimate-ots-step-message table {

    width: 100% !important;

    border-collapse: collapse !important;

    margin-bottom: 20px;

}

.estimate-ots-step-message td {

    padding: 8px;

    vertical-align: top;

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 640px) {

    .estimate-ots-step-message {

        padding: 18px;

        font-size: 15px;

    }

    .estimate-ots-step-message p,
    .estimate-ots-step-message span,
    .estimate-ots-step-message div,
    .estimate-ots-step-message td,
    .estimate-ots-step-message li {

        font-size: 15px !important;

    }

}
.estimate-ots-checkbox-label {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 500;

    margin-bottom: 15px;

}

.estimate-ots-checkbox-label span {

    color: #ffffff;

}

.estimate-ots-checkbox-label input {

    margin: 0;

    transform: scale(1.3);

}
.estimate-ots-name-container {

    margin-bottom: 20px;

}

.estimate-ots-name-label {

    display: block;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 8px;

}

.estimate-ots-name-input {

    height: 50px !important;

    border-radius: 6px !important;

    border: 1px solid #cccccc !important;

    padding: 10px 14px !important;

    font-size: 18px !important;

    background: #ffffff !important;

    color: #333333 !important;

}
.estimate-ots-payment-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));

    gap: 20px;

    padding: 25px;

    overflow-y: auto;

}

.estimate-ots-payment-card {

    background: #ffffff;

    border-radius: 0;

    padding: 30px 20px;

    border: 2px solid #d5d5d5;

    text-align: center;

    transition: all 0.2s ease;

    cursor: pointer;

    box-shadow: none;

}

.estimate-ots-payment-card:hover {

    border-color: #1779ba;

    background: #f8f8f8;

}

.estimate-ots-payment-icon {

    font-size: 42px;

    color: #1779ba;

    margin-bottom: 15px;

}

.estimate-ots-payment-title {

    font-size: 22px;

    font-weight: 700;

    color: #333333;

    margin-bottom: 10px;

}

.estimate-ots-payment-description {

    font-size: 15px;

    line-height: 1.5;

    color: #666666;

}
.estimate-ots-payment-processing {

    padding: 20px;

    overflow-y: auto;

    background: #111111;

    flex: 1;

}

.estimate-ots-payment-card-shell {

    background: #ffffff;

    max-width: 1100px;

    margin: 0 auto;

    padding: 25px;

}

.estimate-ots-selected-payment {

    font-size: 26px;

    font-weight: 700;

    color: #333333;

    margin-bottom: 25px;

}

/*
|--------------------------------------------------------------------------
| INPUT NORMALIZATION
|--------------------------------------------------------------------------
*/

.estimate-ots-payment-processing input,
.estimate-ots-payment-processing select,
.estimate-ots-payment-processing textarea {

    border-radius: 0 !important;

    box-shadow: none !important;

    height: 52px;

}

/*
|--------------------------------------------------------------------------
| LABELS
|--------------------------------------------------------------------------
*/

.estimate-ots-payment-processing label {

    color: #333333;

    font-size: 15px;

    font-weight: 600;

    margin-bottom: 8px;

}
.estimate-ots-body {

    display: flex;

    flex-direction: column;

    height: calc(100vh - 70px);

    overflow: hidden;

}

.estimate-ots-step-container {

    flex: 1;

    min-height: 0;

}
.estimate-ots-step-container {

    position: relative;

    z-index: 99999;

    pointer-events: auto;

}

.estimate-ots-payment-processing {

    position: relative;

    z-index: 99999;

    pointer-events: auto;

}

.estimate-ots-payment-card-shell {

    position: relative;

    z-index: 99999;

    pointer-events: auto;

}
.estimate-ots-terms-scroll {

    pointer-events: none;

}
.estimate-ots-paytech-iframe {

    width: 100%;

    min-height: 900px;

    border: 0;

    background: #ffffff;

    display: block;

}
.estimate-ots-payment-card-shell-paytech {

    padding: 0;

    background: transparent;

    border: 0;

}
/* =========================
   FIX IMAGE CLICK BLOCK
========================= */
#SchedulerVisitReveal .visit-checklist-photos-container {
  position: relative;
  z-index: 5;
}

#SchedulerVisitReveal .visit-checklist-photos-container button {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

#SchedulerVisitReveal .visit-checklist-photos-container img {
  pointer-events: none; /* ensures click hits button */
}
#SchedulerVisitReveal .visit-checklist-photos-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Payment acceptance must occupy the visual viewport on iPad Safari. */
.estimate-ots-reveal.reveal.full {
  position: fixed !important;
  inset: 0 !important;
  /* app.css centers ordinary reveals with translateY(-50%). Fullscreen
     payment dialogs start at zero and must not inherit that translation. */
  -webkit-transform: none !important;
  transform: none !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  z-index: 2147482000 !important;
  overflow: hidden !important;
}

.reveal-overlay:has(.estimate-ots-reveal.is-open) {
  z-index: 2147481999 !important;
  overflow: hidden !important;
}

.estimate-ots-reveal .estimate-ots-header {
  box-sizing: content-box;
  flex: 0 0 auto;
  padding-top: env(safe-area-inset-top, 0px);
}

/* Ordinary reveals place Close outside their edge. These dialogs fill the
   screen, so keep a touch-sized Close control inside the visible header. */
.estimate-ots-reveal .estimate-ots-header .close-button {
  top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  right: calc(8px + env(safe-area-inset-right, 0px)) !important;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  touch-action: manipulation;
}

.estimate-ots-reveal .estimate-ots-body {
  height: calc(100vh - 60px) !important;
  height: calc(100dvh - 60px - env(safe-area-inset-top, 0px)) !important;
  min-height: 0 !important;
}

.estimate-ots-reveal .estimate-ots-step-container {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Keep Apply Deposit step 1 inside the modal's remaining visual viewport.
   The shared signature container otherwise consumes a second full viewport,
   which pushes Approval Method above the visible area on iPad. */
#estimateDepositReveal .estimate-ots-step-container {
  flex: 1 1 auto;
}

#estimateDepositReveal .estimate-ots-signature-container {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  align-items: flex-start;
}

#estimateDepositReveal .estimate-ots-signature-inner {
  margin: 0 auto;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.estimate-ots-reveal .estimate-ots-payment-processing,
.estimate-ots-reveal .estimate-ots-payment-grid,
.estimate-ots-reveal .estimate-ots-terms-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.estimate-ots-reveal .estimate-ots-payment-button {
  min-width: 140px;
  min-height: 52px;
  touch-action: manipulation;
}

.estimate-ots-payment-feedback {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #86aebf;
  background: #eaf6fb;
  color: #173c4b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.estimate-ots-payment-feedback-error {
  border-color: #c94d42;
  background: #fff0ee;
  color: #84271f;
}

@media screen and (max-width: 820px) {
  .estimate-ots-reveal .estimate-ots-step-title-light {
    padding: 12px 16px;
    font-size: 20px;
  }

  .estimate-ots-reveal .estimate-ots-payment-processing {
    padding: 12px;
  }

  .estimate-ots-reveal .estimate-ots-payment-card-shell {
    width: 100%;
    padding: 18px;
  }

  .estimate-ots-reveal .estimate-ots-payment-actions {
    position: sticky;
    bottom: 0;
    margin: 22px -18px -18px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 2;
  }

  .estimate-ots-reveal .estimate-ots-payment-button {
    flex: 1 1 0;
    min-width: 0;
  }

  .estimate-ots-reveal .estimate-ots-paytech-iframe {
    min-height: max(680px, calc(100dvh - 135px));
  }
}
/* =========================
   FIX MODAL STACKING
========================= */

/* Main visit modal LOWER */
#SchedulerVisitReveal {
  z-index: 1000 !important;
}

/* Overlay LOWER */
.reveal-overlay {
  z-index: 1000 !important;
}

/* Photo preview HIGHER */
#checklistPhotoPreviewReveal {
  z-index: 1100 !important;
}

/* Editor modal HIGHEST */
#photoEditorModal,
#photoEditorReveal,
iframe[src*="crop"],
iframe[src*="editor"] {
  z-index: 1200 !important;
}
.error-tab a {
  color: #b30000 !important;
  font-weight: bold;
}

.error-tab a::after {
  content: " ⚠";
  color: #b30000;
}

#enablePushBtn {
    position: fixed;
    bottom: 20px;
    left: 160px; /* sits to the right of report button */
    background: rgba(0, 120, 255, 0.8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    z-index: 2147483646;
    transition: all 0.2s ease;
}
#enablePushBtn:hover {
    background: rgba(0, 120, 255, 1);
}

.scheduler-visit-add-technicians-form {
    overflow-y: auto;
    flex: 1;
}
.scheduler-visit-add-technicians-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
 /* =========================
   CHAT NOTIFICATION
 ========================= */

 .global-chat-alert-stack {
     position: fixed;
     top: 80px;
     right: 20px;
     width: 360px;
     z-index: 2147483645;
 }
 
 .global-chat-alert {
     background: #fff;
     border: 2px solid #1779ba;
     border-radius: 8px;
     box-shadow: 0 8px 20px rgba(0,0,0,0.2);
     padding: 14px;
     margin-bottom: 12px;
 }
 
 .global-chat-alert-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 8px;
 }
 
 .global-chat-alert-body {
     margin-bottom: 12px;
     font-size: 14px;
     line-height: 1.4;
 }
 
 .global-chat-alert-actions {
     display: flex;
     gap: 8px;
 }
 @keyframes chatPulse {
   0% { box-shadow: 0 0 0 0 rgba(23,121,186,0.6); }
   70% { box-shadow: 0 0 0 10px rgba(23,121,186,0); }
   100% { box-shadow: 0 0 0 0 rgba(23,121,186,0); }
 }
 
 .global-chat-alert {
   animation: chatPulse 2s infinite;
 }
 /* 🔥 allow inner sections to scroll */
 .scheduler-visit-sidebar,
 .scheduler-visit-checklist-container {
     max-height: 80vh;
     overflow-y: auto;
 }

 /* ===== REMOVE ALL ROUNDING IN ACCOUNTING ===== */
 .customer-accounting .card,
 .customer-accounting .card-divider,
 .customer-accounting .tool-block,
 .customer-accounting .tool-header,
 .customer-accounting .tool-body {
   border-radius: 0 !important;
 }
 
 /* REMOVE ROUNDED INPUTS IN ACCOUNTING */
 .customer-accounting textarea,
 .customer-accounting input,
 .customer-accounting .form-textarea {
   border-radius: 0 !important;
 }
 /* ===== MAIN CARD HEADER (GREEN) ===== */
 .customer-accounting .card-divider {
   background: #99C625;   /* Compass green */
   color: #fff;
   padding: 18px 18px;
   font-weight: 600;
 }
 
 .customer-accounting .card-divider h2 {
   margin: 0;
   font-size: 20px;
 }
 
 
 /* ===== CARD BODY CLEANUP ===== */
 .customer-accounting .card-section {
   background: #f4f4f4;
   padding: 15px;
 }
 
 
 /* ===== TOOL HEADER (KEEP DARK) ===== */
 .tool-header {
   background: #4a4a4a;
   color: #fff;
   padding: 10px 15px;
   cursor: pointer;
   font-weight: 600;
   margin-bottom: 8px;
 }
 
 
 /* ===== TOOL BODY ===== */
 .tool-body {
   background: #fff;
   padding: 15px;
   margin-bottom: 10px;
 }
 /* ===== MOBILE ===== */
 /* 📱 FORCE HIDE SCHEDULER ON MOBILE */
 body.mobile-view #scheduler_here,
 body.mobile-view .dhx_cal_container {
     display: none !important;
 }
 
 
 /* ✅ CONFIRMED EVENT STYLE */
 .event-confirmed {
     border-left: 5px solid #00c853 !important;
     position: relative;
 }
 
 /* OPTIONAL: checkmark badge */
 .event-confirmed::after {
     content: "✔";
     position: absolute;
     top: 2px;
     right: 4px;
     font-size: 12px;
     color: #00c853;
     font-weight: bold;
 }
 
 
 /* ======== ESTIMATE FOLLOWUP TWEAKS ======*/
 @media screen and (max-width: 1024px) {
   .estimates-container,
   .estimates,
   .estimates-container > .estimates > .compass-block {
     height: calc(100vh - 80px);
     overflow: hidden;
   }
 
   .estimate-view-preview-container {
     height: calc(100vh - 80px);
     overflow-y: auto;
     overflow-x: hidden;
     -webkit-overflow-scrolling: touch;
     overscroll-behavior-y: contain;
   }

   .grid-y.compass-block {
     height: calc(100vh - 80px);
     overflow: hidden;
   }
 
   .estimate-history-container {
     height: calc(100vh - 170px);
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
     padding-bottom: 20px;
   }
   
   /* 📱 Larger estimate text */
   .estimates-estimate h5,
   .estimates-estimate h6,
   .estimates-estimate p,
   .estimates-estimate small {
       font-size: 1.2rem !important;
       line-height: 1.4 !important;
   }
   
   .estimate-follow-up-actions-mobile .estimate-follow-up-action-button {
       height: 82px !important;
       font-size: 1.5rem !important;
   }
   
   /* 📱 Bigger estimate title */
   .estimates-estimate h5 {
     font-size: 2rem !important;
   }
   
   /* 📱 Bigger estimate card padding */
   .estimates-estimate-item-container {
     padding: 22px !important;
   }
   
   /* 📱 Bigger action buttons */
   .estimate-follow-up-actions-mobile .estimate-follow-up-action-button {
     height: 82px !important;
     font-size: 2rem !important;
   }
   
   /* 📱 Reduce wasted horizontal space */
   .estimates-estimate-item-container {
     padding: 10px !important;
   }
   
   .estimates-estimate {
     padding: 8px !important;
   }
   
   .estimates-estimate .grid-x {
     margin-left: 0 !important;
     margin-right: 0 !important;
   }
   
   .estimates-estimate .cell {
     padding-left: 0 !important;
     padding-right: 0 !important;
   }
 }
 
 .estimate-history-note-body {
   white-space: pre-line;
   line-height: 1.55;
 }
 
 .estimate-history-note-body strong {
   font-weight: 700;
 }
 
 .estimate-follow-up-actions-mobile {
     display: block;
     width: 100%;
     margin-top: 12px;
 }
 
 .estimate-follow-up-actions-mobile .estimate-follow-up-action-button {
     display: block;
     width: 100%;
     height: 58px;
     margin: 0 0 10px 0;
     border-radius: 0 !important;
     font-size: 18px;
     text-align: center;
 }
 
 .estimate-follow-up-actions-mobile .estimate-follow-up-action-button.success {
     background: #55bba5;
 }
 
 .estimate-follow-up-actions-mobile .estimate-follow-up-action-button.warning {
     background: #FDBC64;
 }
 
/* =========================
    GLOBAL MESSAGING
 ========================= */
 .compass-toast {
   position: fixed;
   top: 20px;
   right: 20px;
   z-index: 9999999 !important;
 
   min-width: 320px;
   max-width: 500px;
 
   padding: 16px 20px;
 
   border-radius: 0;
 
   color: #fff;
 
   font-size: 15px;
   font-weight: 600;
 
   box-shadow:
     0 8px 24px rgba(0,0,0,.18);
 
   animation:
     compassToastIn .25s ease;
 }
 
 .compass-toast.success {
   background: #99c625;
 }
 
 .compass-toast.error {
   background: #d64545;
 }
 
 .compass-toast i {
   margin-right: 10px;
 }
 
 @keyframes compassToastIn {
 
   from {
     opacity: 0;
     transform:
       translateY(-10px);
   }
 
   to {
     opacity: 1;
     transform:
       translateY(0);
   }
 
 }
 
 /* VISIT V2 MOBILE TOAST FIX */
 @media screen and (max-width: 640px) {
 
   .visit-view-v2-page .compass-toast {
     top: 74px;
     left: 12px;
     right: 12px;
 
     width: auto;
     min-width: 0;
     max-width: none;
 
     border-radius: 0;
   }
 
 }
 /* =========================
GOOGLE LOCATION 
 ========================= */
 
 .pac-container {
 
     z-index: 999999 !important;
 
     position: fixed !important;
 
     width: auto !important;
 
     min-width: 320px !important;
 
     max-width: 90vw !important;
 
     overflow: visible !important;
 
 }
 .estimate-form-accordion-item,
 .accordion-content,
 .callout {
 
     overflow: visible !important;
 
 }
 
 .js-off-canvas-overlay {
     pointer-events: none !important;
 }
 /* =========================
 SIGNATURE
  ========================= */
 
 .estimate-signature-image {
 
     display: block;
 
     width: 100%;
 
     max-width: 500px;
 
     margin: 0 auto;
 
 }
 
 /* =========================
    EXPANDED BUTTON CLASS
 ========================= */
.button.estimate-button-sdc {
     background: $paris-green !important;
     border-color: $paris-green !important;
     color: white !important;
 }
 
 .button.estimate-button-sdc:hover {
     background: darken($paris-green, 8%) !important;
     border-color: darken($paris-green, 8%) !important;
 }
 
 .button.estimate-button-ots {
     background: $imessage-blue !important;
     border-color: $imessage-blue !important;
     color: white !important;
 }
 
 .button.estimate-button-ots:hover {
     background: darken($imessage-blue, 8%) !important;
     border-color: darken($imessage-blue, 8%) !important;
 }
 
 .button.estimate-button-wizard {
     background: $dusky-rose-red !important;
     border-color: $dusky-rose-red !important;
     color: white !important;
 }
 
 .button.estimate-button-wizard:hover {
     background: darken($dusky-rose-red, 8%) !important;
     border-color: darken($dusky-rose-red, 8%) !important;
 }
 .selected-wizard-card{
   border:2px solid #99C625 !important;
   box-shadow:0 0 15px rgba(153,198,37,.35);
   background:#f8fff0;
 }
 /*****************************************************
 COMPASS SEARCH INPUT
 *****************************************************/
 
 .compass-search-input {
 
     height: 52px !important;
 
     border-radius: 0 !important;
 
     border: 1px solid #d8d8d8 !important;
 
     box-shadow: none !important;
 
     background: #ffffff !important;
 
     padding: 0 16px !important;
 
     font-size: 18px !important;
 
     font-weight: 500;
 
 }
 
 .compass-search-input:focus {
 
     border-color: #99C625 !important;
 
     box-shadow: none !important;
 
 }
 
 /*****************************************************
 SEARCH RESULTS CONTAINER
 *****************************************************/
 
 .compass-search-results {
 
     margin-top: 12px;
 
     border: 1px solid #e5e5e5;
 
     background: #ffffff;
 
     max-height: 70vh;
 
     overflow-y: auto;
 
 }
 
 /*****************************************************
 SEARCH RESULT CARD
 *****************************************************/
 
 .customers-search-card {
 
     padding: 16px;
 
     border-bottom: 1px solid #efefef;
 
     transition: background 0.15s ease;
 
 }
 
 .customers-search-card:hover {
 
     background: #f8f8f8;
 
 }
 
 /*****************************************************
 RESULT TEXT
 *****************************************************/
 
 .customers-search-results-list-item-content {
 
     display: block;
 
     color: #222222;
 
     font-size: 18px;
 
     font-weight: 500;
 
     line-height: 1.5;
 
     white-space: normal;
 
     word-break: break-word;
 
     text-decoration: none;
 
 }
 
 .customers-search-results-list-item-content:hover {
 
     color: #99C625;
 
 }
 
 /*****************************************************
 ACTION BUTTONS
 *****************************************************/
 
 .customers-search-dropdown-actions-container {
 
     display: flex;
 
     gap: 8px;
 
 }
 
 .customers-search-dropdown-action {
 
     width: 40px;
 
     height: 40px;
 
     display: flex;
 
     align-items: center;
 
     justify-content: center;
 
     background: #f4f4f4;
 
     color: #444444;
 
     text-decoration: none;
 
     transition: all 0.15s ease;
 
 }
 
 .customers-search-dropdown-action:hover {
 
     background: #99C625;
 
     color: #ffffff;
 
 }
 
 /*****************************************************
 REMOVE BULLETS/PADDING
 *****************************************************/
 
 .customers-search-results-list {
 
     list-style: none;
 
     margin: 0;
 
     padding: 0;
 
 }
 
 /*****************************************************
 MOBILE
 *****************************************************/
 
 @media screen and (max-width: 640px) {
 
     .customers-search-results-list-item-content {
 
         font-size: 15px;
 
     }
 
     .customers-search-card {
 
         padding: 12px;
 
     }
 
 }
 
 /*****************************************************
SQUARE BASIC STYLE
  *****************************************************/
 
 .compass-square-select {
 
     border-radius: 0 !important;
 
     -webkit-appearance: none;
 
     appearance: none;
 
     background-image: none;
 
 }
 
 /* ==========================================
    VISIT WORKSPACE V2
    COMPASS STYLE
    ========================================== */
 
.visit-view-v2 {
        padding: 0;
    }
    
    @media screen and (max-width:640px){
    
        .visit-view-v2{
            padding:10px;
        }
    
    }
 
 .visit-view-v2 .visit-section {
 
     background: #ffffff;
 
     border: 1px solid #edebf2;
 
     border-radius: 0;
 
     margin-bottom: 20px;
 
     overflow: hidden;
 
     box-shadow: none;
 
 }
 
 .visit-view-v2 .visit-section-header {
 
     cursor: pointer;
 
     padding: 20px;
 
     background: #99c625;
 
     color: #ffffff;
 
     border-radius: 0;
 
 }
 
 .visit-view-v2 .visit-section-header:hover {
 
     background: #99c625;
 
 }
 
 .visit-view-v2 .visit-section-header h3 {
 
     margin: 0;
 
     color: #ffffff;
 
     font-size: 18px;
 
     font-weight: 700;
 
 }
 
 .visit-view-v2 .visit-section-header h3 i {
 
     color: #ffffff;
 
 }
 
 .visit-view-v2 .section-count {
 
     color: rgba(255,255,255,.9);
 
 }
 
 .visit-view-v2 .visit-section-header .fa-chevron-down,
 .visit-view-v2 .visit-section-header .fa-chevron-right {
 
     color: #ffffff;
 
 }
 
 .visit-view-v2 .visit-section-body {
 
     padding: 20px;
 
     background: #ffffff;
 
 }
 
 .visit-view-v2 .text-center {
 
     padding: 40px 20px;
 
 }
 
 .visit-view-v2 .fa-spinner {
 
     color: #99c625;
 
 }
 
 @media screen and (max-width: 640px) {
 
     .visit-view-v2 .visit-section-header {
 
         padding: 8px;
 
     }
 
     .visit-view-v2 .visit-section-body {
 
         padding: 16px;
 
     }
 
 }
/* ==========================================
    VISIT V2 PAGE STRUCTURE
    Shared desktop/mobile visual only
 ========================================== */
 
 .visit-view-v2-page {
     width: 100%;
 }
 
 .visit-view-v2-page .visit-view-v2 {
     width: 100%;
 }
  /* ==========================================
    MOBILE SHELL VISIT SCROLL ONLY
    Does not affect desktop
 ========================================== */
 
 #compass-mobile-shell .visit-container {
     height: 100%;
     min-height: 0;
     overflow: hidden;
 }
 
 #compass-mobile-shell .visit {
     height: 100%;
     min-height: 0;
     display: flex;
     flex-direction: column;
     overflow: hidden;
 }
 
 #compass-mobile-shell .visit-title-container {
     flex: 0 0 auto;
 }
 
 #compass-mobile-shell .visit-view-container.visit-view-v2-page {
     flex: 1 1 auto;
     min-height: 0;
     overflow-y: auto;
     overflow-x: hidden;
     -webkit-overflow-scrolling: touch;
 }
 
 #compass-mobile-shell .visit-view-v2 {
     overflow: visible;
 }
 
 #compass-mobile-shell .visit-view-v2 .visit-section,
 #compass-mobile-shell .visit-view-v2 .visit-section-body {
     overflow: visible;
 }
 /* ==========================================
    DETAILS CARD CONTENT
    ========================================== */
 
 .visit-view-v2-page .visit-details-modern .compass-card {
     border: 1px solid #dcdcdc;
     background: #ffffff;
     box-shadow: none;
 }
 
 .visit-view-v2-page .visit-details-modern .compass-card-header {
 
     background: #7f868b;
 
     color: #ffffff;
 
     padding: 12px 18px;
 
     border: 0;
 
 }
 
 .visit-view-v2-page .visit-details-modern .compass-card-header h4 {
 
     color: #ffffff;
 
     margin: 0;
 
     font-size: 16px;
 
     font-weight: 700;
 
     line-height: 1.2;
 
 }
 
 .visit-view-v2-page .visit-details-modern .compass-card-header i {
 
     color: #ffffff;
 }
 
 /* Visit Summary */
 
 .visit-view-v2-page .visit-summary-card .compass-card-header {
 
     background: #58b8a8;
 
     padding: 12px 18px;
 
     min-height: 0;
 
 }
 .visit-view-v2-page .visit-summary-card .compass-card-header .grid-x {
 
     min-height: 0;
 
 }
 
 .visit-view-v2-page .visit-summary-card .compass-card-header h4 {
 
     color: #ffffff;
 
     margin: 0;
 
     font-size: 16px;
 
     font-weight: 700;
 
     line-height: 1.2;
 
 }
 
 .visit-view-v2-page .visit-summary-card .compass-card-header h4 i {
 
     color: #ffffff;
 
 }
 
 .visit-view-v2-page .visit-summary-card .compass-card-header .button {
 
     height: 28px;
 
     line-height: 28px;
 
     padding: 0 10px;
 
     font-size: 12px;
 
     margin: 0;
 
 }
 /* Body */
 
 .visit-view-v2-page .visit-details-modern .compass-card-body {
 
     background: #ffffff;
 
     padding: 24px;
 }
 /* VISIT V2 DOCUMENTS CARD STYLING */
 .visit-view-v2-page .visit-documents-modern .compass-card {
   margin-bottom: 16px;
   border-radius: 0;
 }
 
 .visit-view-v2-page .visit-documents-modern .compass-card-header {
   color: #ffffff;
   padding: 12px 18px;
   border: 0;
 }
 
 .visit-view-v2-page .visit-documents-modern .compass-card-header h4,
 .visit-view-v2-page .visit-documents-modern .compass-card-header h3 {
   color: #ffffff;
   margin: 0;
   font-size: 16px;
   font-weight: 700;
   line-height: 1.2;
 }
 
 /* Document Actions = Compass Teal */
 .visit-view-v2-page .visit-documents-modern .compass-card:nth-of-type(1) .compass-card-header {
   background: #58b8a8;
 }
 
 /* Document Library = Visit Details Gray */
 .visit-view-v2-page .visit-documents-modern .compass-card:nth-of-type(2) .compass-card-header {
   background: #7f868b;
 }
 
 /* tighten document card body */
 .visit-view-v2-page .visit-documents-modern .compass-card-body {
   padding: 18px;
 }
 
 /* mobile tightening */
 @media screen and (max-width: 640px) {
 
   .visit-view-v2-page .visit-documents-modern .compass-card {
     margin-bottom: 12px;
   }
 
   .visit-view-v2-page .visit-documents-modern .compass-card-header {
     padding: 12px 16px;
   }
 
   .visit-view-v2-page .visit-documents-modern .compass-card-header h4,
   .visit-view-v2-page .visit-documents-modern .compass-card-header h3 {
     font-size: 16px;
   }
 
 }
 /* ==================================================
    WIZARD RUNNER
 ================================================== */
 
 .visit-wizard-modal {
   padding:30px;
 }
 
 .visit-wizard-modal input,
 .visit-wizard-modal select,
 .visit-wizard-modal textarea {
     border-radius:0;
 }
 
.visit-wizard-modal select,
 .visit-wizard-modal input {
   width:100%;
   min-height:50px;
   font-size:clamp(16px, 2vw, 18px);
   border-radius:0;
   padding:0 15px;
   margin-bottom:20px;
 }
 
 .visit-wizard-image-option.selected-wizard-card {
     border:3px solid #99C625;
     box-shadow:0 0 12px rgba(153,198,37,.6);
 }
 
 .visit-wizard-image-option.selected-wizard-card {
     transform:scale(1.02);
 }
 
 /* QUESTION */
 
 .visit-wizard-question-container {
   text-align:center;
   padding:20px 15px 10px;
 }
 
.visit-wizard-question {
    text-align:center;
    font-size:clamp(28px, 4vw, 48px);
    font-weight:700;
    line-height:1.2;
    margin:0 0 30px;
 }
 
 .visit-wizard-question p {
    font-size:inherit;
    font-weight:inherit;
    line-height:inherit;
    margin:0;
 }
 
 /* ANSWERS */
 
 .visit-wizard-answer-button {
   min-height:90px;
   font-size:clamp(20px, 2.5vw, 28px);
   font-weight:600;
   line-height:1.3;
   padding:20px;
   white-space:normal;
   margin-bottom:15px;
 }
 
 /* PHOTO QUESTIONS */
 
 .visit-wizard-photo-question {
   text-align:center;
   font-size:clamp(24px, 3vw, 40px);
   font-weight:700;
   margin:40px 0 30px;
 }
 
 .visit-wizard-photo-card {
   cursor:pointer;
   transition:all .2s ease;
 }
 
 .visit-wizard-photo-card:hover {
   transform:scale(1.02);
 }
 
 .visit-wizard-photo-image {
   width:100%;
   height:180px;
   object-fit:cover;
   display:block;
 }
 
 /* FORM LABELS */
 
 .visit-wizard-label {
   display:block;
   margin-bottom:15px;
   font-weight:600;
   font-size:18px;
 }
 
 /* IMAGE SELECT */
 
 .visit-wizard-image-option {
   cursor:pointer;
   transition:all .2s ease;
 }
 
 .visit-wizard-option-image {
   max-width:100%;
   max-height:180px;
   margin-bottom:10px;
   display:block;
   margin-left:auto;
   margin-right:auto;
 }

 /* MOBILE */
 
 @media screen and (max-width: 640px) {
 
   .visit-wizard-modal {
     padding:15px;
   }
 
   .visit-wizard-answer-button {
     min-height:80px;
     font-size:22px;
   }
 
   .visit-wizard-photo-question {
     font-size:26px;
   }
 }
 /* ========================================
    MOBILE VISIT MODAL CLOSE BUTTON
 ======================================== */
 
 @media (max-width: 768px) {
 
   #SchedulerVisitReveal .close-button {
     top: 10px !important;
     right: 10px !important;
 
     width: 40px !important;
     height: 40px !important;
 
     padding: 0 !important;
     margin: 0 !important;
 
     font-size: 20px !important;
     line-height: 40px !important;
 
     background: rgba(0,0,0,.65);
     color: #fff !important;
 
     border-radius: 50% !important;
 
     z-index: 999999 !important;
   }
 
   #SchedulerVisitReveal .close-button i {
     font-size: 20px !important;
   }
 
 }
 /* ========================================
    MOBILE CHECKLIST MENU
 ======================================== */
 
 .mobile-checklist-item {
 
     margin-bottom: 10px;
     padding: 15px;
 
     cursor: pointer;
 
     border-left: 6px solid #d1d5db;
     background: #ffffff;
 
     border-radius: 0 !important;
     box-shadow: none !important;
 }
 
 /* COMPLETED */
 
 .mobile-checklist-item.completed {
 
     background: #99C625 !important;
     border-left: 6px solid #99C625 !important;
     color: #ffffff !important;
 }
.mobile-checklist-complete {
     position:absolute;
     top:0;
     right:0;
     font-size:24px;
     font-weight:bold;
 }
 
 .mobile-checklist-complete i {
     color:#ffffff !important;
 }
 
 /* ========================================
    MOBILE ADD TECHNICIANS
 ======================================== */
 
 .mobile-technician-card {
 
     padding: 15px;
     margin-bottom: 10px;
 
     border-left: 6px solid #99C625;
     background: #ffffff;
 
     cursor: pointer;
 }
 
 .mobile-technician-card.selected {
 
     background: #99C625;
     color: #ffffff;
 }
 
 .mobile-technician-card.selected h4,
 .mobile-technician-card.selected label,
 .mobile-technician-card.selected b {
 
     color: #ffffff !important;
 }
 /* REMOVE TECHNICIAN */
 
.mobile-remove-tech {
     background:#f5f5f5 !important;
     color:#444 !important;
     border:1px solid #ddd !important;
 }
 
 .mobile-remove-tech:hover,
 .mobile-remove-tech:focus {
     background:#f5f5f5 !important;
     color:#444 !important;
 }
 
 .mobile-remove-tech.selected {
     background:#f46524 !important;
     border-color:#f46524 !important;
     color:#fff !important;
 }
 
 .mobile-remove-tech.selected:hover,
 .mobile-remove-tech.selected:focus {
     background:#f46524 !important;
     color:#fff !important;
 }
 /* =========================
    FINALIZATION PHOTOS
 ========================= */
 
 .email-finalization-photos-container {
     width:100%;
 }
 
 .finalization-header {
     display:flex;
     justify-content:space-between;
     align-items:center;
     gap:10px;
     margin-bottom:20px;
 }
 
 .photo-section-title {
     margin-bottom:15px;
     font-weight:600;
 }
 
 .photo-grid {
     display:grid;
     grid-template-columns:
         repeat(auto-fill,minmax(160px,1fr));
     gap:15px;
 }
 
 .photo-card {
     width:100%;
 }
 
 .photo-image-container {
     position:relative;
     width:100%;
 }
 
 .photo-image-container img {
     width:100%;
     height:180px;
     object-fit:cover;
     display:block;
     border:1px solid #ddd;
 }
 
 .photo-select-button {
     position:absolute;
     top:10px;
     right:10px;
     width:42px;
     height:42px;
     border:none;
     background:rgba(0,0,0,.55);
     color:#fff;
     display:flex;
     align-items:center;
     justify-content:center;
     padding:0;
     margin:0;
 }
 
 .photo-select-button.selected {
     background:#99C625;
 }
 
 .photo-select-button i {
     font-size:18px;
 }
 
 /* =========================
    MOBILE
 ========================= */
 
 @media (max-width:768px) {
 
     .finalization-header {
         flex-direction:column;
     }
 
     .finalization-header .button {
         width:100%;
         margin:0;
     }
 
     .photo-grid {
         grid-template-columns:
             repeat(2,1fr);
     }
 
     .photo-image-container img {
         height:150px;
     }
 
 }
 /* =========================
    GENERAL LOGIC FORM (GL)
 ========================= */
 
 .gl-form-container {
     padding:15px;
     background:#fff;
 }
 
 .gl-title {
     font-size:24px;
     font-weight:600;
     color:#333;
     margin-bottom:20px;
 }
 
 .gl-field {
     margin-bottom:20px;
 }
 
 .gl-label {
     display:block;
     margin-bottom:8px;
     font-weight:600;
     color:#444;
     font-size:16px;
     line-height:1.4;
 }
 
 .gl-input {
     width:100%;
     min-height:48px;
     padding:10px;
     border:1px solid #ccc;
     font-size:16px; /* prevent iOS zoom */
     background:#fff;
     border-radius:0;
     box-shadow:none;
 }
 
 textarea.gl-input {
     min-height:120px;
     resize:vertical;
 }
 
 .gl-actions {
     margin-top:20px;
 }
 
 .gl-actions .button {
     width:100%;
     margin:0;
 }
 
 /* =========================
    MOBILE
 ========================= */
 
 @media (max-width:768px) {
 
     .gl-form-container {
         padding:10px;
     }
 
     .gl-title {
         font-size:18px;
         line-height:1.3;
     }
 
     .gl-label {
         font-size:15px;
     }
 
     .gl-input {
         font-size:16px;
     }
 
 }
 .gl-select {
     -webkit-appearance: menulist !important;
     appearance: menulist !important;
     position: relative !important;
     z-index: 1 !important;
 }
 /* =====================================
    MOBILE PAGE
 ===================================== */
 
 .mobile-schedule-page {
 
     display:flex;
 
     flex-direction:column;
 
     height:100%;

     min-height:0;
 
     overflow:hidden;
     
     background:#f7f8fa;
 }
 
 /* =====================================
    MOBILE HEADER
 ===================================== */
 
 .mobile-schedule-header {
 
     position:sticky;
 
     top:0;
 
     z-index:20;
 
     display:flex;
 
     align-items:center;
 
     justify-content:space-between;
 
     gap:10px;
 
     padding:15px;
 
     background:#fff;
 
     border-bottom:1px solid #ddd;
 }
 
 /* =====================================
    MOBILE AGENDA
 ===================================== */
 
 .mobile-schedule-agenda-scroll {
 
     flex:1;
 
     overflow-y:auto;
 
     -webkit-overflow-scrolling:touch;
 
     padding:15px;
 }
 
 .mobile-schedule-group {
 
     margin-bottom:25px;
 }
 
 .mobile-schedule-group-header {
 
     padding:12px;
 
     font-weight:600;
 
     background:#eef2f5;
 
     border-left:6px solid #2c3e50;
 }
 
 .mobile-schedule-card {
 
     margin-top:10px;
 
     padding:15px;
 
     background:#fff;
 
     border-left:5px solid #1779ba;
 
     cursor:pointer;
 }
 
 .mobile-schedule-card-time {
 
     font-weight:600;
 }
 
 .mobile-schedule-card-title {
 
     margin-top:5px;
 }
 
/* =====================================
    MOBILE VISIT OVERLAY
 ===================================== */
 
 .mobile-visit-overlay {
 
   position: fixed;
 
   top: 54px;
   left: 0;
   right: 0;
   bottom: 0;
 
   background: #f3f4f5;
   border-top: 1px solid #d6dce0;
   border-radius: 12px 12px 0 0;
   box-shadow: 0 -8px 24px rgba(44, 56, 64, .18);
 
   z-index: 99999;
 
   overflow-y: auto;
 
   -webkit-overflow-scrolling: touch;
 }
 
 .mobile-visit-content {
 
   padding: 15px;
 }
 
 .mobile-visit-toolbar {
   position: sticky;
   top: 0;
   z-index: 2;
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 10px 15px;
   padding-left: max(15px, env(safe-area-inset-left));
   background: #f3f4f5;
   border-bottom: 1px solid #d6dce0;
 }

 .mobile-visit-close {
   flex: none;
   min-width: 70px;
   min-height: 44px;
   margin: 0;
   padding: 10px 14px;
   border: 1px solid #f46524;
   border-radius: 6px;
   background: #f46524;
   color: #1f2930;
   font-size: 14px;
   font-weight: 700;
   line-height: 1.4;
   cursor: pointer;
   touch-action: manipulation;
 }

 .mobile-visit-close:hover {
   background: #ff824b;
   border-color: #ff824b;
 }

 .mobile-visit-close:focus-visible {
   outline: 3px solid #2c3840;
   outline-offset: 3px;
 }

 .mobile-visit-toolbar-label {
   color: #4b5963;
   font-size: 14px;
   font-weight: 600;
   flex: 1;
   min-width: 0;
 }

 .mobile-visit-toolbar mobile-visit-alerts {
   display: block;
   flex: none;
   margin-left: auto;
 }

 .mobile-visit-alerts-trigger {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 2px;
   min-height: 44px;
   margin: 0;
   padding: 5px 10px;
   border: 1px solid #2c3840;
   border-radius: 6px;
   background: #2c3840;
   color: #fff;
   font-size: 14px;
   font-weight: 600;
   line-height: 1.4;
   cursor: pointer;
   touch-action: manipulation;
 }

 .mobile-visit-alerts-summary {
   display: flex;
   align-items: center;
   gap: 6px;
 }

 .mobile-visit-alerts-count {
   min-width: 22px;
   padding: 1px 5px;
   border-radius: 12px;
   background: #99c625;
   color: #1f2930;
   font-size: 12px;
   font-weight: 700;
 }

 .mobile-visit-alerts-trigger.mobile-visit-alerts-required {
   background: #fff0e9;
   border-color: #a54114;
   color: #87350f;
 }

 .mobile-visit-alerts-required-label {
   font-size: 11px;
   font-weight: 700;
 }

 .mobile-visit-alerts-trigger:focus-visible {
   outline: 3px solid #2c3840;
   outline-offset: 3px;
 }

 /* The existing four alert actions become a dropdown only during a mobile visit. */
 body.mobile-visit-alerts-active #compassAlertActions {
   display: none !important;
 }

 body.mobile-visit-alerts-active.mobile-visit-alerts-expanded #compassAlertActions {
   display: flex !important;
   position: fixed !important;
   top: var(--mobile-visit-alerts-top, 200px) !important;
   right: var(--mobile-visit-alerts-right, 15px) !important;
   bottom: auto !important;
   left: auto !important;
   z-index: 100100;
   box-sizing: border-box;
   width: min(280px, calc(100vw - 30px));
   max-height: calc(100vh - var(--mobile-visit-alerts-top, 200px) - 12px);
   max-height: calc(100dvh - var(--mobile-visit-alerts-top, 200px) - 12px);
   padding: 10px;
   gap: 6px !important;
   overflow-y: auto;
   overscroll-behavior: contain;
   background: #fff;
   border: 1px solid #d6dce0;
   border-radius: 8px;
   box-shadow: 0 8px 24px rgba(44, 56, 64, .22);
 }

 body.mobile-visit-alerts-active #compassAlertActions button {
   position: relative;
   flex: none;
   display: flex !important;
   align-items: center;
   width: 100% !important;
   height: auto !important;
   min-height: 44px !important;
   margin: 0;
   padding: 10px 12px !important;
   border-radius: 5px;
   writing-mode: horizontal-tb !important;
   font-size: 14px !important;
   line-height: 1.4;
   text-align: left;
   box-shadow: none;
 }

 body.mobile-visit-alerts-active #compassAlertActions .support-rail-label {
   position: static;
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   max-width: none;
   gap: 8px;
   transform: none;
   writing-mode: horizontal-tb;
   font-size: 14px;
 }

 body.mobile-visit-alerts-active #compassAlertActions .support-rail-title {
   white-space: normal;
 }

 body.mobile-visit-alerts-active #compassAlertActions .support-ticket-launcher-required {
   border: 2px solid #f46524;
 }

 /* Reporting opens from the dropdown above the mobile header (z-index 100001). */
 body.mobile-visit-alerts-active #reportIssueModal,
 body.mobile-visit-alerts-active #reportConfirmation {
   z-index: 100200;
 }

 @media (max-width: 359px) {
   .mobile-visit-toolbar { gap: 8px; }
   .mobile-visit-toolbar-label { font-size: 12px; }
 }
 /* =====================================
     MOBILE MODAL SPINNER
  ===================================== */
 
 .mobile-schedule-loading {
 
     position:fixed;
 
     top:0;
     left:0;
 
     width:100vw;
     height:100vh;
 
     background:rgba(255,255,255,.65);
 
     backdrop-filter:blur(4px);
     -webkit-backdrop-filter:blur(4px);
 
     z-index:999999;
 
     display:flex;
 
     align-items:center;
     justify-content:center;
 }
 
 .mobile-schedule-loading-content {
 
     text-align:center;
 
     background:#fff;
 
     padding:25px;
 
     border-radius:8px;
 
     box-shadow:0 4px 20px rgba(0,0,0,.15);
 }
 
 .mobile-schedule-loading-icon {
 
     font-size:48px;
 
     color:#99C625;
 
     margin-bottom:15px;
 }
 
 .mobile-schedule-loading-text {
 
     font-size:18px;
 
     font-weight:600;
 
     color:#333;
 }
 /* =====================================
    MOBILE CALL HISTORY
 ===================================== */
 
 .mobile-call-history {
 
     margin-top:20px;
 
     margin-bottom:25px;
 }
 
 .mobile-call-history-title {
 
     margin-bottom:15px;
 }
 
 .mobile-call-history-empty {
 
     color:#666;
 }
 
 .mobile-call-history-item {
 
     background:#f5f5f5;
 
     padding:15px;
 
     margin-bottom:15px;
 }
 
 .mobile-call-history-date {
 
     font-weight:600;
 
     margin-bottom:8px;
 }
 
 .mobile-call-history-duration {
 
     margin-bottom:10px;
 
     color:#666;
 }
 
 .mobile-call-history-player {
 
     width:100%;
 }
 
 .mobile-call-history-missing {
 
     color:#f46524;
 
     font-size:14px;
 }
 
 /* =====================================
     MODAL VISIT HEADER - CUSTOMER DETAILS
  ===================================== */ 
 .mobile-visit-header {
 
     text-align:center;
 
     margin-bottom:25px;
 
     padding-bottom:15px;
 
     border-bottom:1px solid #e5e5e5;
 }
 
 .mobile-visit-title {
 
     display:block;
 
     font-size:28px;
 
     font-weight:600;
 
     color:#99C625;
 
     text-decoration:none;
 
     margin-bottom:8px;
 }
 
 .mobile-visit-time {
 
     font-size:18px;
 
     font-weight:600;
 
     color:#444;
 
     margin-bottom:6px;
 }
 
 .mobile-visit-crew {
 
     font-size:16px;
 
     color:#777;
 }
 .mobile-visit-details {
 
     margin-bottom:25px;
 }
 
.mobile-detail-row {
 
     display:flex;
 
     align-items:flex-start;
 
     margin-bottom:20px;
 }
 
.mobile-detail-label {
 
     width:140px;
 
     flex-shrink:0;
 
     line-height:1.2;
 }
 
.mobile-detail-value {
 
     line-height:1.2;
 }
 
.mobile-customer-name {
 
     color:#99C625;
 
     text-decoration:none;
 
     font-weight:600;
 
     font-size:inherit;
 }
 .mobile-detail-block {
 
     margin-bottom:20px;
 }
 
 .mobile-detail-label {
 
     font-size:14px;
 
     font-weight:600;
 
     text-transform:uppercase;
 
     letter-spacing:.5px;
 
     color:#777;
 
     margin-bottom:4px;
 }
 
 .mobile-detail-value {
 
     font-size:22px;
 
     line-height:1.4;
 }
 .mobile-visit-content {
 
     max-width:800px;
 
     margin:0 auto;
 
     padding:25px;
 }
 /* =====================================
    MOBILE NOTES
 ===================================== */
 
 .mobile-notes-container {
 
     margin-top:25px;
 
     margin-bottom:25px;
 }
 
 .mobile-notes-title {
 
     margin-bottom:15px;
 
     font-size:18px;
 
     font-weight:600;
 }
 
 .mobile-notes-content {
 
     font-size:18px;
 
     line-height:1.6;
 
     color:#444;
 }
 
 .mobile-notes-content p {
 
     font-size:18px;
 
     line-height:1.6;
 
     margin-bottom:15px;
 }
 
 .mobile-notes-content strong,
 .mobile-notes-content b {
 
     font-weight:600;
 }
 
 .mobile-notes-content img {
 
     max-width:100%;
 
     height:auto;
 }
 /* =====================================
    MOBILE MAIN MENU BUTTONS
 ===================================== */
 
 .mobile-main-menu .button {
 
     color:#fff !important;
 
     font-weight:700 !important;
 }
 
 .mobile-main-menu .button:hover,
 .mobile-main-menu .button:focus,
 .mobile-main-menu .button:active {
 
     color:#fff !important;
 }
 /* =====================================
    CHECKLIST ITEM VIEW
 ===================================== */
 
 .mobile-checklist-item-view {
 
     padding:20px;
 
     height:100%;
 
     overflow-y:auto;
 
     -webkit-overflow-scrolling:touch;
 }
 
 .mobile-checklist-back-button,
 .mobile-checklist-menu-button {
 
     margin-bottom:12px !important;
 }
 
 /* =====================================
    PHOTO GALLERY
 ===================================== */
 
 .mobile-photo-gallery {
 
     max-height:420px;
 
     overflow-y:auto;
 }
 
 .mobile-photo-grid {
 
     display:grid;
 
     grid-template-columns:repeat(2, 1fr);
 
     gap:12px;
 
     margin:0;
 
     list-style:none;
 }
 
 .mobile-photo-button {
 
     width:100%;
     padding:0 !important;
 }
 
 .mobile-photo-image {
 
     width:100%;
 
     height:160px;
 
     object-fit:cover;
 
     display:block;
 }
 
 /* =====================================
    PHOTO PREVIEW
 ===================================== */
 
 .mobile-photo-toolbar {
 
     text-align:center;
 
     margin:15px;
 }
 
 .mobile-photo-preview {
 
     max-width:100%;
 
     max-height:75vh;
 }
 
 .mobile-photo-editor-frame {
 
     width:100%;
 
     height:85vh;
 
     border:0;
 }
 
 /* =====================================
    VIDEO GRID
 ===================================== */
 
 .mobile-video-grid {
 
     display:grid;
 
     grid-template-columns:1fr;
 
     gap:15px;
 
     list-style:none;
 
     margin:0;
 }
 
 .mobile-video-thumbnail {
 
     width:100%;
 
     display:block;
 }
 
 .mobile-video-label {
 
     text-align:center;
 
     padding-top:8px;
 }
 
/* =====================================
    MOBILE TIMESHEET V2
 ===================================== */
 
 .mobile-timesheet-card {
 
     background:#fff;
 
     border-left:6px solid #99C625;
 
     padding:20px;
 
     margin-bottom:20px;
 
     box-shadow:0 2px 8px rgba(0,0,0,.08);
 }
 
 .mobile-timesheet-tech {
 
     font-size:22px;
 
     font-weight:700;
 
     color:#2c3e50;
 
     margin-bottom:20px;
 }
 
 .mobile-timesheet-field {
 
     margin-bottom:15px;
 }
 
 .mobile-timesheet-field label {
 
     display:block;
 
     font-weight:600;
 
     margin-bottom:6px;
 }
 
 .mobile-timesheet-field input {
 
     width:100%;
 
     height:50px;
 
     font-size:18px;
 }
 
 .mobile-remove-tech {
 
     margin-top:10px;
 }
 .mobile-timesheet-list {
 
     width:100%;
 
     display:block;
 }
 
 .mobile-timesheet-toolbar {
 
     margin-bottom:20px;
 }
 
 .mobile-timesheet-header {
 
     text-align:center;
 
     margin-bottom:5px;
 }
 
 .mobile-timesheet-date {
 
     text-align:center;
 
     margin-bottom:25px;
 }
 
 .mobile-timesheet-loading {
 
     width:100%;
 }
 
 .mobile-timesheet-actions {
 
     width:100%;
 
     margin-top:20px;
 
     text-align:center;
 }
 
 .mobile-timesheet-actions .button {
 
     width:100%;
 }
 
 /* =====================================
     CHECKLIST WORK ORDER
  ===================================== */
 
 
 .mobile-workorder-summary {
 
     text-align:center;
 
     margin-bottom:25px;
 }
 
 .mobile-workorder-total {
 
     font-size:28px;
 
     font-weight:700;
 
     color:#2c3e50;
 
     margin-bottom:10px;
 }
 
 .mobile-workorder-created {
 
     color:#666;
 }
 
 .mobile-workorder-memo {
 
     margin-bottom:25px;
 }
 
 .mobile-workorder-label {
 
     display:block;
 
     font-weight:700;
 
     margin-bottom:10px;
 }
 
 .mobile-workorder-memo-input {
 
     width:100%;
 
     min-height:180px;
 
     padding:15px;
 
     border:1px solid #ccc;
 
     border-radius:0;
 
     resize:vertical;
 
     margin-bottom:15px;
 }
 
 .mobile-workorder-item {
 
     background:#fff;
 
     border-left:5px solid #99C625;
 
     padding:15px;
 
     margin-bottom:15px;
 }
 
 .mobile-workorder-item-name {
 
     font-size:20px;
 
     font-weight:700;
 
     margin-bottom:10px;
 }
 .mobile-add-item-view {
 
     padding:20px;
 
     overflow-y:auto;
 }
 
 .mobile-search-results {
 
     border:1px solid #ddd;
 
     margin-bottom:15px;
 
     max-height:250px;
 
     overflow-y:auto;
 }
 
 .mobile-search-result {
 
     padding:12px;
 
     border-bottom:1px solid #eee;
 
     cursor:pointer;
 }
 
 .mobile-search-result:last-child {
 
     border-bottom:none;
 }
 
 .mobile-search-result:hover {
 
     background:#f5f5f5;
 }
/* ==========================================
    MOBILE SHELL HEIGHT CHAIN
    Required so visit body can scroll
 ========================================== */
 
 #compass-mobile-shell {
   height: 100vh !important;
   min-height: 100vh !important;
   display: flex !important;
   flex-direction: column !important;
   overflow: hidden !important;
   position: relative !important;
 }
 
 #compass-mobile-shell .compass-mobile-header {
   flex: 0 0 54px !important;
   position: relative !important;
   z-index: 100001 !important;
   background: #203036 !important;
 }
 
 #compass-mobile-shell .compass-mobile-nav {
   position: fixed !important;
   top: 54px !important;
   left: 0 !important;
   right: 0 !important;
   z-index: 100000 !important;
   background: #ffffff !important;
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
 }
 
 #compass-mobile-shell .compass-mobile-nav-inner {
   position: relative !important;
   z-index: 100000 !important;
   background: #ffffff !important;
   padding: 20px !important;
 }
 
 #compass-mobile-shell .compass-mobile-view {
   flex: 1 1 auto !important;
   min-height: 0 !important;
   height: auto !important;
   overflow: hidden !important;
   padding: 0 !important;
   position: relative !important;
   z-index: 1 !important;
 }
 
 #compass-mobile-shell .compass-mobile-view > ng-view {
   display: block !important;
   height: 100% !important;
   min-height: 0 !important;
   overflow: hidden !important;
 }
 
 #compass-mobile-shell .compass-mobile-view > ng-view > .visit-container {
   height: 100% !important;
   min-height: 0 !important;
 }
 /* ==========================================
     VISIT V2 INNER CARD SPACING
  ========================================== */
  
  .visit-view-v2-page .visit-details-modern > .grid-x.grid-margin-x {
  
      margin-left: -4px;
  
      margin-right: -4px;
  
  }
  
  .visit-view-v2-page .visit-details-modern > .grid-x.grid-margin-x > .cell {
  
      padding-left: 4px;
  
      padding-right: 4px;
  
  }
  /* ==========================================
     MOBILE VISIT V2 ACCORDION INNER SPACING
  ========================================== */
  
  #compass-mobile-shell .visit-view-v2 .visit-section-body {
  
      padding: 2px;
  
  }
  
  #compass-mobile-shell .visit-view-v2 .visit-details-modern .compass-card {
  
      margin-top: 0;
  
      margin-bottom: 4px;
  
  }
  
  #compass-mobile-shell .visit-view-v2 .visit-details-modern .cell {
  
      margin-bottom: 0;
  
  }
  /* ==========================================
      MOBILE VISIT V2 DETAILS GRID EDGE FIX
    ========================================== */
    
    #compass-mobile-shell .visit-details-modern > .grid-x.grid-margin-x {
    
        margin-left: 0 !important;
    
        margin-right: 0 !important;
    
    }
    
    #compass-mobile-shell .visit-details-modern > .grid-x.grid-margin-x > .cell {
    
        padding-left: 0 !important;
    
        padding-right: 0 !important;
    
    }
    
    #compass-mobile-shell .visit-details-modern .compass-card {
    
        margin-left: 0 !important;
    
        margin-right: 0 !important;
    
    }
  /* ==========================================
     MOBILE VISIT V2 OUTER PADDING FIX
  ========================================== */
  
  #compass-mobile-shell .visit-view-v2 {
  
      padding-left: 0 !important;
  
      padding-right: 0 !important;
  
  }
  #compass-mobile-shell .visit-view-v2 {
      height: 100% !important;
      max-height: 100% !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch;
  }
  /* ==========================================
     MOBILE CKEDITOR TOOLBAR FIX
  ========================================== */
  
  #compass-mobile-shell .cke_top {
  
      padding: 8px 8px 4px 8px !important;
  
  }
  
  #compass-mobile-shell .cke_toolgroup {
  
      margin: 0 6px 6px 0 !important;
  
  }
  
  #compass-mobile-shell .cke_button {
  
      height: 28px !important;
  
      padding: 4px 6px !important;
  
      line-height: 20px !important;
  
  }
  
  #compass-mobile-shell .cke_button_icon {
  
      margin-top: 1px !important;
  
  }
  
  #compass-mobile-shell .cke_combo_button {
  
      height: 28px !important;
  
      line-height: 28px !important;
  
  }
  
  #compass-mobile-shell .cke_combo_text {
  
      line-height: 28px !important;
  
  }
  /* ==========================================
     MOBILE VISIT SUMMARY EDITOR SPACING
  ========================================== */
  
  #compass-mobile-shell .visit-summary-card .compass-card-body {
  
      padding: 10px !important;
  
  }
  
  #compass-mobile-shell .visit-summary-card textarea {
  
      margin-bottom: 10px;
  
  }
  
  #compass-mobile-shell .visit-summary-card .cke {
  
      margin-bottom: 14px;
  
  }
  
  #compass-mobile-shell .visit-summary-card .button.expanded {
  
      margin-top: 0;
  
  }
  /* ==========================================
     VISIT V2 PHOTO CARDS
  ========================================== */
  
  .visit-view-v2-page .visit-photos-modern .compass-card-header {
  
      padding: 12px 18px;
  
      min-height: 0;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .compass-card-header h4 {
  
      color: #ffffff;
  
      margin: 0;
  
      font-size: 16px;
  
      font-weight: 700;
  
      line-height: 1.2;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .compass-card-header h4 i {
  
      color: #ffffff;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .photo-actions-card .compass-card-header {
  
      background: #58b8a8;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .photo-gallery-card .compass-card-header {
  
      background: #7f868b;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .compass-card-body {
  
      padding: 12px;
  
  }
  
  /* Gallery tile fix */
  
  .visit-view-v2-page .visit-photos-modern .modern-photo-tile {
  
      position: relative;
  
      width: 100%;
  
      min-height: 180px;
  
      margin-bottom: 12px;
  
      background: #f5f5f5;
  
      overflow: hidden;
  
      cursor: pointer;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .modern-photo-image {
  
      width: 100%;
  
      height: 180px;
  
      background-size: cover;
  
      background-position: center center;
  
      background-repeat: no-repeat;
  
  }
  
  .visit-view-v2-page .visit-photos-modern .modern-photo-actions {
  
      position: absolute;
  
      left: 0;
  
      right: 0;
  
      bottom: 0;
  
      display: flex;
  
      justify-content: space-between;
  
      align-items: center;
  
      padding: 8px 10px;
  
      background: rgba(255,255,255,.9);
  
  }
  
  .visit-view-v2-page .visit-photos-modern .modern-photo-actions a,
  .visit-view-v2-page .visit-photos-modern .modern-photo-actions button {
  
      color: #99C625 !important;
  
      margin: 0;
  
  }
  /* ==========================================
     PHOTO PREVIEW REVEAL
  ========================================== */
  
  .mobile-photo-preview-reveal {
    padding: 0 !important;
    background: #111111;
    overflow: hidden !important;
  }
  
  .mobile-photo-preview-reveal .close-button {
    top: 10px !important;
    right: 10px !important;
    z-index: 20;
    color: #ffffff !important;
    background: rgba(0,0,0,.6);
    width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0;
    text-align: center;
  }
  
  .photo-preview-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #111111;
    color: #ffffff;
  }
  
  .photo-preview-header {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 16px 60px 16px 16px;
    background: #263238;
    color: #ffffff;
    font-weight: 700;
  }
  
  .photo-preview-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .photo-preview-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 55px;
  }
  
  .photo-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .photo-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 70px;
    border: 0;
    background: rgba(255,255,255,.18);
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
  }
  
  .photo-preview-prev {
    left: 0;
  }
  
  .photo-preview-next {
    right: 0;
  }
  
  .photo-preview-footer {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 12px;
    background: #222222;
  }
  /* ==========================================
     VISIT V2 ESTIMATE CARDS
  ========================================== */
  
  .visit-view-v2-page .estimate-actions-card,
  .visit-view-v2-page .estimate-wizard-card {
  
      margin-bottom: 20px;
  
  }
  
  .visit-view-v2-page .estimate-actions-card .compass-card-header,
  .visit-view-v2-page .estimate-wizard-card .compass-card-header,
  .visit-view-v2-page .estimate-list-card .compass-card-header {
  
      padding: 12px 18px;
  
      min-height: 0;
  
  }
  
  .visit-view-v2-page .estimate-actions-card .compass-card-header h4,
  .visit-view-v2-page .estimate-wizard-card .compass-card-header h4,
  .visit-view-v2-page .estimate-list-card .compass-card-header h4 {
  
      color: #ffffff;
  
      margin: 0;
  
      font-size: 16px;
  
      font-weight: 700;
  
      line-height: 1.2;
  
  }
  
  .visit-view-v2-page .estimate-actions-card .compass-card-header h4 i,
  .visit-view-v2-page .estimate-wizard-card .compass-card-header h4 i,
  .visit-view-v2-page .estimate-list-card .compass-card-header h4 i {
  
      color: #ffffff;
  
  }
  
  .visit-view-v2-page .estimate-actions-card .compass-card-header,
  .visit-view-v2-page .estimate-wizard-card .compass-card-header {
  
      background: #58b8a8;
  
  }
  
  .visit-view-v2-page .estimate-list-card .compass-card-header {
  
      background: #7f868b;
  
  }
  /******************************************************
   * VISIT WORKSPACE
   * Scoped styles for visit-workspace.html only
   ******************************************************/
  
  .visit-workspace {
    padding: 20px;
    height: calc(100vh - 44px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f7f8;
    box-sizing: border-box;
  }
  
  .visit-workspace * {
    box-sizing: border-box;
  }
  
  .visit-workspace-header {
    background: #ffffff;
    border: 1px solid #d9e0e3;
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  
    min-height: 0;
    height: auto;
  }
  
  .visit-workspace-header.compass-block {
    min-height: 0;
    height: auto;
  }
  
  .visit-workspace-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
  }
  
  .visit-workspace-header p {
    margin: 4px 0 0 0;
    color: #777777;
  }
  
  .visit-workspace-header .cell.shrink {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
  
  .visit-workspace-header .button {
    margin: 0;
  }
  
  .visit-workspace .visit-card {
    background: #ffffff;
    border: 1px solid #d9e0e3;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: visible;
  }
  
  .visit-workspace .visit-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e3e7e9;
    background: #ffffff;
    font-size: 17px;
    font-weight: 600;
    color: #333333;
  }
  
  .visit-workspace .visit-card-body {
    padding: 18px;
    background: #ffffff;
  }
  
  .visit-workspace .input-container {
    margin-bottom: 14px;
    position: relative;
  }
  
  .visit-workspace .input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #111827;
  }
  
  .visit-workspace .visit-form-input,
  .visit-workspace input[type="text"],
  .visit-workspace select,
  .visit-workspace textarea {
    width: 100%;
    max-width: 100%;
  }
  
  .visit-workspace .visit-form-time-input {
    border-radius: 0;
    padding-left: 12px;
    height: 38px;
    border: 1px solid #bfc7cc;
    background: #ffffff;
  }
  
  .visit-workspace .selectize-control {
    width: 100%;
  }
  
  .visit-workspace .selectize-input {
    min-height: 37px;
    border-radius: 0;
    box-shadow: none;
  }
  
  .visit-workspace .visit-summary-ckeditor {
    min-height: 260px;
  }
  
  .visit-workspace .cke {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .visit-workspace .cke_contents {
    min-height: 260px !important;
  }
  
  .visit-workspace .visit-hashtags-row {
    margin-top: 20px;
  }
  
  .visit-workspace .visit-documents-list-row {
    margin-top: 15px;
  }
  
  .visit-workspace .visit-empty-state {
    padding: 18px;
    border: 1px dashed #cfd8dc;
    background: #fafafa;
    color: #777777;
    text-align: center;
    border-radius: 4px;
  }
  
  .visit-workspace .visit-document-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .visit-workspace .visit-document-row {
    padding: 10px 12px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
  }
  
  .visit-workspace .visit-document-row:last-child {
    border-bottom: none;
  }
  
  .visit-workspace .visit-document-name {
    margin-left: 8px;
    font-weight: 500;
  }
  
  @media screen and (max-width: 640px) {
  
    .visit-workspace {
      padding: 12px;
      height: calc(100vh - 44px);
      overflow-y: auto;
    }
  
    .visit-workspace-header {
      padding: 14px;
    }
  
    .visit-workspace-header .grid-x {
      display: block;
    }
  
    .visit-workspace-header .cell.shrink {
      margin-top: 12px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }
  
    .visit-workspace-header .button {
      width: 100%;
    }
  
    .visit-workspace .visit-card-body {
      padding: 14px;
    }
  
    .visit-workspace .visit-summary-ckeditor {
      min-height: 220px;
    }
  
    .visit-workspace .cke_contents {
      min-height: 220px !important;
    }
  
  }
  .visit-workspace .visit-form-time-input {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding-left: 12px;
    height: 38px;
    border: 1px solid #bfc7cc;
    background: #ffffff;
  }
  .schedule-visit-reveal {
    width: 96%;
    max-width: 1400px;
    height: 90vh;
    max-height: 90vh;
    padding: 20px;
    overflow: hidden;
  }
  
  .schedule-visit-reveal-body {
    height: calc(90vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .schedule-visit-reveal-body > .grid-x {
    height: 100%;
  }
  
  .schedule-visit-calendar {
    height: calc(90vh - 80px);
    min-height: 600px;
  }
  
  .schedule-visit-calendar > .grid-y {
    height: 100%;
  }
  
  .schedule-visit-map-container,
  .schedule-visit-map {
    height: calc(90vh - 80px);
    min-height: 600px;
  }
  .schedule-visit-reveal {
    width: 96%;
    max-width: 1400px;
    height: 90vh;
    max-height: 90vh;
    padding: 20px;
    overflow: hidden;
  }
  
  .schedule-visit-reveal-body {
    height: calc(90vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .schedule-visit-reveal-body > .grid-x {
    height: 100%;
  }
  
  .schedule-visit-calendar {
    height: calc(90vh - 80px);
    min-height: 600px;
  }
  
  .schedule-visit-calendar > .grid-y {
    height: 100%;
  }
  
  .schedule-visit-map-container,
  .schedule-visit-map {
    width: 100%;
    height: calc(90vh - 80px);
    min-height: 600px;
  }
  /* ==========================================
     VISIT V2 UNIVERSAL SCROLL
     Desktop + Mobile
  ========================================== */
  
  .visit-view-v2 {
      height: 100%;
      max-height: 100vh;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
  }
  
  .visit-view-v2 .visit-section {
      min-height: 0;
  }
  
  .visit-view-v2 .visit-section-body {
      overflow: visible;
  }
  /* ==========================================
     VISIT V2 VIDEO CARDS
  ========================================== */
  
  .visit-view-v2 .visit-videos-modern .compass-card-header {
      padding: 12px 18px;
      min-height: 0;
  }
  
  .visit-view-v2 .visit-videos-modern .compass-card-header h4 {
      color: #ffffff;
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.2;
  }
  
  .visit-view-v2 .visit-videos-modern .compass-card-header h4 i {
      color: #ffffff;
  }
  
  .visit-view-v2 .visit-video-actions-card .compass-card-header {
      background: #58b8a8;
  }
  
  .visit-view-v2 .visit-video-gallery-card .compass-card-header {
      background: #7f868b;
  }
  
  .visit-view-v2 .visit-videos-modern .compass-card-body {
      padding: 12px;
  }
  
  .visit-view-v2 .modern-video-tile {
      position: relative;
      width: 100%;
      min-height: 190px;
      margin-bottom: 12px;
      background: #f5f5f5;
      border: 1px solid #d9e0e3;
      overflow: hidden;
  }
  
  .visit-view-v2 .modern-video-thumb {
      position: relative;
      width: 100%;
      height: 150px;
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      background-color: #263238;
  }
  
  .visit-view-v2 .modern-video-thumb.no-thumb {
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .visit-view-v2 .modern-video-play {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 54px;
      height: 54px;
      margin-top: -27px;
      margin-left: -27px;
      border-radius: 50%;
      background: rgba(0,0,0,.55);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
  }
  
  .visit-view-v2 .modern-video-actions {
      padding: 10px;
      background: #ffffff;
  }
  
  .visit-view-v2 .modern-video-name {
      font-weight: 600;
      color: #333333;
      margin-bottom: 8px;
      word-break: break-word;
  }
  
  .visit-view-v2 .modern-video-buttons {
      display: flex;
      align-items: center;
      justify-content: space-between;
  }
  
  .visit-view-v2 .modern-video-buttons .button {
      margin: 0;
  }
  /* ==========================================
     VISIT V2 VIMEO PLAYER
  ========================================== */
  
  .visit-view-v2 .modern-video-player {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 56.25%;
      background: #263238;
      overflow: hidden;
  }
  
  .visit-view-v2 .modern-video-player iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
  }
  
  .visit-view-v2 .modern-video-thumb.no-thumb {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
  }
  /* ==========================================
     VISIT VIDEO PLAYER POP-OUT
  ========================================== */
  
  .visit-video-player-reveal {
      width: 90%;
      max-width: 1000px;
      padding: 0 !important;
      background: #111111;
      overflow: hidden;
  }
  
  .visit-video-player-shell {
      background: #111111;
  }
  
  .visit-video-player-header {
      padding: 14px 54px 14px 18px;
      background: #263238;
      color: #ffffff;
  }
  
  .visit-video-player-header h4 {
      margin: 0;
      color: #ffffff;
      font-size: 17px;
      font-weight: 700;
  }
  
  .visit-video-player-header h4 i {
      color: #ffffff;
  }
  
  .visit-video-player-reveal .close-button {
      color: #ffffff !important;
  }
  
  .visit-video-player-body {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 56.25%;
      background: #000000;
  }
  
  .visit-video-player-body iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
  }
  
  @media screen and (max-width: 640px) {
  
      .visit-video-player-reveal {
          width: 96%;
          min-height: 0;
      }
  
  }
  /////////////////////////////////////////////////////
  // INVOICE V2
  /////////////////////////////////////////////////////
  
  .invoice-modern-container-v2 .invoice-v2-inner-card {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
  }
  
  .invoice-modern-container-v2 .invoice-info-header {
    background: #7f868b;
    color: #304257;
    border-bottom: 1px solid #dfe5ea;
  }
  
  .invoice-modern-container-v2 .invoice-info-header h4 {
    color: #304257;
    margin-bottom: 0;
  }
  
  .invoice-modern-container-v2 .invoice-info-header i {
    color: #ffffff;
  }
  
  .invoice-modern-container-v2 .invoice-v2-teal-header {
    background: #58b8a8;
    color: #ffffff;
    cursor: pointer;
  }
  
  .invoice-modern-container-v2 .invoice-v2-teal-header h4,
  .invoice-modern-container-v2 .invoice-v2-teal-header i {
    color: #ffffff;
    margin-bottom: 0;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header {
    color: #ffffff;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header h5 {
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 700;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header-paid {
    background: #99C625;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header-due {
    background: #f46524;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header-total {
    background: #58b8a8;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header-discount {
    background: #304257;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-paid {
    color: #99C625;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-due {
    color: #f46524;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-total {
    color: #58b8a8;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-discount {
    color: #304257;
  }
  
  .invoice-modern-container-v2 .invoice-kpi-header,
  .invoice-modern-container-v2 .invoice-info-header,
  .invoice-modern-container-v2 .invoice-v2-teal-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  
  .invoice-modern-container-v2 .compass-card-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  
  @media screen and (max-width: 640px) {
  
    .invoice-modern-container-v2 .invoice-v2-inner-card {
      width: 100%;
    }
  
  }
  /////////////////////////////////////////////////////
  // INVOICE V2 ACTIONS + EMAIL RECIPIENTS
  /////////////////////////////////////////////////////
  
  .invoice-modern-container-v2 .invoice-v2-teal-header {
    background: #58b8a8;
    color: #ffffff;
    cursor: pointer;
  }
  
  .invoice-modern-container-v2 .invoice-v2-teal-header h4,
  .invoice-modern-container-v2 .invoice-v2-teal-header i {
    color: #ffffff;
    margin-bottom: 0;
  }
  
  .invoice-modern-container-v2 .invoice-tool-card .button,
  .invoice-modern-container-v2 .invoice-tool-card .button i {
    color: #ffffff;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button {
    position: relative;
    background: #f4f6f8;
    color: #304257;
    border: 1px solid #dfe5ea;
    text-align: left;
    padding: 16px 48px 16px 18px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button i,
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button span {
    color: #304257;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button .fa-envelope {
    margin-right: 10px;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button:hover,
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button.selected {
    background: #58b8a8;
    color: #ffffff;
    border-color: #58b8a8;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button:hover i,
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button:hover span,
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button.selected i,
  .invoice-modern-container-v2 .invoice-v2-email-recipient-button.selected span {
    color: #ffffff;
  }
  
  .invoice-modern-container-v2 .invoice-v2-email-selected-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-v2 {
    margin: 0 0 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-top: 4px solid #58b8a8;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(48, 66, 87, 0.08);
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-header-v2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #f4f6f8;
    border-bottom: 1px solid #dfe5ea;
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-icon-v2 {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #304257;
    border-radius: 50%;
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-icon-v2 i {
    color: #99c625;
    font-size: 17px;
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-header-v2 h5,
  .invoice-modern-container-v2 .invoice-recipient-builder-title-v2 h6 {
    margin: 0 0 4px;
    color: #304257;
    font-weight: 700;
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-header-v2 p,
  .invoice-modern-container-v2 .invoice-recipient-builder-title-v2 p {
    margin: 0;
    color: #667781;
    font-size: 14px;
    line-height: 1.45;
  }

  .invoice-modern-container-v2 .invoice-recipient-panel-body-v2 {
    padding: 20px;
  }

  .invoice-modern-container-v2 .invoice-recipient-field-v2 {
    display: block;
    margin: 0 0 14px;
    color: #304257;
  }

  .invoice-modern-container-v2 .invoice-recipient-field-v2 > span {
    display: block;
    margin-bottom: 7px;
    color: #40545e;
    font-size: 13px;
    font-weight: 700;
  }

  .invoice-modern-container-v2 .invoice-recipient-field-v2 select {
    height: 46px;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #b9c5cb;
    color: #304257;
    box-shadow: none;
  }

  .invoice-modern-container-v2 .invoice-recipient-field-v2 select:focus {
    border-color: #58b8a8;
    box-shadow: 0 0 0 3px rgba(88, 184, 168, 0.18);
  }

  .invoice-modern-container-v2 .invoice-recipient-secondary-v2,
  .invoice-modern-container-v2 .invoice-recipient-cancel-v2 {
    margin: 0;
    background: #304257;
  }

  .invoice-modern-container-v2 .invoice-recipient-secondary-v2:hover,
  .invoice-modern-container-v2 .invoice-recipient-cancel-v2:hover {
    background: #223243;
  }

  .invoice-modern-container-v2 .invoice-recipient-note-v2 {
    margin: 14px 0 0;
    padding: 11px 13px;
    background: #eef7f5;
    border-left: 4px solid #58b8a8;
    color: #40545e;
    font-size: 13px;
  }

  .invoice-modern-container-v2 .invoice-recipient-note-v2 i {
    margin-right: 6px;
    color: #58b8a8;
  }

  .invoice-modern-container-v2 .invoice-recipient-builder-title-v2 {
    margin-bottom: 18px;
  }

  .invoice-modern-container-v2 .invoice-recipient-actions-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 4px;
  }

  .invoice-modern-container-v2 .invoice-recipient-actions-v2 .button {
    margin: 0;
  }
  
  .invoice-modern-container-v2 .button.warning,
  .invoice-modern-container-v2 .button.success,
  .invoice-modern-container-v2 .button.alert,
  .invoice-modern-container-v2 .button.secondary,
  .invoice-modern-container-v2 .button.compass-green {
    color: #ffffff;
  }
  
  .invoice-modern-container-v2 .button.warning i,
  .invoice-modern-container-v2 .button.success i,
  .invoice-modern-container-v2 .button.alert i,
  .invoice-modern-container-v2 .button.secondary i,
  .invoice-modern-container-v2 .button.compass-green i {
    color: #ffffff;
  }
  
  @media screen and (max-width: 640px) {
  
    .invoice-modern-container-v2 .invoice-v2-email-recipient-button {
      font-size: 15px;
      padding: 14px 42px 14px 14px;
    }

    .invoice-modern-container-v2 .invoice-recipient-panel-header-v2,
    .invoice-modern-container-v2 .invoice-recipient-panel-body-v2 {
      padding: 15px;
    }

    .invoice-modern-container-v2 .invoice-recipient-panel-header-v2 {
      gap: 11px;
    }

    .invoice-modern-container-v2 .invoice-recipient-panel-icon-v2 {
      flex-basis: 36px;
      width: 36px;
      height: 36px;
    }

    .invoice-modern-container-v2 .invoice-recipient-builder-grid-v2 .cell {
      width: 100%;
    }

    .invoice-modern-container-v2 .invoice-recipient-field-v2 select {
      min-height: 48px;
      font-size: 16px;
    }

    .invoice-modern-container-v2 .invoice-recipient-actions-v2 {
      display: grid;
      grid-template-columns: 1fr;
    }

    .invoice-modern-container-v2 .invoice-recipient-actions-v2 .button,
    .invoice-modern-container-v2 .invoice-recipient-secondary-v2 {
      width: 100%;
    }
  
  }
  /* =====================================
     MOBILE FIELD PURCHASE POS
  ===================================== */
  
  .mobile-field-purchase-view {
    padding-bottom: 30px;
  }
  
  .mobile-field-purchase-title {
    margin: 18px 0;
    text-align: center;
    color: #444;
  }
  
  .mobile-field-purchase-back-button {
    margin-bottom: 15px;
  }
  
  .mobile-field-purchase-list {
    margin: 15px 0 20px 0;
  }
  
  .mobile-field-purchase-card {
    background: #f4f4f4;
    border-left: 6px solid #58b8a8;
    padding: 14px;
    margin-bottom: 12px;
  }
  
  .mobile-field-purchase-po-number {
    font-size: 20px;
    font-weight: 700;
    color: #444;
  }
  
  .mobile-field-purchase-user {
    font-size: 15px;
    color: #666;
    margin-top: 6px;
  }
  
  .mobile-field-purchase-date {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
  }
  
  .mobile-field-purchase-create-button {
    margin-top: 20px;
    color: #fff !important;
  }
  /* VISIT V2 ACTION BAR */
  .visit-actions-container {
    width: 100%;
  }
  
  .visit-actions-compact {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
  }
  
  .visit-actions-compact .visit-action-button {
    margin: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    line-height: 1;
  }
  
  .visit-actions-compact .visit-action-button i {
    font-size: 1rem;
  }
  
  /* MOBILE ICON-ONLY VISIT ACTIONS */
  @media screen and (max-width: 640px) {
  
    .visit-title-container .visit-title {
      padding-right: 0;
    }
  
    .visit-title-container .grid-x {
      flex-wrap: nowrap;
    }
  
    .visit-title-container .cell.auto {
      min-width: 0;
    }
  
    .visit-title-container .cell.shrink {
      max-width: 64%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
  
    .visit-actions-compact {
      justify-content: flex-start;
    }
  
    .visit-actions-compact .visit-action-button {
      width: 3.25rem;
      min-width: 3.25rem;
      padding: 0.9rem 0;
    }
  
    .visit-actions-compact .visit-action-label {
      display: none;
    }
  
    .visit-actions-compact .visit-action-button i {
      font-size: 1.15rem;
    }
  
  }
  /* VISIT V2 INVOICE PAYMENT FORM */
  .visit-view-v2-page .invoice-modern-container-v2 input,
  .visit-view-v2-page .invoice-modern-container-v2 select,
  .visit-view-v2-page .invoice-modern-container-v2 textarea {
    border-radius: 0 !important;
    box-shadow: none;
  }
  
  /* specifically kill the rounded amount input */
  .visit-view-v2-page .invoice-modern-container-v2 input[type="number"],
  .visit-view-v2-page .invoice-modern-container-v2 input[type="text"] {
    border-radius: 0 !important;
    min-height: 48px;
    font-size: 18px;
    padding: 10px 12px;
  }
  
  /* PAYMENT TYPE BUTTON GRID */
  .visit-view-v2-page .invoice-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 2px solid #d8dde0;
    background: #ffffff;
    color: #304257;
    cursor: pointer;
    border-radius: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    transition: none;
  }
  
  .visit-view-v2-page .invoice-payment-card:hover,
  .visit-view-v2-page .invoice-payment-card:focus {
    border-color: #58b8a8;
    background: #f5fbfa;
  }
  
  .visit-view-v2-page .invoice-payment-card.selected {
    border-color: #58b8a8;
    background: #58b8a8;
    color: #ffffff;
  }
  
  .visit-view-v2-page .invoice-payment-card-icon {
    width: 32px;
    min-width: 32px;
    text-align: center;
    font-size: 22px;
    line-height: 1;
    color: inherit;
  }
  
  .visit-view-v2-page .invoice-payment-card-icon i {
    color: inherit;
  }
  
  .visit-view-v2-page .invoice-payment-card-title {
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
  
  /* PAYMENT ACTION PANEL */
  .visit-view-v2-page .invoice-payment-action-panel {
    margin: 14px 0 18px 0;
    padding: 14px;
    border: 2px solid #58b8a8;
    background: #f5fbfa;
    border-radius: 0;
  }
  
  /* MOBILE PAYMENT BUTTONS */
  @media screen and (max-width: 640px) {
  
    .visit-view-v2-page .invoice-modern-container-v2 .compass-card-body {
      padding: 18px;
    }
  
    .visit-view-v2-page .invoice-payment-card {
      min-height: 64px;
      margin-bottom: 10px;
      padding: 16px;
      font-size: 20px;
    }
  
    .visit-view-v2-page .invoice-payment-card-icon {
      width: 36px;
      min-width: 36px;
      font-size: 24px;
    }
  
    .visit-view-v2-page .invoice-payment-card-title {
      font-size: 20px;
    }
  
  }
  /* VISIT V2 INVOICE PREVIEW */
  .invoice-modern-container-v2 .invoice-preview-card-v2 {
    margin-bottom: 16px;
  }
  
  .invoice-modern-container-v2 .invoice-preview-card-v2 .compass-card-body {
    padding: 18px 28px;
  }
  
  /* Desktop/tablet iframe */
  .invoice-modern-container-v2 .invoice-preview-desktop-frame {
    display: block !important;
    width: 100% !important;
  }
  
  .invoice-modern-container-v2 .invoice-preview-frame {
    display: block !important;
    width: 100% !important;
    height: 82vh !important;
    min-height: 900px !important;
    border: 2px solid #d8dde0 !important;
    border-radius: 0 !important;
    background: #ffffff;
  }
  
  /* Hide mobile open button on desktop */
  .invoice-modern-container-v2 .invoice-preview-mobile-actions {
    display: none !important;
  }
  
  .invoice-modern-container-v2 .invoice-preview-open-button {
    border-radius: 0;
    min-height: 56px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .invoice-modern-container-v2 .invoice-preview-mobile-note {
    font-size: 14px;
  }
  
  /* MOBILE: do not embed PDF */
  @media screen and (max-width: 640px) {
  
    .invoice-modern-container-v2 .invoice-preview-card-v2 .compass-card-body {
      padding: 18px;
    }
  
    .invoice-modern-container-v2 .invoice-preview-desktop-frame {
      display: none !important;
    }
  
    .invoice-modern-container-v2 .invoice-preview-mobile-actions {
      display: block !important;
    }
  
  }
  /* =========================
     SCHEDULE VISIT REVEAL FIX
     Keep map from bleeding behind schedule
  ========================= */
  
  .schedule-visit-reveal.map-visible .schedule-visit {
      height: 100%;
      overflow: hidden;
  }
  
  .schedule-visit-reveal.map-visible .schedule-visit > .grid-y {
      height: 100%;
      overflow: hidden;
  }
  
  .schedule-visit-reveal.map-visible .schedule-visit > .grid-y > .cell.large-4 {
      position: relative;
      height: 40%;
      max-height: 40%;
      overflow: hidden;
      z-index: 1;
  }
  
  .schedule-visit-reveal.map-visible .schedule-visit-map-container {
      position: relative;
      height: 100%;
      overflow: hidden;
  }
  
  .schedule-visit-reveal.map-visible #scheduleVisitMap {
      position: relative;
      height: 100%;
      width: 100%;
      overflow: hidden;
  }
  
  .schedule-visit-reveal.map-visible .schedule-visit > .grid-y > .cell.auto {
      position: relative;
      height: 60%;
      max-height: 60%;
      overflow: hidden;
      background: #fff;
      z-index: 2;
  }
  
  .schedule-visit-reveal.map-visible .schedule-visit-calendar {
      position: relative;
      height: 100%;
      overflow: hidden;
      background: #fff;
      z-index: 3;
  }
  
  .schedule-visit-reveal.map-visible .dhx_cal_data,
  .schedule-visit-reveal.map-visible .dhx_cal_header,
  .schedule-visit-reveal.map-visible .dhx_cal_navline {
      background: #fff;
  }
  /* =========================
     CUSTOMER V2 
  ========================= */

  .customer-v2-page {
      width: 100%;
      min-height: 100%;
      background: #f5f5f7;
  }
  
  .customer-v2-shell {
      width: 100%;
      max-width: 1500px;
      margin: 0 auto;
      padding: 12px;
  }
  
  .customer-v2-header {
      background: #2C3840;
      color: #ffffff;
      padding: 14px;
      margin-bottom: 10px;
      border-radius: 14px;
      box-shadow: 0 8px 24px rgba(28, 48, 59, .14);
  }
  
  .customer-v2-title {
      margin: 0;
      color: #ffffff;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.2;
  }
  
  .customer-v2-subtitle {
      color: rgba(255,255,255,.85);
      font-size: 13px;
      margin-top: 4px;
  }
  
  .customer-v2-action-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(132px, max-content));
      gap: 10px;
      justify-content: end;
      align-items: stretch;
  }

  .customer-v2-action-row > visit-people {
      display: block;
      min-width: 0;
  }

  .customer-v2-action-row .button,
  .customer-v2-action-row .visit-people-launch {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
      min-width: 0;
      min-height: 52px;
      height: 52px;
      margin: 0;
      padding: 11px 14px;
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 10px !important;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
      white-space: normal;
      box-shadow: 0 4px 12px rgba(11, 25, 32, .14);
  }

  .customer-v2-action-row .visit-people-launch {
      background: #66757d;
      color: #fff;
  }

  .customer-v2-action-row .management-button {
      background: #f4b75e;
      color: #20333d !important;
  }

  .customer-v2-action-row .customer-v2-action-button.green {
      background: #99c625;
      color: #20333d !important;
  }
  
  .customer-v2-button {
      border-radius: 10px !important;
      color: #ffffff !important;
      margin: 0;
      font-weight: 700;
  }
  
  .customer-v2-button.green {
      background: #99C625;
  }
  
  .customer-v2-button.teal {
      background: #58b8a8;
  }
  
  .customer-v2-button.orange {
      background: #f46524;
  }
  
  .customer-v2-nav {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 8px;
      margin-bottom: 10px;
  }
  
  .customer-v2-nav-button {
      background: #ffffff;
      border: 1px solid #dcdcdc;
      border-left: 5px solid #99C625;
      padding: 12px 10px;
      text-align: left;
      cursor: pointer;
      min-height: 62px;
  }
  
  .customer-v2-nav-button.active {
      background: #99C625;
      color: #ffffff;
      border-color: #99C625;
  }
  
  .customer-v2-nav-title {
      display: block;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.1;
  }
  
  .customer-v2-nav-count {
      display: block;
      font-size: 18px;
      font-weight: 800;
      margin-top: 4px;
  }
  
  .customer-v2-card {
      background: #ffffff;
      border: 1px solid #dcdcdc;
      margin-bottom: 10px;
  }
  
  .customer-v2-card-header {
      background: #7f868b;
      color: #ffffff;
      padding: 10px 14px;
  }
  
  .customer-v2-card-header.teal {
      background: #58b8a8;
  }
  
  .customer-v2-card-header.green {
      background: #99C625;
  }
  
  .customer-v2-card-header h4 {
      margin: 0;
      color: #ffffff;
      font-size: 15px;
      font-weight: 700;
  }
  
  .customer-v2-card-body {
      padding: 12px;
  }
  
  .customer-v2-list {
      margin: 0;
      padding: 0;
      list-style: none;
  }
  
  .customer-v2-list-item {
      border-bottom: 1px solid #eeeeee;
      padding: 10px 0;
  }
  
  .customer-v2-list-item:last-child {
      border-bottom: 0;
  }
  
  .customer-v2-main-text {
      font-size: 16px;
      font-weight: 700;
      color: #222222;
      line-height: 1.3;
  }
  
  .customer-v2-muted {
      font-size: 13px;
      color: #666666;
      line-height: 1.35;
  }
  
  .customer-v2-empty {
      padding: 20px;
      text-align: center;
      color: #777777;
      background: #fafafa;
  }
  
  .customer-v2-loading {
      padding: 50px 20px;
      text-align: center;
      color: #99C625;
  }
  
  .customer-v2-section {
      display: block;
  }
  
  .customer-v2-address-search {
      height: 44px;
      border-radius: 0 !important;
      box-shadow: none !important;
      margin-bottom: 10px;
  }
  
  @media screen and (max-width: 1100px) {
      .customer-v2-shell {
          box-sizing: border-box;
          padding-right: 58px;
      }

      .customer-v2-header > .grid-x > .cell.medium-auto,
      .customer-v2-header > .grid-x > .cell.medium-shrink {
          flex: 0 0 100%;
          max-width: 100%;
          width: 100%;
      }

      .customer-v2-action-row {
          grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
          justify-content: stretch;
          margin-top: 14px;
      }
  }

  @media screen and (max-width: 640px) {
      .customer-v2-shell {
          padding: 6px 50px 6px 6px;
      }
  
      .customer-v2-header {
          padding: 10px;
      }
  
      .customer-v2-title {
          font-size: 18px;
      }
  
      .customer-v2-action-row {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 8px;
      }
  
      .customer-v2-action-row .button {
          width: 100%;
      }
  
      .customer-v2-nav {
          grid-template-columns: repeat(2, 1fr);
          gap: 6px;
      }
  
      .customer-v2-nav-button {
          min-height: 54px;
          padding: 9px;
      }
  
      .customer-v2-card-body {
          padding: 8px;
      }
  }
  .customer-v2-page input,
  .customer-v2-page select,
  .customer-v2-page textarea {
      border-radius: 0 !important;
      box-shadow: none !important;
      border: 1px solid #9aa6ad !important;
      background: #fff !important;
  }
  
  .customer-v2-page input:focus,
  .customer-v2-page select:focus,
  .customer-v2-page textarea:focus {
      border-color: #58b8a8 !important;
      box-shadow: none !important;
      outline: none !important;
  }
  /* =========================
     CUSTOMER V2 SCROLL FIX
     Page scrolls inside Compass shell
  ========================= */
  
  .customer-v2-page {
      height: calc(100vh - 40px) !important;
      max-height: calc(100vh - 40px) !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 120px !important;
  }
  
  .customer-v2-body {
      min-height: auto !important;
      overflow: visible !important;
      padding-bottom: 120px !important;
  }
  
  .customer-v2-section {
      overflow: visible !important;
  }
  /* =========================
     CUSTOMER CARD
     ADDRESS 
  ========================= */  
  
  .customer-v2-card-header.clickable {
      cursor: pointer;
      user-select: none;
  }
  
  .customer-v2-card-header .fa-chevron-down,
  .customer-v2-card-header .fa-chevron-up {
      font-size: 14px;
      opacity: .95;
  }
  .customer-v2-address-editor {
      background: #f7f9fa;
      border: 1px solid #d9e0e3;
  }
  
  .customer-v2-address-editor h5 {
      margin: 0 0 12px 0;
      font-size: 15px;
      font-weight: 700;
      color: #2f3b42;
  }
  .customer-v2-page textarea {
      min-height: 90px;
      resize: vertical;
      line-height: 1.35;
  }
  .customer-v2-google-results {
      margin: 10px 0 14px 0;
      border: 1px solid #d9e0e3;
      background: #fff;
  }
  
  .customer-v2-google-result {
      padding: 10px;
      border-bottom: 1px solid #e5eaed;
  }
  
  .customer-v2-google-result:last-child {
      border-bottom: none;
  }
  .customer-v2-address-choice-list {
      margin: 10px 0 14px 0;
  }
  
  .customer-v2-address-choice {
      padding: 12px;
      margin-bottom: 8px;
      border: 1px solid #d9e0e3;
      background: #ffffff;
  }
  
  .customer-v2-address-choice.recommended {
      border-left: 5px solid #58b8a8;
  }
  
  .customer-v2-address-choice.selected {
      border-left: 5px solid #99c625;
      background: #f8fff0;
  }
  
  .customer-v2-address-recommended {
      display: inline-block;
      margin-left: 8px;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: 700;
      background: #58b8a8;
      color: #ffffff;
  }
  .customer-v2-note-editor {
      background: #f7f9fa;
      border: 1px solid #d9e0e3;
  }
  
  .customer-v2-note-editor h5 {
      margin: 0 0 12px 0;
      font-size: 15px;
      font-weight: 700;
      color: #2f3b42;
  }
  
  .customer-v2-hot-note {
      border-left: 5px solid #f46524;
      background: #fff7f2;
  }
  
  .customer-v2-hot-badge {
      display: inline-block;
      margin-right: 8px;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: 700;
      background: #f46524;
      color: #ffffff;
  }
  
  .customer-v2-note-body {
      margin-top: 6px;
      white-space: normal;
  }
  
  .customer-v2-child-notes {
      margin-left: 24px;
      border-left: 3px solid #d9e0e3;
      padding-left: 14px;
  }
  
  .customer-v2-child-note {
      padding: 10px 0;
      border-bottom: 1px solid #e5eaed;
  }
  
  .customer-v2-child-note:last-child {
      border-bottom: none;
  }
  .customer-v2-button.management-button {
      background: #fdbc64 !important;
      border-color: #fdbc64 !important;
      color: #ffffff !important;
  }
  
  .customer-v2-button.hot-note-button {
      background: #f46524 !important;
      border-color: #f46524 !important;
      color: #ffffff !important;
      margin-right: 8px;
  }
  .customer-v2-note-meta {
      margin-top: 3px;
      font-size: 12px;
      font-style: italic;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE WORKSPACE
  ========================================== */
  
  .customer-v2-schedule-reveal {
      padding: 0 !important;
      margin: 0 !important;
      border: 0 !important;
      background: #f5f5f7;
      overflow: hidden;
  }
  
  .customer-v2-schedule-workspace {
      height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
  }
  
  .customer-v2-schedule-close {
      z-index: 999999;
      background: rgba(44, 56, 64, .75) !important;
      color: #ffffff !important;
      width: 52px;
      height: 52px;
      border-radius: 50% !important;
  }
  
  .customer-v2-schedule-toolbar {
      flex: 0 0 auto;
      background: #2C3840;
      color: #ffffff;
      padding: 16px 70px 16px 20px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px;
  }
  
  .customer-v2-schedule-title-block h3 {
      color: #ffffff;
      margin: 0;
      font-size: 22px;
      font-weight: 700;
  }
  
  .customer-v2-schedule-address {
      color: rgba(255,255,255,.85);
      margin-top: 4px;
      font-size: 14px;
  }
  
  .customer-v2-schedule-controls {
      display: flex;
      align-items: flex-end;
      gap: 15px;
  }
  
  .customer-v2-schedule-control label {
      color: #ffffff;
      font-weight: 600;
      margin-bottom: 5px;
  }
  
  .customer-v2-schedule-select {
      width: 320px;
      height: 44px !important;
      border-radius: 0 !important;
      margin: 0;
  }
  
  .customer-v2-schedule-message {
      margin: 0;
      border-radius: 0;
  }
  
  .customer-v2-schedule-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
  }
  
  .customer-v2-schedule-loading,
  .customer-v2-schedule-empty {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #444444;
      text-align: center;
  }
  
  .customer-v2-schedule-loading i {
      color: #99C625;
      margin-bottom: 15px;
  }
  
  .customer-v2-schedule-loaded {
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
  }
  
  .customer-v2-schedule-map-panel {
      flex: 0 0 35vh;
      min-height: 260px;
      background: #ffffff;
      border-bottom: 4px solid #2C3840;
  }
  
  .customer-v2-schedule-map {
      width: 100%;
      height: 100%;
  }
  
  .customer-v2-schedule-calendar-panel {
      flex: 1 1 auto;
      min-height: 0;
      background: #ffffff;
      overflow: hidden;
  }
  
  .customer-v2-schedule-calendar {
      width: 100%;
      height: 100%;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE DATE NAV
  ========================================== */
  
  .customer-v2-schedule-date-nav {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 10px 15px;
      background: #ffffff;
      border-bottom: 1px solid #dcdcdc;
  }
  
  .customer-v2-schedule-current-date {
      min-width: 240px;
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      color: #2C3840;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE CREW LEGEND
  ========================================== */
  
  .customer-v2-schedule-crew-legend {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      gap: 10px;
      overflow-x: auto;
      padding: 8px 15px;
      background: #ffffff;
      border-bottom: 1px solid #dcdcdc;
      white-space: nowrap;
  }
  
  .customer-v2-schedule-crew-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      background: #f5f5f7;
      border: 1px solid #dddddd;
      font-size: 13px;
      font-weight: 600;
      color: #2C3840;
  }
  
  .customer-v2-schedule-crew-dot {
      width: 12px;
      height: 12px;
      display: inline-block;
      border-radius: 50%;
      border: 1px solid rgba(0,0,0,.2);
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE CALENDAR
  ========================================== */
  
  .customer-v2-schedule-calendar .dhx_cal_header,
  .customer-v2-schedule-calendar .dhx_scale_bar {
      font-weight: 700;
      color: #2C3840;
  }
  
  .customer-v2-schedule-column-dot {
      width: 11px;
      height: 11px;
      display: inline-block;
      border-radius: 50%;
      margin-right: 6px;
      vertical-align: middle;
      border: 1px solid rgba(0,0,0,.2);
  }
  
  .customer-v2-schedule-event {
      border-radius: 0 !important;
      border: 0 !important;
  }
  
  .customer-v2-schedule-event-inner {
      padding: 4px 6px;
      line-height: 1.25;
  }
  
  .customer-v2-schedule-event-time {
      font-size: 11px;
      font-weight: 700;
  }
  
  .customer-v2-schedule-event-title {
      font-size: 13px;
      font-weight: 600;
      white-space: normal;
  }
  
  .customer-v2-schedule-event-distance {
      display: inline-block;
      margin-top: 4px;
      padding: 2px 5px;
      background: rgba(255,255,255,.25);
      font-size: 11px;
      font-weight: 700;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE LOADING OVERLAY
  ========================================== */
  
  .customer-v2-schedule-body {
      position: relative;
  }
  
  .customer-v2-schedule-loading-overlay {
      position: absolute;
      inset: 0;
      z-index: 50;
      background: rgba(255,255,255,.65);
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
  }
  
  .customer-v2-schedule-loading-box {
      background: #ffffff;
      padding: 25px 35px;
      border: 1px solid #dddddd;
      box-shadow: 0 8px 24px rgba(0,0,0,.18);
      text-align: center;
  }
  
  .customer-v2-schedule-loading-box i {
      color: #99C625;
      margin-bottom: 12px;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE CUSTOM TOOLTIP
  ========================================== */
  
  .customer-v2-schedule-tooltip {
      position: absolute;
      z-index: 9999999;
      max-width: 420px;
      max-height: 300px;
      overflow-y: auto;
      padding: 12px 14px;
      background: #2C3840;
      color: #ffffff;
      border: 1px solid rgba(255,255,255,.25);
      box-shadow: 0 8px 24px rgba(0,0,0,.25);
      font-size: 13px;
      line-height: 1.45;
      pointer-events: none;
  }
  
  .customer-v2-schedule-tooltip p {
      color: #ffffff;
      margin-bottom: 8px;
  }
  
  .customer-v2-schedule-tooltip * {
      color: #ffffff !important;
  }
  /* ==========================================
     HIDE NATIVE DHTMLX TOOLTIP
  ========================================== */
  
  .dhtmlXTooltip,
  .dhx_tooltip,
  .dhx_cal_tooltip {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
  }
  /* ==========================================
     TIGHTEN CUSTOMER V2 SCHEDULE LAYOUT
  ========================================== */
  
  .customer-v2-schedule-map-panel {
      flex: 0 0 34vh;
      min-height: 240px;
  }
  
  .customer-v2-schedule-calendar-panel {
      border-top: 0 !important;
  }
  
  .customer-v2-schedule-calendar .dhx_cal_navline {
      display: none !important;
      height: 0 !important;
  }
  
  .customer-v2-schedule-calendar .dhx_cal_header {
      top: 0 !important;
  }
  
  .customer-v2-schedule-calendar .dhx_cal_data {
      top: 21px !important;
  }
  
  .customer-v2-schedule-calendar .dhx_scale_bar {
      height: 20px !important;
      line-height: 20px !important;
      font-size: 12px !important;
      padding: 0 !important;
  }
  
  .customer-v2-schedule-calendar .dhx_cal_scale_placeholder {
      height: 20px !important;
  }
  /* ==========================================
     CUSTOMER V2 SCHEDULE CONFIRM OVERLAY
  ========================================== */
  
  .customer-v2-schedule-confirm-overlay {
      position: absolute;
      inset: 0;
      z-index: 999999;
      background: rgba(44,56,64,.55);
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .customer-v2-schedule-confirm-box {
      width: 540px;
      max-width: calc(100vw - 40px);
      background: #ffffff;
      padding: 28px;
      border: 1px solid #dddddd;
      box-shadow: 0 12px 40px rgba(0,0,0,.28);
  }
  
  .customer-v2-schedule-confirm-box h4 {
      margin: 0 0 18px 0;
      color: #2C3840;
      font-size: 22px;
      font-weight: 700;
  }
  
  .customer-v2-schedule-confirm-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 24px;
  }
  
  .customer-v2-schedule-confirm-summary label {
      display: block;
      margin-bottom: 4px;
      color: #777777;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
  }
  
  .customer-v2-schedule-confirm-summary strong {
      color: #2C3840;
      font-size: 15px;
  }
  
  .customer-v2-schedule-confirm-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
  }
/* ==========================================
     CUSTOMER V2 PHOTOS
  ========================================== */
  
  .customer-v2-header-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
  
      min-width: 26px;
      height: 22px;
  
      margin-left: 8px;
      padding: 0 8px;
  
      background: rgba(255,255,255,.22);
      color: #ffffff;
  
      font-size: 13px;
      font-weight: 700;
  }
  
  .customer-v2-section-summary {
      margin-bottom: 14px;
      padding: 10px 12px;
  
      background: #f5f5f7;
      border: 1px solid #dddddd;
  
      color: #2C3840;
      font-size: 14px;
  }
  
  .customer-v2-section-summary strong {
      font-size: 18px;
      color: #2C3840;
  }
  
  .customer-v2-photo-groups {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .customer-v2-photo-visit-card {
      border: 1px solid #dddddd;
      background: #ffffff;
  }
  
  .customer-v2-photo-visit-header {
      width: 100%;
      padding: 12px 14px;
  
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
  
      background: #7f868b;
      color: #ffffff;
  
      border: 0;
      cursor: pointer;
      text-align: left;
  }
  
  .customer-v2-photo-visit-header:hover {
      background: #6f777c;
  }
  
  .customer-v2-photo-visit-title {
      display: flex;
      align-items: center;
      gap: 9px;
  
      min-width: 0;
  }
  
  .customer-v2-photo-visit-title i {
      flex: 0 0 auto;
  }
  
  .customer-v2-photo-visit-title span {
      flex: 0 0 auto;
  
      font-size: 15px;
      font-weight: 700;
      color: #ffffff;
  }
  
  .customer-v2-photo-visit-title small {
      display: block;
  
      color: rgba(255,255,255,.85);
      font-size: 13px;
      font-weight: 500;
  
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }
  
  .customer-v2-photo-visit-count {
      flex: 0 0 auto;
  
      padding: 4px 8px;
  
      background: rgba(255,255,255,.2);
      color: #ffffff;
  
      font-size: 12px;
      font-weight: 700;
  }
  
  .customer-v2-photo-gallery {
      padding: 12px;
  
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
      gap: 12px;
  
      background: #f5f5f7;
  }
  
  .customer-v2-photo-card {
      background: #ffffff;
      border: 1px solid #dddddd;
      overflow: hidden;
  }
  
  .customer-v2-photo-thumb-button {
      width: 100%;
      height: 130px;
  
      padding: 0;
      margin: 0;
  
      border: 0;
      background: #eeeeee;
  
      cursor: pointer;
      overflow: hidden;
  }
  
  .customer-v2-photo-thumb {
      width: 100%;
      height: 100%;
  
      object-fit: cover;
      display: block;
  }
  
  .customer-v2-photo-meta {
      padding: 7px 8px;
  
      color: #555555;
      font-size: 11px;
      line-height: 1.25;
  }
  
  .customer-v2-photo-note {
      margin-top: 4px;
      color: #2C3840;
      font-weight: 600;
  }
  
  /* MOBILE */
  @media screen and (max-width: 640px) {
  
      .customer-v2-photo-visit-header {
          align-items: flex-start;
      }
  
      .customer-v2-photo-visit-title {
          flex-direction: column;
          align-items: flex-start;
          gap: 3px;
      }
  
      .customer-v2-photo-visit-title small {
          white-space: normal;
      }
  
      .customer-v2-photo-gallery {
          grid-template-columns: repeat(2, 1fr);
          gap: 8px;
          padding: 8px;
      }
  
      .customer-v2-photo-thumb-button {
          height: 120px;
      }
  
  }
  /* ==========================================
     CUSTOMER V2 PHOTOS - SQUARE HEADERS
  ========================================== */
  
  .customer-v2-photo-visit-card {
      border-radius: 0 !important;
  }
  
  .customer-v2-photo-visit-header {
      border-radius: 0 !important;
  }
  
  .customer-v2-photo-visit-count {
      border-radius: 0 !important;
  }
  
  .customer-v2-photo-groups button,
  .customer-v2-photo-groups .button {
      border-radius: 0 !important;
  }
  /* ==========================================
     CUSTOMER V2 PHOTO PREVIEW
  ========================================== */
  
  .customer-v2-photo-preview-reveal {
      padding: 0 !important;
      border-radius: 0 !important;
      background: #2C3840;
      border: 0 !important;
  }
  
  .customer-v2-photo-preview-close {
      z-index: 20;
      color: #ffffff !important;
  }
  
  .customer-v2-photo-preview {
      display: flex;
      flex-direction: column;
      max-height: 90vh;
  }
  
  .customer-v2-photo-preview-header {
      flex: 0 0 auto;
  
      padding: 14px 55px 14px 18px;
  
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
  
      background: #2C3840;
      color: #ffffff;
  }
  
  .customer-v2-photo-preview-header h4 {
      margin: 0;
      color: #ffffff;
      font-size: 20px;
      font-weight: 700;
  }
  
  .customer-v2-photo-preview-header p {
      margin: 3px 0 0 0;
      color: rgba(255,255,255,.8);
      font-size: 13px;
  }
  
  .customer-v2-photo-preview-count {
      padding: 6px 10px;
      background: rgba(255,255,255,.18);
      color: #ffffff;
      font-weight: 700;
  }
  
  .customer-v2-photo-preview-body {
      position: relative;
      flex: 1 1 auto;
  
      min-height: 320px;
      max-height: calc(90vh - 130px);
  
      display: flex;
      align-items: center;
      justify-content: center;
  
      background: #111111;
      overflow: hidden;
  }
  
  .customer-v2-photo-preview-image {
      max-width: 100%;
      max-height: calc(90vh - 150px);
      object-fit: contain;
      display: block;
  }
  
  .customer-v2-photo-preview-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
  
      width: 52px;
      height: 72px;
  
      border: 0;
      background: rgba(44,56,64,.75);
      color: #ffffff;
  
      font-size: 28px;
      cursor: pointer;
      z-index: 10;
  }
  
  .customer-v2-photo-preview-nav:hover {
      background: rgba(88,184,168,.9);
  }
  
  .customer-v2-photo-preview-nav.left {
      left: 0;
  }
  
  .customer-v2-photo-preview-nav.right {
      right: 0;
  }
  
  .customer-v2-photo-preview-footer {
      flex: 0 0 auto;
  
      padding: 10px 16px;
  
      background: #ffffff;
      color: #2C3840;
  
      font-size: 13px;
      line-height: 1.4;
  }
  
  .customer-v2-photo-preview-footer strong {
      color: #2C3840;
  }
  
  /* keep photo UI square */
  .customer-v2-photo-preview-reveal,
  .customer-v2-photo-preview-count,
  .customer-v2-photo-preview-nav {
      border-radius: 0 !important;
  }
  /* ==========================================
     CUSTOMER V2 VIDEOS
  ========================================== */
  
  .customer-v2-video-groups {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  
  .customer-v2-video-visit-card {
      border: 1px solid #dddddd;
      background: #ffffff;
      border-radius: 0 !important;
  }
  
  .customer-v2-video-visit-header {
      width: 100%;
      padding: 12px 14px;
  
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
  
      background: #7f868b;
      color: #ffffff;
  
      border: 0;
      border-radius: 0 !important;
      cursor: pointer;
      text-align: left;
  }
  
  .customer-v2-video-visit-header:hover {
      background: #6f777c;
  }
  
  .customer-v2-video-visit-title {
      display: flex;
      align-items: center;
      gap: 9px;
  
      min-width: 0;
  }
  
  .customer-v2-video-visit-title span {
      flex: 0 0 auto;
  
      font-size: 15px;
      font-weight: 700;
      color: #ffffff;
  }
  
  .customer-v2-video-visit-title small {
      display: block;
  
      color: rgba(255,255,255,.85);
      font-size: 13px;
      font-weight: 500;
  
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }
  
  .customer-v2-video-visit-count {
      flex: 0 0 auto;
  
      padding: 4px 8px;
  
      background: rgba(255,255,255,.2);
      color: #ffffff;
  
      font-size: 12px;
      font-weight: 700;
      border-radius: 0 !important;
  }
  
  .customer-v2-video-gallery {
      padding: 12px;
  
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 12px;
  
      background: #f5f5f7;
  }
  
  .customer-v2-video-card {
      background: #ffffff;
      border: 1px solid #dddddd;
      border-radius: 0 !important;
      overflow: hidden;
  }
  
  .customer-v2-video-frame-wrap {
      position: relative;
      width: 100%;
      padding-top: 56.25%;
      background: #111111;
  }
  
  .customer-v2-video-frame {
      position: absolute;
      inset: 0;
  
      width: 100%;
      height: 100%;
  
      border: 0;
  }
  
  .customer-v2-video-meta {
      padding: 10px 12px;
  
      color: #2C3840;
      font-size: 13px;
      line-height: 1.45;
  }
  
  .customer-v2-video-meta strong {
      color: #2C3840;
  }
  
  .customer-v2-video-badge {
      display: inline-block;
  
      margin-top: 6px;
      padding: 4px 8px;
  
      background: #99C625;
      color: #ffffff;
  
      font-size: 12px;
      font-weight: 700;
      border-radius: 0 !important;
  }
  
  /* MOBILE */
  @media screen and (max-width: 640px) {
  
      .customer-v2-video-visit-header {
          align-items: flex-start;
      }
  
      .customer-v2-video-visit-title {
          flex-direction: column;
          align-items: flex-start;
          gap: 3px;
      }
  
      .customer-v2-video-visit-title small {
          white-space: normal;
      }
  
      .customer-v2-video-gallery {
          grid-template-columns: 1fr;
          gap: 8px;
          padding: 8px;
      }
  
  }
 /* ==========================================
    CUSTOMER V2 VISITS TAB
 ========================================== */
 
 .customer-v2-visits {
     background: #ffffff;
 }
 
 .customer-v2-section-header {
     background: #99c625;
     color: #ffffff;
     padding: 14px 16px;
     border-radius: 0;
 }
 
 .customer-v2-section-header h3 {
     margin: 0;
     color: #ffffff;
     font-size: 16px;
     font-weight: 700;
 }
 
 .customer-v2-section-header i {
     color: #ffffff;
     margin-right: 6px;
 }
 
 .customer-v2-sub-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
 
     margin-top: 14px;
     padding: 12px 14px;
 
     color: #ffffff;
     font-size: 15px;
     font-weight: 700;
 
     border-radius: 0;
 }
 
 .customer-v2-sub-header.teal {
     background: #58b8a8;
 }
 
 .customer-v2-sub-header.gray {
     background: #7f868b;
 }
 
 .customer-v2-visit-card {
     margin: 12px 0 18px 0;
     border: 1px solid #dcdcdc;
     border-left: 6px solid #99c625;
     background: #ffffff;
     border-radius: 0;
     box-shadow: none;
     overflow: hidden;
 }
 
 .customer-v2-visit-card-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
 
     padding: 12px 14px;
 
     background: #f5f5f5;
     border-bottom: 1px solid #dcdcdc;
 
     color: #222222;
     font-size: 16px;
     font-weight: 700;
 }
 
 .customer-v2-visit-card-body {
     padding: 14px;
 }
 
 .customer-v2-field-label {
     margin-bottom: 4px;
 
     color: #7f868b;
     font-size: 11px;
     font-weight: 700;
     line-height: 1.2;
     text-transform: uppercase;
     letter-spacing: .04em;
 }
 
 .customer-v2-field-value {
     margin-bottom: 14px;
 
     color: #222222;
     font-size: 14px;
     font-weight: 500;
     line-height: 1.45;
 }
 
 .customer-v2-visit-details-clean {
     max-height: 150px;
     overflow-y: auto;
 
     padding: 10px;
     background: #fafafa;
     border: 1px solid #eeeeee;
 }
 
 .customer-v2-visit-details-clean p,
 .customer-v2-visit-details-clean div,
 .customer-v2-visit-details-clean span,
 .customer-v2-visit-details-clean b,
 .customer-v2-visit-details-clean strong {
     margin: 0 0 8px 0 !important;
 
     color: #333333 !important;
     font-size: 14px !important;
     font-weight: 500;
     line-height: 1.45 !important;
     font-family: Helvetica, Arial, sans-serif !important;
 }
 
 .customer-v2-visit-button {
     min-width: 64px;
 
     margin: 0;
     padding: 9px 12px;
 
     background: #58b8a8 !important;
     color: #ffffff !important;
 
     border-radius: 0 !important;
 
     font-size: 13px;
     font-weight: 700;
 }
 
 .customer-v2-loading,
 .customer-v2-empty {
     padding: 20px;
     text-align: center;
     color: #666666;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-visit-card-header {
         align-items: stretch;
         gap: 10px;
     }
 
     .customer-v2-visit-button {
         min-width: 72px;
     }
 
     .customer-v2-visit-card-body {
         padding: 12px;
     }
 
     .customer-v2-field-value {
         margin-bottom: 12px;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 SCHEDULE DATE PICKER
 ========================================== */
 
 .customer-v2-schedule-current-date-wrap {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
 }
 
 .customer-v2-schedule-date-picker {
     width: 145px;
     height: 34px !important;
     margin: 0;
     padding: 4px 8px;
 
     border: 1px solid #cccccc;
     border-radius: 0 !important;
 
     color: #2C3840;
     font-size: 13px;
     font-weight: 600;
 }
 
 .customer-v2-schedule-date-picker:disabled {
     opacity: .65;
     cursor: not-allowed;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-schedule-current-date-wrap {
         flex-direction: column;
         gap: 6px;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 COMMUNICATIONS TAB
 ========================================== */
 
 .customer-v2-communications {
     background: #ffffff;
 }
 
 /* ACTIONS */
 
 .customer-v2-communication-actions {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 12px;
 
     padding: 14px;
     background: #f5f5f5;
     border: 1px solid #e2e2e2;
     border-top: 0;
 }
 
 .customer-v2-action-button {
     margin: 0 !important;
     padding: 13px 14px !important;
 
     border-radius: 0 !important;
 
     color: #ffffff !important;
     font-size: 14px;
     font-weight: 700;
     line-height: 1.2;
 }
 
 .customer-v2-action-button i {
     margin-right: 6px;
     color: #ffffff !important;
 }
 
 .customer-v2-action-button.teal {
     background: #58b8a8 !important;
 }
 
 .customer-v2-action-button.green {
     background: #99c625 !important;
 }
 
 /* SUMMARY COUNTS */
 
 .customer-v2-communication-summary {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 10px;
 
     padding: 14px 0;
 }
 
 .customer-v2-communication-count-card {
     padding: 14px;
 
     background: #ffffff;
     border: 1px solid #dcdcdc;
     border-radius: 0;
 
     text-align: center;
 }
 
 .customer-v2-count-label {
     margin-bottom: 4px;
 
     color: #7f868b;
     font-size: 11px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: .04em;
 }
 
 .customer-v2-count-value {
     color: #222222;
     font-size: 24px;
     font-weight: 800;
     line-height: 1.1;
 }
 
 /* TIMELINE */
 
 .customer-v2-communication-timeline {
     padding-top: 4px;
 }
 
 .customer-v2-communication-card {
     margin: 0 0 16px 0;
 
     background: #ffffff;
     border: 1px solid #dcdcdc;
     border-left: 6px solid #7f868b;
     border-radius: 0;
 
     box-shadow: none;
     overflow: hidden;
 }
 
 .customer-v2-communication-card.communication-email {
     border-left-color: #58b8a8;
 }
 
 .customer-v2-communication-card.communication-text {
     border-left-color: #99c625;
 }
 
 .customer-v2-communication-card.communication-call {
     border-left-color: #f46524;
 }
 
 .customer-v2-communication-card-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
 
     padding: 12px 14px;
 
     background: #f5f5f5;
     border-bottom: 1px solid #dcdcdc;
 }
 
 .customer-v2-communication-type {
     display: flex;
     align-items: center;
     gap: 7px;
 
     color: #222222;
     font-size: 13px;
     font-weight: 800;
     letter-spacing: .03em;
 }
 
 .customer-v2-communication-type i {
     color: #7f868b;
 }
 
 .communication-email .customer-v2-communication-type i {
     color: #58b8a8;
 }
 
 .communication-text .customer-v2-communication-type i {
     color: #99c625;
 }
 
 .communication-call .customer-v2-communication-type i {
     color: #f46524;
 }
 
 .customer-v2-communication-date {
     color: #666666;
     font-size: 12px;
     font-weight: 700;
     white-space: nowrap;
 }
 
 .customer-v2-communication-card-body {
     padding: 14px;
 }
 
 .customer-v2-communication-title {
     margin-bottom: 14px;
 
     color: #222222;
     font-size: 15px;
     font-weight: 800;
     line-height: 1.35;
 }
 
 .customer-v2-communication-preview {
     max-height: 82px;
     overflow: hidden;
 
     padding: 10px;
 
     background: #fafafa;
     border: 1px solid #eeeeee;
 
     color: #333333;
     font-size: 13px;
     font-weight: 500;
     line-height: 1.45;
 }
 
 .customer-v2-communication-card-footer {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
 
     padding: 12px 14px;
 
     background: #ffffff;
     border-top: 1px solid #eeeeee;
 }
 
 .customer-v2-small-button {
     margin: 0 !important;
     padding: 8px 12px !important;
 
     border-radius: 0 !important;
 
     color: #ffffff !important;
     font-size: 12px;
     font-weight: 800;
     line-height: 1.2;
 }
 
 .customer-v2-small-button.teal {
     background: #58b8a8 !important;
 }
 
 .customer-v2-small-button.green {
     background: #99c625 !important;
 }
 
 .customer-v2-attachment-pill {
     display: inline-flex;
     align-items: center;
     gap: 5px;
 
     padding: 7px 10px;
 
     background: #f5f5f5;
     border: 1px solid #dddddd;
 
     color: #555555;
     font-size: 12px;
     font-weight: 700;
 }
 
 /* PREVIEW REVEAL */
 
 .customer-v2-communication-preview-reveal {
     width: 90vw !important;
     max-width: 1000px !important;
     padding: 0 !important;
 
     border-radius: 0 !important;
     border: 0 !important;
 
     background: #ffffff;
 }
 
 .customer-v2-preview-header {
     display: flex;
     justify-content: space-between;
     gap: 15px;
 
     padding: 16px 20px;
 
     background: #58b8a8;
     color: #ffffff;
 }
 
 .customer-v2-preview-header h3 {
     margin: 0;
 
     color: #ffffff;
     font-size: 17px;
     font-weight: 800;
     line-height: 1.25;
 }
 
 .customer-v2-preview-header h3 i {
     margin-right: 7px;
     color: #ffffff;
 }
 
 .customer-v2-preview-meta {
     margin-top: 4px;
 
     color: rgba(255,255,255,.9);
     font-size: 12px;
     font-weight: 700;
 }
 
 .customer-v2-preview-header .close-button {
     position: static !important;
 
     width: 34px;
     height: 34px;
     line-height: 34px;
 
     color: #ffffff !important;
     font-size: 28px;
 }
 
 .customer-v2-preview-body {
     max-height: 75vh;
     overflow-y: auto;
 
     padding: 18px;
 
     background: #f5f5f5;
 }
 
 .customer-v2-email-preview-frame {
     max-width: 760px;
     margin: 0 auto;
     padding: 12px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 
     overflow-x: auto;
 }
 
 .customer-v2-email-preview-frame img {
     max-width: 100% !important;
     height: auto !important;
 }
 
 .customer-v2-email-preview-frame table {
     max-width: 100% !important;
 }
 
 .customer-v2-message-preview {
     padding: 18px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 
     color: #222222;
     font-size: 15px;
     font-weight: 500;
     line-height: 1.5;
     white-space: pre-wrap;
 }
 
 /* MOBILE */
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-communication-actions {
         grid-template-columns: 1fr;
         padding: 10px;
     }
 
     .customer-v2-communication-summary {
         grid-template-columns: 1fr;
         gap: 8px;
     }
 
     .customer-v2-communication-card-header {
         align-items: flex-start;
         flex-direction: column;
         gap: 4px;
     }
 
     .customer-v2-communication-date {
         white-space: normal;
     }
 
     .customer-v2-communication-card-body {
         padding: 12px;
     }
 
     .customer-v2-communication-card-footer {
         align-items: stretch;
         flex-direction: column;
     }
 
     .customer-v2-small-button {
         width: 100%;
         text-align: center;
     }
 
     .customer-v2-communication-preview-reveal {
         width: 100vw !important;
         max-width: 100vw !important;
         height: 100vh !important;
         top: 0 !important;
         left: 0 !important;
     }
 
     .customer-v2-preview-body {
         max-height: calc(100vh - 72px);
         padding: 10px;
     }
 
     .customer-v2-email-preview-frame {
         padding: 8px;
     }
 
 }
 /* COMMUNICATION FILTER CARDS */
 
 .customer-v2-communication-summary {
     grid-template-columns: repeat(4, minmax(0, 1fr));
 }
 
 .customer-v2-communication-count-card {
     width: 100%;
     margin: 0;
     cursor: pointer;
 
     transition:
         transform .12s ease,
         border-color .12s ease,
         background .12s ease;
 }
 
 .customer-v2-communication-count-card:hover {
     transform: translateY(-1px);
     border-color: #bdbdbd;
     background: #fafafa;
 }
 
 .customer-v2-communication-count-card.active {
     border-color: #99c625;
     border-left: 6px solid #99c625;
     background: #f8fbf1;
 }
 
 .customer-v2-communication-count-card.email.active {
     border-color: #58b8a8;
     border-left-color: #58b8a8;
 }
 
 .customer-v2-communication-count-card.text.active {
     border-color: #99c625;
     border-left-color: #99c625;
 }
 
 .customer-v2-communication-count-card.call.active {
     border-color: #f46524;
     border-left-color: #f46524;
 }
 
 .customer-v2-filter-status {
     margin: -4px 0 14px 0;
     padding: 10px 14px;
 
     background: #f5f5f5;
     border: 1px solid #e2e2e2;
 
     color: #555555;
     font-size: 13px;
     font-weight: 600;
 }
 
 .customer-v2-filter-status strong {
     color: #222222;
     font-weight: 800;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-communication-summary {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 
 }
 /* ==========================================
    COMMUNICATION CALL PREVIEW
 ========================================== */
 
 .customer-v2-preview-header.communication-call {
     background: #f46524;
 }
 
 .customer-v2-preview-header.communication-email {
     background: #58b8a8;
 }
 
 .customer-v2-preview-header.communication-text {
     background: #99c625;
 }
 
 .customer-v2-preview-info-grid {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 12px;
 
     margin-bottom: 16px;
     padding: 14px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 }
 
 .customer-v2-call-preview-card {
     max-width: 900px;
     margin: 0 auto;
 }
 
 .customer-v2-call-recording-block,
 .customer-v2-call-summary-block,
 .customer-v2-call-transcript-block,
 .customer-v2-call-empty-block {
     margin-bottom: 16px;
     padding: 14px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 }
 
 .customer-v2-call-section-title {
     margin-bottom: 10px;
 
     color: #222222;
     font-size: 14px;
     font-weight: 800;
     line-height: 1.2;
 }
 
 .customer-v2-call-section-title i {
     margin-right: 6px;
     color: #f46524;
 }
 
 .customer-v2-call-audio {
     width: 100%;
     margin-bottom: 12px;
 }
 
 .customer-v2-call-summary {
     color: #222222;
     font-size: 14px;
     font-weight: 500;
     line-height: 1.55;
     white-space: pre-wrap;
 }
 
 .customer-v2-call-transcript {
     max-height: 360px;
     overflow-y: auto;
 
     padding: 12px;
 
     background: #fafafa;
     border: 1px solid #eeeeee;
 
     color: #222222;
     font-size: 13px;
     font-weight: 500;
     line-height: 1.55;
     white-space: pre-wrap;
 }
 
 .customer-v2-call-empty-block {
     color: #666666;
     font-size: 13px;
     font-weight: 600;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-preview-info-grid {
         grid-template-columns: 1fr;
     }
 
     .customer-v2-call-transcript {
         max-height: 300px;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 COMMUNICATION COMPOSERS
 ========================================== */
 
 .customer-v2-composer-reveal {
     width: 88vw !important;
     max-width: 850px !important;
     padding: 0 !important;
 
     border: 0 !important;
     border-radius: 0 !important;
 
     background: #ffffff;
 }
 
 .customer-v2-composer-reveal.small {
     max-width: 560px !important;
 }
 
 .customer-v2-composer-header {
     display: flex;
     justify-content: space-between;
     gap: 15px;
 
     padding: 16px 20px;
 
     color: #ffffff;
 }
 
 .customer-v2-composer-header.email {
     background: #58b8a8;
 }
 
 .customer-v2-composer-header.text {
     background: #99c625;
 }
 
 .customer-v2-composer-header h3 {
     margin: 0;
 
     color: #ffffff;
     font-size: 18px;
     font-weight: 800;
 }
 
 .customer-v2-composer-header h3 i {
     margin-right: 7px;
     color: #ffffff;
 }
 
 .customer-v2-composer-subtitle {
     margin-top: 4px;
 
     color: rgba(255,255,255,.9);
     font-size: 12px;
     font-weight: 700;
 }
 
 .customer-v2-composer-header .close-button {
     position: static !important;
 
     width: 34px;
     height: 34px;
     line-height: 34px;
 
     color: #ffffff !important;
     font-size: 28px;
 }
 
 .customer-v2-composer-body {
     padding: 18px;
 
     background: #f5f5f5;
 }
 
 .customer-v2-composer-body .customer-form-input {
     width: 100%;
     min-height: 42px;
 
     margin-bottom: 14px;
     padding: 9px 10px;
 
     background: #ffffff;
     border: 1px solid #dcdcdc;
     border-radius: 0;
 
     color: #222222;
     font-size: 14px;
     font-weight: 500;
 }
 
 .customer-v2-composer-textarea {
     min-height: 180px !important;
     resize: vertical;
 }
 
 .customer-v2-composer-textarea.email {
     min-height: 260px !important;
 }
 
 .customer-v2-composer-textarea.text {
     min-height: 140px !important;
 }
 
 .customer-v2-cc-row {
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 8px;
 }
 
 .customer-v2-mini-danger {
     height: 42px;
 
     margin: 0 0 14px 0 !important;
     padding: 0 12px !important;
 
     background: #d9534f !important;
     color: #ffffff !important;
 
     border-radius: 0 !important;
 }
 
 .customer-v2-mini-danger i {
     color: #ffffff !important;
 }
 
 .customer-v2-character-count {
     margin-top: -8px;
 
     color: #777777;
     font-size: 12px;
     font-weight: 700;
     text-align: right;
 }
 
 .customer-v2-composer-footer {
     display: flex;
     justify-content: flex-end;
     gap: 10px;
 
     padding: 14px 18px;
 
     background: #ffffff;
     border-top: 1px solid #dddddd;
 }
 
 .customer-v2-secondary-button {
     margin: 0 !important;
     padding: 12px 16px !important;
 
     background: #7f868b !important;
     color: #ffffff !important;
 
     border-radius: 0 !important;
 
     font-size: 13px;
     font-weight: 800;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-composer-reveal,
     .customer-v2-composer-reveal.small {
         width: 100vw !important;
         max-width: 100vw !important;
         height: 100vh !important;
 
         top: 0 !important;
         left: 0 !important;
     }
 
     .customer-v2-composer-body {
         max-height: calc(100vh - 132px);
         overflow-y: auto;
         padding: 12px;
     }
 
     .customer-v2-composer-footer {
         align-items: stretch;
         flex-direction: column-reverse;
     }
 
     .customer-v2-composer-footer .button {
         width: 100%;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 EMAIL ATTACHMENTS
 ========================================== */
 
 .customer-v2-photo-attachment-grid {
     display: grid;
     grid-template-columns: repeat(5, minmax(0, 1fr));
     gap: 8px;
 
     margin-bottom: 14px;
 }
 
 .customer-v2-photo-attachment-tile {
     position: relative;
 
     height: 86px;
     padding: 0;
     margin: 0;
 
     background: #ffffff;
     border: 2px solid #dcdcdc;
     border-radius: 0;
 
     overflow: hidden;
     cursor: pointer;
 }
 
 .customer-v2-photo-attachment-tile img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 
 .customer-v2-photo-attachment-tile.selected {
     border-color: #99c625;
 }
 
 .customer-v2-photo-attachment-check {
     display: none;
 
     position: absolute;
     top: 6px;
     right: 6px;
 
     width: 22px;
     height: 22px;
     line-height: 22px;
 
     background: #99c625;
     color: #ffffff;
 
     text-align: center;
     font-size: 12px;
 }
 
 .customer-v2-photo-attachment-tile.selected .customer-v2-photo-attachment-check {
     display: block;
 }
 
 .customer-v2-photo-attachment-check i {
     color: #ffffff;
 }
 
 .customer-v2-photo-attachment-placeholder {
     display: flex;
     align-items: center;
     justify-content: center;
 
     height: 100%;
 
     color: #7f868b;
     font-size: 24px;
 }
 
 .customer-v2-selected-attachments {
     margin-top: 8px;
 }
 
 .customer-v2-selected-attachment-title {
     margin-bottom: 6px;
 
     color: #7f868b;
     font-size: 11px;
     font-weight: 800;
     text-transform: uppercase;
     letter-spacing: .04em;
 }
 
 .customer-v2-selected-attachment {
     display: flex;
     justify-content: space-between;
     align-items: center;
 
     margin-bottom: 6px;
     padding: 8px 10px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 
     color: #333333;
     font-size: 13px;
     font-weight: 700;
 }
 
 .customer-v2-selected-attachment button {
     margin: 0;
     padding: 0;
 
     background: transparent;
     border: 0;
 
     color: #d9534f;
     cursor: pointer;
 }
 
 .customer-v2-attachment-empty {
     padding: 10px;
 
     background: #ffffff;
     border: 1px dashed #cccccc;
 
     color: #777777;
     font-size: 13px;
     font-weight: 600;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-photo-attachment-grid {
         grid-template-columns: repeat(3, minmax(0, 1fr));
     }
 
 }
 /* ==========================================
    CUSTOMER V2 EMAIL PREVIEW ATTACHMENTS
 ========================================== */
 
 .customer-v2-email-preview-attachments {
     max-width: 860px;
 
     margin: 18px auto 0 auto;
     padding: 14px;
 
     background: #ffffff;
     border: 1px solid #dddddd;
 }
 
 .customer-v2-email-preview-attachments-title {
     margin-bottom: 10px;
 
     color: #7f868b;
     font-size: 12px;
     font-weight: 900;
     text-transform: uppercase;
     letter-spacing: .04em;
 }
 
 .customer-v2-email-preview-attachment {
     display: flex;
     align-items: center;
     gap: 10px;
 
     margin-bottom: 8px;
     padding: 10px;
 
     background: #f5f5f5;
     border: 1px solid #dddddd;
 }
 
 .customer-v2-email-preview-attachment:last-child {
     margin-bottom: 0;
 }
 
 .customer-v2-email-preview-attachment-icon {
     display: flex;
     align-items: center;
     justify-content: center;
 
     width: 34px;
     height: 34px;
 
     background: #58b8a8;
     color: #ffffff;
 }
 
 .customer-v2-email-preview-attachment-icon i {
     color: #ffffff;
     font-size: 15px;
 }
 
 .customer-v2-email-preview-attachment-name {
     color: #222222;
     font-size: 14px;
     font-weight: 800;
 }
 
 .customer-v2-email-preview-attachment-size {
     margin-top: 2px;
 
     color: #777777;
     font-size: 12px;
     font-weight: 700;
 }
 /* ==========================================
    CUSTOMER V2 MOBILE OVERLAY / TOAST FIX
 ========================================== */
 
 /* Toasts must sit above the fixed mobile/top menu */
 .compass-toast,
 .customer-v2-toast,
 .customer-v2-message-toast,
 .customer-v2-error-toast {
     z-index: 9999999 !important;
 }
 
 /* Foundation reveal overlay must sit above Compass top nav */
 .reveal-overlay {
     z-index: 999990 !important;
 }
 
 /* Customer V2 composer / preview modals above overlay and nav */
 .customer-v2-composer-reveal,
 .customer-v2-preview-reveal,
 #customerEmailComposerReveal,
 #customerTextComposerReveal,
 #customerCommunicationPreviewReveal {
     z-index: 999999 !important;
 }
 
 /* Mobile: make the modal start below NOTHING — full screen above menu */
 @media screen and (max-width: 640px) {
 
     .reveal-overlay {
         top: 0 !important;
         z-index: 999990 !important;
     }
 
     .customer-v2-composer-reveal,
     .customer-v2-preview-reveal,
     #customerEmailComposerReveal,
     #customerTextComposerReveal,
     #customerCommunicationPreviewReveal {
         position: fixed !important;
 
         top: 0 !important;
         left: 0 !important;
         right: 0 !important;
 
         width: 100vw !important;
         max-width: 100vw !important;
 
         height: 100vh !important;
         max-height: 100vh !important;
 
         margin: 0 !important;
 
         z-index: 999999 !important;
 
         overflow-y: auto !important;
     }
 
     .customer-v2-composer-header,
     .customer-v2-preview-header {
         position: sticky;
         top: 0;
         z-index: 2;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 MOBILE EMAIL PREVIEW FIX
 ========================================== */
 
 @media screen and (max-width: 640px) {
 
     #customerCommunicationPreviewReveal {
         position: fixed !important;
 
         top: 0 !important;
         left: 0 !important;
         right: 0 !important;
         bottom: 0 !important;
 
         width: 100vw !important;
         max-width: 100vw !important;
 
         height: 100vh !important;
         max-height: 100vh !important;
 
         margin: 0 !important;
         padding: 0 !important;
 
         background: #f5f5f5 !important;
 
         overflow-y: auto !important;
         -webkit-overflow-scrolling: touch;
 
         z-index: 9999999 !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-preview-header {
         position: sticky !important;
         top: 0 !important;
         z-index: 10 !important;
 
         width: 100% !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-preview-body {
         padding: 12px !important;
 
         min-height: calc(100vh - 76px) !important;
 
         background: #f5f5f5 !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-preview-info-grid {
         display: block !important;
 
         margin: 0 0 12px 0 !important;
         padding: 14px !important;
 
         background: #ffffff !important;
         border: 1px solid #dddddd !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-preview-info-grid > div {
         margin-bottom: 18px !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-preview-info-grid > div:last-child {
         margin-bottom: 0 !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-email-preview-frame {
         width: 100% !important;
         max-width: 100% !important;
 
         margin: 0 0 12px 0 !important;
         padding: 14px !important;
 
         background: #ffffff !important;
         border: 1px solid #dddddd !important;
 
         color: #333333 !important;
 
         overflow-x: auto !important;
         word-break: break-word !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-email-preview-frame * {
         max-width: 100% !important;
     }
 
     #customerCommunicationPreviewReveal .customer-v2-email-preview-attachments {
         width: 100% !important;
         max-width: 100% !important;
 
         margin: 12px 0 0 0 !important;
     }
 
 }
 /* ==========================================
    CUSTOMER V2 COMMUNICATION PREVIEW
    MOBILE FULL SCREEN FORCE
 ========================================== */
 
 @media screen and (max-width: 700px) {
 
     body.is-reveal-open {
         overflow: hidden !important;
     }
 
     .reveal-overlay {
         position: fixed !important;
 
         top: 0 !important;
         left: 0 !important;
         right: 0 !important;
         bottom: 0 !important;
 
         width: 100vw !important;
         height: 100vh !important;
 
         margin: 0 !important;
         padding: 0 !important;
 
         overflow: hidden !important;
 
         background: #f5f5f5 !important;
 
         z-index: 9999900 !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal {
         position: fixed !important;
 
         top: 0 !important;
         left: 0 !important;
         right: auto !important;
         bottom: auto !important;
 
         width: 100vw !important;
         max-width: 100vw !important;
 
         height: 100vh !important;
         max-height: 100vh !important;
 
         min-height: 100vh !important;
 
         margin: 0 !important;
         padding: 0 !important;
 
         transform: none !important;
 
         background: #f5f5f5 !important;
 
         overflow-y: auto !important;
         overflow-x: hidden !important;
 
         -webkit-overflow-scrolling: touch;
 
         z-index: 9999999 !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-preview-header {
         position: sticky !important;
         top: 0 !important;
 
         width: 100% !important;
 
         margin: 0 !important;
 
         z-index: 20 !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-preview-body {
         width: 100% !important;
         min-height: calc(100vh - 76px) !important;
 
         margin: 0 !important;
         padding: 12px !important;
 
         background: #f5f5f5 !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-preview-info-grid {
         display: block !important;
 
         width: 100% !important;
 
         margin: 0 0 12px 0 !important;
         padding: 14px !important;
 
         background: #ffffff !important;
         border: 1px solid #dddddd !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-preview-info-grid > div {
         margin-bottom: 16px !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-preview-info-grid > div:last-child {
         margin-bottom: 0 !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-email-preview-frame {
         width: 100% !important;
         max-width: 100% !important;
 
         min-height: auto !important;
 
         margin: 0 0 12px 0 !important;
         padding: 14px !important;
 
         background: #ffffff !important;
         border: 1px solid #dddddd !important;
 
         color: #333333 !important;
 
         overflow-x: auto !important;
         word-break: break-word !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-email-preview-frame * {
         max-width: 100% !important;
         height: auto !important;
     }
 
     .reveal.customer-v2-preview-reveal#customerCommunicationPreviewReveal .customer-v2-email-preview-attachments {
         width: 100% !important;
         max-width: 100% !important;
 
         margin: 12px 0 0 0 !important;
         padding: 12px !important;
     }
 
 }
/* ==========================================
    CUSTOMER V2 TOAST MOBILE POSITION
 ========================================== */
 
 .compass-toast.success,
 .compass-toast.error {
     position: fixed !important;
 
     top: 20px !important;
     right: 20px !important;
 
     z-index: 9999999 !important;
 }
 
 @media screen and (max-width: 640px) {
 
     .compass-toast.success,
     .compass-toast.error {
         top: 92px !important;
         left: 12px !important;
         right: 12px !important;
 
         width: auto !important;
         max-width: none !important;
 
         z-index: 9999999 !important;
     }
 
 }
 /* =========================
    CUSTOMER V2 ESTIMATE LIST
 ========================= */
 
 .customer-v2-estimate-list {
     width: 100%;
 }
 
 .customer-v2-estimate-item {
     padding: 22px 0;
     border-bottom: 1px solid #edebf2;
 }
 
 .customer-v2-estimate-item:last-child {
     border-bottom: 0;
 }
 
 .customer-v2-estimate-title {
     margin: 0 0 6px 0;
     font-size: 20px;
     font-weight: 700;
     color: #333333;
 }
 
 .customer-v2-estimate-name {
     margin-bottom: 4px;
     font-size: 15px;
     font-weight: 600;
     color: #515151;
 }
 
 .customer-v2-estimate-status {
     color: #74848c;
     font-size: 15px;
     text-transform: uppercase;
     letter-spacing: .4px;
 }
 
 .customer-v2-estimate-meta {
     font-size: 15px;
     color: #444444;
     line-height: 1.8;
 }
 
 .customer-v2-estimate-total,
 .customer-v2-estimate-deposit {
     margin-top: 14px;
     font-size: 16px;
     color: #333333;
 }
 
 .customer-v2-estimate-deposit {
     color: #99C625;
     font-weight: 600;
 }
 
 .customer-v2-estimate-deposit.muted,
 .customer-v2-estimate-signature-label.muted {
     color: #74848c;
     font-weight: 400;
 }
 
 .customer-v2-estimate-actions {
     margin-top: 12px;
 }
 
 .customer-v2-estimate-signature-block {
     margin-top: 18px;
 }
 
 .customer-v2-estimate-signature-label {
     margin-bottom: 8px;
     font-size: 15px;
     color: #333333;
 }
 
 .customer-v2-estimate-signature-box {
     width: 320px;
     max-width: 100%;
     min-height: 90px;
     padding: 30px 15px;
     border: 1px solid #dddddd;
     background: #ffffff;
     color: #74848c;
     font-style: italic;
     text-align: center;
 }
 
 /* MOBILE */
 @media screen and (max-width: 640px) {
 
     .customer-v2-estimate-item {
         padding: 18px 0;
     }
 
     .customer-v2-estimate-meta,
     .customer-v2-estimate-actions {
         text-align: left;
         margin-top: 12px;
     }
 
     .customer-v2-estimate-actions .button {
         width: 100%;
         margin: 0;
     }
 
 }
 .customer-v2-estimate-signature-box {
     width: 320px;
     max-width: 100%;
     min-height: 90px;
     padding: 10px;
     border: 1px solid #dddddd;
     background: #ffffff;
     color: #74848c;
     font-style: italic;
     text-align: center;
 }
 
 .customer-v2-estimate-signature-image {
     display: block;
     width: 100%;
     height: auto;
 }
 
 /* ==========================================
    CUSTOMER V2 EMAIL COMPOSER REVEAL
 ========================================== */
 
 .customer-v2-composer-reveal {
     padding: 0 !important;
     height: 90vh !important;
     max-height: 90vh !important;
     overflow: hidden !important;
     display: flex !important;
     flex-direction: column !important;
 }
 
 .customer-v2-composer-header {
     flex: 0 0 auto;
 }
 
 .customer-v2-composer-body {
     flex: 1 1 auto;
     min-height: 0;
     overflow-y: auto !important;
     overflow-x: hidden;
     -webkit-overflow-scrolling: touch;
     padding: 20px;
 }
 
 .customer-v2-composer-footer {
     flex: 0 0 auto;
 }
 
 /* CKEditor inside composer */
 #customerEmailComposerReveal .cke {
     margin-bottom: 15px;
 }
 
 #customerEmailComposerReveal .cke_contents {
     min-height: 300px !important;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-composer-reveal {
         width: 100vw !important;
         max-width: 100vw !important;
         height: 100vh !important;
         max-height: 100vh !important;
         top: 0 !important;
         left: 0 !important;
     }
 
     .customer-v2-composer-body {
         padding: 12px;
     }
 
     #customerEmailComposerReveal .cke_contents {
         min-height: 260px !important;
     }
 
 }
 /* ==========================================
    CKEDITOR INSIDE FOUNDATION REVEAL
 ========================================== */
 
 .cke_panel,
 .cke_combopanel,
 .cke_dialog,
 .cke_dialog_background_cover {
     z-index: 9999999 !important;
 }
 
 #customerEmailComposerReveal .cke {
     position: relative;
     z-index: 10;
 }
 
 #customerEmailComposerReveal .cke_top,
 #customerEmailComposerReveal .cke_contents,
 #customerEmailComposerReveal .cke_bottom {
     z-index: 10;
 }
 /* ==========================================
    VISIT RECORD STYLE
    Customer-record inspired visit layout
 ========================================== */
 
 .visit-record-style {
     padding: 14px;
     background: #f5f5f7;
 }
 
 /* DARK HEADER */
 .visit-record-hero {
     background: #2C3840;
     color: #ffffff;
     padding: 22px 24px;
     margin-bottom: 14px;
 }
 
 .visit-record-title {
     margin: 0;
     color: #ffffff;
     font-size: 26px;
     font-weight: 700;
     line-height: 1.2;
 }
 
 .visit-record-id {
     color: #ffffff;
     font-weight: 700;
 }
 
 .visit-record-subtitle {
     margin-top: 6px;
     color: rgba(255,255,255,.85);
     font-size: 15px;
     line-height: 1.4;
 }
 
 .visit-record-actions-cell {
     text-align: right;
 }
 
 .visit-record-actions {
     display: flex;
     justify-content: flex-end;
     flex-wrap: wrap;
     gap: 8px;
 }
 
 .visit-record-action-button {
     margin: 0 !important;
     border-radius: 0 !important;
     background: #99C625;
     color: #ffffff !important;
     font-weight: 700;
     padding: 14px 18px;
 }
 
 .visit-record-action-button i {
     margin-right: 6px;
 }
 
 /* MENU BUTTONS */
 .visit-record-menu {
     margin-bottom: 14px;
 }
 
 .visit-record-menu .cell {
     margin-bottom: 10px;
 }
 
 .visit-record-menu-button {
     width: 100%;
     min-height: 78px;
     text-align: left;
     background: #ffffff;
     border: 1px solid #d8d8d8;
     border-left: 6px solid #99C625;
     color: #444444;
     padding: 14px 16px;
     cursor: pointer;
     border-radius: 0;
     box-shadow: none;
 }
 
 .visit-record-menu-button:hover,
 .visit-record-menu-button.active {
     background: #99C625;
     border-color: #99C625;
     color: #ffffff;
 }
 
 .visit-record-menu-label {
     font-size: 16px;
     font-weight: 700;
     line-height: 1.2;
 }
 
 .visit-record-menu-label i {
     margin-right: 6px;
 }
 
 .visit-record-menu-count {
     margin-top: 8px;
     font-size: 26px;
     font-weight: 700;
     line-height: 1;
 }
 
 /* CONTENT */
 .visit-record-content {
     background: #ffffff;
 }
 
 .visit-record-content > div {
     width: 100%;
 }
 
 /* CLEAN OLD VISIT CARD SPACING INSIDE NEW SHELL */
 .visit-record-style .compass-card {
     border-radius: 0 !important;
     box-shadow: none !important;
 }
 
 .visit-record-style .compass-card-header {
     border-radius: 0 !important;
 }
 
 /* MOBILE */
 @media screen and (max-width: 640px) {
 
     .visit-record-style {
         padding: 8px;
     }
 
     .visit-record-hero {
         padding: 16px;
     }
 
     .visit-record-title {
         font-size: 22px;
     }
 
     .visit-record-subtitle {
         font-size: 14px;
     }
 
     .visit-record-actions-cell {
         text-align: left;
         margin-top: 14px;
     }
 
     .visit-record-actions {
         justify-content: flex-start;
     }
 
     .visit-record-action-button {
         width: 100%;
         margin-bottom: 8px !important;
     }
 
     .visit-record-menu-button {
         min-height: 72px;
         padding: 12px;
     }
 
     .visit-record-menu-label {
         font-size: 14px;
     }
 
     .visit-record-menu-count {
         font-size: 22px;
     }
 }
 /* ==========================================
    VISIT RECORD SCROLL FIX
 ========================================== */
 
 .visit-view-container.visit-view-v2-page {
     padding-bottom: 120px !important;
 }
 
 .visit-record-content {
     padding-bottom: 120px !important;
 }
 
 #compass-mobile-shell .visit-view-container.visit-view-v2-page {
     padding-bottom: 160px !important;
 }
 /* ==========================================
    VISIT PHOTO PREVIEW CLOSE FIX
 ========================================== */
 
 #photoPreviewReveal.mobile-photo-preview-reveal {
     padding: 0 !important;
     background: #111111 !important;
     z-index: 999999 !important;
 }
 
 #photoPreviewReveal .photo-preview-close-button {
     position: fixed;
     top: 18px;
     right: 18px;
     z-index: 1000000;
 
     width: 52px;
     height: 52px;
 
     margin: 0;
     padding: 0;
 
     border: 0;
     border-radius: 0;
 
     background: rgba(0,0,0,.75);
     color: #ffffff;
 
     font-size: 28px;
     line-height: 52px;
 
     display: flex;
     align-items: center;
     justify-content: center;
 
     cursor: pointer;
 }
 
 #photoPreviewReveal .photo-preview-close-button i {
     color: #ffffff !important;
 }
 
 #photoPreviewReveal .photo-preview-header {
     padding-right: 80px;
 }
 /* =====================================
    MOBILE VISIT MODAL SCROLL FIX - FINAL
 ===================================== */
 
 .mobile-visit-overlay {
     position: fixed !important;
 
     top: 132px !important;
     right: 0 !important;
     bottom: 0 !important;
     left: 0 !important;
 
     height: auto !important;
     max-height: none !important;
 
     overflow-y: auto !important;
     overflow-x: hidden !important;
 
     -webkit-overflow-scrolling: touch;
 
     padding-bottom: 120px !important;
 }
 
 .mobile-visit-content {
     min-height: auto !important;
     height: auto !important;
     max-height: none !important;
 
     overflow: visible !important;
 
     padding-top: 16px !important;
     padding-bottom: 180px !important;
 }
 
 .mobile-visit-header {
     padding-top: 10px !important;
 }
 
 .mobile-checklist-item-view,
 .mobile-field-purchase-view,
 .mobile-checklist-menu,
 .mobile-add-item-view {
     min-height: auto !important;
     height: auto !important;
     max-height: none !important;
 
     overflow: visible !important;
 
     padding-bottom: 180px !important;
 }
 
 
 /* ==========================================
    DESKTOP VISIT RECORD SCROLL FIX - CLEAN
 ========================================== */
 
 .visit-container {
     height: calc(100vh - 75px) !important;
     min-height: 0 !important;
     max-height: calc(100vh - 75px) !important;
 
     overflow: hidden !important;
 }
 
 .visit {
     height: 100% !important;
     min-height: 0 !important;
     max-height: 100% !important;
 
     display: flex !important;
     flex-direction: column !important;
 
     overflow: hidden !important;
 }
 
 .visit-view-container.visit-view-v2-page {
     flex: 1 1 auto !important;
     min-height: 0 !important;
     height: auto !important;
     max-height: none !important;
 
     overflow-y: auto !important;
     overflow-x: hidden !important;
 
     -webkit-overflow-scrolling: touch;
 
     padding-bottom: 320px !important;
 }
 
 .visit-view-container.visit-view-v2-page > .compass-block {
     height: auto !important;
     min-height: auto !important;
     max-height: none !important;
 
     overflow: visible !important;
 
     padding-bottom: 320px !important;
 }
 
 .visit-view-v2.visit-record-style {
     height: auto !important;
     min-height: auto !important;
     max-height: none !important;
 
     overflow: visible !important;
 
     padding-bottom: 320px !important;
 }
 
 .visit-record-content {
     height: auto !important;
     min-height: auto !important;
     max-height: none !important;
 
     overflow: visible !important;
 
     padding-bottom: 320px !important;
 }
 /* =====================================
    ESTIMATE PRINT PREVIEW IFRAME
 ===================================== */
 
 .estimate-print-preview-outer {
     width: 100%;
     overflow: auto;
     background: #f7f7f7;
 }
 
 .estimate-print-preview-scale {
     width: 100%;
     transform-origin: top left;
 }
 
 .estimate-print-preview-iframe {
     width: 100%;
     min-height: 900px;
     border: 0;
     background: #fff;
 }
 
 /* Mobile iframe print scaling */
 @media screen and (max-width: 640px) {
 
     .estimate-print-preview-outer {
         overflow-x: hidden;
         overflow-y: auto;
         padding: 0;
     }
 
     .estimate-print-preview-scale {
         width: 900px;
         transform: scale(0.42);
         transform-origin: top left;
     }
 
     .estimate-print-preview-iframe {
         width: 900px;
         height: 2200px;
         min-height: 2200px;
     }
 
 }
 .wizard-detail-card {
     margin-bottom: 14px;
     padding: 0;
     overflow: hidden;
 }
 
 .wizard-detail-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     background: #99C625;
     color: #fff;
     padding: 14px 16px;
 }
 
 .wizard-detail-title {
     font-size: 17px;
     font-weight: 700;
 }
 
 .wizard-detail-subtitle {
     font-size: 12px;
     opacity: .9;
 }
 
 .wizard-detail-money-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     border-bottom: 1px solid #e6eaed;
 }
 
 .wizard-detail-money-grid div {
     padding: 12px;
     text-align: center;
     border-right: 1px solid #e6eaed;
 }
 
 .wizard-detail-money-grid div:last-child {
     border-right: none;
 }
 
 .wizard-detail-money-grid span {
     display: block;
     font-size: 12px;
     color: #6f7f87;
 }
 
 .wizard-detail-money-grid strong {
     display: block;
     font-size: 16px;
     color: #263238;
 }
 
 .wizard-answer-list {
     padding: 12px;
 }
 
 .wizard-answer-row {
     padding: 12px;
     margin-bottom: 10px;
     border: 1px solid #e6eaed;
     background: #fff;
 }
 
 .wizard-answer-question {
     font-size: 13px;
     font-weight: 700;
     color: #6f7f87;
     margin-bottom: 4px;
 }
 
 .wizard-answer-value {
     font-size: 16px;
     color: #263238;
 }
 
 .wizard-parts-list {
     margin-top: 10px;
     padding-top: 10px;
     border-top: 1px dashed #d8dde1;
 }
 
 .wizard-part-row {
     display: flex;
     flex-direction: column;
     gap: 2px;
     margin-bottom: 8px;
     font-size: 13px;
 }
 
 .wizard-technical-details {
     padding: 12px;
     border-top: 1px solid #e6eaed;
     background: #f8fafb;
 }
 
 .wizard-formula-block {
     margin-top: 10px;
 }
 
 .wizard-formula-block pre {
     white-space: pre-wrap;
     word-break: break-word;
     background: #fff;
     border: 1px solid #e6eaed;
     padding: 10px;
     font-size: 12px;
 }
 
 @media screen and (max-width: 640px) {
 
     .wizard-detail-header {
         align-items: flex-start;
         flex-direction: column;
     }
 
     .wizard-detail-header .button {
         width: 100%;
         margin: 0;
     }
 
     .wizard-detail-money-grid {
         grid-template-columns: 1fr;
     }
 
     .wizard-detail-money-grid div {
         border-right: none;
         border-bottom: 1px solid #e6eaed;
     }
 
     .wizard-detail-money-grid div:last-child {
         border-bottom: none;
     }
 
 }
 
 .compass-confirm-overlay {
     position: fixed;
     top: 0;
     right: 0;
     bottom: 0;
     left: 0;
 
     z-index: 99999;
 
     background: rgba(2, 8, 38, 0.65);
 
     display: flex;
     align-items: center;
     justify-content: center;
 
     padding: 20px;
 }
 
 .compass-confirm-modal {
     width: 100%;
     max-width: 520px;
 
     background: #fff;
     border-radius: 6px;
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
 
     overflow: hidden;
 }
 
 .compass-confirm-header {
     background: #f46524;
     color: #fff;
 
     padding: 16px 20px;
     font-weight: 700;
     font-size: 1.1rem;
 }
 
 .compass-confirm-body {
     padding: 20px;
     color: #020826;
 }
 
 .compass-confirm-summary {
     margin-top: 15px;
     padding: 15px;
     background: #f4f4f4;
 
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
 }
 
 .compass-confirm-summary span {
     display: block;
     font-size: 0.8rem;
     color: #777;
 }
 
 .compass-confirm-actions {
     padding: 15px 20px;
     border-top: 1px solid #eee;
 
     display: flex;
     gap: 10px;
     justify-content: flex-end;
 }
/* =====================================
    MOBILE ESTIMATE ACCORDION BOTTOM ROOM
 ===================================== */
 
 @media screen and (max-width: 640px) {
 
     .estimate-form-accordion {
         padding-bottom: 0 !important;
     }
 
     .estimate-form-accordion > .accordion-item:last-child {
         margin-bottom: 85vh !important;
     }
 
 }
 .customer-v2-visit-card-title {
     font-weight: 700;
     line-height: 1.3;
 }
 
 .customer-v2-visit-address {
     font-weight: 500;
     color: #555555;
     margin-left: 6px;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-visit-address {
         display: block;
         margin-left: 0;
         margin-top: 4px;
         font-size: 14px;
     }
 
 }
 .customer-v2-sub-header.orange {
     background: #f46524;
     color: #ffffff;
 }
 
 .customer-v2-visit-card.deleted {
     border-left-color: #f46524;
 }
 
 .customer-v2-visit-card-title {
     font-weight: 700;
     line-height: 1.3;
 }
 
 .customer-v2-visit-address {
     font-weight: 500;
     color: #555555;
     margin-left: 6px;
 }
 
 @media screen and (max-width: 640px) {
 
     .customer-v2-visit-address {
         display: block;
         margin-left: 0;
         margin-top: 4px;
         font-size: 14px;
     }
 
 }
 .customer-v2-visit-button.restore {
     background: #99C625;
     color: #ffffff !important;
 }
 
 .customer-v2-visit-button.restore i {
     color: #ffffff !important;
 }
 
 /* =====================================
     Snippets
  ===================================== */
 .customer-v2-snippet-bar {
     margin-bottom: 10px;
 }
 
 .customer-v2-snippet-panel {
     background: #f5f7f8;
     border: 1px solid #d9dee2;
     border-radius: 4px;
     padding: 10px;
     margin-bottom: 14px;
 }
 
 .customer-v2-snippet-search-row {
     display: flex;
     gap: 8px;
     align-items: center;
     margin-bottom: 10px;
 }
 
 .customer-v2-snippet-search-row input {
     margin-bottom: 0;
 }
 
 .customer-v2-snippet-list {
     max-height: 240px;
     overflow-y: auto;
 }
 
 .customer-v2-snippet-item {
     display: block;
     width: 100%;
     text-align: left;
     background: #ffffff;
     border: 1px solid #d9dee2;
     border-radius: 4px;
     padding: 10px;
     margin-bottom: 8px;
     cursor: pointer;
 }
 
 .customer-v2-snippet-item:hover {
     background: #eef7f5;
     border-color: #58b8a8;
 }
 
 .customer-v2-snippet-title {
     font-weight: 700;
     color: #384047;
     font-size: 14px;
 }
 
 .customer-v2-snippet-meta {
     margin-top: 4px;
     color: #7f868b;
     font-size: 12px;
 }
 
 .customer-v2-snippet-meta span {
     display: inline-block;
     margin-right: 10px;
 }
 /* =====================================
    SCHEDULE HOVER TOOLTIP
 ===================================== */
 
 .schedule-hover-tooltip {
     display: none;
     position: absolute;
     z-index: 999999;
 
     max-width: 360px;
     padding: 12px 14px;
 
     background: #ffffff;
     color: #333333;
 
     border: 1px solid #d8d8d8;
     border-radius: 6px;
 
     box-shadow: 0 8px 24px rgba(0,0,0,.18);
 
     font-size: 13px;
     line-height: 1.35;
 
     pointer-events: none;
 }
 
 .schedule-hover-tooltip .schedule-tooltip-title {
     font-size: 15px;
     font-weight: 700;
     margin-bottom: 6px;
     color: #333333;
 }
 /* =========================
    VISIT WIZARD REVEAL STACK FIX
    Force wizard modal above mobile header/content
 ========================= */
 
 #visitWizardReveal.visit-wizard-modal {
   z-index: 999999 !important;
 }
 
 .reveal-overlay:has(#visitWizardReveal) {
   z-index: 999998 !important;
 }
 /* =========================
    NUCLEAR - SCROLL FIX GUARANTEED 
    FOR Visit modal
  ========================= */
.scheduler-visit-container {
    height: 100% !important;
    overflow-y: auto !important;
  }
  
  .scheduler-visit {
    height: 100% !important;
  }
  /* =========================
     VISIT FORMS
  ========================= */
  
  .mobile-visit-form input,
  .mobile-visit-form textarea,
  .mobile-visit-form select,
  .mobile-visit-form button {
      border-radius: 0 !important;
  }
  .mobile-visit-form-question {
      position: relative;
  }
  
  .mobile-visit-form-question .selectize-dropdown {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      width: 100% !important;
      z-index: 999999 !important;
  }.mobile-visit-form-question {
      position: relative;
  }
  
  .mobile-visit-form-question .selectize-dropdown {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      width: 100% !important;
      z-index: 999999 !important;
  }
  /* =========================
     COMPLETED VISIT FORMS
  ========================= */
  
  .visit-completed-form-button {
    border-radius: 0 !important;
    margin-bottom: 16px;
    padding: 18px 20px;
    text-align: left;
  }
  
  .visit-completed-form-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
  }
  
  .visit-completed-form-meta {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
  }
  
  .visit-completed-form-back-button {
    border-radius: 0 !important;
    margin-bottom: 20px;
  }
  
  .visit-completed-form-summary {
    margin-bottom: 24px;
    padding: 18px;
    border-left: 6px solid #99c625;
    background: #f4f5f6;
  }
  
  .visit-completed-form-answer-list {
    border: 1px solid #d8dcdf;
  }
  
  .visit-completed-form-answer {
    padding: 18px 20px;
    border-bottom: 1px solid #d8dcdf;
    background: #fff;
  }
  
  .visit-completed-form-answer:last-child {
    border-bottom: 0;
  }
  
  .visit-completed-form-question {
    margin-bottom: 8px;
    color: #647782;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  
  .visit-completed-form-value {
    color: #172033;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  
  .visit-completed-form-value-empty {
    color: #8a949a;
    font-style: italic;
    font-weight: 400;
  }
  
  .visit-completed-form-value-item {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 10px;
    border: 1px solid #cdd3d7;
    background: #f4f5f6;
  }
  
  .visit-form-detail-loading {
    padding: 40px 20px;
  }
  /* =========================================================
     CUSTOMER V2 / SHARED SCHEDULE DATE HELPER
     ========================================================= */
  
  .compass-schedule-helper-picker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  
  .compass-schedule-helper-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #74848c;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }
  
  .compass-schedule-helper-key-dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #99c625;
  }
  
  .customer-v2-schedule-date-picker {
    cursor: pointer;
    background: #ffffff;
  }
  
  
  /*
   * Flatpickr is rendered outside the scheduling modal,
   * so these classes intentionally are not scoped to
   * .customer-v2-schedule-reveal.
   */
  
  .flatpickr-day.compass-schedule-has-opening {
    position: relative;
    font-weight: 700;
  }
  
  .flatpickr-day.compass-schedule-has-opening::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #99c625;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
  }
  
  .flatpickr-day.compass-schedule-has-opening.selected::after,
  .flatpickr-day.compass-schedule-has-opening.startRange::after,
  .flatpickr-day.compass-schedule-has-opening.endRange::after {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 1);
  }
  
  .compass-schedule-opening-dot {
    display: none;
  }
  
  
  /*
   * Keep Flatpickr above Foundation Reveal.
   */
  .flatpickr-calendar {
    z-index: 1000000 !important;
  }
  .desktop-only-visit-actions {
    display: none !important;
  }
  /* Mirror the existing desktop breakpoint, including touch-only iPads. */
  .mobile-admin-visit-actions .visit-record-actions { justify-content: flex-start; }
  .mobile-admin-visit-actions .visit-record-action-button {
    min-height: 44px;
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-admin-visit-actions .visit-record-action-button:focus-visible {
    outline: 3px solid #243742;
    outline-offset: 3px;
  }
  @media screen and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .mobile-admin-visit-actions { display: none !important; }
  }

  
  @media screen and (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  
    .desktop-only-visit-actions {
      display: block !important;
    }
  
  }

/* Support controls are a single vertical rail at the lower right. */
.support-action-rail .support-ticket-launcher{position:relative;top:auto;right:auto;z-index:auto;display:flex;align-items:center;gap:7px;width:auto;min-height:126px;margin:0;padding:12px 8px;border:0;border-radius:8px 0 0 8px;background:#305b7c;color:#fff;font-weight:700;line-height:1;writing-mode:vertical-rl;box-shadow:0 6px 18px rgba(0,0,0,.22);cursor:pointer}
.support-action-rail .support-ticket-launcher:hover,.support-action-rail .support-ticket-launcher:focus{background:#244c6b}.support-action-rail .support-ticket-badge{writing-mode:horizontal-tb}.support-ticket-flyout{top:auto;right:44px;bottom:24px}.support-ticket-flyout.support-ticket-flyout-on-support{bottom:104px}
@media(max-width:800px){.support-action-rail .support-ticket-launcher{min-height:112px;padding:10px 7px;font-size:13px}.support-ticket-flyout{top:58px;right:8px;bottom:auto;width:calc(100vw - 16px);max-height:calc(100dvh - 76px);padding:14px}.support-ticket-flyout.support-ticket-flyout-on-support{top:auto;bottom:calc(96px + env(safe-area-inset-bottom));max-height:calc(100dvh - 126px)}}

/* A waiting ticket requires a reporter response; closing this notice only hides it temporarily. */
.support-reporter-notice-required{border-color:#c97918;background:#fffaf0}.support-reporter-notice-required strong{color:#8a5413}.support-reporter-notice-required .button{background:#c97918;color:#fff}.support-reporter-notice-required .button:hover,.support-reporter-notice-required .button:focus{background:#a85f0d;color:#fff}.support-ticket-launcher-required{background:#a65e13!important}.support-ticket-launcher-required .support-ticket-badge{background:#fff;color:#8a5413}
@media(max-width:600px){.support-reporter-notice-required{border-width:2px}.support-reporter-notice-required span{color:#7b571f}.support-reporter-notice-required .button{min-width:74px}}

/* Visit checklist status: neutral open cards and explicit completion labels. */
.mobile-checklist-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mobile-checklist-item-inner > b { min-width: 0; overflow-wrap: anywhere; }
.mobile-checklist-item .visit-checklist-status,
.schedule-visit-checklist-item .visit-checklist-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}
.mobile-checklist-item.completed .visit-checklist-status,
.schedule-visit-checklist-item.completed .visit-checklist-status { color: #ffffff; }

/* Field purchase vendor selection: keep the visit form usable on small phones. */
.mobile-field-purchase-view .field-purchase-form label {font-weight:700;display:block;margin:16px 0 8px;}
.mobile-field-purchase-view input,.mobile-field-purchase-view select {font-size:16px;min-height:48px;width:100%;box-sizing:border-box;}
.mobile-field-purchase-view button {min-height:48px;white-space:normal;overflow-wrap:anywhere;}
.mobile-field-purchase-view .mobile-field-purchase-create-button {background:#4fb3a4;color:#15382e !important;}
.mobile-field-purchase-view .field-purchase-vendor-name {font-size:20px;font-weight:700;overflow-wrap:anywhere;margin-bottom:8px;}
.mobile-field-purchase-view .mobile-field-purchase-card {margin:16px 0;padding:16px;border-left:4px solid #4fb3a4;background:#fff;}
.mobile-field-purchase-view .mobile-field-purchase-card .mobile-field-purchase-po-number {font-size:20px;font-weight:700;margin-bottom:12px;}
.field-purchase-review {display:inline-block;padding:7px 10px;background:#fff4e2;color:#714b15;overflow-wrap:anywhere;}
.field-vendor-setting {display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;}
.field-vendor-setting input[type=checkbox] {margin:0;min-width:20px;width:20px;height:20px;}

.field-vendor-settings { max-width: 760px; padding: 16px; }
.field-vendor-settings input[type="search"] { width: 100%; min-height: 48px; font-size: 16px; }
.field-vendor-list { padding: 0; margin: 16px 0; list-style: none; }
.field-vendor-list li { border-bottom: 1px solid #d6dddf; padding: 12px 0; overflow-wrap: anywhere; }
.field-vendor-list li > span { display: block; margin: 4px 0; }

/* Ticket #973: reserve the fixed support rail on narrow estimate screens. */
@media screen and (max-width: 640px) {

    .estimate-create-mobile-preview {
        box-sizing: border-box;
        min-width: 0;
        padding: 0 calc(48px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) 0;
    }

    .estimate-create-mobile-preview .estimate-mobile-preview {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .estimate-create-mobile-preview .estimate-mobile-print-action .button {
        margin-bottom: 0;
        min-height: 44px;
    }

}

/* Mobile-first field receipt and PO workflow. */
.scheduler-field-purchase-pane {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 24px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-field-purchase-view .field-purchase-paid-by {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #cbd7da;
  border-radius: 6px;
  background: #fff;
}
.mobile-field-purchase-view .field-purchase-paid-by legend {
  padding: 0 6px;
  font-weight: 700;
}
.mobile-field-purchase-view .field-purchase-paid-by label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  margin: 4px 0;
  padding: 10px;
  border: 1px solid #dbe4e6;
  border-radius: 4px;
  background: #f8fafb;
}
.mobile-field-purchase-view .field-purchase-paid-by input[type="radio"] {
  flex: 0 0 auto;
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 1px 0 0;
}
.mobile-field-receipt-line {
  margin: 14px 0;
  padding: 14px;
  border-left: 4px solid #4fb3a4;
  background: #fff;
}
.field-receipt-button-reading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.field-receipt-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 3px solid rgba(35, 52, 61, .22);
  border-top-color: #23776d;
  border-radius: 50%;
  animation: field-receipt-spin .8s linear infinite;
}
.field-receipt-reading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 14px;
  border-left: 5px solid #4fb3a4;
  background: #e9f7f4;
  color: #23343d;
}
.field-receipt-reading strong,
.field-receipt-reading small {
  display: block;
}
.field-receipt-reading small {
  margin-top: 3px;
  color: #536870;
}
.field-receipt-spinner-large {
  width: 28px;
  height: 28px;
  border-width: 4px;
}
.field-purchase-form .field-purchase-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 10px 0;
}
.field-purchase-form .field-purchase-choice input[type="checkbox"],
.field-purchase-form .field-purchase-choice input[type="radio"] {
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  appearance: auto !important;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #187d70;
}
.field-purchase-form .field-purchase-choice input:disabled,
.field-purchase-form .field-purchase-choice input:disabled + span {
  cursor: not-allowed;
}
.field-purchase-form .field-purchase-choice span {
  line-height: 22px;
}
@keyframes field-receipt-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .field-receipt-spinner { animation-duration: 1.8s; }
}
@media (max-width: 640px) {
  .scheduler-field-purchase-pane {
    max-width: none;
    max-height: calc(100dvh - 16px);
    padding: 12px;
  }
  .mobile-field-purchase-view h4 { font-size: 1.4rem; }
}

