
    :root {
      --bg-main: #f5f7fb;
      --bg-sidebar: #ffffff;
      --bg-card: #ffffff;
      --bg-card-hover: #f8fafc;
      --bg-input: #f8fafc;
      --border: #e5eaf1;
      --text-main: #2d3136;
      --text-muted: #68737d;
      --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
      --primary: #004a96; /* BASF Kurumsal Mavi */
      --primary-hover: #00356e;
      --brand-gradient: linear-gradient(120deg, #004a96 0%, #0072bc 58%, #0ea5e9 100%);
      --surface-gradient: linear-gradient(145deg, #ffffff 0%, #f6faff 100%);
      --danger: #dc2626;
      --warning: #d97706;
      --success: #059669;
      --purple: #6d28d9;
      --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
      --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-sans); }
    body {
      background: radial-gradient(ellipse at 92% 0%, rgba(14, 165, 233, .07), transparent 34%), var(--bg-main);
      color: var(--text-main); display: flex; min-height: 100vh; font-size:14px; line-height:1.5;
    }
    body.auth-required .sidebar, body.auth-required .main-wrapper { display: none; }
    body.auth-required.auth-initializing .auth-gate { display: none; }
    .auth-loading {
      display: none; min-height: 100vh; width: 100%; place-items: center;
      color: var(--text-muted); background: var(--bg-main);
    }
    body.auth-initializing .auth-loading { display: grid; }
    .auth-loading-content { display: grid; justify-items: center; gap: 12px; }
    .auth-loading-spinner {
      width: 32px; height: 32px; border: 3px solid var(--border);
      border-top-color: var(--primary); border-radius: 50%; animation: auth-loading-spin .8s linear infinite;
    }
    @keyframes auth-loading-spin { to { transform: rotate(360deg); } }
    .auth-gate {
      display: none; min-height: 100vh; min-height: 100svh; width: 100%;
      padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
      place-items: center;
      background:
        radial-gradient(ellipse at 88% 8%, rgba(14, 165, 233, .12), transparent 34%),
        radial-gradient(ellipse at 10% 92%, rgba(0, 74, 150, .07), transparent 32%),
        #f3f6fa;
    }
    body.auth-required .auth-gate { display: grid; }
    .auth-card {
      width: min(100%, 440px); padding: 34px 36px 32px;
      border: 1px solid rgba(206, 218, 231, .85); border-radius: 20px;
      background: rgba(255, 255, 255, .98);
      box-shadow: 0 24px 64px rgba(24, 53, 82, .12), 0 3px 10px rgba(24, 53, 82, .04);
    }
    .auth-card .auth-login-brand {
      display: flex; align-items: center; gap: 12px;
      padding: 0 0 17px; margin: 0 0 26px; border-bottom: 1px solid #e6edf4;
    }
    .auth-card .auth-login-brand .brand-icon { width: 44px; height: 44px; flex: 0 0 44px; font-size: 15px; }
    .auth-card .auth-login-brand .brand-text h1 {
      color: #123e65; font-size: 21px; font-weight: 780; letter-spacing: -.035em; line-height: 1.15;
    }
    .auth-card .form-group { margin-bottom: 18px; }
    .auth-card .form-group label { color: #334b61; font-size: 12.5px; }
    .auth-card .form-group input { width: 100%; min-height: 46px; border-radius: 10px; background: #fbfdff; }
    .auth-card .btn { min-height: 48px; margin-top: 3px; border-radius: 10px; font-size: 14px; }
    .auth-card .btn:focus-visible { outline: 3px solid rgba(0, 74, 150, .3); outline-offset: 3px; }
    .auth-error { display: none; margin-bottom: 16px; padding: 11px 13px; border-radius: 9px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }
    @media (max-width: 600px) {
      .auth-card { padding: 30px 28px 27px; }
      .auth-card .auth-login-brand { margin-bottom: 23px; }
    }
    @media (max-width: 480px) {
      .auth-gate { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
      .auth-card { padding: 27px 22px 24px; border-radius: 17px; }
      .auth-card .auth-login-brand { margin-bottom: 21px; }
    }
    @media (max-height: 520px) and (orientation: landscape) {
      .auth-gate { align-items: start; padding-block: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom)); }
      .auth-card { padding: 20px 24px; }
      .auth-card .auth-login-brand { margin-bottom: 16px; }
      .auth-card .form-group { margin-bottom: 10px; }
      .auth-card .form-group input { min-height: 42px; }
      .auth-card .btn { min-height: 42px; }
    }

    /* Ferah Beyaz/Gri Sol Menü */
    .sidebar {
      width: 256px;
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 20px 14px;
      flex-shrink: 0;
      box-shadow: var(--shadow-sm);
      z-index: 10;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
    }
    .sidebar.is-collapsed { display:none; }
    .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 16px; border-bottom: 1px solid #e6edf4; margin-bottom: 16px; }
    .sidebar .brand-icon { width: 44px; height: 44px; font-size: 15px; }
    .brand-text { display: grid; align-items: center; }
    .brand-text h1 { color: #123e65; font-size: 21px; font-weight: 780; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
    .brand-icon {
      width: 38px; height: 38px;
      background: var(--brand-gradient);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, .45); border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
      box-shadow: 0 4px 11px rgba(18, 62, 101, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
    }

    .nav-btn {
      background: transparent;
      border: none;
      color: #475569;
      min-height: 42px;
      padding: 9px 12px;
      border-radius: 9px;
      text-align: left;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 4px;
      transition: background .18s ease, color .18s ease, transform .18s ease;
    }
    .nav-btn:hover { background: linear-gradient(100deg, #f1f5f9 0%, #f8fbff 100%); color: var(--text-main); }
    .nav-btn.active {
      background: linear-gradient(100deg, #e8f2ff 0%, #f4faff 100%);
      color: var(--primary); font-weight: 700; border-left: 4px solid #0072bc;
    }
    .nav-btn-main { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
    .nav-icon { width:17px; height:17px; flex:0 0 17px; color:#64748b; }
    .nav-btn.active .nav-icon { color:var(--primary); }
    .nav-btn-main > span:last-child { line-height:1.35; }
    .nav-group-title { padding: 15px 12px 6px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
    .badge-count { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
    .badge-warn { background: var(--warning); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
    .nav-notification { flex: 0 0 auto; min-width: 20px; text-align: center; }

    .sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #e9dfc9; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
    .sidebar-profile {
      display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 12px;
      padding: 10px 11px; border: 1px solid #dce6ee; border-radius: 12px;
      background: linear-gradient(135deg, #fff 0%, #f6f9fc 100%);
      box-shadow: 0 3px 10px rgba(31, 63, 89, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
    }
    .sidebar-profile-avatar {
      display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center;
      border: 1px solid #c5d8e6; border-radius: 10px;
      background: linear-gradient(145deg, #123e65 0%, #1c5679 100%);
      color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
    }
    .sidebar-profile-copy { min-width: 0; flex: 1; }
    .sidebar-footer-brand { margin: 0 0 3px; color: #173e5c; font-size: 12px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
    .sidebar-footer-meta {
      margin: 0; color: #617589; font-size: 10px; font-weight: 600; line-height: 1.4;
      letter-spacing: 0; overflow-wrap: anywhere;
    }
    .sidebar-logout {
      display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px;
      margin-top: 0; padding: 8px 10px; border: 1px solid #eadfc5; border-radius: 10px;
      background: linear-gradient(135deg, #fffdf8 0%, #fbf7ef 100%); color: #a33f39; font: inherit; font-weight: 700; cursor: pointer;
      transition: background .18s ease, border-color .18s ease;
    }
    .sidebar-logout:hover { background: #fff4f1; border-color: #e8c1b9; }
    .sidebar-logout:focus-visible { outline: 3px solid #fca5a5; outline-offset: 2px; }
    .sidebar-logout-icon { width: 18px; height: 18px; flex: 0 0 18px; }

    /* Main Content */
    .main-wrapper { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
    .topbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      min-height: 70px;
      background: linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      align-items: center;
      gap: 16px;
      box-shadow: var(--shadow-sm);
    }
    .test-stage-banner {
      justify-self:center;
      padding: 8px 14px; border: 1px solid #fecaca; border-radius: 999px;
      background: #fff5f5; color: #c62828; font-size: 12px; font-weight: 850;
      letter-spacing: .12em; white-space: nowrap;
      box-shadow: 0 3px 12px rgba(198, 40, 40, .1);
      animation: test-stage-pulse 1.25s ease-in-out infinite;
    }
    @keyframes test-stage-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .48; }
    }
    @media (prefers-reduced-motion: reduce) {
      .test-stage-banner { animation: none; }
    }
    .topbar-left { display: flex; min-width: 0; align-items: center; gap: 12px; }
    .sidebar-toggle {
      flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center;
      border:1px solid var(--border); border-radius:9px; background:#fff; color:var(--text-main);
      font-size:17px; cursor:pointer; transition:.15s;
    }
    .sidebar-toggle svg { width:18px; height:18px; }
    .sidebar-toggle:hover { background:#eff6ff; border-color:#bfdbfe; color:var(--primary); }
    .role-banner {
      display: inline-flex; min-width: 0; max-width: min(520px, 42vw); align-items: center; min-height: 40px; padding: 7px 13px;
      border: 1px solid #dfc987; border-radius: 11px;
      background: linear-gradient(120deg, #fffdf7 0%, #f8f1df 100%);
      color: #173e5c; box-shadow: 0 3px 10px rgba(89, 68, 28, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    }
    .role-banner-name { font-size: 12px; font-weight: 800; letter-spacing: .025em; white-space: nowrap; }
    .role-banner-divider { width: 1px; height: 19px; margin: 0 11px; background: #cfb66f; }
    .role-banner-title {
      min-width: 0; overflow: hidden; color: #866724; font-size: 12px; font-weight: 750;
      letter-spacing: .025em; text-overflow: ellipsis; white-space: nowrap;
    }
    .topbar-right { display: flex; align-items: center; justify-self: end; gap: 10px; }
    .topbar-date {
      display:inline-flex; min-height:44px; align-items:center; gap:9px; padding:5px 11px;
      border:1px solid #dce8f1; border-radius:11px; background:linear-gradient(135deg, #fff 0%, #f5f9fd 100%);
      color:#334155; white-space:nowrap; box-shadow:0 2px 6px rgba(30, 65, 98, .06);
    }
    .topbar-date-icon { display:grid; width:31px; height:31px; flex:0 0 31px; place-items:center; border-radius:8px; background:#eaf3fa; color:#176a9b; }
    .topbar-date-icon svg { width:17px; height:17px; }
    .topbar-date-copy { display:grid; gap:1px; line-height:1.15; }
    .topbar-date-weekday { color:#718096; font-size:9px; font-weight:750; letter-spacing:.07em; text-transform:uppercase; }
    .topbar-date-day { color:#263f57; font-size:12px; font-weight:800; }

    select, input, textarea {
      background: var(--bg-input);
      border: 1px solid #cbd5e1;
      color: var(--text-main);
      padding: 9px 12px;
      border-radius: 8px;
      font-size: 13px;
      outline: none;
      transition: 0.15s;
    }
    select:focus, input:focus, textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0, 74, 150, 0.12); }
    textarea { resize: vertical; min-height: 68px; font-family: inherit; }

    .btn {
      padding: 9px 15px;
      border-radius: 8px;
      border: none;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: 0.15s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 4px 10px rgba(0, 74, 150, 0.22); }
    .btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
    .btn-success { background: var(--success); color: #fff; }
    .btn-danger { background: var(--danger); color: #fff; }
    .btn-checkin { background: #059669; color: #fff; font-size: 12px; padding: 6px 10px; width: 100%; margin-top: 6px; }
    .btn-maps { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: 4px 8px; font-size: 11px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
    .btn-verify { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; padding: 5px 10px; font-size: 11.5px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
    .btn-outline { background: #ffffff; border: 1px solid #cbd5e1; color: var(--text-main); }
    .btn-outline:hover { background: #f1f5f9; }

    .content { padding: 24px 28px 32px; flex: 1; width: 100%; max-width: 1800px; margin: 0 auto; }
    .page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
    .page-heading h2 { font-size:20px; letter-spacing:-.02em; }
    .page-heading p { color:var(--text-muted); font-size:13px; line-height:1.55; margin-top:5px; }

    /* KPI Row */
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; margin-bottom: 22px; }
    .kpi-grid.admin-overview-kpis { display: block; margin-bottom: 22px; }
    #kpiContainer:empty { display: none; }
    .admin-overview {
      min-width: 0; overflow: hidden; border: 1px solid #dfe7ed; border-radius: 16px;
      background: #fff; box-shadow: 0 8px 22px rgba(24, 53, 82, .075);
    }
    .admin-overview-hero {
      position: relative; display: flex; min-height: 158px; align-items: center; overflow: hidden;
      padding: 24px 30px; border: 0; border-radius: 0;
      background: #173f5d; color: #fff;
    }
    .admin-overview-hero::after {
      position: absolute; right: 0; bottom: 0; left: 0; height: 3px;
      background: linear-gradient(90deg, #d8b15d 0 19%, rgba(216, 177, 93, .12) 19% 100%);
      content: "";
    }
    .admin-overview-copy { position: relative; z-index: 1; max-width: 610px; }
    .admin-overview-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #e6ca8b; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
    .admin-overview-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #e6ca8b; box-shadow: 0 0 0 4px rgba(230, 202, 139, .13); }
    .admin-overview-copy h2 { margin-top: 8px; color: #fff; font-size: 28px; font-weight: 760; letter-spacing: -.035em; line-height: 1.15; }
    .admin-overview-copy p { margin-top: 8px; color: #d3e0e9; font-size: 12.5px; line-height: 1.5; }
    .admin-overview-map-mark { position: absolute; top: 50%; right: 50px; width: 180px; height: 130px; transform: translateY(-50%); color: rgba(224, 237, 246, .42); }
    .admin-overview-stats {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
      overflow: hidden; border-top: 1px solid #e3eaf0; background: #fff;
    }
    .kpi-card {
      background: var(--surface-gradient);
      border: 1px solid var(--border);
      border-left: 4px solid var(--primary);
      border-radius: 12px;
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .kpi-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
    .kpi-val { font-size: 24px; font-weight: 800; margin-bottom: 4px; color: var(--text-main); }
    .kpi-lbl { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; font-weight: 500; }
    .dashboard-stat { display: flex; min-width: 0; min-height: 108px; align-items: center; gap: 13px; padding: 16px 20px; }
    .dashboard-stat + .dashboard-stat { border-left: 1px solid #e8edf1; }
    .dashboard-stat-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 11px; background: #edf4fa; color: #2c6b9b; }
    .dashboard-stat-icon svg { width: 20px; height: 20px; }
    .dashboard-stat-copy { display: grid; min-width: 0; gap: 1px; }
    .dashboard-stat-label { color: #586d80; font-size: 11px; font-weight: 750; line-height: 1.35; }
    .dashboard-stat-value { color: #1d4262; font-size: 29px; font-weight: 780; line-height: 1.05; font-variant-numeric: tabular-nums; }
    .dashboard-stat-detail { color: #8795a2; font-size: 10px; line-height: 1.35; }
    .dashboard-stat--active .dashboard-stat-icon { background: #fff4e5; color: #ac681e; }
    .dashboard-stat--active .dashboard-stat-value { color: #a45e13; }
    .dashboard-stat--completed .dashboard-stat-icon { background: #e9f6f1; color: #228064; }
    .dashboard-stat--completed .dashboard-stat-value { color: #177457; }
    /* Filter Bar & Week Navigator */
    .filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; justify-content: space-between; }
    #view-emp-schedule .filter-bar {
      padding: 16px 20px; border: 1px solid #dfe7ef; border-radius: 14px;
      background: linear-gradient(110deg, #fff 0%, #fbfdff 100%); box-shadow: 0 5px 16px rgba(27, 55, 81, .06);
    }
    .employee-schedule-eyebrow {
      display: block; margin-bottom: 3px; color: #2b719f; font-size: 9px;
      font-weight: 800; letter-spacing: .12em;
    }
    #view-emp-schedule .filter-bar h2 { font-size: 20px; color: #193b58; letter-spacing: -.025em; }
    #view-emp-schedule .filter-bar p { margin-top: 5px; color: #718196; font-size: 11.5px; }
    .employee-week-controls {
      display: grid; grid-template-columns: max-content minmax(138px, 150px) minmax(145px, 160px);
      align-items: end; gap: 10px; padding: 8px; border: 1px solid #e3ebf2;
      border-radius: 14px; background: linear-gradient(145deg, #f8fbfd 0%, #f1f6fa 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    }
    .employee-week-jump,
    .employee-mobile-day-picker,
    .employee-schedule-filter {
      display: grid; min-width: 0; gap: 5px; color: #597187; font-size: 10px;
      font-weight: 750; letter-spacing: .01em;
    }
    .employee-week-jump input,
    .employee-mobile-day-picker select,
    .employee-schedule-filter select {
      min-height: 40px; padding: 0 11px; border: 1px solid #d5e0e9; border-radius: 9px;
      background: #fff; color: #203f5b; font: inherit; font-size: 11px; font-weight: 650;
      box-shadow: 0 1px 2px rgba(27,55,81,.04);
      transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
    }
    .employee-week-jump input:focus,
    .employee-mobile-day-picker select:focus,
    .employee-schedule-filter select:focus {
      border-color: #77a9cc; outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(48, 119, 167, .12);
    }
    .employee-schedule-tools { display: flex; align-items: end; gap: 8px; }
    .employee-mobile-day-picker { display: none; }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher,
    #view-weekly .week-switcher-bar.admin-week-switcher {
      gap: 8px; padding: 0; border: 0; box-shadow: none; background: transparent; flex-wrap: nowrap;
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher {
      gap: 4px; padding: 4px; border: 1px solid #e0e8f0; border-radius: 12px;
      background: #f5f8fb; box-shadow: none;
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button {
      width: 36px; min-height: 36px; flex-basis: 36px; border-color: transparent; border-radius: 9px;
      background: transparent; color: #49657d;
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button:hover {
      border-color: #c7dceb; background: #fff; color: #15598a; box-shadow: 0 2px 6px rgba(32,76,108,.08);
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
      min-height: 38px; gap: 7px; padding: 4px 8px; border-color: #e3ebf2;
      border-radius: 9px; background: #fff; box-shadow: none;
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-icon {
      width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px;
    }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-text { font-size: 12px; }
    #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-badge-tag {
      margin: 0; padding: 4px 7px; border: 1px solid #d8e9f7;
      background: #eaf4fc; color: #1d5e8b; font-size: 9px;
    }
    .filter-group { display: flex; flex-wrap: wrap; gap: 7px; }

    .week-switcher-bar {
      display: flex; align-items: center; gap: 8px;
      background: #ffffff; border: 1px solid var(--border);
      padding: 6px 10px; border-radius: 10px; box-shadow: var(--shadow-sm);
    }
    .week-range-display {
      display: flex; min-width: 0; min-height: 46px; flex: 1 1 auto; align-items: center; gap: 10px;
      padding: 6px 12px; border: 1px solid #dfe8f1; border-radius: 12px;
      background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
      box-shadow: 0 2px 6px rgba(28, 62, 92, .05);
    }
    .week-range-icon {
      display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center;
      border: 1px solid #dce9f4; border-radius: 10px; background: #edf5fb; color: #23658f;
    }
    .week-range-icon svg { width: 16px; height: 16px; }
    .week-label-box {
      display: flex; min-width: 0; align-items: center; gap: 9px;
      padding: 0; text-align: left; white-space: nowrap; color: #203d57; font-size: 14px; font-weight: 750;
    }
    .week-range-text { color: #203d57; font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
    .week-range-display .week-badge-tag { margin: 0; padding: 4px 8px; background: #e7f0ff; color: #1d5ca7; font-size: 10.5px; white-space: nowrap; }
    .week-step-button,
    .week-reset-button {
      display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px;
      border: 1px solid #d9e4ed; border-radius: 11px; background: #ffffff; color: #38536a;
      font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
      transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
    }
    .week-step-button { width: 42px; flex: 0 0 42px; padding: 0; }
    .week-step-button svg { width: 17px; height: 17px; }
    .week-reset-button { padding: 0 13px; border-color: #cfe0ee; background: #edf5fb; color: #185b88; white-space: nowrap; }
    .week-reset-button svg { width: 16px; height: 16px; }
    .week-step-button:hover { border-color: #abc7dd; background: #f3f8fc; color: #15598a; }
    .week-reset-button:hover { border-color: #b7d0e3; background: #e4f0f8; }
    .week-step-button:focus-visible,
    .week-reset-button:focus-visible { outline: 3px solid rgba(57, 130, 183, .2); outline-offset: 2px; }
    .week-reset-button[hidden] { display: none; }
    .week-badge-tag {
      font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px;
      background: #dbeafe; color: #1e40af; margin-left: 6px;
    }
    @media (max-width: 1050px) {
      .employee-week-controls {
        width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }
      #view-emp-schedule .week-switcher-bar.employee-week-switcher { grid-column: 1 / -1; }
      .employee-week-jump { grid-column: 1; }
      .employee-schedule-tools { grid-column: 2; justify-content: flex-end; }
    }
    @media (max-width: 700px) {
      #view-emp-schedule .week-switcher-bar.employee-week-switcher,
      #view-weekly .week-switcher-bar.admin-week-switcher { width: 100%; justify-content: flex-start; }
      .week-range-display { flex: 1 1 auto; }
    }
    @media (max-width: 480px) {
      #view-emp-schedule .week-switcher-bar.employee-week-switcher,
      #view-weekly .week-switcher-bar.admin-week-switcher {
        display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) 40px; grid-template-rows: auto auto; gap: 7px; width: 100%;
      }
      #view-emp-schedule .week-switcher-bar.employee-week-switcher {
        display: flex; grid-template-columns: none; grid-template-rows: none; align-items: center; gap: 4px; padding: 4px;
      }
      #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
        grid-column: auto; grid-row: auto; min-height: 38px; flex: 1 1 0; gap: 5px; padding: 4px 6px;
      }
      #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button,
      #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-reset-button {
        width: 40px; min-height: 44px; flex-basis: 40px;
      }
      #view-emp-schedule .week-step-button[aria-label="Önceki hafta"],
      #view-emp-schedule .week-step-button[aria-label="Sonraki hafta"],
      #view-emp-schedule .week-reset-button { grid-column: auto; grid-row: auto; }
      .week-range-display { grid-column: 1 / -1; grid-row: 1; min-height: 42px; gap: 7px; padding: 5px 8px; }
      .week-range-icon { width: 29px; height: 29px; flex-basis: 29px; }
      .week-step-button { width: 40px; min-height: 40px; }
      .week-step-button[aria-label="Önceki hafta"] { grid-column: 1; grid-row: 2; }
      .week-switcher-bar:has(.week-reset-button:not([hidden])) .week-step-button[aria-label="Önceki hafta"] { grid-column: 2; }
      .week-step-button[aria-label="Sonraki hafta"] { grid-column: 4; grid-row: 2; }
      .week-reset-button { grid-column: 1; grid-row: 2; width: 40px; min-height: 40px; flex: 0 0 40px; padding: 0; }
      .week-reset-button span { display: none; }
      .week-label-box { gap: 6px; }
      .week-range-text { font-size: 12.5px; }
      .week-range-display .week-badge-tag { padding: 3px 6px; font-size: 9.5px; }
    }

    .employee-agenda {
      margin-bottom: 18px; padding: 12px; overflow-x: auto;
      border:1px solid #e2e8f0; border-radius:14px; background:#fff;
      scrollbar-color: #b7cbdc #edf3f7; scrollbar-width: thin;
      container-name:employee-agenda; container-type:inline-size;
    }
    .employee-schedule-view-toolbar { display:flex; align-items:center; justify-content:flex-end; gap:9px; margin-bottom:11px; }
    .employee-schedule-view-label { color:#718397; font-size:10.5px; font-weight:700; }
    .employee-schedule-view-toggle { display:inline-flex; gap:3px; padding:3px; border:1px solid #e0e8f0; border-radius:10px; background:#f3f7fa; }
    .employee-schedule-view-button {
      display:inline-flex; min-height:32px; align-items:center; justify-content:center; gap:6px; padding:6px 10px;
      border:1px solid transparent; border-radius:7px; background:transparent; color:#5b7185;
      font:inherit; font-size:10.5px; font-weight:700; cursor:pointer;
    }
    .employee-schedule-view-button svg { width:14px; height:14px; }
    .employee-schedule-view-button:hover { background:#fff; color:#245d83; }
    .employee-schedule-view-button.is-selected { border-color:#d6e4ef; background:#fff; color:#15598a; box-shadow:0 1px 3px rgba(15,36,58,.08); }
    .employee-schedule-view-button:focus-visible { outline:3px solid rgba(57,130,183,.22); outline-offset:2px; }
    .employee-week-board {
      display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
      min-width: 1190px; gap: 12px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
      gap:0; overflow:hidden; border:1px solid #dfe5ec; border-radius:12px; background:#fff;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column {
      min-height:244px; border:0; border-right:1px solid #e6ebf0; border-radius:0;
      background:#fff; box-shadow:none;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column:last-child { border-right:0; }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today {
      border-color:transparent; box-shadow:inset 0 0 0 1px #8ab7d7;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column-header {
      min-height:68px; padding:9px 8px; border-bottom-color:#e6ebf0; background:#fff;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today .employee-day-column-header {
      background:#f4f9fd;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-heading { gap:4px; }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-heading h3 { font-size:12px; }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-date {
      padding:3px 6px; border:0; border-radius:999px; background:#f1f3f4; font-size:9.5px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today .employee-day-date {
      background:#1a73e8; color:#fff;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-total {
      min-height:24px; gap:3px; padding:0 6px; border:0; background:#f5f7f8; font-size:9px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-total strong {
      min-width:16px; height:16px; background:#e9eef3; font-size:9px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-task-list { gap:7px; padding:8px 6px; }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-empty {
      min-height:82px; margin:7px 6px; padding:10px 6px; border-color:#edf0f2;
      background:#fafbfc;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-footer { padding:0 6px 7px; }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-plan {
      min-height:32px; border-color:transparent; background:transparent; color:#5f6b75; font-size:10px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-day-plan:hover {
      border-color:#dbe3eb; background:#f6f8fa; color:#1a73e8;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-task-time {
      min-height:20px; padding:2px 5px; border-radius:5px; font-size:10px;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-task-main .type-badge {
      display:inline-flex; max-width:100%; align-items:center; padding:4px 7px; border-radius:8px;
      font-size:9px; line-height:1.25; overflow-wrap:anywhere; white-space:normal;
    }
    #view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-top {
      row-gap:6px; margin-bottom:8px; padding-bottom:7px; border-bottom:1px solid #e6edf3;
    }
    #view-emp-schedule.is-vertical-view .employee-agenda { overflow-x: visible; }
    #view-emp-schedule.is-vertical-view .employee-week-board {
      min-width:0; grid-template-columns:minmax(0, 1fr); gap:10px;
    }
    #view-emp-schedule.is-vertical-view .employee-day-column {
      display:flex; min-height:0; flex-direction:column; border:1px solid #e2e8f0;
      border-radius:11px; background:#fff; box-shadow:none;
    }
    #view-emp-schedule.is-vertical-view .employee-day-column.is-today { border-color:#8ab7d7; }
    #view-emp-schedule.is-vertical-view .employee-day-column-header {
      min-height:58px; flex-direction:row; align-items:center; justify-content:space-between;
      padding:9px 12px; border-bottom:1px solid #e6ebf0; background:#f8fafb;
    }
    #view-emp-schedule.is-vertical-view .employee-day-heading { display:flex; align-items:center; gap:10px; }
    #view-emp-schedule.is-vertical-view .employee-day-heading h3 { font-size:14px; }
    #view-emp-schedule.is-vertical-view .employee-day-date { border:0; background:#eef2f5; font-size:11px; }
    #view-emp-schedule.is-vertical-view .employee-day-total { font-size:10.5px; }
    #view-emp-schedule.is-vertical-view .employee-day-column.is-today .employee-day-column-header {
      background:#f2f8fc;
    }
    #view-emp-schedule.is-vertical-view .employee-day-total { display:none; }
    #view-emp-schedule.is-vertical-view .employee-day-plan--header {
      display:inline-flex; width:auto; min-width:132px; min-height:34px; padding:6px 12px;
      border:1px solid transparent; border-radius:8px; background:var(--brand-gradient);
      color:#fff; font-size:11.5px; font-weight:750; box-shadow:0 3px 8px rgba(0,74,150,.18);
    }
    #view-emp-schedule.is-vertical-view .employee-day-plan--header:hover {
      filter:brightness(1.06); transform:translateY(-1px);
    }
    #view-emp-schedule.is-vertical-view .employee-day-task-list {
      grid-template-columns:minmax(0, 1fr); align-content:start; gap:6px; padding:8px 10px;
    }
    #view-emp-schedule.is-vertical-view .employee-day-task-list .employee-schedule-task {
      display:grid; grid-template-columns:minmax(0, 1fr) minmax(235px, 30%);
      align-items:center; gap:16px; padding:10px 12px 10px 15px; border-radius:10px;
    }
    #view-emp-schedule.is-vertical-view .employee-task-main {
      display:grid; min-width:0; grid-template-columns:minmax(112px, 128px) minmax(0, 1fr);
      grid-template-areas:"meta title" "meta location" "meta status"; align-items:center; gap:3px 14px;
    }
    #view-emp-schedule.is-vertical-view .employee-task-main .task-top {
      grid-area:meta; display:flex; flex-direction:column; align-items:flex-start;
      gap:5px; margin:0;
    }
    #view-emp-schedule.is-vertical-view .employee-task-time { font-size:11.5px; }
    #view-emp-schedule.is-vertical-view .employee-task-main .type-badge { font-size:10px; }
    #view-emp-schedule.is-vertical-view .employee-task-main .employee-task-status {
      grid-area:status; margin-top:3px; font-size:10px; line-height:1.25;
    }
    #view-emp-schedule.is-vertical-view .employee-task-main .task-title { grid-area:title; margin:0; font-size:13px; }
    #view-emp-schedule.is-vertical-view .employee-task-main .task-sub { grid-area:location; font-size:11px; }
    #view-emp-schedule.is-vertical-view .employee-task-actions {
      grid-template-columns:minmax(0, 1fr); align-items:center; gap:5px;
    }
    #view-emp-schedule.is-vertical-view .employee-task-links { grid-column:1; }
    #view-emp-schedule.is-vertical-view .employee-task-actions .arrival-badge {
      grid-column:1; display:flex; min-height:30px; align-items:center; justify-content:space-between;
      gap:8px; padding:5px 8px; border-radius:7px; text-align:left;
    }
    #view-emp-schedule.is-vertical-view .employee-task-links .btn-maps,
    #view-emp-schedule.is-vertical-view .employee-task-detail-link {
      min-height:34px; border-radius:7px; font-size:11px;
    }
    #view-emp-schedule.is-vertical-view .employee-task-actions .btn-checkin { min-height:34px; font-size:11px; }
    #view-emp-schedule.is-vertical-view .employee-day-empty {
      display:flex; min-height:0; flex-direction:row; align-items:center; justify-content:flex-start;
      gap:8px; margin:8px 10px; padding:9px 12px; border:0; border-left:2px solid #dce5ed;
      border-radius:0; background:#fafbfc; text-align:left;
    }
    #view-emp-schedule.is-vertical-view .employee-day-empty span { text-align:left; }
    #view-emp-schedule.is-vertical-view .employee-day-footer { display:none; }
    .employee-day-plan--header { display:none; }
    @container employee-agenda (min-width:1120px) {
      #view-emp-schedule:not(.is-vertical-view) .employee-week-board { min-width:0; }
    }
    .employee-day-column {
      display: flex; min-width: 0; min-height: 190px; flex-direction: column; overflow: hidden;
      border: 1px solid #dbe3ec; border-radius: 11px; background: #fff;
      box-shadow: var(--shadow-sm);
    }
    .employee-day-column.is-today { border-color: #75a8d1; box-shadow: 0 0 0 2px rgba(7, 87, 162, .08); }
    .employee-day-column-header {
      position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
      min-height: 70px; padding: 10px 12px; border-bottom: 1px solid #e3ebf3;
      background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    }
    .employee-day-column.is-today .employee-day-column-header {
      border-bottom-color: #d6e7f6; background: linear-gradient(180deg, #f3f9ff 0%, #eaf4fd 100%);
    }
    .employee-day-column.is-today .employee-day-column-header::before {
      position: absolute; inset: 0 auto 0 0; width: 3px; background: #3280b9; content: "";
    }
    .employee-day-heading { display: grid; gap: 5px; min-width: 0; }
    .employee-day-heading h3 {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
      color: #183b5b; font-size: 14.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
    }
    .employee-day-date {
      display: inline-flex; width: fit-content; align-items: center; padding: 2px 6px;
      border: 1px solid #e5edf5; border-radius: 5px; background: rgba(255,255,255,.75);
      color: #687b8f; font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums;
    }
    .employee-day-column.is-today .employee-day-date { border-color: #d8e9f8; color: #356a96; }
    .employee-day-today-label {
      padding: 3px 7px; border: 1px solid #cfe3f5; border-radius: 99px;
      background: #fff; color: #1c639c; font-size: 9px; font-weight: 750;
    }
    .employee-day-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
    .employee-day-total {
      display: inline-flex; min-height: 29px; align-items: center; gap: 5px; padding: 0 9px;
      border: 1px solid #dbe7f3; border-radius: 99px; background: #fff; color: #526b83;
      font-size: 10px; font-weight: 650; white-space: nowrap;
    }
    .employee-day-total strong {
      display: grid; min-width: 18px; height: 18px; place-items: center;
      border-radius: 99px; background: #edf3f8; color: #49657e;
      font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
    }
    .employee-day-total.has-visits { border-color: #c8dff1; background: #f0f7fd; color: #2f5c7e; }
    .employee-day-total.has-visits strong { background: #d9ebf9; color: #145a93; }
    .employee-day-total.is-empty { border-color: #e1e8ef; background: #f8fafc; color: #66788a; }
    .employee-day-total.is-empty strong { background: #e9eef3; color: #617386; }
    .employee-day-plan {
      display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: center; gap: 6px;
      border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--primary);
      font-size: 12px; font-weight: 700; cursor: pointer;
    }
    .employee-day-footer { margin-top: auto; padding: 0 10px 10px; }
    .employee-day-plan span { font-size: 16px; font-weight: 500; line-height: 1; }
    .employee-day-plan:hover { border-color: var(--primary); background: #eff6ff; }
    .employee-day-plan:focus-visible, .employee-task-detail-link:focus-visible { outline: 3px solid rgba(0, 74, 150, .25); outline-offset: 2px; }
    .employee-day-task-list { display: grid; align-content: start; gap: 12px; padding: 10px; }
    .employee-day-task-list .employee-schedule-task {
      position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 7px;
      padding: 9px 9px 9px 12px; border: 1px solid #e2e8ef; border-radius: 8px;
      background: #f8fbff; box-shadow:none;
    }
    .employee-day-task-list .employee-schedule-task::before {
      position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 0 3px 3px 0;
      background: #cbd5e1; content: "";
    }
    .employee-day-task-list .employee-schedule-task:has(.st-completed) { border-color:#d3e8da; background:#f1faf4; }
    .employee-day-task-list .employee-schedule-task:has(.st-in-progress) { border-color:#cfe0f4; background:#f1f7fd; }
    .employee-day-task-list .employee-schedule-task:has(.st-planned) { border-color:#e0e5ea; background:#f7f9fa; }
    .employee-day-task-list .employee-schedule-task:has(.st-pending) { border-color:#f0e2c4; background:#fffbf2; }
    .employee-day-task-list .employee-schedule-task.is-overdue {
      border-color: #fecaca; background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
    }
    .employee-day-task-list .employee-schedule-task.is-overdue::before { background: #dc2626; }
    .employee-task-main .employee-task-status.st-overdue { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
    .employee-day-task-list .employee-schedule-task:has(.st-completed)::before { background: #20a36c; }
    .employee-day-task-list .employee-schedule-task:has(.st-planned)::before { background: #8092a7; }
    .employee-day-task-list .employee-schedule-task:has(.st-in-progress)::before { background: #3478c8; }
    .employee-day-task-list .employee-schedule-task:has(.st-pending)::before { background: #d19a2b; }
    .employee-task-main { min-width: 0; }
    .employee-task-main .task-top {
      display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "time" "type";
      align-items: center; gap: 5px 7px; margin-bottom: 6px;
    }
    .employee-task-time {
      display: inline-flex; width: fit-content; min-height: 21px; align-items: center; padding: 2px 6px;
      border: 1px solid #dbeafe; border-radius: 5px; background: #fff;
      color: #155e9a; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
    }
    .employee-task-main .task-top .employee-task-time { grid-area: time; }
    .employee-task-main .type-badge {
      grid-area: type; justify-self: start; max-width: 100%; margin: 0; padding: 3px 7px;
      border-radius: 999px; font-size: 9.5px; line-height: 1.2; overflow-wrap: anywhere;
    }
    .employee-task-main .employee-task-type-tags {
      grid-area: type; display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 4px;
    }
    .employee-task-main .employee-task-type-tags .type-badge { max-width: 100%; }
    .technical-issue-badge, .technical-issue-chronic-badge {
      display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px;
      border: 1px solid #cfe4ee; border-radius: 999px; background: #eff8fb;
      color: #155e75; font-size: 9px; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere;
    }
    .technical-issue-chronic-badge {
      border-color: #f3c2a9; background: #fff3ec; color: #a34116;
    }
    .employee-task-main .employee-task-status {
      display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 5px;
      margin: 4px 0 0; padding: 4px 8px; border: 1px solid transparent; border-radius: 7px;
      font-size: 9px; font-weight: 750; line-height: 1.2; white-space: normal;
    }
    .employee-task-main .employee-task-status::before {
      width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; content: "";
    }
    .employee-task-main .task-title {
      display: -webkit-box; overflow: hidden; margin: 0 0 3px;
      font-size: 12.5px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere;
      -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    }
    .employee-task-main .task-sub {
      position: relative; overflow: hidden; margin-bottom: 0; padding-left: 11px;
      color: #718096; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
    }
    .employee-task-main .task-sub::before {
      position: absolute; top: .48em; left: 1px; width: 5px; height: 5px;
      border-radius: 50%; background: #91a4b7; content: "";
    }
    .employee-task-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; }
    .employee-task-actions .btn-checkin {
      grid-column: 1; width: 100%; min-height: 35px; margin: 0; border: 1px solid #059669;
      border-radius: 8px; padding: 5px 3px; font-size: 11px; font-weight: 750; white-space: nowrap;
      box-shadow: 0 2px 4px rgba(5, 150, 105, .13);
    }
    .employee-task-actions .arrival-badge { grid-column: 1 / -1; margin: 0; padding: 8px 9px; border-radius: 9px; text-align: left; line-height: 1.35; }
    .employee-task-links { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .employee-task-actions:has(.arrival-badge) .employee-task-links { grid-column: 1 / -1; }
    .employee-task-links .btn-maps, .employee-task-detail-link {
      display: flex; min-width: 0; min-height: 35px; align-items: center; justify-content: center;
      padding: 5px 4px; border: 1px solid #d7e2ec; border-radius: 8px;
      background: #fff; color: #38536a; font-size: 10.5px; font-weight: 700;
      line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
    }
    .employee-task-links .btn-maps { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
    .employee-task-detail-link { cursor: pointer; }
    .employee-task-links .btn-maps:hover { border-color: #6ee7b7; background: #d1fae5; }
    .employee-task-detail-link:hover { border-color: #93c5fd; background: #eff6ff; color: var(--primary); }
    .employee-task-actions .btn-checkin:focus-visible,
    .employee-task-links .btn-maps:focus-visible,
    .employee-task-detail-link:focus-visible { outline: 3px solid rgba(57, 130, 183, .24); outline-offset: 2px; }
    .employee-day-task-list .employee-schedule-task:hover {
      transform: translateY(-1px); border-color: #c7d7e5; background: #fff;
      box-shadow: 0 3px 9px rgba(32, 61, 87, .08);
    }
    .employee-day-empty {
      display: grid; flex: 1; min-height: 105px; align-content: center; justify-items: center;
      gap: 5px; margin: 10px; padding: 12px;
      border: 1px dashed #d3dfeb; border-radius: 10px; background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
    }
    .employee-day-empty strong { color: #637a91; font-size: 11px; font-weight: 750; }
    .employee-day-empty span { color: #8999a8; font-size: 10px; line-height: 1.4; text-align: center; }
    #empBottomInsights.emp-bottom-grid {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
      align-items: start; gap: 14px; margin-bottom: 16px;
    }
    #empBottomInsights.emp-bottom-grid.is-todo-only { grid-template-columns: minmax(0, 1fr); }
    .day-col-count {
      min-width: 22px; text-align: center; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 99px;
      background: #eff6ff; color: #1e40af;
    }
    .weekly-todo-description { color: var(--text-muted); font-size: 12px; }
    .weekly-todo-form {
      display: grid; grid-template-columns: minmax(0, 1fr) auto;
      align-items: center; gap: 8px; padding: 12px; border: 1px solid #dce6f0;
      border-radius: 10px; background: #f8fafc;
    }
    .weekly-todo-form input { min-width: 0; width: 100%; }
    .weekly-todo-list { display: grid; gap: 7px; }
    .weekly-todo-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto;
      align-items: center; gap: 9px; padding: 9px 10px;
      border: 1px solid var(--border); border-radius: 9px; background: #fff;
    }
    .weekly-todo-row.is-done { border-color: #bbebd1; background: #f3fbf6; }
    .weekly-todo-check { display: flex; min-width: 0; align-items: center; gap: 9px; cursor: pointer; }
    .weekly-todo-check input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #059669; }
    .weekly-todo-check span { min-width: 0; overflow-wrap: anywhere; color: var(--text-main); font-size: 12.5px; font-weight: 650; }
    .weekly-todo-row.is-done .weekly-todo-check span { color: var(--text-muted); text-decoration: line-through; }
    .weekly-todo-delete {
      padding: 7px 9px; border: 1px solid #e2e8f0; border-radius: 8px;
      background: #fff; color: #64748b; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
    }
    .weekly-todo-delete:hover { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
    .weekly-todo-toggle {
      align-self: flex-start; min-height: 32px; padding: 5px 9px; border: 1px solid #d7e2ec;
      border-radius: 8px; background: #fff; color: #315a7a; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
    }
    .weekly-todo-toggle:hover { border-color: #a9c5dc; background: #f3f8fc; }
    .weekly-todo-toggle:focus-visible { outline: 3px solid rgba(57, 130, 183, .24); outline-offset: 2px; }
    .weekly-todo-empty, .weekly-todo-setup { padding: 11px; border-radius: 9px; background: #f8fafc; color: var(--text-muted); font-size: 12px; }
    .weekly-todo-setup { border: 1px solid #fde68a; background: #fffbeb; color: #854d0e; }
    .weekly-todo-setup a { margin-left: 4px; color: #1d4ed8; font-weight: 700; }

    @media (max-width: 900px) {
      #empBottomInsights.emp-bottom-grid { grid-template-columns: minmax(0, 1fr); }
    }

    @media (max-width: 640px) {
      #view-emp-schedule.view-section.active { display: flex; flex-direction: column; }
      #view-emp-schedule > .filter-bar { order: 0; width: 100%; }
      #view-emp-schedule > .employee-agenda { order: 2; width: 100%; }
      #view-emp-schedule > #empBottomInsights { order: 3; width: 100%; }
      .employee-agenda { padding: 12px; overflow-x: visible; }
      .employee-week-board { min-width: 0; grid-template-columns: minmax(0, 1fr); }
      .employee-week-controls { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
      #view-emp-schedule .week-switcher-bar.employee-week-switcher { grid-column: 1 / -1; }
      .employee-week-jump { grid-column: 1 / -1; }
      .employee-week-jump input { width: 100%; }
      .employee-schedule-tools { grid-column: 1 / -1; display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: stretch; }
      .employee-mobile-day-picker { display: grid; min-width: 0; flex: 1 1 0; }
      .employee-schedule-filter { min-width: 0; flex: 1 1 0; }
      .employee-mobile-day-picker select,
      .employee-schedule-filter select { width: 100%; }
      .employee-day-column:not(.is-selected-day) { display: none; }
      #view-emp-schedule.is-vertical-view .employee-day-column { display:flex; }
      #view-emp-schedule.is-vertical-view .employee-mobile-day-picker { display:none; }
      #view-emp-schedule.is-vertical-view .employee-schedule-tools { grid-template-columns:minmax(0, 1fr); }
      #view-emp-schedule.is-vertical-view .employee-day-column {
        display:flex; flex-direction:column;
      }
      #view-emp-schedule.is-vertical-view .employee-day-column-header {
        min-height:58px; flex-direction:row; align-items:center; justify-content:space-between;
        border-right:0; border-bottom:1px solid #e3ebf3;
      }
      #view-emp-schedule.is-vertical-view .employee-day-task-list { grid-template-columns:minmax(0, 1fr); padding:8px; }
      #view-emp-schedule.is-vertical-view .employee-day-task-list .employee-schedule-task {
        grid-template-columns:minmax(0, 1fr); gap:8px; padding:10px 10px 10px 13px;
      }
      #view-emp-schedule.is-vertical-view .employee-task-main {
        grid-template-columns:minmax(0, 1fr); grid-template-areas:"meta" "title" "location" "status"; gap:5px;
      }
      #view-emp-schedule.is-vertical-view .employee-task-main .task-top {
        flex-direction:row; flex-wrap:wrap; align-items:center; gap:5px;
      }
      #view-emp-schedule.is-vertical-view .employee-day-empty {
        flex-direction:column; justify-content:center; gap:5px; margin:8px; text-align:center;
      }
      #view-emp-schedule.is-vertical-view .employee-day-empty span { text-align:center; }
      #view-emp-schedule.is-vertical-view .employee-day-footer { padding:0 10px 10px; }
      .employee-week-jump input,
      .employee-mobile-day-picker select,
      .employee-schedule-filter select { min-height: 44px; }
      .employee-task-actions .btn-checkin,
      .employee-task-links .btn-maps,
      .employee-task-detail-link,
      .employee-day-plan { min-height: 44px; }
      .weekly-todo-form input,
      .weekly-todo-form .btn,
      .weekly-todo-delete { min-height: 44px; }
      .insight-card .dealer-priority-grid { grid-template-columns: minmax(0, 1fr); }
      .weekly-todo-form { grid-template-columns: minmax(0, 1fr) auto; }
      .weekly-todo-row { grid-template-columns: minmax(0, 1fr) auto; }
      .weekly-todo-check { grid-column: 1; }
    }

    /* Bottom Panels & Chart Cards */
    .emp-bottom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
    .charts-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; margin-bottom: 20px; }
    .chart-card {
      background: #ffffff; border: 1px solid var(--border); border-radius: 12px;
      padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    }
    .chart-card h3 { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
    .chart-box { position: relative; height: 240px; width: 100%; }

    .admin-analytics-heading {
      display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; padding:20px 24px;
      border:1px solid #d5e3ef; border-radius:14px;
      background:linear-gradient(118deg, #12395b 0%, #075985 62%, #0879a8 100%);
      box-shadow:0 6px 18px rgba(15, 46, 74, .11);
    }
    .admin-analytics-controls { display:flex; flex:0 0 auto; align-items:flex-end; gap:9px; }
    .admin-analytics-period-control { display:grid; min-width:140px; gap:4px; color:#d7e8f5; font-size:9px; font-weight:750; }
    .admin-analytics-period-control select {
      width:100%; min-height:40px; padding:0 10px; border:1px solid rgba(255,255,255,.55);
      border-radius:9px; background:#fff; color:#24435f; font:inherit; font-size:11px;
    }
    .admin-analytics-title { min-width:0; }
    .admin-analytics-eyebrow { color:#b9ddf5; font-size:9px; font-weight:800; letter-spacing:.12em; }
    .admin-analytics-heading h2 { margin:3px 0 4px; color:#fff; font-size:21px; letter-spacing:-.025em; }
    .admin-analytics-heading p { margin:0; color:#d7e8f5; font-size:12px; }
    .admin-analytics-export { flex:0 0 auto; min-height:40px; border-color:rgba(255,255,255,.55); color:#173d5c; font-weight:700; }
    .admin-analytics-summary { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:11px; margin-bottom:15px; }
    .admin-analytics-metric {
      display:grid; min-width:0; gap:4px; padding:13px 15px; border:1px solid var(--border); border-top:3px solid #1672b8;
      border-radius:11px; background:#fff; box-shadow:var(--shadow-sm);
    }
    .admin-analytics-metric:nth-child(2) { border-top-color:#059669; }
    .admin-analytics-metric:nth-child(3) { border-top-color:#d9902f; }
    .admin-analytics-metric:nth-child(4) { border-top-color:#6d55b5; }
    .admin-analytics-metric span { color:#64788b; font-size:10px; font-weight:700; line-height:1.35; }
    .admin-analytics-metric strong { color:#173d5c; font-size:23px; line-height:1.2; }
    .admin-analytics-metric small { color:#718294; font-size:10px; line-height:1.4; }
    .admin-analytics-charts { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin-bottom:15px; }
    .admin-analytics-chart-card { min-width:0; padding:15px 16px 13px; }
    .admin-analytics-chart-heading {
      display:flex; min-height:46px; align-items:flex-start; justify-content:space-between; gap:8px;
      margin-bottom:7px; padding-bottom:10px; border-bottom:1px solid #e8edf3;
    }
    .admin-analytics-chart-heading > div { min-width:0; }
    .admin-analytics-chart-heading > div > span { color:#7a8a9b; font-size:8px; font-weight:800; letter-spacing:.09em; }
    .admin-analytics-chart-heading h3 { margin:2px 0 0; padding:0; border:0; color:#233f59; font-size:12px; line-height:1.4; }
    .admin-analytics-period { flex:0 0 auto; padding:4px 7px; border:1px solid #e2eaf1; border-radius:999px; background:#f7fafc; color:#61768a; font-size:8px; font-weight:700; white-space:nowrap; }
    .admin-analytics-chart-card .chart-box { height:210px; }
    .admin-analytics-chart-empty {
      position:absolute; inset:0; display:grid; align-content:center; justify-items:center; gap:6px; padding:18px;
      border:1px dashed #d7e2ec; border-radius:9px; background:#f8fafc; color:#60768a; text-align:center;
      font-size:11px; line-height:1.5;
    }
    .admin-analytics-chart-empty strong { color:#274965; font-size:12px; }
    .admin-analytics-chart-empty[hidden] { display:none; }
    .admin-analytics-roster-toolbar {
      display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
      margin:0 0 11px; padding:14px 16px; border:1px solid #dfe8ef; border-radius:12px;
      background:#fff; box-shadow:var(--shadow-sm);
    }
    .admin-analytics-roster-title { min-width:0; }
    .admin-analytics-roster-title h3 { margin:0; color:#233f59; font-size:14px; }
    .admin-analytics-roster-title p { margin:4px 0 0; color:#718294; font-size:10px; line-height:1.45; }
    .admin-analytics-roster-controls {
      display:grid; grid-template-columns:minmax(170px, 1fr) minmax(175px, auto) minmax(220px, auto);
      align-items:center; gap:7px; width:min(760px, 65%);
    }
    .admin-analytics-roster-controls input,
    .admin-analytics-roster-controls select {
      width:100%; min-width:0; min-height:36px; padding:0 9px;
      border:1px solid #d8e2eb; border-radius:8px; background:#fff;
      color:#344b61; font:inherit; font-size:10px;
    }
    .admin-analytics-roster-controls input:focus,
    .admin-analytics-roster-controls select:focus { border-color:#6a9ec2; outline:3px solid rgba(37, 99, 235, .12); }
    #adminAnalyticsContainer .admin-analytics-detail-grid { grid-template-columns:minmax(0, 1fr); align-items:stretch; }
    .admin-analytics-panel { min-width:0; padding:17px 18px; }
    .admin-analytics-panel-heading {
      display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:14px;
      padding-bottom:11px; border-bottom:1px solid #e8edf3;
    }
    .admin-analytics-panel-heading > div { min-width:0; }
    .admin-analytics-panel-heading > div > span { color:#7a8a9b; font-size:8px; font-weight:800; letter-spacing:.09em; }
    .admin-analytics-panel-heading h3 { margin:2px 0 0; color:#233f59; font-size:13px; line-height:1.4; }
    .admin-analytics-panel-count { flex:0 0 auto; padding:4px 8px; border:1px solid #e2eaf1; border-radius:999px; background:#f7fafc; color:#61768a; font-size:9px; font-weight:700; }
    .admin-analytics-person-row {
      display:grid; gap:11px; padding:13px 15px; border:1px solid #e2eaf1; border-radius:11px;
      background:linear-gradient(110deg, #fff 0%, #fbfdff 100%);
    }
    .admin-analytics-person-row + .admin-analytics-person-row { margin-top:9px; }
    .admin-analytics-person-main {
      display:grid; grid-template-columns:minmax(0, 1.45fr) minmax(90px, .45fr) minmax(185px, .9fr) minmax(190px, 1fr);
      align-items:center; gap:16px;
    }
    .admin-analytics-person-identity { display:flex; min-width:0; align-items:center; gap:11px; }
    .admin-analytics-person-avatar {
      display:grid; width:38px; height:38px; flex:0 0 38px; place-items:center;
      border-radius:11px; color:#fff; font-size:13px; font-weight:800;
      box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
    }
    .admin-analytics-person-identity > div { display:grid; min-width:0; gap:3px; }
    .admin-analytics-person-identity strong { color:#24435f; font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
    .admin-analytics-person-identity > div > span { color:#718294; font-size:10px; line-height:1.35; }
    .admin-analytics-person-service { display:flex; align-items:baseline; gap:6px; }
    .admin-analytics-person-service strong { color:#244f76; font-size:21px; line-height:1; }
    .admin-analytics-person-service span { color:#718294; font-size:10px; font-weight:650; }
    .admin-analytics-person-visits { display:grid; min-width:0; gap:5px; }
    .admin-analytics-person-visits > div:first-child { display:flex; align-items:baseline; gap:5px; }
    .admin-analytics-person-visits > div:first-child strong { color:#263f58; font-size:17px; line-height:1; }
    .admin-analytics-person-visits > div:first-child span { color:#718294; font-size:10px; }
    .admin-analytics-person-visits small { color:#718294; font-size:9px; line-height:1.35; }
    .admin-analytics-person-target-unset { color:#76889a !important; }
    .admin-analytics-person-progress { height:6px; overflow:hidden; border-radius:99px; background:#e5ebf1; }
    .admin-analytics-person-progress > span { display:block; height:100%; border-radius:inherit; }
    .admin-analytics-person-status { display:grid; justify-items:start; gap:5px; min-width:0; }
    .admin-analytics-status-pill {
      display:inline-flex; max-width:100%; align-items:center; padding:5px 8px; border-radius:999px;
      font-size:9px; font-weight:750; line-height:1.25; overflow-wrap:anywhere;
    }
    .admin-analytics-status-pill.is-attention { background:#fff4e5; color:#9a641c; }
    .admin-analytics-status-pill.is-new { background:#edf5fd; color:#245c8d; }
    .admin-analytics-status-pill.is-current { background:#edf8f0; color:#287446; }
    .admin-analytics-person-status small { color:#7b8998; font-size:9px; line-height:1.35; }
    .admin-analytics-person-breakdown {
      display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px;
      padding-top:10px; border-top:1px solid #edf1f5;
    }
    .admin-analytics-person-breakdown > div { display:grid; gap:3px; min-width:0; }
    .admin-analytics-person-breakdown span { color:#7a8a9b; font-size:9px; line-height:1.3; }
    .admin-analytics-person-breakdown strong { color:#2d4d68; font-size:12px; line-height:1.3; }
    .admin-analytics-empty-state { padding:13px; border:1px dashed #d7e2ec; border-radius:9px; background:#fbfcfe; color:#687b8f; font-size:10px; line-height:1.5; }
    @media (max-width: 1080px) {
      .admin-analytics-summary { grid-template-columns:repeat(2, minmax(0, 1fr)); }
      .admin-analytics-charts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
      .admin-analytics-chart-card:last-child { grid-column:1 / -1; }
      #adminAnalyticsContainer .admin-analytics-detail-grid { grid-template-columns:minmax(0, 1fr); }
      .admin-analytics-person-main { grid-template-columns:minmax(0, 1fr) auto; gap:12px 20px; }
      .admin-analytics-person-service { justify-self:end; }
      .admin-analytics-person-visits { grid-column:1; }
      .admin-analytics-person-status { grid-column:2; grid-row:2; justify-self:end; }
      .admin-analytics-roster-toolbar { align-items:stretch; flex-direction:column; }
      .admin-analytics-roster-controls { width:100%; }
    }
    @media (max-width: 700px) {
      .admin-analytics-heading { align-items:flex-start; flex-direction:column; padding:18px; }
      .admin-analytics-controls { width:100%; align-items:stretch; flex-direction:column; }
      .admin-analytics-period-control { width:100%; }
      .admin-analytics-export { width:100%; }
      .admin-analytics-charts { grid-template-columns:minmax(0, 1fr); }
      .admin-analytics-chart-card:last-child { grid-column:auto; }
      .admin-analytics-chart-card .chart-box { height:235px; }
      .admin-analytics-person-main { grid-template-columns:minmax(56px, .35fr) minmax(0, 1fr); gap:10px 14px; }
      .admin-analytics-person-identity, .admin-analytics-person-status { grid-column:1 / -1; }
      .admin-analytics-person-status { grid-row:auto; justify-self:start; }
      .admin-analytics-person-service { grid-column:1; justify-self:start; }
      .admin-analytics-person-visits { grid-column:2; }
      .admin-analytics-roster-controls { grid-template-columns:1fr; }
      .admin-analytics-person-breakdown { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 480px) {
      .admin-analytics-heading h2 { font-size:19px; }
      .admin-analytics-summary { gap:8px; }
      .admin-analytics-metric { padding:11px; }
      .admin-analytics-metric strong { font-size:20px; }
      .admin-analytics-panel-heading { align-items:flex-start; flex-direction:column; }
      .admin-analytics-stat-top > span:last-child { text-align:left; }
    }

    .insight-card {
      background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
      padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
    }
    .insight-header {
      display: flex; justify-content: space-between; align-items: center;
      padding-bottom: 10px; border-bottom: 1px solid var(--border);
    }
    .insight-header h3 { font-size: 14px; font-weight: 700; }
    .unvisited-row {
      background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
      padding: 9px 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
    }
    .dealer-priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 8px; }
    .dealer-priority-grid .unvisited-row { min-width: 0; flex-direction: row; align-items: center; padding: 9px; }
    .dealer-priority-grid .unvisited-row > div { min-width: 0; overflow-wrap: anywhere; }
    .dealer-priority-grid .unvisited-row .btn { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 6px 9px; }
    .dealer-priority-more { border-top: 1px solid var(--border); padding-top: 9px; }
    .dealer-priority-more summary { color: var(--primary); font-size: 11.5px; font-weight: 700; cursor: pointer; }
    .dealer-priority-more .dealer-priority-grid { margin-top: 9px; }
    .insight-feedback { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid var(--border); }
    .insight-feedback > strong { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
    .stat-bar-wrap { margin-bottom: 10px; }
    .stat-bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; font-weight: 600; }
    .stat-bar-track { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
    .stat-bar-fill { height: 100%; background: var(--primary); border-radius: 99px; }

    .employee-performance-heading {
      display: flex; align-items: center; justify-content: space-between; gap: 18px;
      margin-bottom: 16px; padding: 20px 24px; border: 0; border-radius: 15px;
      background: linear-gradient(118deg, #12395b 0%, #075985 58%, #0879a8 100%);
      box-shadow: 0 8px 22px rgba(15, 46, 74, .13);
    }
    .employee-performance-eyebrow { color: #b9ddf5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
    .employee-performance-heading h2 { margin: 3px 0 4px; color: #fff; font-size: 21px; letter-spacing: -.025em; }
    .employee-performance-heading p { margin: 0; color: #d7e8f5; font-size: 12px; }
    .employee-performance-period {
      flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2);
      border-radius: 999px; background: rgba(255,255,255,.1); color: #fff;
      font-size: 10px; font-weight: 700; text-transform: capitalize;
    }
    .employee-performance-period-control {
      display:grid; min-width:142px; gap:4px; color:#d7e8f5; font-size:9px; font-weight:750;
    }
    .employee-performance-period-control select {
      width:100%; min-height:38px; padding:0 10px; border:1px solid rgba(255,255,255,.55);
      border-radius:9px; background:#fff; color:#24435f; font:inherit; font-size:11px;
    }
    .employee-performance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
    .employee-performance-metric {
      display: grid; min-width: 0; min-height: 120px; align-content: start; gap: 7px;
      padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px;
      background: var(--bg-card); box-shadow: var(--shadow-sm);
    }
    .employee-performance-metric-label { color: #64788b; font-size: 10px; font-weight: 700; line-height: 1.4; }
    .employee-performance-metric > strong { color: #173d5c; font-size: 23px; line-height: 1.2; }
    .employee-performance-metric > small { color: #718294; font-size: 10px; line-height: 1.45; }
    .employee-performance-metric .employee-performance-metric-unset { color: #74879a; font-size: 15px; }
    .employee-performance-metric progress {
      display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px;
      appearance: none; background: #e2e8f0; accent-color: var(--primary);
    }
    .employee-performance-metric progress::-webkit-progress-bar { border-radius: 99px; background: #e2e8f0; }
    .employee-performance-metric progress::-webkit-progress-value { border-radius: 99px; background: var(--primary); }
    .employee-performance-metric progress::-moz-progress-bar { border-radius: 99px; background: var(--primary); }
    .employee-performance-metric--coverage { border-top: 3px solid #0879a8; }
    .employee-performance-metric--attention { border-top: 3px solid #d9902f; }
    .employee-performance-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
    .employee-performance-charts .chart-card { min-width: 0; }
    .employee-performance-charts .chart-box { height: 270px; }
    .employee-performance-follow-up-panel { padding: 19px; }
    .employee-performance-follow-up-heading {
      display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px;
    }
    .employee-performance-follow-up-heading h3 { margin: 0; color: #173d5c; font-size: 15px; }
    .employee-performance-follow-up-heading p { margin: 4px 0 0; color: #718294; font-size: 10.5px; }
    .employee-performance-follow-up-count {
      flex: 0 0 auto; padding: 5px 9px; border: 1px solid #e6eaf0; border-radius: 999px;
      background: #f8fafc; color: #52677a; font-size: 10px; font-weight: 700;
    }
    .employee-performance-follow-up-list { display: grid; gap: 8px; }
    .employee-performance-follow-up-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
      min-width: 0; padding: 11px 12px; border: 1px solid #e3eaf0; border-radius: 10px; background: #fbfdff;
    }
    .employee-performance-follow-up-copy { display: grid; min-width: 0; gap: 3px; }
    .employee-performance-follow-up-copy strong { color: #294761; font-size: 11.5px; overflow-wrap: anywhere; }
    .employee-performance-follow-up-copy span { color: #74879a; font-size: 10px; line-height: 1.4; }
    .employee-performance-follow-up-status { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }
    .employee-performance-follow-up-status.is-new { background: #edf5fd; color: #245c8d; }
    .employee-performance-follow-up-status.is-overdue { background: #fff5e8; color: #9a641c; }
    .employee-performance-follow-up-row .btn { min-height: 34px; padding: 6px 10px; font-size: 10px; white-space: nowrap; }
    .employee-performance-empty { padding: 16px; border: 1px dashed #d4e0ea; border-radius: 9px; background: #f9fbfd; color: #718294; font-size: 11px; text-align: center; }
    .employee-performance-empty--success { border-color: #d8ebde; background: #f5fbf6; color: #287446; }

    .split-2col { display: grid; grid-template-columns: 390px 1fr; gap: 18px; align-items: start; }
    .prospect-heading { margin-bottom: 22px; }
    .prospect-heading h2 { font-size: 22px; }
    .prospect-eyebrow { display: block; margin-bottom: 5px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
    .prospect-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; align-items: stretch; }
    .prospect-panel { min-width: 0; padding: 24px; }
    .prospect-panel input, .prospect-panel select, .prospect-panel textarea { width: 100%; min-width: 0; }
    .prospect-list-panel { display: flex; flex-direction: column; }
    .prospect-list-panel #empProspectsList { display: flex; flex: 1; flex-direction: column; }
    .prospect-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
    .prospect-panel-heading h3 { margin: 0; }
    .prospect-panel-hint { color: var(--text-muted); font-size: 11.5px; }
    .prospect-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .prospect-fields-grid .form-group { min-width: 0; }
    .prospect-location-section { margin: 4px 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
    .prospect-location-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
    .prospect-location-heading strong { color: var(--text-main); font-size: 12.5px; }
    .prospect-location-heading span, .prospect-location-hint { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
    .prospect-location-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .prospect-location-actions .btn { min-height: 42px; margin: 0 !important; font-size: 12px !important; }
    .prospect-location-link { margin-top: 12px; }
    .prospect-location-link label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
    .prospect-location-link-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .prospect-location-link-controls input { min-width: 0; }
    .prospect-location-link-controls .btn { min-height: 40px; margin: 0 !important; white-space: nowrap; }
    #prospectPlaceSearchStatus:empty, #prospectPlaceSearchResults:empty { display: none !important; }
    #prospectPlaceSearchStatus { margin: 8px 0 !important; }
    #prospectPlaceSearchResults { margin: 8px 0 !important; }
    #prospectLocationStatus { margin: 10px 0 !important; background: #fff; }
    .prospect-location-hint { display: block; margin-top: 10px; }
    .prospect-submit-button { min-height: 46px; }
    .prospect-empty-state { display: flex; flex: 1; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; text-align: center; }
    .prospect-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 12px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; color: var(--primary); font-size: 20px; font-weight: 700; }
    .prospect-empty-state strong { color: var(--text-main); font-size: 13px; }
    .prospect-empty-state p { max-width: 300px; margin-top: 5px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }

    /* Map Layout */
    .map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-bottom: 24px; }
    #regionMap { height: min(48vh, 500px); min-height: 380px; width: 100%; background: #e5e3df; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); z-index: 1; }
    .custom-pin { background: transparent; border: 0; }
    .custom-pin svg { display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .55)); }
    .map-sidebar { background: var(--surface-gradient); border: 1px solid var(--border); border-radius: 14px; padding: 16px; max-height: min(48vh, 500px); min-height: 380px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
    .legend-pill {
      display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
      font-size: 11.5px; font-weight: 600; background: var(--surface-gradient); border: 1px solid #cbd5e1; cursor: pointer; color: var(--text-main); box-shadow: var(--shadow-sm); transition:transform .16s ease, box-shadow .16s ease;
    }
    .legend-pill:hover { transform:translateY(-1px); box-shadow:var(--shadow-md); }
    .legend-pill.active-filter { border-color: var(--primary); background: var(--primary); color: #ffffff; }
    .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

    /* Territory Cards (25'er Bayi İçin Kaydırılabilir & Aramalı Liste) */
    .territory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
    .team-territory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .territory-card {
      background: var(--surface-gradient); border: 1px solid var(--border); border-radius: 12px;
      padding: 16px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-sm);
      transition:transform .18s ease, box-shadow .18s ease;
    }
    .territory-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
    .territory-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
    }
    .territory-title { font-size:15px; font-weight:600; line-height:1.35; letter-spacing:0; }
    .territory-region { margin-top:3px; font-size:12px; line-height:1.4; color:var(--text-muted); }
    .territory-metrics { display:flex; flex:0 0 auto; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
    .territory-metric {
      display:inline-flex; align-items:baseline; gap:4px; padding:5px 9px; border:1px solid transparent;
      border-radius:999px; font-size:11.5px; font-weight:600; line-height:1.25; white-space:nowrap;
    }
    .territory-metric-total { color:var(--primary); background:#eff6ff; border-color:#dbeafe; }
    .territory-metric-late { color:#b4233b; background:#fff1f2; border-color:#fecdd3; }
    .territory-metric-late strong { font-size:13px; font-weight:700; }
    .dealer-scroll-box { max-height:310px; overflow-y:auto; display:flex; flex-direction:column; gap:7px; padding-right:4px; }
    .dealer-mini-item {
      background:linear-gradient(110deg, #ffffff 0%, #f8fbff 100%); border:1px solid var(--border); border-radius:8px; padding:9px 10px;
      display:flex; justify-content:space-between; align-items:center; gap:8px; cursor:pointer; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    }
    .dealer-mini-item:hover { border-color:#93c5fd; background:linear-gradient(110deg, #eff6ff 0%, #f0f9ff 100%); box-shadow:0 2px 8px rgba(0,74,150,.08); }
    .dealer-mini-copy { min-width:0; flex:1; }
    .dealer-mini-name { display:block; font-size:12.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .dealer-mini-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:4px; color:var(--text-muted); font-size:11px; }
    .dealer-mini-meta .crm-health { margin-top:0; }
    .crm-health { font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 5px; display: inline-block; margin-top: 3px; }
    .crm-good { background: #d1fae5; color: #065f46; }
    .crm-warn { background: #fef3c7; color: #92400e; }
    .crm-bad { background: #fee2e2; color: #991b1b; }
    .crm-new { background: #e0f2fe; color: #075985; }
    #empDealersGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .paint-suppliers-page { min-width: 0; }
    .paint-suppliers-heading {
      display: flex; align-items: center; justify-content: space-between; gap: 18px;
      margin-bottom: 16px; padding: 20px 22px;
      border: 1px solid #1e587f; border-radius: 14px;
      background: linear-gradient(135deg, #174d70 0%, #27698f 100%);
      color: #fff; box-shadow: 0 10px 24px rgba(15, 46, 74, .14);
    }
    .paint-suppliers-eyebrow { display:block; margin-bottom:5px; color:#bad8e9; font-size:10px; font-weight:800; letter-spacing:.13em; }
    .paint-suppliers-heading h2 { margin:0; font-size:22px; line-height:1.25; letter-spacing:-.025em; }
    .paint-suppliers-heading p { margin:7px 0 0; color:#d5e5f1; font-size:12.5px; }
    .paint-suppliers-heading .btn { flex:0 0 auto; min-height:40px; border-color:#fff; }
    .paint-suppliers-schema-notice {
      display:grid; gap:4px; margin-bottom:14px; padding:13px 15px;
      border:1px solid #f0d49f; border-left:3px solid #d39532; border-radius:10px;
      background:#fffaf0; color:#765520; font-size:12px;
    }
    .paint-suppliers-schema-notice[hidden] { display:none; }
    .paint-suppliers-layout {
      display:grid; grid-template-columns:minmax(220px, 280px) minmax(0, 1fr); gap:14px;
      align-items:start;
    }
    .paint-suppliers-sidebar,
    .paint-supplier-detail {
      min-width:0; border:1px solid #dde7ef; border-radius:13px; background:#fff; box-shadow:var(--shadow-sm);
    }
    .paint-suppliers-sidebar { overflow:hidden; }
    .paint-suppliers-search { display:grid; gap:6px; padding:13px; border-bottom:1px solid #e6edf3; background:#f8fafc; }
    .paint-suppliers-search label { color:#52687a; font-size:10.5px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
    .paint-suppliers-search input { width:100%; min-height:38px; }
    .paint-supplier-list { display:grid; gap:7px; max-height:520px; overflow-y:auto; padding:8px; }
    .paint-supplier-card {
      display:flex; width:100%; min-height:64px; align-items:center; justify-content:space-between; gap:8px;
      padding:10px 11px; border:1px solid #e2e8ef; border-radius:10px;
      background:#fff; color:#294761; text-align:left; cursor:pointer;
    }
    .paint-supplier-card:hover { border-color:#b8cdda; background:#f8fbfd; }
    .paint-supplier-card.is-selected { border-color:#78a6c6; background:#eff6fb; box-shadow:inset 3px 0 #2c75a5; }
    .paint-supplier-card-main { display:grid; min-width:0; gap:3px; }
    .paint-supplier-card-main strong { overflow:hidden; font-size:12.5px; text-overflow:ellipsis; white-space:nowrap; }
    .paint-supplier-card-main span { color:#718396; font-size:10.5px; }
    .paint-supplier-card-count { flex:0 0 auto; padding:4px 7px; border-radius:999px; background:#e7f0f7; color:#48677d; font-size:9.5px; font-weight:750; white-space:nowrap; }
    .paint-supplier-empty { padding:18px 12px; color:#718396; font-size:11.5px; line-height:1.5; text-align:center; }
    .paint-supplier-detail { overflow:hidden; }
    .paint-supplier-form { padding:16px; border-bottom:1px solid #e3ebf2; background:#fbfdff; }
    .paint-supplier-form[hidden] { display:none; }
    .paint-supplier-form-heading { margin-bottom:13px; }
    .paint-supplier-form-heading span { display:block; margin-bottom:4px; color:#66809a; font-size:9.5px; font-weight:800; letter-spacing:.08em; }
    .paint-supplier-form-heading h3 { margin:0; color:#244760; font-size:16px; }
    .paint-supplier-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
    .paint-supplier-multi-options {
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:6px;
      padding:8px;
      border:1px solid #dce7ef;
      border-radius:9px;
      background:#f8fbfd;
    }
    .paint-supplier-multi-options label {
      display:flex;
      min-width:0;
      min-height:32px;
      align-items:center;
      gap:7px;
      margin:0;
      padding:6px 8px;
      border:1px solid transparent;
      border-radius:7px;
      background:#fff;
      color:#40586d;
      font-size:10.5px;
      font-weight:650;
      cursor:pointer;
    }
    .paint-supplier-multi-options label:has(input:checked) {
      border-color:#b7d2e6;
      background:#edf6fb;
      color:#1d5d8b;
    }
    .paint-supplier-multi-options input {
      width:15px;
      height:15px;
      margin:0;
      accent-color:#2d78a9;
    }
    .paint-supplier-form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
    .paint-supplier-assignments { display:grid; gap:12px; padding:16px; }
    .paint-supplier-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid #e7edf3; }
    .paint-supplier-detail-heading span { display:block; margin-bottom:4px; color:#718396; font-size:9.5px; font-weight:800; letter-spacing:.08em; }
    .paint-supplier-detail-heading h3 { margin:0; color:#1e405a; font-size:17px; }
    .paint-supplier-detail-heading p { margin:5px 0 0; color:#718396; font-size:11.5px; }
    .paint-supplier-assignment-add { display:grid; gap:6px; padding:11px; border:1px solid #dce7ef; border-radius:10px; background:#f7fafc; }
    .paint-supplier-assignment-add label { color:#52687a; font-size:11px; font-weight:750; }
    .paint-supplier-assignment-add > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
    .paint-supplier-assignment-add select { min-height:38px; }
    .paint-supplier-dealer-heading { display:flex; align-items:center; justify-content:space-between; color:#274760; font-size:12.5px; }
    .paint-supplier-dealer-heading span { color:#718396; font-size:10.5px; }
    .paint-supplier-dealers { display:grid; gap:7px; }
    .paint-supplier-dealer-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 11px; border:1px solid #e2e8ef; border-radius:9px; background:#fff; }
    .paint-supplier-dealer-row > div { display:grid; min-width:0; gap:3px; }
    .paint-supplier-dealer-row strong { color:#294761; font-size:12.5px; }
    .paint-supplier-dealer-row span { color:#718396; font-size:10.5px; }
    .paint-supplier-dealer-row .btn { flex:0 0 auto; min-height:32px; padding:5px 8px; font-size:10.5px; }
    .supplier-network-page { min-width:0; }
    .supplier-network-heading {
      display:flex; align-items:center; min-height:96px; margin-bottom:14px; padding:18px 22px;
      border:1px solid #1e587f; border-radius:14px;
      background:linear-gradient(135deg,#174d70 0%,#27698f 100%);
      color:#fff; box-shadow:0 10px 24px rgba(15,46,74,.12);
    }
    .supplier-network-eyebrow { display:block; margin-bottom:5px; color:#bad8e9; font-size:10px; font-weight:800; letter-spacing:.13em; }
    .supplier-network-heading h2 { margin:0; font-size:22px; letter-spacing:-.025em; }
    .supplier-network-heading p { margin:6px 0 0; color:#d5e5f1; font-size:12.5px; }
    .supplier-network-toolbar {
      display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 110px 110px;
      gap:10px; margin-bottom:14px;
    }
    .supplier-network-field { display:grid; gap:5px; }
    .supplier-network-field label { color:#52687a; font-size:10.5px; font-weight:750; }
    .supplier-network-field select { min-height:42px; }
    .supplier-network-metric {
      display:flex; min-width:0; align-items:center; justify-content:space-between; gap:8px;
      min-height:42px; margin-top:16px; padding:8px 10px;
      border:1px solid #dce6ef; border-radius:9px; background:#fff;
    }
    .supplier-network-metric span { color:#718396; font-size:10.5px; }
    .supplier-network-metric strong { color:#244760; font-size:17px; font-variant-numeric:tabular-nums; }
    .supplier-network-layout {
      display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px;
    }
    #supplierNetworkMap {
      height:560px; min-height:480px; border:1px solid #dce6ef; border-radius:13px;
      background:#eaf0f4; box-shadow:var(--shadow-sm); z-index:1;
    }
    .supplier-network-panel { min-width:0; min-height:480px; border:1px solid #dce6ef; border-radius:13px; background:#fff; box-shadow:var(--shadow-sm); }
    .supplier-network-detail { display:grid; gap:8px; height:100%; padding:16px; }
    .supplier-network-detail-eyebrow { color:#718396; font-size:9.5px; font-weight:800; letter-spacing:.08em; }
    .supplier-network-detail h3 { margin:0; color:#1f405c; font-size:18px; }
    .supplier-network-detail p { margin:0; color:#718396; font-size:11.5px; line-height:1.45; }
    .supplier-network-detail-count { display:flex; align-items:center; gap:8px; padding:9px 10px; border:1px solid #dce7ef; border-radius:9px; background:#f7fafc; }
    .supplier-network-detail-count strong { color:#28658f; font-size:20px; }
    .supplier-network-detail-count span { color:#718396; font-size:10.5px; }
    .supplier-network-dealer-list { display:grid; align-content:start; gap:7px; max-height:390px; overflow-y:auto; }
    .supplier-network-dealer-list button {
      display:grid; gap:3px; width:100%; padding:9px 10px; border:1px solid #e1e9f0;
      border-radius:9px; background:#fff; color:#294761; text-align:left; cursor:pointer;
    }
    .supplier-network-dealer-list button:hover { border-color:#b5cdda; background:#f7fafc; }
    .supplier-network-dealer-list button strong { font-size:12px; }
    .supplier-network-dealer-list button span { color:#718396; font-size:10.5px; }
    .supplier-network-empty { padding:18px 10px; color:#718396; font-size:11.5px; text-align:center; }
    .supplier-network-supplier-pin,
    .supplier-network-dealer-pin { display:grid; place-items:center; border:0; background:transparent; }
    .supplier-network-supplier-pin span,
    .supplier-network-dealer-pin span {
      display:grid; place-items:center; border-radius:50%; color:#fff; font-weight:800;
      box-shadow:0 4px 12px rgba(20,65,94,.24);
    }
    .supplier-network-supplier-pin span { width:38px; height:38px; border:3px solid #fff; background:#1e6f9e; font-size:13px; }
    .supplier-network-dealer-pin span { width:28px; height:28px; border:2px solid #fff; background:#d28a3a; font-size:10px; }
    .supplier-network-dealer-cluster { display:grid; place-items:center; border:0; background:transparent; }
    .supplier-network-dealer-cluster span {
      display:grid; width:34px; height:34px; place-items:center;
      border:3px solid #fff; border-radius:50%; background:#d28a3a;
      color:#fff; font-size:11px; font-weight:800;
      box-shadow:0 4px 12px rgba(146,82,23,.24);
    }
    @media (max-width:980px) {
      .supplier-network-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); }
      .supplier-network-metric { margin-top:0; }
      .supplier-network-layout { grid-template-columns:1fr; }
      .supplier-network-panel { min-height:260px; }
      #supplierNetworkMap { height:480px; }
      .supplier-network-dealer-list { max-height:220px; }
    }
    @media (max-width:600px) {
      .supplier-network-toolbar { grid-template-columns:minmax(0,1fr); }
      .supplier-network-heading { min-height:110px; padding:16px; }
    }
    @media (max-width:980px) {
      .paint-suppliers-layout { grid-template-columns:minmax(180px,240px) minmax(0,1fr); }
    }
    @media (max-width:700px) {
      .paint-suppliers-heading { align-items:flex-start; flex-direction:column; }
      .paint-suppliers-heading .btn { width:100%; }
      .paint-suppliers-layout { grid-template-columns:minmax(0,1fr); }
      .paint-supplier-list { max-height:260px; }
      .paint-supplier-form-grid { grid-template-columns:minmax(0,1fr); }
      .paint-supplier-multi-options { grid-template-columns:minmax(0,1fr); }
      .paint-supplier-assignment-add > div { grid-template-columns:minmax(0,1fr); }
      .paint-supplier-assignment-add .btn { width:100%; }
      .paint-supplier-dealer-row { align-items:flex-start; flex-direction:column; }
      .paint-supplier-dealer-row .btn { width:100%; }
    }
    #view-emp-dealers > .panel {
      padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }
    #view-emp-dealers .filter-bar {
      display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
      align-items: center; margin-bottom: 12px; padding: 13px 18px;
      border: 0; border-radius: 16px;
      background: linear-gradient(118deg, #12395b 0%, #075985 58%, #0879a8 100%);
      box-shadow: 0 10px 24px rgba(15, 46, 74, .14);
    }
    #view-emp-dealers .filter-bar > div { min-width: 0; }
    #view-emp-dealers #empDealersHeading { color: #fff; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
    #view-emp-dealers .filter-bar p { margin-top: 4px; color: #d7e8f5; font-size: 12px; }
    .employee-dealer-filter-controls {
      display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(130px, 1fr)) auto;
      gap: 8px; margin-bottom: 10px;
    }
    .employee-dealer-filter-controls.has-employee-filter {
      grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(130px, 1fr)) auto;
    }
    .employee-dealer-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
    .employee-dealer-filter {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      width: 100%; min-width: 0; min-height: 40px; padding: 7px 10px;
      border: 1px solid #e1e8ef; border-left: 3px solid #cbd5e1; border-radius: 9px;
      background: #fff; box-shadow: none; text-align: left; font: inherit; cursor: pointer;
    }
    .employee-dealer-filter:hover { transform: none; border-color: #b9cddd; background: #f8fafc; box-shadow: 0 2px 6px rgba(15, 36, 58, .06); }
    .employee-dealer-filter.active { border-color: #bfd3e4; border-left-color: var(--primary); background: #f3f8fc; box-shadow: inset 0 0 0 1px rgba(0, 74, 150, .04); }
    .employee-dealer-filter:focus-visible { outline: 3px solid rgba(0, 74, 150, .25); outline-offset: 2px; }
    .employee-dealer-filter--approaching { border-left-color: var(--warning); }
    .employee-dealer-filter--overdue { border-left-color: var(--danger); }
    .employee-dealer-filter--first-visit { border-left-color: #0284c7; }
    .employee-dealer-filter--results { border-left-color: #0f766e; background: #f0fdfa; cursor: default; }
    .employee-dealer-filter--results:hover { border-color: #e1e8ef; border-left-color: #0f766e; background: #f0fdfa; box-shadow: none; }
    .employee-dealer-filter--results .kpi-val { background: #ccfbf1; color: #115e59; }
    .employee-dealer-filter .kpi-val {
      order: 2; flex: 0 0 auto; min-width: 28px; margin: 0; padding: 2px 7px;
      border-radius: 999px; background: #eef3f7; color: #40566a;
      font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center;
    }
    .employee-dealer-filter.active .kpi-val { background: #e2edf6; color: #174b70; }
    .employee-dealer-filter .kpi-lbl { order: 1; min-width: 0; color: #475569; font-size: 12px; line-height: 1.35; font-weight: 600; }
    .employee-dealer-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--text-muted); }
    .employee-dealer-search {
      width: 100%; min-height: 40px; border: 1px solid #d5e0eb;
      border-radius: 10px; background: #fff; box-shadow: none;
    }
    .employee-dealer-filter-controls select {
      width: 100%; min-width: 0; min-height: 40px; padding: 0 10px;
      border: 1px solid #d5e0eb; border-radius: 10px; background: #fff;
      color: #334155; font: inherit; font-size: 12.5px;
    }
    .employee-dealer-card {
      position: relative;
      display: grid; grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "heading status" "specs specs" "actions actions";
      gap: 10px; padding: 15px; border: 1px solid #dce6ef; border-top: 3px solid #91aec4;
      border-radius: 13px; background: #ffffff;
      box-shadow: 0 3px 10px rgba(15, 36, 58, .055);
    }
    .employee-dealer-card:hover { border-color: #bccfe0; border-top-color: #477fa6; box-shadow: 0 8px 18px rgba(15, 36, 58, .09); }
    .employee-dealer-card:focus-within { z-index: 3; }
    .employee-dealer-card.has-note { grid-template-areas: "heading status" "specs specs" "note note" "actions actions"; }
    .employee-dealer-heading { grid-area: heading; display:flex; min-width: 0; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:6px 10px; padding: 0 0 9px; border-bottom: 1px solid #edf1f5; }
    .employee-dealer-copy { flex:1 1 180px; min-width: 0; }
    .employee-dealer-title { color: #142b45; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -.015em; }
    .employee-dealer-city { margin-top: 3px; color: #718397; font-size: 11px; line-height: 1.3; }
    .employee-dealer-supplier {
      display:inline-flex; width:fit-content; max-width:100%; margin-top:7px;
      padding:3px 7px; border:1px solid #d5e4ef; border-radius:6px;
      background:#f4f8fb; color:#37627f; font-size:9px; font-weight:750;
      line-height:1.2; overflow-wrap:anywhere;
    }
    .employee-dealer-owner { display:inline-flex; flex:0 1 auto; max-width:100%; align-items:center; gap:5px; padding:4px 7px; border:1px solid #d5e5f3; border-radius:7px; background:#f3f8fd; color:#234a6b; font-size:10px; font-weight:700; white-space:nowrap; }
    .employee-dealer-owner > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .employee-dealer-owner-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; }
    .employee-dealer-status { grid-area: status; display: flex; max-width: 210px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 5px; padding-bottom: 9px; }
    .employee-dealer-status .crm-health { margin-top: 0; }
    .employee-dealer-status .crm-health { padding: 4px 8px; border: 1px solid rgba(0, 0, 0, .04); border-radius: 999px; font-size: 10px; white-space: nowrap; }
    .employee-dealer-status .crm-new { border-color: #bae6fd; }
    .employee-dealer-specs {
      grid-area: specs;
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
      padding: 0; border: 1px solid #e2eaf3; border-radius: 9px;
      background: #f8fafc; overflow: hidden;
    }
    .employee-dealer-spec { display: flex; min-width: 0; min-height: 62px; flex-direction: column; align-items: flex-start; justify-content:center; gap: 4px; padding:8px 10px; }
    .employee-dealer-spec + .employee-dealer-spec { border-left: 1px solid #dfe7f0; }
    .employee-dealer-spec:nth-child(odd) { border-left: 0; }
    .employee-dealer-spec:nth-child(n+3) { border-top: 1px solid #dfe7f0; }
    .employee-dealer-spec:nth-child(3) { border-left: 0; }
    .employee-dealer-spec-label { color: #64748b; font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
    .employee-dealer-spec-value {
      display: inline-block; max-width: 100%; padding: 5px 9px; border: 1px solid #dce5ed;
      border-radius: 6px; background: #fff; color: #334e68; font-size: 11.5px; font-weight: 650; line-height: 1.32; overflow-wrap: anywhere;
    }
    .employee-dealer-card .employee-dealer-spec-value--series,
    .employee-dealer-card .employee-dealer-spec-value--program { border-color: #d3e2ef; background: #f2f7fb; color: #24577c; }
    .employee-dealer-card .employee-dealer-spec--monthly {
      grid-column: 1 / -1; min-height:38px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding:7px 10px;
    }
    .employee-dealer-card .employee-dealer-spec-value--monthly { border-color: #dce5ed; background: #fff; color: #334e68; }
    .employee-dealer-note {
      grid-area: note; display: flex; flex-direction: column; gap: 5px; margin: 0;
      padding: 11px 13px; border-left: 3px solid #8bb9df; border-radius: 0 9px 9px 0;
      background: #f5f9fd; color: #475569; font-size: 12px; line-height: 1.55;
      overflow-wrap: anywhere; white-space: pre-wrap;
    }
    .employee-dealer-note strong { color: #294b68; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
    .dealer-note-hint { display:block; margin-top:5px; color:var(--text-muted); font-size:11px; line-height:1.45; }
    .employee-dealer-actions { grid-area: actions; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-items:center; padding-top: 8px; border-top: 1px solid #edf1f6; }
    .employee-dealer-primary-actions, .employee-dealer-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .employee-dealer-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .employee-dealer-primary-actions .btn { width: 100%; min-height: 34px; justify-content: center; padding: 7px 9px; font-size: 11.5px; }
    .employee-dealer-card .employee-dealer-primary-actions .btn-maps {
      border-color: #d8e3ec; background: #fff; color: #36566f; font-size: 12px;
    }
    .employee-dealer-card .employee-dealer-primary-actions .btn-maps:hover { border-color: #b7cbdc; background: #f7fafc; }
    .employee-dealer-secondary-actions .btn { min-height: 30px; padding: 5px 8px; font-size: 10.5px; }
    .employee-dealer-secondary-actions .employee-dealer-delete-request {
      border-color: #efc9cd; background: #fff; color: #a23b42;
    }
    .employee-dealer-secondary-actions .employee-dealer-delete-request:hover {
      border-color: #dfa1a7; background: #fff6f6; color: #92303a;
    }
    @media (max-width: 1280px) {
      #empDealersGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 980px) {
      #view-emp-dealers .filter-bar { grid-template-columns: 1fr; gap: 10px; padding: 15px 18px; }
      #view-emp-dealers .employee-dealer-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #view-emp-dealers .employee-dealer-view-toolbar { grid-column: 1 / -1; justify-self: end; }
    }
    @media (max-width: 700px) {
      #empDealersGrid { grid-template-columns: 1fr; }
      .employee-dealer-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .employee-dealer-filter { min-height: 40px; padding: 7px 9px; }
      #view-emp-dealers #empDealersHeading { font-size: 19px; }
      .employee-dealer-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "status" "specs" "actions"; }
      .employee-dealer-card.has-note { grid-template-areas: "heading" "status" "specs" "note" "actions"; }
      .employee-dealer-heading { flex-wrap:wrap; }
      .employee-dealer-status { max-width: none; justify-content: flex-start; }
    }
    @media (max-width: 480px) {
      .employee-dealer-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #view-emp-dealers .employee-dealer-filter-controls { grid-template-columns: minmax(0, 1fr); }
    }

    #view-emp-dealers:not(.is-list-view) .employee-dealer-card {
      gap: 12px; padding: 16px; border-color: #e0e9f1; border-top-color: #78a5c4;
      border-radius: 14px; box-shadow: 0 4px 13px rgba(15, 36, 58, .055);
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-card:hover {
      border-color: #c9dbe8; border-top-color: #397ba7;
      box-shadow: 0 8px 20px rgba(15, 36, 58, .09);
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-heading {
      align-items: flex-start; padding-bottom: 11px; border-bottom-color: #e9eff4;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-title {
      font-size: 16px; line-height: 1.35; letter-spacing: -.02em;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-city {
      margin-top: 4px; color: #64788c; font-size: 11.5px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-supplier {
      margin-top: 7px; padding: 4px 8px; border-color: #d7e5ef;
      border-radius: 999px; background: #f5f9fc; color: #315d7b; font-size: 9.5px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-status .crm-health {
      padding: 5px 9px; font-size: 10px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-specs {
      grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px;
      padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec {
      min-height: 60px; gap: 6px; padding: 9px 10px;
      border: 1px solid #e6edf3; border-radius: 9px; background: #f9fbfd;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec + .employee-dealer-spec,
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec:nth-child(odd),
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec:nth-child(n+3),
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec:nth-child(3) {
      border: 1px solid #e6edf3;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec-label {
      color: #64788c; font-size: 9px; letter-spacing: .05em;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec-value {
      padding: 0; border: 0; background: transparent; color: #2c4963; font-size: 12px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec-value--series,
    #view-emp-dealers:not(.is-list-view) .employee-dealer-spec-value--program {
      color: #205b84;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-card .employee-dealer-spec--monthly {
      grid-column: 1 / -1; min-height: 42px; flex-direction: row;
      align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-actions {
      gap: 8px; padding-top: 10px; border-top-color: #e9eff4;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-primary-actions { gap: 7px; }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-primary-actions .btn {
      min-height: 38px; border-radius: 9px; font-size: 12px;
    }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-secondary-actions { gap: 6px; }
    #view-emp-dealers:not(.is-list-view) .employee-dealer-secondary-actions .btn {
      flex: 1 1 0; min-width: max-content; min-height: 32px;
      justify-content: center; padding: 6px 9px; border-radius: 8px; font-size: 10.5px;
    }

    .employee-dealer-view-toolbar {
      display: flex; min-width: max-content; align-items: center; justify-content: flex-end; gap: 9px;
      margin: 0; padding: 3px 4px; border: 1px solid #e1e8f0; border-radius: 10px;
      background: rgba(248, 250, 252, .9);
    }
    .employee-dealer-view-label { color: #64748b; font-size: 11px; font-weight: 700; }
    .employee-dealer-view-toggle { padding: 3px; }
    .employee-dealer-view-toggle .btn { min-height: 32px; padding: 6px 12px; font-size: 11px; }
    #view-emp-dealers.is-list-view #empDealersGrid {
      display: flex; flex-direction: column; gap: 8px;
      border: 0; border-radius: 0;
      background: transparent; box-shadow: none;
      overflow: visible;
    }
    #view-emp-dealers.is-list-view .employee-dealer-card {
      grid-template-columns: minmax(210px, .9fr) minmax(360px, 1.7fr) minmax(270px, 1.1fr);
      grid-template-areas: "heading specs actions" "status specs actions";
      align-items: center; gap: 14px; padding: 12px 14px;
      border: 1px solid #e1e9f1; border-left: 3px solid #c8ddeb; border-radius: 12px;
      background: #fff; box-shadow: 0 2px 7px rgba(15, 36, 58, .035);
    }
    #view-emp-dealers.is-list-view .employee-dealer-card:last-child { border-bottom: 1px solid #e1e9f1; }
    #view-emp-dealers.is-list-view .employee-dealer-card.has-note {
      grid-template-areas: "heading specs actions" "status note actions";
    }
    #view-emp-dealers.is-list-view .employee-dealer-card:hover {
      border-color: #d3e1ec; border-left-color: #4d86ad; background: #fbfdff;
      box-shadow: 0 5px 14px rgba(15, 36, 58, .07);
    }
    #view-emp-dealers.is-list-view .employee-dealer-heading {
      align-items: flex-start; padding: 0 12px 0 0; border-right: 1px solid #eaf0f5; border-bottom: 0;
    }
    #view-emp-dealers.is-list-view .employee-dealer-title { font-size: 15px; line-height: 1.3; }
    #view-emp-dealers.is-list-view .employee-dealer-city { margin-top: 4px; font-size: 11px; }
    #view-emp-dealers.is-list-view .employee-dealer-supplier {
      margin-top: 6px; padding: 3px 7px; border-color: #d8e6f0;
      border-radius: 999px; background: #f5f9fc; font-size: 9.5px;
    }
    #view-emp-dealers.is-list-view .employee-dealer-status {
      max-width: none; align-items: center; justify-content: flex-start; padding: 0 12px 0 0;
    }
    #view-emp-dealers.is-list-view .employee-dealer-status .crm-health { padding: 5px 9px; font-size: 10px; }
    #view-emp-dealers.is-list-view .employee-dealer-specs {
      grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
      padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible;
    }
    #view-emp-dealers.is-list-view .employee-dealer-spec {
      min-height: 44px; gap: 4px; padding: 7px 9px;
      border: 1px solid #e7edf3; border-radius: 8px; background: #fbfcfe;
    }
    #view-emp-dealers.is-list-view .employee-dealer-spec + .employee-dealer-spec,
    #view-emp-dealers.is-list-view .employee-dealer-spec:nth-child(3n + 1),
    #view-emp-dealers.is-list-view .employee-dealer-spec:nth-child(3),
    #view-emp-dealers.is-list-view .employee-dealer-spec:nth-child(n + 4) {
      border: 1px solid #e7edf3;
    }
    #view-emp-dealers.is-list-view .employee-dealer-spec-label { font-size: 8.5px; letter-spacing: .045em; }
    #view-emp-dealers.is-list-view .employee-dealer-spec-value {
      padding: 0; border: 0; background: transparent; color: #304b64; font-size: 11px;
    }
    #view-emp-dealers.is-list-view .employee-dealer-spec-value--series,
    #view-emp-dealers.is-list-view .employee-dealer-spec-value--program { color: #205b84; }
    #view-emp-dealers.is-list-view .employee-dealer-card .employee-dealer-spec--monthly {
      grid-column: auto; min-height: 44px; flex-direction: column; align-items: flex-start;
      justify-content: center; gap: 4px; padding: 7px 9px;
    }
    #view-emp-dealers.is-list-view .employee-dealer-actions {
      align-content: center; gap: 7px; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid #eaf0f5;
    }
    #view-emp-dealers.is-list-view .employee-dealer-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    #view-emp-dealers.is-list-view .employee-dealer-primary-actions .btn { min-height: 34px; padding: 7px 8px; font-size: 11px; }
    #view-emp-dealers.is-list-view .employee-dealer-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    #view-emp-dealers.is-list-view .employee-dealer-secondary-actions .btn { width: 100%; min-height: 30px; padding: 5px 7px; font-size: 10.5px; }
    @media (max-width: 1200px) {
      #view-emp-dealers.is-list-view .employee-dealer-card {
        grid-template-columns: minmax(180px, .9fr) minmax(0, 1.6fr) minmax(240px, 1.1fr);
        grid-template-areas: "heading specs actions" "status specs actions";
      }
      #view-emp-dealers.is-list-view .employee-dealer-card.has-note {
        grid-template-areas: "heading specs actions" "status note actions";
      }
      #view-emp-dealers.is-list-view .employee-dealer-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px) {
      #view-emp-dealers.is-list-view #empDealersGrid {
        gap: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible;
      }
      #view-emp-dealers.is-list-view .employee-dealer-card,
      #view-emp-dealers.is-list-view .employee-dealer-card.has-note {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "status" "specs" "note" "actions";
        gap: 8px; padding: 12px; border: 1px solid #dce6ef;
        border-top: 3px solid #91aec4; border-radius: 11px;
      }
      #view-emp-dealers.is-list-view .employee-dealer-heading { align-items: flex-start; padding-right: 0; border-right: 0; }
      #view-emp-dealers.is-list-view .employee-dealer-status { justify-content: flex-end; }
      #view-emp-dealers.is-list-view .employee-dealer-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #view-emp-dealers.is-list-view .employee-dealer-actions { padding: 8px 0 0; border-top: 1px solid #edf1f6; border-left: 0; }
      #view-emp-dealers.is-list-view .employee-dealer-card .employee-dealer-spec--monthly {
        grid-column: 1 / -1; min-height: 32px; flex-direction: row; align-items: center; justify-content: space-between;
      }
      #view-emp-dealers.is-list-view .employee-dealer-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
      .employee-performance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .employee-performance-charts { grid-template-columns: 1fr; }
    }
    @media (max-width: 520px) {
      .employee-performance-heading { align-items: flex-start; flex-direction: column; padding: 18px; }
      .employee-performance-heading h2 { font-size: 19px; }
      .employee-performance-period-control { width:100%; }
      .employee-performance-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
      .employee-performance-metric { min-height: 112px; padding: 12px; }
      .employee-performance-metric > strong { font-size: 20px; }
      .employee-performance-charts .chart-card { padding: 14px; }
      .employee-performance-charts .chart-box { height: 300px; }
      .employee-performance-follow-up-panel { padding: 15px; }
      .employee-performance-follow-up-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
      .employee-performance-follow-up-copy { grid-column: 1 / -1; }
      .employee-performance-follow-up-row .btn { justify-self: end; }
    }
    .long-work-topbar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 16px; }
    .long-work-heading {
      position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: 112px; align-items: center;
      margin-bottom: 0; padding: 20px 190px 20px 24px; border: 0; border-radius: 15px;
      background: linear-gradient(118deg, #12395b 0%, #075985 58%, #0879a8 100%);
      box-shadow: 0 8px 22px rgba(15, 46, 74, .13), inset 0 1px 0 rgba(255,255,255,.12);
    }
    .long-work-heading::after {
      position: absolute; z-index: -1; top: -98px; right: 8%; width: 250px; height: 250px;
      border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
      box-shadow: 0 0 0 22px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025);
      content: ''; pointer-events: none;
    }
    .long-work-heading > div { position: relative; z-index: 1; }
    .long-work-heading h2 { margin: 3px 0 4px; color: #fff; font-size: 22px; letter-spacing: -.025em; }
    .long-work-heading p { margin: 0; color: #d7e8f5; font-size: 13px; }
    .long-work-eyebrow { color: #1672b8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
    .long-work-heading .long-work-eyebrow { color: #b9ddf5; }
    .long-work-schema-notice { display: grid; gap: 7px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #f1d8a8; border-left: 4px solid #d9902f; border-radius: 10px; background: #fffaf0; color: #765520; font-size: 12px; line-height: 1.5; }
    .long-work-schema-notice[hidden], #longWorkLayout[hidden] { display: none; }
    .long-work-schema-notice strong { color: #654516; font-size: 13px; }
    .long-work-schema-notice p { margin: 0; }
    .long-work-schema-notice a { width: fit-content; color: #075985; font-weight: 700; text-decoration: underline; }
    .panel.long-work-create { margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .long-work-create--toolbar { position: absolute; z-index: 2; top: 50%; right: 24px; transform: translateY(-50%); }
    .long-work-create--toolbar[open] { position: relative; top: auto; right: auto; grid-column: 1; grid-row: 2; margin-top: 12px; transform: none; overflow: hidden; border: 1px solid #e4edf4; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(24, 53, 78, .07); }
    #workItemCreatePanel[hidden] { display: none; }
    .long-work-create > summary {
      display: flex; height: 100%; min-height: 64px; align-items: center; justify-content: center;
      padding: 0; cursor: pointer; list-style: none;
      transition: background .16s ease;
    }
    .long-work-create > summary:hover { background: transparent; }
    .long-work-create > summary:focus-visible { outline: 3px solid rgba(8, 121, 168, .25); outline-offset: 2px; border-radius: 10px; }
    .long-work-create > summary::-webkit-details-marker { display: none; }
    .long-work-create-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #cfe0ee; border-radius: 10px; color: #075985; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
    .long-work-create > summary:hover .long-work-create-action { border-color: #a9cbdf; background: #edf6fb; transform: translateY(-1px); }
    .long-work-create-close-label { display: none; }
    .long-work-create[open] > summary { height: auto; min-height: 50px; justify-content: flex-end; padding: 10px 14px; border-bottom: 1px solid #e8eef4; background: #f8fbfd; }
    .long-work-create[open] .long-work-create-action { min-height: 34px; padding: 0 10px; border-color: #d7e3ed; color: #52677c; background: #fff; font-size: 11px; }
    .long-work-create[open] .long-work-create-open-label { display: none; }
    .long-work-create[open] .long-work-create-close-label { display: inline; }
    .long-work-form { padding: 16px 18px 18px; }
    .long-work-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .long-work-form-title { grid-column: auto; }
    .long-work-form-description { grid-column: span 2; }
    .long-work-form textarea, .long-work-update-form textarea { width: 100%; resize: vertical; }
    .long-work-optional { color: #8190a1; font-size: 11px; font-weight: 500; }
    .long-work-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
    .long-work-form-actions > span { color: #718096; font-size: 11px; line-height: 1.45; }
    .long-work-update-form .long-work-form-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3edf4; }
    .long-work-layout { display: grid; grid-template-columns: minmax(290px, .78fr) minmax(0, 1.48fr); gap: 16px; align-items: start; }
    .long-work-list-panel, .long-work-detail-panel { min-width: 0; padding: 18px; border: 1px solid #e4edf4; box-shadow: 0 5px 18px rgba(24, 53, 78, .05); }
    .long-work-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding-bottom: 12px; border-bottom: 1px solid #edf2f6; }
    .long-work-panel-heading h3 { margin: 0; color: #1e3a54; font-size: 15px; }
    .long-work-panel-heading p { margin: 3px 0 0; color: #718096; font-size: 11px; }
    .long-work-panel-heading select { width: auto; min-width: 130px; min-height: 36px; padding: 0 9px; font-size: 11px; }
    .long-work-list { display: grid; gap: 8px; }
    .long-work-item {
      display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 10px;
      padding: 11px 12px; border: 1px solid #e2eaf1; border-left: 4px solid #cbd5e1; border-radius: 9px;
      background: #fff; color: inherit; text-align: left; cursor: pointer;
      transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    .long-work-item:hover { border-color: #bfd3e4; background: #f8fbfd; transform: translateY(-1px); }
    .long-work-item:focus-visible { outline: 3px solid rgba(8, 121, 168, .22); outline-offset: 2px; }
    .long-work-item.is-selected { border-color: #9dc8dc; box-shadow: 0 0 0 2px rgba(8, 121, 168, .11), 0 5px 14px rgba(24, 53, 78, .06); }
    .long-work-item--in_progress { border-color: #f4c278; border-left-color: #c2410c; background: #fff0d6; }
    .long-work-item--completed { border-color: #a8d5b5; border-left-color: #15803d; background: #e4f4e9; }
    .long-work-item--not_completed { border-color: #edaaaa; border-left-color: #b91c1c; background: #fde5e5; }
    .long-work-item--in_progress:hover { border-color: #e9ae51; background: #ffe4b5; }
    .long-work-item--completed:hover { border-color: #80c491; background: #d3efdc; }
    .long-work-item--not_completed:hover { border-color: #e58b8b; background: #fbd4d4; }
    .long-work-item-main { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
    .long-work-item-main strong { color: #1e3a54; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
    .long-work-item-owner { color: #526b80; font-size: 10.5px; line-height: 1.35; }
    .long-work-item-side { display: flex; flex: 0 0 auto; align-items: center; }
    .long-work-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
    .long-work-status--in_progress { background: #ffedd5; color: #9a4f08; }
    .long-work-status--completed { background: #e8f6ee; color: #256843; }
    .long-work-status--not_completed { background: #fee2e2; color: #a52e2e; }
    .long-work-empty { display: grid; justify-items: center; gap: 5px; padding: 22px 14px; border: 1px dashed #d7e1ea; border-radius: 9px; color: #718096; text-align: center; font-size: 11px; line-height: 1.5; }
    .long-work-empty strong { color: #40566a; font-size: 12px; }
    .long-work-detail-empty { min-height: 180px; align-content: center; }
    .long-work-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #d9e8f1; border-left: 4px solid #177eab; border-radius: 11px; background: linear-gradient(120deg, #eff7fb 0%, #fff 78%); }
    .long-work-detail-heading h3 { margin: 3px 0 0; color: #173c59; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
    .long-work-description { margin: 12px 0 0; color: #53677b; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
    .long-work-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 8px; margin: 14px 0; }
    .long-work-meta > div { display: grid; gap: 5px; padding: 12px; border: 1px solid #e1eaf2; border-top: 2px solid #c8deeb; border-radius: 9px; background: #f8fbfd; }
    .long-work-meta span { color: #7b8b9b; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .long-work-meta strong { color: #334e68; font-size: 11px; line-height: 1.4; }
    .long-work-service-link { min-height: 36px; margin: -3px 0 4px; border-color: #c6dbe8; color: #075985; background: #f8fbfd; }
    .long-work-linked-visits { margin: 12px 0; padding: 14px; border: 1px solid #d7e7f1; border-left: 3px solid #4d9ac0; border-radius: 10px; background: #f4f9fc; box-shadow: 0 3px 10px rgba(24, 53, 78, .035); }
    .long-work-linked-visits-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
    .long-work-linked-visits-heading > div { display:flex; align-items:baseline; gap:8px; }
    .long-work-linked-visits-heading h4 { margin:0; color:#294761; font-size:12px; }
    .long-work-linked-visits-heading > div > span { color:#8190a1; font-size:10px; }
    .long-work-linked-visits-heading .btn { min-height:32px; padding:6px 9px; font-size:10.5px; }
    .long-work-linked-visits ul { display:grid; gap:6px; margin:9px 0 0; padding:0; list-style:none; }
    .long-work-linked-visits li { display:grid; grid-template-columns:minmax(0, 1fr) auto auto; align-items:center; gap:8px; min-width:0; padding-top:7px; border-top:1px solid #e8eef3; }
    .long-work-linked-visit-copy { display:grid; min-width:0; gap:2px; }
    .long-work-linked-visit-copy strong { color:#3c566d; font-size:10.5px; overflow-wrap:anywhere; }
    .long-work-linked-visit-copy > span { color:#8291a0; font-size:9.5px; }
    .long-work-linked-visits li .status-pill { margin:0; font-size:9px; }
    .long-work-linked-visits li .btn { min-height:28px; padding:4px 8px; font-size:10px; }
    .long-work-linked-visits-empty { margin:9px 0 0; color:#718096; font-size:10.5px; }
    .long-work-outcome-summary { display: grid; gap: 4px; margin: 12px 0; padding: 10px 12px; border-left: 3px solid #5b9b75; border-radius: 6px; background: #f1f8f3; color: #44634f; font-size: 12px; line-height: 1.5; }
    .long-work-update-form { margin-top: 14px; padding: 16px; border: 1px solid #dce8f1; border-top: 3px solid #1672b8; border-radius: 12px; background: #f7fbfe; box-shadow: 0 4px 14px rgba(24, 53, 78, .045); }
    .long-work-update-form h4, .long-work-timeline-heading h4 { margin: 0; color: #294761; font-size: 13px; }
    .long-work-update-form h4 { display: flex; align-items: center; gap: 9px; }
    .long-work-update-form h4::before { width: 8px; height: 8px; border-radius: 50%; background: #1672b8; box-shadow: 0 0 0 4px #e2f1f8; content: ''; }
    .long-work-update-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
    .long-work-update-grid .form-group { margin-bottom: 0; }
    #workUpdateOutcomeGroup[hidden] { display: none; }
    #workItemInitialOtherStageGroup[hidden], #workUpdateOtherStageGroup[hidden] { display: none; }
    .long-work-update-grid .form-group label { font-size: 10.5px; }
    .long-work-update-grid input, .long-work-update-grid select { min-height: 38px; font-size: 11px; }
    .long-work-update-note { grid-column: span 2; }
    .long-work-update-grid textarea { min-height: 76px; font-size: 11px; }
    .long-work-timeline { margin-top: 18px; }
    .long-work-timeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .long-work-timeline-heading > div { display: grid; gap: 3px; }
    .long-work-timeline-heading > div > span { color: #8190a1; font-size: 10px; }
    .long-work-timeline-heading > span { color: #718096; font-size: 10px; line-height: 1.45; text-align: right; }
    .long-work-timeline ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
    .long-work-timeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; min-width: 0; padding-bottom: 13px; }
    .long-work-timeline li:not(:last-child)::before { position: absolute; top: 29px; bottom: -1px; left: 13px; width: 2px; background: #dce8f1; content: ''; }
    .long-work-timeline-dot { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; margin-top: 1px; border: 3px solid #e1eff8; border-radius: 50%; background: #1672b8; color: #fff; font-size: 9px; font-weight: 800; }
    .long-work-timeline-entry { min-width: 0; padding: 12px 14px; border: 1px solid #e5edf3; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(24, 53, 78, .035); }
    .long-work-timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .long-work-timeline-meta strong { color: #294761; font-size: 12px; }
    .long-work-timeline-meta time { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #e7eef4; border-radius: 999px; background: #f7fafc; color: #718096; font-size: 10px; }
    .long-work-timeline-entry p { margin: 9px 0 10px; color: #435b70; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
    .long-work-timeline-author { display: block; padding-top: 8px; border-top: 1px solid #edf2f6; color: #8190a1; font-size: 10px; }
    @media (max-width: 1000px) {
      .long-work-layout { grid-template-columns: minmax(0, 1fr); }
      .long-work-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px) {
      .long-work-topbar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
      .long-work-heading { padding: 18px 142px 18px 18px; }
      .long-work-heading h2 { font-size: 19px; }
      .long-work-create--toolbar, .long-work-create--toolbar[open] { grid-column: 1; grid-row: auto; }
      .long-work-create--toolbar { right: 12px; }
      .long-work-create--toolbar > summary { min-height: 46px; }
      .long-work-create-action { width: 100%; }
      .long-work-create[open] .long-work-create-action { width: auto; }
      .long-work-form { padding: 13px; }
      .long-work-form-grid { grid-template-columns: minmax(0, 1fr); }
      .long-work-form-title, .long-work-form-description { grid-column: auto; }
      .long-work-form-actions { align-items: stretch; flex-direction: column; }
      .long-work-form-actions .btn { width: 100%; }
      .long-work-list-panel, .long-work-detail-panel { padding: 13px; }
      .long-work-panel-heading { align-items: flex-start; flex-direction: column; }
      .long-work-panel-heading select { width: 100%; }
      .long-work-item { align-items: center; flex-direction: row; }
      .long-work-item-side { width: auto; }
      .long-work-update-form { padding: 11px; }
      .long-work-update-grid { grid-template-columns: minmax(0, 1fr); }
      .long-work-update-note { grid-column: auto; }
      .long-work-timeline-heading { flex-direction: column; }
      .long-work-timeline-heading > span { text-align: left; }
      .long-work-timeline-meta { align-items: flex-start; flex-direction: column; }
      .long-work-linked-visits-heading { align-items:flex-start; flex-direction:column; }
      .long-work-linked-visits li { grid-template-columns:minmax(0, 1fr) auto; }
      .long-work-linked-visits li .status-pill { grid-column:1; justify-self:start; }
      .long-work-linked-visits li .btn { grid-column:2; grid-row:1 / span 2; }
    }
    #nDealerTargetFields[hidden], #nProspectTargetFields[hidden] { display:none; }
    #nTargetTypeField[hidden], #leaveTypeField[hidden], #nTimeField[hidden] { display:none; }
    #technicalIssueTypeField[hidden], #technicalVehicleFields[hidden] { display:none; }
    #nDealerTargetFields > .form-group { margin-top:12px; }
    #newModal .visit-work-item-field[hidden] { display:none; }
    #newModal .visit-work-item-field { margin:12px 0 0; }
    #newModal .visit-work-item-hint { display:block; margin-top:5px; color:#718096; font-size:10.5px; line-height:1.45; }

    /* BAĞIMSIZ İŞ GEÇMİŞİ SAYFASI KARTLARI & KRONİK UYARI */
    .dealer-history-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
    }
    .history-card-header { display:flex; align-items:center; gap:10px; }
    .history-card-toggle {
      flex:1; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px;
      padding:5px; border:0; border-radius:8px; background:transparent; color:var(--text-main);
      text-align:left; cursor:pointer;
    }
    .history-card-toggle:hover { background:#f8fafc; }
    .history-card-toggle:focus-visible { outline:3px solid rgba(11, 92, 171, .2); outline-offset:1px; }
    .history-card-copy { min-width:0; }
    .history-card-name { display:block; font-size:14px; font-weight:700; line-height:1.35; }
    .history-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; margin-top:4px; color:var(--text-muted); font-size:11.5px; line-height:1.4; }
    .history-card-meta-divider { color:#b5c1cc; }
    .history-card-last-visit { display:inline-flex; align-items:center; padding:2px 7px; border:1px solid #d9e8f4; border-radius:999px; background:#f0f7fc; color:#315d7b; font-size:10px; font-weight:700; white-space:nowrap; }
    .history-card-last-visit.is-empty { border-color:#f1dfb8; background:#fff8e9; color:#8a5a11; }
    .history-card-indicators { display:flex; align-items:center; gap:4px; flex-shrink:0; padding:3px; border:1px solid #dce8f1; border-radius:999px; background:#f4f8fb; }
    .history-card-indicators.is-empty { border-color:#f0dfbd; background:#fff9ed; }
    .history-card-count { padding:4px 7px; border-radius:999px; background:transparent; color:#315d7b; font-size:10.5px; font-weight:750; white-space:nowrap; }
    .history-card-count.is-empty { color:#8a5a11; }
    .history-card-chevron { display:grid; width:22px; height:22px; place-items:center; border:1px solid #dce8f1; border-radius:50%; background:#fff; color:var(--primary); font-size:14px; font-weight:750; }
    .history-card-specs {
      display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:7px;
      margin:10px 0 0; padding:0;
    }
    .history-card-specs > div { min-width:0; padding:7px 9px; border:1px solid #e6edf3; border-radius:8px; background:#f8fafc; }
    .history-card-specs dt { color:#74869a; font-size:9px; font-weight:750; letter-spacing:.035em; text-transform:uppercase; }
    .history-card-specs dd { margin:3px 0 0; color:#344e63; font-size:11px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
    .history-card-note { margin:8px 0 0; padding:8px 10px; border-left:3px solid #b6d2e4; border-radius:6px; background:#f7fafc; color:#52677b; font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
    .history-card-note strong { margin-right:6px; color:#344e63; }
    .history-card-content { padding-top:10px; }
    .history-card-content[hidden] { display:none; }
    .dealer-history-timeline-section { margin-top:12px; padding-top:14px; border-top:1px solid #e5edf4; }
    .dealer-history-timeline-section > h4 { display:flex; align-items:center; gap:9px; margin:0; color:#203b55; font-size:15px; font-weight:800; letter-spacing:-.01em; }
    .dealer-history-timeline-section > h4::before { width:4px; height:18px; border-radius:99px; background:var(--primary); content:""; }
    .dealer-history-timeline { display:grid; gap:9px; margin:12px 0 0; padding:0; list-style:none; }
    .dealer-history-timeline-event {
      display:grid; grid-template-columns:116px minmax(0, 1fr); align-items:start; gap:8px 14px;
      padding:13px 15px; border:1px solid #e2eaf1; border-left:3px solid #83b4d2; border-radius:11px;
      background:linear-gradient(120deg, #fbfdff 0%, #fff 42%); box-shadow:0 2px 7px rgba(27, 55, 79, .035);
      transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }
    .dealer-history-timeline-event:hover { border-color:#c8dce9; box-shadow:0 5px 13px rgba(27, 55, 79, .07); transform:translateY(-1px); }
    .dealer-history-timeline-event--work { border-left-color:#71a783; background:linear-gradient(120deg, #fbfefb 0%, #fff 42%); }
    .dealer-history-timeline-event > time {
      justify-self:start; padding:6px 8px; border:1px solid #e1eaf1; border-radius:8px; background:#f3f7fa;
      color:#536b80; font-size:10.5px; font-weight:750; font-variant-numeric:tabular-nums; line-height:1.35; white-space:nowrap;
    }
    .dealer-history-timeline-copy { display:grid; min-width:0; gap:7px; color:#53677b; font-size:12px; line-height:1.55; }
    .dealer-history-timeline-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
    .dealer-history-timeline-kind { padding:4px 8px; border:1px solid #d8e6f0; border-radius:999px; background:#eff6fb; color:#315d7b; font-size:9px; font-weight:800; letter-spacing:.04em; }
    .dealer-history-timeline-event--work .dealer-history-timeline-kind { border-color:#d8e8dc; background:#eff7f0; color:#42664a; }
    .dealer-history-timeline-copy > strong { color:#294761; font-size:12.5px; font-weight:750; line-height:1.45; }
    .dealer-history-timeline-copy > p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
    .dealer-history-timeline-copy > small { justify-self:start; padding:3px 7px; border-radius:6px; background:#f5f7f9; color:#75869a; font-size:10px; }
    .dealer-history-timeline-action {
      justify-self:start; padding:5px 9px; border:1px solid #d8e6f0; border-radius:7px;
      background:#f5f9fc; color:#176a9b; font:inherit; font-size:10.5px; font-weight:750; cursor:pointer;
    }
    .dealer-history-timeline-action:hover { border-color:#b9d1e1; background:#eaf4fb; }
    .dealer-history-timeline-action:focus-visible, .history-visit-work-link:focus-visible { outline:3px solid rgba(11, 92, 171, .2); outline-offset:2px; }
    .dealer-history-timeline-empty { margin:12px 0 0; padding:18px; border:1px dashed #d7e3ec; border-radius:10px; background:#f8fafc; color:#748397; font-size:12px; text-align:center; }
    .history-visit-outcome, .history-visit-follow-up { padding:8px 10px; border-radius:7px; color:#53677b; font-size:11px; line-height:1.5; }
    .history-visit-outcome { border-left:3px solid #78a98a; background:#f3f8f4; }
    .history-visit-follow-up { border-left:3px solid #d4a554; background:#fff9ed; }
    .history-visit-comments { display:grid; gap:5px; margin:2px 0 0; padding:9px 10px 9px 27px; border-radius:8px; background:#f7f9fb; color:#53677b; font-size:11px; line-height:1.5; }
    .history-visit-work-link { margin-top:1px; padding:7px 9px; border:1px solid #d6e5f0; border-radius:8px; background:#f2f8fc; color:#315d7b; font:inherit; font-size:11px; font-weight:650; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
    .history-visit-work-link:hover { border-color:#a9c7dc; background:#eaf4fb; }
    .history-page-heading {
      display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:12px 20px;
      margin-bottom:14px; padding:17px 18px; border:1px solid #dce7f0; border-top:3px solid #4f91b8; border-radius:15px;
      background:linear-gradient(145deg, #fff 0%, #fbfdff 100%); box-shadow:0 4px 14px rgba(15, 36, 58, .055);
    }
    .history-page-eyebrow {
      display:inline-flex; margin-bottom:6px; padding:4px 7px; border:1px solid #dcebf2; border-radius:999px;
      background:#f1f8fb; color:#176a7d; font-size:9px; font-weight:800; letter-spacing:.11em;
    }
    #view-dealer-history #historyPageHeading {
      margin:0; color:#1e3550; font-size:22px; font-weight:800; letter-spacing:-.03em; line-height:1.2;
    }
    #view-dealer-history .history-page-heading p {
      max-width:680px; margin:6px 0 0; color:#687d91; font-size:12px; line-height:1.45;
    }
    .history-page-metrics { display:flex; flex:0 0 auto; gap:8px; }
    .history-page-metric {
      display:flex; align-items:center; gap:8px; min-width:108px; min-height:42px; padding:7px 10px;
      border:1px solid #dce8f1; border-radius:10px; background:#f7fafc; box-shadow:0 1px 3px rgba(15, 36, 58, .035);
    }
    .history-page-metric strong { color:#174e76; font-size:18px; line-height:1; font-variant-numeric:tabular-nums; }
    .history-page-metric span { color:#53677b; font-size:10.5px; font-weight:700; }
    .history-filter-panel {
      grid-column:1 / -1; min-width:0; padding:13px; border:1px solid #e5edf4; border-radius:12px;
      background:#f8fafc;
    }
    .history-filter-panel-heading {
      display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px;
    }
    .history-filter-panel-heading h3 { margin:0; color:#1e3550; font-size:13px; font-weight:800; }
    .history-filter-panel-heading .btn { min-height:34px; padding:7px 11px; border-radius:8px; font-size:10.5px; }
    .history-filter-controls {
      display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px;
    }
    .history-filter-field { display:flex; min-width:0; flex-direction:column; gap:5px; }
    .history-filter-field label { color:#475569; font-size:10.5px; font-weight:750; }
    .history-filter-field input, .history-filter-field select {
      width:100%; min-width:0; min-height:40px; padding:8px 11px; border:1px solid #d6e2ec;
      border-radius:9px; background:#fff; color:#243b53; font-size:11.5px; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    .history-filter-field input::placeholder { color:#94a3b8; }
    .history-filter-field input:focus, .history-filter-field select:focus {
      border-color:#4a90c2; outline:0; box-shadow:0 0 0 3px rgba(11, 92, 171, .12); background:#fff;
    }
    .history-filter-field:focus-within label { color:#0b5cab; }
    @media (max-width: 1000px) {
      .history-page-heading { align-items:start; }
      .history-filter-controls { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px) {
      .history-card-header { align-items:flex-start; flex-direction:column; }
      .history-card-toggle { width:100%; align-items:flex-start; }
      .history-card-indicators { flex-wrap:wrap; justify-content:flex-end; }
      .history-filter-controls { grid-template-columns:1fr; }
      .history-page-heading { grid-template-columns:minmax(0, 1fr) auto; gap:9px 8px; padding:12px; }
      .history-page-metrics { display:grid; gap:4px; }
      .history-page-metric { min-width:88px; min-height:30px; gap:5px; padding:4px 6px; }
      .history-page-metric strong { font-size:14px; }
      .history-page-metric span { font-size:9px; }
      .history-filter-panel-heading { align-items:center; }
      .history-filter-panel-heading .btn { flex:0 0 auto; }
      .dealer-history-timeline-event { grid-template-columns:1fr; gap:5px; }
    }
    .history-card-header > .btn {
      display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:8px 12px;
      border:1px solid transparent; border-radius:9px; background:var(--brand-gradient); color:#fff; font-size:11px; font-weight:750;
      white-space:nowrap; box-shadow:0 4px 10px rgba(0, 74, 150, .22); transition:filter .15s ease, transform .15s ease;
    }
    .history-card-header > .btn::before { content:"+"; display:inline; font-size:inherit; line-height:1; }
    .history-card-header > .btn:hover { filter:brightness(1.06); transform:translateY(-1px); }
    .history-card-header > .btn:focus-visible { outline:3px solid rgba(0, 74, 150, .25); outline-offset:2px; }
    @media (max-width: 700px) {
      .history-card-header > .btn { min-height:44px; align-self:flex-end; }
    }
    /* BOYA SERİSİ ROZETLERİ */
    .series-pill {
      font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block;
    }
    .ser-90 { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
    .ser-22 { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
    .ser-baslac { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
    .ser-100 { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
    .ser-68 { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }

    /* Individual GPS Tracking Cards */
    .emp-gps-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
    .emp-gps-header {
      display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
      padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
    }
    .gps-stat-pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: #f1f5f9; border: 1px solid var(--border); color: var(--text-main); }

    /* Matrix / Calendar Grid (Admin) */
    .matrix-container { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; box-shadow: var(--shadow-sm); }
    .matrix-table { width: 100%; border-collapse: collapse; min-width: 1220px; }
    .matrix-table th, .matrix-table td { border: 1px solid var(--border); vertical-align: top; padding: 10px; }
    .matrix-table th { background: #f8fafc; font-size: 12.5px; font-weight: 700; text-align: center; padding: 12px 8px; color: var(--text-main); }
    .matrix-table th.today { border-top: 3px solid var(--primary); background: #eff6ff; color: var(--primary); }
    .emp-cell { width: 185px; background: #f8fafc; }
    .schedule-view-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:0 0 12px; }
    #view-weekly > .admin-schedule-filters {
      display:grid; width:100%; grid-template-columns:minmax(0, 1fr); gap:12px;
      align-items:stretch; margin-bottom:14px; padding:14px;
      border:1px solid #dfe7ef; border-radius:14px;
      background:linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
      box-shadow:var(--shadow-sm);
    }
    .admin-schedule-toolbar-main { display:flex; width:100%; min-width:0; align-items:center; justify-content:space-between; gap:12px; }
    .admin-week-switcher { min-width:0; }
    .admin-schedule-create { min-height:42px; padding:9px 16px; white-space:nowrap; }
    .admin-schedule-filter-controls { display:grid; width:100%; grid-template-columns:1.3fr 1fr 1.15fr .9fr; gap:10px; align-items:end; }
    .admin-schedule-filter-field { display:grid; min-width:0; gap:5px; }
    .admin-schedule-filter-field label { color:#526579; font-size:11px; font-weight:750; }
    .admin-schedule-filter-field input,
    .admin-schedule-filter-field select { width:100%; min-width:0; min-height:40px; background:#fff; }
    .schedule-view-toggle {
      display:inline-flex; flex-wrap:wrap; gap:3px; padding:4px;
      border:1px solid #e1e8f0; border-radius:11px; background:#eef3f8;
    }
    .schedule-view-toggle .btn {
      min-height:36px; padding:7px 14px; border-color:transparent; border-radius:8px;
      background:transparent; color:#526579; box-shadow:none;
    }
    .schedule-view-toggle .btn:hover { background:#fff; color:var(--primary); }
    .schedule-view-toggle button.is-selected {
      background:#fff; border-color:#d7e4f0; color:var(--primary);
      box-shadow:0 1px 3px rgba(15, 23, 42, .08);
    }
    .schedule-agenda-day { display:flex; align-items:center; gap:8px; }
    .schedule-agenda-day label { color:var(--text-muted); font-size:12px; font-weight:700; }
    .schedule-view-panel[hidden] { display:none !important; }
    .daily-agenda-summary { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:12px; }
    .daily-agenda-summary .status-pill { cursor:default; }
    .daily-agenda-list { display:grid; gap:8px; }
    .daily-agenda-card { display:grid; grid-template-columns:74px minmax(0, 1fr); align-items:start; gap:12px; }
    .daily-agenda-time { color:var(--primary); font-size:15px; font-weight:800; white-space:nowrap; padding-top:2px; }
    .daily-agenda-main { min-width:0; }
    .daily-agenda-main .task-top { flex-wrap:wrap; }
    .daily-agenda-main .task-title { margin:2px 0; }
    .daily-agenda-meta { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-top:5px; }
    @media (max-width: 700px) {
      .daily-agenda-card { grid-template-columns:1fr; gap:4px; }
      .daily-agenda-time { padding-top:0; }
    }
    @media (max-width: 900px) {
      .admin-schedule-filter-controls { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 700px) {
      #view-weekly > .admin-schedule-filters { padding:11px; }
      .admin-schedule-toolbar-main { align-items:stretch; flex-direction:column; }
      .admin-schedule-create { width:100%; }
      .admin-schedule-filter-controls { grid-template-columns:minmax(0, 1fr); gap:8px; }
      .schedule-view-toolbar { align-items:stretch; }
      .schedule-view-toggle { display:grid; width:100%; grid-template-columns:repeat(2, minmax(0, 1fr)); }
      .schedule-view-toggle .btn { padding-inline:8px; }
    }

    /* Task Cards */
    .task-card { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; cursor: pointer; transition: 0.15s; box-shadow: var(--shadow-sm); }
    .task-card:hover { background: var(--bg-card-hover); transform: translateY(-1px); border-color: var(--primary); box-shadow: var(--shadow-md); }
    .task-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 4px; }
    .map-dealer-status {
      display:inline-flex; max-width:64%; padding:3px 7px; border-radius:999px; font-size:9.5px;
      font-weight:750; line-height:1.3; text-align:right; overflow-wrap:anywhere;
    }
    .map-dealer-status--new { background:#eff6ff; color:#1d4ed8; }
    .map-dealer-status--overdue { background:#fee2e2; color:#991b1b; }
    .map-dealer-status--approaching { background:#fff7ed; color:#9a3412; }
    .map-dealer-status--recent { background:#f1f5f9; color:#64748b; }
    .map-dealer-card-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 8px; }
    .map-dealer-card-footer .task-sub { margin-bottom:0; }
    .map-dealer-card-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:5px; }
    .map-dealer-card-actions .map-dealer-action { min-height:28px; padding:4px 7px; font-size:10px; white-space:nowrap; }

    .type-badge {
      font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
      background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe;
      display: inline-block; margin-bottom: 5px;
    }

    .status-pill { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
    .st-approved { background: #d1fae5; color: #065f46; }
    .st-pending { background: #fef3c7; color: #92400e; }
    .st-rejected { background: #fee2e2; color: #991b1b; }
    .st-planned { background: #e2e8f0; color: #334155; }
    .st-completed { background: #d1fae5; color: #065f46; }
    .st-in-progress { background: #dbeafe; color: #1d4ed8; }

    .task-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; color: var(--text-main); }
    .task-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
    .arrival-badge {
      display: grid; width: 100%; gap: 5px; margin-bottom: 4px; padding: 8px 10px;
      border: 1px solid #dbe5ef; border-radius: 8px; background: #f8fafc;
      color: #334155; font-size: 11px; font-weight: 600; text-align: left;
    }
    .arrival-badge-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .arrival-badge-distance { min-width: 0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
    .arrival-badge-time { flex: 0 0 auto; color: #64748b; font-size: 10px; font-variant-numeric: tabular-nums; }
    .arrival-badge-note { color: #64748b; font-size: 10px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
    .arrival-reported { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
    .arrival-far { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
    .arrival-wait { background: #f8fafc; color: #64748b; border: 1px dashed #cbd5e1; }
    .location-trust-note {
      display: inline-block; margin: 4px 0; padding: 4px 7px; border: 1px solid #fed7aa;
      border-radius: 6px; background: #fff7ed; color: #9a3412; font-size: 11px; font-weight: 700;
    }

    /* Task Status Board */
    .approval-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
    .approval-col { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
    .approval-col h4 { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
    .approval-empty-state { padding:24px; border:1px dashed #cbd5e1; border-radius:10px; background:#fff; color:var(--text-muted); text-align:center; }

    .employee-deletion-requests-heading {
      display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:21px 23px;
      border:1px solid #dce5ef; border-left:4px solid #7356bd; border-radius:13px;
      background:linear-gradient(120deg, #fbfaff 0%, #f5f8fc 100%); box-shadow:var(--shadow-sm);
    }
    .employee-deletion-requests-heading > div { min-width:0; }
    .employee-deletion-requests-eyebrow { color:#7356bd; font-size:9px; font-weight:800; letter-spacing:.11em; }
    .employee-deletion-requests-heading h2 { margin:3px 0 4px; color:#1e3a54; font-size:21px; letter-spacing:-.02em; }
    .employee-deletion-requests-heading p { margin:0; color:#687b8f; font-size:12px; line-height:1.5; }
    .employee-deletion-requests-meta {
      flex:0 0 auto; padding:6px 10px; border:1px solid #e1e8ef; border-radius:999px;
      background:#fff; color:#52677c; font-size:10px; font-weight:750;
    }
    .employee-deletion-requests-meta.is-pending { border-color:#f1d6ae; background:#fff7ed; color:#9a5c14; }
    .employee-deletion-requests-list { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap:12px; }
    .employee-deletion-requests-list .task-card { min-width:0; margin:0; padding:16px; border-radius:12px; }
    .employee-deletion-requests-empty {
      display:grid; justify-items:center; gap:5px; padding:32px 18px; border:1px dashed #d4dfeb;
      border-radius:12px; background:#fbfcfe; color:#718294; text-align:center; font-size:11px; line-height:1.5;
    }
    .employee-deletion-requests-empty strong { color:#34516b; font-size:13px; }
    #dealerDeletionRequestsPanel { margin-top:16px; }
    #dealerDeletionRequestsList { display:grid; gap:12px; }
    .dealer-deletion-request-card { cursor:default; margin:0; }
    .dealer-deletion-request-card:hover { transform:none; }
    .dealer-deletion-request-actions { display:flex; flex-wrap:wrap; gap:8px; }
    @media (max-width: 700px) {
      .employee-deletion-requests-heading { align-items:flex-start; flex-direction:column; padding:18px; }
      .employee-deletion-requests-heading h2 { font-size:19px; }
    }

    .add-slot-btn {
      width: 100%; background: #ffffff; border: 1px solid #dbe3ee;
      color: #334155; padding: 6px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 600; cursor: pointer; margin-top: auto;
    }
    .add-slot-btn:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }

    .view-section { display: none; }
    .view-section.active { display: block; animation:view-enter .2s ease-out both; }
    @keyframes view-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
    }

    .panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); }
    .panel.is-empty-follow-up { display: none; }
    .history-follow-up-panel:not(.is-empty-follow-up) { margin-bottom:18px; }
    .panel h3 { font-size: 15px; margin-bottom: 14px; }
    .follow-up-list { display: flex; flex-direction: column; gap: 8px; }
    .follow-up-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
    .follow-up-row.is-overdue { border-left: 4px solid var(--danger); }
    .follow-up-row.is-upcoming { border-left: 4px solid var(--warning); }
    .follow-up-copy { min-width: 0; }
    .follow-up-copy strong { display: block; font-size: 12.5px; }
    .follow-up-copy span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11.5px; }
    .follow-up-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
    .follow-up-empty { padding: 14px; border-radius: 8px; background: #f8fafc; color: var(--text-muted); font-size: 12.5px; }

    .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .data-table th, .data-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
    .data-table th { color: #475569; font-weight: 700; background: #f8fafc; font-size: 12px; }
    .data-table tr:hover td { background: #f8fafc; }

    /* Modal & Enhanced Form Design */
    .modal-backdrop {
      position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px); display: none; place-items: center; z-index: 999; padding: 16px;
    }
    .modal-backdrop.open { display: grid; }
    .modal {
      background: #ffffff; border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 650px; padding: 24px;
      max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    }
    #newModal .modal { max-width: 760px; padding: 28px; border-radius: 18px; }
    #newModal .modal-header {
      display:grid; grid-template-columns:minmax(0,1fr) auto 36px; align-items:center; gap:16px;
      margin-bottom:20px; padding-bottom:16px;
    }
    #newModal .modal-title-group { min-width:0; }
    #newModal .modal-title-group h3 { margin:0; color:#193b58; font-size:20px; letter-spacing:-.03em; line-height:1.2; }
    #newModal .modal-date-badge {
      display:flex; align-items:center; gap:9px; margin:0; padding:8px 11px;
      border:1px solid #dce8f3; border-radius:12px; background:#f7faff;
    }
    #newModal .modal-date-icon {
      display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center;
      border:1px solid #dce9f4; border-radius:9px; background:#fff; color:#3475a5;
    }
    #newModal .modal-date-icon .nav-icon { width:17px; height:17px; }
    #newModal .modal-date-copy { display:grid; min-width:0; gap:3px; }
    #newModal .modal-date-label {
      color:#8192a3; font-size:9px; font-weight:800; letter-spacing:.06em; line-height:1; text-transform:uppercase;
    }
    #newModal .modal-date-copy strong {
      color:#294761; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap;
    }
    #newModal .modal-header .btn-outline { width: 36px; height: 36px; padding: 0; border-radius: 10px; }
    @media (max-width:700px) {
      #newModal .modal-header { grid-template-columns:minmax(0,1fr) 36px; gap:10px 12px; }
      #newModal .modal-title-group { grid-column:1; grid-row:1; }
      #newModal .modal-date-badge { grid-column:1 / -1; grid-row:2; justify-self:start; }
      #newModal .modal-header .btn-outline { grid-column:2; grid-row:1; }
    }
    .modal-header {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
    }
    .modal-title-group h3 { font-size: 17px; font-weight: 800; margin-bottom: 3px; color: var(--text-main); }
    .modal-title-group span { font-size: 12px; color: var(--text-muted); }

    .form-section-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
    #newModal .form-section-box {
      background: #ffffff; border-color: #e2e8f0; border-radius: 12px;
      padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
    }
    #newModal .visit-section--dealer {
      padding: 18px 18px 16px 20px;
    }
    #newModal .visit-section--dealer,
    #newModal .visit-section--schedule {
      position: relative; overflow: hidden; padding-left: 20px;
    }
    #newModal .visit-section--dealer {
      border-color: #d7e5f3; background: linear-gradient(135deg, #f8fbff 0%, #ffffff 68%);
    }
    #newModal .visit-section--dealer::before,
    #newModal .visit-section--schedule::before {
      position: absolute; inset: 0 auto 0 0; width: 4px; content: "";
    }
    #newModal .visit-section--dealer::before { background: linear-gradient(180deg, #0757a2, #48a9dc); }
    #newModal .visit-section--schedule {
      border-color: #d4e7e8; background: linear-gradient(135deg, #f5fbfb 0%, #ffffff 68%);
    }
    #newModal .visit-section--schedule::before { background: linear-gradient(180deg, #0f766e, #38b8a5); }
    #newModal .visit-section .modal-section-heading {
      margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid #e8eef4;
    }
    #newModal .visit-section--schedule .modal-step-number {
      border: 1px solid #cce5e2; background: #e8f6f4; color: #0f766e;
    }
    .modal-section-heading {
      display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
      color: #1e293b; font-size: 13px; font-weight: 800;
    }
    #newModal .visit-section--dealer .modal-section-heading {
      margin-bottom: 16px;
      color: #1f4160;
      font-size: 13.5px;
    }
    .modal-step-number {
      display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px;
      border-radius: 8px; background: #eff6ff; color: var(--primary); font-size: 11px;
    }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .form-group:last-child { margin-bottom: 0; }
    .form-group label { font-size: 12px; font-weight: 700; color: #334155; display: flex; align-items: center; gap: 5px; }
    #newModal .visit-section--dealer .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 14px;
    }
    #newModal .visit-section--dealer .form-group {
      gap: 7px;
      margin-bottom: 12px;
    }
    #newModal .visit-section--dealer .form-group label {
      color: #40566b;
      font-size: 12px;
    }
    .visit-employee-hint {
      display:block; min-height:13px; overflow:hidden; color:#8494a4; font-size:10px;
      font-weight:650; line-height:1.35; text-overflow:ellipsis; white-space:nowrap;
    }
    .visit-employee-hint:empty { display:none; }
    #newModal .visit-section--dealer select {
      min-height: 42px;
      border-color: #d3dee8;
      border-radius: 9px;
      background: #fbfdff;
      color: #27445f;
      font-size: 12.5px;
      font-weight: 650;
      transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    #newModal .visit-section--dealer select:hover {
      border-color: #afc3d4;
      background: #ffffff;
    }
    #newModal .visit-section--dealer select:focus {
      border-color: #4387bd;
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(67, 135, 189, .11);
    }
    #newModal .visit-section--dealer #nDealerTargetFields > .form-group {
      margin-top: 0;
    }

    #newModal .day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
    .day-chip {
      position: relative; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      border: 1px solid #d8e2ed; border-radius: 11px;
      padding: 9px 3px; text-align: center; cursor: pointer; transition: 0.16s ease;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      min-width: 0; min-height: 72px; font-family: inherit; font-size: inherit; color: #334155;
      box-shadow: 0 2px 5px rgba(20, 45, 70, .04);
    }
    .day-chip:hover { transform: translateY(-1px); border-color: #75a8d1; box-shadow: 0 5px 12px rgba(15, 73, 125, .1); }
    .day-chip.is-today:not(.selected) { border-color: #58b4a8; background: linear-gradient(180deg, #f2fbf9 0%, #ffffff 100%); }
    .day-chip.selected {
      transform: translateY(-2px); border-color: #0757a2;
      background: linear-gradient(145deg, #0757a2 0%, #0c78bb 100%);
      color: #ffffff; box-shadow: 0 7px 16px rgba(7, 87, 162, .24);
    }
    .day-chip:focus-visible { outline: 3px solid rgba(0, 74, 150, .25); outline-offset: 2px; }
    .day-chip strong { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: .01em; }
    .day-chip span { margin-top: 3px; color: #718096; font-size: 10px; font-variant-numeric: tabular-nums; }
    .day-chip.selected span { color: #e0f2fe; }
    .day-chip-today { margin-top:3px; color:#14786e; font-size:9px; font-weight:800; line-height:1; }
    .day-chip.selected .day-chip-today { color:#d5f5ee; }
    #newModal .visit-section--schedule .form-group label { color: #2b465c; }
    #newModal .visit-section--schedule #nTime {
      min-height: 44px; border-color: #d4e1eb; border-radius: 10px; background: #f8fafc; font-weight: 600;
    }
    #newModal .visit-section--schedule #nTime:focus {
      border-color: #0f766e; outline: 3px solid rgba(15, 118, 110, .12);
    }

    .dealer-preview-card {
      margin-top:8px; padding:12px 14px; border-radius:12px;
      display:grid; grid-template-columns:minmax(140px,1fr) auto;
      align-items:center; gap:14px;
      background:linear-gradient(135deg,#f3f9ff 0%,#ffffff 78%);
      border:1px solid #d4e4f2; box-shadow:0 3px 9px rgba(27,58,87,.045); font-size:12px;
    }
    .dealer-preview-card.is-empty {
      grid-template-columns: minmax(0, 1fr);
      min-height: 68px;
      align-content: center;
      border-style: dashed;
      border-color: #d5e1ec;
      background: #fafcff;
    }
    .dealer-preview-empty {
      display: grid;
      gap: 3px;
      min-width: 0;
      align-content: center;
    }
    .dealer-preview-empty strong { color: #40586d; font-size: 12px; }
    .dealer-preview-empty span { color: #7b8b99; font-size: 10.5px; line-height: 1.45; }
    .dealer-preview-meta { display:flex; min-width:0; align-items:center; gap:11px; }
    .dealer-preview-icon {
      display:grid; width:36px; height:36px; flex:0 0 36px; place-items:center;
      border:1px solid #dce9f4; border-radius:10px; background:#fff; color:#3475a5;
    }
    .dealer-preview-icon .nav-icon { width:18px; height:18px; }
    .dealer-preview-copy { display:grid; min-width:0; gap:3px; }
    .dealer-preview-label { color:#8192a3; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
    .dealer-preview-location { color:#294761; font-size:12px; font-weight:800; }
    .dealer-preview-meta .crm-health { margin-top: 0; padding: 5px 9px; border-radius: 999px; font-size: 10px; }
    .dealer-preview-card > .btn-maps { white-space: nowrap; }
    @media (max-width: 600px) {
      .dealer-preview-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
      .dealer-preview-meta { grid-column: 1 / -1; justify-content:flex-start; }
      .dealer-preview-card > .btn-maps { grid-column: 2; grid-row: 2; }
    }
    @media (max-width: 420px) {
      .dealer-preview-card { grid-template-columns: minmax(0, 1fr); }
      .dealer-preview-meta, .dealer-preview-card > .btn-maps { grid-column: 1; grid-row: auto; }
      .dealer-preview-meta { align-items:center; flex-direction:row; }
      .dealer-preview-card > .btn-maps { justify-self: end; }
    }

    .work-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .work-chip {
      position:relative; display:grid; min-width:0; min-height:78px;
      grid-template-columns:36px minmax(0,1fr) 18px; align-items:center; gap:10px;
      padding:11px 12px; border:1px solid #dbe5ef; border-radius:11px;
      background:linear-gradient(145deg,#fff 0%,#fbfdff 100%); color:#40566c;
      box-shadow:0 2px 7px rgba(27,58,87,.045); cursor:pointer; font:inherit;
      text-align:left; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
    }
    .work-chip:hover {
      transform:translateY(-1px); border-color:#9bbbd8;
      box-shadow:0 5px 13px rgba(27,58,87,.09);
    }
    .work-chip.selected {
      border-color:#4b8fc3; background:linear-gradient(145deg,#eef7ff 0%,#f8fbff 100%);
      color:#0757a2; box-shadow:0 0 0 2px rgba(0,74,150,.12),0 5px 12px rgba(0,74,150,.08);
    }
    .work-chip:focus-visible { outline:3px solid rgba(0,74,150,.2); outline-offset:2px; }
    .work-chip-icon {
      display:grid; width:36px; height:36px; place-items:center;
      border:1px solid #e3ebf3; border-radius:10px; background:#f3f7fb; color:#607b95;
      transition:border-color .16s ease,background .16s ease,color .16s ease;
    }
    .work-chip-icon .nav-icon { width:18px; height:18px; }
    .work-chip.selected .work-chip-icon {
      border-color:#c5def3; background:#fff; color:#0757a2;
    }
    .work-chip-copy { display:grid; min-width:0; gap:4px; }
    .work-chip-label { color:#344b61; font-size:12px; font-weight:800; line-height:1.25; }
    .work-chip.selected .work-chip-label { color:#0757a2; }
    .work-chip-copy small {
      display:-webkit-box; overflow:hidden; color:#8191a2; font-size:9.5px; font-weight:550;
      line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2;
    }
    .work-chip-check {
      display:grid; width:18px; height:18px; place-items:center; align-self:start;
      border:1px solid #d8e2eb; border-radius:50%; background:#fff; color:transparent;
      font-size:11px; font-weight:900;
    }
    .work-chip.selected .work-chip-check {
      border-color:#0b69ad; background:#0b69ad; color:#fff;
    }
    #leavePlanAction[hidden] { display:none; }
    .leave-plan-action {
      display:flex; align-items:center; justify-content:space-between; gap:12px;
      margin-top:12px; padding:13px 14px; border:1px solid #cfe7e4; border-left:3px solid #15938a;
      border-radius:11px; background:linear-gradient(135deg,#f2fbf9 0%,#fbfefd 100%);
    }
    .leave-plan-copy { display:grid; gap:3px; }
    .leave-plan-copy strong { color:#245d5a; font-size:12px; }
    .leave-plan-copy span { color:#738c8a; font-size:10.5px; line-height:1.4; }
    .leave-plan-button {
      min-height:38px; padding:8px 13px; border:1px solid #b9dcd7; border-radius:8px;
      background:#fff; color:#28736e; font:inherit; font-size:11px; font-weight:800; cursor:pointer;
    }
    .leave-plan-button:hover, .leave-plan-button.is-selected {
      border-color:#15938a; background:#e9f8f5; color:#116b65;
    }
    .leave-plan-button:focus-visible { outline:3px solid rgba(21,147,138,.2); outline-offset:2px; }

    .modal-week-nav {
      display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
      gap: 8px; margin-bottom: 10px;
    }
    .modal-week-nav strong { min-width: 210px; text-align: center; font-size: 12.5px; }
    #newModal .modal-week-nav .btn { padding: 7px 10px; font-size: 11.5px; white-space: nowrap; }
    #newModal .visit-section--schedule .modal-week-nav {
      display: grid; grid-template-columns: auto minmax(170px, 1fr) auto auto;
      justify-content: stretch; gap: 8px; margin-bottom: 12px; padding: 6px;
      border: 1px solid #e1eaf0; border-radius: 11px; background: #f7fafc;
    }
    #newModal .visit-section--schedule .modal-week-nav strong {
      min-width: 0; padding: 8px 10px; border: 1px solid #e3ebf2; border-radius: 8px;
      background: #ffffff; color: #243d55; font-size: 12px; font-variant-numeric: tabular-nums;
    }
    #newModal .visit-section--schedule .modal-week-nav .btn {
      min-height: 36px; border-color: #d9e3eb; border-radius: 8px; background: #ffffff;
      color: #40566b; transition: .15s ease;
    }
    #newModal .visit-section--schedule .modal-week-nav .btn:hover {
      border-color: #83b9b1; background: #eff9f7; color: #0f766e;
    }
    #newModal .visit-section--schedule .modal-week-nav .btn:last-child {
      border-color: #b7ddd5; background: #eaf7f4; color: #0f766e; font-weight: 700;
    }
    @media (max-width: 700px) {
      #newModal .visit-section--schedule .modal-week-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
      #newModal .visit-section--schedule .modal-week-nav > .btn:first-child { grid-column: 1; grid-row: 2; }
      #newModal .visit-section--schedule .modal-week-nav > strong { grid-column: 1 / -1; grid-row: 1; }
      #newModal .visit-section--schedule .modal-week-nav > .btn:nth-last-child(2) { grid-column: 2; grid-row: 2; }
      #newModal .visit-section--schedule .modal-week-nav > .btn:last-child { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
      #newModal .day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }
    #newModal .modal-submit-button {
      width: 100%; min-height: 48px; margin-top: 4px; padding: 13px 16px;
      font-size: 14px; letter-spacing: .01em;
    }

    .comment-box { background: #f8fafc; padding: 10px; border-radius: 8px; margin-bottom: 8px; font-size: 12.5px; border-left: 3px solid var(--primary); }
    .gps-proof-box {
      margin: 12px 0; padding: 16px; border: 1px solid #dbe5ef; border-left: 3px solid #5b86a6;
      border-radius: 12px; background: linear-gradient(135deg, #f8fafc, #ffffff); font-size: 12.5px;
    }
    .gps-proof-box--warning { border-color: #f2d5a5; border-left-color: #d97706; background: linear-gradient(135deg, #fffbeb, #ffffff); }
    .gps-proof-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .gps-proof-title { color: #1e293b; font-size: 13px; font-weight: 800; }
    .gps-proof-description { margin-top: 4px; color: #64748b; font-size: 11px; line-height: 1.45; }
    .gps-proof-state {
      flex: 0 0 auto; padding: 5px 9px; border: 1px solid #cbd5e1; border-radius: 999px;
      background: #f1f5f9; color: #475569; font-size: 10px; font-weight: 750;
    }
    .gps-proof-state--pending { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
    .gps-proof-state--missing, .gps-proof-state--warning { border-color: #f2d5a5; background: #fff7e6; color: #9a5b08; }
    .gps-proof-state--reported { border-color: #bfdbfe; background: #eff6ff; color: #1e5b91; }
    .gps-proof-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
    .gps-proof-metric { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #e5eaf0; border-radius: 9px; background: rgba(255,255,255,.8); }
    .gps-proof-metric span, .gps-proof-coordinates > span { color: #64748b; font-size: 10px; font-weight: 650; }
    .gps-proof-metric strong { color: #1e293b; font-size: 12px; overflow-wrap: anywhere; }
    .gps-proof-coordinates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 9px 10px; border-radius: 8px; background: rgba(255,255,255,.75); }
    .gps-proof-coordinates code { color: #334155; font-size: 10px; overflow-wrap: anywhere; }
    .gps-proof-coordinates a { color: #0757a2; font-size: 10px; font-weight: 750; text-decoration: none; }
    .gps-proof-coordinates a:hover { text-decoration: underline; }
    .gps-proof-warnings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .gps-proof-warning { padding: 5px 8px; border: 1px solid #f2d5a5; border-radius: 7px; background: #fff7e6; color: #8a570d; font-size: 10px; line-height: 1.35; }
    .gps-proof-empty { margin-top: 12px; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 9px; color: #64748b; font-size: 11px; }
    .gps-employee-disclosure {
      margin: 0 0 8px;
      padding: 7px 10px;
      border-left: 2px solid #8bb6d3;
      border-radius: 0 6px 6px 0;
      background: #f7fafc;
      color: #64748b;
      font-size: 10px;
      line-height: 1.45;
    }
    @media (max-width: 420px) {
      .gps-proof-box { padding: 12px; }
      .gps-proof-header { flex-direction: column; }
      .gps-proof-metrics { grid-template-columns: 1fr; }
    }
    .audit-box {
      background: #f5f3ff; border: 1px solid #ddd6fe;
      padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 12.5px;
    }

    @media (max-width: 1200px) {
      .sidebar { width: 232px; }
      .content { padding: 22px; }
      .map-layout { grid-template-columns: minmax(0, 1fr) 290px; }
      .team-territory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 980px) {
      .map-layout, .split-2col { grid-template-columns: 1fr; }
      .prospect-layout { grid-template-columns: 1fr; }
      .map-sidebar { min-height: 260px; max-height: 340px; }
      #regionMap { min-height: 380px; height: 48vh; }
    }
    @media (max-width: 1000px) {
      body { flex-direction: column; }
      .sidebar { position:sticky; top:0; width:100%; height:auto; max-height:64px; flex-direction:row; align-items:center; gap:8px; overflow:hidden; padding:6px 8px; }
      .brand { display: none; }
      .sidebar-footer {
        display: flex; flex: 0 0 40px; align-items: center; width: 40px;
        margin: 0; padding: 0; border-top: 0;
      }
      .sidebar-profile, .sidebar-footer-brand, .sidebar-footer-meta, .sidebar-logout span { display: none; }
      .sidebar-logout { justify-content: center; width: 40px; margin: 0; padding: 0; }
      .nav-group-title { display:none; }
      #sidebarNavContainer { display:flex; flex:1; min-width:0; align-items:center; gap:4px; overflow-x:auto; }
      .nav-btn { width:auto; flex:0 0 auto; margin-bottom:0; white-space:nowrap; }
      .topbar { display:flex; height:auto; min-height:56px; padding:9px 14px; flex-wrap:wrap; gap:8px; }
      .test-stage-banner { order:3; margin:0 auto; }
      .topbar-right { flex-wrap:wrap; justify-content:flex-start; }
      .content { padding:18px 14px 24px; }
      .admin-overview-copy h2 { font-size:25px; }
      .page-heading { flex-direction:column; }
      .form-grid, .work-type-grid { grid-template-columns: 1fr; }
      .follow-up-row { align-items: flex-start; flex-direction: column; }
      .follow-up-actions { width: 100%; }
      .follow-up-actions .btn { flex: 1; }
      .team-territory-grid { grid-template-columns: 1fr; }
      .day-strip { grid-template-columns: repeat(4, 1fr); }
      .prospect-fields-grid { grid-template-columns: 1fr; }
      .prospect-panel { padding: 18px; }
    }
    @media (min-width: 561px) and (max-width: 1000px) {
      #newModal .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      #newModal .work-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 560px) {
      #newModal .visit-section--dealer .form-grid { grid-template-columns: minmax(0, 1fr); }
      #newModal .work-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .sidebar { max-height:58px; gap:6px; padding:5px 7px; }
      .topbar { min-height:0; padding:7px 12px; gap:7px; }
      .topbar-left { gap:8px; }
      .topbar-right { gap:7px; }
      .sidebar-toggle { min-width:44px; min-height:44px; }
      .topbar-right .btn { min-height:44px; }
      .topbar-date { min-height:42px; padding:5px 8px; }
      .topbar-date-icon { width:29px; height:29px; flex-basis:29px; }
      .topbar-date-day { font-size:11px; }
      .test-stage-banner { padding:5px 10px; font-size:10px; letter-spacing:.08em; }
      #view-emp-schedule .filter-bar { padding:12px 14px; gap:8px; }
      #view-emp-schedule .filter-bar h2 { font-size:18px; }
      #view-emp-schedule .filter-bar p { margin-top:3px; }
      .employee-week-controls { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:6px; }
      .employee-week-jump { grid-column:1; }
      .employee-schedule-tools { display:contents; }
      .employee-mobile-day-picker { grid-column:2; }
      .employee-schedule-filter { grid-column:3; }
      .employee-week-jump,
      .employee-mobile-day-picker,
      .employee-schedule-filter { gap:4px; font-size:9px; }
      .employee-week-jump input,
      .employee-mobile-day-picker select,
      .employee-schedule-filter select { padding-right:5px; padding-left:5px; font-size:10px; }
      .admin-overview-hero { min-height:148px; padding:21px 18px; }
      .admin-overview-copy { max-width:100%; padding-right:6px; }
      .admin-overview-copy h2 { font-size:23px; }
      .admin-overview-copy p { max-width:255px; font-size:11.5px; }
      .admin-overview-map-mark { right:-54px; width:145px; height:120px; opacity:.5; }
      .admin-overview-stats { grid-template-columns:1fr; }
      .dashboard-stat { min-height:76px; padding:11px 14px; }
      .dashboard-stat + .dashboard-stat { border-top:1px solid #e8edf1; border-left:0; }
    }

/* Converted static inline styles */
[data-csp-style-class="csp-style-001"]:not(#csp-style-specificity) {
  margin-bottom:14px;
}
[data-csp-style-class="csp-style-002"]:not(#csp-style-specificity) {
  width:100%;
  min-height:44px;
}
[data-csp-style-class="csp-style-003"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-004"]:not(#csp-style-specificity) {
  margin-bottom:16px;
}
[data-csp-style-class="csp-style-005"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
  align-items:center;
}
[data-csp-style-class="csp-style-006"]:not(#csp-style-specificity) {
  padding:7px 11px;
  font-size:12.5px;
}
[data-csp-style-class="csp-style-007"]:not(#csp-style-specificity) {
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:12px 16px;
}
[data-csp-style-class="csp-style-008"]:not(#csp-style-specificity) {
  font-size:14px;
  margin-bottom:4px;
}
[data-csp-style-class="csp-style-009"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-bottom:10px;
  border-bottom:1px solid var(--border);
  padding-bottom:8px;
}
[data-csp-style-class="csp-style-010"]:not(#csp-style-specificity) {
  overflow-y:auto;
  flex:1;
  padding-right:4px;
}
[data-csp-style-class="csp-style-011"]:not(#csp-style-specificity) {
  margin:22px 0 12px;
}
[data-csp-style-class="csp-style-012"]:not(#csp-style-specificity) {
  font-size:17px;
}
[data-csp-style-class="csp-style-013"]:not(#csp-style-specificity) {
  font-size:18px;
}
[data-csp-style-class="csp-style-014"]:not(#csp-style-specificity) {
  font-size:12.5px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-015"]:not(#csp-style-specificity) {
  display:none;
}
[data-csp-style-class="csp-style-016"]:not(#csp-style-specificity) {
  padding:6px 8px;
}
[data-csp-style-class="csp-style-017"]:not(#csp-style-specificity) {
  padding:6px 9px;
  font-size:11.5px;
}
[data-csp-style-class="csp-style-018"]:not(#csp-style-specificity) {
  margin-bottom:18px;
}
[data-csp-style-class="csp-style-019"]:not(#csp-style-specificity) {
  overflow-x:auto;
  max-height:540px;
  overflow-y:auto;
}
[data-csp-style-class="csp-style-020"]:not(#csp-style-specificity) {
  padding:5px 10px;
}
[data-csp-style-class="csp-style-021"]:not(#csp-style-specificity) {
  padding:5px 9px;
  font-size:11px;
}
[data-csp-style-class="csp-style-022"]:not(#csp-style-specificity) {
  font-size:16px;
  margin-bottom:10px;
}
[data-csp-style-class="csp-style-023"]:not(#csp-style-specificity) {
  font-weight:700;
  margin-bottom:12px;
}
[data-csp-style-class="csp-style-024"]:not(#csp-style-specificity) {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
[data-csp-style-class="csp-style-025"]:not(#csp-style-specificity) {
  padding:6px 11px;
}
[data-csp-style-class="csp-style-026"]:not(#csp-style-specificity) {
  padding:6px 10px;
  font-size:11.5px;
}
[data-csp-style-class="csp-style-027"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
  margin:12px 0;
}
[data-csp-style-class="csp-style-028"]:not(#csp-style-specificity) {
  display:none;
  color:var(--danger);
  font-size:12px;
  margin-bottom:10px;
}
[data-csp-style-class="csp-style-029"]:not(#csp-style-specificity) {
  margin-top:16px;
}
[data-csp-style-class="csp-style-030"]:not(#csp-style-specificity) {
  display:none;
  margin-top:16px;
}
[data-csp-style-class="csp-style-031"]:not(#csp-style-specificity) {
  margin-bottom:0;
}
[data-csp-style-class="csp-style-032"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
  margin-top:3px;
}
[data-csp-style-class="csp-style-033"]:not(#csp-style-specificity) {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
[data-csp-style-class="csp-style-034"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-bottom:6px;
}
[data-csp-style-class="csp-style-035"]:not(#csp-style-specificity) {
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-036"]:not(#csp-style-specificity) {
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:7px;
  color:var(--text-muted);
  font-size:12px;
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-037"]:not(#csp-style-specificity) {
  width:100%;
}
[data-csp-style-class="csp-style-038"]:not(#csp-style-specificity) {
  z-index:1001;
}
[data-csp-style-class="csp-style-039"]:not(#csp-style-specificity) {
  max-width:500px;
}
[data-csp-style-class="csp-style-040"]:not(#csp-style-specificity) {
  display:none;
  margin-bottom:16px;
  font-size:13px;
}
[data-csp-style-class="csp-style-041"]:not(#csp-style-specificity) {
  display:none;
  color:var(--danger);
  font-size:12px;
}
[data-csp-style-class="csp-style-042"]:not(#csp-style-specificity) {
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
[data-csp-style-class="csp-style-043"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
}
[data-csp-style-class="csp-style-044"]:not(#csp-style-specificity) {
  flex:1;
}
[data-csp-style-class="csp-style-045"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-046"]:not(#csp-style-specificity) {
  display:flex;
  flex-direction:column;
  gap:6px;
}
[data-csp-style-class="csp-style-047"]:not(#csp-style-specificity) {
  font-size:10.5px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-048"]:not(#csp-style-specificity) {
  margin-top:12px;
}
[data-csp-style-class="csp-style-049"]:not(#csp-style-specificity) {
  color:var(--danger);
}
[data-csp-style-class="csp-style-050"]:not(#csp-style-specificity) {
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:7px;
  color:var(--text-muted);
  font-size:12px;
}
[data-csp-style-class="csp-style-051"]:not(#csp-style-specificity) {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
[data-csp-style-class="csp-style-052"]:not(#csp-style-specificity) {
  font-size:11px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-053"]:not(#csp-style-specificity) {
  width:100%;
  margin-top:14px;
  padding:11px;
}
[data-csp-style-class="csp-style-054"]:not(#csp-style-specificity) {
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed var(--border);
}
[data-csp-style-class="csp-style-055"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--primary);
  font-weight:700;
  display:block;
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-056"]:not(#csp-style-specificity) {
  margin-bottom:10px;
}
[data-csp-style-class="csp-style-057"]:not(#csp-style-specificity) {
  display:none;
  margin-bottom:10px;
}
[data-csp-style-class="csp-style-058"]:not(#csp-style-specificity) {
  background:#d1fae5;
  color:#065f46;
}
[data-csp-style-class="csp-style-059"]:not(#csp-style-specificity) {
  background:#e2e8f0;
  color:#475569;
}
[data-csp-style-class="csp-style-060"]:not(#csp-style-specificity) {
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-061"]:not(#csp-style-specificity) {
  color:var(--primary);
  font-weight:700;
}
[data-csp-style-class="csp-style-062"]:not(#csp-style-specificity) {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
[data-csp-style-class="csp-style-063"]:not(#csp-style-specificity) {
  color:var(--primary);
}
[data-csp-style-class="csp-style-064"]:not(#csp-style-specificity) {
  display:flex;
  gap:6px;
  align-items:center;
}
[data-csp-style-class="csp-style-065"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-top:4px;
}
[data-csp-style-class="csp-style-066"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
  margin-top:8px;
}
[data-csp-style-class="csp-style-067"]:not(#csp-style-specificity) {
  padding:6px 9px;
  font-size:11.5px;
  white-space:nowrap;
}
[data-csp-style-class="csp-style-068"]:not(#csp-style-specificity) {
  color:var(--primary);
  display:block;
  margin-bottom:2px;
}
[data-csp-style-class="csp-style-069"]:not(#csp-style-specificity) {
  white-space:nowrap;
}
[data-csp-style-class="csp-style-070"]:not(#csp-style-specificity) {
  border-left-color:var(--success);
}
[data-csp-style-class="csp-style-071"]:not(#csp-style-specificity) {
  color:var(--success);
}
[data-csp-style-class="csp-style-072"]:not(#csp-style-specificity) {
  border-left-color:var(--warning);
}
[data-csp-style-class="csp-style-073"]:not(#csp-style-specificity) {
  color:var(--warning);
}
[data-csp-style-class="csp-style-074"]:not(#csp-style-specificity) {
  border-left-color:var(--purple);
}
[data-csp-style-class="csp-style-075"]:not(#csp-style-specificity) {
  color:var(--purple);
}
[data-csp-style-class="csp-style-076"]:not(#csp-style-specificity) {
  padding:5px 10px;
  font-size:11.5px;
}
[data-csp-style-class="csp-style-077"]:not(#csp-style-specificity) {
  cursor:pointer;
}
[data-csp-style-class="csp-style-078"]:not(#csp-style-specificity) {
  height:10px;
}
[data-csp-style-class="csp-style-079"]:not(#csp-style-specificity) {
  margin-bottom:14px;
  padding:12px;
  background:#f8fafc;
  border-radius:8px;
  border:1px solid var(--border);
}
[data-csp-style-class="csp-style-080"]:not(#csp-style-specificity) {
  font-size:22px;
  font-weight:800;
  color:var(--primary);
  margin-top:4px;
}
[data-csp-style-class="csp-style-081"]:not(#csp-style-specificity) {
  font-size:12px;
  font-weight:600;
  color:var(--success);
}
[data-csp-style-class="csp-style-082"]:not(#csp-style-specificity) {
  margin-bottom:8px;
  cursor:pointer;
}
[data-csp-style-class="csp-style-083"]:not(#csp-style-specificity) {
  font-size:13px;
}
[data-csp-style-class="csp-style-084"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  display:block;
}
[data-csp-style-class="csp-style-085"]:not(#csp-style-specificity) {
  margin-bottom:10px;
  cursor:default;
}
[data-csp-style-class="csp-style-086"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--primary);
}
[data-csp-style-class="csp-style-087"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-088"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--success);
  font-weight:600;
}
[data-csp-style-class="csp-style-089"]:not(#csp-style-specificity) {
  padding:6px 10px;
  font-size:12px;
}
[data-csp-style-class="csp-style-090"]:not(#csp-style-specificity) {
  font-size:11.5px;
  font-weight:700;
  color:var(--primary);
}
[data-csp-style-class="csp-style-091"]:not(#csp-style-specificity) {
  font-size:10.5px;
  color:var(--primary);
  font-weight:600;
  margin-bottom:4px;
}
[data-csp-style-class="csp-style-092"]:not(#csp-style-specificity) {
  margin-bottom:6px;
  font-size:10px;
}
[data-csp-style-class="csp-style-093"]:not(#csp-style-specificity) {
  font-size:11px;
  color:var(--text-muted);
  margin-bottom:6px;
  line-height:1.35;
}
[data-csp-style-class="csp-style-094"]:not(#csp-style-specificity) {
  margin-top:6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
[data-csp-style-class="csp-style-095"]:not(#csp-style-specificity) {
  font-size:10.5px;
  color:var(--text-muted);
  text-decoration:underline;
  cursor:pointer;
}
[data-csp-style-class="csp-style-096"]:not(#csp-style-specificity) {
  font-size:12.5px;
  display:block;
}
[data-csp-style-class="csp-style-097"]:not(#csp-style-specificity) {
  padding:5px 9px;
  font-size:11px;
  white-space:nowrap;
}
[data-csp-style-class="csp-style-098"]:not(#csp-style-specificity) {
  font-size:12.5px;
  color:var(--success);
  padding:8px 0;
}
[data-csp-style-class="csp-style-099"]:not(#csp-style-specificity) {
  display:block;
  font-size:12.5px;
}
[data-csp-style-class="csp-style-100"]:not(#csp-style-specificity) {
  margin-bottom:6px;
  font-size:11.5px;
}
[data-csp-style-class="csp-style-101"]:not(#csp-style-specificity) {
  display:flex;
  flex-direction:column;
  gap:7px;
}
[data-csp-style-class="csp-style-102"]:not(#csp-style-specificity) {
  border-top:1px solid var(--border);
  padding-top:8px;
  margin-top:auto;
}
[data-csp-style-class="csp-style-103"]:not(#csp-style-specificity) {
  font-size:11.5px;
  font-weight:600;
  color:var(--text-muted);
  margin-bottom:6px;
}
[data-csp-style-class="csp-style-104"]:not(#csp-style-specificity) {
  height:11px;
}
[data-csp-style-class="csp-style-105"]:not(#csp-style-specificity) {
  margin-top:6px;
}
[data-csp-style-class="csp-style-106"]:not(#csp-style-specificity) {
  font-size:13px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-107"]:not(#csp-style-specificity) {
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-108"]:not(#csp-style-specificity) {
  font-size:11px;
  color:var(--success);
  font-weight:600;
}
[data-csp-style-class="csp-style-109"]:not(#csp-style-specificity) {
  font-size:12.5px;
  color:var(--text-muted);
  padding:10px 0;
}
[data-csp-style-class="csp-style-110"]:not(#csp-style-specificity) {
  margin-top:7px;
}
[data-csp-style-class="csp-style-111"]:not(#csp-style-specificity) {
  font-size:13px;
  margin-bottom:12px;
}
[data-csp-style-class="csp-style-112"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
[data-csp-style-class="csp-style-113"]:not(#csp-style-specificity) {
  font-size:14.5px;
}
[data-csp-style-class="csp-style-114"]:not(#csp-style-specificity) {
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
[data-csp-style-class="csp-style-115"]:not(#csp-style-specificity) {
  margin-top:8px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
[data-csp-style-class="csp-style-116"]:not(#csp-style-specificity) {
  color:#0f172a;
  font-family:sans-serif;
  min-width:205px;
}
[data-csp-style-class="csp-style-117"]:not(#csp-style-specificity) {
  font-size:12px;
}
[data-csp-style-class="csp-style-118"]:not(#csp-style-specificity) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
[data-csp-style-class="csp-style-119"]:not(#csp-style-specificity) {
  color:#004a96;
  font-weight:bold;
  font-size:12px;
}
[data-csp-style-class="csp-style-120"]:not(#csp-style-specificity) {
  padding:5px 8px;
  font-size:11px;
  color:#004a96;
}
[data-csp-style-class="csp-style-121"]:not(#csp-style-specificity) {
  margin-bottom:7px;
  padding:8px 10px;
}
[data-csp-style-class="csp-style-122"]:not(#csp-style-specificity) {
  margin-bottom:3px;
}
[data-csp-style-class="csp-style-123"]:not(#csp-style-specificity) {
  font-size:12.5px;
}
[data-csp-style-class="csp-style-124"]:not(#csp-style-specificity) {
  padding:4px 7px;
  font-size:10.5px;
  color:var(--primary);
}
[data-csp-style-class="csp-style-125"]:not(#csp-style-specificity) {
  display:flex;
  gap:5px;
  flex-shrink:0;
}
[data-csp-style-class="csp-style-126"]:not(#csp-style-specificity) {
  padding:5px 8px;
  font-size:10.5px;
}
[data-csp-style-class="csp-style-127"]:not(#csp-style-specificity) {
  padding:5px 8px;
  font-size:10.5px;
  color:var(--primary);
}
[data-csp-style-class="csp-style-128"]:not(#csp-style-specificity) {
  text-align:left;
}
[data-csp-style-class="csp-style-129"]:not(#csp-style-specificity) {
  font-weight:400;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-130"]:not(#csp-style-specificity) {
  font-size:11px;
  font-weight:700;
  color:var(--primary);
}
[data-csp-style-class="csp-style-131"]:not(#csp-style-specificity) {
  font-size:10px;
  color:var(--primary);
  font-weight:600;
  margin-bottom:4px;
}
[data-csp-style-class="csp-style-132"]:not(#csp-style-specificity) {
  margin-bottom:4px;
  font-size:10px;
}
[data-csp-style-class="csp-style-133"]:not(#csp-style-specificity) {
  margin-top:5px;
}
[data-csp-style-class="csp-style-134"]:not(#csp-style-specificity) {
  overflow-x:auto;
}
[data-csp-style-class="csp-style-135"]:not(#csp-style-specificity) {
  font-size:13px;
  line-height:1.7;
  margin-bottom:12px;
}
[data-csp-style-class="csp-style-136"]:not(#csp-style-specificity) {
  margin:6px 0;
  display:flex;
  gap:8px;
}
[data-csp-style-class="csp-style-137"]:not(#csp-style-specificity) {
  padding:4px 9px;
  font-size:11px;
}
[data-csp-style-class="csp-style-138"]:not(#csp-style-specificity) {
  margin-bottom:12px;
}
[data-csp-style-class="csp-style-139"]:not(#csp-style-specificity) {
  padding:10px 12px;
}
[data-csp-style-class="csp-style-140"]:not(#csp-style-specificity) {
  font-size:11.5px;
  font-weight:700;
  color:var(--text-muted);
  margin-bottom:8px;
}
[data-csp-style-class="csp-style-141"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
[data-csp-style-class="csp-style-142"]:not(#csp-style-specificity) {
  padding:6px 10px;
  font-size:12px;
  margin-left:auto;
}
[data-csp-style-class="csp-style-143"]:not(#csp-style-specificity) {
  margin-left:auto;
}
[data-csp-style-class="csp-style-144"]:not(#csp-style-specificity) {
  margin-top:8px;
}
[data-csp-style-class="csp-style-145"]:not(#csp-style-specificity) {
  margin-top:4px;
  color:var(--primary);
}
[data-csp-style-class="csp-style-146"]:not(#csp-style-specificity) {
  margin-top:4px;
}
[data-csp-style-class="csp-style-147"]:not(#csp-style-specificity) {
  margin-top:4px;
  color:var(--text-muted);
}
[data-csp-style-class="csp-style-148"]:not(#csp-style-specificity) {
  padding:10px 12px;
  margin-bottom:12px;
}
[data-csp-style-class="csp-style-149"]:not(#csp-style-specificity) {
  font-weight:700;
}
[data-csp-style-class="csp-style-150"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-top:5px;
}
[data-csp-style-class="csp-style-151"]:not(#csp-style-specificity) {
  font-size:12px;
  color:var(--text-muted);
  margin-top:5px;
}
[data-csp-style-class="csp-style-152"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-top:3px;
}
[data-csp-style-class="csp-style-153"]:not(#csp-style-specificity) {
  margin-top:8px;
  padding:6px 10px;
  font-size:12px;
}
[data-csp-style-class="csp-style-154"]:not(#csp-style-specificity) {
  width:100%;
  margin-top:6px;
}
[data-csp-style-class="csp-style-155"]:not(#csp-style-specificity) {
  display:none;
  margin-top:10px;
}
[data-csp-style-class="csp-style-156"]:not(#csp-style-specificity) {
  font-size:11.5px;
  color:var(--text-muted);
  margin-top:6px;
}
[data-csp-style-class="csp-style-157"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
}
[data-csp-style-class="csp-style-158"]:not(#csp-style-specificity) {
  width:auto;
}
[data-csp-style-class="csp-style-159"]:not(#csp-style-specificity) {
  border-top:1px solid var(--border);
  padding-top:12px;
}
[data-csp-style-class="csp-style-160"]:not(#csp-style-specificity) {
  display:flex;
  gap:8px;
  margin-top:8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visit-detail-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 2px 2px 15px;
  border-bottom: 1px solid #dce8f2;
  background: #ffffff;
}
.visit-detail-tags, .visit-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.visit-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #d0e0ee;
  border-radius: 999px;
  background: #ffffff;
  color: #315a7b;
  font-size: 10.5px;
  font-weight: 700;
}
.visit-detail-tags .type-badge, .visit-detail-tags .status-pill { margin: 0; }
.visit-detail-tags .technical-issue-badge,
.visit-detail-tags .technical-issue-chronic-badge { font-size: 10px; }
.visit-detail-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; }
.visit-detail-field { display: grid; min-width: 0; align-content: start; gap: 4px; }
.visit-detail-field > span {
  color: #557693;
  font-size: 11px;
  font-weight: 650;
}
.visit-detail-field > strong, .visit-detail-note p {
  margin: 0;
  color: #294761;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.visit-detail-note {
  grid-column: 1 / -1;
  gap: 7px;
  margin-top: 1px;
  padding: 11px 0 0;
  border-top: 1px solid #dce8f2;
}
.visit-detail-note > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #315a7b;
  font-size: 11px;
  font-weight: 700;
}
.visit-detail-note > span::after {
  height: 1px;
  flex: 1;
  background: #e8f0f7;
  content: '';
}
.visit-detail-note p { font-size: 12px; font-weight: 500; line-height: 1.6; }
.visit-detail-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
}
.visit-detail-actions .btn-maps {
  border-color: #c8dbee;
  background: #eff6fc;
  color: #15598a;
}
.visit-detail-actions .btn-maps:hover { border-color: #a9c8e1; background: #e4f0f9; }
.visit-detail-actions .btn-outline {
  border-color: #d0e0ee;
  background: #ffffff;
  color: #294f70;
}
.visit-detail-actions .btn-outline:hover { border-color: #abc7dd; background: #f0f6fb; }
.visit-schedule-box {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d3e2ef;
  border-radius: 10px;
  background: #f3f8fc;
}
.visit-schedule-heading { display: grid; gap: 3px; margin-bottom: 10px; }
.visit-schedule-heading strong { color: #234764; font-size: 12.5px; font-weight: 800; }
.visit-schedule-heading span { color: #5c7790; font-size: 10.5px; }
.visit-schedule-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .75fr) auto;
  align-items: end;
  gap: 12px;
}
.visit-schedule-field { display: grid; min-width: 0; gap: 5px; }
.visit-schedule-field-label {
  color: #4d6c86;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .025em;
}
.visit-schedule-select-control {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #cadceb;
  border-radius: 8px;
  background: #ffffff;
  color: #56738d;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.visit-schedule-select-control:focus-within {
  border-color: #3982b7;
  box-shadow: 0 0 0 3px rgba(57, 130, 183, .13);
}
.visit-schedule-select-control:not(.visit-time-parts)::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin: -4px 1px 0 8px;
  border-right: 1.5px solid #56738d;
  border-bottom: 1.5px solid #56738d;
  content: '';
  pointer-events: none;
  transform: rotate(45deg);
}
.visit-time-picker { position: relative; min-width: 0; }
.visit-time-display {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid #cadceb;
  border-radius: 8px;
  background: #ffffff;
  color: #203e5c;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  list-style: none;
}
.visit-time-display::-webkit-details-marker { display: none; }
.visit-time-display::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin: -4px 1px 0 8px;
  border-right: 1.5px solid #56738d;
  border-bottom: 1.5px solid #56738d;
  content: '';
  pointer-events: none;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.visit-time-picker[open] .visit-time-display {
  border-color: #3982b7;
  box-shadow: 0 0 0 3px rgba(57, 130, 183, .13);
}
.visit-time-picker[open] .visit-time-display::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
.visit-time-display:focus-visible {
  outline: 2px solid #3982b7;
  outline-offset: 2px;
}
.visit-time-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  width: max(100%, 220px);
  max-width: calc(100vw - 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid #d3e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 55, 80, .16);
}
.visit-time-options label { display: grid; min-width: 0; gap: 5px; color: #4d6c86; font-size: 10px; font-weight: 700; }
.visit-schedule-controls .visit-time-options select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #cadceb;
  border-radius: 7px;
  background: #ffffff;
  color: #294761;
  font-size: 13px;
  cursor: pointer;
}
.visit-schedule-controls .visit-time-options select:focus { outline: 2px solid #3982b7; outline-offset: 1px; }
.visit-schedule-controls select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #294761;
  font-size: 12px;
  cursor: pointer;
}
.visit-schedule-controls select.visit-schedule-day {
  font-size: 13px;
  font-weight: 650;
}
.visit-schedule-controls select:focus { outline: none; }
.visit-schedule-controls .visit-schedule-update {
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  border-color: #174f7a;
  background: #174f7a;
  color: #ffffff;
  white-space: nowrap;
}
.visit-schedule-controls .visit-schedule-update:hover { border-color: #103f64; background: #103f64; }
.visit-delete-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #dce8f2;
}
.visit-delete-row .visit-delete-button {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #efcccc;
  border-radius: 7px;
  background: #fff0f0;
  color: #a33a3a;
  font-size: 10.5px;
  font-weight: 650;
  box-shadow: none;
}
.visit-delete-row .visit-delete-button:hover {
  border-color: #e2aaaa;
  background: #ffe2e2;
  color: #8f2727;
}
@media (max-width: 600px) {
  .visit-detail-summary { padding: 0 0 12px; }
  .visit-detail-fields { grid-template-columns: 1fr; gap: 10px; }
  .visit-detail-note { padding: 10px 0 0; }
  .visit-schedule-box { padding: 11px; }
  .visit-schedule-controls { grid-template-columns: minmax(0, 1fr) minmax(148px, .8fr); gap: 9px; }
  .visit-schedule-controls .visit-schedule-update { grid-column: 1 / -1; }
}

#detailModal .modal {
  max-width: 760px;
  max-height: 92vh;
  padding: 0;
  font-size: 13px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5e0eb;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .25);
}
#detailModal .modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5edf4;
  background: linear-gradient(110deg, rgba(247, 251, 255, .98), rgba(255, 255, 255, .98));
  backdrop-filter: blur(12px);
}
#detailModal .modal-date-badge {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  background: #f7faff;
}
#detailModal .modal-date-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #dce9f4;
  border-radius: 9px;
  background: #ffffff;
  color: #3475a5;
}
#detailModal .modal-date-icon svg { width: 17px; height: 17px; }
#detailModal .modal-date-copy { display: grid; min-width: 0; gap: 3px; }
#detailModal .modal-date-label {
  color: #8192a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
#detailModal .modal-date-copy strong {
  color: #294761;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#detailModal .modal-title-group { display: grid; min-width: 0; gap: 6px; }
#detailModal .modal-title-group h3 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: #1b3853;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
#detailModal .modal-title-group h3::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1784c6, #075985);
  content: '';
}
#detailModal .modal-title-group span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #e1eaf2;
  border-radius: 999px;
  background: #f2f7fb;
  color: #536e84;
  font-size: 11.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#detailModal .modal-header .btn-outline {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #d8e2eb;
  border-radius: 10px;
  background: #ffffff;
  color: #4b647b;
}
#detailModal #mBody { padding: 20px 24px 24px; }
#detailModal .visit-detail-content { display: grid; gap: 12px; }
#detailModal .visit-detail-summary {
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e0eaf3;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 68%);
  box-shadow: 0 4px 14px rgba(30, 65, 95, .04);
}
#detailModal .visit-detail-tag {
  min-height: 34px;
  padding: 6px 6px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  color: #40566c;
  font-size: 11px;
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-detail-tags { gap: 4px; }
#detailModal .visit-detail-tags .type-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 6px;
  border: 1px solid #c5def3;
  border-radius: 10px;
  background: linear-gradient(145deg, #eef7ff 0%, #f8fbff 100%);
  color: #0757a2;
  font-size: 11px;
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-detail-tags .status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
}
#detailModal .visit-detail-tags .status-pill.st-completed { border-color: #a7e4c2; }
#detailModal .visit-detail-tags .status-pill.st-planned { border-color: #cbd5e1; }
#detailModal .visit-detail-tags .status-pill.st-in-progress { border-color: #bfdbfe; }
#detailModal .visit-detail-tags .status-pill.st-pending { border-color: #fcd9a0; }
#detailModal .visit-detail-tags .status-pill.st-overdue { border-color: #fecaca; }
#detailModal .visit-detail-summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 4px;
}
#detailModal .visit-detail-fields {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 14px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #e2ebf3;
}
#detailModal .visit-detail-field {
  padding: 0;
  background: transparent;
}
#detailModal .visit-detail-field:only-child { grid-column: 1 / -1; }
#detailModal .visit-detail-field > span { color: #4f6c83; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
#detailModal .visit-detail-field > strong { color: #173f5e; font-size: 14px; font-weight: 750; line-height: 1.45; }
#detailModal .visit-detail-note p { color: #294761; font-size: 13px; font-weight: 550; line-height: 1.6; }
#detailModal .visit-detail-note {
  grid-column: auto;
  margin: 0;
  padding: 0 0 0 13px;
  border: 0;
  border-radius: 0;
  border-left: 1px solid #dce8f2;
  background: transparent;
}
#detailModal .visit-detail-note > span {
  color: #4f6c83;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}
#detailModal .visit-detail-note > span::after { display: none; }
#detailModal .visit-detail-note p { overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
#detailModal .visit-detail-note:only-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
#detailModal .visit-detail-fields:not(.is-completed) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#detailModal .visit-detail-fields:not(.is-completed) .visit-detail-field,
#detailModal .visit-detail-fields:not(.is-completed) .visit-detail-note {
  min-height: 72px;
  gap: 5px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-detail-fields:not(.is-completed) .visit-detail-note { grid-column: auto; }
#detailModal .visit-detail-fields.is-completed .visit-detail-time { padding-left: 13px; border-left: 1px solid #dce8f2; }
#detailModal .visit-detail-fields.is-completed .visit-detail-time strong { font-variant-numeric: tabular-nums; }
#detailModal .visit-detail-fields.is-completed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#detailModal .visit-detail-fields.is-completed .visit-detail-field {
  min-height: 78px;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-detail-fields.is-completed .visit-detail-time { padding-left: 12px; border-left: 0; }
#detailModal .visit-detail-fields.is-completed .visit-detail-note--completed {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cfe0ee;
  border-left: 3px solid #4b8fc3;
  border-radius: 11px;
  background: linear-gradient(145deg, #eef7ff 0%, #f8fbff 100%);
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-detail-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  padding: 0;
}
#detailModal .visit-detail-actions .visit-action-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  color: #355570;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
#detailModal .visit-detail-actions .visit-action-button svg { width: 15px; height: 15px; flex: 0 0 15px; }
#detailModal .visit-detail-actions .visit-action-button.btn-maps { border-color: #c5def3; color: #0757a2; }
#detailModal .visit-detail-actions .visit-action-button:hover { border-color: #9bbbd8; background: linear-gradient(145deg, #eef7ff 0%, #f8fbff 100%); color: #0757a2; box-shadow: 0 5px 13px rgba(27, 58, 87, .09); transform: translateY(-1px); }
#detailModal .visit-detail-actions .status-pill { margin: 0 3px; }
#detailModal .visit-detail-actions .visit-delete-button {
  min-height: 36px;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #f0d7d7;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffafa 0%, #fff5f5 100%);
  color: #9e5656;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(120, 45, 45, .045);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
#detailModal .visit-detail-actions .visit-delete-button:hover { border-color: #e8bcbc; background: #fff0f0; color: #8f2727; box-shadow: 0 5px 13px rgba(120, 45, 45, .09); transform: translateY(-1px); }
#detailModal .visit-detail-actions .visit-delete-button:focus-visible { outline: 2px solid #d88a8a; outline-offset: 2px; }
#detailModal .visit-delete-icon { width: 14px; height: 14px; flex: 0 0 14px; }
#detailModal .visit-delete-row .visit-delete-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #f0d7d7;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffafa 0%, #fff5f5 100%);
  color: #9e5656;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(120, 45, 45, .045);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
#detailModal .visit-delete-row .visit-delete-button:hover { border-color: #e8bcbc; background: #fff0f0; color: #8f2727; box-shadow: 0 5px 13px rgba(120, 45, 45, .09); transform: translateY(-1px); }
#detailModal .visit-linked-work {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-left: 3px solid #6c9fbe;
  border-radius: 9px;
  background: #f3f8fc;
}
#detailModal .visit-linked-work-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #d7e5ef;
  border-radius: 9px;
  background: #ffffff;
  color: #39799f;
}
#detailModal .visit-linked-work-icon svg { width: 17px; height: 17px; }
#detailModal .visit-linked-work-copy { display:grid; min-width:0; flex:1; gap:2px; }
#detailModal .visit-linked-work-copy > span { color:#5f778c; font-size:10.5px; font-weight:750; letter-spacing:.045em; text-transform:uppercase; }
#detailModal .visit-linked-work-copy strong { color:#23445f; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
#detailModal .visit-linked-work .btn { min-height:34px; padding:7px 10px; font-size:11.5px; }
#detailModal .visit-schedule-box {
  margin: 0;
  padding: 15px;
  border: 1px solid #d6e5f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2f8fd, #f9fcff);
}
#detailModal .visit-schedule-heading {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
#detailModal .visit-schedule-heading strong { color: #23445f; font-size: 13.5px; font-weight: 750; }
#detailModal .visit-schedule-heading span { color: #536f86; font-size: 11.5px; }
#detailModal .visit-schedule-controls {
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
  gap: 9px;
}
#detailModal .visit-schedule-field-label { color: #4f6c83; font-size: 11.5px; font-weight: 700; }
#detailModal .visit-schedule-field { min-width: 0; gap: 4px; }
#detailModal .visit-schedule-select-control,
#detailModal .visit-time-display { min-height: 40px; border-color: #d3dee8; border-radius: 8px; }
#detailModal .visit-schedule-controls .visit-schedule-update { min-height: 40px; padding-inline: 14px; border-radius: 8px; font-size: 12.5px; }
#detailModal .visit-delete-row { margin-top: 10px; padding-top: 8px; border-top: 1px solid #dce8f2; }
#detailModal .visit-detail-records {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 12px;
}
#detailModal .visit-records-pending {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dce8f1;
  border-left: 3px solid #82adca;
  border-radius: 10px;
  background: #f7fafc;
}
#detailModal .visit-records-pending:only-child { grid-column: 1 / -1; }
#detailModal .visit-records-pending-copy { display: grid; min-width: 0; gap: 3px; }
#detailModal .visit-records-pending-copy strong { color: #23445f; font-size: 13px; }
#detailModal .visit-records-pending-copy > span { color: #5d768b; font-size: 11.5px; line-height: 1.45; }
#detailModal .visit-contact-card {
  display: flex;
  min-width: 0;
  align-self: start;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-contact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #d5e5f1;
  border-radius: 11px;
  background: #eaf3fa;
  color: #28678f;
}
#detailModal .visit-contact-icon svg { width: 19px; height: 19px; }
#detailModal .visit-contact-content { display: grid; min-width: 0; gap: 4px; }
#detailModal .visit-contact-label,
#detailModal .visit-outcome-label {
  color: #526e84;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}
#detailModal .visit-contact-value { color: #1f405c; font-size: 14px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
#detailModal .visit-contact-empty,
#detailModal .visit-outcome-empty { margin: 0; color: #5d768b; font-size: 12px; line-height: 1.5; }
#detailModal .visit-contact-input {
  width: min(100%, 520px);
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d3dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #294761;
  font: inherit;
}
#detailModal .visit-contact-input:focus { border-color: #3982b7; outline: 3px solid rgba(57, 130, 183, .12); }
#detailModal .visit-contact-hint { color: #5d768b; font-size: 11.5px; line-height: 1.45; }
#detailModal .visit-detail-section {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(30, 65, 95, .035);
}
#detailModal .visit-outcome-section {
  border-color: #d5e4f0;
  border-left: 3px solid #4b8fc3;
  border-radius: 11px;
  background: linear-gradient(145deg, #f4f9fd 0%, #ffffff 100%);
  box-shadow: 0 2px 7px rgba(27, 58, 87, .045);
}
#detailModal .visit-outcome-label { display: block; margin: 0 0 6px; }
#detailModal .visit-outcome-value { display: block; color: #173d5c; font-size: 14px; font-weight: 800; line-height: 1.45; }
#detailModal .visit-outcome-follow-up {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr);
  gap: 9px;
  margin-top: 12px;
}
#detailModal .visit-follow-up-item {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1eaf2;
  border-radius: 9px;
  background: #f7fafc;
}
#detailModal .visit-follow-up-item > span { color: #5a7389; font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
#detailModal .visit-follow-up-item > strong { color: #23445f; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#detailModal .visit-follow-up-item > small { color: #5d768b; font-size: 11.5px; }
#detailModal .visit-follow-up-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
#detailModal .visit-outcome-hint { margin-top: 8px; color: #5d768b; font-size: 11.5px; line-height: 1.5; }
#detailModal .visit-detail-section input,
#detailModal .visit-detail-section select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d3dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #294761;
  font: inherit;
}
#detailModal .visit-detail-section select { margin-top: 0; }
#detailModal .visit-detail-section input:focus,
#detailModal .visit-detail-section select:focus { border-color: #3982b7; outline: 3px solid rgba(57, 130, 183, .12); }
#detailModal .visit-deletion-alert {
  padding: 12px 14px;
  border: 1px solid #f0cccc;
  border-left: 3px solid #c84b4b;
  border-radius: 10px;
  background: #fff5f5;
  color: #7f3030;
  font-size: 12.5px;
  line-height: 1.55;
}
#detailModal .visit-deletion-alert > div { margin-top: 4px; }
#detailModal .audit-box {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-color: #d7e5f1;
  border-left: 3px solid #82adca;
  border-radius: 12px;
  background: #f5f9fd;
  line-height: 1.5;
}
#detailModal .audit-box > strong {
  flex: 0 0 100%;
  color: #23445f;
}
#detailModal .audit-box > div {
  flex: 1 1 260px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2ebf3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}
#detailModal .visit-detail-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dce8f1;
  border-radius: 12px;
  background: #f7fafc;
}
#detailModal .gps-employee-disclosure {
  grid-column: 1;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 11px;
  border: 0;
  border-left: 2px solid #8bb6d3;
  border-radius: 0;
  background: transparent;
  color: #526a80;
  font-size: 12px;
  line-height: 1.5;
}
#detailModal .visit-detail-footer .btn {
  grid-column: 2;
  justify-self: end;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
}
#detailModal .visit-detail-footer .btn-primary { margin-left: 0; }
#detailModal .visit-comments-section {
  margin: 0;
  padding: 16px;
  border: 1px solid #e0e9f1;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbfe, #ffffff 75%);
  box-shadow: 0 4px 14px rgba(30, 65, 95, .035);
}
#detailModal .visit-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5edf4;
}
#detailModal .visit-comments-header h4 { margin: 0; color: #203f5b; font-size: 14px; font-weight: 800; }
#detailModal .visit-comments-header > div > span { display: block; margin-top: 4px; color: #5d768b; font-size: 11.5px; }
#detailModal .visit-comments-count { padding: 5px 10px; border: 1px solid #dce7f0; border-radius: 999px; background: #ffffff; color: #355a77; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
#detailModal .visit-comments-list { display: grid; gap: 8px; }
#detailModal .visit-comments-list .comment-box {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e0e8ef;
  border-left: 3px solid #8aacc6;
  border-radius: 9px;
  background: #ffffff;
  color: #344f67;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#detailModal .visit-comments-empty { padding: 12px; border: 1px dashed #d5e2ed; border-radius: 9px; background: #ffffff; color: #5d768b; font-size: 12px; }
#detailModal .visit-comment-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
#detailModal .visit-comment-composer input {
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #d1dce7;
  border-radius: 9px;
  background: #ffffff;
  color: #294761;
  font: inherit;
}
#detailModal .visit-comment-composer input:focus { border-color: #3982b7; outline: 3px solid rgba(57, 130, 183, .12); }
#detailModal .visit-comment-composer .btn { min-height: 40px; padding: 8px 15px; border-radius: 9px; }
@media (max-width: 700px) {
  #detailModal .modal-header { grid-template-columns: minmax(0, 1fr) 38px; gap: 10px 12px; }
  #detailModal .modal-title-group { grid-column: 1; grid-row: 1; }
  #detailModal .modal-date-badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  #detailModal .modal-header .btn-outline { grid-column: 2; grid-row: 1; }
}
@media (max-width: 680px) {
  #detailModal .modal-header { padding: 15px 17px 13px; }
  #detailModal #mBody { padding: 14px 17px 18px; }
  #detailModal .visit-detail-records { grid-template-columns: 1fr; }
  #detailModal .visit-detail-note { padding: 10px 0 0; border-top: 1px solid #dce8f2; border-left: 0; }
  #detailModal .visit-detail-note:only-child { padding-top: 0; border-top: 0; }
  #detailModal .visit-detail-fields.is-completed .visit-detail-time { padding-left: 0; border-left: 0; }
  #detailModal .visit-detail-summary-toolbar { align-items: flex-start; flex-direction: column; }
  #detailModal .visit-detail-actions { justify-content: flex-start; margin-left: 0; }
  #detailModal .visit-schedule-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #detailModal .visit-schedule-controls .visit-schedule-update { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 440px) {
  #detailModal .modal { border-radius: 18px; }
  #detailModal .modal-header { padding: 13px 14px 12px; }
  #detailModal .modal-title-group h3 { font-size: 17px; }
  #detailModal #mBody { padding: 12px 14px 16px; }
  #detailModal .visit-detail-summary { padding: 11px; border-radius: 12px; }
  #detailModal .visit-schedule-box { padding: 11px; }
  #detailModal .visit-detail-section { padding: 13px; }
  #detailModal .visit-detail-fields { grid-template-columns: 1fr; }
  #detailModal .visit-detail-fields:not(.is-completed) { grid-template-columns: 1fr; }
  #detailModal .visit-detail-fields.is-completed { grid-template-columns: 1fr; }
  #detailModal .visit-detail-note { grid-column: 1; }
  #detailModal .visit-linked-work { align-items:flex-start; flex-wrap:wrap; }
  #detailModal .visit-linked-work-copy { min-width:calc(100% - 55px); }
  #detailModal .visit-linked-work .btn { margin-left:44px; }
  #detailModal .visit-outcome-follow-up,
  #detailModal .visit-follow-up-fields { grid-template-columns: 1fr; }
  #detailModal .visit-comment-composer { grid-template-columns: 1fr; }
  #detailModal .visit-comment-composer .btn,
  #detailModal .visit-detail-footer .btn { width: 100%; }
  #detailModal .visit-detail-footer { display: flex; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 9px; }
  #detailModal .gps-employee-disclosure { flex: 0 0 auto; }
  #detailModal .visit-detail-footer .btn-primary { margin-left: 0; }
}

.employee-feedback-page.active { display: grid; gap: 16px; }
.employee-feedback-heading {
  position: relative;
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 0;
  padding: 22px 26px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(118deg, #12395b 0%, #075985 58%, #0879a8 100%);
  box-shadow: 0 8px 22px rgba(15, 46, 74, .13);
}
.employee-feedback-heading::after {
  position: absolute;
  top: -70px;
  right: 20%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.employee-feedback-heading > div:first-child { position: relative; z-index: 1; }
.employee-feedback-heading .long-work-eyebrow { display: inline-block; margin-bottom: 5px; color: #b9ddf5; }
.employee-feedback-heading h2 { margin: 2px 0 4px; color: #fff; font-size: 22px; letter-spacing: -.025em; }
.employee-feedback-heading p { max-width: 620px; margin: 0; color: #d7e8f5; font-size: 12.5px; }
.employee-feedback-heading-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 245px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.employee-feedback-heading-note-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #e6f4ff;
  font-size: 13px;
  font-weight: 750;
}
.employee-feedback-heading-note div { display: grid; gap: 2px; }
.employee-feedback-heading-note strong { font-size: 11.5px; }
.employee-feedback-heading-note span:last-child { color: #d7e8f5; font-size: 10px; line-height: 1.4; }
.employee-feedback-employee-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: start; gap: 16px; }
.employee-feedback-form-panel,
.employee-feedback-list-panel,
.employee-feedback-admin-panel { min-width: 0; padding: 21px; border-radius: 13px; }
.employee-feedback-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.employee-feedback-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.employee-feedback-panel-heading > span:first-child { display: grid; gap: 2px; }
.employee-feedback-panel-title,
.employee-feedback-list-heading h3 { margin: 2px 0 0; color: #173d5c; font-size: 16px; }
.employee-feedback-form-content { padding-top: 10px; }
#employeeFeedbackFormPanel[hidden] { display: none; }
.employee-feedback-step { display: block; color: #70869a; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.employee-feedback-helper { margin: 0 0 18px; color: #718294; font-size: 11.5px; line-height: 1.55; }
.employee-feedback-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.employee-feedback-form-grid .form-group { min-width: 0; margin: 0; }
.employee-feedback-form-grid .form-group label,
.employee-feedback-review .form-group label { display: block; margin-bottom: 6px; color: #40586d; font-size: 11px; font-weight: 700; }
.employee-feedback-form-wide { grid-column: 1 / -1; }
.employee-feedback-form-grid input,
.employee-feedback-form-grid select,
.employee-feedback-form-grid textarea,
.employee-feedback-review select,
.employee-feedback-review textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e0e9;
  border-radius: 9px;
  background: #fbfdff;
  color: #294761;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.employee-feedback-form-grid input,
.employee-feedback-form-grid select,
.employee-feedback-review select { min-height: 42px; padding: 9px 11px; }
.employee-feedback-form-grid textarea,
.employee-feedback-review textarea { min-height: 100px; padding: 10px 11px; resize: vertical; line-height: 1.55; }
.employee-feedback-form-grid input::placeholder,
.employee-feedback-form-grid textarea::placeholder,
.employee-feedback-review textarea::placeholder { color: #98a8b6; }
.employee-feedback-form-grid input:focus,
.employee-feedback-form-grid select:focus,
.employee-feedback-form-grid textarea:focus,
.employee-feedback-review select:focus,
.employee-feedback-review textarea:focus { border-color: #3982b7; outline: 3px solid rgba(57, 130, 183, .12); background: #fff; }
.employee-feedback-form-footer { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.employee-feedback-form-footer [role="status"] { color: #16704c; font-size: 11px; font-weight: 650; line-height: 1.4; }
.employee-feedback-form-footer .btn { min-height: 40px; padding-inline: 16px; }
.employee-feedback-list-heading { margin-bottom: 15px; }
.employee-feedback-list-heading h3 { font-size: 15px; }
.employee-feedback-count {
  display: inline-flex;
  min-width: 28px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid #dce8f1;
  border-radius: 999px;
  background: #f3f8fc;
  color: #315a7b;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.employee-feedback-list { display: grid; gap: 10px; }
.employee-feedback-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e0e8ef;
  border-left: 3px solid #9db8cb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(25, 55, 80, .035);
}
.employee-feedback-card--new { border-left-color: #3982b7; }
.employee-feedback-card--in_progress { border-left-color: #d9902f; }
.employee-feedback-card--resolved { border-left-color: #299454; }
.employee-feedback-card-header,
.employee-feedback-card-tags { display: flex; min-width: 0; align-items: center; gap: 7px; }
.employee-feedback-card-header { justify-content: space-between; margin-bottom: 9px; }
.employee-feedback-card-tags { flex-wrap: wrap; }
.employee-feedback-type,
.employee-feedback-area { display: inline-flex; min-height: 23px; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 750; }
.employee-feedback-type--issue { background: #fff0ef; color: #a63e35; }
.employee-feedback-type--suggestion { background: #edf5fd; color: #245c8d; }
.employee-feedback-area { background: #f0f3f6; color: #5c6e7d; }
.employee-feedback-card h4 { margin: 0; color: #213f58; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.employee-feedback-description { margin: 7px 0 0; color: #4a6072; font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.employee-feedback-card-meta { margin-top: 9px; color: #7a8b99; font-size: 10px; }
.employee-feedback-review { display: grid; grid-template-columns: minmax(125px, .7fr) minmax(190px, 1.5fr) auto; align-items: end; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e7edf2; }
.employee-feedback-review .form-group { min-width: 0; margin: 0; }
.employee-feedback-review select { min-height: 39px; padding: 8px 10px; }
.employee-feedback-review textarea { min-height: 71px; }
.employee-feedback-review .btn { min-height: 39px; white-space: nowrap; }
.employee-feedback-response { margin-top: 11px; padding: 10px 12px; border: 1px solid #dceaf3; border-left: 3px solid #6b9dc2; border-radius: 0 9px 9px 0; background: #f4f9fc; color: #385a75; font-size: 10.5px; }
.employee-feedback-response p { margin-top: 4px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.employee-feedback-empty { padding: 20px 16px; border: 1px dashed #d4e0ea; border-radius: 10px; background: #f9fbfd; color: #75899a; font-size: 11.5px; line-height: 1.55; text-align: center; }
.employee-feedback-admin-heading .employee-feedback-list-heading { margin-bottom: 17px; }
.employee-feedback-admin-heading .employee-feedback-list-heading > div > p { margin: 4px 0 0; color: #74879a; font-size: 10.5px; }
.employee-feedback-filter { display: grid; min-width: 180px; gap: 5px; color: #64788b; font-size: 10px; font-weight: 700; }
.employee-feedback-filter select { min-height: 39px; padding: 7px 10px; border: 1px solid #d5e0e9; border-radius: 8px; background: #fff; color: #294761; font: inherit; }
.employee-feedback-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.employee-feedback-metric { display: grid; min-width: 0; gap: 4px; padding: 11px 13px; border: 1px solid #e3eaf0; border-radius: 10px; background: #f9fbfd; }
.employee-feedback-metric span { color: #718294; font-size: 10px; font-weight: 650; }
.employee-feedback-metric strong { color: #23435d; font-size: 19px; line-height: 1.2; }
.employee-feedback-metric--new { border-color: #d8e8f4; background: #f3f8fc; }
.employee-feedback-metric--new strong { color: #28678f; }
.employee-feedback-metric--progress { border-color: #f1e2c9; background: #fffbf4; }
.employee-feedback-metric--progress strong { color: #9a641c; }
.employee-feedback-metric--resolved { border-color: #d8ebde; background: #f5fbf6; }
.employee-feedback-metric--resolved strong { color: #287446; }
@media (max-width: 900px) {
  .employee-feedback-employee-layout { grid-template-columns: 1fr; }
  .employee-feedback-list-panel { min-height: 160px; }
}
@media (max-width: 760px) {
  .paint-program-manager-toolbar { grid-template-columns:1fr; }
  .paint-program-manager-summary { grid-template-columns:1fr; }
  .paint-program-manager-list { grid-template-columns:1fr; }
  .paint-program-manager-fields { grid-template-columns:1fr; }
  .paint-program-manager-card .btn { width:100%; }
  .employee-feedback-heading { min-height: 0; padding: 19px 20px; }
  .employee-feedback-form-panel,
  .employee-feedback-list-panel,
  .employee-feedback-admin-panel { padding: 17px; }
  .employee-feedback-review { grid-template-columns: 1fr 1fr; }
  .employee-feedback-review .form-group:nth-child(2) { grid-column: 1 / -1; }
  .employee-feedback-review .btn { justify-self: start; }
}
@media (max-width: 520px) {
  .employee-feedback-heading { align-items: flex-start; flex-direction: column; gap: 13px; padding: 18px; }
  .employee-feedback-heading h2 { font-size: 20px; }
  .employee-feedback-heading-note { flex-basis: auto; width: 100%; }
  .employee-feedback-form-grid,
  .employee-feedback-review { grid-template-columns: 1fr; }
  .employee-feedback-form-wide,
  .employee-feedback-review .form-group:nth-child(2) { grid-column: 1; }
}

.employee-dealer-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e1e9f0;
  border-radius: 10px;
  background: #f5f8fb;
}
.employee-dealer-tabs[hidden],
.employee-key-account-panel[hidden],
#employeeDealerPortfolioContent[hidden] {
  display: none !important;
}
.employee-dealer-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64788b;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, color .16s ease;
}
.employee-dealer-tab:hover { color: #234b6b; }
.employee-dealer-tab.is-selected {
  background: #fff;
  color: #174e78;
  box-shadow: 0 1px 3px rgba(22, 53, 78, .12);
}
.employee-dealer-tab:focus-visible,
.key-account-card-summary:focus-visible,
.key-account-edit-button:focus-visible,
.key-account-work-create > summary:focus-visible,
.key-account-work-item > summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .2);
  outline-offset: 2px;
}
.employee-key-account-panel {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}
.key-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #e2eaf2;
  border-radius: 14px;
  background: linear-gradient(115deg, #f3f8fc 0%, #fff 68%);
  box-shadow: 0 4px 14px rgba(27, 63, 92, .045);
}
.key-account-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.key-account-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid #dceaf4;
  border-radius: 999px;
  background: #eaf4fb;
  color: #397294;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.key-account-heading h3 {
  margin: 7px 0 4px;
  color: #1b3f5c;
  font-size: 20px;
  letter-spacing: -.025em;
}
.key-account-heading p {
  margin: 0;
  color: #667d90;
  font-size: 12px;
  line-height: 1.5;
}
.key-account-schema-notice,
.key-account-empty,
.key-account-no-branches {
  padding: 15px 17px;
  border: 1px dashed #d3e0e9;
  border-radius: 10px;
  background: #f8fbfd;
  color: #61798d;
  font-size: 11px;
  line-height: 1.5;
}
.key-account-schema-notice:not([hidden]) {
  border-color: #e8c77d;
  background: #fffaf0;
  color: #795b1a;
}
.key-account-schema-notice a { display: inline-block; margin-top: 4px; color: #175f89; font-weight: 700; }
.key-account-form {
  padding: 20px;
  border: 1px solid #d9e6ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdff, #f6fafe);
  box-shadow: 0 4px 14px rgba(27, 63, 92, .045);
}
.key-account-form[hidden] { display: none !important; }
.key-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.key-account-form-grid .form-group { min-width: 0; margin: 0; }
.key-account-form-grid label {
  display: block;
  margin-bottom: 6px;
  color: #40586d;
  font-size: 11px;
  font-weight: 700;
}
.key-account-form-grid input,
.key-account-form-grid select,
.key-account-form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d3e0e9;
  border-radius: 9px;
  background: #fff;
  color: #274761;
  font: inherit;
  font-size: 12px;
}
.key-account-form-grid textarea { resize: vertical; }
.key-account-form-grid input:focus,
.key-account-form-grid select:focus,
.key-account-form-grid textarea:focus {
  border-color: #4a8fbd;
  outline: 3px solid rgba(74, 143, 189, .13);
}
.key-account-form-wide { grid-column: 1 / -1; }
.key-account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}
.key-account-group-grid { display: grid; gap: 14px; }
.key-account-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 55, 80, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.key-account-card:hover,
.key-account-card.is-expanded {
  border-color: #b8d0e0;
  box-shadow: 0 9px 24px rgba(23, 55, 80, .085);
}
.key-account-card:hover { transform: translateY(-1px); }
.key-account-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(110deg, #fff 0%, #fbfdff 100%);
}
.key-account-card.is-expanded .key-account-card-header { background: linear-gradient(110deg, #f8fbfe 0%, #fff 100%); }
.key-account-card-summary {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.key-account-card-heading-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.key-account-card-title { color: #183c58; font-size: 18px; font-weight: 750; letter-spacing: -.025em; }
.key-account-card-owner {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf5fa;
  color: #4a708a;
  font-size: 10px;
  font-weight: 600;
}
.key-account-card-description { margin-top: 2px; color: #657b8d; font-size: 11px; line-height: 1.5; }
.key-account-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  margin-top: 7px;
  color: #667d90;
  font-size: 11px;
}
.key-account-metrics > span:not(.key-account-last-work-update) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid #e0e9f0;
  border-radius: 999px;
  background: #f6f9fb;
}
.key-account-metrics strong { color: #1e5279; font-size: 12px; }
.key-account-last-work-update { display: inline-flex; align-items: center; gap: 6px; color: #71869a; font-size: 11px; }
.key-account-last-work-update::before { width: 6px; height: 6px; border-radius: 50%; background: #86a7bc; content: ''; }
.key-account-edit-button { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; border-radius: 9px; font-size: 11px; }
.key-account-branches {
  border-top: 1px solid #e8eef3;
  background: #f8fafc;
}
.key-account-branches[hidden] { display: none !important; }
.key-account-branch-list { display: grid; gap: 12px; padding: 14px 16px 4px; }
.key-account-branch-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px 17px;
  border: 1px solid #e1e8ef;
  border-left: 4px solid #e11d48;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 36, 58, .045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.key-account-branch-card:hover {
  border-color: #cbd9e4;
  border-left-color: #e11d48;
  box-shadow: 0 7px 18px rgba(15, 36, 58, .075);
  transform: translateY(-1px);
}
.key-account-branch-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.key-account-branch-identity { min-width: 0; }
.key-account-branch-identity h4 {
  margin: 0;
  color: #29455e;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.key-account-branch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 5px;
  color: #718294;
  font-size: 12px;
}
.key-account-branch-meta strong { color: #e11d48; font-weight: 750; }
.key-account-branch-meta-separator { color: #b6c3ce; }
.key-account-branch-visit {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #f4d7a3;
  border-radius: 999px;
  background: #fff8eb;
  color: #95600e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.key-account-branch-visit.is-visited {
  border-color: #cce8d9;
  background: #f0faf4;
  color: #397755;
}
.key-account-branch-specs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.key-account-branch-spec {
  display: grid;
  min-width: 0;
  min-height: 75px;
  align-content: center;
  gap: 6px;
  padding: 11px 13px;
  border: 1px solid #e1eaf2;
  border-radius: 11px;
  background: #f7f9fc;
}
.key-account-branch-spec > span {
  color: #77899d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .025em;
  line-height: 1.3;
  text-transform: uppercase;
}
.key-account-branch-spec strong {
  overflow: hidden;
  color: #354f66;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.key-account-rep {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid #e1eaf0;
  border-radius: 999px;
  background: #fff;
  color: #425f74;
  font-size: 11px;
  font-weight: 600;
}
.key-account-rep::before { width: 7px; height: 7px; border-radius: 50%; background: #64a287; content: ''; }
.key-account-no-branches { margin: 14px; text-align: center; }
.key-account-work-section {
  display: grid;
  gap: 12px;
  margin: 12px 16px 16px;
  padding: 16px 18px;
  border: 1px solid #dfe9f1;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f9fc 0%, #fbfdff 52%, #fff 100%);
}
.key-account-work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 1px 4px;
}
.key-account-work-heading > div:first-child { position: relative; padding-left: 12px; }
.key-account-work-heading > div:first-child::before {
  position: absolute;
  top: 2px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#2c8ab8, #8bb9d2);
  content: '';
}
.key-account-work-heading h4 { margin: 0; color: #1e435f; font-size: 14px; letter-spacing: -.01em; }
.key-account-work-heading p { margin: 4px 0 0; color: #718294; font-size: 11px; line-height: 1.45; }
.key-account-work-heading > span {
  padding: 5px 10px;
  border: 1px solid #dce8f0;
  border-radius: 999px;
  background: #fff;
  color: #45677e;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.key-account-work-create,
.key-account-work-item {
  overflow: hidden;
  border: 1px solid #dfe8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 63, 90, .025);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.key-account-work-create:hover,
.key-account-work-item:hover { border-color: #bfd3e1; box-shadow: 0 4px 12px rgba(28, 63, 90, .055); }
.key-account-work-item--in_progress { border-left: 3px solid #d9902f; }
.key-account-work-item--completed { border-left: 3px solid #4f9a68; }
.key-account-work-item--not_completed { border-left: 3px solid #c75c5c; }
.key-account-work-create > summary,
.key-account-work-item > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  color: #31536c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.key-account-work-create > summary::-webkit-details-marker,
.key-account-work-item > summary::-webkit-details-marker { display: none; }
.key-account-work-create > summary { justify-content: flex-start; color: #17608e; background: #f5fafc; }
.key-account-work-create > summary:hover { background: #edf6fb; }
.key-account-work-create > summary::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #e1f0f8;
  color: #17608e;
  content: '+';
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.key-account-work-create[open] > summary,
.key-account-work-item[open] > summary { border-bottom: 1px solid #e8eef3; }
.key-account-work-form,
.key-account-work-item-details { padding: 16px; }
.key-account-work-form-grid,
.key-account-work-update-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.key-account-work-form-grid .form-group,
.key-account-work-update-grid .form-group { min-width: 0; margin: 0; }
.key-account-work-form-grid label,
.key-account-work-update-grid label {
  display: block;
  margin-bottom: 6px;
  color: #40586d;
  font-size: 11px;
  font-weight: 700;
}
.key-account-work-form-grid input,
.key-account-work-form-grid textarea,
.key-account-work-update-grid input,
.key-account-work-update-grid select,
.key-account-work-update-grid textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d4e0e9;
  border-radius: 8px;
  color: #274761;
  font: inherit;
  font-size: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.key-account-work-form-grid input:focus,
.key-account-work-form-grid textarea:focus,
.key-account-work-update-grid input:focus,
.key-account-work-update-grid select:focus,
.key-account-work-update-grid textarea:focus {
  border-color: #75a8c7;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(43, 122, 169, .12);
}
.key-account-work-form-grid textarea,
.key-account-work-update-grid textarea { resize: vertical; }
.key-account-work-form-wide { grid-column: 1 / -1; }
.key-account-work-form-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
.key-account-work-form-actions .btn { min-height: 38px; padding: 8px 14px; border-radius: 8px; font-size: 11px; }
.key-account-work-list { display: grid; gap: 10px; }
.key-account-work-item-copy { display: grid; min-width: 0; gap: 3px; }
.key-account-work-item-copy strong { color: #244761; font-size: 12px; overflow-wrap: anywhere; }
.key-account-work-item-copy small { color: #718294; font-size: 10px; font-weight: 500; }
.key-account-work-item-details > p { margin: 0 0 10px; color: #53677b; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.key-account-work-item > summary .long-work-status { flex: 0 0 auto; padding: 5px 9px; font-size: 10px; }
.key-account-work-item > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-left: 2px;
  border-right: 1.5px solid #8da0af;
  border-bottom: 1.5px solid #8da0af;
  content: '';
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}
.key-account-work-item[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.key-account-work-outcome { padding: 10px 12px; border-left: 3px solid #5b9b75; border-radius: 0 7px 7px 0; background: #f1f8f3; }
.key-account-work-timeline {
  display: grid;
  gap: 8px;
  margin: 13px 0;
  padding: 0;
  list-style: none;
}
.key-account-work-timeline li {
  position: relative;
  padding: 10px 12px 10px 15px;
  border: 1px solid #e2ebf1;
  border-left: 2px solid #cbdfea;
  border-radius: 0 8px 8px 0;
  background: #fbfdff;
}
.key-account-work-timeline li::before {
  position: absolute;
  top: 14px;
  left: -6px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4e8fb3;
  box-shadow: 0 0 0 1px #b8d2e1;
  content: '';
}
.key-account-work-timeline li > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.key-account-work-timeline strong { color: #31536c; font-size: 11px; }
.key-account-work-timeline time,
.key-account-work-timeline small { color: #8495a2; font-size: 10px; }
.key-account-work-timeline time { padding: 3px 7px; border-radius: 999px; background: #f0f5f8; white-space: nowrap; }
.key-account-work-timeline p { margin: 7px 0; color: #53677b; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.key-account-work-update-form { margin-top: 14px; padding: 14px; border: 1px solid #e3ebf1; border-radius: 9px; background: #f8fbfd; }
.key-account-work-update-form h5 { margin: 0 0 11px; color: #31536c; font-size: 11px; }
.key-account-work-empty { padding: 17px; border: 1px dashed #cbdbe6; border-radius: 9px; color: #718294; background: rgba(255,255,255,.72); font-size: 11px; text-align: center; }
.paint-program-manager-page { display:grid; gap:14px; }
.paint-program-manager-heading {
  display:flex; align-items:center; justify-content:space-between; padding:18px 20px;
  border:1px solid #dce8e3; border-radius:12px;
  background:linear-gradient(118deg, #effaf5 0%, #f8fcfa 62%, #fff 100%);
}
.paint-program-manager-eyebrow { color:#3f8265; font-size:9px; font-weight:800; letter-spacing:.11em; }
.paint-program-manager-heading h2 { margin:5px 0 4px; color:#244a3a; font-size:20px; }
.paint-program-manager-heading p { margin:0; color:#6e8178; font-size:12px; }
.paint-program-manager-toolbar {
  display:grid; grid-template-columns:minmax(220px, 1fr) 180px 180px; gap:8px;
  padding:11px; border:1px solid #e1e9e5; border-radius:10px; background:#fff;
}
.paint-program-manager-toolbar input,
.paint-program-manager-toolbar select {
  min-height:38px; width:100%; min-width:0; padding:0 10px;
  border:1px solid #d6e2dc; border-radius:8px; background:#fff; color:#344e43; font:inherit; font-size:11px;
}
.paint-program-manager-summary {
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px;
}
.paint-program-manager-summary article {
  display:grid; gap:3px; padding:11px 13px; border:1px solid #dfe8e3; border-radius:9px; background:#fff;
}
.paint-program-manager-summary span { color:#718279; font-size:10px; }
.paint-program-manager-summary strong { color:#285842; font-size:20px; }
.paint-program-manager-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.paint-program-manager-card {
  display:grid; gap:11px; padding:14px; border:1px solid #dfe7e3; border-radius:11px; background:#fff;
  box-shadow:0 3px 10px rgba(24, 73, 51, .045);
}
.paint-program-manager-card-heading {
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding-bottom:9px; border-bottom:1px solid #edf2ef;
}
.paint-program-manager-card-heading h3 { margin:0; color:#29483a; font-size:13px; }
.paint-program-manager-card-heading p { margin:3px 0 0; color:#7c8d84; font-size:10px; }
.paint-program-manager-card-heading > span { color:#718279; font-size:9px; text-align:right; }
.paint-program-manager-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.paint-program-manager-fields label { display:grid; gap:4px; color:#6d7d74; font-size:9px; font-weight:700; }
.paint-program-manager-fields select {
  width:100%; min-height:36px; padding:0 8px; border:1px solid #d7e2dc; border-radius:7px;
  background:#fff; color:#354f43; font:inherit; font-size:10px;
}
.paint-program-manager-card .btn { justify-self:end; min-height:36px; }
.paint-program-manager-empty { grid-column:1/-1; padding:20px; border:1px dashed #cfddd6; border-radius:10px; color:#718279; text-align:center; }
@media (max-width: 1200px) {
  .key-account-branch-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .employee-dealer-tabs { margin-top: 12px; }
  .key-account-heading { align-items: flex-start; flex-direction: column; }
  .key-account-heading { padding: 16px; }
  .key-account-heading-actions { width: 100%; flex-wrap: wrap; }
  .key-account-heading-actions .btn { flex: 1 1 150px; }
  .key-account-form-grid { grid-template-columns: 1fr; }
  .key-account-form-wide { grid-column: 1; }
  .key-account-branch-list { gap: 10px; padding: 10px 10px 2px; }
  .key-account-branch-card { gap: 12px; padding: 13px; }
  .key-account-branch-heading { align-items: flex-start; flex-direction: column; }
  .key-account-branch-identity h4 { font-size: 15px; }
  .key-account-branch-meta { font-size: 11px; }
  .key-account-branch-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .key-account-branch-spec { min-height: 68px; padding: 9px 10px; }
  .key-account-branch-spec strong { font-size: 12px; }
  .key-account-branch-visit { white-space: normal; }
  .key-account-card-header { align-items: flex-start; padding: 15px; }
  .key-account-card-heading-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .key-account-card-title { font-size: 16px; }
  .key-account-metrics { gap: 6px; }
  .key-account-work-section { margin: 10px; padding: 13px; }
  .key-account-work-heading { align-items: flex-start; }
  .key-account-work-item > summary { align-items: flex-start; flex-wrap: wrap; }
  .key-account-work-item > summary::after { margin: 6px 2px 0 auto; }
  .key-account-work-item-copy { flex: 1 1 55%; }
  .key-account-work-item > summary .long-work-status { order: 2; }
  .key-account-work-form-grid,
  .key-account-work-update-grid { grid-template-columns: 1fr; }
  .key-account-work-form-wide { grid-column: 1; }
  .key-account-work-form-actions .btn { width: 100%; }
  .employee-feedback-form-footer,
  .employee-feedback-list-heading,
  .employee-feedback-admin-heading .employee-feedback-list-heading { align-items: stretch; flex-direction: column; }
  .employee-feedback-form-footer .btn { width: 100%; }
  .employee-feedback-filter { min-width: 0; }
  .employee-feedback-review .btn { width: 100%; }
  .employee-feedback-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-feedback-card-header { align-items: flex-start; flex-direction: column; }
}

/* Employee schedule: final visual system */
#view-emp-schedule {
  --schedule-border: #dde6ef;
  --schedule-muted: #718397;
  --schedule-blue: #155c94;
}
#view-emp-schedule .filter-bar {
  align-items: center;
  min-height: 82px;
  margin-bottom: 12px;
  padding: 10px 16px;
  border: 1px solid #e0e7ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 55, 75, .055);
}
#view-emp-schedule .employee-schedule-eyebrow {
  margin-bottom: 2px;
  color: #2370a6;
  font-size: 8.5px;
  letter-spacing: .12em;
}
#view-emp-schedule .filter-bar h2 {
  margin: 1px 0 1px;
  color: #183650;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.025em;
}
#view-emp-schedule .filter-bar p {
  margin-top: 3px;
  color: #7a8d9d;
  font-size: 11px;
  line-height: 1.25;
}
#view-emp-schedule .employee-week-controls {
  width: min(700px, 64%);
  grid-template-columns: minmax(300px, 1fr) 150px 150px;
  align-items: end;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e5ebf1;
  border-radius: 11px;
  background: #f7f9fb;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher {
  min-width: 0;
  border: 0;
  background: transparent;
}
#view-emp-schedule .week-range-display {
  min-height: 38px;
  border-color: #e1e8ef;
  background: #fff;
}
#view-emp-schedule .employee-week-jump,
#view-emp-schedule .employee-schedule-filter { min-width: 112px; }
#view-emp-schedule .employee-week-jump input,
#view-emp-schedule .employee-mobile-day-picker select,
#view-emp-schedule .employee-schedule-filter select {
  min-height: 38px;
  border-color: #dde6ef;
  background: #fff;
}
#view-emp-schedule .employee-agenda {
  padding: 10px 12px 12px;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: #f7f9fb;
  box-shadow: 0 8px 24px rgba(31, 55, 75, .055);
  overflow-x: visible;
}
#view-emp-schedule .employee-schedule-view-toolbar {
  min-height: 42px;
  margin: 0 0 8px;
  padding: 4px 2px 4px 8px;
  justify-content: space-between;
}
#view-emp-schedule .employee-schedule-view-label {
  color: #7b8d9d;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
#view-emp-schedule:not(.is-vertical-view) .employee-week-board {
  min-width: 0;
  gap: 7px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column {
  min-height: 294px;
  overflow: hidden;
  border: 1px solid #e1e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(48, 73, 94, .04);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today {
  border-color: #86b7d9;
  box-shadow: 0 0 0 2px rgba(54, 128, 178, .08), 0 6px 16px rgba(48, 73, 94, .07);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column-header {
  min-height: 72px;
  align-items: flex-start;
  padding: 10px 8px 8px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today .employee-day-column-header {
  background: linear-gradient(180deg, #edf6fd 0%, #f7fbfe 100%);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-heading h3 {
  color: #29445b;
  font-size: 11.5px;
  line-height: 1.15;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-date {
  margin-top: 1px;
  background: #f1f4f7;
  color: #718397;
  font-size: 9.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-total {
  min-height: 21px;
  padding: 0 4px;
  background: #f5f7f9;
  font-size: 8.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-total strong {
  min-width: 14px;
  height: 14px;
  font-size: 8.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list {
  gap: 8px;
  padding: 8px 7px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-schedule-task {
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(48, 73, 94, .055);
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-top {
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e7edf3;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .type-badge {
  max-width: 100%;
  border: 1px solid #d8e6ef;
  background: #fff;
  color: #35627f;
  border-radius: 6px;
  font-size: 9px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-title {
  font-size: 11.5px;
  line-height: 1.28;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-sub {
  font-size: 9.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-actions {
  gap: 5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty {
  min-height: 112px;
  margin: 8px 7px;
  border: 1px dashed #dbe5ed;
  border-radius: 10px;
  background: #fafbfd;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(48,73,94,.05);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty-mark::before,
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty-mark::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: #9db1c1;
  content: "";
  transform: translate(-50%, -50%);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty strong {
  color: #60778a;
  font-size: 10.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty span:not(.employee-day-empty-mark) {
  max-width: 92px;
  color: #94a3b1;
  font-size: 9.5px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-footer {
  padding: 0 7px 8px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan--header {
  display: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan {
  min-height: 34px;
  border: 1px solid #dfe7ee;
  background: #fff;
  color: #587186;
  font-size: 9.5px;
  border-radius: 8px;
  box-shadow: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan:hover {
  border-color: #b5cad9;
  background: #eff6fb;
  color: #155c94;
}
#empBottomInsights.emp-bottom-grid {
  gap: 12px;
  margin-top: 2px;
}
#empBottomInsights .panel {
  border: 1px solid #e2e8ef;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31,55,75,.045);
}
#empBottomInsights .weekly-todo-panel {
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}
#empBottomInsights .weekly-todo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid #dfe8f0;
  border-radius: 11px;
  background: #f7f9fb;
}
#empBottomInsights .weekly-todo-form label {
  color: #63788a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
#empBottomInsights .weekly-todo-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
#empBottomInsights .weekly-todo-form input {
  min-height: 44px;
  border: 1px solid #d5e1ea;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(34, 67, 95, .025);
}
#empBottomInsights .weekly-todo-form .btn {
  min-width: 82px;
  min-height: 44px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .14);
}
#empBottomInsights .weekly-todo-description {
  justify-self: start;
  margin: 0 12px;
  color: #7b8d9b;
  font-size: 11.5px;
}
#empBottomInsights .insight-card {
  padding: 18px;
  border: 1px solid #e1e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 55, 75, .055);
}
#empBottomInsights .insight-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f4;
}
#empBottomInsights .insight-header h3 {
  color: #1d3a52;
  font-size: 15.5px;
  letter-spacing: -.01em;
}
#empBottomInsights .day-col-count {
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #d8e6f1;
  background: #edf5fb;
  color: #2d668d;
  font-size: 10.5px;
}
#empBottomInsights .weekly-todo-list {
  margin-top: 9px;
  gap: 8px;
}
#empBottomInsights .weekly-todo-row {
  min-height: 48px;
  padding: 8px 9px 8px 11px;
  border: 1px solid #e3eaf0;
  border-left: 3px solid #75a4c5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(42, 70, 94, .035);
}
#empBottomInsights .weekly-todo-row.is-done {
  border-left-color: #55ad7d;
  background: #f7fbf8;
}
#empBottomInsights .weekly-todo-check {
  gap: 10px;
}
#empBottomInsights .weekly-todo-check input {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
#empBottomInsights .weekly-todo-delete {
  min-height: 32px;
  border-radius: 7px;
  font-size: 10.5px;
}
#empBottomInsights .weekly-todo-toggle {
  margin-top: 9px;
  min-height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #47657a;
}
#empBottomInsights .weekly-todo-empty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 78px;
  margin: 9px 0 0;
  padding: 12px;
  border: 1px dashed #d9e5ee;
  border-radius: 10px;
  background: #fafbfd;
  color: #718397;
}
#empBottomInsights .weekly-todo-empty strong {
  display: block;
  color: #526a7d;
  font-size: 12.5px;
}
#empBottomInsights .weekly-todo-empty p {
  margin: 3px 0 0;
  color: #8a9aa7;
  font-size: 11px;
}
#empBottomInsights .weekly-todo-empty-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  grid-template-columns: 7px minmax(0, 1fr);
  align-content: center;
  gap: 5px 7px;
  padding: 9px;
  border: 1px solid #dfe8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(48, 73, 94, .055);
}
#empBottomInsights .weekly-todo-empty-icon::before {
  width: 7px;
  height: 7px;
  grid-row: 1 / span 3;
  align-self: start;
  margin-top: 2px;
  border: 1.5px solid #91a9bb;
  border-radius: 50%;
  content: "";
}
#empBottomInsights .weekly-todo-empty-icon span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #dbe5ec;
}
#empBottomInsights .weekly-todo-empty-icon span:nth-child(2) { width: 70%; }
#empBottomInsights .weekly-todo-empty-icon span:nth-child(3) { width: 82%; }

@media (max-width: 640px) {
  #empBottomInsights .insight-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #empBottomInsights .weekly-todo-description {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin: 6px 0 0;
  }
}

@container employee-agenda (min-width: 900px) {
  #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
    min-width: 0;
  }
}
@container employee-agenda (max-width: 899px) {
  #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
    min-width: 980px;
  }
  #view-emp-schedule .employee-agenda { overflow-x: auto; }
}
@media (max-width: 1050px) {
  #view-emp-schedule .filter-bar { align-items: stretch; }
  #view-emp-schedule .employee-week-controls {
    width: 100%;
    grid-template-columns: minmax(300px, 1fr) 150px 150px;
  }
}
@media (max-width: 640px) {
  #view-emp-schedule .filter-bar {
    min-height: 0;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 13px;
  }
  #view-emp-schedule .employee-agenda {
    padding: 8px;
    border-radius: 13px;
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
    min-width: 0;
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-day-column {
    min-height: 0;
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-day-empty {
    min-height: 96px;
  }
}

/* Employee program: worker-first command header */
#view-emp-schedule .filter-bar {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 0%, rgba(83, 157, 202, .10), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 10px 28px rgba(31, 55, 75, .07);
}
#view-emp-schedule .filter-bar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #287bb0 0%, #62a9ce 100%);
  content: "";
}
#view-emp-schedule .employee-schedule-heading-copy {
  display: grid;
  min-width: 0;
  padding: 2px 8px 2px 4px;
}
#view-emp-schedule .employee-schedule-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: #3979a4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}
#view-emp-schedule .employee-schedule-eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #3979a4;
  content: "";
}
#view-emp-schedule .filter-bar h2 {
  margin: 0;
  color: #18344d;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
#view-emp-schedule .filter-bar p {
  margin: 7px 0 0;
  color: #6f8293;
  font-size: 12px;
  line-height: 1.35;
}
#view-emp-schedule .employee-week-controls {
  width: min(720px, 62%);
  min-height: 78px;
  grid-template-columns: minmax(286px, 1fr) 150px 150px;
  align-items: end;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dfe8ef;
  border-radius: 13px;
  background: rgba(247,250,252,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher {
  height: 52px;
  align-items: center;
  border: 1px solid #e3ebf1;
  border-radius: 10px;
  background: #fff;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
  height: 42px;
  min-height: 42px;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#view-emp-schedule .week-range-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button {
  width: 34px;
  min-height: 34px;
  flex-basis: 34px;
}
#view-emp-schedule .employee-week-jump,
#view-emp-schedule .employee-schedule-filter {
  min-width: 0;
  gap: 4px;
  color: #718397;
  font-size: 9.5px;
  line-height: 1;
}
#view-emp-schedule .employee-week-jump input,
#view-emp-schedule .employee-schedule-filter select {
  height: 52px;
  min-height: 52px;
  border-radius: 10px;
  border-color: #dde7ef;
  background: #fff;
  font-size: 11.5px;
  box-shadow: none;
}
#view-emp-schedule .employee-schedule-view-toolbar {
  min-height: 38px;
  margin-bottom: 6px;
}

@media (max-width: 1050px) {
  #view-emp-schedule .filter-bar { align-items: start; }
  #view-emp-schedule .employee-week-controls {
    width: 100%;
    grid-template-columns: minmax(300px, 1fr) 150px 150px;
  }
}
@media (max-width: 640px) {
  #view-emp-schedule .filter-bar {
    min-height: 0;
    gap: 10px;
    padding: 12px;
  }
  #view-emp-schedule .employee-schedule-heading-copy {
    width: 100%;
    padding: 0;
  }
  #view-emp-schedule .filter-bar h2 { font-size: 21px; }
  #view-emp-schedule .filter-bar p { margin-top: 4px; }
  #view-emp-schedule .employee-week-controls {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    grid-column: 1 / -1;
    height: 48px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
    min-height: 38px;
  }
  #view-emp-schedule .employee-week-jump {
    grid-column: 1;
  }
  #view-emp-schedule .employee-schedule-tools {
    display: block;
    grid-column: 2;
    min-width: 0;
  }
  #view-emp-schedule .employee-mobile-day-picker {
    display: none;
  }
  #view-emp-schedule .employee-week-jump input,
  #view-emp-schedule .employee-schedule-filter select {
    height: 44px;
    min-height: 44px;
  }
}

/* Distinct employee overview: visual hierarchy centered on weekly work */
#view-emp-schedule .filter-bar {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(520px, 1.45fr);
  min-height: 132px;
  gap: 20px;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 18px 20px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(12, 43, 70, .98) 0%, rgba(20, 81, 119, .96) 68%, rgba(42, 128, 159, .94) 100%);
  box-shadow: 0 14px 34px rgba(21, 55, 82, .16);
}
#view-emp-schedule .filter-bar::after {
  position: absolute;
  right: 11%;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 44px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
#view-emp-schedule .employee-schedule-heading-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 4px 0 0;
}
#view-emp-schedule .employee-schedule-eyebrow {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin: 0 0 9px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #d8edf7;
  font-size: 8.5px;
  letter-spacing: .14em;
}
#view-emp-schedule .employee-schedule-eyebrow::before {
  display: none;
}
#view-emp-schedule .filter-bar h2 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
#view-emp-schedule .filter-bar p {
  margin: 7px 0 0;
  color: #c5dae7;
  font-size: 12.5px;
}
#view-emp-schedule .employee-week-controls {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 112px;
  grid-template-columns: minmax(260px, 1fr) 160px 150px;
  align-content: center;
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 39, 62, .16);
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher {
  height: 56px;
  border: 1px solid #dfe8ef;
  border-radius: 10px;
  background: #f8fafc;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
  height: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  cursor: pointer;
}
#view-emp-schedule .week-range-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button {
  width: 36px;
  min-height: 36px;
  flex-basis: 36px;
  border: 1px solid #e1e8ee;
  background: #fff;
}
#view-emp-schedule .employee-week-jump,
#view-emp-schedule .employee-schedule-filter {
  color: #61778a;
  font-size: 9.5px;
}
#view-emp-schedule .employee-week-jump input,
#view-emp-schedule .employee-schedule-filter select {
  height: 56px;
  min-height: 56px;
  border-radius: 10px;
  border-color: #dde6ed;
  background: #fff;
  font-size: 11.5px;
  box-shadow: none;
}
#view-emp-schedule .employee-agenda {
  border-radius: 16px;
}

@media (max-width: 1050px) {
  #view-emp-schedule .filter-bar {
    grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  }
  #view-emp-schedule .employee-week-controls {
    grid-template-columns: minmax(230px, 1fr) 145px 140px;
  }
}
@media (max-width: 780px) {
  #view-emp-schedule .filter-bar {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
    padding: 16px;
  }
  #view-emp-schedule .employee-week-controls {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  #view-emp-schedule .filter-bar {
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 15px;
  }
  #view-emp-schedule .filter-bar h2 {
    font-size: 23px;
  }
  #view-emp-schedule .filter-bar p {
    font-size: 11.5px;
  }
  #view-emp-schedule .employee-week-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    padding: 8px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    grid-column: 1 / -1;
  }
  #view-emp-schedule .employee-week-jump,
  #view-emp-schedule .employee-schedule-tools {
    grid-row: 2;
  }
  #view-emp-schedule .employee-week-jump input,
  #view-emp-schedule .employee-schedule-filter select {
    height: 46px;
    min-height: 46px;
  }
}

/* Final desktop toolbar refinement */
@media (min-width: 781px) {
  #view-emp-schedule .filter-bar {
    grid-template-columns: minmax(220px, .42fr) minmax(650px, 1.58fr);
    min-height: 148px;
    gap: 18px;
    align-items: center;
    padding: 16px 20px;
  }

  #view-emp-schedule .employee-schedule-day-strip {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e7edf2;
  }
  #view-emp-schedule .employee-schedule-day-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 5px 8px;
    border: 1px solid #e1e8ef;
    border-radius: 9px;
    background: #fbfcfd;
    color: #718397;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  }
  #view-emp-schedule .employee-schedule-day-tab span {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 750;
  }
  #view-emp-schedule .employee-schedule-day-tab strong {
    color: #3f5d72;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }
  #view-emp-schedule .employee-schedule-day-tab:hover {
    border-color: #b8d1e2;
    background: #f3f8fc;
    color: #2d668d;
  }
  #view-emp-schedule .employee-schedule-day-tab.is-selected {
    border-color: #73a6c8;
    background: #eaf4fb;
    color: #15598a;
    box-shadow: inset 0 -2px 0 #2f77a5;
  }
  #view-emp-schedule .employee-schedule-day-tab.is-selected strong {
    color: #15598a;
  }
  #view-emp-schedule .employee-schedule-day-tab:focus-visible {
    outline: 3px solid rgba(57,130,183,.18);
    outline-offset: 2px;
  }

  @media (max-width: 780px) {
    #view-emp-schedule .employee-week-controls {
      grid-template-columns: minmax(0, 1fr);
      width: 100%;
    }
    #view-emp-schedule .employee-schedule-day-strip {
      display: flex;
      grid-column: 1 / -1;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      gap: 6px;
      padding: 7px 1px 2px;
      scrollbar-width: none;
    }
    #view-emp-schedule .employee-schedule-day-strip::-webkit-scrollbar { display: none; }
    #view-emp-schedule .employee-schedule-day-tab {
      flex: 0 0 74px;
      grid-template-columns: 1fr;
      justify-items: center;
      min-height: 48px;
      padding: 5px 6px;
    }
    #view-emp-schedule .employee-schedule-day-tab span {
      text-align: center;
    }
    #view-emp-schedule .employee-schedule-tools {
      display: none;
    }
  }
  #view-emp-schedule .employee-schedule-heading-copy {
    display: grid;
    position: relative;
    z-index: 2;
  }
  #view-emp-schedule .employee-schedule-eyebrow {
    margin-bottom: 7px;
  }
  #view-emp-schedule .filter-bar h2 {
    color: #fff;
    font-size: 25px;
  }
  #view-emp-schedule .filter-bar p {
    color: #caddea;
    font-size: 11.5px;
  }
  #view-emp-schedule .employee-week-controls {
    width: 100%;
    min-height: 104px;
    justify-self: center;
    grid-template-columns: minmax(390px, 1fr);
    align-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dfe8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 55, 82, .13);
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    height: 70px;
    gap: 6px;
    padding: 7px;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    background: #f8fafc;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
    height: 54px;
    min-height: 54px;
    justify-content: center;
    gap: 8px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button {
    width: 40px;
    min-height: 40px;
    flex-basis: 40px;
    border: 1px solid #dfe7ed;
    border-radius: 9px;
    background: #fff;
  }
  #view-emp-schedule .week-range-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }
  #view-emp-schedule .week-range-text,
  #view-emp-schedule .week-label-box {
    font-size: 13px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-badge-tag {
    padding: 4px 7px;
  }
  #view-emp-schedule .employee-week-jump,
  #view-emp-schedule .employee-schedule-filter {
    position: relative;
    height: 70px;
    gap: 5px;
    align-content: center;
    padding: 7px 8px 6px;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    background: #fff;
  }
  #view-emp-schedule .employee-week-jump input,
  #view-emp-schedule .employee-schedule-filter select {
    height: 42px;
    min-height: 42px;
    padding: 0 9px;
    border: 1px solid #d8e3ea;
    border-radius: 8px;
    background: #fbfcfd;
    font-size: 12px;
  }
}

#view-emp-schedule .employee-week-controls {
  display: grid;
  grid-template-columns: minmax(0, 390px);
  grid-template-rows: auto auto;
  justify-content: end;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 0;
  justify-self: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 52px;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
  min-width: 0;
  height: 42px;
  min-height: 42px;
}
#view-emp-schedule .employee-schedule-view-toolbar {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  min-height: 0;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}
#view-emp-schedule .employee-schedule-view-label {
  color: #718397;
  font-size: 10px;
}
#view-emp-schedule .employee-schedule-view-button {
  min-height: 30px;
  gap: 5px;
  padding: 5px 8px;
  font-size: 10px;
}
#view-emp-schedule .employee-schedule-view-button svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 900px) {
  #view-emp-schedule .employee-week-controls {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 640px) {
  #view-emp-schedule .employee-week-controls {
    gap: 8px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    height: 52px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
    height: 42px;
    min-height: 42px;
  }
  #view-emp-schedule .employee-schedule-view-toolbar {
    justify-content: flex-end;
  }
}

@media (max-width: 780px) {
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    height: 54px;
    gap: 6px;
    padding: 5px;
    border-color: #dce6ee;
    border-radius: 12px;
    background: #f4f8fb;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button,
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-reset-button {
    width: 42px;
    min-height: 42px;
    flex-basis: 42px;
    padding: 0;
    border: 1px solid #d8e3ec;
    border-radius: 10px;
    background: #ffffff;
    color: #355a78;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button svg,
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-reset-button svg {
    width: 16px;
    height: 16px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
    height: 42px;
    min-height: 42px;
    justify-content: center;
    gap: 7px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  #view-emp-schedule .week-label-box {
    justify-content: center;
    gap: 7px;
    font-size: 13px;
  }
  #view-emp-schedule .week-range-text {
    font-size: 13px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher .week-badge-tag {
    min-height: 24px;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #d5e6f3;
    border-radius: 999px;
    background: #eaf4fc;
    color: #1d5e8b;
    font-size: 10px;
    line-height: 1.2;
  }
}

#view-emp-schedule .employee-day-column-header,
#view-emp-schedule:not(.is-vertical-view) .employee-day-column-header {
  align-items: center;
}
#view-emp-schedule .employee-day-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
#view-emp-schedule .employee-day-date { margin-top: 0; }

#view-emp-schedule .employee-day-empty--action {
  width: calc(100% - 14px);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
#view-emp-schedule .employee-day-empty--action:hover {
  border-color: #86b7d9;
  background: #f0f7fc;
  box-shadow: 0 4px 12px rgba(48, 96, 130, .09);
  transform: translateY(-1px);
}
#view-emp-schedule .employee-day-empty--action:focus-visible {
  border-color: #5d9bc4;
  outline: 3px solid rgba(57, 130, 183, .2);
  outline-offset: 2px;
}
#view-emp-schedule.is-vertical-view .employee-day-empty--action {
  width: calc(100% - 20px);
  border: 1px dashed #d3dfeb;
  border-left-width: 2px;
  border-radius: 10px;
  background: #fafbfc;
}
#view-emp-schedule.is-vertical-view .employee-day-empty--action:hover {
  border-style: dashed;
  border-left-width: 2px;
}

#view-emp-schedule .employee-day-task-list .employee-schedule-task.is-overdue {
  border-color: #f3d6d6;
  background: #fff8f8;
}
#view-emp-schedule .employee-day-task-list .employee-schedule-task.is-overdue:hover {
  border-color: #edc5c5;
  background: #fff3f3;
}

@media (min-width: 641px) {
  #view-emp-schedule .employee-task-actions .btn-checkin,
  #view-emp-schedule .employee-task-links .btn-maps,
  #view-emp-schedule .employee-task-detail-link {
    min-height: 32px;
    padding: 4px 5px;
    font-size: 10px;
  }
}

#view-emp-schedule .filter-bar {
  display: flex;
  flex-wrap: nowrap;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 4%, rgba(91, 211, 222, .17), transparent 27%),
    linear-gradient(120deg, rgba(12, 43, 70, .98) 0%, rgba(20, 81, 119, .96) 68%, rgba(42, 128, 159, .94) 100%);
  box-shadow: 0 4px 6px -1px rgba(12, 43, 70, .18), 0 2px 4px -2px rgba(12, 43, 70, .16), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
#view-emp-schedule .filter-bar::before {
  display: none;
}
#view-emp-schedule .employee-schedule-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#view-emp-schedule .employee-schedule-icon {
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  color: #e0f2fe;
}
#view-emp-schedule .employee-schedule-icon svg {
  width: 23px;
  height: 23px;
}
#view-emp-schedule .employee-schedule-heading-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
#view-emp-schedule .employee-schedule-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 0;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #bae6fd;
  font-size: 11px;
  line-height: 1.35;
}
#view-emp-schedule .filter-bar h2 {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.025em;
}
#view-emp-schedule .employee-week-controls {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#view-emp-schedule .employee-week-controls > .week-reset-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
#view-emp-schedule .employee-week-controls > .week-reset-button[hidden] {
  display: none;
}
#view-emp-schedule .employee-week-controls > .week-reset-button:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .25);
}
#view-emp-schedule .employee-week-controls > .week-reset-button:focus-visible {
  outline: 3px solid rgba(186, 230, 253, .45);
  outline-offset: 2px;
}
#view-emp-schedule .employee-week-controls > .week-reset-button svg {
  width: 16px;
  height: 16px;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher {
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  width: fit-content;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  gap: 4px;
  padding: 3px;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-step-button {
  width: 32px;
  min-height: 36px;
  flex-basis: 32px;
}
#view-emp-schedule .week-switcher-bar.employee-week-switcher .week-range-display {
  height: 36px;
  min-height: 36px;
}
#view-emp-schedule .employee-schedule-view-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  grid-column: auto;
  grid-row: auto;
  height: 44px;
  min-height: 44px;
  white-space: nowrap;
}
#view-emp-schedule .employee-schedule-view-toggle {
  height: 44px;
  align-items: center;
}
#view-emp-schedule .employee-schedule-view-button {
  min-height: 36px;
}
#view-emp-schedule .employee-schedule-view-label {
  color: #e2e8f0;
}

@media (max-width: 900px) {
  #view-emp-schedule .filter-bar {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 18px;
  }
  #view-emp-schedule .employee-week-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }
  #view-emp-schedule .week-switcher-bar.employee-week-switcher {
    flex: 0 0 auto;
    width: fit-content;
  }
  #view-emp-schedule .employee-schedule-view-toolbar {
    justify-content: flex-end;
  }
}

#view-emp-schedule:not(.is-vertical-view) .employee-agenda {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
#view-emp-schedule:not(.is-vertical-view) .employee-week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 1190px;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: rgba(248, 250, 252, .8);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border: 0;
  border-top: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column + .employee-day-column {
  border-left: 1px solid #f1f5f9;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today {
  border-top-color: #2563eb;
  background: #fff;
  box-shadow: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column-header {
  display: flex;
  height: auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  background: #fff;
  box-sizing: border-box;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-name {
  min-width: 0;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-name h3 {
  margin: 0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-total {
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan--header {
  display: grid;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  opacity: .7;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan--header span {
  font-size: 20px;
  line-height: 1;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-plan--header:hover {
  background: rgba(239, 246, 255, .8);
  color: #2563eb;
  opacity: 1;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today .employee-day-column-header {
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-column.is-today .employee-day-column-header::before {
  display: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-date {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  align-items: center;
  margin: 0;
  padding: 2px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-date.is-today-date {
  background: #2563eb;
  color: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px 10px 13px;
  border: 1px solid rgba(226, 232, 240, .75);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
  transition: box-shadow .16s ease, border-color .16s ease;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  display: block;
  width: 2px;
  border-radius: 999px;
  background: #cbd5e1;
  content: "";
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-overdue) {
  background: rgba(255, 241, 242, .2);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-planned) {
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-completed) {
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-overdue)::before {
  background: #f43f5e;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-planned)::before {
  background: #0ea5e9;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-completed)::before {
  background: #10b981;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-overdue):hover {
  background: rgba(255, 241, 242, .2);
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-planned):hover {
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-task-list .employee-schedule-task:has(.st-completed):hover {
  background: #fff;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-time {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-category {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .employee-task-status {
  display: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-main .task-title {
  display: block;
  margin: 6px 0 0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.375;
  overflow: visible;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-location {
  display: block;
  padding-left: 0;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-location::before {
  display: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-location svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-location > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-actions .btn-checkin {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  margin-top: 0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-actions .arrival-badge,
#view-emp-schedule:not(.is-vertical-view) .employee-task-actions > .st-pending {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 28px;
  align-self: stretch;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-links {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  grid-column: auto;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-links .btn-maps {
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-links .btn-maps svg {
  width: 16px;
  height: 16px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-task-links .btn-maps:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--action {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px;
  padding: 24px 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--action:hover {
  border-color: #60a5fa;
  background: rgba(239, 246, 255, .5);
  color: #2563eb;
  box-shadow: none;
  transform: none;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--action:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .35);
  outline-offset: -2px;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--action span,
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--status span {
  color: inherit;
  font: inherit;
  text-align: inherit;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty-plus {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
#view-emp-schedule:not(.is-vertical-view) .employee-day-empty--status {
  display: flex;
  flex: 1 1 auto;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
}
@container employee-agenda (min-width: 1120px) {
  #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  #view-emp-schedule:not(.is-vertical-view) .employee-agenda {
    overflow: visible;
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-week-board {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-day-column:not(.is-selected-day) {
    display: none;
  }
  #view-emp-schedule:not(.is-vertical-view) .employee-day-column + .employee-day-column {
    border-left: 0;
  }
}

main.content:has(> #view-emp-schedule.active) {
  max-width: none;
  padding-top: 12px;
  padding-right: 24px;
  padding-left: 24px;
}

#view-emp-prospects {
  --prospect-ink: #173a56;
  --prospect-muted: #647789;
}
#view-emp-prospects .prospect-heading {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(115deg, #163c5b 0%, #126c94 62%, #1685aa 100%);
  box-shadow: 0 12px 28px rgba(18, 61, 91, .16);
}
#view-emp-prospects .prospect-heading::after {
  position: absolute;
  top: -72px;
  right: 9%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .035), 0 0 0 58px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}
#view-emp-prospects .prospect-heading > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
#view-emp-prospects .prospect-eyebrow {
  margin-bottom: 8px;
  color: #b7d9ec;
  font-size: 10px;
  letter-spacing: .14em;
}
#view-emp-prospects .prospect-heading h2 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 29px);
  letter-spacing: -.035em;
  line-height: 1.15;
}
#view-emp-prospects .prospect-heading p {
  max-width: 660px;
  margin-top: 8px;
  color: #d7e8f2;
  font-size: 12.5px;
  line-height: 1.55;
}
#view-emp-prospects .prospect-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: start;
  gap: 18px;
}
#view-emp-prospects .prospect-panel {
  padding: 22px;
  border: 1px solid #e1e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(24, 53, 77, .07);
}
#view-emp-prospects .prospect-panel-heading {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-color: #e8eef3;
}
#view-emp-prospects .prospect-panel-heading h3 {
  color: var(--prospect-ink);
  font-size: 16px;
  letter-spacing: -.015em;
}
#view-emp-prospects .prospect-panel-hint {
  padding: 6px 9px;
  border: 1px solid #e2edf5;
  border-radius: 999px;
  background: #f3f8fc;
  color: #557186;
  font-size: 10.5px;
  font-weight: 650;
}
#view-emp-prospects .prospect-panel .form-group {
  margin-bottom: 15px;
}
#view-emp-prospects .prospect-panel .form-group > label,
#view-emp-prospects .prospect-location-link label {
  margin-bottom: 7px;
  color: #40576b;
  font-size: 11.5px;
  font-weight: 750;
}
#view-emp-prospects .prospect-panel input,
#view-emp-prospects .prospect-panel select,
#view-emp-prospects .prospect-panel textarea {
  min-height: 42px;
  border-color: #d9e3eb;
  border-radius: 9px;
  background-color: #fbfdff;
  color: #243d52;
  font-size: 12.5px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
#view-emp-prospects .prospect-panel textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}
#view-emp-prospects .prospect-panel input:focus,
#view-emp-prospects .prospect-panel select:focus,
#view-emp-prospects .prospect-panel textarea:focus {
  border-color: #4a91c1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(53, 129, 184, .14);
  outline: 0;
}
#view-emp-prospects .prospect-fields-grid {
  column-gap: 14px;
}
#view-emp-prospects .prospect-location-section {
  margin: 2px 0 18px;
  padding: 16px;
  border-color: #dce8f0;
  border-radius: 13px;
  background: linear-gradient(145deg, #f7fafc, #f1f7fb);
}
#view-emp-prospects .prospect-location-heading {
  align-items: center;
  margin-bottom: 12px;
}
#view-emp-prospects .prospect-location-heading strong {
  color: var(--prospect-ink);
  font-size: 12px;
}
#view-emp-prospects .prospect-location-heading span,
#view-emp-prospects .prospect-location-hint {
  color: #687e90;
  font-size: 10.5px;
}
#view-emp-prospects .prospect-location-actions .btn,
#view-emp-prospects .prospect-location-link-controls .btn {
  border-color: #d5e1e9;
  border-radius: 9px;
  background: #fff;
  color: #31536c;
}
#view-emp-prospects .prospect-location-actions .btn:hover,
#view-emp-prospects .prospect-location-link-controls .btn:hover {
  border-color: #8eb4ce;
  background: #f8fbfd;
}
#view-emp-prospects #prospectLocationStatus {
  border: 1px solid #e1eaf0;
  border-radius: 8px;
  color: #5b7182;
  font-size: 11px;
}
#view-emp-prospects .prospect-submit-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(0, 85, 151, .16);
  font-size: 12px;
  font-weight: 750;
}
#view-emp-prospects .prospect-list-panel #empProspectsList {
  gap: 10px;
}
#view-emp-prospects .prospect-list-panel .task-card {
  padding: 14px;
  border-color: #e1e9f0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(25, 55, 79, .05);
  cursor: default;
}
#view-emp-prospects .prospect-list-panel .task-card:hover {
  transform: none;
  border-color: #d2e0ea;
  background: #fff;
  box-shadow: 0 5px 14px rgba(25, 55, 79, .08);
}
#view-emp-prospects .prospect-list-panel .task-top {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  margin-bottom: 9px;
}
#view-emp-prospects .prospect-list-panel .task-top > strong {
  flex: 1 0 100%;
  color: #243f55;
  font-size: 13px;
}
#view-emp-prospects .prospect-list-panel .task-sub,
#view-emp-prospects .prospect-list-panel .task-card > div:last-child {
  color: #647789;
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#view-emp-prospects .prospect-empty-state {
  min-height: 180px;
  padding: 22px;
  border-color: #d8e5ee;
  border-radius: 13px;
  background: #f8fbfd;
}

@media (max-width: 980px) {
  #view-emp-prospects .prospect-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  #view-emp-prospects .prospect-heading {
    min-height: 0;
    padding: 20px;
    border-radius: 15px;
  }
  #view-emp-prospects .prospect-heading h2 {
    font-size: 22px;
  }
  #view-emp-prospects .prospect-heading p {
    font-size: 11.5px;
  }
  #view-emp-prospects .prospect-panel {
    padding: 16px;
    border-radius: 14px;
  }
  #view-emp-prospects .prospect-panel-heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }
  #view-emp-prospects .prospect-location-section {
    padding: 13px;
  }
  #view-emp-prospects .prospect-location-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

#dealerModal.modal-backdrop {
  padding: clamp(10px, 2.4vw, 24px);
  background: rgba(15, 35, 54, .52);
}
#dealerModal .modal {
  width: min(100%, 720px);
  max-width: 720px;
  max-height: min(92vh, 900px);
  overflow-x: hidden;
  padding: 0;
  border: 1px solid #dce6ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 39, 61, .24);
  scrollbar-gutter: stable;
}
#dealerModal .modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  align-items: center;
  margin: 0 0 20px;
  padding: 22px 26px 17px;
  border-bottom: 1px solid #e6edf3;
  background: linear-gradient(135deg, #f5f9fc, #fff 72%);
}
#dealerModal .modal-title-group {
  min-width: 0;
}
#dealerModal .modal-title-group h3 {
  margin: 0;
  color: #183c58;
  font-size: 21px;
  letter-spacing: -.03em;
  line-height: 1.2;
}
#dealerModal .modal-title-group span {
  display: block;
  margin-top: 5px;
  color: #6b7f90;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#dealerModal .modal-header .btn-outline {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border-color: #d7e2eb;
  border-radius: 11px;
  background: #fff;
  color: #526b7e;
  font-size: 17px;
}
#dealerModal .modal-header .btn-outline:hover {
  border-color: #aac3d5;
  background: #f5f9fc;
  color: #1d5f8c;
}
#dealerModal .modal > .form-group,
#dealerModal .modal > .form-grid,
#dealerModal .modal > #dealerSaveButton {
  margin-right: 26px;
  margin-left: 26px;
}
#dealerModal .modal > .form-group,
#dealerModal .modal > .form-grid {
  margin-bottom: 16px;
}
#dealerModal .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#dealerModal .form-grid > .form-group {
  min-width: 0;
}
#dealerModal .form-group {
  gap: 7px;
}
#dealerModal .form-group label {
  color: #3d566b;
  font-size: 11.5px;
  font-weight: 750;
}
#dealerModal .modal > .form-group > input,
#dealerModal .modal > .form-group > select,
#dealerModal .form-grid input,
#dealerModal .form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border-color: #d6e1ea;
  border-radius: 10px;
  background: #fbfdff;
  color: #263f54;
  font-size: 12.5px;
}
#dealerModal select {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#dealerModal .form-group small {
  color: #788b9b;
  font-size: 10.5px;
  line-height: 1.5;
}
#dealerModal input:focus,
#dealerModal select:focus {
  border-color: #4a8dbb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 126, 177, .14);
}
#dealerModal #dealerLocationReadOnlyNotice {
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #d9e8f1;
  border-left: 3px solid #4388b2;
  border-radius: 11px;
  background: #f4f9fc;
}
#dealerModal #dealerLocationReadOnlyNotice strong {
  color: #274c66;
  font-size: 12px;
}
#dealerModal #dealerLocationReadOnlyNotice span {
  color: #61798b;
  font-size: 11.5px;
  line-height: 1.5;
}
#dealerModal > .modal > #dealerSaveButton {
  width: calc(100% - 52px);
  min-height: 46px;
  margin-top: 2px;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(0, 74, 150, .16);
  font-size: 12.5px;
  font-weight: 750;
}

@media (max-width: 640px) {
  #dealerModal.modal-backdrop {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }
  #dealerModal .modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 15px;
  }
  #dealerModal .modal-header {
    margin-bottom: 16px;
    padding: 17px 16px 14px;
  }
  #dealerModal .modal-title-group h3 {
    font-size: 18px;
  }
  #dealerModal .modal > .form-group,
  #dealerModal .modal > .form-grid,
  #dealerModal .modal > #dealerSaveButton {
    margin-right: 16px;
    margin-left: 16px;
  }
  #dealerModal .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  #dealerModal > .modal > #dealerSaveButton {
    width: calc(100% - 32px);
    margin-bottom: 16px;
  }
}

