:root {
  --ink: #17232b;
  --muted: #667985;
  --line: #abc5ce;
  --paper: #f6fbfc;
  --bg: #e5eef2;
  --green: #22a65a;
  --green-dark: #006b72;
  --green-ink: #073f49;
  --red: #d42020;
  --amber: #f08a12;
  --blue: #00a6b2;
  --violet: #6d38c6;
  --soft-green: #e8f8f9;
  --soft-amber: #fff4df;
  --soft-blue: #eaf8fb;
  --sidebar: #13242b;
  --sidebar-2: #09171b;
  --shadow: 0 16px 34px rgba(21, 34, 31, 0.095);
  --shadow-soft: 0 8px 18px rgba(21, 34, 31, 0.075);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 166, 178, 0.045), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font-weight: 800;
  text-align: left;
}

.link-button:hover,
.link-button:focus {
  text-decoration: underline;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(0, 166, 178, 0.16), transparent 260px),
    linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: white;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 10px 0 30px rgba(12, 23, 23, 0.18);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.brand strong {
  font-size: 15px;
}

.brand span {
  display: block;
  color: #a9beb7;
  margin-top: 3px;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  color: #eaf3f0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(0, 166, 178, 0.28), rgba(0, 166, 178, 0.12));
  color: #ffffff;
}

.nav-item.active {
  box-shadow: inset 4px 0 0 var(--blue);
}

.app-shell {
  margin-left: 260px;
  padding: 26px 28px 34px;
}

body.provider-portal-mode .sidebar {
  display: none;
}

html.provider-portal-boot .sidebar {
  display: none;
}

body.provider-portal-mode .app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

html.provider-portal-boot .app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

body.provider-portal-mode .topbar {
  min-height: 64px;
}

html.provider-portal-boot .topbar {
  min-height: 64px;
}

body.provider-portal-mode .topbar-actions {
  display: none;
}

html.provider-portal-boot .topbar-actions {
  display: none;
}

.topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  background: rgba(247, 252, 253, 0.88);
  border: 1px solid #aac5cc;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 900;
}

h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.topbar-actions,
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-actions [hidden] {
  display: none !important;
}

.primary,
.secondary,
.success,
.warning,
.danger,
.icon-button {
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary {
  background: linear-gradient(180deg, #13b7c3, var(--blue));
  color: white;
  box-shadow: 0 8px 18px rgba(0, 166, 178, 0.18);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.success {
  background: linear-gradient(180deg, #22c76a, var(--green));
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(34, 166, 90, 0.2);
}

.success:hover {
  background: #158142;
  border-color: #158142;
}

.topbar-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 38px;
  font-size: 13px;
  line-height: 1;
  color: var(--green-ink);
  background: #e9fbfd;
  border-color: #9edee7;
}

.topbar-actions .secondary:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.topbar-actions .products-topbar-action,
.topbar-actions .module-topbar-action {
  min-width: auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.danger {
  background: #fff5f4;
  color: var(--red);
  border-color: #ffd2ce;
}

.warning {
  background: linear-gradient(180deg, #ff7a1a, #e44818);
  color: #ffffff;
  border-color: #e44818;
  box-shadow: 0 8px 18px rgba(228, 72, 24, 0.22);
}

.warning:hover {
  background: #c93512;
  border-color: #c93512;
}

.small {
  min-height: 32px;
  padding: 0 10px;
}

.file-button input {
  display: none;
}

.view {
  display: none;
}

.recent-quotes-panel .panel-heading h2 {
  font-size: 17px;
}

.recent-quotes-panel .panel-heading p {
  font-size: 12px;
  line-height: 1.35;
}

.recent-quotes-panel table {
  font-size: 12px;
}

.recent-quotes-panel th {
  font-size: 11px;
  letter-spacing: 0;
}

.recent-quotes-panel td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.recent-quotes-panel td strong {
  font-size: 12px;
}

.recent-quotes-panel .inline-select,
.recent-quotes-panel .small {
  font-size: 11px;
}

.view.active {
  display: block;
}

html.provider-portal-boot .view.active:not(#providerSpaceView) {
  display: none;
}

html.provider-portal-boot #providerSpaceView {
  display: block;
}

.view:not(#quoteView):not(#dashboardView) .panel-heading h2 {
  font-size: 17px;
}

.view:not(#quoteView):not(#dashboardView) .panel-heading p {
  font-size: 12px;
  line-height: 1.35;
}

.view:not(#quoteView):not(#dashboardView) table {
  font-size: 12px;
}

.view:not(#quoteView):not(#dashboardView) th {
  font-size: 11px;
  letter-spacing: 0;
}

.view:not(#quoteView):not(#dashboardView) td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.view:not(#quoteView):not(#dashboardView) td strong {
  font-size: 12px;
  font-weight: 650;
}

.view:not(#quoteView):not(#dashboardView) .inline-select,
.view:not(#quoteView):not(#dashboardView) .small {
  font-size: 11px;
}

.view:not(#dashboardView) .row-actions .secondary.small,
.view:not(#dashboardView) .row-actions .primary.small,
.view:not(#dashboardView) .row-actions .danger.small {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.view:not(#dashboardView) .row-actions [data-edit-client],
.view:not(#dashboardView) .row-actions [data-edit-product],
.view:not(#dashboardView) .row-actions [data-edit-kit],
.view:not(#dashboardView) .row-actions [data-edit-request] {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.view:not(#dashboardView) .row-actions [data-edit-client]:hover,
.view:not(#dashboardView) .row-actions [data-edit-product]:hover,
.view:not(#dashboardView) .row-actions [data-edit-kit]:hover,
.view:not(#dashboardView) .row-actions [data-edit-request]:hover {
  background: #158142;
  border-color: #158142;
}

.view:not(#dashboardView) .row-actions [data-delete-client],
.view:not(#dashboardView) .row-actions [data-delete-product],
.view:not(#dashboardView) .row-actions [data-delete-kit],
.view:not(#dashboardView) .row-actions [data-delete-request],
.view:not(#dashboardView) .row-actions [data-delete-provider] {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metrics strong {
  font-size: 24px;
}

.metrics.wide article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border-color: #cfeef3;
  background: #edfafe;
}

.metrics.wide article:nth-child(2) {
  border-color: #ccefdc;
  background: #eefbf4;
}

.metrics.wide article:nth-child(3) {
  border-color: #ffd9ac;
  background: #fff4e6;
}

.metrics.wide article:nth-child(4) {
  border-color: #bdd7ff;
  background: #eaf3ff;
}

.metrics.wide span {
  margin: 0;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}

.metrics.wide strong {
  color: var(--blue);
  font-size: 20px;
  text-align: right;
  white-space: nowrap;
}

.metrics.wide article:nth-child(2) strong {
  color: var(--green);
}

.metrics.wide article:nth-child(3) strong {
  color: var(--amber);
}

.metrics.wide article:nth-child(4) strong {
  color: #1266d6;
}

#dashboardView > .metrics {
  display: none;
}

.dashboard-surface {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 18px;
}

#dashboardView .dashboard-welcome {
  grid-column: 1 / -1;
  order: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
  min-height: 276px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  overflow: hidden;
  color: #f7fcf8;
  background:
    radial-gradient(circle at 89% 9%, rgba(184,231,75,.20), transparent 28%),
    radial-gradient(circle at 42% 95%, rgba(21,185,188,.22), transparent 38%),
    linear-gradient(118deg, #083640 0%, #075f68 61%, #087f81 100%);
  box-shadow: 0 22px 54px rgba(4,65,72,.18);
}

.dashboard-welcome-copy { position: relative; z-index: 1; }
.dashboard-welcome-eyebrow { display: inline-flex; gap: 11px; align-items: center; color: #c9ec94; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.dashboard-welcome-eyebrow span { color: #bbd9d9; letter-spacing: .04em; text-transform: none; }
#dashboardView .dashboard-welcome h2 { margin: 15px 0 10px; color: white; font-size: clamp(30px, 3vw, 47px); line-height: 1.1; letter-spacing: -.045em; }
#dashboardView .dashboard-welcome h2 em { color: #c5ed73; font-style: normal; }
.dashboard-welcome-copy > p { max-width: 39ch; margin: 0; color: #d4e9e6; font-size: 14px; line-height: 1.55; }
.dashboard-welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.dashboard-welcome-actions button { display: inline-flex; gap: 14px; justify-content: space-between; align-items: center; min-height: 39px; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; color: #103a3d; background: #c5ed73; font-size: 12px; font-weight: 850; cursor: pointer; }
.dashboard-welcome-actions button + button { color: #f7fcf8; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.1); }
.dashboard-welcome-actions button:hover, .dashboard-welcome-highlights button:hover { transform: translateY(-2px); }
.dashboard-welcome-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.dashboard-welcome-highlights button { display: grid; gap: 8px; align-content: space-between; min-width: 0; min-height: 160px; padding: 17px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; color: white; text-align: left; background: rgba(255,255,255,.11); backdrop-filter: blur(12px); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.dashboard-welcome-highlights button:hover { background: rgba(255,255,255,.18); }
.dashboard-welcome-highlights button:first-child { background: rgba(255,255,255,.19); }
.dashboard-welcome-highlights button > span { color: #dfefed; font-size: 12px; font-weight: 750; line-height: 1.3; }
.dashboard-welcome-highlights strong { color: #d0f38b; font-size: clamp(34px, 3.2vw, 52px); line-height: 1; font-weight: 900; }
.dashboard-welcome-highlights small { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #d1e5e2; font-size: 10px; font-weight: 750; }
.dashboard-welcome-highlights [hidden] { display: none; }

@media (max-width: 1240px) {
  #dashboardView .dashboard-welcome { grid-template-columns: minmax(0, 1fr) minmax(235px, .82fr); }
  .dashboard-welcome-highlights { grid-template-columns: 1fr; gap: 7px; }
  .dashboard-welcome-highlights button { grid-template-columns: 1fr auto; align-items: center; min-height: 62px; padding: 10px 13px; }
  .dashboard-welcome-highlights strong { grid-row: span 2; grid-column: 2; font-size: 32px; }
  .dashboard-welcome-highlights small { justify-content: flex-start; }
}
@media (max-width: 720px) {
  #dashboardView .dashboard-welcome { grid-template-columns: 1fr; padding: 23px 19px; border-radius: 17px; }
  .dashboard-welcome-highlights button { grid-template-columns: 1fr auto; align-items: center; min-height: 65px; padding: 12px 14px; }
  .dashboard-welcome-highlights strong { grid-row: span 2; grid-column: 2; font-size: 30px; }
  .dashboard-welcome-highlights small { justify-content: flex-start; }
}

.dashboard-section {
  display: grid;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dashboard-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.dashboard-v2-quotes::before {
  background: var(--blue);
}

.dashboard-v2-alerts::before,
.dashboard-surface > .dashboard-section:has(.action-grid)::before {
  background: var(--amber);
}

.dashboard-two-columns .dashboard-section:first-child::before {
  background: var(--blue);
}

.dashboard-two-columns .dashboard-section:last-child::before {
  background: var(--violet);
}

.kpi-section::before {
  background: #8a98a5;
}

.dashboard-surface > .dashboard-section {
  grid-column: span 12;
}

.dashboard-v2-quotes {
  grid-column: span 12;
  order: 1;
}

.today-section,
.priority-section,
.production-section,
.dashboard-v2-alerts {
  grid-column: span 6 !important;
}

.today-section {
  order: 2;
  grid-column: 1 / 7 !important;
}

.dashboard-action-stack {
  order: 3;
  grid-column: 7 / 13 !important;
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: start;
}

.dashboard-action-stack .dashboard-section {
  grid-column: auto !important;
}

.priority-section {
  order: 1;
  grid-column: auto !important;
}

.google-agenda-section {
  grid-column: auto !important;
  order: 2;
  padding: 0;
  overflow: hidden;
}

.production-section {
  order: 6;
  grid-column: 1 / 7 !important;
}

.quote-work-section {
  order: 4;
  grid-column: span 12 !important;
}

.dashboard-two-columns {
  grid-column: span 12;
}

.dashboard-v2-alerts {
  order: 7;
  grid-column: 7 / 13 !important;
}

.dashboard-two-columns {
  order: 8;
}

.survey-section {
  order: 5;
  grid-column: span 12 !important;
}

.kpi-section {
  grid-column: span 12 !important;
  order: 9;
}

.dashboard-v2-quotes {
  padding: 12px 14px;
}

.dashboard-v2-quotes .dashboard-heading {
  display: none;
}

.quote-status-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.quote-status-metrics article {
  min-height: 70px;
  padding: 10px 12px;
  text-align: center !important;
  display: grid;
  align-content: center;
  gap: 10px;
}

.quote-status-metrics span,
.quote-status-metrics strong {
  text-align: center;
}

.quote-status-metrics strong {
  font-size: 20px;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  background: #edfafe;
  border-bottom: 1px solid #cfeef3;
}

.dashboard-heading h2 {
  margin: 0;
  color: var(--green-ink);
  font-weight: 900;
}

.today-section .dashboard-heading,
.priority-section .dashboard-heading {
  background: #fff4e6;
  border-bottom-color: #ffd9ac;
}

.today-section .dashboard-heading h2,
.priority-section .dashboard-heading h2 {
  color: #b75b00;
}

.dashboard-v2-alerts .dashboard-heading {
  background: #fff4e6;
  border-bottom-color: #ffd9ac;
}

.dashboard-v2-alerts .dashboard-heading h2 {
  color: #b75b00;
}

.quote-work-section .dashboard-heading {
  background: #eef8ff;
  border-bottom-color: #cce8fb;
}

.quote-work-section .dashboard-heading h2 {
  color: #1266d6;
}

.survey-section .dashboard-heading {
  background: #eefbf4;
  border-bottom-color: #ccefdc;
}

.survey-section .dashboard-heading h2 {
  color: #08733f;
}

.production-section .dashboard-heading {
  background: #eefbf4;
  border-bottom-color: #ccefdc;
}

.production-section .dashboard-heading h2 {
  color: #08733f;
}

.production-section .dashboard-heading h2 {
  white-space: nowrap;
}

.dashboard-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.today-section {
  border: 1px solid #bfe8ed;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #ffffff, #eefbfc);
}

.action-focus .today-list {
  min-height: 250px;
}

.today-list {
  display: grid;
  gap: 8px;
}

.today-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid #dbe6e8;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
}

.action-focus .today-row {
  grid-template-columns: 1fr;
  min-height: 54px;
}

.today-row.alert {
  border-left-color: var(--amber);
}

.today-row span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
}

.today-row strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.today-more {
  border: 1px dashed #f1b36a;
  border-radius: 8px;
  background: #fff8ee;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
}

.today-full-list {
  display: grid;
  gap: 10px;
}

.today-full-list .today-row {
  grid-template-columns: 220px 1fr;
  min-height: 58px;
  padding: 12px 14px;
}

.single-list {
  display: grid;
  gap: 8px;
}

.single-list .dashboard-list-row {
  grid-template-columns: 170px 1fr;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.survey-section .dashboard-list-row {
  border-left-color: var(--green);
}

.planning-more {
  border-top: 1px dashed #d8e8ec;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  padding-top: 8px;
  text-align: center;
}

.action-grid,
.compact-metrics,
.dashboard-two-columns {
  display: grid;
  gap: 12px;
}

.action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-two-columns {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.priority-section .action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.google-agenda-section::before {
  background: linear-gradient(180deg, #4285f4, #34a853 48%, #fbbc04 74%, #ea4335);
}

.google-agenda-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(165px, 1fr);
  gap: 12px;
  min-height: 246px;
  padding: 14px 16px 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(0, 166, 178, 0.08), transparent 46%),
    #ffffff;
}

.google-agenda-card:hover {
  background:
    linear-gradient(90deg, rgba(0, 166, 178, 0.14), rgba(255, 255, 255, 0.94) 46%),
    #ffffff;
}

.google-agenda-copy {
  display: grid;
  align-content: start;
  gap: 5px;
}

.google-agenda-copy span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.google-agenda-copy strong {
  color: var(--green-ink);
  font-size: 20px;
  font-weight: 900;
}

.google-agenda-copy small {
  color: var(--muted);
  font-size: 12px;
}

.google-agenda-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  text-transform: none !important;
}

.google-agenda-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cde7e3;
  border-radius: 7px;
  background: #f7fbfb;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.google-agenda-actions a:first-child {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.google-agenda-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #dce9ee;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.google-agenda-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 7px 10px;
  background: #f8fbfc;
  border-bottom: 1px solid #e3edf1;
}

.google-agenda-bar span {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.google-agenda-bar span:nth-child(2) {
  background: var(--amber);
}

.google-agenda-bar span:nth-child(3) {
  background: var(--green);
}

.google-agenda-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 9px 9px;
}

.google-agenda-days b {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.google-agenda-days i {
  min-height: 18px;
  border-radius: 6px;
  background: #f0f6f8;
}

.google-agenda-days i.busy {
  background: rgba(66, 133, 244, 0.22);
}

.google-agenda-days i.job {
  background: rgba(0, 166, 178, 0.25);
}

.google-agenda-days i.survey {
  background: rgba(240, 138, 18, 0.25);
}

.google-agenda-days i.delivery {
  background: rgba(34, 166, 90, 0.22);
}

.planning-provider-row {
  align-items: stretch;
}

.planning-provider-row > .dashboard-section {
  align-self: stretch;
}

.dashboard-card,
.compact-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  min-height: 88px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.dashboard-card[data-icon],
.compact-metrics article[data-icon] {
  position: relative;
}

.dashboard-card[data-icon]::before,
.compact-metrics article[data-icon]::before {
  content: attr(data-icon);
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 166, 178, 0.12);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.quote-status-metrics article[data-icon],
.priority-section .dashboard-card[data-icon] {
  padding-left: 12px;
  padding-top: 10px;
}

.quote-status-metrics article[data-icon]::before,
.priority-section .dashboard-card[data-icon]::before {
  display: none;
}

.production-section .compact-metrics article[data-icon],
.dashboard-v2-alerts .compact-metrics article[data-icon] {
  padding-left: 38px;
}

.production-section .compact-metrics article[data-icon]::before,
.dashboard-v2-alerts .compact-metrics article[data-icon]::before {
  top: 50%;
  transform: translateY(-50%);
}

.priority-section .dashboard-card[data-icon]::before,
.dashboard-v2-alerts .compact-metrics article[data-icon]::before {
  background: rgba(240, 138, 18, 0.15);
  color: var(--amber);
}

.production-section .compact-metrics article[data-icon]::before {
  background: #eaf3ff;
  color: #1266d6;
}

.production-section .compact-metrics article[data-icon]:has(#dashJobsDone)::before,
.dashboard-v2-alerts .compact-metrics article[data-icon]:has(#dashJobsDoneAlert)::before {
  background: #e9f9ef;
  color: #159947;
}

.production-section .compact-metrics article[data-icon]:has(#dashJobsWaiting)::before {
  background: #fff1d9;
  color: #e87800;
}

.dashboard-v2-alerts .compact-metrics article[data-icon]:has(#dashClientFollowUps)::before {
  background: #ffe9e9;
  color: #d92323;
}

.dashboard-v2-alerts .compact-metrics article[data-icon]:has(#dashJobsStartingSoon)::before {
  background: #fff1d9;
  color: #e87800;
}

.priority-section .dashboard-card {
  min-height: 64px;
  padding: 10px 12px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.priority-section .dashboard-card span {
  font-size: 11px;
}

.priority-section .dashboard-card strong {
  font-size: 20px;
  justify-self: center;
}

.production-section .compact-metrics {
  grid-template-columns: 1fr;
}

.dashboard-v2-alerts .compact-metrics {
  grid-template-columns: 1fr;
}

.production-section .compact-metrics,
.dashboard-v2-alerts .compact-metrics {
  gap: 8px;
}

.production-section .compact-metrics article,
.dashboard-v2-alerts .compact-metrics article {
  min-height: 46px;
  padding: 10px 12px;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.production-section .compact-metrics strong,
.dashboard-v2-alerts .compact-metrics strong {
  font-size: 18px;
}

.dashboard-card {
  display: grid;
  gap: 8px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.dashboard-card:hover,
.today-row:hover,
.dashboard-list-row:hover {
  transform: translateY(-1px);
}

.dashboard-card:hover {
  box-shadow: 0 14px 24px rgba(21, 34, 31, 0.09);
}

.compact-metrics article:has(#dashProvidersWaiting) {
  order: 1;
}

.compact-metrics article:has(#dashProvidersAvailable) {
  order: 2;
}

.compact-metrics article:has(#dashProvidersBusy) {
  order: 3;
}

.compact-metrics article:has(#dashProvidersWaiting),
.compact-metrics article:has(#dashProvidersAvailable),
.compact-metrics article:has(#dashProvidersBusy) {
  cursor: pointer;
}

.dashboard-card.alert {
  border-left: 5px solid var(--amber);
}

.dashboard-card span,
.compact-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-card strong,
.compact-metrics strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.dashboard-v2-quotes .compact-metrics strong {
  color: var(--blue);
}

.dashboard-v2-alerts .compact-metrics strong {
  color: var(--amber);
}

#dashJobsDone,
#dashProvidersAvailable,
.availability-status.free {
  color: var(--green) !important;
}

.dashboard-card.alert strong {
  color: var(--amber);
}

.provider-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.subtle-toggle {
  min-height: 28px;
  border: 1px solid #cde7e3;
  border-radius: 6px;
  background: #f7fbfb;
  color: var(--green-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.subtle-toggle:hover,
.subtle-toggle:focus {
  background: var(--soft-green);
}

.provider-dashboard-actions .active-filter {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--soft-green);
}

.provider-dashboard-list {
  display: grid;
  gap: 6px;
}

.provider-dashboard-table {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.provider-dashboard-table.ca-view {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.provider-dashboard-table.available-view {
  grid-template-columns: 1.4fr 1.2fr 0.9fr;
}

.provider-dashboard-table span,
.provider-dashboard-table strong,
.provider-dashboard-cell {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  padding: 8px 9px;
}

.provider-dashboard-table span {
  background: #f3fbfa;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.provider-dashboard-table.ca-view span:nth-child(2),
.provider-dashboard-table.ca-view span:nth-child(3) {
  text-align: right;
}

.provider-dashboard-table strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.availability-status {
  position: relative;
  text-align: left !important;
  padding-left: 24px !important;
}

.availability-status::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.availability-status.free::before {
  background: #16a34a;
}

.availability-status.soon::before {
  background: #2563eb;
}

.availability-status.busy::before {
  background: #dc2626;
}

.provider-dashboard-cell {
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

#dashPlanningList {
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-list-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.dashboard-list-group h3 {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 13px;
}

.dashboard-list-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0;
  background: transparent;
  text-align: left;
}

.dashboard-list-row span {
  color: var(--amber);
  font-weight: 700;
  font-size: 12px;
}

.dashboard-list-row strong {
  font-size: 13px;
  font-weight: 500;
}

.dashboard-list-row small {
  display: block;
  margin-top: 3px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 500;
}

.kpi-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  opacity: 0.92;
}

.kpi-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-metrics article {
  display: grid;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
}

.kpi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-metrics span {
  font-size: 12px;
}

.kpi-metrics strong {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.kpi-trend-card {
  min-height: 126px !important;
  background: #07304a !important;
  border-color: #0b4d66 !important;
  box-shadow: 0 14px 28px rgba(7, 48, 74, 0.18) !important;
}

.kpi-trend-card .kpi-card-head span {
  color: #c7f7ff;
}

.kpi-trend-card .kpi-card-head strong {
  color: #ffb02e;
  text-shadow: 0 0 10px rgba(255, 176, 46, 0.42);
}

.kpi-sparkline {
  min-height: 86px;
}

.kpi-sparkline svg {
  display: block;
  width: 100%;
  height: 72px;
}

.sparkline-fill {
  fill: rgba(255, 176, 46, 0.18);
  stroke: none;
}

.sparkline-line {
  fill: none;
  stroke: #ffb02e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 176, 46, 0.85));
}

.sparkline-dot {
  fill: #07304a;
  stroke: #ffb02e;
  stroke-width: 2;
}

.kpi-sparkline-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #b9edf5;
  font-size: 10px;
}

.kpi-sparkline-caption strong {
  color: #ffb02e;
  font-size: 10px;
}

.empty.compact {
  padding: 6px 0;
  text-align: left;
}

.quote-form .empty {
  padding: 8px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.panel {
  background: var(--paper);
  border: 1px solid #93b6c1;
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(0, 166, 178, 0));
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.view:not(#dashboardView) .panel-heading {
  margin: -18px -18px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #9ccbd4;
  background: #d8eef3;
}

.view:not(#dashboardView) .panel-heading h2 {
  color: var(--green-ink);
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.view:not(#dashboardView) .panel-heading .primary {
  min-height: 32px;
  font-size: 12px;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 166, 178, 0.14);
}

.view:not(#dashboardView) .panel-heading .primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

#kitsView .panel {
  padding: 14px;
}

#kitsView .panel-heading {
  margin: -14px -14px 10px;
  padding: 8px 14px;
}

#kitsView .panel-heading h2 {
  font-size: 15px;
}

#kitsView .panel-heading p {
  font-size: 10px;
  line-height: 1.25;
}

#kitsView .panel-heading .primary {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.panel-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

.clients-list-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.clients-list-controls label {
  display: grid;
  gap: 6px;
  width: min(480px, 100%);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.clients-list-controls input {
  min-height: 40px;
}

.clients-list-summary {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.clients-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 14px;
}

.clients-pagination strong {
  color: var(--green-dark);
  font-size: 13px;
}

.clients-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f3f8f5;
  color: var(--green-dark);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

tbody tr:hover {
  background: #fbfdfc;
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

#recentQuotesBody .row-actions {
  min-width: 230px;
  flex-wrap: wrap;
  align-items: center;
}

#recentQuotesBody .row-actions .small {
  white-space: nowrap;
  padding-inline: 10px;
}

#recentQuotesBody [data-reopen-quote] {
  min-width: 76px;
  color: #ffffff;
  background: linear-gradient(180deg, #2f8cff, #1266d6);
  border-color: #1266d6;
  box-shadow: 0 6px 14px rgba(18, 102, 214, 0.18);
}

#recentQuotesBody [data-create-job] {
  min-width: 132px;
  color: #ffffff;
  background: linear-gradient(180deg, #22c76a, #15924d);
  border-color: #15924d;
  box-shadow: 0 6px 14px rgba(21, 146, 77, 0.2);
}

#recentQuotesBody [data-go-job] {
  color: #ffffff;
  background: linear-gradient(180deg, #7c6df2, #5547c8);
  border-color: #5547c8;
  box-shadow: 0 6px 14px rgba(85, 71, 200, 0.18);
}

#recentQuotesBody [data-reopen-quote]:hover,
#recentQuotesBody [data-create-job]:hover,
#recentQuotesBody [data-go-job]:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.muted-cell {
  color: var(--muted);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(540px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.quote-form {
  min-width: 0;
  position: relative;
}

.quote-form .quote-client-field {
  grid-column: 1 / -1;
}

.quote-form .panel-heading h2 {
  font-size: 17px;
}

.quote-form .panel-heading p {
  font-size: 12px;
  line-height: 1.35;
}

.quote-form button {
  font-size: 12px;
}

.quote-form .section-title .secondary {
  min-height: 30px;
  padding: 0 10px;
  color: var(--green-ink);
  background: #e9fbfd;
  border-color: #9edee7;
}

.quote-form .section-title .secondary:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.quote-form .quick-add-client {
  color: #ffffff;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 8px 18px rgba(240, 138, 18, 0.16);
}

.quote-form .quick-add-client:hover {
  background: #d97400;
  border-color: #d97400;
}

.quote-form .form-actions {
  justify-content: flex-end;
  gap: 8px;
}

.quote-form .form-actions .secondary {
  min-width: 104px;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 166, 178, 0.16);
}

.quote-form .form-actions .secondary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.quote-form .form-actions .primary {
  min-width: 118px;
  background: linear-gradient(180deg, #ffb02e, var(--amber));
  box-shadow: 0 8px 18px rgba(240, 138, 18, 0.18);
}

.quote-form .form-actions .primary:hover {
  background: #d97400;
}

.quote-number {
  color: var(--blue);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-with-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.field-with-button select {
  min-width: 0;
}

.client-info-box {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #bfe3e8;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f3fcfd;
  color: var(--muted);
  font-size: 12px;
}

.client-info-box strong {
  color: var(--green-ink);
  font-size: 13px;
}

.client-info-box span {
  display: block;
}

.quote-jarvis-client-choices {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 2px solid #31a8ff;
  border-radius: 12px;
  background: #eefaff;
}

.quote-jarvis-client-choices[hidden] {
  display: none;
}

.quote-jarvis-client-choices > strong {
  color: var(--green-ink);
  font-size: 14px;
}

.quote-jarvis-client-choices-list {
  display: grid;
  gap: 7px;
}

.sj-debug-status {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4e5;
  border: 1px solid #ffb24d;
  color: #8a3f00;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}

input[readonly] {
  background: #f4f7f8;
  color: var(--muted);
}

.inline-select {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

textarea {
  resize: vertical;
}

.checkbox-field {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--ink);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.builder-section {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title h3 {
  font-size: 14px;
}

.section-title .section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.selected-item {
  display: grid;
  grid-template-columns: 1fr 86px 88px 36px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.selected-item-label strong {
  font-size: 12px;
  line-height: 1.3;
}

.quote-line-card {
  display: grid;
  grid-template-columns: 1fr 86px 88px 36px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 7px;
  background: #fbfcfd;
}

.quote-line-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.quote-line-card label {
  color: var(--muted);
  font-size: 11px;
}

.selected-item button,
.icon-button {
  width: 36px;
  padding: 0;
  border-color: var(--line);
  background: white;
}

.selected-item.quote-choice-summary {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.selected-item.quote-choice-summary .quote-choice-models-button {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--primary-dark);
  border-color: var(--primary);
  font-weight: 800;
}

.quote-preview {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background: #dcecf0;
}

.quote-followup {
  position: sticky;
  top: 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid #93b6c1;
  border-radius: 8px;
  background: #eef7f8;
  box-shadow: var(--shadow);
}

.quote-followup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #9ccbd4;
  background: #d8eef3;
}

.quote-followup-header > div {
  display: grid;
  gap: 1px;
}

.quote-followup-header strong {
  color: var(--green-ink);
  font-size: 13px;
}

.quote-followup-header span {
  color: var(--muted);
  font-size: 10px;
}

.quote-followup-header button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.quote-preview .quote-page {
  zoom: 0.84;
  margin-bottom: 12px;
}

@media (max-width: 1120px) and (min-width: 881px) {
  .quote-layout {
    grid-template-columns: minmax(390px, 0.9fr) minmax(430px, 1.1fr);
  }

  .quote-preview .quote-page {
    zoom: 0.64;
  }
}

.quote-layout.preview-collapsed {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.quote-layout.preview-collapsed .quote-followup {
  max-height: 48px;
}

.quote-layout.preview-collapsed .quote-followup-header {
  border-bottom: 0;
}

.quote-layout.preview-collapsed .quote-followup-header > div,
.quote-layout.preview-collapsed .quote-preview {
  display: none;
}

.quote-page {
  background: white;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 18px;
  padding: 12mm;
  box-shadow: var(--shadow);
  color: #151515;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--blue);
}

.pdf-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 8px;
  margin-bottom: 12px;
  align-items: end;
}

.pdf-logo {
  width: 72px;
  height: 86px;
  border: 0;
  border-radius: 4px;
  background: white;
  object-fit: contain;
  margin-bottom: 6px;
}

.company-details,
.client-box {
  line-height: 1.45;
  font-size: 12px;
}

.lm-site-reference {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(8, 166, 182, .28);
  line-height: 1.45;
}

.company-details {
  display: block;
  width: max-content;
  max-width: 100%;
  text-align: left;
}

.company-text {
  text-align: left;
}

.company-details .pdf-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.company-details strong {
  color: var(--green-ink);
  font-size: 15px;
  text-transform: uppercase;
}

.company-phone {
  display: inline-block;
  margin-top: 3px;
}

.client-box {
  justify-self: end;
  width: 230px;
  border: 1px solid var(--blue);
  padding: 0;
  align-self: end;
  margin-bottom: 2px;
}

.client-box strong {
  display: block;
  margin: 0 0 6px;
  padding: 4px 8px;
  background: var(--blue);
  color: white;
  text-transform: uppercase;
  font-size: 11px;
}

.client-box {
  font-size: 11px;
  line-height: 1.32;
}

.client-box div {
  padding: 0 8px 7px;
}

.pdf-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.pdf-title h2 {
  font-size: 28px;
  margin: 0;
  letter-spacing: 0;
  color: #0a0f0d;
}

.pdf-title span {
  font-weight: 800;
  color: var(--green-ink);
  border: 1px solid var(--blue);
  padding: 5px 12px;
}

.pdf-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.pdf-meta small {
  color: #4c5d65;
  font-size: 11px;
  line-height: 1;
}

.pdf-block {
  margin-top: 14px;
  break-inside: avoid;
}

.pdf-block h3 {
  border-bottom: 0;
  background: linear-gradient(90deg, var(--blue), #057b86);
  color: white;
  padding: 6px 8px;
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.fiscal-block {
  border: 1px solid #d7dde1;
  padding: 8px;
  background: #fbfcfc;
}

.fiscal-block h3 {
  margin-top: 0;
}

.fiscal-block p {
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.35;
}

.pdf-table th,
.pdf-table td {
  padding: 7px 6px;
  font-size: 11px;
  border: 1px solid #d7dde1;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.quote-print-supplies {
  display: none;
}

.quote-columns-standard col:nth-child(1) { width: 8%; }
.quote-columns-standard col:nth-child(2) { width: 57%; }
.quote-columns-standard col:nth-child(3) { width: 13%; }
.quote-columns-standard col:nth-child(4) { width: 22%; }

.quote-columns-with-action col:nth-child(2) { width: 51%; }
.quote-columns-with-action col:nth-child(4) { width: 20%; }
.quote-columns-with-action .quote-action-column { width: 8%; }

.pdf-table th {
  background: #f1f5f2;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
}

.pdf-table td:first-child,
.pdf-table th:first-child {
  text-align: center;
}

.service-details {
  margin-top: 4px;
  line-height: 1.35;
  font-size: 10.5px;
  color: #39444d;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: #f1f7f6;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  border-color: var(--green);
  background: #f1f7f6;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #d7dde1;
  border-top: 0;
}

.product-card {
  border: 0;
  border-right: 1px solid #d7dde1;
  min-height: 138px;
  display: grid;
  grid-template-rows: 82px auto;
}

.product-card:last-child {
  border-right: 0;
}

.product-card img,
.product-placeholder {
  width: 100%;
  height: 82px;
  object-fit: cover;
  background: #edf2f4;
}

.product-placeholder {
  display: grid;
  place-items: center;
  color: #65717c;
  font-size: 11px;
}

.product-card img.default-product-image {
  object-fit: contain;
  padding: 12px;
  background: #f8fbfc;
}

.product-card-body {
  display: grid;
  gap: 4px;
  padding: 7px 6px;
  text-align: center;
}

.product-card-body strong {
  font-size: 11px;
}

.product-card-body span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.product-choice-compact-list {
  display: grid;
  gap: 0;
  border: 1px solid #d7dde1;
  border-top: 0;
}

.product-choice-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #d7dde1;
}

.product-choice-compact-row:last-child {
  border-bottom: 0;
}

.product-choice-compact-row strong {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
}

.product-choice-compact-row span {
  color: var(--muted);
  font-size: 11px;
}

.product-image-upload {
  display: grid;
  gap: 7px;
}

.product-image-value-field {
  display: none;
}

.product-image-upload strong {
  color: var(--green-ink);
  font-size: 12px;
}

.product-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-image-upload span,
.product-image-preview small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.product-image-preview {
  min-height: 78px;
  border: 1px dashed #c9dde2;
  border-radius: 6px;
  background: #f8fbfc;
  display: grid;
  place-items: center;
  padding: 8px;
}

.product-image-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 4px;
}

.product-table-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d7dde1;
  background: #f3f6f7;
}

.product-table-thumb.default-product-thumb {
  object-fit: contain;
  padding: 4px;
}

.quote-action-cell {
  width: 1%;
  white-space: nowrap;
}

.quote-action-cell .danger,
.product-card-body .danger {
  justify-self: start;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
}

.quote-price-with-action {
  position: relative;
  padding-right: 30px !important;
}

.quote-price-with-action .quote-remove-button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}

.quote-remove-button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  opacity: 0.58;
}

.quote-remove-button:hover,
.quote-remove-button:focus {
  opacity: 1;
}

.quote-end-blocks {
  margin-top: auto;
  padding-top: 18px;
  break-inside: avoid;
}

.quote-end-blocks::after {
  content: "SJ MULTI TRAVAUX vous remercie pour votre confiance !";
  display: block;
  margin-top: 14px;
  padding: 8px;
  background: var(--blue);
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 11px;
}

.quote-end-blocks .fiscal-block {
  margin-top: 0;
  padding: 0;
}

.quote-end-blocks .fiscal-block p {
  margin-left: 8px;
  margin-right: 8px;
}

.pdf-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "conditions signature recap";
  gap: 10px;
  margin-top: 18px;
  align-items: start;
}

.footer-box {
  border: 1px solid #cfd7dc;
  min-height: 94px;
  padding: 8px;
  font-size: 11px;
}

.footer-box h4 {
  color: var(--green-dark);
  text-transform: uppercase;
  font-size: 11px;
}

.conditions-box {
  grid-area: conditions;
}

.signature-box {
  grid-area: signature;
}

.recap-box {
  grid-area: recap;
  min-height: 158px;
}

.footer-box h4 {
  margin: 0 0 8px;
  font-size: 12px;
}

.rib-footer {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #cfd7dc;
  color: #39444d;
  font-size: 10.5px;
  line-height: 1.35;
}

.rib-footer strong {
  display: inline-block;
  margin-right: 10px;
  color: #151515;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5eaed;
  padding: 4px 0;
}

.summary-row.total {
  font-weight: 900;
  border-bottom: 0;
  font-size: 13px;
  color: var(--green-ink);
}

.kit-list,
.job-list {
  display: grid;
  gap: 12px;
}

.focused-job-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(0, 166, 166, 0.28);
  border-radius: 8px;
  background: #eefafa;
  padding: 12px 14px;
}

.focused-job-notice strong,
.focused-job-notice span {
  display: block;
}

.focused-job-notice span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.kit-card,
.job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.kit-card header,
.job-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.job-card h3 {
  margin-bottom: 3px;
  color: var(--green-ink);
  font-size: 14px;
  line-height: 1.25;
}

.job-card header p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 0;
}

.job-card .row-actions .small {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.job-action-open {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.job-action-open:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.job-action-edit {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.job-action-edit:hover {
  background: #158142;
  border-color: #158142;
}

.job-action-reset {
  color: #ffffff;
  background: var(--amber);
  border-color: var(--amber);
}

.job-action-reset:hover {
  background: #d97400;
  border-color: #d97400;
}

.job-action-delete {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.jobs-cycle-tabs {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 0 0 -1px;
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jobs-cycle-tab {
  --section-accent: var(--blue);
  --section-soft: #f5fbfd;
  display: inline-flex;
  flex: 1 0 126px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 30%, var(--line));
  border-bottom-color: color-mix(in srgb, var(--section-accent) 48%, var(--line));
  border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--section-soft) 78%, #ffffff);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.jobs-cycle-tab strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-accent) 16%, #ffffff);
  color: var(--section-accent);
  font-size: 11px;
}

.jobs-cycle-tab:hover,
.jobs-cycle-tab:focus-visible {
  background: var(--section-soft);
  outline: none;
  transform: translateY(-1px);
}

.jobs-cycle-tab.active {
  min-height: 54px;
  border-color: var(--section-accent);
  border-bottom-color: #ffffff;
  background: #ffffff;
  color: var(--section-accent);
  box-shadow: 0 -5px 14px color-mix(in srgb, var(--section-accent) 12%, transparent);
}

.jobs-cycle-tab.active strong {
  background: var(--section-accent);
  color: #ffffff;
}

.jobs-cycle-tab.status-dispute {
  margin-left: 8px;
}

.requests-organizer {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fcfd;
}

.request-stage-tabs {
  margin-bottom: 12px;
}

.request-stage-tabs .jobs-cycle-tab {
  flex: 1 1 112px;
  min-width: 112px;
  padding: 9px 8px;
  border-top: 3px solid var(--section-accent);
  background: var(--section-soft);
  color: var(--section-accent);
  font-size: 11px;
}

.request-stage-tabs .jobs-cycle-tab.active {
  border-color: var(--section-accent);
  background: var(--section-accent);
  color: #ffffff;
  box-shadow: 0 -5px 14px color-mix(in srgb, var(--section-accent) 18%, transparent);
}

.request-stage-tabs .jobs-cycle-tab.active strong {
  background: rgba(255, 255, 255, 0.92);
  color: var(--section-accent);
}

.request-stage-all {
  --section-accent: #078896;
  --section-soft: #eaf8f9;
}

.request-stage-to_process {
  --section-accent: #d96d0b;
  --section-soft: #fff3e6;
}

.request-stage-to_plan {
  --section-accent: #2563c9;
  --section-soft: #edf5ff;
}

.request-stage-planned {
  --section-accent: #5746c7;
  --section-soft: #f0efff;
}

.request-stage-survey_done {
  --section-accent: #168547;
  --section-soft: #eaf8ef;
}

.request-stage-quote_prepare {
  --section-accent: #8a3dc0;
  --section-soft: #f7edfc;
}

.request-stage-finished {
  --section-accent: #08796f;
  --section-soft: #e9f8f5;
}

.quotes-organizer {
  padding: 14px 16px 0;
  background: #f8fcfd;
}

.quote-status-tabs .jobs-cycle-tab {
  flex: 1 1 150px;
  min-width: 132px;
  padding: 9px 12px;
  border-top: 3px solid var(--section-accent);
  background: var(--section-soft);
  color: var(--section-accent);
  font-size: 11px;
}

.quote-status-tabs .jobs-cycle-tab.active {
  border-color: var(--section-accent);
  background: var(--section-accent);
  color: #ffffff;
  box-shadow: 0 -5px 14px color-mix(in srgb, var(--section-accent) 18%, transparent);
}

.quote-status-tabs .jobs-cycle-tab.active strong {
  background: rgba(255, 255, 255, 0.92);
  color: var(--section-accent);
}

.quote-status-all {
  --section-accent: #078896;
  --section-soft: #eaf8f9;
}

.quote-status-en_attente {
  --section-accent: #d96d0b;
  --section-soft: #fff3e6;
}

.quote-status-envoye {
  --section-accent: #2563c9;
  --section-soft: #edf5ff;
}

.quote-status-accepte {
  --section-accent: #168547;
  --section-soft: #eaf8ef;
}

.quote-status-refuse {
  --section-accent: #c92727;
  --section-soft: #fff0f0;
}

#quotesView {
  --quote-table-accent: #078896;
}

#quotesView[data-quote-status="en_attente"] { --quote-table-accent: #d96d0b; }
#quotesView[data-quote-status="envoye"] { --quote-table-accent: #2563c9; }
#quotesView[data-quote-status="accepte"] { --quote-table-accent: #168547; }
#quotesView[data-quote-status="refuse"] { --quote-table-accent: #c92727; }

#quotesView .quotes-status-table thead th {
  border-bottom-color: var(--quote-table-accent);
  background: var(--quote-table-accent);
  color: #ffffff;
}

#requestsView {
  --request-table-accent: #078896;
}

#requestsView[data-request-stage="to_process"] { --request-table-accent: #d96d0b; }
#requestsView[data-request-stage="to_plan"] { --request-table-accent: #2563c9; }
#requestsView[data-request-stage="planned"] { --request-table-accent: #5746c7; }
#requestsView[data-request-stage="survey_done"] { --request-table-accent: #168547; }
#requestsView[data-request-stage="quote_prepare"] { --request-table-accent: #8a3dc0; }
#requestsView[data-request-stage="finished"] { --request-table-accent: #08796f; }

#requestsView .requests-stage-table thead th {
  border-bottom-color: var(--request-table-accent);
  background: var(--request-table-accent);
  color: #ffffff;
  font-size: 10px;
  white-space: nowrap;
}

.request-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto;
  align-items: end;
  gap: 12px;
}

.request-filter-bar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.request-filter-bar input,
.request-filter-bar select {
  width: 100%;
  min-height: 38px;
}

.request-results-count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-ink);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .request-filter-bar {
    grid-template-columns: 1fr;
  }

  .request-results-count {
    justify-self: start;
  }
}

.jobs-cycle-section {
  --section-accent: var(--blue);
  --section-soft: #f5fbfd;
  border: 1px solid color-mix(in srgb, var(--section-accent) 28%, var(--line));
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.jobs-cycle-section + .jobs-cycle-section {
  margin-top: 16px;
}

.jobs-cycle-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--section-accent) 28%, var(--line));
  background: var(--section-soft);
  color: var(--green-ink);
  font-size: 15px;
}

.jobs-cycle-section h3 strong {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--section-accent);
  color: #ffffff;
  font-size: 12px;
}

.jobs-compact-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.job-compact-card {
  --status-accent: var(--blue);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  gap: 10px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--status-accent) 24%, #d7e7ea);
  border-left: 4px solid var(--status-accent);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 8px 10px;
}

.job-compact-main {
  display: grid;
  grid-template-columns: 96px 132px minmax(170px, 1fr) 112px 152px 176px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.job-compact-main strong {
  color: var(--green-ink);
  font-size: 12px;
}

.job-compact-main > span,
.job-compact-main > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-compact-main:hover strong,
.job-compact-main:focus strong {
  color: var(--status-accent);
  text-decoration: underline;
}

.job-client-ref {
  display: grid;
  gap: 2px;
}

.job-client-ref small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.job-next-action {
  color: #0f766e;
  font-weight: 800;
}

.job-compact-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.job-compact-actions .small {
  width: 86px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
}

.job-compact-actions .job-action-issue {
  width: 92px;
}

.job-compact-actions .job-action-delete {
  width: 78px;
}

.job-action-issue {
  color: #ffffff;
  background: #f07c22;
  border-color: #f07c22;
}

.job-sj-actions-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.job-sj-actions-panel div {
  display: grid;
  gap: 3px;
}

.job-sj-actions-panel strong {
  color: #7c2d12;
  font-size: 13px;
}

.job-sj-actions-panel span {
  color: #9a3412;
  font-size: 12px;
}

.kit-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 0;
}

.kit-card h3 {
  margin-bottom: 3px;
  color: var(--green-ink);
  font-size: 14px;
  line-height: 1.25;
}

.kit-card .row-actions .small {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.kit-action-edit {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.kit-action-edit:hover {
  background: #158142;
  border-color: #158142;
}

.kit-action-duplicate {
  color: #7a4100;
  background: #fff4df;
  border-color: #f2c078;
}

.kit-action-duplicate:hover {
  color: #ffffff;
  background: var(--amber);
  border-color: var(--amber);
}

.kit-action-delete {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badges span {
  border: 1px solid #cfe4e8;
  border-radius: 999px;
  background: #edfafe;
  color: var(--green-ink);
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.25;
}

.badges .choice {
  background: #fff4e6;
  border-color: #ffd9ac;
  color: #9a5100;
}

.kit-config-empty {
  border: 1px dashed #b9dce3;
  border-radius: 8px;
  background: #f7fcfd;
  padding: 24px;
  text-align: center;
}

.kit-config-empty h3 {
  color: var(--green-ink);
  margin-bottom: 6px;
}

.kit-list-page,
.kit-detail-page {
  display: grid;
  gap: 9px;
}

.kit-jarvis-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  background: #fff7ed;
}

.kit-jarvis-head span {
  color: #c2410c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kit-jarvis-head h3 {
  margin: 3px 0;
  color: #7c2d12;
  font-size: 16px;
}

.kit-jarvis-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.kit-jarvis-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.kit-jarvis-request input,
.kit-jarvis-proposal input,
.kit-jarvis-proposal textarea {
  width: 100%;
  border: 1px solid #cfe0e5;
  border-radius: 7px;
  padding: 9px 10px;
  background: #ffffff;
}

.kit-jarvis-proposal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #fed7aa;
}

.kit-jarvis-proposal label {
  display: grid;
  gap: 4px;
  color: var(--green-ink);
  font-size: 11px;
  font-weight: 900;
}

.kit-jarvis-proposal .full,
.kit-jarvis-actions {
  grid-column: 1 / -1;
}

.kit-jarvis-proposal textarea {
  min-height: 68px;
  resize: vertical;
}

.kit-jarvis-needs {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #ffffff;
}

.kit-jarvis-needs h4 {
  margin: 0 0 2px;
  color: var(--green-ink);
  font-size: 13px;
}

.kit-jarvis-need {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(220px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d9e8ec;
  border-radius: 7px;
  background: #f8fdfe;
}

.kit-jarvis-essential {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 6px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}

.kit-jarvis-essential input {
  width: auto;
}

.kit-jarvis-need strong {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
}

.kit-jarvis-need span,
.kit-jarvis-missing {
  color: var(--muted);
  font-size: 11px;
}

.kit-jarvis-need select {
  width: 100%;
  border: 1px solid #cfe0e5;
  border-radius: 7px;
  padding: 8px 9px;
  background: #ffffff;
}

.kit-jarvis-limit {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.kit-jarvis-missing {
  padding: 8px 9px;
  border: 1px dashed #f59e0b;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.kit-jarvis-family-add {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px dashed #8fdbe4;
  border-radius: 7px;
  background: #f2fdff;
}

.kit-jarvis-family-add strong {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
}

.kit-jarvis-family-add span,
.kit-jarvis-family-help {
  color: var(--muted);
  font-size: 11px;
}

.kit-jarvis-family-add select {
  width: 100%;
  border: 1px solid #cfe0e5;
  border-radius: 7px;
  padding: 8px 9px;
  background: #ffffff;
}

.kit-jarvis-family-help {
  margin: 0;
}

.kit-jarvis-manual {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #ffffff;
}

.kit-jarvis-manual h4 {
  margin: 0;
  color: #7c2d12;
  font-size: 13px;
}

.kit-jarvis-manual-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.6fr) minmax(220px, 1fr) 80px auto;
  gap: 8px;
  align-items: center;
}

.kit-jarvis-manual-row.aesthetic {
  grid-template-columns: minmax(170px, 0.6fr) minmax(220px, 1fr) auto;
}

.kit-jarvis-manual-row strong {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
}

.kit-jarvis-manual-row span {
  color: var(--muted);
  font-size: 11px;
}

.kit-jarvis-manual-row select,
.kit-jarvis-manual-row input {
  width: 100%;
  border: 1px solid #cfe0e5;
  border-radius: 7px;
  padding: 8px 9px;
  background: #ffffff;
}

.kit-jarvis-extra-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kit-jarvis-extra-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 11px;
  font-weight: 800;
}

.kit-jarvis-extra-chip button {
  border: 0;
  background: transparent;
  color: #c2410c;
  cursor: pointer;
  font-weight: 900;
}

.kit-jarvis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.kit-list-toolbar,
.kit-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #b8d1d8;
  border-radius: 8px;
  background: #f6fbfc;
  padding: 9px 10px;
  box-shadow: var(--shadow-soft);
}

.kit-list-toolbar h3 {
  margin: 0;
  color: var(--green-ink);
  font-size: 14px;
}

.kit-list-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.kit-list-page .kit-config-tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.kit-list-table {
  display: grid;
  gap: 2px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 2px;
}

.kit-list-header,
.kit-list-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1.5fr) 110px 90px 120px;
  gap: 10px;
  align-items: center;
}

.kit-list-header {
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.kit-list-row {
  width: 100%;
  border: 1px solid #dce8eb;
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  background: #ffffff;
  padding: 4px 8px;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  min-height: 36px;
}

.kit-list-row:hover {
  border-color: rgba(0, 166, 178, 0.38);
  background: #f7fcfd;
}

.kit-list-row strong,
.kit-list-row small {
  display: block;
}

.kit-list-row strong {
  color: var(--green-ink);
  font-size: 12px;
}

.kit-list-row small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.kit-list-row > span {
  font-size: 12px;
}

.kit-list-select {
  display: flex;
  justify-content: center;
}

.kit-list-select input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 680px) {
  .kit-list-page .product-bulk-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kit-list-page .product-bulk-actions button {
    min-width: 0;
    width: 100%;
  }

  .kit-list-page .product-bulk-actions span {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
  }

  .kit-list-page .kit-list-table {
    display: grid;
    grid-auto-rows: max-content;
    gap: 8px;
    max-height: none;
    overflow: visible;
  }

  .kit-list-page .kit-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas:
      "title select"
      "technical technical"
      "choice choice"
      "total total";
    align-items: start;
    gap: 5px 10px;
    min-height: 0;
    height: auto;
    padding: 11px 12px;
    border-radius: 10px;
  }

  .kit-list-page .kit-list-row > span:nth-child(1) { grid-area: select; justify-content: flex-end; }
  .kit-list-page .kit-list-row > span:nth-child(2) { grid-area: title; min-width: 0; overflow-wrap: anywhere; }
  .kit-list-page .kit-list-row > span:nth-child(3) { grid-area: technical; }
  .kit-list-page .kit-list-row > span:nth-child(4) { grid-area: choice; }
  .kit-list-page .kit-list-row > span:nth-child(5) { grid-area: total; font-weight: 800; }

  .kit-list-page .kit-list-row > span[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-weight: 600;
  }

  .kit-list-page .kit-list-row > span:nth-child(3):not([data-label])::before,
  .kit-list-page .kit-list-row > span:nth-child(4):not([data-label])::before,
  .kit-list-page .kit-list-row > span:nth-child(5):not([data-label])::before {
    color: var(--muted);
    font-weight: 600;
  }

  .kit-list-page .kit-list-row > span:nth-child(3):not([data-label])::before { content: "Fournitures : "; }
  .kit-list-page .kit-list-row > span:nth-child(4):not([data-label])::before { content: "Produits à choisir : "; }
  .kit-list-page .kit-list-row > span:nth-child(5):not([data-label])::before { content: "Total pose HT : "; }

  .kit-list-page .kit-list-select input { width: 22px; height: 22px; }
}

.kit-detail-page .kit-config-main {
  width: 100%;
}

.kit-configurator {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.kit-config-sidebar,
.kit-config-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.kit-config-sidebar {
  position: sticky;
  top: 18px;
}

.kit-config-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #cfeef3;
  background: #edfafe;
}

.kit-config-title h3 {
  margin: 0;
  color: var(--green-ink);
  font-size: 16px;
}

.kit-config-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.kit-config-tools {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #e1eef1;
  background: #f8fbfc;
}

.kit-config-tools input {
  width: 100%;
  border: 1px solid #c9dde2;
  border-radius: 6px;
  background: #ffffff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 11px;
}

.kit-config-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kit-config-filters .small {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 10px;
  white-space: nowrap;
}

.kit-config-filters .active {
  border-color: rgba(0, 166, 178, 0.35);
  background: #e7f8fb;
  color: var(--green-ink);
}

.kit-config-filters span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
}

.kit-config-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  max-height: min(64vh, 720px);
  overflow: auto;
}

.kit-config-item {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #d7e7ea;
  border-left: 4px solid transparent;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
  min-height: 54px;
}

.kit-config-item strong {
  color: var(--green-ink);
  font-size: 12px;
}

.kit-config-item span {
  color: var(--muted);
  font-size: 11px;
}

.kit-config-item.active {
  border-color: rgba(0, 166, 178, 0.32);
  border-left-color: var(--blue);
  background: #effcfd;
}

.kit-config-no-result {
  display: grid;
  gap: 3px;
  border: 1px dashed #c9dde2;
  border-radius: 6px;
  padding: 12px;
  background: #ffffff;
}

.kit-config-no-result strong {
  color: var(--green-ink);
  font-size: 12px;
}

.kit-config-no-result span {
  color: var(--muted);
  font-size: 11px;
}

.kit-config-main {
  overflow: hidden;
}

.kit-config-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #cfeef3;
  background: linear-gradient(90deg, #eaf8fb, #ffffff);
}

.kit-config-hero span {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.kit-config-hero h3 {
  margin: 0 0 4px;
  color: var(--green-ink);
  font-size: 18px;
  line-height: 1.2;
}

.kit-config-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.kit-config-hero-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(95px, 1fr));
  gap: 6px;
  min-width: min(430px, 52%);
}

.kit-config-hero-prices div {
  border: 1px solid #d7e7ea;
  border-radius: 9px;
  background: #ffffff;
  padding: 7px 9px;
  text-align: right;
  box-shadow: 0 4px 12px rgba(12, 74, 82, 0.06);
}

.kit-config-hero-prices div.pose {
  border-color: rgba(20, 184, 166, 0.35);
  background: #ecfeff;
}

.kit-config-hero-prices div.supplies {
  border-color: rgba(59, 130, 246, 0.28);
  background: #eff6ff;
}

.kit-config-hero-prices div.total {
  border-color: rgba(242, 169, 59, 0.5);
  background: #fffaf2;
}

.kit-config-hero-prices span {
  display: block;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.kit-config-hero-prices strong {
  display: block;
  color: var(--green-ink);
  font-size: 13px;
  line-height: 1.2;
}

.kit-config-hero-prices .pose strong {
  color: #047481;
}

.kit-config-hero-prices .supplies strong {
  color: #1d4ed8;
}

.kit-config-hero-prices .total strong {
  color: #c2410c;
  font-size: 14px;
}

.kit-jarvis-summary {
  width: 100%;
  min-width: 0;
  margin: 4px 0 8px;
}

.kit-jarvis-summary div {
  text-align: left;
}

.kit-config-section {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.kit-config-section:first-of-type {
  border-top: 0;
}

.kit-config-section header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kit-config-section h4 {
  margin: 0 0 3px;
  color: var(--green-ink);
  font-size: 15px;
}

.kit-config-section p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.kit-config-section header > strong {
  color: var(--amber);
  font-size: 15px;
}

.kit-config-lines {
  display: grid;
  gap: 4px;
}

.kit-config-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 105px 34px;
  gap: 7px;
  align-items: center;
  border: 1px solid #d7e7ea;
  border-left: 2px solid var(--blue);
  border-radius: 5px;
  padding: 5px 7px;
  background: #fbfdfd;
  min-height: 42px;
}

.kit-config-line strong,
.kit-choice-chip strong {
  color: var(--green-ink);
  font-size: 12px;
}

.kit-config-line span,
.kit-choice-chip span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.kit-config-line label {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
}

.kit-config-line input,
.kit-config-add input,
.kit-config-add select {
  width: 100%;
  border: 1px solid #d4e3e7;
  border-radius: 6px;
  background: #ffffff;
  padding: 6px;
  font-size: 12px;
}

.kit-config-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.kit-config-section.choice .kit-config-add {
  grid-template-columns: minmax(0, 1fr) auto;
}

.kit-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.kit-choice-chip {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 76px;
  border: 1px solid #ffd8a6;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fffaf2;
  padding: 10px 36px 10px 10px;
}

.kit-choice-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid #f5c983;
  border-radius: 7px;
  background: #ffffff;
  object-fit: contain;
  padding: 3px;
}

.kit-choice-chip .danger {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 24px;
  width: 24px;
  padding: 0;
}

.kit-config-summary {
  background: #f8fbfc;
}

.kit-config-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.kit-config-summary .summary-row {
  display: grid;
  gap: 4px;
  border: 1px solid #d7e7ea;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.kit-config-summary .summary-row span {
  color: var(--muted);
  font-size: 11px;
}

.kit-config-summary .summary-row strong {
  color: var(--green-ink);
  font-size: 14px;
}

.kit-config-summary .summary-row.total {
  border-color: rgba(242, 169, 59, 0.45);
  background: #fffaf2;
}

.kit-config-summary .primary {
  white-space: nowrap;
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.job-meta > span,
.job-meta-button,
.status-pill {
  border: 1px solid #accbd1;
  border-radius: 6px;
  padding: 6px 8px;
  background: #dff0f3;
  font-size: 12px;
}

.job-meta-button {
  display: grid;
  gap: 2px;
  min-height: auto;
  color: inherit;
  text-align: left;
}

.job-meta-button:hover,
.job-meta-button:focus {
  border-color: var(--green);
  background: #d4efdf;
}

.job-meta-button span {
  color: var(--muted);
}

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

.job-details {
  display: none;
}

.job-card.open .job-details {
  display: block;
}

.job-grid section,
.job-observations {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.job-grid h4,
.job-observations h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.job-grid ul {
  margin: 0;
  padding-left: 18px;
}

.job-grid li {
  margin-bottom: 6px;
}

.status-pill {
  display: inline-block;
}

.status-pill.active {
  color: var(--green-dark);
  background: var(--soft-green);
}

.status-pill.inactive {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badges span,
.roadmap span {
  background: #edfafe;
  border: 1px solid #cfe4e8;
  color: var(--green-dark);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
}

.badges span.choice {
  background: #fff4e6;
  border-color: #ffd9ac;
  color: #9a5100;
}

.roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

dialog {
  width: min(720px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog.quote-choice-picker-dialog {
  width: min(570px, calc(100vw - 28px));
  max-height: min(680px, calc(100dvh - 32px));
  overflow: auto;
}

.quote-choice-picker-dialog .dialog-heading {
  margin-bottom: 10px;
}

.quote-choice-picker-dialog .dialog-fields {
  gap: 8px;
}

.quote-choice-picker-dialog menu {
  margin-top: 10px;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.dialog-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog-fields .full {
  grid-column: 1 / -1;
}

.provider-profile-block {
  padding: 12px;
  border: 1px solid #b9e2e8;
  border-radius: 8px;
  background: #eefbff;
}

.provider-profile-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.provider-profile-title h3 {
  margin: 0;
  color: var(--green-ink);
  font-size: 14px;
}

.provider-profile-title span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.provider-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
}

.provider-profile-grid article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(7, 63, 73, 0.12);
}

.provider-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.provider-profile-grid strong {
  display: block;
  margin-top: 0;
  color: var(--green-ink);
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.provider-profile-grid-docs article {
  grid-template-columns: 145px minmax(0, 1fr);
}

.provider-notes-preview {
  padding: 8px 0 2px;
  border-top: 1px solid rgba(7, 63, 73, 0.12);
}

.provider-notes-preview p {
  margin: 0;
  color: var(--green-ink);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.provider-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid #cde7e3;
  border-radius: 8px;
  background: #f3fbfa;
}

.provider-summary article {
  border: 1px solid #dbe6e8;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.provider-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.provider-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 16px;
}

.provider-history {
  margin-top: 6px;
  border: 1px solid #cde7e3;
  border-radius: 8px;
  background: #fbfdfd;
  padding: 12px 10px 10px;
  margin-bottom: 22px;
  box-shadow: 0 14px 0 -11px var(--blue);
}

.provider-history h3 {
  margin: 0 0 10px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--green-ink);
  font-size: 15px;
}

.provider-history-split {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.provider-history-box {
  min-height: 120px;
  border: 1px solid #d7e7ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.provider-history-box h4 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.25;
}

.provider-history-list {
  display: grid;
  gap: 6px;
}

.provider-history-list article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
}

.provider-history-list strong {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
}

.provider-history-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.provider-action-assign {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.provider-action-assign:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.provider-action-delete {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.provider-space-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.provider-space-toolbar label {
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}

.provider-space-picker {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.provider-space-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.provider-space-summary article {
  --summary-accent: var(--blue);
  --summary-soft: #f2fbfd;
  border: 1px solid #cfeef3;
  border-top: 3px solid var(--summary-accent);
  border-radius: 8px;
  background: var(--summary-soft);
  padding: 10px;
  text-align: center;
}

.provider-space-summary article:nth-child(1) {
  --summary-accent: #f07c22;
  --summary-soft: #fff4ea;
}

.provider-space-summary article:nth-child(2) {
  --summary-accent: #1f78ff;
  --summary-soft: #eff6ff;
}

.provider-space-summary article:nth-child(3) {
  --summary-accent: #159447;
  --summary-soft: #edf9f1;
}

.provider-space-summary article:nth-child(4) {
  --summary-accent: #7c3aed;
  --summary-soft: #f5f0ff;
}

.provider-space-summary article:nth-child(5) {
  --summary-accent: #0f766e;
  --summary-soft: #eefaf8;
}

.provider-space-summary article:nth-child(6) {
  --summary-accent: #dc2626;
  --summary-soft: #fff1f1;
}

.provider-space-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.provider-space-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--summary-accent);
  font-size: 20px;
}

.provider-portal-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #9ed5dd;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f2fbfd;
}

.provider-portal-intro strong {
  color: var(--green-ink);
  font-size: 16px;
}

.provider-portal-intro span {
  color: var(--muted);
  font-size: 13px;
}

.provider-portal-summary {
  margin-bottom: 12px;
}

.provider-portal-company-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #b8d7de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.provider-portal-company-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid #9ed5dd;
  border-radius: 8px;
  background: #ffffff;
}

.provider-portal-company-card div {
  display: grid;
  gap: 3px;
}

.provider-portal-company-card strong {
  color: var(--green-ink);
  font-size: 16px;
}

.provider-portal-company-card span {
  color: var(--muted);
  font-size: 13px;
}

.provider-portal-company-card a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.provider-portal-login {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #9ed5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.provider-portal-login label {
  display: grid;
  gap: 6px;
  color: var(--green-ink);
  font-weight: 800;
  font-size: 13px;
}

.provider-portal-login input {
  min-height: 42px;
  border: 1px solid #b8d7de;
  border-radius: 7px;
  padding: 0 12px;
}

.provider-portal-login button {
  justify-self: start;
}

.provider-portal-login p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.provider-space-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.provider-space-section {
  --section-accent: var(--blue);
  --section-soft: #f5fbfd;
  border: 1px solid color-mix(in srgb, var(--section-accent) 28%, var(--line));
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.provider-space-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px -12px 10px;
  padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--section-accent) 28%, var(--line));
  border-radius: 8px 8px 0 0;
  background: var(--section-soft);
  color: var(--green-ink);
  font-size: 15px;
}

.provider-space-section h3 strong {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--section-accent);
  color: #ffffff;
  font-size: 12px;
}

.provider-space-list {
  display: grid;
  gap: 10px;
}

.provider-job-page {
  --status-accent: var(--blue);
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--status-accent) 30%, #d7e7ea);
  border-top: 4px solid var(--status-accent);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.provider-job-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.provider-job-page-header h3 {
  margin: 0 0 6px;
  color: var(--green-ink);
  font-size: 18px;
}

.provider-job-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #8bd7df;
  border-radius: 8px;
  background: #eaf8fb;
}

.provider-job-tabs button {
  min-height: 38px;
  border: 1px solid #72cbd5;
  border-radius: 7px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 166, 178, 0.12);
}

.provider-job-tabs button.active {
  border-color: #0891b2;
  background: linear-gradient(180deg, #00b8c7, #008f9b);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 143, 155, 0.24);
}

.provider-job-page-content {
  margin-top: 0;
}

.provider-message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.provider-page-top-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.provider-locked-notice,
.field-lock-note {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid #f6c56f;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff8e8;
  color: #8a4b00;
  font-size: 12px;
  font-weight: 800;
}

.readonly-trace textarea,
.readonly-trace input,
.readonly-trace select {
  background: #f4f7f8;
  color: var(--muted);
  pointer-events: none;
}

.provider-home-button {
  min-height: 30px;
  border: 1px solid #f08a12;
  border-radius: 7px;
  background: #f08a12;
  color: #ffffff;
  font-weight: 800;
  padding: 0 12px;
  box-shadow: 0 8px 16px rgba(240, 138, 18, 0.22);
}

.provider-home-button:hover,
.provider-home-button:focus {
  background: #d97706;
  border-color: #d97706;
}

.provider-space-job {
  --status-accent: var(--blue);
  border: 1px solid color-mix(in srgb, var(--status-accent) 28%, #d7e7ea);
  border-left: 4px solid var(--status-accent);
  border-radius: 8px;
  background: #fbfdfd;
  padding: 10px;
}

.provider-space-job header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.provider-space-job-title {
  min-width: 0;
}

.provider-space-job h3 {
  margin: 5px 0 4px;
  color: var(--green-ink);
  font-size: 14px;
}

.provider-space-job-link {
  display: block;
  border: 0;
  background: transparent;
  color: var(--green-ink);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.provider-space-job-link:hover {
  color: var(--status-accent, var(--blue));
  text-decoration: underline;
}

.provider-space-job p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  justify-self: end;
  white-space: nowrap;
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-accent, var(--blue)) 14%, #ffffff);
  color: var(--status-accent, var(--green-dark));
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
}

.status-proposed {
  --section-accent: #f07c22;
  --section-soft: #fff4ea;
  --status-accent: #f07c22;
}

.status-accepted {
  --section-accent: #1f78ff;
  --section-soft: #eff6ff;
  --status-accent: #1f78ff;
}

.status-active {
  --section-accent: #159447;
  --section-soft: #edf9f1;
  --status-accent: #159447;
}

.status-review {
  --section-accent: #7c3aed;
  --section-soft: #f5f0ff;
  --status-accent: #7c3aed;
}

.status-completed {
  --section-accent: #0f766e;
  --section-soft: #eefaf8;
  --status-accent: #0f766e;
}

.status-dispute {
  --section-accent: #dc2626;
  --section-soft: #fff1f1;
  --status-accent: #dc2626;
}

.provider-space-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.provider-space-detail section {
  border: 1px solid #e1ebee;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.provider-closure-section {
  grid-column: 1 / -1;
}

.provider-photos-section {
  grid-column: 1 / -1;
}

.provider-space-detail h4 {
  margin: 0 0 8px;
  color: var(--green-ink);
  font-size: 13px;
}

.provider-space-detail dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 5px 8px;
  margin: 0;
  font-size: 12px;
}

.provider-space-detail dt {
  color: var(--muted);
  font-weight: 800;
}

.provider-space-detail dd {
  margin: 0;
  color: var(--ink);
}

.provider-space-detail ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}

.provider-space-detail li + li {
  margin-top: 5px;
}

.provider-space-detail li span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.provider-issue-history {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
}

.provider-issue-history h4 {
  color: #b91c1c;
}

.notification-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  background: #fff4e6;
  color: #b75b00;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  white-space: nowrap;
}

.notification-badge.issue {
  background: #fee2e2;
  color: #b91c1c;
}

.notification-badge.message {
  background: #e6f6ff;
  color: #1266d6;
}

.notification-badge.photo,
.notification-badge.document {
  background: #e9f9ef;
  color: #08733f;
}

.notification-badge.journal,
.notification-badge.report {
  background: #f3e8ff;
  color: #6d28d9;
}

.provider-message-section {
  border-color: rgba(18, 102, 214, 0.28) !important;
  background: #f7fbff !important;
}

.job-message-thread {
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
}

.job-message-thread article {
  display: grid;
  gap: 3px;
  border: 1px solid #d7e8ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}

.job-message-thread article.from-sj {
  border-left: 4px solid var(--blue);
}

.job-message-thread article.from-provider {
  border-left: 4px solid var(--amber);
}

.job-message-thread strong {
  color: var(--green-ink);
  font-size: 11px;
}

.job-message-thread span {
  color: var(--ink);
  font-size: 12px;
}

.provider-message-section textarea {
  min-height: 58px;
  margin-top: 4px;
}

.provider-daily-log-section {
  border-color: rgba(240, 138, 18, 0.35) !important;
  background: #fffaf2 !important;
}

.daily-log-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.daily-log-form label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.daily-log-form textarea {
  min-height: 58px;
  margin-top: 4px;
}

.daily-log-check {
  display: flex;
  gap: 7px;
  align-items: center;
}

.daily-log-check input {
  width: auto;
}

.daily-log-list {
  display: grid;
  gap: 8px;
}

.daily-log-card {
  display: grid;
  gap: 7px;
  border: 1px solid #f2d4a4;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.daily-log-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #f6e5ca;
  padding-bottom: 6px;
}

.daily-log-card header strong {
  color: var(--green-ink);
  font-size: 12px;
}

.daily-log-card header span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
}

.daily-log-card p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.daily-log-card small {
  color: var(--muted);
  font-size: 11px;
}

.daily-log-card.readonly {
  background: #fbfdff;
}

.job-daily-log-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: 8px;
  background: #fbf8ff;
  padding: 12px;
}

.job-daily-log-panel h3 {
  margin: 0;
  color: #6d28d9;
  font-size: 14px;
}

.job-field-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 166, 178, 0.22);
  border-radius: 8px;
  background: #f8fdff;
  padding: 12px;
}

.job-field-panel h3 {
  margin: 0;
  color: var(--green-ink);
  font-size: 14px;
}

.job-photos-panel {
  background: #fbfeff;
}

.job-photo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-photos-panel.is-locked .provider-photo-grid {
  opacity: .55;
}

.job-documents-panel {
  background: #f7fbff;
}

.job-issues-panel {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fff8f8;
}

.job-issues-panel h3 {
  color: #b91c1c;
}

.job-complement-panel {
  border-color: rgba(240, 138, 18, 0.32);
  background: #fffaf2;
}

.job-complement-panel h3 {
  color: #b75b00;
}

.job-complement-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.job-complement-panel small {
  color: var(--muted);
  font-size: 11px;
}

.job-complement-panel textarea {
  min-height: 70px;
  border-color: rgba(240, 138, 18, 0.32);
  background: #ffffff;
}

.job-complement-panel button {
  justify-self: start;
}

.job-field-list {
  display: grid;
  gap: 8px;
}

.job-field-list article {
  display: grid;
  gap: 4px;
  border: 1px solid #f3c8c8;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.job-field-list strong {
  color: #b91c1c;
  font-size: 12px;
}

.job-field-list span {
  color: var(--muted);
  font-size: 11px;
}

.job-field-list p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.daily-log-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.provider-closure-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-color: rgba(0, 166, 178, 0.38) !important;
  background: linear-gradient(180deg, #ecfbfd, #ffffff) !important;
}

.provider-closure-section h4 {
  grid-column: 1 / -1;
  margin: -10px -10px 2px;
  padding: 9px 10px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--green-dark));
  color: #ffffff;
}

.provider-closure-section label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.provider-closure-section textarea {
  min-height: 58px;
  margin-top: 4px;
  border-color: rgba(0, 166, 178, 0.32);
  background: #fff8ed;
  color: var(--green-ink);
}

.provider-closure-section input,
.provider-closure-section select {
  border-color: rgba(0, 166, 178, 0.32);
  background: #fff8ed;
  color: var(--green-ink);
}

.provider-closure-section textarea:focus,
.provider-closure-section input:focus,
.provider-closure-section select:focus {
  border-color: var(--amber);
  outline: 2px solid rgba(240, 138, 18, 0.18);
}

.provider-closure-section button {
  justify-self: start;
}

.reception-form-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(240, 138, 18, 0.35);
  border-radius: 8px;
  background: #fff7eb;
}

.reception-form-block.lm-reception-form {
  border-color: rgba(78, 146, 32, 0.45);
  background: #f6fdec;
}

.reception-form-block.standard-reception-form {
  border-color: rgba(14, 165, 180, 0.35);
  background: #f2fbfd;
}

.standard-reception-form h4,
.lm-reception-form h4 {
  text-align: center;
  border: 1px solid rgba(15, 55, 60, 0.28);
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.lm-choice-block,
.lm-reception-note,
.lm-signature-grid,
.standard-reception-note,
.reception-signature-grid {
  grid-column: 1 / -1;
}

.lm-choice-block {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(78, 146, 32, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.lm-choice-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
}

.lm-choice-line input {
  width: auto;
  margin-top: 3px;
}

.lm-choice-block p,
.lm-reception-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lm-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.reception-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.lm-signature-grid label,
.reception-signature-grid label {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 7px;
  height: 100%;
}

.lm-signature-box,
.reception-signature-box {
  min-height: 118px;
  height: 100%;
  resize: vertical;
  border: 1px solid rgba(15, 55, 60, 0.28);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.closure-save-button {
  grid-column: 1 / -1;
  justify-self: end;
}

.provider-closure-section .closure-save-button {
  justify-self: end;
}

.print-pdf-button {
  background: #f97316;
  border-color: #ea580c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.standard-reception-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-saved-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 150, 88, 0.35);
  border-radius: 8px;
  background: #ecfdf3;
  color: #0f6b3f;
}

.reception-form-block h4,
.reception-form-block label:has(textarea),
.reception-form-block .two-column-fields {
  grid-column: 1 / -1;
}

.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.provider-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.provider-photo-step {
  border: 1px solid #d7e8ec;
  border-radius: 8px;
  background: #f8fdff;
  padding: 9px;
}

.provider-file-upload {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  width: 100%;
  border: 1px dashed rgba(0, 166, 178, 0.55);
  border-radius: 8px;
  background: #ecfbfd;
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.provider-file-upload input {
  display: none;
}

.provider-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.provider-file-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #d7e8ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.provider-file-card img,
.provider-file-icon {
  width: 46px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef8ff;
}

.provider-file-icon {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.provider-file-card strong {
  display: block;
  color: var(--green-ink);
  font-size: 11px;
}

.provider-file-card span {
  color: var(--muted);
  font-size: 10px;
}

.provider-file-card .mini {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 12px;
}

.provider-photo-card {
  position: relative;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}

.provider-photo-card img {
  width: 100%;
  height: 92px;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  object-fit: cover;
}

.provider-photo-card div {
  min-width: 0;
}

.provider-photo-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 26px;
}

.provider-photo-card .mini {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-height: 22px;
  padding: 2px 7px;
  line-height: 1;
}

.provider-space-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.provider-space-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.jarvis-panel {
  overflow: visible;
}

.jarvis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #94c9d2;
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  background: #edf8fb;
  margin-bottom: 14px;
}

.jarvis-hero span,
.jarvis-block h3,
.jarvis-result-card span,
.jarvis-message-grid strong {
  color: var(--green-ink);
}

.jarvis-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: var(--ink);
}

.jarvis-hero p {
  margin: 6px 0 0;
  color: var(--muted);
}

.jarvis-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  max-width: 360px;
}

.jarvis-rules span,
.jarvis-quick-actions button {
  border: 1px solid #9ccbd4;
  border-radius: 999px;
  background: #f7fcfd;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.jarvis-team {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #a8cbd3;
  border-radius: 10px;
  background: #fbfeff;
  box-shadow: var(--shadow-soft);
}

.jarvis-team-heading {
  align-items: center;
  margin-bottom: 12px;
}

.jarvis-team-heading h2 {
  margin-bottom: 3px;
}

.jarvis-shared-context {
  padding: 6px 10px;
  border: 1px solid #9ccbd4;
  border-radius: 999px;
  background: #edf8fb;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.jarvis-team-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 84px;
  padding: 12px;
  border: 1px solid #bfd9df;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: default;
}

.jarvis-team-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(20, 142, 164, .14);
  background: #edfaff;
}

.jarvis-team-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #d7e9ed;
  background-color: #dff3f6;
  background-image: url("assets/assistant-team.jpg?v=20260913-team-portraits-v1");
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-position: 0 16%;
  color: transparent;
  font-size: 17px;
  font-weight: 900;
}

.jarvis-team-avatar.naya { background-position: 33.333% 16%; }
.jarvis-team-avatar.kira { background-position: 66.667% 16%; }
.jarvis-team-avatar.nova { background-position: 100% 16%; }

.jarvis-team-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.jarvis-team-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.jarvis-team-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.jarvis-team-state {
  grid-column: 2;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}

.jarvis-handoff-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  background: #edf8fb;
  color: var(--muted);
}

.jarvis-handoff-notice strong {
  color: var(--green-ink);
}

.jarvis-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.jarvis-search input {
  min-height: 42px;
}

.jarvis-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.jarvis-quick-actions button {
  cursor: pointer;
}

.jarvis-quick-actions button.summary {
  border-color: #8fd0dc;
  background: #e8f8fb;
  color: #075985;
}

.jarvis-quick-actions button.quote,
.jarvis-quick-actions button.month {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.jarvis-quick-actions button.action,
.jarvis-quick-actions button.control {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

.jarvis-quick-actions button.sav {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #991b1b;
}

.jarvis-quick-actions button.provider {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.jarvis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.jarvis-block,
.jarvis-answer,
.jarvis-result-card,
.jarvis-message-grid article {
  border: 1px solid #a8cbd3;
  border-radius: 8px;
  background: #fbfeff;
  box-shadow: var(--shadow-soft);
}

.jarvis-block {
  padding: 14px;
}

.jarvis-block.priority {
  border-color: #8fd0dc;
  border-left: 4px solid var(--blue);
  background: #edfaff;
}

.jarvis-block.alerts {
  border-color: #fdba74;
  border-left: 4px solid #f07c22;
  background: #fff7ed;
}

.jarvis-block.info {
  border-color: #86efac;
  border-left: 4px solid #22a65a;
  background: #f0fdf4;
}

.jarvis-block.priority .jarvis-metrics span {
  border-color: #8fd0dc;
  background: #e8f8fb;
}

.jarvis-block.alerts .jarvis-metrics span {
  border-color: #fdba74;
  background: #ffedd5;
}

.jarvis-block.info .jarvis-metrics span {
  border-color: #86efac;
  background: #dcfce7;
}

.jarvis-block.priority .jarvis-metrics strong {
  color: #075985;
}

.jarvis-block.alerts .jarvis-metrics strong {
  color: #c2410c;
}

.jarvis-block.info .jarvis-metrics strong {
  color: #166534;
}

.jarvis-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.jarvis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jarvis-metrics span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #b8d7de;
  background: #eef8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.jarvis-metrics strong {
  color: var(--blue);
  font-size: 20px;
}

.jarvis-answer {
  padding: 14px;
  margin-top: 12px;
}

.jarvis-result-grid,
.jarvis-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jarvis-work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jarvis-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jarvis-follow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.jarvis-follow-summary span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #b8d7de;
  background: #eef8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.jarvis-follow-summary strong {
  color: #f07c22;
  font-size: 20px;
}

.jarvis-follow-list {
  display: grid;
  gap: 8px;
}

.jarvis-sav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jarvis-result-card,
.jarvis-message-grid article,
.jarvis-work-item,
.jarvis-schedule-card,
.jarvis-follow-card,
.jarvis-sav-card {
  padding: 12px;
}

.jarvis-result-card {
  border-left: 3px solid var(--blue);
}

.jarvis-result-card.quote {
  border-left-color: #f07c22;
}

.jarvis-result-card.job {
  border-left-color: #159447;
}

.jarvis-result-card.provider {
  border-left-color: #7c3aed;
}

.jarvis-result-card.client {
  border-left-color: #0f766e;
}

.jarvis-work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 12px;
  align-items: center;
  border-left: 3px solid var(--blue);
}

.jarvis-work-list .jarvis-work-item {
  grid-template-columns: 1fr;
  align-items: start;
}

.jarvis-work-item.quote {
  border-left-color: #f07c22;
}

.jarvis-work-item.job {
  border-left-color: #159447;
}

.jarvis-work-item.provider {
  border-left-color: #7c3aed;
}

.jarvis-work-item.alert {
  border-left-color: #dc2626;
}

.jarvis-work-item.clickable,
.jarvis-sav-card.clickable {
  cursor: pointer;
}

.jarvis-work-item.clickable:hover,
.jarvis-sav-card.clickable:hover {
  border-color: #00a7b3;
  box-shadow: 0 12px 24px rgba(0, 167, 179, 0.12);
}

.jarvis-work-item span {
  color: var(--green-ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.jarvis-work-item strong {
  display: block;
  margin: 3px 0;
}

.jarvis-work-item small,
.jarvis-work-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.jarvis-work-item p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #b8d7de;
  background: #eef8fb;
}

.jarvis-schedule-card {
  border: 1px solid #a8cbd3;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #fbfeff;
  box-shadow: var(--shadow-soft);
}

.jarvis-schedule-card strong {
  display: block;
  color: var(--green-ink);
  margin-bottom: 8px;
}

.jarvis-schedule-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.jarvis-schedule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.jarvis-follow-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 0.35fr) minmax(320px, 0.85fr);
  gap: 10px;
  border: 1px solid #a8cbd3;
  border-left: 4px solid #f07c22;
  border-radius: 8px;
  background: #fbfeff;
  box-shadow: var(--shadow-soft);
}

.jarvis-follow-card.urgent {
  border-left-color: #dc2626;
}

.jarvis-follow-card.priority {
  border-left-color: #f07c22;
}

.jarvis-follow-card.normal {
  border-left-color: #1f78ff;
}

.jarvis-follow-head span {
  color: #f07c22;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.jarvis-follow-card.urgent .jarvis-follow-head span {
  color: #dc2626;
}

.jarvis-follow-head strong,
.jarvis-follow-message strong {
  display: block;
  margin: 5px 0 3px;
}

.follow-status-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.follow-status-chip.todo {
  color: #92400e;
  background: #fef3c7;
}

.follow-status-chip.second {
  color: #075985;
  background: #e0f2fe;
}

.follow-status-chip.third {
  color: #5b21b6;
  background: #ede9fe;
}

.follow-status-chip.last,
.follow-status-chip.waiting {
  color: #991b1b;
  background: #fee2e2;
}

.jarvis-follow-head small,
.jarvis-follow-detail p,
.jarvis-follow-detail em,
.jarvis-follow-message p,
.jarvis-follow-message em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.jarvis-follow-detail p,
.jarvis-follow-message p {
  margin: 0;
}

.jarvis-follow-message p + strong {
  margin-top: 9px;
}

.jarvis-follow-message em {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #d8e7ea;
  font-style: normal;
  font-weight: 800;
  color: var(--green-ink);
}

.jarvis-prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.jarvis-prep-actions button {
  border: 1px solid #b9e3ea;
  border-radius: 6px;
  background: #ffffff;
  color: var(--green-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
}

.jarvis-prep-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.jarvis-follow-detail,
.jarvis-follow-message {
  padding: 9px 10px;
  border: 1px solid #b8d7de;
  border-radius: 6px;
  background: #eef8fb;
}

.jarvis-follow-detail em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-weight: 800;
}

.jarvis-sav-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(220px, 0.45fr) minmax(320px, 0.8fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #a8cbd3;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
  background: #fbfeff;
  box-shadow: var(--shadow-soft);
}

.jarvis-sav-card.compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.55fr);
  align-items: center;
}

.jarvis-sav-card.request {
  border-left-color: #f07c22;
}

.jarvis-sav-head span {
  color: #dc2626;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.jarvis-sav-card.request .jarvis-sav-head span {
  color: #f07c22;
}

.jarvis-sav-head strong,
.jarvis-sav-messages strong {
  display: block;
  margin: 4px 0;
}

.sav-status-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.sav-status-chip.qualify {
  color: #92400e;
  background: #fef3c7;
}

.sav-status-chip.photo {
  color: #075985;
  background: #e0f2fe;
}

.sav-status-chip.provider {
  color: #065f46;
  background: #d1fae5;
}

.sav-status-chip.scheduled {
  color: #5b21b6;
  background: #ede9fe;
}

.sav-status-chip.urgent {
  color: #991b1b;
  background: #fee2e2;
}

.sav-status-chip.resolved {
  color: #0f766e;
  background: #ccfbf1;
}

.jarvis-sav-head small,
.jarvis-sav-head em,
.jarvis-sav-card > p,
.jarvis-sav-messages p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.jarvis-sav-head em {
  display: block;
  margin-top: 8px;
  padding: 8px;
  color: #7f1d1d;
  font-style: normal;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.jarvis-sav-card > p,
.jarvis-sav-messages {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #b8d7de;
  border-radius: 6px;
  background: #eef8fb;
}

.jarvis-sav-card.compact > p {
  min-height: 0;
}

.jarvis-sav-card.compact > button {
  align-self: center;
}

.jarvis-sav-messages p {
  margin: 0 0 8px;
}

.sav-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sav-list,
.sav-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sav-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.sav-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #f4fbfc;
}

.sav-list-head strong {
  color: #dc2626;
  font-size: 22px;
}

.sav-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sav-list-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 1px solid #d8e7ea;
  border-left: 3px solid #dc2626;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.sav-list-row.active,
.sav-list-row:hover {
  border-color: #f07c22;
  background: #fff7ed;
}

.sav-list-row.active {
  box-shadow: inset 4px 0 0 #f07c22, 0 10px 18px rgba(240, 124, 34, 0.14);
}

.sav-list-row.active span,
.sav-list-row:hover span {
  color: #c2410c;
}

.sav-list-row span {
  color: #dc2626;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sav-list-row strong {
  font-size: 13px;
}

.sav-list-row small {
  color: var(--muted);
  font-size: 11px;
}

.sav-list-row .sav-status-chip {
  margin: 2px 0;
}

.sav-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sav-detail header {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sav-detail header span {
  color: #dc2626;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sav-detail header h3 {
  margin: 0;
  font-size: 20px;
}

.sav-detail header p,
.sav-note p,
.sav-messages p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sav-note,
.sav-history {
  padding: 10px;
  border-radius: 8px;
  background: #f8fbfc;
}

.sav-note strong,
.sav-history > strong,
.sav-messages strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-ink);
  font-size: 12px;
}

.sav-detail-actions {
  justify-content: flex-start;
}

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

.sav-messages article {
  padding: 10px;
  border: 1px solid #d8e7ea;
  border-radius: 8px;
  background: #ffffff;
}

.sav-messages button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #9ad9e4;
  background: #effcff;
  color: var(--green-ink);
  font-size: 11px;
  font-weight: 900;
}

.sav-dashboard-card {
  border-color: #fecaca;
  background: #fff7f7;
}

.sav-dashboard-card strong {
  color: #dc2626;
}

.sav-dashboard-card small {
  display: block;
  margin-top: 4px;
  color: #991b1b;
  font-size: 11px;
  font-weight: 800;
}

.jarvis-result-card strong,
.jarvis-message-grid strong {
  display: block;
  margin-bottom: 4px;
}

.jarvis-result-card small,
.jarvis-message-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.jarvis-message-grid p {
  margin: 6px 0 0;
}

.footer-actions {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.field-actions .form-help {
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.combo-field {
  position: relative;
}

.product-picker-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
}

.product-picker-filters label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 11px;
}

.product-picker-filters select {
  width: 100%;
  min-width: 0;
}

@media (max-width: 760px) {
  .product-picker-filters {
    grid-template-columns: 1fr;
  }
}

.combo-menu {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 170px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.combo-menu.open {
  display: grid;
}

.combo-menu button {
  display: grid;
  gap: 1px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: white;
  padding: 6px 8px;
  text-align: left;
}

.combo-menu button:hover,
.combo-menu button:focus,
.combo-menu button.combo-active {
  background: var(--soft-green);
}

.combo-menu button:last-child {
  border-bottom: 0;
}

.combo-menu span,
.combo-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.combo-empty {
  padding: 8px;
}

.combo-menu strong {
  font-size: 11.5px;
  line-height: 1.15;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}

.empty {
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}

@media (max-width: 880px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-followup {
    position: relative;
    top: auto;
    max-height: none;
  }

  .quote-preview {
    max-height: 75vh;
  }

  .quote-preview .quote-page {
    zoom: 0.68;
  }

  .quote-layout.preview-collapsed {
    grid-template-columns: 1fr;
  }

  .quote-layout.preview-collapsed .quote-followup {
    max-height: 48px;
  }
}

@media (max-width: 1320px) {
  .today-section {
    grid-column: 1 / 7 !important;
  }

  .dashboard-action-stack {
    grid-column: 7 / 13 !important;
  }

  .priority-section,
  .google-agenda-section {
    grid-column: auto !important;
  }

  .production-section {
    grid-column: 1 / 7 !important;
  }

  .dashboard-v2-alerts {
    grid-column: 7 / 13 !important;
  }

  .action-focus .today-list {
    min-height: auto;
  }

  .priority-section .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-status-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .production-section .compact-metrics,
  .dashboard-v2-alerts .compact-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .app-shell {
    margin-left: 0;
  }

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

  .action-grid,
  .dashboard-two-columns,
  .compact-metrics,
  .kpi-metrics,
  .today-row {
    grid-template-columns: 1fr;
  }

  .quote-page {
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 1100px) {
  .today-section,
  .dashboard-action-stack,
  .priority-section,
  .google-agenda-section,
  .production-section,
  .dashboard-v2-alerts {
    grid-column: span 12 !important;
    grid-row: auto;
  }

  .action-grid,
  .dashboard-two-columns,
  .compact-metrics,
  .kpi-metrics,
  .today-row {
    grid-template-columns: 1fr;
  }

  .quote-page {
    width: 100%;
    min-height: auto;
  }

  .kpi-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-grid,
  .quote-status-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .priority-section .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .production-section .compact-metrics,
  .dashboard-v2-alerts .compact-metrics {
    grid-template-columns: 1fr;
  }

  .provider-space-toolbar,
  .provider-space-board,
  .provider-space-detail,
  .job-compact-card,
  .job-compact-main {
    grid-template-columns: 1fr;
  }

  .kit-config-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-list-header,
  .kit-list-row {
    grid-template-columns: 64px minmax(180px, 1fr) 90px 70px 100px;
  }

  .kit-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-config-line {
    grid-template-columns: minmax(0, 1fr) 90px;
  }

  .provider-space-summary {
    grid-template-columns: repeat(6, minmax(82px, 1fr));
  }

  .jarvis-hero,
  .jarvis-team-grid,
  .jarvis-grid,
  .jarvis-result-grid,
  .jarvis-message-grid,
  .jarvis-schedule-grid,
  .jarvis-follow-summary,
  .jarvis-follow-card,
  .jarvis-sav-card,
  .sav-layout,
  .sav-messages,
  .jarvis-work-item {
    grid-template-columns: 1fr;
  }

  .jarvis-sav-list {
    grid-template-columns: 1fr;
  }

  .jarvis-work-list {
    grid-template-columns: 1fr;
  }

  .kit-jarvis-request,
  .kit-jarvis-proposal,
  .kit-jarvis-need,
  .kit-jarvis-family-add,
  .kit-jarvis-manual-row,
  .kit-jarvis-manual-row.aesthetic {
    grid-template-columns: 1fr;
  }

  .kit-jarvis-limit {
    grid-column: 1;
  }

  .jarvis-rules {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .kit-configurator {
    grid-template-columns: 1fr;
  }

  .kit-config-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 18px;
  }

  .topbar,
  .panel-heading,
  .pdf-header,
  .pdf-title,
  .pdf-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-actions,
  .kit-config-hero,
  .kit-config-add {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kit-choice-grid {
    grid-template-columns: 1fr;
  }

  .kit-config-line > button[data-remove-kit-technical] {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-self: end;
  }

  .kit-list-toolbar,
  .kit-detail-topbar {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .kit-list-header {
    display: none;
  }

  .kit-config-summary-grid {
    grid-template-columns: 1fr;
  }

  .kit-config-hero-prices {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .kit-config-hero-prices div {
    text-align: left;
  }

  .pdf-footer {
    grid-template-areas:
      "conditions"
      "signature"
      "recap";
  }

  .form-grid,
  .dialog-fields,
  .job-meta,
  .job-grid,
  .provider-space-summary {
    grid-template-columns: 1fr;
  }

  .product-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-status-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quotes-organizer {
    padding: 12px 10px;
  }

  .quote-status-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .quote-status-tabs .jobs-cycle-tab,
  .quote-status-tabs .jobs-cycle-tab.active {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border-bottom-color: color-mix(in srgb, var(--section-accent) 48%, var(--line));
    border-radius: 10px;
  }

  .quote-status-tabs .quote-status-all {
    grid-column: 1 / -1;
  }

  #requestsView .panel-heading {
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
  }

  #requestsView .panel-heading .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  #requestsView .panel-heading .actions button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .requests-organizer {
    padding: 10px 8px;
  }

  .request-stage-tabs {
    gap: 5px;
    margin-bottom: 8px;
  }

  .request-stage-tabs .jobs-cycle-tab,
  .request-stage-tabs .jobs-cycle-tab.active {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 38px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 10px;
  }

  .request-stage-tabs .jobs-cycle-tab strong {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .lm-signature-grid,
  .reception-signature-grid {
    grid-template-columns: 1fr;
  }
}

.survey-files-summary {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #b7dfe5;
  background: #f4fbfc;
}

.technical-survey-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #b7dfe5;
  border-radius: 8px;
  background: #f8fcfd;
}

.technical-survey-section > h3 {
  margin: 0 0 12px;
  color: #075765;
  font-size: 16px;
}

.technical-survey-section-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.technical-survey-section-fields .full,
.technical-survey-section-fields .survey-files-summary {
  grid-column: 1 / -1;
}

.technical-survey-completion {
  padding: 12px;
  border: 1px solid #b7dfe5;
  border-radius: 8px;
  background: #f4fbfc;
}

.form-template-list,
.form-builder-tree {
  display: grid;
  gap: 10px;
}

.form-template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-template-card > div,
.form-builder-element-main > div:first-child {
  display: grid;
  gap: 4px;
}

.form-template-card span,
.form-builder-element-main span {
  color: var(--muted);
  font-size: 12px;
}

.readapt-template-card {
  border-color: #78cbd3;
  background: linear-gradient(135deg, #f2fcfd, #ffffff);
}

.readapt-open-link,
.readapt-import-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  text-decoration: none;
  cursor: pointer;
}

.readapt-survey-bridge {
  display: grid;
  gap: 10px;
  border-color: #28aeb9;
  background: linear-gradient(135deg, #eaf9fa, #f8fcfd);
}

.readapt-survey-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.readapt-survey-heading h3 { margin: 2px 0 0; }
.readapt-kicker { color: #008c99; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.readapt-import-status { display: grid; gap: 3px; padding: 10px 12px; border-radius: 7px; background: #fff; }
.readapt-import-status span { color: var(--muted); font-size: 12px; }

.form-builder-element {
  display: grid;
  gap: 10px;
  margin-left: calc(var(--form-depth) * 22px);
}

.form-builder-element-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #b7dfe5;
  border-left: 4px solid #148498;
  border-radius: 8px;
  background: #f8fcfd;
}

.form-builder-element-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.form-builder-panel > .panel-heading .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.form-template-fixed-blocks,
.form-template-fixed-fields {
  display: grid;
  gap: 10px;
}

.form-template-fixed-block > .panel-heading {
  margin-bottom: 10px;
}

.form-template-fixed-block > .panel-heading h3 {
  margin: 0;
}

.form-template-fixed-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-template-fixed-field > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
}

.form-template-fixed-field strong {
  font-size: 13px;
  font-weight: 400;
}

.form-template-fixed-field span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: pre-wrap;
}

.form-template-sub-block-action {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 11px;
}

.form-template-sub-blocks {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.form-template-sub-blocks b { font-weight: 500; }

.form-template-product-results {
  display: grid;
  gap: 5px;
  max-height: 280px;
  overflow: auto;
}

.dialog-fields .form-template-product-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  font-weight: 400;
}

.dialog-fields .form-template-product-choice input { margin: 0; }
.dialog-fields .form-template-product-choice span { min-width: 0; }

.form-template-sub-block-detail {
  display: grid;
  gap: 8px;
  margin: -2px 8px 6px 20px;
  padding: 10px;
  border-left: 3px solid var(--line);
  background: var(--panel-soft);
}

.form-template-sub-block-detail > .panel-heading { margin: 0; }
.form-template-sub-block-detail h4 { margin: 0; }

.form-template-sub-block-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.form-template-sub-block-2-content { display: grid; gap: 5px; min-width: 0; }
.form-template-sub-block-2 strong { font-size: 13px; font-weight: 400; }
.form-template-sub-block-2 span { color: var(--muted); font-size: 12px; }

.form-template-linked-products {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.form-template-linked-products label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  font-weight: 400;
}

.form-template-linked-products label > span {
  min-width: 0;
}

.simple-request-builder { display: grid; gap: 10px; }
.simple-request-builder > .panel-heading { margin: 0; }
.simple-request-tree { display: grid; gap: 6px; }
.simple-request-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: calc(var(--simple-depth) * 18px);
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 7px;
  background: #fff;
}
.simple-request-node > div:first-child { display: grid; gap: 2px; }
.simple-request-node > div:first-child span { color: var(--muted); font-size: 11px; }
.simple-request-node > div:first-child strong { font-size: 13px; font-weight: 400; }
.simple-request-interventions { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.simple-request-interventions > .panel-heading { margin: 0; }
.intervention-template-card { gap: 10px; }
.models-combined-view { display: grid; gap: 18px; }

/* The Models screen is used as a dense administration list. Keep its
   typography compact so a useful number of models remains visible at once. */
body[data-current-view="models"] .topbar {
  min-height: 66px;
  margin-bottom: 16px;
  padding: 12px 16px;
}
body[data-current-view="stats"] .topbar {
  min-height: 66px;
  margin-bottom: 16px;
  padding: 12px 16px;
}
body[data-current-view="stats"] .topbar .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}
body[data-current-view="stats"] #viewTitle {
  font-size: 23px;
  line-height: 1.1;
}
body[data-current-view="stats"] #statsView .panel-heading h2 {
  font-size: 14px;
}
body[data-current-view="stats"] #statsView .panel-heading p,
body[data-current-view="stats"] #statsView .kpi-admin-card small {
  font-size: 10px;
}
body[data-current-view="stats"] #statsView .kpi-admin-card strong {
  font-size: 13px;
}
body[data-current-view="models"] .topbar .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}
body[data-current-view="models"] #viewTitle {
  font-size: 23px;
  line-height: 1.1;
}
#modelsView .models-combined-view {
  gap: 14px;
}
#modelsView .panel {
  padding: 14px;
}
#modelsView .panel-heading {
  margin: -14px -14px 12px;
  padding: 9px 14px;
}
#modelsView .panel-heading h2 {
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.2;
}
#modelsView .panel-heading p {
  font-size: 10px;
  line-height: 1.25;
}
#modelsView .panel-heading .primary {
  min-height: 28px;
  padding: 0 11px;
  font-size: 10px;
}
#modelsView .form-template-list {
  gap: 7px;
}
#modelsView .form-template-card {
  gap: 9px;
  padding: 9px 11px;
}
#modelsView .form-template-card strong,
#modelsView .intervention-template-open strong {
  font-size: 13px;
  line-height: 1.2;
}
#modelsView .form-template-card span {
  font-size: 10px;
  line-height: 1.2;
}
.form-template-card-clickable { cursor: pointer; }
.form-template-card-clickable > .form-template-field-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.intervention-template-card > .form-template-field-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.intervention-template-open {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.intervention-template-open strong { font-weight: 500; }
.simple-intervention-picker, .simple-intervention-picker [data-intervention-levels] { display: grid; gap: 8px; }
.simple-intervention-list { display: grid; gap: 6px; }
.simple-intervention-list article { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; }
.survey-model-sub-block { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.survey-model-sub-block > strong { font-weight: 500; }
.survey-model-products { display: grid; gap: 6px; }
.survey-block-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.survey-block-toggle span { width: 18px; text-align: center; }
.technical-survey-section.is-collapsed .technical-survey-section-fields { display: none; }
@media (max-width: 680px) {
  .simple-request-node { align-items: stretch; flex-direction: column; margin-left: calc(var(--simple-depth) * 8px); }
  .simple-request-node > .form-template-field-actions { justify-content: flex-end; }
}

@media (max-width: 680px) {
  .form-template-sub-block-2 { grid-template-columns: 1fr; }
  .form-template-sub-block-2 > .form-template-field-actions { justify-content: flex-end; }
}

.form-template-block-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
}

.form-template-block-toggle span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 14px;
}

.form-template-field-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-template-mini-action {
  display: inline-grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid #aac6cc;
  border-radius: 50%;
  background: #fff;
  color: #45636a;
  font-size: 13px;
  line-height: 1;
}

.form-template-mini-action.edit {
  border-color: #e28a27;
  background: #f09a35;
  color: #fff;
  font-size: 14px;
}

.form-template-mini-action.delete {
  border-color: #e6a3a3;
  color: #b62828;
  font-size: 17px;
}

.form-template-mini-action:disabled {
  cursor: default;
  opacity: 0.3;
}

.mail-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.quote-jarvis-assistant {
  padding: 14px;
  border: 1px solid #f1b36d;
  border-left: 5px solid #e87513;
  background: #fff7ef;
}

.quote-jarvis-head,
.quote-jarvis-search,
.quote-jarvis-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-jarvis-head {
  justify-content: space-between;
}

.quote-jarvis-head span {
  color: #c55f08;
  font-size: 11px;
  font-weight: 800;
}

.quote-jarvis-head h3 {
  margin: 2px 0 0;
  color: #833b07;
  font-size: 16px;
}

.quote-jarvis-head small {
  color: #815426;
}

.quote-jarvis-search {
  margin-top: 12px;
}

.quote-jarvis-modes {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.quote-jarvis-modes button {
  padding: 3px 6px;
  border: 1px solid #dfa25d;
  background: #fff;
  color: #7b460f;
  font-size: 11px;
  font-weight: 700;
}

.quote-jarvis-modes button.active {
  border-color: #d86408;
  background: #e87513;
  color: #fff;
}

.quote-jarvis-search input {
  flex: 1;
  min-width: 0;
}

.quote-jarvis-proposal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0c28d;
}

.quote-jarvis-proposal p {
  margin: 0 0 9px;
  color: #5d4b38;
}

.quote-jarvis-choice-list {
  display: grid;
  gap: 7px;
}

.quote-jarvis-group + .quote-jarvis-group {
  margin-top: 13px;
}

.quote-jarvis-group h4 {
  margin: 0 0 7px;
  color: #8a480f;
  font-size: 13px;
}

.quote-jarvis-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px;
  border: 1px solid #edcfab;
  background: #fff;
}

.quote-jarvis-choice span {
  display: grid;
  gap: 3px;
}

.quote-jarvis-choice small {
  color: #61717a;
}

.quote-jarvis-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #edcfab;
  background: #fff;
  color: #243943;
  text-align: left;
}

.quote-jarvis-result.selected {
  border-color: #e87513;
  box-shadow: inset 0 0 0 1px #e87513;
}

.quote-jarvis-result b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #e87513;
  color: #fff;
}

.quote-jarvis-result span {
  display: grid;
  gap: 3px;
}

.quote-jarvis-result small {
  color: #61717a;
}

.quote-jarvis-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #edcfab;
  background: #fff;
}

.quote-jarvis-confirm label {
  display: grid;
  gap: 4px;
  min-width: 90px;
}

.quote-jarvis-confirm input {
  width: 90px;
}

.quote-jarvis-confirm-details {
  display: grid;
  flex: 1;
  min-width: 220px;
  gap: 4px;
}

.quote-jarvis-confirm-details strong {
  color: #073b46;
}

.quote-jarvis-confirm-details small {
  color: #536873;
}

.quote-jarvis-destination {
  min-width: 170px;
}

.quote-jarvis-destination select {
  min-width: 170px;
}

.quote-jarvis-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.quote-jarvis-total-grid span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d7edf0;
  background: #f5fcfd;
}

.quote-jarvis-total-grid small {
  font-size: 11px;
  color: #526870;
}

.quote-jarvis-total-grid b {
  color: #006b75;
  font-size: 13px;
}

.quote-jarvis-voice-help {
  display: block;
  margin-top: 10px;
  color: #77501f;
}

.quote-jarvis-feedback {
  margin: 9px 0 0;
  padding: 8px;
  border-left: 3px solid #00a7b5;
  background: #effbfc;
  color: #075b66;
  font-weight: 700;
}

.quote-jarvis-product-choice input[type="number"] {
  width: 70px;
  margin-left: auto;
}

.quote-jarvis-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.mail-connection-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d2dce1;
  border-left: 4px solid #73828a;
  background: #fff;
}

.mail-connection-card.connected {
  border-left-color: #12985a;
  background: #f1fbf5;
}

.mail-connection-card.pending {
  border-left-color: #e78219;
  background: #fff8ef;
}

.mail-connection-card span {
  color: #637683;
  font-size: 12px;
  font-weight: 700;
}

.mail-connection-card strong {
  color: #073e48;
}

.mail-connection-card small {
  color: #566b78;
}

.mail-inbox-list {
  display: grid;
  gap: 10px;
}

.mail-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mail-category-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #b9d5db;
  border-radius: 999px;
  background: #fff;
  color: #24515a;
  font-weight: 700;
  cursor: pointer;
}

.mail-category-filter b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eaf4f6;
  color: #075765;
  text-align: center;
  font-size: 11px;
}

.mail-category-filter.active {
  border-color: #008c99;
  background: #008c99;
  color: #fff;
}

.mail-category-filter.active b {
  background: #fff;
  color: #007783;
}

.mail-inbox-item,
.mail-inbox-empty {
  border: 1px solid #c6dbe1;
  border-left: 4px solid #10a8b8;
  background: #fff;
  padding: 14px;
}

.mail-inbox-item h3 {
  margin: 6px 0;
  color: #073e48;
  font-size: 16px;
}

.mail-inbox-item p {
  margin: 6px 0;
}

.mail-inbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #637683;
  font-size: 12px;
}

.mail-inbox-excerpt {
  color: #425b68;
  white-space: pre-line;
}

.mail-inbox-empty {
  display: grid;
  gap: 5px;
  border-left-color: #e78219;
  color: #566b78;
}

.survey-files-summary h3 {
  margin: 0 0 10px;
  color: #075765;
  font-size: 15px;
}

.survey-files-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.survey-files-columns > div {
  min-width: 0;
}

.survey-files-columns .provider-file-list {
  margin-top: 8px;
}

@media (max-width: 680px) {
  .form-template-card,
  .form-builder-element-main,
  .form-template-fixed-field {
    align-items: stretch;
    flex-direction: column;
  }

  .form-builder-element {
    margin-left: calc(var(--form-depth) * 10px);
  }

  .form-builder-element-actions,
  .form-builder-panel > .panel-heading .actions {
    justify-content: flex-start;
  }

  .technical-survey-section-fields {
    grid-template-columns: 1fr;
  }

  .survey-files-columns {
    grid-template-columns: 1fr;
  }

  .mail-connection-grid {
    grid-template-columns: 1fr;
  }

  .quote-jarvis-head,
  .quote-jarvis-search,
  .quote-jarvis-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-jarvis-actions {
    align-items: flex-end;
  }

  .quote-jarvis-modes {
    flex-direction: column;
  }

  .quote-jarvis-confirm {
    align-items: stretch;
    flex-direction: column;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    background: white;
    width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sidebar,
  .topbar,
  .quote-form,
  .view:not(#quoteView),
  .no-print,
  dialog,
  #jarvisVoiceLauncher,
  #jarvisVoiceLayer,
  .jarvis-voice-launcher,
  .jarvis-voice-layer {
    display: none !important;
  }

  .app-shell {
    margin: 0;
    padding: 0;
  }

  .quote-layout {
    display: block;
  }

  .quote-followup {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .quote-followup-header {
    display: none;
  }

  .quote-preview {
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: white;
  }

  .quote-screen-supplies {
    display: none !important;
  }

  .quote-print-supplies {
    display: table !important;
  }

  .quote-page {
    zoom: 1 !important;
    width: 210mm;
    min-height: 0;
    margin: 0;
    padding: 7mm 9mm;
    box-shadow: none;
    border-top-width: 4px;
    page-break-after: auto;
  }

  .pdf-header {
    gap: 10px;
    padding-bottom: 5px;
    margin-bottom: 7px;
  }

  .pdf-logo {
    width: 52px;
    height: 58px;
    margin-bottom: 3px;
  }

  .company-details,
  .client-box {
    font-size: 9px;
    line-height: 1.25;
  }

  .company-details strong {
    font-size: 11px;
  }

  .client-box {
    width: 205px;
  }

  .client-box strong {
    margin-bottom: 3px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .client-box div {
    padding: 0 6px 4px;
  }

  .pdf-title {
    margin-bottom: 5px;
  }

  .pdf-title h2 {
    font-size: 22px;
  }

  .pdf-title span {
    padding: 3px 8px;
  }

  .pdf-meta {
    gap: 3px;
  }

  .pdf-meta small {
    font-size: 9px;
  }

  .pdf-block {
    margin-top: 7px;
  }

  .pdf-block h3 {
    padding: 4px 6px;
    font-size: 9px;
  }

  .pdf-table th,
  .pdf-table td {
    padding: 3px 4px;
    font-size: 8px;
    line-height: 1.15;
  }

  .quote-price-with-action {
    padding-right: 4px !important;
  }

  .quote-columns-with-action col:nth-child(1) { width: 8% !important; }
  .quote-columns-with-action col:nth-child(2) { width: 57% !important; }
  .quote-columns-with-action col:nth-child(3) { width: 13% !important; }
  .quote-columns-with-action col:nth-child(4) { width: 22% !important; }
  .quote-columns-with-action .quote-action-column {
    width: 0 !important;
    visibility: collapse;
  }

  .pdf-table th {
    font-size: 7.5px;
  }

  .service-details {
    margin-top: 2px;
    font-size: 7.5px;
    line-height: 1.2;
  }

  .product-choice-compact-row {
    padding: 4px 6px;
  }

  .product-choice-compact-row strong,
  .product-choice-compact-row span {
    font-size: 8px;
  }

  .quote-end-blocks {
    margin-top: 7px;
    padding-top: 0;
  }

  .fiscal-block {
    padding: 0;
  }

  .fiscal-block p {
    margin: 2px 5px;
    font-size: 8px;
    line-height: 1.2;
  }

  .pdf-footer {
    gap: 6px;
    margin-top: 7px;
  }

  .footer-box {
    min-height: 62px;
    padding: 5px;
    font-size: 8px;
  }

  .recap-box {
    min-height: 92px;
  }

  .footer-box h4 {
    margin-bottom: 4px;
    font-size: 8.5px;
  }

  .summary-row {
    gap: 6px;
    padding: 2px 0;
  }

  .summary-row.total {
    font-size: 9px;
  }

  .rib-footer {
    margin-top: 5px;
    padding-top: 4px;
    font-size: 7.5px;
    line-height: 1.2;
  }

  .quote-end-blocks::after {
    margin-top: 6px;
    padding: 4px;
    font-size: 8px;
  }

  .pdf-table thead {
    display: table-header-group;
  }
}

/* KPI modulaires JarvisMe */
.kpi-block-hidden {
  display: none !important;
}

.kpi-admin-panel .panel-heading {
  align-items: flex-start;
}

.kpi-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.kpi-admin-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(10, 166, 180, .22);
  border-radius: 12px;
  background: #f8fdff;
  cursor: pointer;
}

.kpi-admin-card.active {
  border-color: rgba(10, 166, 180, .75);
  background: linear-gradient(135deg, #e9fbfd, #ffffff);
  box-shadow: 0 8px 20px rgba(10, 166, 180, .08);
}

.kpi-admin-card input {
  margin-top: 3px;
  accent-color: #0aa6b4;
}

.kpi-admin-card strong {
  display: block;
  color: #053f46;
  font-size: .95rem;
}

.kpi-admin-card small {
  display: block;
  margin-top: 4px;
  color: #607d86;
  line-height: 1.35;
}

.provider-portal-kpi-panel {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(10, 166, 180, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, #effcff, #ffffff);
}

.provider-portal-kpi-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.provider-portal-kpi-heading strong {
  color: #053f46;
  font-size: 1rem;
}

.provider-portal-kpi-heading span {
  color: #6b7d84;
  font-size: .82rem;
}

.provider-portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.provider-portal-kpi-card {
  min-height: 76px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(5, 63, 70, .08);
  box-shadow: 0 8px 18px rgba(5, 63, 70, .06);
}

.provider-portal-kpi-card span {
  display: block;
  color: #5f7680;
  font-size: .78rem;
  margin-bottom: 6px;
}

.provider-portal-kpi-card strong {
  display: block;
  color: #053f46;
  font-size: 1.22rem;
  line-height: 1.15;
}

.provider-portal-kpi-card.accent { border-left: 4px solid #0bb5c0; }
.provider-portal-kpi-card.active { border-left: 4px solid #25a55f; }
.provider-portal-kpi-card.review { border-left: 4px solid #ff9800; }
.provider-portal-kpi-card.done { border-left: 4px solid #6c7ae0; }
.provider-portal-kpi-card.provider { border-left: 4px solid #008ea0; }
.provider-portal-kpi-card.calendar { border-left: 4px solid #8a63d2; }
.provider-portal-kpi-card.warning { border-left: 4px solid #e55353; }
.provider-portal-kpi-card.money { border-left: 4px solid #f2a000; }

/* Assistant d'import des catalogues grossistes. */
.product-group-actions {
  display: grid;
  grid-template-columns: auto minmax(130px, .55fr) minmax(240px, 1.4fr) auto auto minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #b8dfe3;
  border-radius: 12px;
  background: #eef9fa;
}

.product-group-actions > strong { align-self: center; color: #075b66; }
.product-group-actions label { display: grid; gap: 4px; color: #526d73; font-size: 12px; font-weight: 800; }
.product-group-actions select { min-width: 0; }
.product-group-actions > span { align-self: center; color: #526d73; font-size: 13px; font-weight: 800; }

@media (max-width: 900px) {
  .product-group-actions { display: none; }
}

.product-catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.product-catalog-tools input {
  min-width: min(360px, 100%);
  flex: 1 1 320px;
}

.product-catalog-tools label {
  width: auto;
  flex: 0 0 auto;
  color: #526d73;
  font-size: 12px;
  font-weight: 800;
}

.product-catalog-tools select {
  width: 82px;
  min-width: 82px;
  flex: 0 0 82px;
}

.product-catalog-tools span {
  color: #526d73;
  font-weight: 800;
}

.product-catalog-tools strong {
  min-width: 90px;
  color: #075b66;
  text-align: center;
}

.product-photo-cell {
  width: 64px;
  text-align: center;
}

.product-photo-cell a {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d5e4e7;
  border-radius: 9px;
  background: #fff;
}

.product-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-catalog-table th,
.products-catalog-table td {
  border-right: 1px solid rgba(7, 91, 102, .12);
}

.products-catalog-table th:last-child,
.products-catalog-table td:last-child {
  border-right: 0;
}

.products-catalog-table th:last-child,
.products-catalog-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 142px;
  min-width: 142px;
  background: #ffffff;
  box-shadow: -7px 0 12px rgba(5, 63, 70, .1);
}

.products-catalog-table thead th:last-child {
  z-index: 3;
  background: #f2f8f9;
  text-align: center;
}

.products-catalog-table td.row-actions:last-child {
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.import-mapping-panel {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

dialog:has(.import-mapping-panel) {
  width: min(760px, calc(100vw - 28px));
}

.import-mapping-panel h3 {
  margin: 18px 0 8px;
}

.import-simple-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #d6e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.import-simple-step > b {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #075b66;
  color: #ffffff;
}

.import-simple-step div,
.import-simple-step span {
  display: block;
}

.import-simple-step span {
  margin-top: 2px;
  color: #526d73;
}

.import-detection-status {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.import-detection-status.is-ready {
  border: 1px solid #8bd6ad;
  background: #ecfff4;
  color: #17623a;
}

.import-detection-status.needs-help {
  border: 1px solid #f2bd65;
  background: #fff8e8;
  color: #81500a;
}

.import-advanced-settings {
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #b8dbe2;
  border-radius: 12px;
  background: #f7fdff;
}

.import-advanced-settings summary {
  color: #075b66;
  font-weight: 900;
  cursor: pointer;
}

.import-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.import-mapping-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #cfe8ed;
  border-radius: 10px;
  background: #f7fdff;
}

.import-mapping-grid span {
  color: var(--green-ink);
  font-weight: 800;
}

.import-mapping-grid select,
.import-mapping-panel > label select {
  min-height: 40px;
}

.import-mapping-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.import-mapping-summary span {
  padding: 7px 10px;
  border: 1px solid #9bd9e2;
  border-radius: 999px;
  background: #eefcff;
  color: #075b66;
  font-weight: 800;
}

.import-preview-table {
  max-height: 260px;
}

/* Version complète de l'import grossiste : correspondance, catégories et anomalies. */
dialog:has(.import-mapping-panel) {
  width: min(920px, calc(100vw - 28px));
  max-height: 92vh;
}

.import-mapping-table {
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid #cfe1e5;
  border-radius: 14px;
  background: #fff;
}

.import-mapping-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 42px minmax(240px, 1.25fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e4eef0;
}

.import-mapping-row:first-child { border-top: 0; }

.import-mapping-head {
  background: #075b66;
  color: #fff;
  font-weight: 900;
}

.import-source-column {
  overflow-wrap: anywhere;
  color: #163f46;
  font-weight: 800;
}

.import-mapping-arrow {
  color: #0ca6b5;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.import-mapping-head .import-mapping-arrow,
.import-mapping-head > div:nth-child(2) { color: #b7f150; }

.import-target-column {
  margin: 0;
}

.import-target-column > span {
  display: block;
  margin-bottom: 4px;
  color: #6b7d84;
  font-size: .76rem;
  font-weight: 700;
}

.import-target-column select { width: 100%; }

.import-preview-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 9px;
}

.import-preview-title strong {
  color: #053f46;
  font-size: 1rem;
}

.import-preview-title span {
  color: #637b82;
  font-size: .82rem;
  text-align: right;
}

.import-category-panel {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #cfe1e5;
  border-radius: 14px;
  background: #f8fcfd;
}

.import-category-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.import-category-tools input {
  min-width: 220px;
  flex: 1 1 280px;
}

.import-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}

.import-category-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #d9e6e9;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.import-category-item.selected {
  border-color: #0ca6b5;
  background: #ecfbfd;
}

.import-category-item strong {
  color: #075b66;
  font-size: .78rem;
}

.import-issues-summary {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #edc16b;
  border-radius: 12px;
  background: #fff9e9;
}

.import-issue-badge {
  display: inline-flex;
  align-items: center;
  margin: 2px 5px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.import-issue-badge.blocking { background: #ffe5e5; color: #9c2424; }
.import-issue-badge.warning { background: #fff0c9; color: #86570b; }
.import-issue-badge.ready { background: #def7e8; color: #17623a; }

.import-issues-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.import-issue-card {
  padding: 12px;
  border: 1px solid #dce7e9;
  border-left: 4px solid #e2a535;
  border-radius: 12px;
  background: #fff;
}

.import-issue-card.blocking { border-left-color: #d84949; }
.import-issue-card.ready { border-left-color: #38a768; }

.import-issue-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.import-issue-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.import-issue-edit-grid label {
  margin: 0;
  font-size: .76rem;
}

.import-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .import-mapping-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .import-mapping-head { display: none; }
  .import-mapping-arrow { transform: rotate(90deg); }
  .import-preview-title { align-items: flex-start; flex-direction: column; }
  .import-preview-title span { text-align: left; }
}

.lm-scraper-panel {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(0, 137, 144, .28);
  border-radius: 14px;
  background: #f2fbfa;
}
.lm-scraper-heading,
.lm-scraper-controls { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.lm-scraper-heading { justify-content:space-between; align-items:center; margin-bottom:12px; }
.lm-scraper-heading small { display:block; margin-top:3px; color:#58706f; }
.lm-scraper-controls label { display:grid; gap:4px; font-size:12px; font-weight:700; color:#335b59; }
.lm-scraper-controls select { min-width:180px; padding:9px 10px; border:1px solid #b9d7d4; border-radius:8px; background:#fff; }
.lm-scraper-status { margin:12px 0 0; color:#355d5a; }
.lm-scraper-status.error { color:#a33131; }
.lm-scraper-output { max-height:230px; overflow:auto; margin:10px 0 0; padding:10px; border-radius:9px; background:#102d30; color:#d9f6f1; font-size:11px; white-space:pre-wrap; }
@media (max-width: 700px) {
  .lm-scraper-controls { display:grid; grid-template-columns:1fr; }
  .lm-scraper-controls select, .lm-scraper-controls button { width:100%; }
}

.agent-pilotage {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #cde4e2;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f1faf9 100%);
  box-shadow: 0 10px 30px rgba(6, 44, 54, .06);
}

.pilotage-heading { align-items: center; }
.pilotage-heading h2 { margin: 0; }
.pilotage-heading p { margin: 4px 0 0; }
.pilotage-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

.pilotage-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  padding-bottom: 3px;
  overflow-x: auto;
}

.pilotage-tabs button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #bddbd8;
  border-radius: 999px;
  background: #fff;
  color: #285a5e;
  font-weight: 800;
}

.pilotage-tabs button.active {
  border-color: #008e96;
  background: #008e96;
  color: #fff;
}

.pilotage-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
  color: #375f61;
}
.pilotage-summary strong { color: #062c36; font-size: 1.05rem; }

.pilotage-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pilotage-metric {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d9e9e7;
  border-left: 4px solid #008e96;
  border-radius: 12px;
  background: #fff;
}
.pilotage-metric strong { color: #062c36; font-size: 1.45rem; }
.pilotage-metric span { color: #547071; font-size: .78rem; font-weight: 700; }
.pilotage-metric.green { border-left-color: #38a768; }
.pilotage-metric.amber { border-left-color: #e2a535; }
.pilotage-metric.red { border-left-color: #d84949; }
.pilotage-metric.blue { border-left-color: #347eb8; }

.pilotage-agent-summary,
.pilotage-memory {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eaf7f6;
  color: #315b5d;
}
.pilotage-agent-summary p,
.pilotage-memory p { margin: 4px 0 0; }

.pilotage-learning { margin:10px 0; padding:14px; border:1px solid #d9e9e7; border-radius:12px; background:#fff; }
.pilotage-learning-head p { margin:3px 0 10px; color:#647d7f; font-size:.8rem; }
.pilotage-learning article { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:10px 0; border-top:1px solid #e6efee; }
.pilotage-learning article p { margin:3px 0; color:#49686b; }
.pilotage-learning article small { color:#7a8f91; }
.pilotage-learning article button { flex:0 0 auto; }

.jarvis-feedback { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid #dbe8e6; }
.jarvis-feedback > span { color:#536f72; font-weight:700; }
.jarvis-feedback > strong { color:#08747a; font-size:.82rem; }

.pilotage-mission-list { display: grid; gap: 9px; margin-top: 12px; }
.pilotage-mission {
  padding: 12px 14px;
  border: 1px solid #dce9e8;
  border-radius: 12px;
  background: #fff;
}
.pilotage-mission.selected-task {
  border-color: #008e96;
  box-shadow: 0 0 0 3px rgba(0, 142, 150, .14);
}
.pilotage-mission > strong { display: block; margin: 7px 0 3px; color: #163f44; }
.pilotage-mission p { margin: 4px 0; color: #526d70; }
.pilotage-mission small { color: #7a8f91; }
.pilotage-mission-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pilotage-agent-chip,
.pilotage-status { padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.pilotage-agent-chip { background: #e6f5f4; color: #086d73; }
.pilotage-agent-chip.nova { background: #fff0ee; color: #a6403a; }
.pilotage-agent-chip.naya { background: #fff5dc; color: #88610d; }
.pilotage-agent-chip.kira { background: #e9f1fc; color: #27669c; }
.pilotage-agent-chip.mail,
.pilotage-agent-chip.appointment { background: #f0ebfb; color: #6844a0; }
.pilotage-status.todo { background: #e7f4fa; color: #23647d; }
.pilotage-status.in_progress { background: #dcecff; color: #245e98; }
.pilotage-status.blocked,
.pilotage-status.error,
.pilotage-status.failed { background: #ffe5e5; color: #9c2424; }
.pilotage-status.awaiting_validation { background: #fff1cf; color: #8a5c00; }
.pilotage-status.completed { background: #def7e8; color: #17623a; }
.pilotage-status.cancelled { background: #eceff1; color: #5b6569; }
.pilotage-objective { font-size: .84rem; }
.pilotage-task-alert { padding: 8px 10px; border-radius: 8px; background: #fff0f0; color: #8c2929 !important; font-weight: 700; }
.pilotage-validation-note { padding: 8px 10px; border-radius: 8px; background: #fff7df; color: #725116 !important; }
.pilotage-task-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: end; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e2eceb; }
.pilotage-reassign { display: grid; gap: 3px; min-width: 150px; }
.pilotage-reassign span { color: #567174; font-size: .7rem; font-weight: 800; }
.pilotage-reassign select { min-height: 32px; padding: 5px 8px; border: 1px solid #bfd8d6; border-radius: 7px; background: #fff; }
.pilotage-task-log { margin-top: 10px; border-top: 1px solid #e2eceb; padding-top: 8px; }
.pilotage-task-log summary { color: #2f6266; cursor: pointer; font-size: .78rem; font-weight: 800; }
.pilotage-task-log div { display: grid; grid-template-columns: minmax(80px, auto) 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #edf2f1; font-size: .76rem; }
.pilotage-task-log div span { color: #526d70; }

@media (max-width: 680px) {
  .agent-pilotage { padding: 13px; }
  .pilotage-heading { align-items: flex-start; }
  .pilotage-actions { width:100%; justify-content:flex-start; }
  .pilotage-summary { grid-template-columns: 1fr; gap: 3px; }
  .pilotage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilotage-learning article { flex-direction:column; }
  .pilotage-task-log div { grid-template-columns: 1fr; gap: 2px; }
}
.survey-climate-result {
  display: grid;
  gap: .65rem;
}

.survey-climate-card {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid #86cfd3;
  border-radius: 14px;
  background: linear-gradient(135deg, #effbfa, #f8fcfb);
  color: #123c47;
}

.survey-climate-card.is-valid { border-color: #54bd91; background: #effaf5; }
.survey-climate-card.is-warning { border-color: #e1a84e; background: #fff8e8; }
.survey-climate-card span, .survey-climate-card small { line-height: 1.45; }

dialog.climate-survey-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.climate-survey-dialog [data-survey-sub-block="clim-thermal-main"],
.climate-survey-dialog [data-climate-room] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.climate-survey-dialog [data-survey-sub-block="clim-thermal-main"] > strong,
.climate-survey-dialog [data-climate-room] > strong,
.climate-survey-dialog [data-climate-room] > [data-climate-remove-room] {
  grid-column: 1 / -1;
}

.climate-survey-dialog [data-survey-sub-block="clim-insulation"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  background: #fafafa;
}

.climate-survey-dialog [data-survey-sub-block="clim-insulation"] > strong {
  grid-column: 1 / -1;
  color: #075765;
  font-weight: 700;
}

.climate-survey-dialog [data-survey-sub-block="clim-insulation"] > .survey-generic-question:last-of-type {
  grid-column: 1 / span 2;
}

.climate-insulation-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #d8e3e5;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
}

.climate-insulation-check input { margin: 0; }

.climate-thermal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.climate-thermal-summary label { display: grid; gap: 5px; }
.climate-thermal-summary output {
  min-height: 38px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #cbd5d8;
  border-radius: 6px;
  background: #e9ecef;
  color: #c43f4d;
  font-weight: 800;
}

@media (max-width: 680px) {
  .climate-survey-dialog [data-survey-sub-block="clim-thermal-main"],
  .climate-survey-dialog [data-climate-room],
  .climate-survey-dialog [data-survey-sub-block="clim-insulation"],
  .climate-thermal-summary {
    grid-template-columns: 1fr;
  }
  .climate-survey-dialog [data-survey-sub-block="clim-insulation"] > .survey-generic-question:last-of-type { grid-column: 1; }
}
