body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6f8; margin: 0; padding: 10px 6px; color: #333; }
  h1 { font-size: 24px; text-align: center; color: #111; margin-bottom: 4px; }
  .subtitle { font-size: 14px; text-align: center; color: #555; margin-bottom: 15px; }
  
  .logo-container { text-align: center; margin-bottom: 15px; }
  .app-logo { max-width: 140px; height: auto; }

  /* Spinner Animation */
  .spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 15px auto 0 auto;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  @keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); border-color: #0284c7; }
    50% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.2); border-color: #0284c7; }
    100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
  }
  .highlight-pulse {
    animation: highlightPulse 1.8s ease-in-out 3;
    border-color: #0284c7 !important;
  }
  
  #offline-banner { display: none; background: #fef3c7; color: #d97706; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; border-radius: 8px; margin-bottom: 15px; border: 1px solid #fde68a; }
  
  #auth-screen { max-width: 450px; margin: 40px auto; background: white; padding: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; box-sizing: border-box; }
  .auth-select { width: 100%; padding: 12px; font-size: 16px; border: 2px solid #d1d5db; border-radius: 10px; box-sizing: border-box; margin-bottom: 15px; text-align: center; background: white; }
  .auth-input { width: 100%; padding: 12px; font-size: 18px; border: 2px solid #d1d5db; border-radius: 10px; box-sizing: border-box; margin-bottom: 15px; text-align: center; letter-spacing: 3px; }
  .auth-btn { display: block; width: 100%; background: #0066cc; color: white; border: none; padding: 14px; border-radius: 10px; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 4px rgba(0,102,204,0.3); box-sizing: border-box; }
  .auth-btn:active { background: #0051a8; }
  
  #tech-select-screen { max-width: 500px; margin: 30px auto; background: white; padding: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; display: none; box-sizing: border-box; transition: max-width 0.2s ease, padding 0.2s ease; }
  .tech-btn { display: block; width: 100%; background: #e6f0fa; color: #004080; border: 1px solid #b3d1f2; padding: 16px; border-radius: 12px; font-size: 18px; font-weight: 700; margin: 12px 0; cursor: pointer; box-sizing: border-box; text-align: left; }
  .tech-btn:active { background: #cfe2f8; }
  
  .tech-btn.all-stops-btn { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; text-align: center; display: none; }
  .tech-btn.all-stops-btn.admin-visible { display: block; }
  .tech-btn.all-stops-btn:active { background: #e5e7eb; }
  .tech-btn-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

  .lock-system-container { margin-top: 20px; border-top: 1px solid #f0f2f5; padding-top: 15px; }
  .lock-system-btn { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }

  .admin-tools-container { display: none; margin-top: 24px; padding-top: 20px; border-top: 2px solid #e5e7eb; text-align: left; }
  .admin-screen { max-width: 780px; margin: 0 auto; }

  /* Desktop Wide Screen for Admin Hub & All Admin Screens */
  @media (min-width: 768px) {
    #tech-select-screen.has-admin-hub,
    #tech-select-screen:has(#admin-tools-container:not([style*="display: none"])) {
      max-width: 1160px;
      padding: 30px 36px;
    }
    #tech-select-screen.has-admin-hub #tech-buttons-container,
    #tech-select-screen:has(#admin-tools-container:not([style*="display: none"])) #tech-buttons-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 12px;
      max-width: 960px;
      margin: 16px auto 24px;
    }
    #tech-select-screen.has-admin-hub #tech-buttons-container .tech-btn,
    #tech-select-screen:has(#admin-tools-container:not([style*="display: none"])) #tech-buttons-container .tech-btn {
      margin: 0;
    }
    .admin-screen {
      max-width: 1160px !important;
      padding: 24px 28px;
    }
    #admin-report-preview-screen {
      max-width: 1160px !important;
    }
    .admin-action-grid {
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 14px;
    }
    .admin-stop-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      padding: 16px 20px;
    }
    .admin-stop-card > label {
      flex: 1 1 340px;
    }
    .admin-stop-card > .admin-field {
      flex: 1 1 240px;
      margin-bottom: 0;
    }
  }

  @media (min-width: 860px) {
    .admin-tab-bar {
      flex-wrap: wrap;
    }
    .admin-tab-scroll-btn {
      display: none !important;
    }
  }
  .admin-form-card { background: white; padding: 22px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; margin-bottom: 18px; }
  .admin-field { margin-bottom: 16px; text-align: left; }
  .admin-field > label, .admin-field label:not(.assign-mode-option):not(.admin-inline-check) { display: block; margin-bottom: 6px; color: #1e293b; font-weight: 700; font-size: 14px; }
  .admin-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .admin-field select, .admin-field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 15px; background: white; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; color: #0f172a; }
  .admin-field input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus, .admin-field select:focus, .admin-field textarea:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
  .admin-field textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
  .admin-help { margin: 0 0 16px; color: #64748b; font-size: 13.5px; line-height: 1.5; text-align: left; }
  .address-predictions { display: none; margin-top: -8px; border: 1px solid #cbd5e1; border-radius: 9px; background: white; box-shadow: 0 4px 10px rgba(15,23,42,0.12); overflow: hidden; }
  .address-predictions button { display: block; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #e2e8f0; background: white; color: #1f2937; text-align: left; font-size: 15px; cursor: pointer; }
  .address-predictions button:last-child { border-bottom: 0; }
  .address-predictions button:hover, .address-predictions button:focus { background: #eff6ff; outline: none; }
  .admin-submit-btn { display: block; width: 100%; border: 0; border-radius: 10px; padding: 13px 16px; background: #0284c7; color: white; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.18s ease; }
  .admin-submit-btn:hover { background: #0369a1; }
  .admin-submit-btn:disabled { opacity: 0.6; cursor: wait; }
  .admin-coverage-mode-btn { flex: 1; background: #e6f0fa; color: #004080; border: 1px solid #b3d1f2; cursor: pointer; }
  .admin-coverage-mode-btn.is-selected { background: #0066cc; color: white; border-color: #0066cc; }
  .admin-coverage-save-top { position: sticky; top: 8px; z-index: 5; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18); margin-bottom: 12px; }
  .admin-coverage-save-top:disabled { opacity: 1; cursor: pointer; background: #0066cc; color: white; }
  .admin-stop-card { background: white; margin: 12px 0; padding: 16px; border: 1px solid #dbe3ed; border-radius: 12px; text-align: left; }

  /* Admin Control Hub & Card Grid */
  .admin-hub-header { margin-bottom: 18px; }
  .admin-hub-title { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0 0 5px; }
  .admin-hub-sub { font-size: 13.5px; color: #64748b; margin: 0; }
  .admin-hub-search-box { position: relative; margin: 14px 0 16px; }
  .admin-hub-search-input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 15px; background: white; box-sizing: border-box; transition: all 0.2s ease; color: #0f172a; }
  .admin-hub-search-input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
  .admin-hub-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 17px; pointer-events: none; }
  .admin-tab-slider-wrap { position: relative; display: flex; align-items: center; margin-bottom: 14px; gap: 6px; }
  .admin-tab-scroll-btn { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #cbd5e1; background: white; color: #334155; font-size: 20px; line-height: 1; font-weight: 800; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); transition: all 0.18s ease; user-select: none; z-index: 2; padding: 0; }
  .admin-tab-scroll-btn:hover { background: #0284c7; border-color: #0284c7; color: white; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3); transform: scale(1.08); }
  .admin-tab-scroll-btn:active { transform: scale(0.92); }
  .admin-tab-scroll-btn:disabled, .admin-tab-scroll-btn.is-hidden { opacity: 0.25; pointer-events: none; cursor: default; }
  @media (max-width: 767px) {
    .admin-tab-scroll-btn { display: none !important; }
    .admin-tab-slider-wrap { gap: 0; }
  }
  .admin-tab-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; flex: 1; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; }
  .admin-tab-bar.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
  .admin-tab-bar::-webkit-scrollbar { display: none; }
  .admin-tab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; user-select: none; }
  .admin-tab-btn:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
  .admin-tab-btn.active { background: #0284c7; border-color: #0284c7; color: white; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25); }
  .admin-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: rgba(0, 0, 0, 0.08); color: inherit; }
  .admin-tab-btn.active .admin-tab-badge { background: rgba(255, 255, 255, 0.25); color: white; }
  .admin-action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 22px; }
  .admin-action-card { display: flex; align-items: center; gap: 13px; background: white; border: 1.5px solid #e2e8f0; border-radius: 13px; padding: 14px 16px; cursor: pointer; text-decoration: none; color: inherit; transition: all 0.18s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.03); text-align: left; }
  .admin-action-card:hover { transform: translateY(-2px); border-color: #38bdf8; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
  .admin-action-card:active { transform: scale(0.99); }
  .admin-card-icon-badge { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
  .icon-blue { background: #e0f2fe; color: #0284c7; }
  .icon-emerald { background: #dcfce7; color: #16a34a; }
  .icon-amber { background: #fef3c7; color: #d97706; }
  .icon-purple { background: #f3e8ff; color: #9333ea; }
  .icon-slate { background: #f1f5f9; color: #475569; }
  .admin-card-text { flex: 1; min-width: 0; }
  .admin-card-title { font-size: 14.5px; font-weight: 750; color: #0f172a; margin: 0 0 3px; line-height: 1.25; }
  .admin-card-desc { font-size: 12px; color: #64748b; line-height: 1.35; margin: 0; }
  .admin-card-arrow { color: #94a3b8; font-size: 17px; font-weight: 700; transition: transform 0.2s ease, color 0.2s ease; flex-shrink: 0; padding-left: 4px; }
  .admin-action-card:hover .admin-card-arrow { transform: translateX(3px); color: #0284c7; }

  /* Admin Delivery & Review Card */
  .admin-delivery-card { background: white; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; text-align: left; }
  .admin-delivery-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; margin-bottom: 14px; }
  .admin-report-preview-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; }
  .admin-report-preview-sub { font-size: 13.5px; color: #64748b; line-height: 1.4; }
  .admin-status-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
  .badge-needs-review { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
  .badge-ready { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
  .badge-sent { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
  .badge-skipped { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
  .badge-no-email { background: #f8fafc; color: #64748b; border: 1px solid #cbd5e1; }
  .badge-failed { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

  /* Modern Report Center Cards & Grid */
  .admin-reports-grid { display: flex; flex-direction: column; gap: 12px; }
  .admin-report-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; text-align: left; }
  .admin-report-card:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
  .admin-report-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
  .admin-report-card-title { margin: 0 0 3px 0; font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.3; }
  .admin-report-card-address { font-size: 13px; color: #64748b; margin: 0; }
  .admin-report-meta-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 12px; font-size: 12.5px; }
  .admin-report-chem-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 8px 12px; background: #f8fafc; border-radius: 10px; border: 1px solid #f1f5f9; align-items: center; }
  .chem-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: white; border: 1px solid #e2e8f0; color: #334155; }
  .chem-pill.chem-good { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
  .chem-pill.chem-ok { border-color: #fde047; color: #a16207; background: #fef9c3; }
  .chem-pill.chem-flagged, .chem-pill.chem-bad { border-color: #fecaca; color: #991b1b; background: #fef2f2; font-weight: 800; }
  .admin-review-flags-container { margin-bottom: 14px; }
  .admin-review-flag-box { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
  .admin-review-flag-box b { color: #b45309; font-size: 13.5px; display: block; margin-bottom: 6px; }
  .admin-review-flag-box ul { margin: 0; padding-left: 20px; color: #92400e; font-size: 13px; line-height: 1.4; }
  .admin-delivery-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  .admin-delivery-sub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .report-action-btn { border-radius: 10px; font-size: 13.5px; font-weight: 750; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.18s ease; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
  .btn-send { width: 100%; min-height: 42px; padding: 10px 16px; font-size: 14.5px; background: #0284c7; color: white; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }
  .btn-send:hover { background: #0369a1; }
  .btn-edit { min-height: 38px; padding: 8px 12px; background: #f1f5f9; color: #334155; border: 1.5px solid #cbd5e1; }
  .btn-edit:hover { background: #e2e8f0; }
  .btn-skip { min-height: 38px; padding: 8px 12px; background: #f8fafc; color: #64748b; border: 1.5px solid #e2e8f0; }
  .btn-skip:hover { background: #f1f5f9; color: #475569; }
  @media (min-width: 640px) {
    .admin-delivery-actions { flex-direction: row; align-items: center; }
    .btn-send { width: auto; flex: 1.4; min-height: 40px; }
    .admin-delivery-sub-actions { flex: 2; }
    .btn-edit, .btn-skip { min-height: 40px; }
  }
  .admin-report-view-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e2e8f0; padding: 3px; border-radius: 12px; margin: 16px 0 12px; }
  .report-view-tab { padding: 9px 12px; border-radius: 9px; border: none; background: transparent; color: #475569; font-size: 13.5px; font-weight: 750; cursor: pointer; transition: all 0.18s ease; text-align: center; white-space: nowrap; }
  .report-view-tab.active { background: white; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
  .admin-email-preview-bar { background: white; border-radius: 12px; padding: 10px 14px; border: 1px solid #e2e8f0; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .admin-email-iframe-wrapper { background: #ffffff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
  .report-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
  .report-photo-item { display: flex; flex-direction: column; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; text-align: center; }
  .report-photo-thumb { width: 100%; height: 110px; object-fit: cover; cursor: pointer; background: #e2e8f0; transition: opacity 0.2s ease; }
  .report-photo-thumb:hover { opacity: 0.9; }
  .report-photo-item .report-attachment { margin: 6px; padding: 4px 6px; font-size: 11.5px; }

  /* ========================================================
     MODERN CUSTOMER DIRECTORY & PROFILES DESIGN SYSTEM
     ======================================================== */
  .cust-directory-toolbar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-align: left;
    box-sizing: border-box;
  }
  .cust-search-row {
    margin-bottom: 12px;
  }
  .cust-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .cust-search-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
  }
  .cust-search-input {
    width: 100%;
    padding: 12px 38px 12px 40px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.18s ease;
    background: #f8fafc;
  }
  .cust-search-input:focus {
    border-color: #0284c7;
    background: white;
    box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
  }
  .cust-search-clear {
    position: absolute;
    right: 10px;
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    padding: 0;
  }
  .cust-search-clear:hover { background: #cbd5e1; }

  .cust-filter-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .cust-status-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
  }
  .cust-status-pill {
    background: transparent;
    border: none;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .cust-status-pill.active {
    background: #0284c7;
    color: white;
    box-shadow: 0 1px 3px rgba(2,132,199,0.25);
  }
  .cust-dropdown-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
  .cust-filter-select {
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    cursor: pointer;
  }
  .cust-filter-select:focus { border-color: #0284c7; }

  .cust-results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
  }
  .cust-reset-btn {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
  }

  /* Customer Directory Grid & Cards */
  .cust-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
  }
  .cust-dir-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.18s ease;
    box-sizing: border-box;
  }
  .cust-dir-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(15,23,42,0.07);
    transform: translateY(-2px);
  }
  .cust-dir-card.is-archived {
    background: #f8fafc;
    border-style: dashed;
    border-color: #cbd5e1;
    opacity: 0.9;
  }
  .cust-dir-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
  }
  .cust-dir-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
  }
  .cust-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
  }
  .cust-pill {
    display: inline-flex;
    align-items: center;
    padding: 2.5px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
  .cust-pill-comm { background: #eff6ff; color: #0284c7; }
  .cust-pill-gate { background: #fef3c7; color: #92400e; }
  .cust-pill-public { background: #f1f5f9; color: #475569; }
  .cust-pill-archived { background: #fee2e2; color: #b91c1c; }
  .cust-pill-role-cleantech { background: #eff6ff; color: #0284c7; border: 1px solid #bfdbfe; font-weight: 700; }
  .cust-pill-role-repair { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; font-weight: 700; }
  .cust-pill-role-office { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-weight: 700; }
  .cust-pill-role-admin { background: #faf5ff; color: #7c3aed; border: 1px solid #ddd6fe; font-weight: 700; }

  .cust-dir-address {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
  }
  .cust-dir-address:hover { color: #0284c7; }

  .cust-dir-schedule-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cust-dir-schedule-box.unassigned {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
  }
  .cust-dir-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .cust-dir-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #0284c7;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .cust-dir-contact-chip:hover { background: #e0f2fe; }

  .cust-dir-notes-preview {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cust-dir-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }
  .cust-btn {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
  }
  .cust-btn.primary {
    background: #0284c7;
    color: white;
    border: none;
    flex: 1.2;
  }
  .cust-btn.primary:hover { background: #0369a1; }
  .cust-btn.secondary {
    background: #f8fafc;
    color: #334155;
    border: 1.5px solid #cbd5e1;
    flex: 1;
  }
  .cust-btn.secondary:hover { background: #e2e8f0; }
  .cust-btn.danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }
  .cust-btn.danger:hover { background: #fee2e2; }
  .cust-btn.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
  }
  .cust-btn.success:hover { background: #dcfce7; }

  /* Hero Customer Dashboard */
  .cust-hero-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-align: left;
    box-sizing: border-box;
  }
  .cust-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .cust-hero-title-group h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
  }
  .cust-hero-address-link {
    font-size: 15px;
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }
  .cust-hero-address-link:hover { text-decoration: underline; }

  .cust-hero-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cust-access-callout {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
  }
  .cust-access-icon { font-size: 20px; flex-shrink: 0; }
  .cust-access-title { font-size: 13px; font-weight: 800; text-transform: uppercase; color: #92400e; margin: 0 0 4px; }
  .cust-access-text { font-size: 13.5px; color: #78350f; margin: 0; line-height: 1.45; }

  /* Key Metrics Grid */
  .cust-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }
  .cust-metric-tile {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    text-align: left;
  }
  .cust-metric-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
  }
  .cust-metric-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Dashboard Tabs */
  .cust-dash-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    overflow-x: auto;
  }
  .cust-dash-tab {
    padding: 11px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .cust-dash-tab.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
  }
  .cust-dash-tab:hover:not(.active) { color: #1e293b; }

  /* Visit History Cards */
  .cust-visit-item {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    text-align: left;
  }
  .cust-visit-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
  }
  .cust-visit-date-tech {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
  }
  .cust-visit-subtext {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
  }
  .cust-chem-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .cust-chem-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid transparent;
  }
  .cust-chem-pill.chem-good { background: #dcfce7; color: #15803d; border-color: #86efac; }
  .cust-chem-pill.chem-ok { background: #fef9c3; color: #a16207; border-color: #fde047; }
  .cust-chem-pill.chem-bad { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
  .cust-chem-pill.chem-neutral { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }

  /* Photo Lightbox and Thumbnails */
  .cust-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
  }
  .cust-photo-thumb-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
    background: #0f172a;
    transition: transform 0.15s ease, border-color 0.15s ease;
  }
  .cust-photo-thumb-wrap:hover {
    transform: scale(1.04);
    border-color: #0284c7;
  }
  .cust-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .cust-photo-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.75);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cust-photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
  }
  .cust-photo-modal-card {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
  }
  .cust-photo-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
  }
  .cust-photo-modal-title { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0; }
  .cust-photo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    line-height: 1;
  }
  .cust-photo-modal-body {
    max-height: 70vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cust-photo-modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
  }
  .cust-photo-modal-foot {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
  }
  .admin-group-body .tech-btn:first-child { margin-top: 4px; }
  .admin-stop-card h3 { margin: 0 0 5px; font-size: 17px; color: #111827; }
  .admin-stop-address { margin: 0 0 6px; color: #0066cc; font-weight: 600; }
  .admin-stop-meta { margin: 0 0 14px; color: #64748b; font-size: 14px; line-height: 1.5; }
  .admin-route-actions { display: flex; gap: 10px; margin: 12px 0; }
  .admin-route-actions button, .admin-route-actions a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #b3d1f2; border-radius: 9px; background: #e6f0fa; color: #004080; text-decoration: none; text-align: center; font-size: 15px; font-weight: 700; cursor: pointer; }
  .admin-route-actions .admin-route-save-short { border-color: #0066cc; background: #0066cc; color: white; }
  .admin-route-actions .admin-route-save-short:disabled { opacity: 0.55; cursor: wait; }
  .admin-route-actions button:disabled { opacity: 0.55; cursor: wait; }
  .admin-route-stop { display: flex; align-items: center; gap: 12px; }
  .admin-route-stop-order { flex: 0 0 34px; color: #0066cc; font-size: 18px; font-weight: 800; text-align: center; }
  .admin-route-stop-details { flex: 1; min-width: 0; }
  .admin-route-stop-controls { display: flex; flex-direction: column; gap: 5px; }
  .admin-route-move-btn { width: 38px; height: 34px; border: 1px solid #cbd5e1; border-radius: 7px; background: #f8fafc; color: #334155; font-size: 16px; cursor: pointer; }
  .admin-route-move-btn:disabled { opacity: 0.4; cursor: default; }
  .admin-page-message { display: none; padding: 12px; margin: 10px 0; border-radius: 9px; background: #eff6ff; color: #1e40af; text-align: left; }
  .admin-page-message.error { display: block; background: #fef2f2; color: #b91c1c; }
  .admin-page-message.warning { display: block; background: #fffbeb; color: #92400e; }
  /* Redesigned Transfer Route Styles */
  .transfer-step-card { background: white; border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 16px; text-align: left; box-sizing: border-box; }
  .transfer-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .transfer-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #0284c7; color: white; border-radius: 50%; font-weight: 800; font-size: 14px; flex-shrink: 0; }
  .transfer-step-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
  .transfer-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  @media (max-width: 620px) { .transfer-mode-grid { grid-template-columns: 1fr; } }
  .transfer-mode-btn { display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px; background: #f8fafc; cursor: pointer; transition: all 0.18s ease; text-align: left; width: 100%; box-sizing: border-box; }
  .transfer-mode-btn:hover { border-color: #93c5fd; background: #f0f7ff; }
  .transfer-mode-btn.active { border-color: #0284c7; background: #eff6ff; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15); }
  .transfer-mode-title { font-size: 15px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
  .transfer-mode-btn.active .transfer-mode-title { color: #0284c7; }
  .transfer-mode-desc { font-size: 12.5px; color: #64748b; line-height: 1.35; }
  .transfer-day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
  .transfer-day-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 10px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: white; cursor: pointer; transition: all 0.15s ease; text-align: center; }
  .transfer-day-pill:hover { border-color: #38bdf8; background: #f0f9ff; }
  .transfer-day-pill.selected { border-color: #0284c7; background: #0284c7; color: white !important; font-weight: 700; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3); }
  .transfer-day-pill.selected .transfer-day-stops { color: #e0f2fe !important; }
  .transfer-day-name { font-size: 14px; font-weight: 700; }
  .transfer-day-stops { font-size: 12px; color: #64748b; margin-top: 3px; }
  .transfer-preview-card { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 16px; margin-top: 10px; }
  .transfer-preview-card.ready { background: #eff6ff; border-color: #93c5fd; }
  .transfer-preview-flow { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; font-size: 15px; font-weight: 700; color: #1e3a8a; flex-wrap: wrap; text-align: center; }
  .transfer-preview-arrow { font-size: 20px; color: #0284c7; }
  .transfer-impact-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.6; color: #334155; }
  .transfer-impact-item { display: flex; align-items: center; gap: 8px; }
  .transfer-impact-item.alert { color: #b45309; font-weight: 600; margin-top: 6px; }

  /* Redesigned Re-arrange Route Styles */
  .reorder-toolbar-card { position: sticky; top: 8px; z-index: 10; background: white; border-radius: 14px; border: 1.5px solid #cbd5e1; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); padding: 16px; margin: 14px 0 16px; box-sizing: border-box; }
  .reorder-summary-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
  .reorder-route-title { font-size: 15px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
  .reorder-btn-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .reorder-action-btn { padding: 8px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #1e293b; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: all 0.15s ease; }
  .reorder-action-btn:hover:not(:disabled) { background: #eff6ff; border-color: #93c5fd; color: #0284c7; }
  .reorder-action-btn:disabled { opacity: 0.5; cursor: default; background: #f1f5f9; }
  .reorder-action-btn.optimize { background: #0284c7; color: white; border-color: #0284c7; }
  .reorder-action-btn.optimize:hover:not(:disabled) { background: #0369a1; }
  .reorder-action-btn.revert { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
  .reorder-action-btn.revert:hover { background: #fee2e2; }
  .reorder-save-btn { padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 800; cursor: pointer; border: none; background: #94a3b8; color: white; display: inline-flex; align-items: center; gap: 6px; transition: all 0.18s ease; }
  .reorder-save-btn.has-changes { background: #10b981 !important; color: white !important; cursor: pointer !important; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35); }
  .reorder-save-btn.has-changes:hover { background: #059669 !important; }
  .reorder-save-btn:disabled { opacity: 0.6; cursor: default; }
  .reorder-stop-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: white; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: all 0.15s ease; text-align: left; }
  .reorder-stop-card:hover { border-color: #93c5fd; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08); }
  .reorder-stop-order-num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #eff6ff; color: #0284c7; font-size: 15px; font-weight: 800; flex-shrink: 0; border: 1.5px solid #bfdbfe; }
  .reorder-stop-details { flex: 1; min-width: 0; }
  .reorder-stop-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 2px; word-break: break-word; }
  .reorder-stop-address { font-size: 13px; color: #64748b; margin: 0 0 5px; text-decoration: none; display: inline-block; }
  .reorder-stop-address:hover { color: #0284c7; text-decoration: underline; }
  .reorder-stop-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
  .reorder-stop-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
  .reorder-arrow-btn { width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
  .reorder-arrow-btn:hover:not(:disabled) { background: #eff6ff; border-color: #0284c7; color: #0284c7; }
  .reorder-arrow-btn:disabled { opacity: 0.3; cursor: default; }
  .reorder-jump-select { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12px; font-weight: 600; background: #f8fafc; color: #334155; cursor: pointer; outline: none; }

  /* Redesigned Assign Stops Styles */
  .assign-empty-card { background: white; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 32px 20px; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); margin-bottom: 20px; box-sizing: border-box; }
  .assign-empty-icon { font-size: 44px; margin-bottom: 12px; }
  .assign-empty-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
  .assign-empty-desc { font-size: 14px; color: #64748b; max-width: 520px; margin: 0 auto 20px; line-height: 1.5; }
  .assign-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
  .assign-shortcut-btn { padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #1e293b; transition: all 0.15s ease; }
  .assign-shortcut-btn:hover { background: #eff6ff; border-color: #0284c7; color: #0284c7; }
  .assign-shortcut-btn.primary { background: #0284c7; color: white; border-color: #0284c7; }
  .assign-shortcut-btn.primary:hover { background: #0369a1; }
  
  .assign-workload-summary { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-top: 10px; text-align: left; }
  .assign-workload-header { font-size: 13.5px; font-weight: 800; color: #334155; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
  .assign-tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .assign-tech-workload-card { background: white; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px; }
  .assign-tech-card-name { font-weight: 800; font-size: 14px; color: #0f172a; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
  .assign-tech-card-total { background: #eff6ff; color: #0284c7; font-size: 12px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
  .assign-tech-days-list { font-size: 12px; color: #64748b; line-height: 1.6; }

  .assign-pending-banner { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; color: #92400e; }
  .assign-stop-card-new { background: white; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 18px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); text-align: left; transition: border-color 0.15s ease; box-sizing: border-box; }
  .assign-stop-card-new:hover { border-color: #93c5fd; }
  .assign-stop-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .assign-stop-title { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0; }
  .assign-stop-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .assign-badge { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
  .assign-badge.freq { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
  .assign-badge.gate { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
  .assign-badge.gate.required { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
  .assign-badge.community { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

  .assign-stop-address-row { margin-bottom: 14px; font-size: 14px; }
  .assign-address-link { color: #0284c7; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
  .assign-address-link:hover { text-decoration: underline; color: #0369a1; }
  
  .assign-rec-box { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
  .assign-rec-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
  .assign-rec-badge { font-size: 12px; font-weight: 800; color: #166534; display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
  .assign-rec-summary { font-size: 14.5px; color: #14532d; font-weight: 700; }
  .assign-rec-reason { font-size: 12.5px; color: #15803d; line-height: 1.4; margin-top: 4px; }

  .assign-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  @media (max-width: 580px) { .assign-select-grid { grid-template-columns: 1fr; gap: 8px; } }
  .assign-field-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
  .assign-select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #cbd5e1; font-size: 14px; font-weight: 600; color: #0f172a; background: white; box-sizing: border-box; }
  .assign-select:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
  
  .assign-workload-note { font-size: 12.5px; color: #475569; background: #f8fafc; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 6px; }
  .assign-workload-note.heavy { background: #fffbeb; color: #92400e; border-color: #fde68a; font-weight: 600; }

  .assign-action-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 14.5px; font-weight: 800; cursor: pointer; border: none; background: #0284c7; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3); transition: all 0.15s ease; }
  .assign-action-btn:hover:not(:disabled) { background: #0369a1; }
  .assign-action-btn:disabled { opacity: 0.6; cursor: default; }

  /* Redesigned Permanently Reassign Stop Styles */
  .reassign-filter-card { background: white; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 16px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); box-sizing: border-box; }
  .reassign-search-wrap { position: relative; margin-bottom: 12px; }
  .reassign-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #94a3b8; pointer-events: none; }
  .reassign-search-input { width: 100%; padding: 10px 14px 10px 38px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 14px; color: #0f172a; box-sizing: border-box; }
  .reassign-search-input:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
  
  .reassign-chip-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
  .reassign-chip-label { font-size: 11.5px; font-weight: 700; color: #64748b; margin-right: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
  .reassign-chip { padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; transition: all 0.15s ease; }
  .reassign-chip:hover { border-color: #0284c7; color: #0284c7; background: #eff6ff; }
  .reassign-chip.active { background: #0284c7; color: white; border-color: #0284c7; font-weight: 700; }

  .reassign-results-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #64748b; font-weight: 600; padding-top: 8px; border-top: 1px solid #f1f5f9; flex-wrap: wrap; gap: 6px; }

  .reassign-card { background: white; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); text-align: left; transition: border-color 0.15s ease; box-sizing: border-box; }
  .reassign-card:hover { border-color: #93c5fd; }
  .reassign-card.is-paused { background: #f8fafc; border-color: #e2e8f0; opacity: 0.85; }
  
  .reassign-card-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .reassign-card-title { font-size: 17.5px; font-weight: 800; color: #0f172a; margin: 0; }
  .reassign-card-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  
  .reassign-address-row { margin-bottom: 14px; font-size: 13.5px; }
  
  .reassign-flow-container { display: flex; align-items: stretch; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .reassign-flow-box { flex: 1; min-width: 220px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 12px; box-sizing: border-box; }
  .reassign-flow-box.current { border-color: #cbd5e1; }
  .reassign-flow-box.target { background: #f0fdf4; border-color: #86efac; }
  .reassign-flow-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; margin-bottom: 6px; }
  .reassign-flow-box.target .reassign-flow-label { color: #166534; }
  .reassign-flow-val { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
  .reassign-flow-sub { font-size: 12px; color: #64748b; }
  .reassign-flow-arrow { display: flex; align-items: center; justify-content: center; font-size: 20px; color: #94a3b8; font-weight: 800; }
  @media (max-width: 600px) { .reassign-flow-arrow { width: 100%; height: 24px; transform: rotate(90deg); } }

  .reassign-selects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 500px) { .reassign-selects-grid { grid-template-columns: 1fr; } }
  .reassign-mini-label { font-size: 11.5px; font-weight: 700; color: #14532d; display: block; margin-bottom: 4px; }
  .reassign-select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid #86efac; background: white; font-size: 13.5px; font-weight: 600; color: #0f172a; box-sizing: border-box; }
  .reassign-select:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }

  .reassign-impact-note { font-size: 12.5px; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; }
  .reassign-impact-note.changed { background: #eff6ff; color: #0369a1; border-color: #bfdbfe; font-weight: 600; }
  .reassign-impact-note.heavy { background: #fffbeb; color: #92400e; border-color: #fde68a; font-weight: 600; }

  .reassign-submit-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 14.5px; font-weight: 800; cursor: pointer; border: none; background: #94a3b8; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease; }
  .reassign-submit-btn.has-change { background: #0284c7 !important; cursor: pointer !important; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3); }
  .reassign-submit-btn.has-change:hover { background: #0369a1 !important; }
  .reassign-submit-btn:disabled { opacity: 0.6; cursor: default; }

  /* Stop Scheduling & Coverage Unified Styles */
  .scheduling-mode-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
  .scheduling-tab-btn { flex: 1; min-width: 170px; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1.5px solid #cbd5e1; background: white; color: #475569; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s ease; user-select: none; }
  .scheduling-tab-btn:hover { border-color: #0284c7; color: #0284c7; background: #f8fafc; }
  .scheduling-tab-btn.is-active { background: #0284c7; color: white; border-color: #0284c7; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }
  .scheduling-tab-btn.is-active .admin-tab-badge { background: rgba(255, 255, 255, 0.25); color: white; }
  .scheduling-tab-badge-alert { background: #fef3c7 !important; color: #92400e !important; }
  .scheduling-tab-btn.is-active .scheduling-tab-badge-alert { background: #fef3c7 !important; color: #92400e !important; }

  /* Temporary Coverage Redesign Styles */
  .coverage-mode-bar { display: flex; gap: 8px; margin-bottom: 18px; }
  .coverage-tab-btn { flex: 1; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1.5px solid #cbd5e1; background: white; color: #475569; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s ease; }
  .coverage-tab-btn:hover { border-color: #0284c7; color: #0284c7; background: #f8fafc; }
  .coverage-tab-btn.is-active { background: #0284c7; color: white; border-color: #0284c7; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }

  .coverage-step-card { background: white; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); box-sizing: border-box; text-align: left; }
  .coverage-step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .coverage-step-num { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #0284c7; color: white; font-size: 13px; font-weight: 800; flex-shrink: 0; }
  .coverage-step-title { font-size: 15px; font-weight: 800; color: #0f172a; margin: 0; }

  .coverage-intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
  @media (max-width: 640px) { .coverage-intent-grid { grid-template-columns: 1fr; } }
  .coverage-intent-card { border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 12px; background: #f8fafc; cursor: pointer; text-align: left; transition: all 0.15s ease; box-sizing: border-box; }
  .coverage-intent-card:hover { border-color: #93c5fd; background: #eff6ff; }
  .coverage-intent-card.is-selected { border-color: #0284c7; background: #eff6ff; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); }
  .coverage-intent-icon { font-size: 20px; margin-bottom: 4px; }
  .coverage-intent-title { font-size: 13.5px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
  .coverage-intent-desc { font-size: 11.5px; color: #64748b; line-height: 1.35; }

  .coverage-stop-item { background: white; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); transition: border-color 0.15s ease; text-align: left; box-sizing: border-box; }
  .coverage-stop-item:hover { border-color: #93c5fd; }
  .coverage-stop-item.is-selected { border-color: #0284c7; background: #f0f9ff; }
  .coverage-stop-item.is-paused { opacity: 0.65; background: #f8fafc; }

  .coverage-stop-item.is-checked { border-color: #0284c7; background: #f0f9ff; }

  .coverage-upcoming-card { background: white; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); text-align: left; box-sizing: border-box; }
  .coverage-badge-active { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
  .coverage-badge-scheduled { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
  .coverage-restore-btn { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
  .coverage-restore-btn:hover { background: #fecaca; color: #991b1b; }

  .coverage-save-bar { position: sticky; bottom: 12px; z-index: 10; background: white; border-radius: 14px; padding: 12px 16px; border: 1.5px solid #cbd5e1; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
  .coverage-save-info { font-size: 13.5px; font-weight: 700; color: #0f172a; }
  .coverage-confirm-btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 800; border: none; background: #0284c7; color: white; cursor: pointer; transition: all 0.15s ease; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3); }
  .coverage-confirm-btn:hover:not(:disabled) { background: #0369a1; }
  /* Redesigned Create Customer Styles */
  .create-cust-card {
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    text-align: left;
    box-sizing: border-box;
  }
  .create-cust-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .create-cust-card-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
  }
  .create-cust-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cust-freq-btn-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .cust-freq-btn {
    padding: 10px 10px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 54px;
  }
  .cust-freq-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
  }
  .cust-freq-btn.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  }
  .cust-freq-main {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
  }
  .cust-freq-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.2;
  }
  .assign-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .assign-mode-option {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    text-align: left;
  }
  .assign-mode-option:hover {
    border-color: #7dd3fc;
    background: #f8fafc;
  }
  .assign-mode-option.is-active {
    border: 2px solid #0284c7;
    background: #f0f9ff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
  }
  .assign-mode-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    flex: 0 0 18px !important;
    accent-color: #0284c7;
    cursor: pointer;
  }
  .assign-mode-text {
    flex: 1;
    min-width: 0;
  }
  .assign-mode-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
  }
  .assign-mode-option.is-active .assign-mode-title {
    color: #0369a1;
  }
  .assign-mode-desc {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
  }
  .create-sched-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
  }
  .create-sched-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .create-sched-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 999px;
  }
  @media (max-width: 600px) {
    .create-cust-card {
      padding: 16px 14px;
    }
    .create-cust-grid-2,
    .assign-mode-grid {
      grid-template-columns: 1fr !important;
      gap: 10px;
    }
    .cust-freq-btn-group {
      gap: 6px;
    }
    .cust-freq-btn {
      padding: 9px 6px;
      min-height: 50px;
    }
    .cust-freq-main {
      font-size: 12.5px;
    }
    .cust-freq-sub {
      font-size: 10.5px;
    }
  }

  .tech-app-screen { display: none; width: 100%; max-width: 900px; margin: 0 auto; box-sizing: border-box; }
  .top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: white; padding: 12px 16px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); box-sizing: border-box; }
  .tech-name-display { font-size: 16px; font-weight: 700; color: #0066cc; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .change-tech-btn { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
  
  .menu-container { background: white; padding: 16px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; text-align: center; box-sizing: border-box; }
  .menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
  .menu-title { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
  .print-route-btn { background: #f3f4f6; color: #1f2937; border: 1px solid #cbd5e1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
  .print-route-btn:active { background: #e5e7eb; }
  .day-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  
  .day-filter-btn {
    background: #e6f0fa;
    color: #0066cc;
    border: 1px solid #0066cc;
    padding: 7px 2px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    transition: background 0.12s ease, transform 0.1s ease;
  }
  .day-filter-btn:active, .day-filter-btn.active { background: #0066cc !important; color: white !important; font-weight: 700; }
  .day-filter-btn.disabled-day { background: #f3f4f6; color: #9ca3af; border-color: #e5e7eb; cursor: default; pointer-events: none; opacity: 0.6; }
  
  .day-filter-name {
    font-size: 13.5px;
    font-weight: 750;
    display: block;
  }

  .day-filter-date {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.82;
    display: block;
    margin-top: 2px;
  }

  .day-filter-btn.active .day-filter-date {
    opacity: 0.95;
    color: #ffffff;
  }

  .route-week-subtitle {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    margin: -6px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .day-section { display: none; margin-bottom: 25px; background: white; padding: 16px 12px; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); box-sizing: border-box; }
  .day-header-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f2f5; padding-bottom: 10px; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
  h2 { font-size: 18px; color: #0066cc; margin: 0; border: none; padding: 0; }
  .route-summary-counter { display: inline-block; background: #e0f2fe; color: #0369a1; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid #bae6fd; margin-top: 4px; }
  
  .route-actions-wrapper { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .map-route-btn { background: #e6f0fa; color: #0066cc; border: 1px solid #0066cc; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
  
  .stop-card { background: #ffffff; border: 1px solid #e1e4e8; border-left: 8px solid #0066cc; padding: 14px 12px; margin: 12px 0; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); box-sizing: border-box; scroll-margin-top: 20px; }
  .stop-card.in-progress { background: #fffbe3; border-color: #fde047; border-left-color: #eab308; }
  .stop-card.completed { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #22c55e; opacity: 0.85; }
  .stop-card.paused { background: #f9fafb; border-color: #e5e7eb; border-left-color: #9ca3af; opacity: 0.7; }
  .stop-card.off-week { background: #f8fafc; border-color: #cbd5e1; border-left-color: #94a3b8; }
  
  .stop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; width: 100%; box-sizing: border-box; }
  .stop-num { color: #586069; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; white-space: nowrap; }
  .badges-wrapper { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
  .frequency-badge { background: #fef3c7; color: #d97706; font-size: 11px; font-weight: 700; padding: 3px 4px 3px 2px; border-radius: 6px; border: 1px solid #fde68a; white-space: nowrap; }
  .community-badge { background: #e6f0fa; color: #0066cc; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px; border: 1px solid #b3d1f2; white-space: nowrap; }
  .gate-pass-lock { margin-left: 4px; }
  
  .property-nickname { font-size: 20px; color: #1a1a1a; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
  .property-address { display: block; font-size: 14px; color: #0066cc; text-decoration: none; margin-bottom: 12px; font-weight: 600; line-height: 1.3; }
  .notes-box { background: #fffde7; border: 2px solid #ffe082; border-left: 8px solid #fbc02d; padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; color: #5d4037; font-weight: 700; }
  
  .btn-group { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
  .service-action-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; background: #0066cc; color: white; border: none; text-align: center; padding: 14px 8px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; box-sizing: border-box; width: 100%; box-shadow: 0 2px 4px rgba(0,102,204,0.2); }
  .service-action-btn.in-prog { background: #eab308; color: white; }
  .service-action-btn.done { background: #22c55e; color: white; cursor: default; }
  .service-action-btn.paused-btn { background: #e5e7eb !important; color: #6b7280 !important; cursor: not-allowed; }
  
  .search-box-container { margin-bottom: 10px; }
  .all-stops-search { width: 100%; padding: 14px 16px; font-size: 16px; border: 2px solid #0066cc; border-radius: 12px; box-sizing: border-box; background: white; outline: none; box-shadow: 0 2px 6px rgba(0,102,204,0.1); }
  .search-count-badge { display: block; font-size: 13px; font-weight: 700; color: #0066cc; margin-top: 6px; margin-bottom: 15px; }
  .tech-label-badge { display: inline-block; background: #eef2ff; color: #4f46e5; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid #c7d2fe; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

  /* Full-Screen Page Form Overlay */
  #form-screen { display: none; width: 100%; max-width: 900px; margin: 0 auto; box-sizing: border-box; padding: 10px 6px; }
  .full-page-card { background: white; padding: 18px 16px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); box-sizing: border-box; }
  .form-header-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f2f5; padding-bottom: 12px; margin-bottom: 15px; }
  .form-header-title { font-size: 20px; font-weight: 800; color: #0066cc; margin: 0; }
  .exit-form-btn { background: #f3f4f6; border: 1px solid #d1d5db; font-size: 20px; font-weight: 700; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: #475569; display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; transition: background 0.15s ease; }
  .exit-form-btn:active { background: #e5e7eb; color: #111827; }
  
  /* Submitting Service Form Screen */
  #submitting-screen { display: none; max-width: 450px; margin: 80px auto; background: white; padding: 36px 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; box-sizing: border-box; }
  .submitting-title { font-size: 20px; font-weight: 800; color: #0066cc; margin-bottom: 8px; }
  .submitting-subtitle { font-size: 14px; color: #64748b; margin-bottom: 20px; }

  .form-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 14px; margin-bottom: 16px; box-sizing: border-box; }
  .form-section-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
  .form-group { display: flex; flex-direction: column; margin-bottom: 12px; }
  .form-group:last-child { margin-bottom: 0; }
  .form-group label { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 5px; }
  .form-control { padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 15px; outline: none; background: white; box-sizing: border-box; }
  .form-control:focus { border-color: #0066cc; }
  .attachment-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
  .service-attachment { min-width: 0; padding: 8px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; }
  .service-attachment img, .service-attachment video { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; background: #0f172a; }
  .service-attachment-name { overflow-wrap: anywhere; margin: 6px 0; color: #475569; font-size: 12px; }
  .service-attachment-remove { width: 100%; padding: 7px; border: 1px solid #fecaca; border-radius: 7px; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 700; cursor: pointer; }
  .attachment-help { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.4; }
  #service-report-screen { display: none; width: 100%; max-width: 900px; margin: 0 auto; padding: 10px 6px; box-sizing: border-box; }
  .service-report-card { background: white; padding: 18px 16px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); box-sizing: border-box; }
  .service-report-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid #f0f2f5; padding-bottom: 12px; margin-bottom: 15px; }
  .service-report-title { color: #0066cc; font-size: 20px; font-weight: 800; margin: 0; }
  .report-attachment { display: inline-flex; margin: 4px 8px 4px 0; padding: 8px 11px; border: 1px solid #bfdbfe; border-radius: 8px; color: #0051a8; background: #eff6ff; font-weight: 700; text-decoration: none; }
  .report-edit-actions { display: flex; gap: 10px; margin-top: 18px; }
  .report-edit-actions button { flex: 1; padding: 12px; border: 0; border-radius: 9px; color: white; font-size: 15px; font-weight: 800; cursor: pointer; }
  .report-save-btn { background: #16a34a; }
  .report-cancel-btn { background: #64748b; }
  .report-attachment-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 5px 0; }
  .report-attachment-row .report-attachment { margin: 0; }
  .report-delete-attachment { padding: 7px 10px; border: 1px solid #fecaca; border-radius: 7px; background: #fef2f2; color: #b91c1c; font-weight: 700; }

  /* Chemical Readings Vertical Stack */
  .chem-readings-stack, .chem-added-stack { display: flex; flex-direction: column; gap: 14px; }
  .reading-group { display: flex; flex-direction: column; }
  .reading-label { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
  .required-star { color: #ef4444; font-weight: 700; }
  .optional-tag { font-size: 12px; font-weight: 500; color: #64748b; }
  .reading-input-row { display: flex; gap: 8px; align-items: center; width: 100%; box-sizing: border-box; }
  .reading-input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px; border: 1.5px solid #cbd5e1; border-radius: 10px; outline: none; background: white; -webkit-appearance: none; box-sizing: border-box; }
  .reading-input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
  .reading-input.input-error { border-color: #ef4444 !important; background: #fff5f5; }

  .reading-indicator { min-width: 96px; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 700; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #64748b; box-sizing: border-box; white-space: nowrap; transition: all 0.2s ease; flex-shrink: 0; }
  .reading-indicator .ind-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #94a3b8; }

  .reading-indicator.ind-neutral { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }
  .reading-indicator.ind-neutral .ind-dot { background: #94a3b8; }

  .reading-indicator.ind-good { background: #dcfce7; color: #15803d; border-color: #86efac; }
  .reading-indicator.ind-good .ind-dot { background: #22c55e; }

  .reading-indicator.ind-ok { background: #fef9c3; color: #a16207; border-color: #fde047; }
  .reading-indicator.ind-ok .ind-dot { background: #eab308; }

  .reading-indicator.ind-bad { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
  .reading-indicator.ind-bad .ind-dot { background: #ef4444; }

  .reading-indicator.ind-invalid { background: #fef2f2; color: #991b1b; border-color: #ef4444; }
  .reading-indicator.ind-invalid .ind-dot { background: #dc2626; }

  .reading-range-note { font-size: 12px; color: #64748b; margin-top: 4px; font-weight: 500; }
  .reading-error-hint { font-size: 12px; color: #dc2626; margin-top: 3px; font-weight: 600; display: none; }

  /* Chemicals Added Vertical Stack */
  .chem-add-group { display: flex; flex-direction: column; }
  .chem-add-label { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
  .chem-add-input-row { display: flex; gap: 8px; align-items: center; width: 100%; box-sizing: border-box; }
  .chem-qty-input { flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px; border: 1.5px solid #cbd5e1; border-radius: 10px; outline: none; background: white; -webkit-appearance: none; box-sizing: border-box; }
  .chem-qty-input:focus { border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
  .chem-unit-select { width: 120px; flex-shrink: 0; padding: 12px 8px; font-size: 14px; font-weight: 600; border: 1.5px solid #cbd5e1; border-radius: 10px; background: white; color: #1e293b; outline: none; cursor: pointer; box-sizing: border-box; }
  .chem-unit-select:focus { border-color: #0066cc; }

  /* Tasks & Radio Stacks */
  .checkbox-stack, .radio-stack { display: flex; flex-direction: column; gap: 8px; }
  .checkbox-item, .radio-item { display: flex; align-items: center; gap: 12px; background: white; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #cbd5e1; font-size: 15px; font-weight: 600; color: #1e293b; cursor: pointer; box-sizing: border-box; }
  .checkbox-item:active, .radio-item:active { background: #f8fafc; }
  .checkbox-item input[type="checkbox"], .radio-item input[type="radio"] { width: 20px; height: 20px; accent-color: #0066cc; cursor: pointer; flex-shrink: 0; }

  .file-input-wrapper { margin-top: 8px; }
  .file-input-wrapper input { font-size: 13px; }

  .submit-service-btn { display: block; width: 100%; background: #22c55e; color: white; border: none; padding: 16px; border-radius: 12px; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 10px rgba(34,197,94,0.3); margin-top: 15px; box-sizing: border-box; }
  .submit-service-btn:active { background: #16a34a; }

  .save-later-btn { display: block; width: 100%; background: #f8fafc; color: #334155; border: 2px solid #cbd5e1; padding: 15px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; box-sizing: border-box; margin-top: 10px; text-align: center; }
  .save-later-btn:active { background: #e2e8f0; border-color: #94a3b8; }
  
  #loading-screen { max-width: 400px; margin: 80px auto; background: white; padding: 30px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; font-size: 16px; color: #0066cc; font-weight: 600; }

  /* GPS Loading Screen Translucent Overlay & Matching Card Style */
  #gps-loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
  }

  .gps-modal-card {
    max-width: 400px;
    width: 88%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    font-size: 16px;
    color: #0066cc;
    font-weight: 600;
    box-sizing: border-box;
  }
  .progress-return-btn { display: none; width: 100%; margin-top: 18px; padding: 13px 16px; border: 0; border-radius: 9px; background: #22c55e; color: white; font-size: 16px; font-weight: 800; cursor: pointer; }
  .progress-return-btn:active { background: #16a34a; }
  .service-modal-dismiss { display: none; width: 100%; margin-top: 18px; padding: 13px 16px; border: 0; border-radius: 9px; background: #0066cc; color: white; font-size: 16px; font-weight: 800; cursor: pointer; }
  .service-modal-dismiss:active { background: #0052a3; }
  .progress-confirm-actions { display: none; gap: 10px; margin-top: 18px; }
  .progress-confirm-actions button { flex: 1; padding: 13px 12px; border: 0; border-radius: 9px; color: white; font-size: 16px; font-weight: 800; cursor: pointer; }
  .progress-delete-btn { background: #dc2626; }
  .progress-delete-btn:active { background: #b91c1c; }
  .progress-cancel-btn { background: #64748b; }
  .progress-cancel-btn:active { background: #475569; }
  .progress-pin-entry { display: none; margin-top: 16px; text-align: left; }
  .progress-pin-entry label { display: block; margin-bottom: 6px; color: #374151; font-weight: 700; }
  .progress-pin-entry input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 18px; box-sizing: border-box; letter-spacing: 3px; }
  .progress-pin-actions { display: flex; gap: 10px; margin-top: 12px; }
  .progress-pin-actions button { flex: 1; padding: 13px 12px; border: 0; border-radius: 9px; color: white; font-size: 16px; font-weight: 800; cursor: pointer; }
  .progress-pin-submit-btn { background: #0066cc; }
  .progress-pin-submit-btn:active { background: #0051a8; }

  /* --- UI & Mobile Optimization Enhancements --- */
  #tech-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  #tech-buttons-container .tech-btn {
    margin-bottom: 0;
    padding: 13px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #tech-buttons-container .all-stops-btn {
    grid-column: 1 / -1;
  }
  .tech-btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    line-height: 1.2;
  }
  .tech-btn-name {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .tech-btn-meta {
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
  }

  /* Compact Collapsible Move Stop (Permanent) Cards */
  .reassign-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .reassign-summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 700;
  }
  .reassign-summary-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 999px;
  }
  .reassign-toggle-btn {
    background: #eff6ff;
    color: #0284c7;
    border: 1.5px solid #bae6fd;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
  }
  .reassign-toggle-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
  }
  .reassign-card.is-expanded .reassign-toggle-btn {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
  }
  .reassign-drawer {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
  }
  .reassign-card.is-expanded .reassign-drawer {
    display: block;
  }

  /* Sticky Form Header & Photo Status Pills */
  #form-screen .form-header-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    margin: -10px -8px 18px -8px;
    padding: 12px 8px;
  }
  .photo-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
  }
  .photo-status-pill.is-required {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
  }
  .photo-status-pill.is-attached {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
  }

  /* Mobile Viewport Decluttering & Polish */
  @media (max-width: 640px) {
    .top-bar {
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px 12px;
    }
    .tech-name-display {
      font-size: 15px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .change-tech-btn {
      padding: 7px 10px;
      font-size: 12.5px;
    }
    .stop-header {
      flex-wrap: wrap;
      gap: 6px;
    }
    .badges-wrapper {
      flex-wrap: wrap;
      justify-content: flex-end;
      max-width: 100%;
    }
    .community-badge {
      max-width: 210px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .scheduling-mode-bar {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 6px !important;
    }
    .scheduling-tab-btn {
      width: 100%;
      padding: 10px 12px;
      font-size: 13.5px;
    }
    #admin-report-status-tabs {
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 4px;
      margin-left: -4px;
      margin-right: -4px;
      padding-left: 4px;
      padding-right: 4px;
    }
    #admin-report-status-tabs::-webkit-scrollbar {
      display: none;
    }
    #admin-report-status-tabs .cust-status-pill {
      flex: 0 0 auto;
    }
    .cust-filter-pills-row {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }
    .cust-status-toggle {
      width: 100%;
      display: flex;
    }
    .cust-status-toggle .cust-status-pill {
      flex: 1;
      text-align: center;
      justify-content: center;
      padding: 7px 6px;
      font-size: 12.5px;
    }
    .cust-dropdown-filters {
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .cust-dropdown-filters .cust-filter-select {
      width: 100%;
      min-width: 0;
      font-size: 13px;
      padding: 8px 10px;
    }
    .cust-dropdown-filters .cust-filter-select:first-child:nth-last-child(3),
    .cust-dropdown-filters .cust-filter-select:only-child {
      grid-column: 1 / -1;
    }
    .reassign-summary-bar {
      flex-direction: column;
      align-items: stretch;
    }
    .reassign-toggle-btn {
      width: 100%;
      text-align: center;
      padding: 8px 12px;
    }
  }

  /* ========================================================
     STANDALONE (HOME SCREEN PWA) NAVIGATION BAR
     ======================================================== */
  #standalone-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: #0284c7;
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.25);
    align-items: center;
    justify-content: space-around;
    padding: 9px 8px calc(11px + env(safe-area-inset-bottom, 14px));
    height: calc(78px + env(safe-area-inset-bottom, 14px));
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
  }

  body.is-standalone #standalone-bottom-bar {
    display: flex !important;
  }

  @media (display-mode: standalone) {
    #standalone-bottom-bar {
      display: flex !important;
    }
  }

  body.is-standalone,
  body.is-standalone .tech-app-screen,
  body.is-standalone #form-screen {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 14px)) !important;
  }

  @media (display-mode: standalone) {
    body,
    .tech-app-screen,
    #form-screen {
      padding-bottom: calc(88px + env(safe-area-inset-bottom, 14px)) !important;
    }
  }

  .pwa-bar-btn {
    flex: 1;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    gap: 4px;
    transition: background 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .pwa-bar-btn:active {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0.93);
  }

  .pwa-bar-svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .pwa-bar-label {
    font-size: 11.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
  }

  /* ========================================================
     IN-APP PDF ROUTE SCREEN & PRINT STYLES
     ======================================================== */
  .pdf-route-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .pdf-route-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pdf-route-back-btn {
    padding: 7px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .pdf-route-print-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.35);
    transition: background 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .pdf-route-print-btn:active {
    background: #0369a1;
    transform: scale(0.96);
  }

  .pdf-route-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111827;
    background: #ffffff;
  }

  .pdf-route-content header {
    border-bottom: 2px solid #1f2937;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .pdf-route-content h1 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    text-align: left;
  }

  .pdf-route-content .subtitle {
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
  }

  .pdf-route-content .route-day {
    margin: 0 0 24px 0;
  }

  .pdf-route-content .route-day h2 {
    font-size: 17px;
    font-weight: 750;
    color: #1e293b;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #cbd5e1;
  }

  .pdf-route-content .route-stop {
    padding: 12px 14px;
    margin: 0 0 10px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-route-content .stop-number {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
    color: #0284c7;
  }

  .pdf-route-content .route-stop h3 {
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
    margin: 4px 0 6px 0;
  }

  .pdf-route-content .address {
    font-size: 13.5px;
    color: #334155;
    margin: 3px 0;
    line-height: 1.4;
  }

  .pdf-route-content .meta {
    font-size: 12.5px;
    color: #64748b;
    margin: 4px 0;
    line-height: 1.4;
    font-weight: 600;
  }

  .pdf-route-content .notes {
    font-size: 13px;
    color: #1e293b;
    margin: 6px 0 2px 0;
    line-height: 1.4;
    white-space: pre-wrap;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
  }

  body.is-standalone .pdf-route-content {
    padding-bottom: 120px;
  }

  @media print {
    @page {
      margin: 15mm 10mm;
      size: auto;
    }
    html, body {
      margin: 0 !important;
      padding: 0 !important;
      background: #ffffff !important;
      color: #111827 !important;
      font-size: 12pt !important;
    }
    .no-print,
    #standalone-bottom-bar,
    .top-bar,
    .pdf-route-topbar,
    #pwa-reset-modal,
    #pwa-sync-modal,
    #progress-modal,
    #offline-banner,
    #loading-screen,
    .tech-app-screen:not(#screen-pdf-route) {
      display: none !important;
    }
    #screen-pdf-route {
      display: block !important;
      background: #ffffff !important;
      min-height: auto !important;
      padding: 0 !important;
      margin: 0 !important;
    }
    .pdf-route-content {
      max-width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
    }
    .pdf-route-content .route-stop {
      background: #ffffff !important;
      border: 1px solid #94a3b8 !important;
      break-inside: avoid !important;
      page-break-inside: avoid !important;
      margin-bottom: 8px !important;
      padding: 8px 10px !important;
    }
    .pdf-route-content .notes {
      background: #f1f5f9 !important;
    }
    .pdf-route-all-days .route-day + .route-day {
      break-before: page !important;
      page-break-before: always !important;
    }
  }


