    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f3f6fa;
      color: #172b4d;
    }

    .sidebar {
      width: 245px;
      height: 100vh;
      background: #102c50;
      color: white;
      padding: 25px 18px;
      position: fixed;
    }

    .brand {
      font-size: 22px;
      font-weight: bold;
      margin-bottom: 8px;
    }

    .subtitle {
      font-size: 12px;
      color: #a8c6e8;
      margin-bottom: 35px;
    }

    .menu-item {
      padding: 14px;
      margin-bottom: 7px;
      border-radius: 8px;
      cursor: pointer;
    }

    .menu-item.active {
      background: #1689e8;
    }

    .menu-item:hover {
      background: #24527d;
    }

    .main {
      margin-left: 245px;
      padding: 35px;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 35px;
    }

    .header h1 {
      margin: 0;
    }

    .language {
      background: white;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 8px;
    }

    .cards {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .card {
      background: white;
      padding: 24px;
      border-radius: 12px;
      box-shadow: 0 3px 12px #0000000d;
    }

    .card h3 {
      color: #66758a;
      font-size: 14px;
      margin: 0 0 15px;
    }

    .card .number {
      font-size: 30px;
      font-weight: bold;
      color: #087bd3;
    }

    .welcome {
      margin-top: 30px;
      background: white;
      padding: 28px;
      border-radius: 12px;
    }

    @media (max-width: 900px) {
      .cards {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 600px) {
      .sidebar {
        position: static;
        width: 100%;
        height: auto;
      }

      .main {
        margin-left: 0;
        padding: 20px;
      }

      .cards {
        grid-template-columns: 1fr;
      }
    }

    /* EAST END MANAGER - Customer Form */

#customerForm {
  margin-top: 25px;
  padding: 30px;
}

#newCustomerForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

#newCustomerForm label {
  font-weight: 600;
  color: #263b53;
  margin-top: 8px;
}

#newCustomerForm input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

#newCustomerForm input:focus {
  outline: 2px solid #1399ed;
  border-color: #1399ed;
}

#newCustomerForm button {
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#newCustomerForm button[type="submit"] {
  background: #1399ed;
  color: white;
}

#cancelCustomerBtn {
  background: #e8edf3;
  color: #263b53;
}

#customerProfile form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
}

#customerProfile form input,
#customerProfile form textarea,
#customerProfile form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

#customerProfile form textarea {
    min-height: 100px;
    resize: vertical;
}

#customerProfile form button {
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

/* SERVICE STATUS COLORS */

.service-status {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-weight: bold;
    cursor: pointer;
}

/* Completed - Green */
.service-status[data-status="Completed"] {
    background-color: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

/* Cancelled - Red */
.service-status[data-status="Cancelled"] {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

/* In Progress - Blue */
.service-status[data-status="In Progress"] {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

/* Scheduled - Purple */
.service-status[data-status="Scheduled"] {
    background-color: #f3e8ff;
    color: #7e22ce;
    border-color: #a855f7;
}

/* Pending Scheduling - Orange */
.service-status[data-status="Pending Scheduling"] {
    background-color: #ffedd5;
    color: #9a3412;
    border-color: #f97316;
}
    /* SERVICE HISTORY CARDS */

#serviceHistoryList p {

    display: block;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    line-height: 1.8;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

#customerProfile #serviceHistoryList .service-status {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-top: 12px;
}

#selectedServicesDetails .welcome label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}

#selectedServicesDetails .welcome input,
#selectedServicesDetails .welcome select {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 10px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#selectedServicesDetails .welcome button {
    display: block;
    margin-top: 12px;
    margin-bottom: 15px;
    padding: 10px 15px;
    cursor: pointer;
}

/* COMPANY SETTINGS */

#companySettingsForm label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
}

#companySettingsForm input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

#companySettingsForm button {
    padding: 12px 20px;
    background: #1689e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#companySettingsForm button:hover {
    background: #126db8;
}

/* ==========================================
   EAST END MANAGER - DASHBOARD DESIGN
   ========================================== */

/* QUICK ACTIONS */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.dashboard-action {
    background: #f0f6fc;
    border: 1px solid #d9e6f3;
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    color: #19395f;
    font-size: 15px;
    font-weight: 600;
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: background 0.2s, transform 0.2s;
}

.dashboard-action:hover {
    background: #e1f0fc;
    transform: translateY(-2px);
}

/* WORK SCHEDULE */

.dashboard-schedule-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dashboard-schedule-tabs span {
    background: #eef3f9;
    color: #19395f;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.dashboard-schedule-tabs span:first-child {
    background: #1689e8;
    color: white;
}

#dashboardScheduleContent,
#dashboardAttentionContent {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
}

/* TABLET */

@media (max-width: 1100px) {
    .dashboard-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-action {
        padding: 18px 10px;
        font-size: 13px;
        min-height: 90px;
    }

    .dashboard-schedule-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-schedule-tabs span {
        padding: 12px 8px;
        text-align: center;
        font-size: 13px;
    }

    #dashboardScheduleContent,
    #dashboardAttentionContent {
        padding: 15px;
    }
}

/* ==========================================================
   EAST END MANAGER - APPROVED DESKTOP VISUAL REFRESH
   Presentation only: all existing IDs, event hooks, and data
   workflows are intentionally unchanged.
   ========================================================== */
:root {
  --eem-navy: #102b50;
  --eem-deep: #0b2345;
  --eem-blue: #087ee6;
  --eem-ink: #10264a;
  --eem-muted: #60728b;
  --eem-line: #dfe9f5;
  --eem-shadow: 0 7px 22px rgba(17,49,88,.075);
}
body { background: #f4f8fd; color: var(--eem-ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.sidebar {
  width: 265px; padding: 28px 17px; overflow-y: auto;
  background: linear-gradient(165deg,#0e315e 0%,#102b50 48%,#092345 100%);
  box-shadow: 3px 0 20px rgba(8,31,64,.07);
}
.brand { display:flex; align-items:center; gap:12px; font-size:21px; line-height:1.13; letter-spacing:.4px; margin-bottom:10px; padding:0 7px; }
.brand-symbol { font-size:31px; color:#54bbff; }
.subtitle { padding-left:7px; font-size:12px; margin-bottom:30px; color:#b6d5f4; }
.menu-item { display:flex; align-items:center; gap:13px; padding:13px 15px; margin:3px 0; border-radius:11px; font-size:15px; font-weight:600; transition:background .18s,transform .18s; }
.menu-item.active { background:linear-gradient(100deg,#0988ed,#0476dc); box-shadow:0 5px 14px rgba(0,113,220,.18); }
.menu-item:hover { background:#25547f; transform:translateX(2px); }
.nav-icon { width:23px; text-align:center; font-size:21px; line-height:1; color:#e7f4ff; flex-shrink:0; }
.menu-item:nth-of-type(8) { margin-top:18px; }
.main { margin-left:265px; padding:28px 30px 45px; min-width:0; }
.header { margin:0 0 24px; }
.header h1 { font-size:35px; letter-spacing:-.9px; line-height:1.12; color:#0c254b; }
.header p { color:#526a89; margin:10px 0 0; font-size:15px; }
.welcome { border:1px solid #e4ecf6; border-radius:19px; box-shadow:var(--eem-shadow); padding:24px; margin-top:0; min-width:0; }
.welcome h2 { margin:0 0 12px; color:#112a50; font-size:23px; letter-spacing:-.35px; }
.welcome > p { color:#61758f; margin:0 0 16px; font-size:14px; }
.section-icon { color:#087ee6; margin-right:4px; }
.attention-icon { color:#ec6d5e; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
/* Only the Dashboard receives a new two-column composition. */
.main:has(> #dashboardQuickActions) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:start; }
.main:has(> #dashboardQuickActions) > .header { grid-column:1/-1; grid-row:1; }
#dashboardBusinessOverview { grid-column:1/-1; grid-row:2; background:transparent; padding:0; border:0; box-shadow:none; }
#dashboardQuickActions { grid-column:1; grid-row:3; }
#dashboardWorkSchedule { grid-column:2; grid-row:3; }
#dashboardNeedsAttention { grid-column:1/-1; grid-row:4; }
#servicesSection { grid-column:1/-1; }
#dashboardBusinessOverview .cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
#dashboardBusinessOverview .card { position:relative; min-height:140px; padding:27px 30px; border:1px solid #d8e8f9; border-radius:20px; background:linear-gradient(115deg,#ffffff 0%,#e8f4ff 100%); box-shadow:var(--eem-shadow); }
#dashboardBusinessOverview .card:nth-child(2) { background:linear-gradient(115deg,#ffffff 0%,#eaf9ee 100%); border-color:#daeee1; }
#dashboardBusinessOverview .card::before { content:"♟"; display:grid; place-items:center; width:48px; height:48px; border-radius:13px; margin-bottom:12px; background:#0a81e8; color:white; font-size:28px; }
#dashboardBusinessOverview .card:nth-child(2)::before { content:"✓"; background:#2db456; }
#dashboardBusinessOverview .card h3 { position:absolute; left:94px; top:34px; margin:0; font-size:15px; color:#233c60; }
#dashboardBusinessOverview .card .number { position:absolute; left:94px; top:58px; font-size:38px; line-height:1.2; color:#102c55; }
.dashboard-actions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.dashboard-action { min-height:98px; border-radius:14px; border:1px solid #dfebf8; background:linear-gradient(145deg,#f5faff,#e9f3ff); box-shadow:0 3px 8px rgba(15,66,120,.06); color:#123159; font-size:14px; padding:18px 12px; cursor:pointer; }
.dashboard-action:hover { background:#e2f0ff; box-shadow:0 5px 12px rgba(10,99,191,.1); }
#dashboardWorkSchedule { display:flex; flex-direction:column; gap:12px; }
#dashboardWorkSchedule > h2 { margin-bottom:0; }
#dashboardOpenSchedule, #dashboardDateControls button, #dashboardWeekControls button, .dashboard-tab, #dashboardCalendarPreviousMonth, #dashboardCalendarNextMonth { border:1px solid #d7e4f3; border-radius:9px; background:#f5f9fe; color:#173a63; padding:9px 13px; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
#dashboardOpenSchedule { align-self:flex-start; background:#0c75d5; border-color:#0c75d5; color:white; font-weight:600; }
#dashboardDateControls { margin-top:4px!important; gap:7px!important; justify-content:space-between!important; }
#dashboardDateControls button { padding:9px 11px!important; font-size:13px!important; font-weight:600!important; flex:1; white-space:nowrap; }
.dashboard-schedule-tabs { margin-top:0!important; gap:8px; justify-content:flex-end!important; }
.dashboard-tab.active { background:#0b7fe7; color:white; border-color:#0b7fe7; }
#dashboardDayLabel { margin-top:0!important; font-size:15px!important; }
#dashboardScheduleContent { margin-top:0; padding:15px; background:#f8fbff; color:#253e60; border-radius:13px; }
#dashboardAttentionContent { margin-top:10px; background:#f8fbff; padding:18px; }
#dashboardWorkSchedule button:hover { filter:brightness(.96); }
@media(max-width:1250px) {
  .main:has(> #dashboardQuickActions) { grid-template-columns:minmax(0,1fr); }
  .main:has(> #dashboardQuickActions) > .header, #dashboardBusinessOverview, #dashboardQuickActions, #dashboardWorkSchedule, #dashboardNeedsAttention, #servicesSection { grid-column:1; grid-row:auto; }
  #dashboardBusinessOverview { order:1; } #dashboardQuickActions { order:2; } #dashboardWorkSchedule { order:3; } #dashboardNeedsAttention { order:4; } #servicesSection { order:5; }
}
@media(max-width:700px) {
  .sidebar { position:static; width:100%; height:auto; padding:16px; }
  .brand { font-size:19px; } .subtitle { margin-bottom:12px; }
  .menu-item { display:inline-flex; margin:3px; padding:10px; font-size:13px; }
  .main { margin-left:0; padding:18px 13px 30px; }
  .header h1 { font-size:29px; }
  .welcome { padding:18px; }
  #dashboardBusinessOverview .cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #dashboardBusinessOverview .card { min-height:145px; padding:15px; }
  #dashboardBusinessOverview .card::before { width:36px; height:36px; font-size:21px; }
  #dashboardBusinessOverview .card h3 { position:static; margin:6px 0 4px; font-size:12px; }
  #dashboardBusinessOverview .card .number { position:static; font-size:28px; }
  #dashboardDateControls { flex-wrap:wrap; }
  #dashboardDateControls button { min-width:80px; }
}

/* STEP 268.4 — Collapsible desktop sidebar. No business logic changes. */
@media (min-width: 701px) {
  .sidebar { transition: width .22s ease; }
  .main { transition: margin-left .22s ease; }
  body.sidebar-collapsed .sidebar { width: 82px; padding-left: 12px; padding-right: 12px; }
  body.sidebar-collapsed .main { margin-left: 82px; }
  body.sidebar-collapsed .sidebar .brand { justify-content: center; }
  body.sidebar-collapsed .sidebar .brand > span:last-child,
  body.sidebar-collapsed .sidebar .subtitle,
  body.sidebar-collapsed .sidebar .nav-label { display: none; }
  body.sidebar-collapsed .sidebar .menu-item { justify-content: center; padding-left: 8px; padding-right: 8px; }
  body.sidebar-collapsed .sidebar .nav-icon { margin: 0; }
}
.sidebar { position: fixed; }
.sidebar-toggle {
  position: absolute; right: 9px; top: 9px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 9px;
  color: white; background: rgba(255,255,255,.12); cursor: pointer;
  font-size: 14px; line-height: 1;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.23); }
.sidebar-toggle:focus-visible { outline: 2px solid #8acbff; outline-offset: 2px; }
@media (max-width: 700px) { .sidebar-toggle { display: none; } .sidebar { position: static; } }



/* DASHBOARD - FULL WIDTH WORK SCHEDULE */

#dashboardQuickActions {
    grid-column: 1 / -1;
}

#dashboardWorkSchedule {
    grid-column: 1 / -1;
}

#dashboardNeedsAttention {
    grid-column: 1 / -1;
}

#dashboardQuickActions .dashboard-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    #dashboardQuickActions .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* DASHBOARD - FINAL SECTION LAYOUT */

@media (min-width: 1251px) {
    #dashboardBusinessOverview {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #dashboardQuickActions {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    #dashboardWorkSchedule {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    #dashboardNeedsAttention {
        grid-column: 1 / -1;
        grid-row: 5;
    }

    #servicesSection {
        grid-column: 1 / -1;
        grid-row: 6;
    }
}


/* STEP 268.6.1 - PREMIUM DASHBOARD FINISH */

body {
    background: #f3f7fd;
}

/* Main dashboard panels */
#dashboardQuickActions,
#dashboardWorkSchedule,
#dashboardNeedsAttention {
    background: linear-gradient(145deg, #ffffff, #fbfdff);
    border: 1px solid #dce8f6;
    border-radius: 22px;
    box-shadow: 0 7px 24px rgba(18, 54, 100, 0.09);
}

/* Customer and completed-job cards */
#dashboardBusinessOverview .card {
    background: linear-gradient(115deg, #ffffff 5%, #dcefff 100%);
    border-color: #d3e6fa;
    box-shadow: 0 6px 18px rgba(13, 100, 190, 0.09);
}

#dashboardBusinessOverview .card:nth-child(2) {
    background: linear-gradient(115deg, #ffffff 5%, #e3f7e9 100%);
    border-color: #d3efdc;
}

/* Quick Actions */
#dashboardQuickActions .dashboard-action {
    background: linear-gradient(145deg, #f4f9ff, #e2f0ff);
    border: 1px solid #d5e7fa;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(20, 90, 160, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#dashboardQuickActions .dashboard-action:hover {
    background: linear-gradient(145deg, #e7f4ff, #d2eaff);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(10, 100, 190, 0.15);
}

/* Work Schedule */
#dashboardScheduleContent {
    background: #f7fbff;
    border: 1px solid #dbe9f8;
    border-radius: 16px;
}

/* Needs Attention */
#dashboardAttentionContent {
    background: #f8fbff;
    border: 1px solid #e1ebf7;
    border-radius: 14px;
}

/* Interactive buttons */
#dashboardOpenSchedule {
    background: linear-gradient(120deg, #087fe7, #006bd0);
    border-color: #087fe7;
    box-shadow: 0 4px 10px rgba(0, 110, 220, 0.15);
}

#dashboardOpenSchedule:hover {
    filter: brightness(1.08);
}


/* STEP 268.6.2 - QUICK ACTION ICONS */

#dashboardQuickActions .dashboard-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 125px;
    font-weight: 700;
}

#dashboardQuickActions .action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 32px;
    line-height: 1;
}

#dashboardQuickActions .dashboard-action > span:last-child {
    font-size: 14px;
    color: #102d54;
}


/* STEP 268.6.3 - PROFESSIONAL BLUE ICONS */

#dashboardQuickActions .action-icon {
    color: #087fe7;
}

#dashboardQuickActions .action-icon svg {
    width: 42px;
    height: 42px;
    display: block;
    stroke: currentColor;
}


/* STEP 268.7.4 - WORK SCHEDULE CONTROLS */

/* Navegación de fechas */
#dashboardDateControls {
    display: flex;
    justify-content: center !important;
    align-items: center;
    gap: 10px !important;
    flex-wrap: wrap;
    margin-top: 14px !important;
    margin-bottom: 10px;
}

#dashboardDateControls button {
    flex: 1 1 140px;
    padding: 11px 16px !important;
    border: 1px solid #d5e5f7;
    border-radius: 10px;
    background: #f3f8ff;
    color: #12345b;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

#dashboardDateControls button:hover {
    background: #e2f0ff;
    box-shadow: 0 3px 9px rgba(0, 105, 210, 0.10);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    #dashboardDateControls {
        gap: 6px !important;
    }

    #dashboardDateControls button {
        flex: 1 1 90px;
        padding: 10px 6px !important;
        font-size: 12px !important;
    }
}

/* ==========================================
   STEP 269.3 - MOBILE HEADER
   ========================================== */

/* Hidden on desktop */
.mobile-header {
    display: none;
}

@media (max-width: 700px) {

    .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 18px;
    background: #102b50;
    color: white;
    height: 72px;
    min-height: 72px;
}

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        letter-spacing: 0.4px;
    }

    .mobile-brand-logo {
    width: 90px;
    height: 60px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
}

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.12);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 9px;
        font-size: 25px;
        cursor: pointer;
    }

    .mobile-menu-toggle:active {
        background: #1689e8;
    }

}

/* STEP 269.5 - MOBILE NAVIGATION */

@media (max-width: 700px) {

    .sidebar {
        display: none;
    }

    .sidebar.mobile-menu-open {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .sidebar.mobile-menu-open .menu-item {
        display: flex;
        width: 100%;
        margin: 4px 0;
    }

}

/* STEP 269.8 - MOBILE CUSTOMER BUTTON */

@media (max-width: 700px) {

    #addCustomerBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 11px 18px;
        background: #087ee6;
        color: white;
        border: none;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

}

/* STEP 269.11 - MOBILE CUSTOMER DETAIL BUTTONS */

@media (max-width: 700px) {

    .main button {
        min-height: 40px;
        border-radius: 8px;
        touch-action: manipulation;
    }

}

/* STEP 269.13 - MOBILE EDIT CUSTOMER BUTTONS */

@media (max-width: 700px) {

    #editCustomerForm button[type="submit"] {
        background: #087ee6;
        color: white;
        border: none;
        border-radius: 9px;
        min-height: 48px;
        font-weight: 600;
        cursor: pointer;
    }

    #editCustomerForm #cancelEditCustomer {
        background: #e9eef5;
        color: #17365d;
        border: 1px solid #d5deea;
        border-radius: 9px;
        min-height: 48px;
        font-weight: 600;
        cursor: pointer;
    }

}

/* STEP 269.16 - CONTACT FORM BUTTON COLORS */
/* Desktop and Mobile */

.add-contact-form button[type="submit"] {
    background: #087ee6;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 12px 18px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
}

.add-contact-form .cancel-contact-btn {
    background: #e9eef5;
    color: #17365d;
    border: 1px solid #d5deea;
    border-radius: 9px;
    padding: 12px 18px;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
}

/* STEP 269.17 - CUSTOMER PROFILE BUTTONS */
/* Desktop and Mobile */

#customerProfile > button,
#customerProfile .contact-card button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Edit Customer, View Services, Add Service */
#customerProfile > button {
    background: #ffffff;
    color: #087ee6;
    border: 1px solid #087ee6;
}

/* ==========================================
   STEP 269.18 - CUSTOMER BUTTON COLORS
   DESKTOP + MOBILE
   ========================================== */

/* General customer profile buttons */
#customerProfile button,
.cloud-customer-row > button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Edit Customer, View Contracted Services,
   Add Contact, Edit Contact, View Estimates,
   Add Service and Supabase Edit */

#customerProfile > button.primary-btn,
#customerProfile > div > button,
.cloud-customer-row > button {
    background: #ffffff;
    color: #087ee6;
    border: 1px solid #087ee6;
}

/* Contact buttons: Edit / Delete / View Estimates */
#customerProfile .contact-card button {
    background: #ffffff;
    color: #087ee6;
    border: 1px solid #087ee6;
}

/* Save Contact */
#customerProfile .add-contact-form button[type="submit"],
#customerProfile .save-contact-edit {
    background: #087ee6;
    color: #ffffff;
    border: 1px solid #087ee6;
}

/* Cancel Contact */
#customerProfile .cancel-contact-btn {
    background: #e9eef5;
    color: #17365d;
    border: 1px solid #d5deea;
}

/* Delete Contact */
#customerProfile .contact-card button:nth-of-type(2) {
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #dc2626;
}

/* Archive Customer */
button[style*="color: rgb(220, 38, 38)"] {
    border-radius: 9px;
    font-weight: 600;
}

/* Hover effects */
#customerProfile button:hover,
.cloud-customer-row > button:hover {
    filter: brightness(0.96);
}

/* STEP 269.19 - MOBILE DASHBOARD CALENDAR */

@media (max-width: 700px) {

    #dashboardMonthlyCalendar {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px !important;
        overflow: hidden;
    }

    #dashboardCalendarGrid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 3px !important;
        width: 100%;
        min-width: 0;
    }

    #dashboardCalendarGrid > div {
        min-width: 0;
        padding: 5px 0 !important;
        font-size: 11px;
    }

    #dashboardCalendarGrid > button {
        box-sizing: border-box;
        min-width: 0;
        min-height: 48px !important;
        padding: 4px 1px !important;
        font-size: 13px !important;
        overflow: hidden;
    }

    #dashboardCalendarGrid > button > div {
        font-size: 13px !important;
    }

    #dashboardCalendarGrid > button > div + div {
        font-size: 8px !important;
        padding: 3px 1px !important;
        overflow-wrap: anywhere;
    }

    #dashboardCalendarMonthLabel {
        font-size: 19px !important;
        text-align: center;
    }

}

/* ==========================================
   STEP 269.21 - MOBILE WEEK NAVIGATION
   ========================================== */

@media (max-width: 700px) {

    .week-navigation {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin: 15px 0;
        align-items: center;
    }

    .week-navigation button {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 4px;
        font-size: 12px;
        text-align: center;
        white-space: normal;
        border-radius: 9px;
    }

}

/* STEP 269.24 - MOBILE WEEKLY SCHEDULE LAYOUT */

@media (max-width: 700px) {

    .week-navigation {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 8px;
    }

    .week-navigation button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 8px 4px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    .week-navigation-title {
        width: 100%;
        margin: 8px 0 18px;
        text-align: center;
        font-size: 17px;
        line-height: 1.4;
    }

}

/* STEP 269.31 - DASHBOARD WEEK CONTROLS */
/* Desktop + Mobile */

#dashboardWeekControls {
    display: none;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100%;
}

#dashboardWeekControls button {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

#dashboardWeekLabel {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 15px;
}

@media (max-width: 700px) {
    #dashboardWeekControls {
        gap: 5px !important;
    }

    #dashboardWeekControls button {
        padding: 9px 5px;
        font-size: 11px;
    }

    #dashboardWeekLabel {
        font-size: 12px;
    }
}


/* STEP 269.32 - MOBILE PAYMENT INFORMATION */

@media (max-width: 700px) {

    #paymentInfoOverlay {
        padding: 8px !important;
    }

    #paymentInfoPanel {
        padding: 14px 16px !important;
        max-height: calc(100dvh - 16px) !important;
        overflow-y: auto;
        border-radius: 12px;
        font-size: 14px;
        line-height: 1.3;
    }

    #paymentInfoPanel h2 {
        font-size: 18px;
        margin: 0 0 5px;
    }

    #paymentInfoPanel h3 {
        font-size: 15px;
        margin: 10px 0 5px;
    }

    #paymentInfoPanel p {
        margin: 5px 0;
        font-size: 13px;
    }

    #paymentInfoPanel hr {
        margin: 10px 0;
        border: 0;
        border-top: 1px solid #dce4ed;
    }

    /* Square QR */
    #paymentInfoPanel img[alt="Square Payment QR Code"] {
        width: 100px !important;
        height: 100px !important;
        display: block;
        margin: 0 auto;
    }

    #paymentInfoPanel img[alt="Square Payment QR Code"]
        + p {
        font-size: 11px !important;
        margin-top: 4px;
    }

    #paymentInfoPanel div:has(
        > img[alt="Square Payment QR Code"]
    ) {
        margin: 6px 0 !important;
    }

    /* Payment buttons */
    #paymentInfoPanel button {
        min-height: 36px;
        padding: 8px 12px;
        background: #f0f7ff;
        color: #123b65;
        border: 1px solid #c8def5;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    #paymentInfoPanel #sharePaymentInfo {
        background: #087ee6;
        color: white;
        border-color: #087ee6;
    }

    #paymentInfoPanel #closePaymentInfo {
        background: #e9eef5;
        color: #17365d;
        border-color: #d5deea;
    }
}


/* STEP 269.36 - ESTIMATE ACTION BUTTON COLORS */

.estimate-approve-btn {
    background: #198754;
    color: white;
    border: 1px solid #198754;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
}

.estimate-reject-btn {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
}


/* STEP 269.37 - ESTIMATE FOLLOW-UP TRACKING */

.estimate-tracking-section {
    margin-top: 16px;
}

.estimate-tracking-section > summary {
    display: none;
}

@media (max-width: 700px) {
    .estimate-tracking-section {
        border: 1px solid #d5e2f0;
        border-radius: 10px;
        overflow: hidden;
        background: #f5f9ff;
    }

    .estimate-tracking-section > summary {
        display: list-item;
        padding: 14px;
        color: #173b65;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .estimate-tracking-section[open] > summary {
        border-bottom: 1px solid #d5e2f0;
    }

    .estimate-tracking-content {
        padding: 12px 14px;
        overflow-wrap: anywhere;
    }

    .estimate-tracking-content button {
        max-width: 100%;
        white-space: normal;
    }
}

@media (min-width: 701px) {
    .estimate-tracking-content {
        display: block !important;
    }
}


/* STEP 269.38 - ESTIMATES CARD HEADER */

.estimate-card-header {
    margin-bottom: 12px;
}

.estimate-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.estimate-card-number {
    color: #173b65;
}

.estimate-card-status {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef3f9;
    color: #173b65;
}

.estimate-card-business {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #102d52;
    overflow-wrap: anywhere;
}

.estimate-card-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.estimate-card-dates > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.estimate-card-dates small {
    color: #64748b;
    font-size: 12px;
}

.estimate-card-dates strong {
    font-size: 14px;
    color: #173b65;
}

@media (max-width: 700px) {
    .estimate-card-header {
        padding-bottom: 14px;
        border-bottom: 1px solid #e2e8f0;
    }
}


/* STEP 269.39 - ESTIMATES MOBILE STATUS AND BUTTONS */

@media (max-width: 700px) {

    /* Status badges */
    .estimate-card-status {
        background: #eef3f9;
        color: #173b65;
    }

    /* Main estimate action buttons */
    .estimate-card-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .estimate-card-actions button {
        width: 100%;
        margin: 0 !important;
        min-height: 46px;
        border-radius: 8px;
    }
}


/* STEP 269.40 - ESTIMATE MOBILE ACTION BUTTONS */

@media (max-width: 700px) {
    .estimate-card-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
        width: 100%;
    }

    .estimate-card-actions button {
        display: block;
        width: 100%;
        margin: 0 !important;
        min-height: 46px;
        box-sizing: border-box;
        text-align: center;
    }
}


/* STEP 269.41 - ESTIMATES SECONDARY BUTTONS */

@media (max-width: 700px) {

    .estimate-secondary-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: 100%;
        min-height: 46px;
        padding: 10px 14px;
        margin-top: 8px;
        border-radius: 8px;
        font-size: 14px;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
}


/* STEP 269.42 - ESTIMATES SECONDARY BUTTON DESIGN */

@media (max-width: 700px) {
    .estimate-secondary-btn {
        background: #f0f5fb;
        color: #173b65;
        border: 1px solid #b8cce2;
        border-radius: 8px;
        padding: 10px 14px;
        min-height: 46px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .estimate-secondary-btn:active {
        background: #dceafa;
    }
}


/* STEP 269.43 - MOBILE NEW ESTIMATE BUTTON */

@media (max-width: 700px) {
    #newEstimateBtn {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        background: #193b65;
        color: #ffffff;
        border: 1px solid #193b65;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-sizing: border-box;
    }

    #newEstimateBtn:active {
        background: #102b4d;
    }
}


/* STEP 269.44 - MOBILE ESTIMATE FORM */

@media (max-width: 700px) {

    /* DISCOUNTS */
    #estimateDiscountSection > label {
        display: block;
        margin: 16px 0 7px;
        font-weight: 600;
        color: #173b65;
        font-size: 14px;
    }

    #estimateDiscountSection > select,
    #estimateDiscountSection > input {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 10px 12px;
        box-sizing: border-box;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        font-size: 15px;
    }

    /* SPECIFIC SERVICE DISCOUNT */
    #specificDiscountService label,
    #discountExtraDetails label {
        display: block;
        margin: 14px 0 7px;
        font-weight: 600;
        font-size: 14px;
    }

    #specificDiscountService select,
    #discountExtraDetails input {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 10px 12px;
        box-sizing: border-box;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        font-size: 15px;
    }

    /* INVOICE FREQUENCY AND SUMMARY */
    #estimateSummary {
        margin: 24px 0 18px;
        padding: 18px 16px;
        box-sizing: border-box;
        max-width: 100%;
    }

    #estimateSummary h3 {
        margin: 0 0 14px;
        color: #102e53;
    }

    #estimateSummary label[for="estimateInvoiceFrequency"] {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
    }

    #estimateInvoiceFrequency {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 9px 8px;
        box-sizing: border-box;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        font-size: 13px;
    }

    #estimateSummary > h2 {
        margin: 24px 0 18px;
        color: #102e53;
        font-size: 22px;
    }

    #estimateSummary > p {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin: 14px 0;
        font-size: 15px;
    }

    #estimateSummary > p strong {
        white-space: nowrap;
        color: #173b65;
    }

    /* SALES TAX CHECKBOX */
    #estimateSummary > label:not([for]) {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 18px 0;
        font-size: 15px;
    }

    #estimateApplyTax {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* TOTAL ESTIMATE */
    #estimateSummary hr {
        margin: 20px 0;
        border: 0;
        border-top: 1px solid #d5e0ec;
    }

    #estimateSummary > h2:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 20px;
    }

    #estimateTotal {
        color: #173b65;
        font-size: 24px;
        font-weight: 700;
    }

    /* SAVE AND BACK BUTTONS */
    #estimateDiscountSection > button {
        width: 100%;
        min-height: 48px;
        margin: 0 0 10px !important;
        padding: 12px 14px;
        box-sizing: border-box;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    #saveEstimateBtn {
        background: #193b65;
        color: white;
        border: 1px solid #193b65;
    }

    #saveEstimateBtn:active {
        background: #102b4d;
    }
}


/* STEP 269.45 - MOBILE SERVICES AND NOTES */

@media (max-width: 700px) {

    /* SERVICE CATEGORY */
    #estimateCategory {
        display: block;
        width: 100%;
        min-height: 48px;
        margin-top: 8px;
        padding: 10px 12px;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: #ffffff;
        color: #173b65;
        font-size: 15px;
        box-sizing: border-box;
    }

    /* SERVICES CHECKBOX GRID */
    #storefrontServicesList {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        max-width: 100%;
        margin-top: 14px;
    }

    #storefrontServicesList > label {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        min-height: 58px;
        padding: 10px 8px;
        background: #f3f7fc;
        border: 1px solid #d5e2f0;
        border-radius: 9px;
        font-size: 14px;
        line-height: 1.35;
        box-sizing: border-box;
        cursor: pointer;
        overflow-wrap: anywhere;
    }

    #storefrontServicesList input[type="checkbox"] {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        margin: 0;
        accent-color: #193b65;
    }

    #storefrontServicesList > label:has(input:checked) {
        background: #e5f0ff;
        border-color: #7da8d9;
    }

    /* SERVICE NOTES */
    #storefrontEstimateSection .storefront-notes {
        margin-top: 24px !important;
    }

    #storefrontEstimateSection .storefront-notes h3 {
        margin-bottom: 18px;
        color: #102e53;
    }

    #storefrontEstimateSection .storefront-notes > label {
        display: block;
        margin: 16px 0 8px;
        font-size: 14px;
        font-weight: 600;
        color: #173b65;
    }

    #storefrontCustomerNotes,
    #storefrontInternalNotes {
        display: block;
        width: 100%;
        min-height: 110px;
        padding: 12px;
        border: 1px solid #c5d5e8;
        border-radius: 9px;
        background: #ffffff;
        color: #173b65;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.5;
        box-sizing: border-box;
        resize: vertical;
    }

    #storefrontCustomerNotes:focus,
    #storefrontInternalNotes:focus {
        outline: 2px solid #8bb7ea;
        outline-offset: 1px;
    }
}


/* STEP 269.46 - MOBILE SERVICE DETAILS */

@media (max-width: 700px) {

    /* INPUTS AND SELECTS */
    #selectedServicesDetails select,
    #selectedServicesDetails input:not([type="checkbox"]) {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: #ffffff;
        font-family: inherit;
        font-size: 15px;
        box-sizing: border-box;
    }

    /* TAXABLE: CHECKBOX + TEXT */
    #selectedServicesDetails label:has(
        > input.estimateServiceTaxable
    ) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: fit-content;
        margin: 16px 0 !important;
        cursor: pointer;
    }

    #selectedServicesDetails input.estimateServiceTaxable {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px;
        margin: 0 !important;
        flex: 0 0 20px;
        accent-color: #193b65;
    }

    /* SERVICE ACTION BUTTONS */
    #selectedServicesDetails button {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        padding: 11px 12px;
        border: 1px solid #b9d1ed;
        border-radius: 9px;
        background: #eaf3ff;
        color: #173b65;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
        cursor: pointer;
    }

    /* REMOVE BUTTONS */
    #selectedServicesDetails .removeCustomServiceBtn,
    #selectedServicesDetails .removeOptionBtn {
        background: #fff1f2;
        color: #b42332;
        border-color: #fecdd3;
    }
}


/* STEP 269.47 - CHRISTMAS LIGHTS MOBILE DESIGN */
@media (max-width: 700px) {

    #christmasEstimateSection {
        min-width: 0;
    }

    #christmasEstimateSection h2 {
        font-size: 25px;
        margin-bottom: 12px;
    }

    #christmasEstimateSection h3 {
        font-size: 20px;
        margin: 24px 0 14px;
        color: #092b54;
    }

    #christmasEstimateSection > label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
        font-size: 16px;
        line-height: 1.4;
    }

    /* Radio buttons and checkboxes */
    #christmasEstimateSection input[type="checkbox"],
    #christmasEstimateSection input[type="radio"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        accent-color: #19395f;
        margin: 0;
    }

    /* Package selection options */
    #christmasEstimateSection > label:has(
        #christmasInstallation,
        #christmasRemoval,
        #christmasStorage,
        #christmasMaintenance
    ) {
        background: #f1f6fc;
        border: 1px solid #d2e2f5;
        border-radius: 10px;
        padding: 13px;
        box-sizing: border-box;
        cursor: pointer;
    }

    /* Removal date label */
    #christmasEstimateSection label[for="christmasRemovalDate"],
    #christmasEstimateSection label[for="christmasPackagePrice"] {
        display: block;
        margin: 18px 0 8px;
        font-weight: 600;
        color: #092b54;
    }

    /* Date and price fields */
    #christmasRemovalDate,
    #christmasPackagePrice {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 56px;
        padding: 12px 15px;
        border: 1px solid #bfd4ef;
        border-radius: 10px;
        background: white;
        box-sizing: border-box;
        font-size: 16px;
    }

    #christmasRemovalDate {
        margin: 0 0 18px !important;
    }

    /* Customer and internal notes */
    #christmasCustomerNotes,
    #christmasInternalNotes {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 115px;
        padding: 14px;
        border: 1px solid #bfd4ef;
        border-radius: 10px;
        box-sizing: border-box;
        font-size: 16px;
        line-height: 1.5;
        resize: vertical;
    }

    #christmasEstimateSection > p {
        line-height: 1.5;
    }
}


/* STEP 269.34 - SERVICES MOBILE WEEK NAVIGATION */
@media (max-width: 700px) {

    .week-navigation:has(~ #weeklySchedule) {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px !important;
        align-items: stretch;
        width: 100%;
        margin-bottom: 18px;
    }

    .week-navigation:has(~ #weeklySchedule) button {
        min-width: 0;
        width: 100%;
        margin: 0 !important;
        padding: 12px 5px !important;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        white-space: normal;
    }

    .week-navigation:has(~ #weeklySchedule) button:nth-child(-n+3) {
        grid-column: span 2;
        background: #19395f;
        color: white;
        border: 1px solid #19395f;
    }

    .week-navigation:has(~ #weeklySchedule) input[type="date"] {
        grid-column: 1 / 5;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 8px;
        border: 1px solid #cbd5e1;
        border-radius: 9px;
        font-size: 13px;
    }

    .week-navigation:has(~ #weeklySchedule) button:nth-child(4) {
        grid-column: 5 / 7;
        grid-row: 2;
        background: #e8f2ff;
        color: #19395f;
        border: 1px solid #b9d4fa;
    }
}


/* STEP 269.35 - SERVICES MANAGEMENT MOBILE */

@media (max-width: 700px) {

    /* ALL SERVICES FILTER */
    #serviceStatusFilter {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        margin: 14px 0 18px;
        border: 1px solid #c5d5e8;
        border-radius: 9px;
        background: #ffffff;
        color: #173b65;
        font-family: inherit;
        font-size: 15px;
        box-sizing: border-box;
    }

    /* SERVICE CARD CONTROLS */
    #allServicesList select,
    #allServicesList input[type="date"] {
        min-height: 46px;
        max-width: 100%;
        padding: 9px 11px;
        border: 1px solid #c5d5e8;
        border-radius: 9px;
        background: #ffffff;
        color: #173b65;
        font-family: inherit;
        font-size: 14px;
        box-sizing: border-box;
    }

    /* SERVICE CARD BUTTONS */
    #allServicesList button {
        min-height: 46px;
        max-width: 100%;
        padding: 10px 14px;
        border: 1px solid #b8cce2;
        border-radius: 9px;
        background: #edf4fc;
        color: #173b65;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        white-space: normal;
        cursor: pointer;
    }

    #allServicesList button:active {
        background: #dceafa;
    }
}


/* STEP 269.36 - SERVICES MOBILE SCHEDULING CONTROLS */

@media (max-width: 700px) {

    /* Scheduling controls within service cards */
    #allServicesList select {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Reschedule and Schedule Service buttons */
    #allServicesList button {
        border-radius: 9px;
        font-weight: 600;
    }

    /* Date picker */
    #allServicesList input[type="date"] {
        min-width: 0;
        max-width: 100%;
        min-height: 48px;
        border-radius: 9px;
    }
}



/* STEP 269 - SERVICES DATE CONTROLS MOBILE */
@media (max-width: 700px) {

    /* Schedule / Reschedule button */
    .service-item button:has(+ input[type="date"]) {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        max-width: calc(100% - 170px);
        margin: 12px 0 0 0 !important;
        padding: 12px 10px !important;
        font-size: 13px;
        vertical-align: middle;
        white-space: nowrap;
    }

    /* Date picker beside the button */
    .service-item button + input[type="date"] {
        display: inline-block !important;
        width: 145px !important;
        max-width: calc(100% - 175px);
        min-width: 0;
        margin: 12px 0 0 8px !important;
        padding: 10px 5px !important;
        box-sizing: border-box;
        vertical-align: middle;
        font-size: 13px;
    }
}


/* STEP 269.37 - SERVICE SCHEDULING CONTROLS */
@media (max-width: 700px) {

    #allServicesList .service-scheduling-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 12px;
    }

    #allServicesList .service-scheduling-controls button,
    #allServicesList .service-scheduling-controls input[type="date"] {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 48px;
        margin: 0 !important;
        box-sizing: border-box;
    }

    #allServicesList .service-scheduling-controls button {
        align-items: center;
        justify-content: center;
        padding: 10px 6px !important;
        font-size: 13px;
        white-space: normal;
    }

    #allServicesList .service-scheduling-controls input[type="date"] {
        padding: 8px 5px !important;
        font-size: 13px;
    }
}


/* STEP 269.38 - RESCHEDULE CALENDAR */

.reschedule-calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(9, 28, 52, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.reschedule-calendar-panel {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.reschedule-calendar-panel h3 {
    margin: 0 0 12px;
    color: #102e54;
    font-size: 22px;
}

.reschedule-calendar-panel p {
    margin: 0 0 16px;
    color: #526b89;
}

.reschedule-calendar-panel input[type="date"] {
    width: 100%;
    min-height: 54px;
    padding: 12px;
    border: 1px solid #bfd4ef;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    background: white;
}

.reschedule-calendar-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.reschedule-calendar-actions button {
    flex: 1;
    min-height: 46px;
    border-radius: 9px;
    border: 1px solid #bfd4ef;
    font-weight: 600;
    cursor: pointer;
}

.reschedule-calendar-actions button:last-child {
    background: #19395f;
    color: white;
    border-color: #19395f;
}

@media (max-width: 700px) {
    .reschedule-calendar-panel {
        padding: 20px;
    }
}


/* STEP 269.39 - SAVED INVOICES MOBILE DESIGN */

@media (max-width: 700px) {

    .saved-invoice-card {
        padding: 20px !important;
        margin-bottom: 16px !important;
        background: #ffffff !important;
        border: 1px solid #dce8f5 !important;
        border-radius: 20px !important;
        box-shadow: 0 6px 20px rgba(20, 55, 95, 0.05);
        min-width: 0;
        box-sizing: border-box;
    }

    .saved-invoice-card h3 {
        color: #102f56;
        font-size: 21px;
        font-weight: 700;
        margin: 0 0 18px;
        overflow-wrap: anywhere;
    }

    .saved-invoice-card p {
        font-size: 15px;
        line-height: 1.5;
        margin: 0 0 12px;
        overflow-wrap: anywhere;
    }

    .saved-invoice-card label {
        font-size: 15px;
        line-height: 1.5;
    }

    .saved-invoice-card select {
        max-width: 100%;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid #bfd2eb;
        border-radius: 9px;
        background: white;
        font-size: 14px;
        box-sizing: border-box;
    }

    .saved-invoice-card > button {
        max-width: 100%;
        min-height: 44px;
        padding: 11px 14px !important;
        border-radius: 9px !important;
        font-size: 14px;
        font-weight: 600;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .saved-invoice-card > button:disabled {
        opacity: 0.6;
    }

    .saved-invoice-card .saved-invoice-details {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
}

/* STEP 269.40 - MOBILE SAVED INVOICE DETAILS */

@media (max-width: 700px) {

    .saved-invoice-details {
        width: 100%;
        box-sizing: border-box;
        padding: 0 !important;
        margin-top: 20px !important;
        border-top: 1px solid #dce4ed;
        border-radius: 0 !important;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .saved-invoice-details > h4 {
        background: #eef4fb;
        color: #173b65;
        padding: 10px 12px;
        border-radius: 7px;
        font-size: 15px;
        margin: 18px 0 12px !important;
    }

    .saved-invoice-details > p {
        font-size: 14px;
        margin: 8px 0 !important;
        line-height: 1.5;
    }

    .saved-invoice-details > button {
        width: 100%;
        min-height: 42px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px !important;
        margin: 10px 0 !important;
    }

    .saved-invoice-details > p:last-child {
        background: #173b65;
        color: white;
        padding: 12px;
        border-radius: 8px;
        font-size: 17px;
        font-weight: bold;
        text-align: right;
        margin-top: 15px !important;
    }

}

/* STEP 269.41.1 - MOBILE REVENUE REPORTS */

@media (max-width: 700px) {

    /* Month and Year selectors */

    #revenueReports > div:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
    }

    #revenueReports > div:first-child > div {
        min-width: 0;
    }

    #reportMonth,
    #reportYear {
        width: 100%;
        min-width: 0 !important;
        min-height: 46px;
        box-sizing: border-box;
        padding: 10px 12px !important;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        color: #102e50;
        font-size: 14px;
    }

    /* Revenue summary cards */

    #revenueSummary > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #revenueSummary > div:first-child > div {
        padding: 14px 16px !important;
    }

    #revenueSummary > div:first-child h2 {
        margin: 5px 0 0 !important;
        font-size: 24px;
    }

    /* Monthly revenue chart */

    #revenueSummary {
        min-width: 0;
    }

    #revenueSummary > section {
        min-width: 0;
        padding: 14px !important;
    }

    #revenueSummary > section > div:last-child {
        width: 100%;
        overflow-x: auto !important;
    }

    #revenueSummary > section > div:last-child > div {
        min-width: 650px !important;
        justify-content: flex-start;
    }

}

/* STEP 269.41.2 - MOBILE SALES TAX REPORTS */

@media (max-width: 700px) {

    /* Tax filters */

    #salesTaxFilters {
        padding: 16px !important;
    }

    #taxReportYear {
        min-height: 46px;
        padding: 10px 12px !important;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        color: #102e50;
        font-size: 14px;
    }

    /* Select All and Clear buttons */

    #taxSelectAll,
    #taxClearMonths {
        min-height: 44px;
        padding: 10px 12px !important;
        background: #e8f1fc;
        color: #153b65;
        border: 1px solid #b8d0ef;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    /* Month selection */

    #taxMonthSelector {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #taxMonthSelector label {
        min-height: 44px;
        padding: 10px !important;
        box-sizing: border-box;
        font-size: 14px;
    }

    #taxMonthSelector input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin: 0;
        accent-color: #19395f;
    }

    #taxMonthSelector label:has(input:checked) {
        background: #dceafa !important;
    }

    #taxSelectedPeriod {
        font-size: 14px;
        margin-bottom: 0;
    }

    /* Tax summary cards */

    #salesTaxFilters + div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    #salesTaxFilters + div > div {
        padding: 14px 16px !important;
    }

    #taxInvoiced,
    #taxCollected,
    #taxOutstanding {
        font-size: 24px;
        margin: 5px 0 0 !important;
    }

    /* Report tables */

    #monthlyTaxBreakdown,
    #salesPaymentsDetail {
        min-width: 0;
        max-width: 100%;
    }

    #salesTaxReports th,
    #salesTaxReports td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Generate PDF Report */

    #salesTaxReports > div:last-child > button {
        width: 100%;
        min-height: 46px;
        border-radius: 8px;
    }

}

/* STEP 269.41.3 - MOBILE BUSINESS EXPENSES */

@media (max-width: 700px) {

    #businessExpenses {
        min-width: 0;
        max-width: 100%;
    }

    /* Year and category selectors */

    #businessExpenses select,
    #businessExpenses input:not([type="checkbox"]):not([type="radio"]) {
        width: 100% !important;
        min-width: 0;
        min-height: 46px;
        padding: 12px !important;
        border: 1px solid #c5d5e8;
        border-radius: 8px;
        background: white;
        color: #102e50;
        font-family: inherit;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* Select All and Clear */

    #expenseSummary button {
        min-height: 44px;
        padding: 10px 14px;
        background: #e8f1fc;
        color: #153b65;
        border: 1px solid #b8d0ef;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    /* Month selection */

    #expenseSummary label:has(.expense-month-checkbox) {
        min-height: 44px;
        padding: 10px !important;
        box-sizing: border-box;
        font-size: 14px;
    }

    #expenseSummary .expense-month-checkbox {
        width: 18px;
        height: 18px;
        margin: 0;
        flex-shrink: 0;
        accent-color: #19395f;
    }

    #expenseSummary label:has(.expense-month-checkbox:checked) {
        background: #dceafa !important;
    }

    /* Report tables */

    #businessExpenses th,
    #businessExpenses td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Generate Expense PDF */

    #expenseSummary button[id*="PDF"],
    #expenseSummary button[id*="Pdf"] {
        width: 100%;
        min-height: 46px;
        background: #19395f;
        color: white;
        border: none;
        font-weight: 600;
    }

    /* Add Business Expense */

    #expenseForm {
        width: 100%;
        max-width: 100% !important;
        gap: 18px !important;
    }

    #expenseForm label {
        display: flex;
        flex-direction: column;
        gap: 7px;
        color: #102e50;
        font-size: 15px;
        font-weight: 600;
    }

    #expenseForm button[type="submit"] {
        width: 100%;
        min-height: 48px;
        background: #19395f;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
    }

    #cancelExpenseEdit {
        width: 100%;
        min-height: 46px;
        background: #e8f1fc;
        color: #19395f;
        border: 1px solid #b8d0ef;
        border-radius: 8px;
    }

}

/* ==========================================
   EAST END MANAGER - BUSINESS MILEAGE MODAL
   ========================================== */

.mileage-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 35, 65, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.mileage-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.mileage-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.mileage-modal-header h2 {
    margin: 0;
    color: #19395f;
    font-size: 23px;
}

#closeMileageModal {
    background: #eef3f9;
    color: #19395f;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 25px;
    cursor: pointer;
}

#mileageForm {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#mileageForm label {
    color: #19395f;
    font-size: 14px;
    font-weight: 600;
}

#mileageForm input,
#mileageForm textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #19395f;
    font-family: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

#mileageForm input:focus,
#mileageForm textarea:focus {
    outline: 2px solid #1689e8;
    border-color: #1689e8;
}

#mileageForm textarea {
    resize: vertical;
    min-height: 75px;
}

#saveMileageBtn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: #19395f;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#saveMileageBtn:hover {
    background: #24527d;
}

#saveMileageBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#mileageFormError {
    margin: 5px 0;
    font-size: 13px;
}

/* BUSINESS MILEAGE - MOBILE */

@media (max-width: 600px) {

    .mileage-modal {
        padding: 12px;
    }

    .mileage-modal-content {
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 20px;
        border-radius: 14px;
    }

    .mileage-modal-header h2 {
        font-size: 21px;
    }

    #saveMileageBtn {
        min-height: 48px;
    }

}

/* ==========================================
   EAST END MANAGER - BUSINESS MILEAGE REPORT
   ========================================== */

.mileage-report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.mileage-report-filters label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #19395f;
    font-weight: 600;
    font-size: 14px;
}

.mileage-report-filters select {
    min-width: 140px;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    color: #19395f;
    font-family: inherit;
    font-size: 15px;
}

.mileage-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.mileage-summary-card {
    background: #eef3f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dce4ed;
}

.mileage-summary-card strong {
    color: #19395f;
    font-size: 14px;
}

.mileage-summary-card h2 {
    color: #19395f;
    font-size: 30px;
    margin: 12px 0 5px;
}

.mileage-summary-card span {
    color: #64748b;
    font-size: 13px;
}

#mileageMonthlyBreakdown {
    margin: 25px 0;
}

.mileage-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 15px;
}

.mileage-history-header h3 {
    margin: 0;
    color: #19395f;
}

#exportMileageCSV {
    background: #19395f;
    color: white;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#exportMileageCSV:hover {
    background: #24527d;
}

.mileage-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.mileage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mileage-table th,
.mileage-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.mileage-table th {
    background: #eef3f9;
    color: #19395f;
    font-weight: 600;
}

.mileage-table tbody tr:hover {
    background: #f8fafc;
}

.mileage-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mileage-edit-btn,
.mileage-delete-btn {
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mileage-edit-btn {
    background: #e8f2ff;
    color: #19395f;
    border: 1px solid #c8def7;
}

.mileage-delete-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* BUSINESS MILEAGE REPORT - MOBILE */

@media (max-width: 600px) {

    .mileage-report-filters label {
        flex: 1;
        min-width: 110px;
    }

    .mileage-report-filters select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .mileage-summary {
        gap: 10px;
    }

    .mileage-summary-card {
        padding: 15px 12px;
    }

    .mileage-summary-card strong {
        font-size: 12px;
    }

    .mileage-summary-card h2 {
        font-size: 24px;
    }

    .mileage-table {
        min-width: 750px;
    }

}

/* BUSINESS MILEAGE - PDF BUTTON */

#generateMileagePDF {
    background: #19395f;
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

#generateMileagePDF:hover {
    background: #244c78;
}

#generateMileagePDF:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    #generateMileagePDF {
        width: 100%;
    }

}

/* ==========================================
   GOOGLE REVIEWS MODAL
   ========================================== */

.google-reviews-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.google-reviews-content {
    background: #ffffff;
    color: #19395f;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.google-reviews-header h2 {
    margin: 0;
    font-size: 21px;
    color: #19395f;
}

#closeGoogleReviews {
    background: transparent;
    border: none;
    font-size: 30px;
    color: #64748b;
    cursor: pointer;
}

.google-reviews-stars {
    color: #FFD700;
    font-size: 32px;
    letter-spacing: 5px;
    margin-bottom: 12px;
}

.google-reviews-content h3 {
    font-size: 18px;
    margin: 10px 0;
}

.google-reviews-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.google-reviews-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 220px;
    max-width: 100%;
    min-height: 220px;
    box-sizing: border-box;
    padding: 16px;
    margin: 20px auto;
}

.google-reviews-qr img,
.google-reviews-qr canvas {
    max-width: 100%;
    height: auto;
}

.google-reviews-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.google-reviews-actions button {
    width: 100%;
    min-height: 46px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#sendGoogleReviewSMS {
    background: #19395f;
    color: white;
    border: 1px solid #19395f;
}

#sendGoogleReviewSMS:hover {
    background: #244c78;
}

#shareGoogleReviewLink,
#copyGoogleReviewLink {
    background: #ffffff;
    color: #19395f;
    border: 1px solid #19395f;
}

#shareGoogleReviewLink:hover,
#copyGoogleReviewLink:hover {
    background: #eef3f9;
}

#googleReviewsStatus {
    font-size: 13px;
    color: #15803d;
}

.google-reviews-footer {
    margin-top: 18px;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 600px) {

    .google-reviews-modal {
        padding: 12px;
    }

    .google-reviews-content {
        padding: 20px;
        max-height: calc(100dvh - 24px);
    }

}

/* GOOGLE REVIEWS - MODAL SIZE FIX */

.google-reviews-modal {
    box-sizing: border-box;
}

.google-reviews-content {
    min-height: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    flex-shrink: 0;
}

@media (max-width: 600px) {

    .google-reviews-content {
        max-height: calc(100dvh - 24px);
    }

    .google-reviews-qr {
        margin: 14px auto;
    }

}

/* GOOGLE REVIEWS - COMPACT MOBILE DESIGN */

@media (max-width: 600px) {

    .google-reviews-content {
        max-width: 350px;
        padding: 16px;
    }

    .google-reviews-header {
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .google-reviews-header h2 {
        font-size: 19px;
    }

    .google-reviews-stars {
        font-size: 25px;
        letter-spacing: 3px;
        margin-bottom: 6px;
    }

    .google-reviews-content h3 {
        font-size: 16px;
        margin: 6px 0;
    }

    .google-reviews-content p {
        font-size: 12px;
        line-height: 1.4;
        margin: 6px 0;
    }

    .google-reviews-qr {
        width: 170px;
        min-height: 170px;
        padding: 10px;
        margin: 12px auto;
    }

    .google-reviews-actions {
        gap: 7px;
    }

    .google-reviews-actions button {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .google-reviews-footer {
        margin-top: 10px;
        font-size: 11px;
    }

    #googleReviewsStatus:empty {
        display: none;
    }

}