

.work-effect-list, .work-effects-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.work-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.work-review-summary section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.work-review-summary h3 {
  margin: 0;
  font-size: 14px;
}

.work-target-row,
.work-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.work-target-row > div,
.work-source-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-target-row span,
.work-source-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.work-target-row.needs-owner-selection {
  border-left: 3px solid var(--warn);
  padding-left: 9px;
}

.work-target-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: pointer;
}

.work-target-choice input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.work-target-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-target-choice strong,
.work-target-choice small {
  overflow-wrap: anywhere;
}

.work-effects-section {
  padding-top: 4px;
}

.work-source-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.work-source-preview .document-preview-media {
  height: min(52vh, 620px);
}

.work-effect-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.work-effect-card.is-disabled {
  opacity: 0.58;
}

.work-effect-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.work-effect-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
  min-width: 0;
}

.work-effect-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-effect-field input,
.work-effect-field select,
.work-effect-field textarea {
  width: 100%;
  min-width: 0;
}

.work-effect-field.is-reference strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.work-document-filing-fields,
.work-target-search {
  grid-column: 1 / -1;
  min-width: 0;
}

.work-document-filing-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
}

.work-document-notes {
  grid-column: 1 / -1;
}

.work-target-search {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-target-search h4 {
  margin: 0;
  font-size: 14px;
}

.work-target-search-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) max-content;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.work-target-search-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-target-search-results {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.work-target-search-result {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.work-target-search-result input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.work-target-search-result span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.work-target-search-result strong,
.work-target-search-result small {
  overflow-wrap: anywhere;
}

.work-target-search-result small {
  color: var(--muted);
}

.work-audit summary {
  cursor: pointer;
  font-weight: 800;
}

.work-audit ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.work-audit li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.work-audit li span {
  color: var(--muted);
  text-align: right;
}

.work-review-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, max-content);
  gap: 10px;
  align-items: end;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  box-shadow: 0 -8px 16px rgba(20, 33, 41, 0.08);
}

.work-revision-reason {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-revision-reason input {
  width: 100%;
  min-width: 0;
}

.work-unsaved-status {
  align-self: center;
  min-width: 0;
  color: #8b4b00;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.case-review-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  box-shadow: 0 -8px 16px rgba(20, 33, 41, 0.08);
}

.case-review-actions > span {
  flex: 1 1 320px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.document-intake-review {
  display: grid;
  gap: 16px;
}

.document-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
  min-width: 0;
}

.document-source,
.document-proposal {
  min-width: 0;
}

.document-preview-media {
  width: 100%;
  height: min(58vh, 620px);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

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

.document-preview-pair .document-preview-media {
  height: min(46vh, 520px);
  min-height: 300px;
}

.document-preview-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-ocr {
  margin-top: 12px;
}

.document-ocr summary {
  cursor: pointer;
  font-weight: 700;
}

.document-ocr pre {
  max-height: 300px;
  margin: 10px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.document-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.document-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: var(--panel);
}

.document-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.document-action {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.document-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}

.document-action-field {
  min-width: 0;
}

.document-action-field span,
.document-action-field strong {
  display: block;
  overflow-wrap: anywhere;
}

.document-action-field span {
  color: var(--muted);
  font-size: 12px;
}

.document-review-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  box-shadow: 0 -8px 16px rgba(20, 33, 41, 0.08);
}

.document-review-actions .document-revision-reason {
  flex: 1 1 360px;
  max-width: 100%;
}

.document-review-actions button {
  flex: 0 0 auto;
}

.document-sensitive-banner {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-left: 4px solid var(--bad);
  background: #fff0ed;
  color: #6f271f;
}

.document-sensitive-banner span {
  font-size: 13px;
}

.document-classification-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.document-classification-controls label,
.document-fact-input,
.document-revision-reason {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-classification-controls select,
.document-fact-input input,
.document-revision-reason input {
  width: 100%;
}

.document-review-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.document-fact-list,
.document-match-list,
.document-follow-through {
  display: grid;
  gap: 8px;
}

.document-fact-row,
.document-follow-through > article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.document-fact-heading,
.document-match-row,
.document-action-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.document-fact-heading > div,
.document-match-row > span,
.document-action-toggle > span {
  min-width: 0;
}

.document-fact-heading strong,
.document-fact-heading span,
.document-match-row strong,
.document-match-row small,
.document-action-toggle strong,
.document-action-toggle small {
  display: block;
  overflow-wrap: anywhere;
}

.document-fact-heading span,
.document-match-row small,
.document-action-toggle small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.document-before-after {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
}

.document-before-after strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.document-evidence summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.document-evidence blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--line);
  color: #304451;
  font-size: 13px;
}

.document-evidence pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.document-alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.document-alternatives span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: #405465;
  font-size: 12px;
}

.document-match-row {
  justify-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.document-match-row > span {
  flex: 1;
}

.document-match-row.exact,
.document-match-row.selected {
  border-color: #8bbba7;
  background: #f3fbf7;
}

.document-match-row.conflict {
  border-color: #d8a360;
  background: #fff9ed;
}

.document-action-toggle {
  flex: 1 1 auto;
  justify-content: start;
  cursor: pointer;
}

.document-action-toggle > span {
  flex: 1 1 auto;
}

.document-action-allocation,
.document-action > .item-title > .status {
  flex: 0 0 auto;
}

.document-action.is-disabled {
  background: #f5f7f8;
  opacity: 0.68;
}

.document-action-before {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 8px;
  border-left: 3px solid var(--line);
  background: var(--surface-2);
}

.document-action-before span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-follow-through {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-follow-through p {
  margin: 0;
  color: #314653;
  font-size: 13px;
  line-height: 1.45;
}

.document-revision-reason {
  flex: 1 1 280px;
}

.receipt-extraction-review {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.receipt-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.receipt-field-grid > div {
  min-width: 0;
  padding: 10px;
  background: var(--panel);
}

.receipt-field-grid span,
.receipt-field-grid strong,
.receipt-field-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.receipt-field-grid span,
.receipt-field-grid small {
  color: var(--muted);
  font-size: 12px;
}

.receipt-extracted-items {
  display: grid;
  gap: 6px;
}

.receipt-extracted-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.receipt-extracted-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.receipt-extracted-item details {
  grid-column: 1 / -1;
}

.receipt-evidence {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.receipt-evidence li {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  font-size: 12px;
}

.receipt-math {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .document-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-preview-media {
    height: 52vh;
    min-height: 300px;
  }

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

  .document-classification-controls,
  .document-follow-through {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-effect-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-document-filing-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-review-actions {
    grid-template-columns: minmax(0, 1fr) repeat(2, max-content);
  }
}

@media (max-width: 760px) {
  .document-review-actions,
  .case-review-actions,
  .work-review-actions {
    bottom: 76px;
  }
}

@media (max-width: 520px) {
  .document-action-fields,
  .document-totals,
  .document-preview-pair,
  .receipt-field-grid,
  .document-classification-controls,
  .document-follow-through,
  .document-before-after {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-evidence li {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-review-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .document-review-actions button,
  .case-review-actions button {
    width: 100%;
  }

  .case-review-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .work-review-summary,
  .work-effect-fields,
  .work-document-filing-fields,
  .work-target-search-form,
  .work-review-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-review-actions button {
    width: 100%;
  }

  .work-target-row,
  .work-source-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.assistant-command-panel {
  display: grid;
  gap: 14px;
}

.assistant-command-panel .assistant-command-grid {
  grid-template-columns: 1fr;
}

.assistant-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.assistant-pane {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.assistant-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.assistant-command-panel .assistant-action-row {
  grid-template-columns: 1fr;
}

.assistant-command-panel .assistant-action-row .primary {
  justify-self: start;
}
ental-flow-panel {
  margin-bottom: 16px;
}

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

.rental-flow-step {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.rental-flow-step > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.rental-flow-step div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rental-flow-step strong {
  font-size: 13px;
}

.rental-flow-step b {
  font-size: 18px;
}

.rental-flow-step small {
  color: var(--muted);
  line-height: 1.35;
}

.notification-menu {
  position: relative;
}

.notification-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f3440;
  cursor: pointer;
  font-weight: 800;
}

.profile-trigger {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.profile-trigger:hover {
  background: var(--surface-2);
}

.notification-trigger span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf1f5;
  color: #405465;
  font-size: 12px;
}

.notification-trigger.has-alerts span {
  background: #ffe7e2;
  color: var(--bad);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 42;
  display: grid;
  gap: 7px;
  width: min(390px, 88vw);
  max-height: 70vh;
  overflow: auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--surface-2);
}

.notification-item small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
}

.notification-empty,
.compact-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f9;
}

.segmented-control .secondary {
  background: transparent;
}

.segmented-control .secondary.is-active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 28, 35, 0.08);
}

.rental-calendar-panel {
  margin-bottom: 16px;
}

.rental-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-day {
  min-width: 180px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.calendar-day-head small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.calendar-day-stack {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.calendar-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-item:hover {
  box-shadow: 0 8px 18px rgba(16, 28, 35, 0.08);
}

.calendar-item span,
.calendar-item small {
  color: var(--muted);
  font-size: 12px;
}

.calendar-item.checked_out,
.calendar-item.overdue {
  border-left-color: var(--bad);
}

.calendar-item.confirmed,
.calendar-item.service {
  border-left-color: var(--warn);
}

.service-board,
.claims-layout,
.documents-console {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.service-lane-grid,
.claims-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
}

.claims-main {
  min-width: 0;
}

.service-lane,
.claim-lane,
.compliance-panel,
.chart-card,
.claim-create-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.lane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lane-heading h3,
.chart-card h3,
.claim-create-card h3 {
  margin: 0;
  font-size: 15px;
}

.lane-stack,
.service-card-grid,
.compliance-list {
  display: grid;
  gap: 9px;
}

.service-card,
.claim-card,
.compliance-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card:hover,
.claim-card:hover,
.compliance-row:hover {
  box-shadow: 0 10px 22px rgba(16, 28, 35, 0.06);
}

.service-tire-row {
  display: grid;
  gap: 10px;
}

.service-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.claims-layout {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  align-items: start;
}

.claim-money-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.claim-money-row strong {
  color: var(--ink);
}

.compliance-grid,
.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.compliance-row {
  grid-template-columns: minmax(180px, 1.1fr) auto minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: center;
}

.compliance-row strong,
.compliance-row small {
  display: block;
  overflow-wrap: anywhere;
}

.compliance-row small {
  color: var(--muted);
  margin-top: 3px;
}

.report-bar-row {
  display: grid;
  gap: 7px;
}

.report-bar-row + .report-bar-row {
  margin-top: 11px;
}

.report-bar-row strong,
.report-bar-row small {
  display: block;
}

.report-bar-row small {
  color: var(--muted);
  margin-top: 2px;
}

.report-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e7edf1;
  overflow: hidden;
}

.report-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7c91a1;
}

.report-bar-track span.tone-good {
  background: var(--good);
}

.report-bar-track span.tone-warn {
  background: var(--warn);
}

.report-bar-track span.tone-bad {
  background: var(--bad);
}

.reservation-dossier {
  display: grid;
  gap: 16px;
}

.reservation-dossier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f8f9 100%);
}

.reservation-dossier-hero h2 {
  margin: 0;
}

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

.reservation-party-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reservation-party-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reservation-party-card strong,
.reservation-party-card small {
  overflow-wrap: anywhere;
}

.reservation-party-card small {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .rental-calendar {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  .claims-layout,
  .compliance-grid,
  .report-chart-grid {
    grid-template-columns: 1fr;
  }

  .compliance-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .reservation-dossier-hero,
  .reservation-party-grid {
    grid-template-columns: 1fr;
  }
}
.action-filter-row .is-active {
  background: var(--primary);
  color: #fff;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.045);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.panel:hover {
  border-color: #cbd5e1;
}

.panel.command-hero {
  border: 0;
  background:
    linear-gradient(135deg, rgba(8, 31, 39, 0.98), rgba(16, 62, 70, 0.96)),
    #102a32;
  color: #f8fbfc;
  box-shadow: 0 18px 42px rgba(8, 31, 39, 0.18);
}

.today-ops-list,
.fleet-status-viz,
.revenue-snapshot {
  display: grid;
  gap: 10px;
}
.today-op-item:hover,
.item:hover,
.service-card:hover,
.claim-card:hover,
.compliance-row:hover {
  transform: translateY(-1px);
}
.fleet-status-viz {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
}

.fleet-status-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--good) 0 var(--ready-percent, 0%), #dbe3ec var(--ready-percent, 0%) 100%);
  border: 1px solid var(--line);
}

.fleet-status-ring strong {
  font-size: 32px;
}

.fleet-status-ring span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fleet-status-bars {
  display: grid;
  gap: 11px;
}

.fleet-status-row {
  display: grid;
  gap: 6px;
}

.fleet-status-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 13px;
}

.fleet-status-track {
  height: 9px;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.fleet-status-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
}

.fleet-status-track span.available {
  background: var(--good);
}

.fleet-status-track span.rented {
  background: var(--info);
}

.fleet-status-track span.maintenance {
  background: var(--warn);
}

.fleet-status-track span.blocked {
  background: var(--bad);
}

.revenue-line-chart {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), #fff),
    #fff;
  padding: 12px;
}

.revenue-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.revenue-line.income {
  stroke: var(--good);
}

.revenue-line.expense {
  stroke: var(--warn);
}

.revenue-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.revenue-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 999px;
}

.income-dot {
  background: var(--good);
}

.expense-dot {
  background: var(--warn);
}

.fleet-scan-panel {
  overflow: hidden;
}

.fleet-scan-panel .table-wrap {
  border-radius: 12px;
}

.fleet-scan-table {
  min-width: 980px;
}

.fleet-scan-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fleet-scan-table td {
  vertical-align: middle;
}

.fleet-scan-table .clickable-row {
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.fleet-scan-table .clickable-row:hover {
  background: #f8fafc;
  box-shadow: inset 3px 0 0 var(--primary);
}

.vehicle-table-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.vehicle-table-cell strong,
.vehicle-table-cell .item-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-table-photo {
  width: 58px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #e2e8f0;
}

.vehicle-table-photo .vehicle-photo-placeholder,
.vehicle-table-photo .vehicle-photo-img {
  min-height: 42px;
  height: 42px;
}

.vehicle-table-photo .vehicle-photo-label {
  display: none;
}

.table-alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4d7;
  color: var(--warn);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.spaced-panel {
  margin-top: 18px;
}

.panel-section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  border-top: 1px solid rgba(213, 224, 229, 0.82);
  padding-top: 18px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fleet-tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tool-launch {
  display: grid;
  gap: 4px;
  min-height: 68px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #243744;
  text-align: left;
  cursor: pointer;
}

.tool-launch:hover,
.tool-launch:focus-visible {
  border-color: rgba(15, 111, 114, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 111, 114, 0.10);
  outline: 0;
}

.tool-launch span {
  font-size: 16px;
  font-weight: 900;
}

.tool-launch small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tool-drawer,
.setup-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-drawer summary,
.setup-details summary {
  display: grid;
  gap: 3px;
  cursor: pointer;
  padding: 13px 15px;
  font-weight: 800;
  color: #243744;
}

.tool-drawer summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.tool-drawer[open] summary,
.setup-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.utility-details {
  display: none;
}

.setup-panel {
  border: 0;
  border-radius: 0 0 8px 8px;
}

.compact-entry-form .primary {
  justify-self: start;
}

.form-status {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef8f6;
  color: #19343a;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.form-status.is-error {
  border-color: rgba(188, 61, 61, 0.32);
  background: #fff0ef;
  color: var(--bad);
}

.is-hidden {
  display: none !important;
}

.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  align-items: start;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(16, 28, 35, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(18, 33, 41, 0.10);
}

.vehicle-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 111, 114, 0.12);
}

.vehicle-photo-frame,
.vehicle-file-photo {
  position: relative;
  min-height: 210px;
  background: #dce6ea;
  overflow: hidden;
}

.vehicle-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.vehicle-photo-placeholder {
  position: relative;
  min-height: 210px;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f5f8fa 0%, #edf3f5 52%, #ced9df 53%, #7b8992 54%, #38454d 100%);
}

.vehicle-sky {
  position: absolute;
  inset: 0 0 46%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(16, 28, 35, 0.06) 0 1px, transparent 1px 72px);
}

.vehicle-road {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -8%;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #61707a, #26323a);
  transform: skewY(-4deg);
  transform-origin: left bottom;
}

.vehicle-shape {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 31%;
  height: 25%;
  border-radius: 46px 54px 18px 18px;
  background:
    linear-gradient(135deg, hsl(var(--vehicle-hue), 20%, 34%), hsl(var(--vehicle-hue), 24%, 20%));
  box-shadow: 0 20px 32px rgba(16, 28, 35, 0.30);
}

.vehicle-shape::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 28%;
  top: -55%;
  height: 72%;
  border-radius: 26px 34px 6px 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, hsl(var(--vehicle-hue), 18%, 38%), hsl(var(--vehicle-hue), 22%, 24%));
}

.vehicle-shape::after,
.vehicle-shape span::before {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #101c23;
  box-shadow: inset 0 0 0 7px #d2dbe1;
}

.vehicle-shape::after {
  left: 18%;
}

.vehicle-shape span::before {
  right: 18%;
}

.vehicle-photo-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(16, 28, 35, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.vehicle-card-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vehicle-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.vehicle-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.vehicle-card-title-row strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.vehicle-card-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-card-status-row span {
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-card-status-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.vehicle-card-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-card-snapshot span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  background: #fbfcfd;
}

.vehicle-card-snapshot small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-card-snapshot strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card-snapshot em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card-status-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.vehicle-card-status-line span {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card-status-line.is-clear {
  background: #e4f4ea;
  color: var(--good);
}

.vehicle-card-status-line.is-warning {
  background: #fff4d7;
  color: var(--warn);
}

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

.vehicle-quick-grid span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.vehicle-quick-grid strong {
  color: var(--ink);
  font-size: 16px;
}

.vehicle-card-money {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #314653;
  font-size: 13px;
  font-weight: 800;
}

.vehicle-card-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-card-ledger span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-2);
}

.vehicle-card-ledger small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-card-ledger strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.vehicle-card-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vehicle-card-alerts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4d7;
  color: var(--warn);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-card-alerts .is-clear {
  background: #e4f4ea;
  color: var(--good);
}

.vehicle-file-panel:empty {
  display: none;
}

.vehicle-file {
  display: grid;
  gap: 14px;
}

.dossier-strip {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(18, 33, 41, 0.08);
  backdrop-filter: blur(12px);
}

.dossier-tile {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #dde7eb;
  border-radius: 8px;
  background: #fbfcfd;
  color: inherit;
  text-align: left;
}

.dossier-button {
  cursor: pointer;
}

.dossier-button:hover,
.dossier-button:focus-visible {
  border-color: rgba(12, 116, 114, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 116, 114, 0.10);
  outline: 0;
}

.rental-case-timeline { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.rental-case-timeline ol { display: grid; grid-template-columns: repeat(10, minmax(92px, 1fr)); gap: 0; margin: 0; padding: 0; overflow-x: auto; list-style: none; }
.case-stage { position: relative; display: grid; align-content: start; gap: 7px; min-height: 98px; padding: 4px 8px; }
.case-stage::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 3px; background: #d8dee2; }
.case-stage > span { position: relative; z-index: 1; width: 22px; height: 22px; border: 3px solid #d8dee2; border-radius: 50%; background: white; }
.case-stage.complete::before, .case-stage.complete > span { border-color: var(--good); background: var(--good); }
.case-stage.current::before, .case-stage.current > span { border-color: var(--primary); background: var(--primary); }
.case-stage.blocked > span { border-color: var(--bad); background: var(--bad); }
.case-stage div { display: grid; gap: 3px; }
.case-stage small { color: var(--muted); line-height: 1.25; }
.case-timeline-loading { margin: 14px 0; padding: 14px; color: var(--muted); background: #f4f6f7; border-radius: 8px; }
.secondary-action-menu { position: relative; }
.secondary-action-menu summary { min-height: 44px; padding: 11px 14px; cursor: pointer; list-style: none; }
.secondary-action-menu > div { position: absolute; right: 0; z-index: 8; display: grid; gap: 6px; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .rental-primary-actions { width: 100%; }
  .rental-primary-actions > button, .secondary-action-menu { flex: 1 1 140px; }
  .secondary-action-menu > div { position: fixed; right: 12px; left: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); }
}
