/* Shared shell structure. Keep this sheet blocking and after the route themes. */
html body #app-wrapper .nav-header { display: block !important; }
html body #app-wrapper .nav-header-shell { width: 100% !important; max-width: 1120px !important; margin: 0 auto !important; }
html body #app-wrapper .nav-header-utility { display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: nowrap !important; flex-direction: row !important; gap: 8px !important; width: 100% !important; min-width: 0 !important; }
html body #app-wrapper .nav-header-identity { display: flex !important; flex: 1 1 auto !important; min-width: 0 !important; }
html body #app-wrapper .nav-header-copy { min-width: 0 !important; }
html body #app-wrapper .nav-header-meta { display: flex !important; flex: 0 0 auto !important; flex-direction: column !important; align-items: flex-end !important; max-width: 70% !important; }
html body #app-wrapper .nav-header-meta-row { display: flex !important; flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important; gap: 6px !important; }
html body #app-wrapper #header-version { width: auto !important; max-width: none !important; flex: 0 0 auto !important; white-space: nowrap !important; }
html body #app-wrapper #sync-diagnostics-detail { max-width: 100% !important; line-height: 1.3 !important; }
html body #app-wrapper #view-home { width: 100% !important; max-width: 1120px !important; margin: 0 auto !important; height: auto !important; max-height: none !important; overflow: visible !important; }
html body.current-view-home #app-wrapper #main-scroll-area { overflow-y: auto !important; padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
html body.current-view-home #app-wrapper #view-wrapper,
html body #app-wrapper #view-home #home-dashboard-content,
html body #app-wrapper #view-home #home-dashboard-modules { height: auto !important; max-height: none !important; overflow: visible !important; }
html body #app-wrapper #view-home #home-dashboard-sticky { position: relative !important; }
html body #app-wrapper #view-home #home-dashboard-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: auto !important; gap: 12px !important; margin: 0 !important; overflow: visible !important; }
html body #app-wrapper #view-home #home-dashboard-grid .home-module-tile { width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 96px !important; max-height: 130px !important; padding: 18px 20px !important; aspect-ratio: auto !important; flex: none !important; box-sizing: border-box !important; }
html body #app-wrapper #view-home #home-dashboard-grid .home-module-icon { width: 32px !important; height: 32px !important; flex: 0 0 auto !important; color: #007a4d !important; }
html body #app-wrapper #dashboard-sync-accordion { width: 100% !important; border: 1px solid #bbf7d0 !important; border-radius: 14px !important; background: #fff !important; color: #0f172a !important; }
html body #app-wrapper #dashboard-sync-accordion > summary { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; list-style: none !important; padding: 12px !important; }
html body #app-wrapper #dashboard-sync-accordion > summary::-webkit-details-marker { display: none; }
html body #app-wrapper #dashboard-sync-accordion > summary::marker { content: ''; }
html body #app-wrapper #dashboard-sync-accordion > summary > div:last-child { display: flex !important; align-items: center !important; gap: 8px !important; flex: 0 0 auto !important; }
html body #app-wrapper #dashboard-sync-files { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 12px !important; }
.dashboard-sync-card { min-width: 0; margin: 0 !important; padding: 12px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; }
.dashboard-sync-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.dashboard-sync-card-heading strong { font-size: 11px; color: #065f46; }
.dashboard-sync-card-heading time { font-size: 10px; color: #475569; }
.dashboard-sync-filename { margin-top: 8px; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; color: #334155; }
.home-print-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 12px; border: 1px solid #a7f3d0; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: 11px; font-weight: 800; }
.home-print-btn svg, .home-sync-chevron { width: 20px; height: 20px; }
html body #app-wrapper #bottom-nav { display: grid !important; position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; margin: 0 auto !important; width: min(1120px, 100%) !important; max-width: 100% !important; transform: none !important; grid-template-columns: repeat(8, minmax(0, 1fr)) !important; z-index: 100 !important; }
html body #app-wrapper #bottom-nav .footer-nav-btn { min-width: 0 !important; }
html body.keyboard-open #app-wrapper #bottom-nav,
html body.detail-field-active #app-wrapper #bottom-nav,
html body.measurement-keyboard-open #app-wrapper #bottom-nav { transform: translateY(140%) !important; }
@media (min-width: 1024px) {
  html body #app-wrapper #view-home #home-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body #app-wrapper #dashboard-sync-files { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.sales-intelligence-shell {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #a7d7bd;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fffb 0%, #eef9f2 100%);
    box-shadow: 0 12px 30px rgba(4, 72, 43, .09);
}

.sales-intelligence-heading,
.sales-intelligence-card-head,
.sales-intelligence-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sales-intelligence-heading > div:first-child > span,
.sales-intelligence-card-type,
.sales-intelligence-section-title,
.sales-intelligence-filters label > span,
.sales-intelligence-impact > span,
.sales-intelligence-kpi > span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #087448;
}

.sales-intelligence-heading h2 {
    margin: 3px 0 1px;
    color: #10291d;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.05;
}

.sales-intelligence-heading p,
.sales-intelligence-card-head p,
.sales-intelligence-summary,
.sales-intelligence-rep-summary span {
    margin: 0;
    color: #607269;
    font-size: 12px;
    font-weight: 700;
}

.sales-intelligence-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: min(100%, 390px);
    padding: 3px;
    border: 1px solid #b9dcca;
    border-radius: 14px;
    background: #fff;
}

.sales-intelligence-mode-toggle button {
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #39705a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.sales-intelligence-mode-toggle button.active {
    background: #006f46;
    color: #fff;
    box-shadow: 0 5px 12px rgba(0, 111, 70, .2);
}

.sales-intelligence-mode-toggle button:disabled {
    opacity: .45;
}

.sales-intelligence-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.sales-intelligence-filters label {
    display: grid;
    gap: 5px;
}

.sales-intelligence-filters select {
    width: 100%;
    min-height: 42px;
    padding: 8px 30px 8px 10px;
    border: 1px solid #b9dcca;
    border-radius: 12px;
    background: #fff;
    color: #183a2b;
    font-size: 12px;
    font-weight: 800;
}

.sales-intelligence-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sales-intelligence-kpi,
.sales-intelligence-card,
.sales-intelligence-rep-summary,
.sales-intelligence-empty {
    border: 1px solid #c8e4d5;
    border-radius: 16px;
    background: #fff;
}

.sales-intelligence-kpi {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px;
}

.sales-intelligence-kpi > strong {
    margin-top: 5px;
    color: #0d2d1f;
    font-size: 20px;
    font-weight: 900;
}

.sales-intelligence-kpi > small {
    color: #607269;
    font-size: 11px;
    font-weight: 800;
}

.sales-intelligence-rep-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
}

.sales-intelligence-rep-summary strong {
    color: #006f46;
    font-size: 15px;
    font-weight: 900;
}

.sales-intelligence-section-title {
    align-items: center;
    margin: 16px 2px 8px;
    color: #153a2a;
}

.sales-intelligence-section-title span {
    color: #607269;
    font-size: 10px;
}

.sales-intelligence-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sales-intelligence-card {
    min-width: 0;
    padding: 14px;
    box-shadow: 0 7px 20px rgba(4, 72, 43, .07);
}

.sales-intelligence-card h3 {
    margin: 4px 0 1px;
    color: #112d20;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.08;
}

.sales-intelligence-impact {
    flex: 0 0 auto;
    text-align: right;
}

.sales-intelligence-impact strong,
.sales-intelligence-impact small {
    display: block;
}

.sales-intelligence-impact strong {
    color: #006f46;
    font-size: 20px;
    font-weight: 900;
}

.sales-intelligence-impact small {
    color: #607269;
    font-size: 10px;
    font-weight: 800;
}

.sales-intelligence-summary {
    margin-top: 9px;
    line-height: 1.45;
}

.sales-intelligence-customer {
    margin-top: 8px;
    color: #174f37;
    font-size: 12px;
    font-weight: 900;
}

.sales-intelligence-tags,
.sales-intelligence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.sales-intelligence-tags span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf8f2;
    color: #1a6546;
    font-size: 9px;
    font-weight: 900;
}

.sales-intelligence-trace {
    margin-top: 10px;
    border: 1px solid #b7dcc8;
    border-radius: 12px;
    background: #f7fcf9;
}

.sales-intelligence-trace summary,
.sales-intelligence-trace-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    color: #006f46;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sales-intelligence-trace ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0 10px 10px;
    list-style: none;
}

.sales-intelligence-trace [hidden] {
    display: none;
}

.sales-intelligence-trace li {
    display: grid;
    grid-template-columns: minmax(108px, auto) 1fr;
    gap: 7px;
    color: #52665c;
    font-size: 10px;
}

.sales-intelligence-trace li strong {
    color: #183a2b;
}

.sales-intelligence-action {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #82c3a3;
    border-radius: 11px;
    background: #fff;
    color: #006f46;
    font-size: 10px;
    font-weight: 900;
}

.sales-intelligence-action--primary {
    border-color: #006f46;
    background: #006f46;
    color: #fff;
}

.sales-intelligence-empty {
    grid-column: 1 / -1;
    padding: 28px;
    color: #667a70;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

#view-smart-moves .sales-intelligence-trace,
#view-smart-moves .sales-intelligence-trace-toggle,
#view-smart-moves .sales-intelligence-mode-toggle,
#view-smart-moves .sales-intelligence-mode-toggle button,
#view-smart-moves .sales-intelligence-action,
#view-smart-moves .sales-intelligence-empty {
    border: 1px solid #10b981;
    background: #062115;
    color: #ecfdf5;
}

#view-smart-moves .sales-intelligence-trace summary,
#view-smart-moves .sales-intelligence-trace-toggle,
#view-smart-moves .sales-intelligence-trace li,
#view-smart-moves .sales-intelligence-trace li strong,
#view-smart-moves .sales-intelligence-mode-toggle button,
#view-smart-moves .sales-intelligence-action {
    color: #ecfdf5;
}

#view-smart-moves .sales-intelligence-trace-toggle:hover,
#view-smart-moves .sales-intelligence-mode-toggle button:hover,
#view-smart-moves .sales-intelligence-action:hover {
    background: #0b3a25;
}

html[data-ops-prepaint-theme="dark"] .sales-intelligence-shell,
body[data-ops-theme="dark"] .sales-intelligence-shell {
    border-color: #286b4d;
    background: linear-gradient(145deg, #0a2619 0%, #071e14 100%);
}

html[data-ops-prepaint-theme="dark"] .sales-intelligence-kpi,
html[data-ops-prepaint-theme="dark"] .sales-intelligence-card,
html[data-ops-prepaint-theme="dark"] .sales-intelligence-rep-summary,
body[data-ops-theme="dark"] .sales-intelligence-kpi,
body[data-ops-theme="dark"] .sales-intelligence-card,
body[data-ops-theme="dark"] .sales-intelligence-rep-summary {
    border-color: #2d6c50;
    background: #0c2a1d;
}

html[data-ops-prepaint-theme="dark"] .sales-intelligence-heading h2,
html[data-ops-prepaint-theme="dark"] .sales-intelligence-card h3,
html[data-ops-prepaint-theme="dark"] .sales-intelligence-kpi > strong,
body[data-ops-theme="dark"] .sales-intelligence-heading h2,
body[data-ops-theme="dark"] .sales-intelligence-card h3,
body[data-ops-theme="dark"] .sales-intelligence-kpi > strong {
    color: #f1fff7;
}

@media (max-width: 900px) {
    .sales-intelligence-heading { flex-direction: column; }
    .sales-intelligence-mode-toggle { width: 100%; }
    .sales-intelligence-filters,
    .sales-intelligence-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .sales-intelligence-shell { padding: 11px; border-radius: 16px; }
    .sales-intelligence-filters,
    .sales-intelligence-kpi-strip,
    .sales-intelligence-cards { grid-template-columns: 1fr; }
    .sales-intelligence-card-head { gap: 8px; }
    .sales-intelligence-impact strong { font-size: 17px; }
    .sales-intelligence-trace li { grid-template-columns: 1fr; gap: 1px; }
}
@media (max-width: 600px) {
  html body #app-wrapper .nav-header-meta-row { gap: 3px !important; }
  html body #app-wrapper #header-version { font-size: 9px !important; letter-spacing: 0 !important; padding: 4px 6px !important; }
  html body #app-wrapper .nav-outdoor-label { display: none !important; }
  html body #app-wrapper #sync-diagnostics-badge { font-size: 9px !important; padding: 4px !important; }
  html body #app-wrapper #dashboard-sync-accordion > summary { flex-wrap: wrap !important; }
  html body #app-wrapper #dashboard-sync-accordion > summary > div:last-child { margin-left: auto; }
  html body #app-wrapper #view-home #home-dashboard-grid .home-module-tile { padding: 12px 10px !important; }
}
@media print {
  html body #app-wrapper #bottom-nav, #dashboard-print-btn, #run-google-script-btn { display: none !important; }
  html body #app-wrapper #main-scroll-area { overflow: visible !important; height: auto !important; }
}

/* Module navigation must paint labels even while the grid scrolls. */
html body #app-wrapper #view-managers .manager-module-card { content-visibility: visible !important; contain-intrinsic-size: none !important; }
html[data-ops-prepaint-theme="dark"], html[data-ops-prepaint-theme="dark"] body,
html body[data-theme="dark"], html body.ops-precision-pilot[data-ops-theme="dark"] { background-color: #041a10 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper #dashboard-sync-accordion,
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #dashboard-sync-accordion,
html body[data-theme="dark"] #app-wrapper #dashboard-sync-accordion { background: #062115 !important; border: 1.5px solid rgba(74,222,128,.4) !important; color: #ecfdf5 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper #dashboard-sync-accordion :is(summary, #dashboard-sync-stamp, .home-sync-chevron),
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #dashboard-sync-accordion :is(summary, #dashboard-sync-stamp, .home-sync-chevron) { background-color: transparent !important; color: #ecfdf5 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper #dashboard-sync-accordion :is(.dashboard-sync-card, button),
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #dashboard-sync-accordion :is(.dashboard-sync-card, button) { background: rgba(8,36,22,.96) !important; border-color: rgba(74,222,128,.4) !important; color: #ecfdf5 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper #dashboard-sync-accordion :is(strong, time, .dashboard-sync-filename),
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #dashboard-sync-accordion :is(strong, time, .dashboard-sync-filename) { color: #ecfdf5 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper #view-managers :is(.text-blue-600,.text-blue-700,.text-blue-800,.text-blue-900),
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #view-managers :is(.text-blue-600,.text-blue-700,.text-blue-800,.text-blue-900) { color: #38bdf8 !important; font-weight: 700 !important; }

html[data-ops-prepaint-theme="dark"] body #app-wrapper #view-managers .manager-eval2-quantity,
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper #view-managers .manager-eval2-quantity { color: #6ee7b7 !important; font-weight: 700 !important; }
html[data-ops-prepaint-theme="dark"] body #app-wrapper,
html[data-ops-prepaint-theme="dark"] body #main-scroll-area,
html body.ops-precision-pilot[data-ops-theme="dark"] #app-wrapper,
html body.ops-precision-pilot[data-ops-theme="dark"] #main-scroll-area { background-color: #041a10 !important; }

/* v2.3.45 detail and evidence presentation authority. */
html body #photo-modal {
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}
html body #photo-modal-gallery {
  width: 100vw !important;
  height: calc(100dvh - 96px) !important;
  max-height: none !important;
  margin-top: 48px !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
html body #photo-modal-gallery .photo-modal-slide {
  flex: 0 0 100vw !important;
  width: 100vw !important;
  height: calc(100dvh - 96px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body #photo-modal-gallery .photo-modal-slide img {
  width: 100vw !important;
  height: calc(100dvh - 96px) !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}
html body #app-wrapper .request-this-location-header,
html body #app-wrapper #dtab-this-location.active {
  background: #062115 !important;
  color: #ecfdf5 !important;
}
html body #app-wrapper .request-this-location-header :is(div, span, i) { color: #ecfdf5 !important; }
html body #app-wrapper .app-drive-card-with-reclass { overflow: hidden !important; }
html body #app-wrapper .app-drive-card-with-reclass .app-card-bottom-btn--argos-reclass {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.app-photo-unavailable {
  display: inline-flex;
  min-width: 6rem;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  color: #475569;
  background: #f1f5f9;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 767px) {
  html body #app-wrapper #view-home #home-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: clamp(54px, calc((100dvh - 265px) / 6), 72px) !important;
    gap: 8px !important;
    height: auto !important;
    align-content: start !important;
  }
  html body #app-wrapper #view-home #home-dashboard-grid > .home-module-tile {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    aspect-ratio: auto !important;
  }
  html body #app-wrapper #view-home #home-dashboard-grid > .home-module-tile > :is(i, svg, .home-module-icon) {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    font-size: 20px !important;
  }
  html body #app-wrapper #view-home #home-dashboard-grid > .home-module-tile > span {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
}

@media (min-width: 768px) {
  html body #app-wrapper #view-home #home-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: clamp(72px, calc((100dvh - 260px) / 4), 104px) !important;
    gap: 12px !important;
    height: auto !important;
    align-content: start !important;
  }
  html body #app-wrapper #view-home #home-dashboard-grid > .home-module-tile {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
  }
}

.request-sales-impact-entry {
  border: 1px solid #047857;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  color: #065f46;
  font-weight: 900;
  cursor: pointer;
}

.request-sales-impact-entry i {
  font-size: 1.1rem;
}

.request-sales-impact-entry-drawer {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-width: 0 0 1px;
  border-color: #d1fae5;
  background: #ecfdf5;
  text-align: left;
}

.request-sales-impact-entry-historical {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(4, 120, 87, .12);
}

.request-sales-impact-entry-hub {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.request-sales-impact-entry-sales-office {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.request-sales-impact-entry-smart-moves {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

#view-request-sales-impact {
  width: 100%;
  min-width: 0;
}

.request-impact-shell {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding-bottom: 32px;
}

.request-impact-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 22px;
  background: linear-gradient(135deg, #022c22 0%, #065f46 62%, #047857 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(2, 44, 34, .2);
}

.request-impact-hero span,
.request-impact-hero p {
  color: #a7f3d0;
}

.request-impact-hero span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.request-impact-hero h1 {
  margin: 5px 0 6px;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.05;
  font-weight: 950;
}

.request-impact-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.request-impact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.request-impact-hero-actions button,
.request-impact-more,
.request-impact-loading button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  background: #fff;
  color: #065f46;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.request-impact-hero-actions button:disabled {
  opacity: .65;
  cursor: wait;
}

.request-impact-audit {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.request-impact-audit summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  color: #065f46;
  cursor: pointer;
  list-style: none;
}

.request-impact-audit summary::-webkit-details-marker {
  display: none;
}

.request-impact-audit summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.request-impact-audit summary small {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.request-impact-audit-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid #d1fae5;
}

.request-impact-audit-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
}

.request-impact-audit-totals span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.request-impact-audit-totals strong {
  color: #065f46;
  font-size: 15px;
}

.request-impact-audit-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.request-impact-audit table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 10px;
}

.request-impact-audit th,
.request-impact-audit td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  vertical-align: top;
}

.request-impact-audit th:first-child,
.request-impact-audit td:first-child {
  text-align: left;
}

.request-impact-audit td small {
  display: block;
  max-width: 460px;
  margin-top: 2px;
  color: #64748b;
  line-height: 1.35;
}

.request-impact-audit-body > p {
  margin: 0;
  color: #475569;
  font-size: 10px;
  line-height: 1.5;
}

.request-impact-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.request-impact-kpi {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .07);
}

.request-impact-kpi-primary {
  border-color: #059669;
  background: #ecfdf5;
}

.request-impact-kpi span,
.request-impact-kpi small {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.request-impact-kpi strong {
  color: #064e3b;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  line-height: 1.1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.request-impact-controls {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
}

.request-impact-controls label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.request-impact-controls input,
.request-impact-controls select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.request-impact-controls input:focus,
.request-impact-controls select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

.request-impact-clear,
.request-impact-selected-rep {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #f8fafc;
  color: #475569;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.request-impact-selected-rep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.request-impact-selected-rep span {
  display: none;
}

.request-impact-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid #d1fae5;
  border-radius: 15px;
  background: #ecfdf5;
}

.request-impact-tabs button {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #047857;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.request-impact-tabs button.active {
  background: #047857;
  color: #fff;
  box-shadow: 0 5px 12px rgba(4, 120, 87, .2);
}

.request-impact-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 11px;
}

.request-impact-results {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.request-impact-rank-card,
.request-impact-customer-summary {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.request-impact-rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
}

.request-impact-rank-main,
.request-impact-rank-values {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.request-impact-rank-main strong,
.request-impact-rank-values strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
}

.request-impact-rank-main small,
.request-impact-rank-values small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.request-impact-rank-values {
  justify-items: end;
  text-align: right;
}

.request-impact-rank-values strong {
  color: #047857;
  font-size: 15px;
}

.request-impact-customer-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
}

.request-impact-customer-card .request-impact-table-scroll {
  margin: -1px 10px 8px;
  border: 1px solid #dbeafe;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.request-impact-table-scroll {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
}

.request-impact-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 11px;
}

.request-impact-table th,
.request-impact-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  text-align: left;
  vertical-align: top;
}

.request-impact-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0fdf4;
  color: #065f46;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.request-impact-table td strong,
.request-impact-table td small {
  display: block;
}

.request-impact-table td small {
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
}

.request-impact-default-qty {
  width: max-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e !important;
  font-weight: 900;
}

.request-impact-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-impact-status-completed {
  background: #dcfce7;
  color: #166534;
}

.request-impact-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.request-impact-more {
  justify-self: center;
  border-color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(4, 120, 87, .08);
}

.request-impact-empty,
.request-impact-loading,
.request-impact-retained {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  border: 1px dashed #a7f3d0;
  border-radius: 16px;
  background: #f0fdf4;
  color: #065f46;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.request-impact-retained {
  display: block;
  padding: 10px 14px;
  border-style: solid;
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
  text-align: left;
}

@media (max-width: 900px) {
  .request-impact-audit-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-impact-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-impact-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-impact-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .request-impact-audit summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .request-impact-audit summary small {
    text-align: left;
  }
  .request-impact-audit-totals {
    grid-template-columns: 1fr;
  }
  .request-impact-hero {
    flex-direction: column;
    padding: 17px;
  }
  .request-impact-hero-actions {
    width: 100%;
    justify-content: stretch;
  }
  .request-impact-hero-actions button {
    flex: 1 1 0;
  }
  .request-impact-kpis {
    grid-template-columns: 1fr;
  }
  .request-impact-kpi {
    min-height: 96px;
  }
  .request-impact-tabs {
    grid-template-columns: 1fr;
  }
  .request-impact-rank-card,
  .request-impact-customer-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .request-impact-rank-values {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
  .request-impact-controls {
    grid-template-columns: 1fr;
  }
  .request-impact-search {
    grid-column: auto;
  }
  .request-impact-result-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
