: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);
}

* {
  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;
}

.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);
}

.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;
}

.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-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;
}

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;
}

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

.quote-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(540px, 1fr);
  gap: 18px;
  align-items: start;
}

.quote-form {
  position: sticky;
  top: 18px;
}

.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;
}

.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;
}

.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;
}

.quote-preview {
  min-height: 900px;
  overflow-x: auto;
}

.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;
}

.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;
}

.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-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-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;
}

.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-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-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;
}

.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: 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-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-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-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-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-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;
}

.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: 1440px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-form {
    position: static;
  }
}

@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: 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-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-list-toolbar,
  .kit-detail-topbar,
  .kit-list-row {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .kit-list-header {
    display: none;
  }

  .kit-config-summary-grid {
    grid-template-columns: 1fr;
  }

  .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));
  }

  .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;
}

.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;
  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-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-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) {
  .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;
  }
}

@media print {
  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .quote-form,
  .view:not(#quoteView),
  .no-print,
  dialog {
    display: none !important;
  }

  .app-shell {
    margin: 0;
    padding: 0;
  }

  .quote-layout {
    display: block;
  }

  .quote-preview {
    min-height: 0;
  }

  .quote-page {
    width: auto;
    min-height: 297mm;
    margin: 0;
    padding: 12mm;
    box-shadow: none;
    page-break-after: always;
  }

  .quote-page:last-child {
    page-break-after: auto;
  }
}
