﻿:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --border: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #15803d;
  --error: #b91c1c;
  --warning: #b45309;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

body.theme-light,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #eef2f7;
  --border: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.auth-shell.hidden {
  display: none;
}

.auth-card {
  width: min(100%, 460px);
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card__logo {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 14px;
}

.auth-card__logo--wide {
  width: min(240px, 100%);
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.auth-card__header h1 {
  margin: 0;
  font-size: 32px;
}

.auth-card__header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card__eyebrow {
  margin: 0 0 8px !important;
  color: #93c5fd !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.auth-form label {
  color: var(--muted);
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.auth-form__message {
  min-height: 20px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 86px 1fr;
}

.sidebar {
  background: rgba(17, 24, 39, 0.95);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar__brand-logo {
  display: block;
  width: 44px;
  height: auto;
  flex: 0 0 auto;
  margin-top: 2px;
}

.sidebar__brand h1 {
  margin: 0;
  font-size: 24px;
}

.sidebar__brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.platform-signature {
  margin: 4px 0 0;
  color: rgba(148, 163, 184, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-card__header .platform-signature {
  margin-top: -2px;
  text-transform: none;
}

.sidebar__brand .sidebar__signature {
  margin-top: 4px;
  font-size: 10px;
}

.sidebar__collapse-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.sidebar-group {
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 14px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.24);
}

.sidebar-group__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px;
  text-align: left;
  text-transform: uppercase;
}

.sidebar-group__toggle::after {
  content: "+";
  color: var(--muted);
}

.sidebar-group--open .sidebar-group__toggle::after {
  content: "-";
}

.sidebar-group__items {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sidebar-group--open .sidebar-group__items {
  display: flex;
}

.sidebar__user {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
}

.sidebar__user-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.sidebar__user-role {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar__user-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar__user-select {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.nav-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 12px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn--active {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}

.nav-btn--soft {
  border-style: dashed;
  color: #cbd5e1;
}

.nav-btn--dashboard {
  font-weight: 800;
}

body.sidebar-collapsed .sidebar {
  padding: 20px 12px;
}

body.sidebar-collapsed .sidebar__brand {
  justify-content: center;
}

body.sidebar-collapsed .sidebar__brand h1,
body.sidebar-collapsed .sidebar__brand p,
body.sidebar-collapsed .sidebar__user-name,
body.sidebar-collapsed .sidebar__user-role,
body.sidebar-collapsed .sidebar__user-label,
body.sidebar-collapsed .sidebar__user-select,
body.sidebar-collapsed #logoutBtn,
body.sidebar-collapsed #devTools {
  display: none;
}

body.sidebar-collapsed .sidebar__nav {
  margin-top: 22px;
}

body.sidebar-collapsed .sidebar-group {
  padding: 4px;
}

body.sidebar-collapsed .sidebar-group__toggle {
  justify-content: center;
  padding: 9px 4px;
  overflow: hidden;
  white-space: nowrap;
}

body.sidebar-collapsed .sidebar-group__toggle::after {
  content: "";
}

body.sidebar-collapsed .sidebar-group__items {
  display: flex;
  gap: 6px;
  padding-top: 4px;
}

body.sidebar-collapsed .nav-btn {
  justify-content: center;
  padding: 8px 4px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.main-content {
  padding: 24px;
}

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

.topbar h2 {
  margin: 0;
  font-size: 28px;
}

.topbar__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-user__identity {
  display: flex;
  min-width: 128px;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
}

.topbar-user__name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.topbar-user__role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.active-role-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.76);
}

.active-role-switcher__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-role-switcher__select {
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 32px 9px 12px;
}

.topbar-user__logout {
  white-space: nowrap;
}

.notifications-menu {
  position: relative;
}

.sync-menu {
  position: relative;
}

.sync-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.sync-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.sync-status--offline::before {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.sync-pending-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f97316;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.notification-toggle {
  position: relative;
  padding-right: 34px;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--panel);
}

.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, 76vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.sync-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 52;
  width: min(420px, calc(100vw - 32px));
  max-height: min(520px, 76vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
}

.sync-panel__header,
.sync-item__top,
.sync-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sync-panel__header {
  margin-bottom: 10px;
}

.sync-panel__header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.sync-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
}

.sync-item strong {
  font-size: 14px;
}

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

.sync-item--failed,
.sync-item--conflict {
  border-color: rgba(248, 113, 113, 0.45);
}

.sync-item--syncing {
  border-color: rgba(250, 204, 21, 0.5);
}

.notifications-panel__header,
.notification-item__footer,
.notification-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notifications-panel__header {
  margin-bottom: 10px;
}

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

.notification-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.82);
}

.notification-item--read {
  opacity: 0.72;
}

.notification-item strong,
.notification-item p {
  margin: 0;
}

.notification-item p,
.notification-item__meta,
.notification-item__footer {
  color: var(--muted);
  font-size: 13px;
}

.notification-item__read {
  color: var(--muted);
  font-size: 12px;
}

.notification-item__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-card[data-nav-section],
.operation-card[data-nav-section],
.priority-card[data-nav-section],
.today-card[data-nav-section] {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.stat-card[data-nav-section]:hover,
.operation-card[data-nav-section]:hover,
.priority-card[data-nav-section]:hover,
.today-card[data-nav-section]:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(30, 41, 59, 0.98);
}

.connection-panel {
  margin-bottom: 20px;
}

.connection-panel__header h3 {
  margin: 0 0 8px;
}

.connection-panel__header p {
  margin: 0;
  color: var(--muted);
}

.connection-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.connection-panel__body label {
  font-size: 14px;
  color: var(--muted);
}

.connection-panel__body input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.connection-panel__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
}

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

.btn--secondary {
  background: transparent;
}

.btn--danger {
  background: rgba(185, 28, 28, 0.18);
  border-color: rgba(185, 28, 28, 0.4);
  color: #fecaca;
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

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

.table-action-hint {
  display: block;
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.btn--compact {
  min-height: auto;
  padding: 8px 12px;
  font-size: 12px;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.muted-text,
.card__hint {
  color: var(--muted);
  font-size: 12px;
}

.muted-block {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  margin-top: 3px;
}

.card__hint {
  margin: 4px 0 0;
  line-height: 1.4;
}

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

.summary-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  padding: 14px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-grid--compact {
  margin-top: 0;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

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

.check-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
  font-size: 13px;
}

.check-filter input {
  width: auto;
  min-height: auto;
}

.request-panel {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.52);
}

.request-panel h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 13px;
}

.timeline-grid span {
  color: var(--muted);
}

.timeline-grid strong {
  color: var(--text);
}

.module-form--inner {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.material-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-search__results {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.material-search__result,
.material-search__empty {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  text-align: left;
}

.material-search__result {
  cursor: pointer;
}

.material-search__result:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.15);
}

.material-search__result span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.inline-number {
  width: 110px;
  min-height: 34px;
  padding: 6px 8px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.table-wrapper--compact table th,
.table-wrapper--compact table td {
  padding: 8px 10px;
}

.module-form__note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.75);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.module-form__note code {
  color: #bfdbfe;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-stack input {
  width: 100%;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card__header--split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.printable-forms-card {
  grid-column: 1 / -1;
}

.printable-forms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

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

.input-action-row .btn {
  white-space: nowrap;
}

.trip-location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.trip-location-btn:hover {
  border-color: rgba(96, 165, 250, 0.65);
  color: #bfdbfe;
}

.trip-location-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.trip-location-btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .input-action-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 430px) {
  .trip-location-btn {
    padding: 0 10px;
  }

  .trip-location-btn__text {
    display: none;
  }
}

.vehicle-triangles-field input {
  max-width: 120px;
}

.tool-warranty-toggle {
  justify-content: flex-start;
}

#toolWarrantyExpiresAt[readonly] {
  opacity: 0.9;
  cursor: not-allowed;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.field-hint {
  grid-column: 1 / -1;
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field-help--highlight {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
}

.field-help--warning {
  color: #fbbf24;
}

.field-help--error {
  color: #fca5a5;
}

.input-invalid {
  border-color: rgba(248, 113, 113, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.fuel-row--excluded {
  opacity: 0.72;
  font-style: italic;
}

.fuel-excluded-badge {
  display: inline-flex;
  margin-top: 4px;
}

.fuel-row-diagnostic {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.fuel-km-breaker {
  background: rgba(127, 29, 29, 0.28);
  box-shadow: inset 4px 0 0 rgba(248, 113, 113, 0.95);
}

.fuel-km-affected {
  background: rgba(120, 53, 15, 0.18);
  box-shadow: inset 4px 0 0 rgba(251, 191, 36, 0.8);
}

.fuel-km-chain-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.32);
}

.fuel-km-chain-panel:empty {
  display: none;
}

.fuel-km-chain-panel__title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fuel-km-chain-panel__empty {
  color: var(--muted);
  font-size: 12px;
}

.fuel-km-chain-list {
  display: grid;
  gap: 6px;
}

.fuel-km-chain-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) minmax(84px, 0.9fr) minmax(120px, 1.2fr) minmax(90px, 0.9fr) minmax(70px, 0.7fr);
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
}

.fuel-km-chain-row strong {
  font-size: 12px;
}

.fuel-km-chain-row--breaker,
.fuel-km-chain-row--impossible {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(127, 29, 29, 0.24);
}

.fuel-km-chain-row--affected {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(120, 53, 15, 0.18);
}

.fuel-km-chain-row--excluded {
  opacity: 0.76;
}

.fuel-km-chain-row--ok,
.fuel-km-chain-row--normal {
  border-color: rgba(34, 197, 94, 0.34);
}

@media (max-width: 720px) {
  .fuel-km-chain-row {
    grid-template-columns: 1fr 1fr;
  }
}

.photo-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.photo-preview.hidden {
  display: none;
}

.photo-preview__image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.module-subpanel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.filters-row--compact {
  margin-top: 10px;
}

.export-card {
  display: block;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.export-card .card__header {
  margin-bottom: 10px;
}

.export-card .card__header h3 {
  font-size: 18px;
}

.export-card .filters-row--compact {
  margin-top: 4px;
  gap: 10px;
  grid-template-columns: minmax(170px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr);
  align-items: center;
}

.export-card .btn {
  min-height: 42px;
  padding: 10px 14px;
}

.export-card .message {
  margin-top: 10px;
}

.status-row {
  margin-bottom: 20px;
}

.status-box {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.status-box--info {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.status-box--error {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(185, 28, 28, 0.4);
}

.status-box--success {
  background: rgba(21, 128, 61, 0.18);
  border: 1px solid rgba(21, 128, 61, 0.4);
}

.hidden {
  display: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.mobile-driver-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-driver-nav.hidden {
  display: none;
}

.mobile-driver-nav__btn {
  border: 1px solid var(--border);
  background: rgba(31, 41, 55, 0.92);
  color: var(--text);
  border-radius: 16px;
  padding: 8px 4px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 4px;
  line-height: 1.1;
}

.mobile-driver-nav__btn--active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.18);
}

.mobile-driver-nav__btn .material-symbols-outlined {
  font-size: 21px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.dashboard-kpi-grid .stat-card {
  min-height: 96px;
  padding: 16px;
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 28px;
}

.dashboard-kpi-grid .stat-card strong {
  font-size: 24px;
}

.stat-card--accent {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.stat-card--warning {
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.2), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.insight-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-card--alert {
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.18), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.insight-card__value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.insight-card__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.operation-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.operation-card--primary {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.operation-card--warning {
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.18), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.operation-card__value {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.operation-card__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.dashboard-section-block {
  margin-bottom: 18px;
}

.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-section-heading h3 {
  margin: 0;
  font-size: 18px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.priority-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: var(--shadow);
}

.priority-card--warning {
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.18), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.priority-card--danger {
  background:
    linear-gradient(135deg, rgba(185, 28, 28, 0.18), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.priority-card--info {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(17, 24, 39, 0.92)),
    rgba(17, 24, 39, 0.92);
}

.priority-card__label,
.today-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.priority-card strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
}

.priority-card p {
  min-height: 40px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.45;
}

.priority-card__link {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
  cursor: pointer;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
}

.priority-card__link--accent,
.today-card__action,
.activity-item__action,
.row-action-btn {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.16);
  color: #dbeafe;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.today-card {
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
}

.today-card__action {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px 10px;
  width: 100%;
}

.today-card strong {
  font-size: 24px;
}

.consumption-dashboard {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.6fr);
  gap: 12px;
}

.consumption-summary-card,
.consumption-top-card {
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  padding: 16px;
}

.consumption-summary-card span,
.consumption-top-card > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.consumption-summary-card strong {
  color: var(--text);
  font-size: 24px;
}

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

.consumption-list__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.58);
  padding: 9px 10px;
}

.consumption-list__item span {
  color: var(--text);
  font-weight: 700;
}

.consumption-list__item strong {
  color: #fbbf24;
  white-space: nowrap;
}

.dashboard-feed-card {
  padding: 16px;
}

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.vehicle-tabs {
  margin-top: 0;
  margin-bottom: 12px;
}

.erp-dashboard {
  display: grid;
  gap: 18px;
}

.erp-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 14px;
}

.erp-overview-grid .stat-card {
  min-height: 112px;
}

.stat-card--accent {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.72));
  border-color: rgba(96, 165, 250, 0.55);
}

.erp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.erp-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.erp-cost-card,
.erp-priority-card,
.erp-fleet-card {
  min-width: 0;
}

.table-wrapper--compact {
  max-width: 100%;
  overflow-x: auto;
}

.erp-table {
  min-width: 760px;
  font-size: 0.9rem;
}

.erp-table th,
.erp-table td {
  padding: 10px 9px;
  vertical-align: top;
}

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

.erp-priority-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.erp-priority-item:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.erp-priority-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.erp-priority-item strong {
  font-size: 1.35rem;
}

.erp-fleet-summary {
  display: grid;
  gap: 10px;
}

.erp-fleet-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.erp-fleet-summary div:last-child {
  border-bottom: 0;
}

.erp-fleet-summary span {
  color: var(--muted);
}

.owner-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(260px, 0.85fr));
  gap: 14px;
  align-items: stretch;
}

.owner-dashboard-card {
  min-width: 0;
}

.owner-dashboard-card--wide,
.owner-dashboard-card--finance {
  grid-column: span 1;
}

.owner-dashboard-card--consumption {
  grid-column: 1 / -1;
}

.owner-dashboard-card--maintenance {
  grid-column: 1 / -1;
}

.owner-dashboard-card--management {
  grid-column: 1 / -1;
}

.owner-dashboard-card--sites-map {
  grid-column: 1 / -1;
}

.owner-dashboard-card--executive-kpis {
  grid-column: 1 / -1;
}

.owner-dashboard-card--forecast {
  grid-column: 1 / -1;
}

.owner-dashboard-card--cashflow {
  grid-column: 1 / -1;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.executive-kpi-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(42px, 1fr) auto;
  gap: 8px;
  min-height: 184px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.64);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.46);
}

.executive-kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.executive-kpi-card__top small,
.executive-kpi-card p {
  color: var(--muted);
}

.executive-kpi-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.executive-kpi-card span {
  font-weight: 800;
}

.executive-kpi-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.executive-kpi-card .btn {
  justify-self: start;
}

.executive-kpi-card--critical {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(127, 29, 29, 0.16);
}

.executive-kpi-card--warning {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(120, 53, 15, 0.14);
}

.executive-kpi-card--positive {
  border-color: rgba(34, 197, 94, 0.44);
  background: rgba(22, 101, 52, 0.12);
}

.dashboard-sites-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: start;
}

.dashboard-sites-map,
.sites-map {
  width: 100%;
  height: 480px;
  min-height: 360px;
  max-height: 500px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.68);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.dashboard-sites-map.leaflet-container,
.sites-map.leaflet-container {
  width: 100%;
  height: 480px;
  min-height: 360px;
  max-height: 500px;
}

.dashboard-sites-map .leaflet-container,
.sites-map .leaflet-container {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  width: 100%;
  height: 100%;
}

.maventera-site-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.95);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.maventera-site-marker__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #38bdf8;
  border: 2px solid #eff6ff;
}

.dashboard-sites-map .empty-cell,
.sites-map .empty-cell {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.dashboard-sites-map-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  max-height: 500px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.dashboard-sites-map-side h4 {
  margin: 0;
  font-size: 0.92rem;
}

.dashboard-sites-map-missing-list {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 444px;
  overflow: auto;
}

.dashboard-sites-map-missing-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.52);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.dashboard-sites-map-missing-item:hover {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 64, 175, 0.18);
}

.dashboard-sites-map-missing-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-site-popup {
  display: grid;
  gap: 6px;
  color: #0f172a;
  min-width: 230px;
  max-width: 300px;
}

.dashboard-site-popup strong {
  font-size: 0.95rem;
}

.dashboard-site-popup span {
  color: #334155;
  font-size: 0.8rem;
}

.dashboard-site-popup .btn {
  justify-self: start;
  margin-top: 4px;
}

.dashboard-site-popup__header,
.dashboard-site-popup__section {
  display: grid;
  gap: 3px;
}

.dashboard-site-popup__section {
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.42);
}

.dashboard-site-popup__section small,
.dashboard-site-popup__note {
  color: #64748b;
  font-size: 0.72rem;
}

.dashboard-site-popup__metrics,
.dashboard-site-popup__alerts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-site-popup__metrics small,
.dashboard-site-popup__alerts small {
  grid-column: 1 / -1;
}

.dashboard-site-popup__status {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.dashboard-site-popup__status--profit {
  color: #166534;
  background: #dcfce7;
}

.dashboard-site-popup__status--warning {
  color: #92400e;
  background: #fef3c7;
}

.dashboard-site-popup__status--loss {
  color: #991b1b;
  background: #fee2e2;
}

.dashboard-site-popup__status--info,
.dashboard-site-popup__status--muted {
  color: #334155;
  background: #e2e8f0;
}

.dashboard-site-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.dashboard-site-popup__actions .btn {
  margin-top: 0;
}

.project-forecast__formula {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 64, 175, 0.12);
}

.project-forecast__formula p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.project-forecast__formula small {
  color: var(--muted);
}

.management-action-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.management-action-metric {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.46);
}

.management-action-metric strong {
  font-size: 1.6rem;
  line-height: 1;
}

.management-action-metric small {
  color: var(--muted);
  font-weight: 800;
}

.management-action-metric--critical {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(127, 29, 29, 0.18);
}

.management-action-metric--warning {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(120, 53, 15, 0.16);
}

.management-action-metric--info {
  border-color: rgba(96, 165, 250, 0.52);
  background: rgba(30, 64, 175, 0.14);
}

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

.management-action-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  text-align: left;
}

.management-action-item__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.management-action-item__body strong,
.management-action-item__body small {
  overflow-wrap: anywhere;
}

.management-action-item__body small {
  color: var(--muted);
}

.management-action-impact {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.maintenance-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.maintenance-dashboard-metric {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.46);
}

.maintenance-dashboard-metric strong {
  font-size: 1.65rem;
  line-height: 1;
}

.maintenance-dashboard-metric small {
  color: var(--muted);
  font-weight: 800;
}

.maintenance-dashboard-metric--danger {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(127, 29, 29, 0.18);
}

.maintenance-dashboard-metric--warning {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(120, 53, 15, 0.16);
}

.maintenance-dashboard-metric--ok {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(22, 101, 52, 0.13);
}

.maintenance-dashboard-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.maintenance-dashboard-lists h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
}

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

.maintenance-dashboard-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.maintenance-dashboard-item:hover {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(37, 99, 235, 0.12);
}

.maintenance-dashboard-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.maintenance-dashboard-item span:last-child {
  text-align: right;
}

.maintenance-dashboard-item strong,
.maintenance-dashboard-item small {
  overflow-wrap: anywhere;
}

.maintenance-dashboard-item small {
  color: var(--muted);
}

@media (max-width: 720px) {
  .executive-kpi-grid {
    grid-template-columns: 1fr;
  }

  .management-action-summary,
  .maintenance-dashboard-summary,
  .maintenance-dashboard-lists {
    grid-template-columns: 1fr;
  }

  .management-action-item {
    grid-template-columns: 1fr;
  }

  .management-action-impact {
    text-align: left;
  }

  .maintenance-dashboard-item {
    display: grid;
  }

  .maintenance-dashboard-item span:last-child {
    text-align: left;
  }
}

.consumption-list {
  display: grid;
  gap: 16px;
}

.consumption-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.consumption-group h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.consumption-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.36);
}

.consumption-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.consumption-table th,
.consumption-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.42);
  font-size: 0.82rem;
  line-height: 1.25;
  vertical-align: middle;
}

.consumption-table th {
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.consumption-table th:nth-child(n + 2),
.consumption-table td:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}

.consumption-table th:nth-child(6),
.consumption-table td:nth-child(6),
.consumption-table th:nth-child(7),
.consumption-table td:nth-child(7) {
  text-align: center;
}

.consumption-table tbody tr:last-child td {
  border-bottom: 0;
}

.consumption-row.consumption-card--normal {
  background: rgba(22, 101, 52, 0.13);
}

.consumption-row.consumption-card--warning {
  background: rgba(120, 53, 15, 0.18);
}

.consumption-row.consumption-card--danger,
.consumption-row.consumption-card--critical {
  background: rgba(127, 29, 29, 0.24);
}

.consumption-row.consumption-card--insufficient {
  background: rgba(30, 41, 59, 0.42);
}

.consumption-row td:first-child {
  min-width: 220px;
}

.consumption-row td:first-child strong {
  display: inline;
  margin-right: 8px;
  overflow-wrap: anywhere;
}

.consumption-status-cell,
.consumption-alert-marker {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.consumption-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.5);
}

.consumption-card--normal {
  border-color: rgba(34, 197, 94, 0.42);
}

.consumption-card--warning {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(120, 53, 15, 0.16);
}

.consumption-card--danger,
.consumption-card--critical {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.18);
}

.consumption-card--insufficient {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(30, 41, 59, 0.42);
}

.consumption-card__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.consumption-card__main div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.consumption-card__main strong {
  overflow-wrap: break-word;
}

.consumption-card__main span:not(.badge),
.consumption-card__metrics span,
.consumption-card__reason {
  color: var(--muted);
}

.consumption-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.consumption-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.consumption-card__metrics div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.38);
}

.consumption-card__reason {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .consumption-table {
    min-width: 0;
  }

  .consumption-table thead {
    display: none;
  }

  .consumption-table,
  .consumption-table tbody,
  .consumption-table tr,
  .consumption-table td {
    display: block;
    width: 100%;
  }

  .consumption-table tr {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.48);
  }

  .consumption-table tr:last-child {
    border-bottom: 0;
  }

  .consumption-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
    border-bottom: 0;
    text-align: left !important;
    white-space: normal !important;
  }

  .consumption-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
  }

  .consumption-row td:first-child {
    min-width: 0;
  }

  .consumption-status-cell,
  .consumption-alert-marker {
    justify-content: flex-start;
  }
}

.consumption-alert-pulse {
  animation: consumption-alert-pulse 1.35s ease-in-out infinite;
}

.fuel-consumption-alert {
  box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.86);
}

.fuel-consumption-alert--high {
  background: rgba(127, 29, 29, 0.22);
}

.fuel-consumption-alert--low {
  background: rgba(180, 83, 9, 0.16);
}

.fuel-consumption-alert--attention {
  background: rgba(120, 53, 15, 0.14);
}

.fuel-consumption-value {
  font-weight: 800;
  white-space: normal;
}

.fuel-consumption-value--normal,
.fuel-consumption-value--ok {
  color: #bbf7d0;
}

.fuel-consumption-value--suspect_low,
.fuel-consumption-value--below_ok_attention,
.fuel-consumption-value--above_ok_attention {
  color: #fde68a;
}

.fuel-consumption-value--suspect_high,
.fuel-consumption-value--above_alert_high,
.fuel-consumption-value--below_reference_suspect,
.fuel-consumption-value--impossible {
  color: #fecaca;
}

.fuel-consumption-value--insufficient {
  color: var(--muted);
}

#alimentariSection .fuel-entries-table-wrapper {
  overflow-x: visible;
}

#alimentariSection .filters-row--fuel-list {
  grid-template-columns: minmax(180px, 1.35fr) minmax(150px, 1fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(130px, auto);
}

#alimentariSection .fuel-entries-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#alimentariSection .fuel-entries-table th,
#alimentariSection .fuel-entries-table td {
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  vertical-align: middle;
}

#alimentariSection .fuel-entries-table th:nth-child(1),
#alimentariSection .fuel-entries-table td:nth-child(1) {
  width: 17%;
}

#alimentariSection .fuel-entries-table th:nth-child(2),
#alimentariSection .fuel-entries-table td:nth-child(2) {
  width: 18%;
}

#alimentariSection .fuel-entries-table th:nth-child(3),
#alimentariSection .fuel-entries-table td:nth-child(3) {
  width: 13%;
}

#alimentariSection .fuel-entries-table th:nth-child(4),
#alimentariSection .fuel-entries-table td:nth-child(4) {
  width: 11%;
}

#alimentariSection .fuel-entries-table th:nth-child(5),
#alimentariSection .fuel-entries-table td:nth-child(5) {
  width: 12%;
}

#alimentariSection .fuel-entries-table th:nth-child(6),
#alimentariSection .fuel-entries-table td:nth-child(6) {
  width: 14%;
}

#alimentariSection .fuel-entries-table th:nth-child(7),
#alimentariSection .fuel-entries-table td:nth-child(7) {
  width: 15%;
}

#alimentariSection .fuel-entries-table .badge {
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.1;
  white-space: normal;
}

@media (max-width: 680px) {
  #alimentariSection .fuel-entries-table-wrapper {
    overflow-x: hidden;
  }

  #alimentariSection .fuel-entries-table,
  #alimentariSection .fuel-entries-table tbody,
  #alimentariSection .fuel-entries-table tr,
  #alimentariSection .fuel-entries-table td {
    display: block;
    width: 100% !important;
  }

  #alimentariSection .fuel-entries-table thead {
    display: none;
  }

  #alimentariSection .fuel-entries-table tbody {
    display: grid;
    gap: 10px;
  }

  #alimentariSection .fuel-entries-table tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.36);
    overflow: hidden;
  }

  #alimentariSection .fuel-entries-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.42);
    text-align: right;
  }

  #alimentariSection .fuel-entries-table td:last-child {
    border-bottom: 0;
  }

  #alimentariSection .fuel-entries-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
    text-align: left;
  }

  #alimentariSection .fuel-entries-table .empty-cell {
    display: block;
    text-align: center;
  }

  #alimentariSection .fuel-entries-table .empty-cell::before {
    content: "";
  }
}

@keyframes consumption-alert-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.36);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
}

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

.owner-dashboard-card--finance .owner-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.owner-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 116px;
  padding: 13px;
  border: 1px solid rgba(71, 85, 105, 0.72);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.46);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.owner-metric:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(30, 41, 59, 0.68);
  transform: translateY(-1px);
}

.owner-metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.owner-metric strong {
  color: var(--text);
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.owner-metric small {
  align-self: end;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 800;
}

.owner-metric--warning {
  border-color: rgba(234, 179, 8, 0.36);
  background: rgba(113, 63, 18, 0.16);
}

.owner-metric--danger {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(127, 29, 29, 0.18);
}

.owner-top-sites-list {
  display: grid;
  gap: 10px;
}

.owner-top-site {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.owner-top-site:hover {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(37, 99, 235, 0.12);
}

.owner-top-site__rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  font-weight: 900;
}

.owner-top-site__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.owner-top-site__body strong,
.owner-top-site__body small {
  overflow-wrap: anywhere;
}

.owner-top-site__body small {
  color: var(--muted);
}

.owner-top-site__value {
  color: var(--text);
  font-weight: 900;
  white-space: nowrap;
}

.driver-action-screen {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.driver-action-screen h3 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
}

.driver-action-screen p {
  color: var(--muted);
  margin: 0 0 18px;
}

.driver-action-stack {
  display: grid;
  gap: 12px;
}

.driver-action-button {
  width: 100%;
  min-height: 64px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.62));
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
}

.driver-mobile-shell {
  display: grid;
  gap: 16px;
}

.driver-mobile-hero {
  display: grid;
  gap: 8px;
}

.driver-mobile-logo {
  display: block;
  width: 58px;
  height: auto;
}

.driver-mobile-eyebrow {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.driver-mobile-mission {
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
}

.driver-mobile-mission__top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.driver-mobile-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.driver-mobile-mission h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.driver-mobile-mission p {
  margin: 0;
}

.driver-action-grid {
  display: grid;
  gap: 12px;
}

.driver-action-button .driver-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 25px;
}

.driver-action-button span:not(.driver-action-icon) {
  display: block;
}

.driver-action-button small {
  display: block;
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
}

.driver-action-button--trip {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.72));
}

.driver-action-button--fuel {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(15, 23, 42, 0.72));
}

.driver-action-button--materials {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.28), rgba(15, 23, 42, 0.72));
}

.driver-action-button--defect {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.28), rgba(15, 23, 42, 0.72));
}

.activity-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  padding: 8px 11px;
  font-size: 13px;
}

.activity-tab--active {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.44);
}

.activity-item__main {
  min-width: 0;
}

.activity-item__top {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.activity-item__type {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.activity-item__vehicle {
  color: #dbeafe;
  font-weight: 700;
}

.activity-item__title {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  margin-bottom: 4px;
}

.activity-item__meta {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.activity-item__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.activity-item__action,
.row-action-btn {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.row-action-btn {
  margin-left: 8px;
}

.activity-empty {
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: var(--muted);
  padding: 16px;
}

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.quick-modal.hidden {
  display: none;
}

.quick-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.quick-modal__panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  padding: 18px;
}

.quick-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.quick-modal__header h3 {
  margin: 3px 0 0;
}

.quick-modal__eyebrow {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  cursor: pointer;
}

.quick-modal.quick-modal--qr-bulk {
  align-items: start;
  overflow: auto;
}

.quick-modal.quick-modal--qr-bulk .quick-modal__panel {
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.quick-form {
  display: grid;
  gap: 10px;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
}

.quick-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.fuel-inventory-audit {
  display: grid;
  gap: 14px;
}

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

.fuel-inventory-audit__field,
.fuel-inventory-audit__notes,
.fuel-inventory-audit__checklist {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
  padding: 10px;
}

.fuel-inventory-audit__field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.fuel-inventory-audit__field strong {
  overflow-wrap: anywhere;
}

.fuel-inventory-audit__notes p {
  margin: 6px 0 0;
  color: var(--muted);
}

.fuel-inventory-audit__checklist ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.fuel-inventory-row--large-difference {
  background: rgba(248, 113, 113, 0.08);
}

.project-loss-analysis {
  display: grid;
  gap: 14px;
}

.project-loss-analysis__hero {
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.project-loss-analysis__hero h4,
.project-loss-analysis__hero p {
  margin: 0;
}

.project-loss-analysis__hero p {
  color: var(--muted);
  margin-top: 4px;
}

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

.project-loss-analysis__section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  padding: 12px;
}

.project-loss-analysis__cost-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.project-loss-analysis__cost-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(110px, 1.3fr) repeat(4, minmax(74px, 1fr));
}

.project-loss-analysis__cost-row span small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.project-loss-analysis__overruns,
.project-loss-analysis__recommendations {
  margin: 10px 0 0;
  padding-left: 18px;
}

.project-loss-analysis__overruns li {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 7px;
}

.project-loss-analysis__overruns li small {
  color: var(--muted);
  grid-column: 1 / -1;
}

.project-loss-analysis__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .fuel-inventory-audit__grid,
  .project-loss-analysis__summary {
    grid-template-columns: 1fr;
  }

  .project-loss-analysis__cost-row {
    grid-template-columns: 1fr 1fr;
  }
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  transform: translateY(10px);
  opacity: 0;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 14px;
  background: rgba(20, 83, 45, 0.96);
  color: #dcfce7;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.96);
  color: #fee2e2;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.activity-feed__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.app-section {
  display: block;
}

.app-section.hidden {
  display: none;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

@media (max-width: 1280px) {
  .erp-overview-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .erp-dashboard-grid,
  .erp-bottom-grid,
  .owner-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sites-map-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sites-map,
  .dashboard-sites-map.leaflet-container,
  .sites-map,
  .sites-map.leaflet-container {
    height: 380px;
    min-height: 340px;
    max-height: 380px;
  }

  .dashboard-sites-map-side {
    max-height: 280px;
  }

  .dashboard-sites-map-missing-list {
    max-height: 220px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  body.sidebar-collapsed .sidebar {
    padding: 16px;
  }

  .dashboard-sites-map,
  .dashboard-sites-map.leaflet-container,
  .sites-map,
  .sites-map.leaflet-container {
    height: 340px;
    min-height: 320px;
    max-height: 380px;
  }

  body.sidebar-collapsed .sidebar__brand h1,
  body.sidebar-collapsed .sidebar__brand p,
  body.sidebar-collapsed .sidebar__user-name,
  body.sidebar-collapsed .sidebar__user-role,
  body.sidebar-collapsed #logoutBtn {
    display: block;
  }

body.sidebar-collapsed .sidebar-group__items {
  display: flex;
  gap: 6px;
  padding-top: 4px;
}

body.sidebar-collapsed .nav-btn {
  justify-content: center;
  padding: 8px 4px;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

  .main-content {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__actions {
    width: 100%;
  }

  .topbar-user {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .topbar-user__identity {
    flex: 1 1 150px;
    justify-content: center;
  }

  .active-role-switcher {
    flex: 1 1 220px;
    justify-content: space-between;
  }

  .active-role-switcher__select {
    flex: 1;
    min-width: 0;
  }

  .topbar__actions .btn {
    flex: 1;
  }

  .cards-grid,
  .dashboard-kpi-grid,
  .priority-grid,
  .erp-overview-grid,
  .erp-dashboard-grid,
  .erp-bottom-grid,
  .today-grid,
  .consumption-dashboard,
  .insights-grid,
  .operations-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .filters-row,
  .module-form {
    grid-template-columns: 1fr !important;
    display: grid;
  }

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

body.mobile-driver-mode .sidebar {
  display: none;
}

body.mobile-driver-mode .app-shell {
  grid-template-columns: 1fr;
}

body.mobile-driver-mode .main-content {
  min-height: 100vh;
  padding: 14px 14px 104px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.16), transparent 32%),
    var(--bg);
}

body.mobile-attendance-nav-mode .main-content {
  padding-bottom: 104px;
}

body.mobile-driver-mode .topbar {
  align-items: stretch;
  border: 0;
  padding: 12px 0;
  background: transparent;
}

body.mobile-driver-mode .topbar__subtitle {
  font-size: 13px;
}

body.mobile-driver-mode .cards-grid,
body.mobile-driver-mode .insights-grid,
body.mobile-driver-mode .operations-grid {
  grid-template-columns: 1fr;
}

body.mobile-driver-mode #dashboardSection {
  display: none !important;
}

body.mobile-driver-mode #authScreen,
body.mobile-driver-mode #quickModal.hidden,
body.mobile-driver-mode #loadingState.hidden {
  display: none !important;
  pointer-events: none !important;
}

body.mobile-driver-mode .app-shell,
body.mobile-driver-mode .main-content,
body.mobile-driver-mode #driverActionSection,
body.mobile-driver-mode .driver-action-screen,
body.mobile-driver-mode .driver-action-button,
body.mobile-driver-mode .mobile-driver-nav,
body.mobile-driver-mode .mobile-driver-nav__btn {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}

body.mobile-driver-mode .driver-action-button,
body.mobile-driver-mode .mobile-driver-nav__btn {
  color: var(--text) !important;
  cursor: pointer !important;
}

body.mobile-driver-mode .driver-action-button:disabled,
body.mobile-driver-mode .mobile-driver-nav__btn:disabled {
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
}

body.mobile-driver-mode #authScreen.hidden,
body.mobile-driver-mode #quickModal.hidden,
body.mobile-driver-mode #loadingState.hidden {
  visibility: hidden !important;
}

body.mobile-driver-mode .driver-action-screen {
  width: min(100%, 580px);
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.mobile-driver-mode .driver-action-screen h3 {
  color: var(--text);
  font-size: clamp(2rem, 9vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

body.mobile-driver-mode .driver-action-screen p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

body.mobile-driver-mode .driver-action-button {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

body.mobile-driver-mode .driver-action-button:hover,
body.mobile-driver-mode .driver-action-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.55);
}

body.mobile-driver-mode .driver-action-button small {
  grid-column: 2;
}

body.mobile-driver-mode .mobile-driver-nav {
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
}

body.mobile-driver-mode .mobile-driver-nav__btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-driver-mode .erp-dashboard-finance {
  display: none !important;
}

body.mobile-driver-mode .section-intro {
  display: none;
}

body.mobile-driver-mode .section-capabilities {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

body.mobile-driver-mode .module-grid {
  grid-template-columns: 1fr;
}

body.mobile-driver-mode #foiParcursSection,
body.mobile-driver-mode #alimentariSection,
body.mobile-driver-mode #avizeSection,
body.mobile-driver-mode #cereriMaterialeSection,
body.mobile-driver-mode #defecteSection {
  max-width: 580px;
  margin: 0 auto;
}

body.mobile-driver-mode #foiParcursSection .card,
body.mobile-driver-mode #alimentariSection .card,
body.mobile-driver-mode #avizeSection .card,
body.mobile-driver-mode #cereriMaterialeSection .card,
body.mobile-driver-mode #defecteSection .card {
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 34%),
    var(--panel);
}

body.mobile-driver-mode .module-form label,
body.mobile-driver-mode .module-form .field-label,
body.mobile-driver-mode .filter-group label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}

body.mobile-driver-mode input:not([type="checkbox"]):not([type="radio"]),
body.mobile-driver-mode select,
body.mobile-driver-mode textarea {
  min-height: 52px;
  border-radius: 16px;
  background: var(--panel-2);
  font-size: 16px;
}

body.mobile-driver-mode textarea {
  min-height: 110px;
}

body.mobile-driver-mode .btn,
body.mobile-driver-mode .module-form__actions button {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 900;
}

body.mobile-driver-mode .btn--primary,
body.mobile-driver-mode #saveTripSheetBtn,
body.mobile-driver-mode #saveFuelBtn,
body.mobile-driver-mode #saveDefectBtn,
body.mobile-driver-mode #saveMaterialRequestBtn {
  min-height: 58px;
  width: 100%;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

body.mobile-driver-mode .table-wrapper,
body.mobile-driver-mode .data-table {
  border-radius: 18px;
}

body.mobile-driver-mode #foiParcursSection .module-grid > article:first-child,
body.mobile-driver-mode #alimentariSection .module-grid > article:first-child,
body.mobile-driver-mode #defecteSection .module-grid > article:first-child {
  display: none;
}

  body.mobile-driver-mode #foiParcursSection .module-grid > article:last-child,
  body.mobile-driver-mode #alimentariSection .module-grid > article:last-child,
  body.mobile-driver-mode #defecteSection .module-grid > article:last-child {
    grid-column: 1 / -1;
  }

  body.mobile-driver-mode #tripSoferField,
  body.mobile-driver-mode #tripOcrField {
    display: none;
  }

  body.mobile-driver-mode #alimentariSection .module-form__actions {
    grid-template-columns: 1fr;
  }

  body.mobile-driver-mode #alimentariSection #saveFuelBtn {
    width: 100%;
  }

  body.mobile-driver-mode #foiParcursSection .module-form {
    gap: 12px;
  }

  body.mobile-driver-mode #foiParcursSection .module-form__actions {
    grid-template-columns: 1fr;
  }

  body.mobile-driver-mode #foiParcursSection #saveTripSheetBtn {
    width: 100%;
  }

  body.mobile-driver-mode #foiParcursSection .photo-preview {
    margin-top: -4px;
  }

body.mobile-driver-mode .topbar__subtitle {
  margin-top: 4px;
}

body.mobile-driver-mode .topbar__actions {
  display: flex;
}

body.mobile-driver-mode .field-help--highlight {
  font-size: 13px;
}

@media (max-width: 430px) {
  body.mobile-driver-mode .main-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.mobile-driver-mode .topbar {
    gap: 10px;
  }

  body.mobile-driver-mode .driver-mobile-mission {
    padding: 16px;
  }

  body.mobile-driver-mode .driver-action-button {
    min-height: 76px;
    border-radius: 20px;
    padding: 14px;
  }

  body.mobile-driver-mode .driver-action-button .driver-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 23px;
  }

  body.mobile-driver-mode .mobile-driver-nav {
    gap: 4px;
    padding-left: 5px;
    padding-right: 5px;
  }

  body.mobile-driver-mode .mobile-driver-nav__btn {
    min-height: 54px;
    border-radius: 13px;
    font-size: 10px;
  }
}

#tripOcrField {
  display: none;
}

@media (min-width: 769px) {
  #foiParcursSection #tripPhotoField,
  #foiParcursSection #tripKmPhotoPreviewWrap {
    display: none !important;
  }
}

.section-intro__eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro h3 {
  margin: 0;
  font-size: 26px;
}

.section-intro p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.capability-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.capability-pill--edit {
  background: rgba(217, 119, 6, 0.15);
  color: #fde68a;
}

.capability-pill--danger {
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
}

.module-grid--stacked {
  display: grid;
  gap: 18px;
}

.tank-overview {
  display: grid;
  gap: 18px;
}

.tank-overview__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.tank-overview__stat {
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.tank-overview__stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tank-overview__stat strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.tank-gauge {
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
}

.tank-gauge__track {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.65);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.tank-gauge__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.25s ease;
}

.tank-latest-transactions {
  display: grid;
  gap: 10px;
}

.card__header--compact {
  margin-bottom: 0;
}

#bazinMotorinaSection .table-wrapper--latest-tank table {
  min-width: 900px;
  table-layout: auto;
}

#bazinMotorinaSection .table-wrapper--latest-tank th,
#bazinMotorinaSection .table-wrapper--latest-tank td {
  padding: 8px 10px;
  font-size: 13px;
  overflow-wrap: normal;
  word-break: normal;
}

.hidden-by-role {
  display: none !important;
}

.section-placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.section-placeholder__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.module-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 14px;
  margin-top: 0;
  min-width: 0;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.filters-row input,
.filters-row select,
.module-form input,
.module-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.filters-row input::placeholder,
.module-form input::placeholder,
.module-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.92);
  opacity: 1;
}

.filters-row select,
.module-form select {
  color: var(--text);
}

.filters-row select option[value=""],
.module-form select option[value=""] {
  color: var(--muted);
}

.filters-row .filter-field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.filters-row .filter-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.module-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  min-width: 0;
}

.module-form__field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.module-form__field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.module-form--inline {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}

.module-form__textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  grid-column: 1 / -1;
}

.module-form .btn,
.module-form .message {
  grid-column: 1 / -1;
}

.module-form__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.worker-attendance-form {
  margin-top: 12px;
  grid-template-columns: minmax(220px, 1fr);
}

.worker-attendance-field {
  min-width: 0;
}

.worker-attendance-field .search-select__input {
  min-height: 44px;
}

.worker-attendance-location-mobile {
  display: none;
}

#workerAttendancePanel .module-form__actions {
  margin-top: 12px;
}

.worker-attendance-stop-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}

.worker-attendance-stop-panel .module-form__textarea {
  min-height: 104px;
}

@media (max-width: 720px) {
  #workerAttendancePanel .summary-grid {
    grid-template-columns: 1fr;
  }

  #workerAttendancePanel .worker-attendance-location-select {
    display: none;
  }

  #workerAttendancePanel .worker-attendance-location-mobile {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
  }

  .worker-attendance-location-mobile__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .worker-attendance-location-segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .worker-attendance-location-segment {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .worker-attendance-location-segment.is-active {
    border-color: rgba(56, 189, 248, 0.8);
    background: rgba(56, 189, 248, 0.14);
    color: #e0f2fe;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18);
  }

  .worker-attendance-location-segment:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }

  #workerAttendancePanel .module-form__actions {
    flex-direction: column;
  }

  #workerAttendancePanel .module-form__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  body.personal-attendance-only-mode #pontajSection .export-card,
  body.personal-attendance-only-mode #pontajSection > .summary-grid,
  body.personal-attendance-only-mode #pontajSection .module-grid,
  body.personal-attendance-only-mode #compensationProfilesPanel {
    display: none !important;
  }

  body.personal-attendance-only-mode #workerAttendancePanel {
    margin-top: 0;
  }

  #pontajSection .module-grid {
    grid-template-columns: 1fr;
  }

  #pontajSection .table-wrapper {
    border-radius: 16px;
  }

  #pontajSection .table-wrapper table {
    min-width: 860px;
  }

  #pontajSection .export-card .filters-row {
    grid-template-columns: 1fr;
  }
}

.equipment-work-panel {
  margin-top: 16px;
}

.equipment-work-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.equipment-work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  padding: 14px;
}

.equipment-work-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.equipment-work-card__meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.equipment-work-card__metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.equipment-work-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.equipment-work-readonly {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-badge--success {
  border-color: rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
}

.status-badge--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

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

.equipment-work-form {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.equipment-work-report {
  border-top: 1px solid var(--border);
  margin: 8px 0 18px;
  padding-top: 16px;
}

.equipment-work-report__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.equipment-work-report__header h4 {
  margin: 0;
  font-size: 16px;
}

.equipment-work-report__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.equipment-work-report__actions,
.equipment-work-report__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equipment-work-report__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.equipment-work-report__summary .empty-cell {
  grid-column: 1 / -1;
}

.equipment-work-report__total-box {
  flex: 1 1 240px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  padding: 12px;
}

.equipment-work-report__total-box h5 {
  margin: 0 0 8px;
  font-size: 13px;
}

.equipment-work-report__total-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment-work-report__total-box li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.equipment-work-report__table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.equipment-work-report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.equipment-work-report-table th,
.equipment-work-report-table td {
  border-bottom: 1px solid var(--border);
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.equipment-work-report-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.equipment-work-report-table td {
  font-size: 12px;
}

.utility-card-list {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 12px;
}

.utility-card {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 14px 16px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  padding: 14px;
}

.utility-card--active {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.utility-card__main,
.utility-card__stats,
.utility-card__actions {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.utility-card__main {
  min-width: 0;
}

.utility-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.utility-card__code {
  color: #f87171;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.utility-card h4,
.utility-card__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.utility-card__badges,
.utility-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-card__badges .status-badge {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.utility-card__top .status-badge,
.utility-card__location {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.utility-card__location {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.utility-card__stat {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.62);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.24);
  padding: 10px 11px;
}

.utility-card__stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.utility-card__stat strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.utility-card__actions {
  justify-content: flex-end;
  align-self: end;
}

#masiniSection.vehicle-section--utility {
  overflow-x: hidden;
}

#masiniSection.vehicle-section--utility .module-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

#masiniSection.vehicle-section--utility .table-wrapper {
  overflow-x: hidden;
}

#masiniSection.vehicle-section--utility .utility-card-list {
  width: 100%;
  max-width: none;
}

#masiniSection.vehicle-section--utility .table-wrapper table,
#masiniSection.vehicle-section--utility .table-wrapper tbody,
#masiniSection.vehicle-section--utility .table-wrapper tr,
#masiniSection.vehicle-section--utility .table-wrapper td {
  display: block;
  width: 100%;
  min-width: 0;
}

#masiniSection.vehicle-section--utility .table-wrapper thead {
  display: none;
}

#masiniSection.vehicle-section--utility .table-wrapper td {
  padding: 0;
}

#masiniSection.vehicle-section--utility .utility-card {
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
  grid-template-columns: 1fr;
}

#masiniSection.vehicle-section--utility .utility-card__actions {
  justify-content: flex-start;
}

#masiniSection.vehicle-section--utility .utility-card__actions .btn {
  min-width: 118px;
}

#masiniSection.vehicle-section--utility .module-form {
  grid-template-columns: 1fr;
}

#masiniSection.vehicle-section--utility .filters-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#masiniSection.vehicle-section--utility .utility-card h4,
#masiniSection.vehicle-section--utility .utility-card__code,
#masiniSection.vehicle-section--utility .utility-card__stat strong,
#masiniSection.vehicle-section--utility .status-badge,
#masiniSection.vehicle-section--utility .utility-card__location {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

#masiniSection.vehicle-section--utility .utility-card__stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (max-width: 700px) {
  #masiniSection.vehicle-section--utility .utility-card__top {
    grid-template-columns: 1fr;
  }
}

.equipment-report-panel {
  margin-top: 16px;
}

.equipment-report-list,
.equipment-report-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.equipment-report-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  padding: 14px;
}

.equipment-report-card__main,
.equipment-report-card__metrics {
  min-width: 0;
}

.equipment-report-card__main h4 {
  margin: 4px 0;
  font-size: 16px;
}

.equipment-report-card__main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.equipment-report-card__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.equipment-report-card__metrics span {
  min-width: 0;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(2, 6, 23, 0.2);
}

.equipment-report-card__metrics small,
.equipment-report-card__metrics strong {
  display: block;
}

.equipment-report-card__metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.equipment-report-card__metrics strong {
  margin-top: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.equipment-site-cost-report {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
}

.equipment-site-cost-card__metrics {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.equipment-site-cost-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.equipment-site-cost-warning {
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 12px;
}

.equipment-timeline-list {
  display: grid;
  gap: 9px;
}

.equipment-timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  padding: 11px;
}

.equipment-timeline-item strong,
.equipment-timeline-item p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.equipment-timeline-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.trip-row {
  cursor: pointer;
}

.trip-row:hover {
  background: rgba(37, 99, 235, 0.08);
}

.trip-row--active {
  background: rgba(37, 99, 235, 0.14);
}

.row-muted {
  opacity: 0.62;
}

.row-muted td {
  color: var(--muted);
}

.card__header {
  margin-bottom: 10px;
}

.card__header h3 {
  margin: 0;
  font-size: 18px;
}

.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

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

thead th {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
}

tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 13px;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge--expirat {
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
}

.badge--critic {
  background: rgba(180, 83, 9, 0.2);
  color: #fde68a;
}

.badge--urgent {
  background: rgba(217, 119, 6, 0.2);
  color: #fed7aa;
}

.badge--atentie {
  background: rgba(202, 138, 4, 0.2);
  color: #fde68a;
}

.badge--info {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

.badge--ok {
  background: rgba(21, 128, 61, 0.18);
  color: #bbf7d0;
}

.badge--severe {
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
}

.badge--medium {
  background: rgba(180, 83, 9, 0.2);
  color: #fde68a;
}

.badge--low {
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

.badge--neutral {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.badge--success {
  background: rgba(21, 128, 61, 0.18);
  color: #bbf7d0;
}

.badge--warning {
  background: rgba(202, 138, 4, 0.22);
  color: #fef08a;
}

.badge--danger {
  background: rgba(185, 28, 28, 0.22);
  color: #fecaca;
}

.vehicle-license-fields {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.vehicle-license-fields.hidden {
  display: none;
}

.vehicle-trip-sheet-export {
  margin-top: 12px;
}

.vehicle-trip-sheet-export .btn {
  white-space: normal;
}

@media (max-width: 860px) {
  #foiParcursSection .export-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
  }

  #foiParcursSection .export-card .card__header {
    order: 0;
    margin-bottom: 0;
  }

  #foiParcursSection .export-card .filters-row--compact:not(.hidden) {
    display: contents;
  }

  #foiParcursSection .export-card .filters-row--compact > * {
    width: 100%;
    min-width: 0;
  }

  #reportTripVehicleRef {
    order: 1;
  }

  #tripDailySheetDateField,
  #tripDailySheetDate {
    order: 2;
  }

  #tripDailySheetDriverId {
    order: 3;
  }

  #exportTripDailySheetPdfBtn {
    order: 4;
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  #reportTripProjectId,
  #reportTripSiteId,
  #reportTripDateFrom,
  #reportTripDateTo,
  #exportTripExcelBtn,
  #exportTripPdfBtn {
    order: 10;
  }

  #tripReportMessage {
    order: 20;
  }
}

.badge--request-draft,
.badge--request-unknown {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.badge--request-pending,
.badge--due-urgent {
  background: rgba(202, 138, 4, 0.22);
  color: #fef08a;
}

.badge--request-approved {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.badge--request-progress {
  background: rgba(126, 34, 206, 0.22);
  color: #e9d5ff;
}

.badge--request-delivered {
  background: rgba(22, 163, 74, 0.2);
  color: #bbf7d0;
}

.badge--request-completed {
  background: rgba(20, 83, 45, 0.36);
  color: #dcfce7;
}

.badge--request-closed {
  background: rgba(51, 65, 85, 0.55);
  color: #cbd5e1;
}

.badge--request-cancelled,
.badge--request-rejected,
.badge--due-overdue {
  background: rgba(185, 28, 28, 0.22);
  color: #fecaca;
}

.badge--due-today {
  background: rgba(217, 119, 6, 0.22);
  color: #fed7aa;
}

.material-request-status-stack {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.55rem;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .priority-grid,
  .today-grid,
  .consumption-dashboard {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    flex-direction: column;
  }

  .filters-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-card {
    padding: 22px;
  }

  .export-card .filters-row--compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-grid,
  .priority-grid,
  .today-grid,
  .consumption-dashboard {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: 1fr;
  }

  .activity-item__top,
  .activity-item__status {
    justify-content: flex-start;
  }

  .insight-card__value {
    font-size: 20px;
  }

  .operation-card__value {
    font-size: 34px;
  }

  .connection-panel__buttons {
    flex-direction: column;
  }

  .filters-row,
  .module-form {
    grid-template-columns: 1fr;
  }

  .export-card .filters-row--compact {
    grid-template-columns: 1fr;
  }

  .module-form__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.today-card--wide {
  grid-column: span 2;
}

.mini-feed {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.mini-feed__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.mini-feed__item strong {
  color: var(--text);
}

.mini-feed__item span {
  color: var(--muted);
  font-size: 0.88rem;
}

#avizeSection .module-grid,
#sculeSection .module-grid,
#cereriMaterialeSection .module-grid,
#masiniSection .module-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: start;
}

#avizeSection .card,
#sculeSection .card,
#cereriMaterialeSection .card,
#masiniSection .card {
  min-width: 0;
  overflow: hidden;
}

#avizeSection .module-form,
#sculeSection .module-form,
#cereriMaterialeSection .module-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: start;
}

#avizeSection .filters-row,
#sculeSection .filters-row,
#cereriMaterialeSection .filters-row,
#masiniSection .filters-row {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

#avizeSection .request-panel,
#sculeSection .request-panel,
#cereriMaterialeSection .request-panel {
  min-width: 0;
  padding: 10px;
}

#cereriMaterialeSection .request-panel--positions {
  margin-top: 14px;
}

#cereriMaterialeSection .request-panel--positions .card__header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

#cereriMaterialeSection .request-panel--positions .card__header strong {
  color: var(--text);
  font-size: 0.95rem;
}

.material-request-position-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.material-request-checklist-fallback {
  width: 100%;
  min-height: 180px;
  margin-top: 12px;
  font-family: var(--font-mono, monospace);
  white-space: pre-wrap;
}

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

.request-item-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.45fr) minmax(150px, 0.72fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.68);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
}

.material-request-line-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
}

.request-item-card__main,
.request-item-card__field,
.request-item-card__total,
.request-item-card__check {
  min-width: 0;
}

.request-item-card__main {
  display: grid;
  gap: 6px;
}

.material-request-line-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.material-request-line-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.material-request-line-title strong {
  overflow-wrap: anywhere;
}

.material-request-line-header .badge {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
}

.material-request-line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.request-item-card__main strong,
.request-item-card__total strong {
  color: var(--text);
  line-height: 1.2;
}

.request-item-card__main span,
.request-item-card__field span,
.request-item-card__total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.request-item-card__field,
.request-item-card__total {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.request-item-card__field input,
.request-item-card__field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.request-item-card .inline-number {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border-radius: 10px;
  text-align: right;
  box-sizing: border-box;
}

.request-item-card .inline-number:disabled {
  color: rgba(226, 232, 240, 0.68);
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(51, 65, 85, 0.55);
  opacity: 1;
}

.request-item-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.request-item-card__check input {
  width: 16px;
  min-height: 16px;
}

.request-item-card__actions {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(86px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.material-request-line-card.is-delivered {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(15, 23, 42, 0.7);
}

.material-request-line-note {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.material-request-supply-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.material-request-supply-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(71, 85, 105, 0.58);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.38);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.material-request-supply-stats strong {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.material-request-supply-stat--warning {
  border-color: rgba(239, 68, 68, 0.58) !important;
  color: #fecaca !important;
}

.material-request-resolution-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.material-request-line-resolution {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.material-request-line-procurement {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.material-request-line-resolution select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
}

.material-request-line-procurement input,
.material-request-line-procurement select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
}

.material-request-resolution-summary strong {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.purchase-receive-inline {
  display: grid;
  gap: 4px;
  min-width: 132px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.purchase-receive-inline input {
  width: 100%;
  min-height: 38px;
}

.material-request-line-delete {
  min-height: 40px;
  white-space: nowrap;
}

#avizeSection .table-wrapper table,
#sculeSection .table-wrapper table,
#cereriMaterialeSection .table-wrapper table {
  min-width: 680px;
}

#avizeSection input,
#avizeSection select,
#sculeSection input,
#sculeSection select,
#cereriMaterialeSection input,
#cereriMaterialeSection select,
#masiniSection input,
#masiniSection select {
  min-height: 38px;
  padding: 8px 10px;
}

.card__hint:empty {
  display: none;
}

.advanced-fields {
  grid-column: 1 / -1;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.36);
}

.advanced-fields summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.advanced-fields .module-form--inner {
  margin-top: 10px;
}

@media (max-width: 768px) {
  #materialeSection .filters-row,
  #stocuriSection .filters-row,
  #inventarSection .filters-row,
  #stocuriSection .stock-actions {
    grid-template-columns: 1fr;
  }

  #materialeSection .module-form,
  #stocuriSection .module-form {
    grid-template-columns: 1fr;
  }

  #materialeSection .module-form__actions,
  #stocuriSection .module-form__actions,
  #inventarSection .module-form__actions {
    flex-direction: column;
  }

  #materialeSection .module-form__actions .btn,
  #stocuriSection .module-form__actions .btn,
  #inventarSection .module-form__actions .btn,
  #stocuriSection .stock-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  #materialeSection .table-wrapper table,
  #stocuriSection .table-wrapper table,
  #inventarSection .table-wrapper table {
    min-width: 0;
  }

  #materialeSection .table-wrapper thead,
  #stocuriSection .table-wrapper thead,
  #inventarSection .table-wrapper thead {
    display: none;
  }

  #materialeSection .table-wrapper table,
  #materialeSection .table-wrapper tbody,
  #materialeSection .table-wrapper tr,
  #materialeSection .table-wrapper td,
  #stocuriSection .table-wrapper table,
  #stocuriSection .table-wrapper tbody,
  #stocuriSection .table-wrapper tr,
  #stocuriSection .table-wrapper td,
  #inventarSection .table-wrapper table,
  #inventarSection .table-wrapper tbody,
  #inventarSection .table-wrapper tr,
  #inventarSection .table-wrapper td {
    display: block;
    width: 100%;
  }

  #materialeSection .table-wrapper tbody,
  #stocuriSection .table-wrapper tbody,
  #inventarSection .table-wrapper tbody {
    display: grid;
    gap: 10px;
  }

  #materialeSection .table-wrapper tr,
  #stocuriSection .table-wrapper tr,
  #inventarSection .table-wrapper tr {
    padding: 12px;
    border: 1px solid rgba(71, 85, 105, 0.68);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
  }

  #materialeSection .table-wrapper td,
  #stocuriSection .table-wrapper td,
  #inventarSection .table-wrapper td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  #materialeSection .table-wrapper td::before,
  #stocuriSection .table-wrapper td::before,
  #inventarSection .table-wrapper td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  #materialeSection .table-wrapper .empty-cell,
  #stocuriSection .table-wrapper .empty-cell,
  #inventarSection .table-wrapper .empty-cell {
    display: block;
    text-align: center;
  }

  #materialeSection .table-wrapper .empty-cell::before,
  #stocuriSection .table-wrapper .empty-cell::before,
  #inventarSection .table-wrapper .empty-cell::before {
    content: "";
  }

  #cereriMaterialeSection .request-panel--positions .card__header {
    flex-direction: column;
    align-items: stretch;
  }

  #cereriMaterialeSection .request-panel--positions .card__header strong {
    font-size: 1rem;
  }

  .material-request-position-actions {
    justify-content: stretch;
  }

  .material-request-position-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  #cereriMaterialeSection #materialRequestHeaderPanel .module-form--inner {
    grid-template-columns: 1fr;
  }

  #cereriMaterialeSection #materialRequestDeliveryModeHint {
    grid-column: 1 / -1;
  }

  #cereriMaterialeSection #materialRequestForm .module-form__actions {
    flex-direction: column;
  }

  #cereriMaterialeSection #materialRequestForm .module-form__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .material-request-line-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .material-request-line-main {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .material-request-line-header {
    flex-direction: column;
    gap: 8px;
  }

  .material-request-line-main strong {
    font-size: 1rem;
  }

  .material-request-line-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  }

  .material-request-line-resolution,
  .material-request-line-procurement {
    grid-template-columns: 1fr;
  }

  .material-request-supply-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-item-card__field,
  .request-item-card__total {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .request-item-card__total strong {
    text-align: left;
  }

  .request-item-card .inline-number {
    min-height: 48px;
    text-align: left;
  }

  .material-request-line-actions {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    align-items: stretch;
  }

  .request-item-card__check {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 12px;
  }

  .request-item-card__check input {
    width: 22px;
    min-height: 22px;
  }

  .material-request-line-actions .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  .material-request-line-grid,
  .material-request-line-resolution,
  .material-request-line-procurement,
  .material-request-line-actions,
  .material-request-supply-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  #avizeSection .module-grid,
  #sculeSection .module-grid,
  #cereriMaterialeSection .module-grid,
  #masiniSection .module-grid {
    grid-template-columns: 1fr;
  }
}

.tool-qr-mini {
  width: 56px;
  min-width: 56px;
  display: grid;
  place-items: center;
}

.tool-qr,
.tool-qr-mini svg {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.tool-qr-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.tool-qr-panel__preview {
  width: 292px;
  min-height: 292px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.tool-qr-panel__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tool-qr-panel__content strong {
  color: var(--text);
  font-size: 1rem;
}

.tool-qr-panel__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.tool-qr-panel__content code {
  display: block;
  width: 100%;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: #bfdbfe;
  background: rgba(2, 6, 23, 0.42);
}

.tool-qr-history {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.24);
}

.tool-qr-history strong,
.tool-qr-history span {
  display: block;
}

.tool-qr-history strong {
  color: var(--text);
  font-size: 0.82rem;
}

.tool-qr-history span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tool-qr-history__empty {
  color: var(--muted);
}

.module-form__actions--compact {
  justify-content: flex-start;
  gap: 8px;
}

.tool-qr-label-preview {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.tool-qr-panel.hidden,
.tool-qr-label-preview.hidden {
  display: none;
}

.tool-qr-label {
  width: min(100%, 650px);
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.tool-qr-label__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-qr-label__brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.tool-qr-label__body {
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.tool-qr-label__qr {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.tool-qr-label__info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tool-qr-label__info strong {
  font-size: 1.08rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tool-qr-label__code {
  color: #dc2626;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-qr-label__info small {
  color: #334155;
  overflow-wrap: anywhere;
}

#sculeSection .section-intro {
  align-items: stretch;
}

.tools-header-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: min(100%, 520px);
}

.tools-header-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tools-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.tools-workspace__list,
.tools-workspace__side {
  min-width: 0;
}

.tools-workspace__side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.tool-selected-card {
  max-height: none;
  overflow: visible;
}

.tool-selected-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.tool-selected-summary__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.tool-selected-summary__title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tool-selected-summary__code {
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-selected-summary__title strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tool-selected-summary__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.tool-selected-summary__grid span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.38);
  color: var(--text);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tool-selected-summary__grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

#sculeSection .tools-workspace__side .module-form,
#sculeSection .tools-workspace__side .module-form--inline {
  grid-template-columns: 1fr;
}

.tool-quick-card .btn,
.tool-reports-placeholder .btn {
  width: 100%;
}

.tool-report-form,
.inventory-report-form {
  grid-template-columns: 1fr;
  gap: 8px;
}

.inventory-report-panel {
  margin-top: 14px;
}

.inventory-report-form .btn,
.tool-report-form .btn {
  width: 100%;
}

.tool-history-card {
  margin-top: 16px;
}

#sculeSection .tools-filter-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr)) minmax(120px, auto);
  align-items: end;
}

#sculeSection .tool-list-panel > .filters-row {
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(120px, 1fr)) minmax(120px, auto);
  align-items: end;
}

.tool-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.tools-results-meta,
.tools-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-results-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.tools-results-meta .card__hint {
  margin: 0;
}

.tools-pagination [aria-current="page"] {
  color: var(--text);
  font-weight: 800;
}

.tool-qr-bulk-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 12px 0 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.tool-qr-bulk-toolbar__count {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.tool-qr-bulk-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tool-qr-bulk-modal {
  gap: 14px;
}

.tool-qr-bulk-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(190px, auto) auto auto;
  gap: 10px;
  align-items: end;
}

.tool-qr-bulk-count {
  display: grid;
  gap: 2px;
  min-width: 110px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.22);
}

.tool-qr-bulk-count strong {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

.tool-qr-bulk-count span {
  color: var(--muted);
  font-size: 0.76rem;
}

.tool-qr-bulk-cut-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
}

.tool-qr-bulk-cut-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
}

.tool-qr-bulk-preview {
  max-width: 100%;
  max-height: min(72vh, 820px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.92);
}

.tool-qr-bulk-print {
  width: 210mm;
  color: #050505;
  background: #fff;
  font-family: Arial, sans-serif;
}

.tool-qr-bulk-print .tool-qr-bulk-page {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  page-break-after: always;
  break-after: page;
  background: #fff;
}

.tool-qr-bulk-print .tool-qr-bulk-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

.tool-qr-bulk-print .tool-qr-bulk-grid {
  display: grid;
  grid-template-columns: repeat(var(--tool-qr-label-columns), var(--tool-qr-label-width));
  grid-auto-rows: var(--tool-qr-label-height);
  width: 210mm;
}

.tool-qr-bulk-print .tool-qr-bulk-label {
  display: grid;
  grid-template-columns: var(--tool-qr-size) minmax(0, 1fr);
  gap: 3mm;
  align-items: center;
  width: var(--tool-qr-label-width);
  height: var(--tool-qr-label-height);
  box-sizing: border-box;
  padding: 3mm;
  overflow: hidden;
  background: #fff;
}

.tool-qr-bulk-print.tool-qr-bulk-print--cut-lines .tool-qr-bulk-label {
  box-shadow: inset 0 0 0 0.2mm rgba(15, 23, 42, 0.5);
}

.tool-qr-bulk-print .tool-qr-bulk-label__qr {
  width: var(--tool-qr-size);
  height: var(--tool-qr-size);
  display: grid;
  place-items: center;
}

.tool-qr-bulk-print .tool-qr-bulk-label__qr svg {
  display: block;
  width: var(--tool-qr-size) !important;
  height: var(--tool-qr-size) !important;
  max-width: none;
  border-radius: 0;
}

.tool-qr-bulk-print .tool-qr-bulk-label__text {
  min-width: 0;
  display: grid;
  gap: 1mm;
  align-content: center;
  line-height: 1.08;
}

.tool-qr-bulk-print .tool-qr-bulk-label__text strong {
  display: block;
  color: #000;
  font-size: 8.4pt;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.tool-qr-bulk-print .tool-qr-bulk-label__text span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111;
  font-size: 7.2pt;
  font-weight: 700;
  line-height: 1.12;
  overflow: hidden;
  overflow-wrap: anywhere;
}

@media print {
  .tool-qr-bulk-print {
    width: 210mm;
  }

  .tool-qr-bulk-print .tool-qr-bulk-page {
    margin: 0;
    box-shadow: none;
  }

  .tool-qr-bulk-print .tool-qr-bulk-label {
    box-shadow: none;
  }

  .tool-qr-bulk-print.tool-qr-bulk-print--cut-lines .tool-qr-bulk-label {
    box-shadow: inset 0 0 0 0.2mm rgba(15, 23, 42, 0.5);
  }
}

.tool-card-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tool-card-list__empty {
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.32);
}

.tool-list-card {
  display: grid;
  grid-template-columns: 42px 88px minmax(0, 1fr) minmax(112px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(71, 85, 105, 0.68);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.5));
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.tool-list-card:hover {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(30, 41, 59, 0.68);
  transform: translateY(-1px);
}

.tool-list-card__select {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.tool-list-card__select input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #2563eb;
}

.tool-list-card__qr {
  display: grid;
  place-items: center;
}

.tool-list-card__qr .tool-qr-mini {
  width: 76px;
  min-width: 76px;
  padding: 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.2);
}

.tool-list-card__qr .tool-qr-mini svg {
  width: 62px;
  height: 62px;
}

.tool-list-card__main,
.tool-list-card__title {
  min-width: 0;
}

.tool-list-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.tool-list-card__title {
  display: grid;
  gap: 4px;
}

.tool-list-card__title strong {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tool-list-card__code {
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tool-list-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.tool-list-card__badges .badge {
  padding: 5px 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.tool-list-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tool-list-card__meta span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.2);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tool-list-card__meta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tool-list-card__details {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.tool-list-card__actions .btn {
  width: 100%;
  justify-content: center;
}

#toolForm.tool-editor-form {
  grid-template-columns: 1fr;
  gap: 0;
}

.tool-form-section {
  grid-column: 1 / -1;
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.tool-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.tool-form-section__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-form-section__header > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
}

.tool-form-section__header h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.tool-form-section__header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

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

.tool-form-grid__wide {
  grid-column: 1 / -1;
}

.tool-form-section--details {
  padding-bottom: 8px;
}

.tool-form-section--details summary {
  color: var(--text);
  font-size: 0.9rem;
}

.tool-form-section--details .tool-form-grid {
  margin-top: 12px;
}

#toolForm .tool-qr-panel {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 16px 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

#toolForm .tool-qr-panel__preview {
  width: min(100%, 248px);
  min-height: 248px;
}

#toolForm .tool-qr-panel__content,
#toolForm .tool-qr-label-preview {
  width: 100%;
}

#toolForm .tool-qr-panel .module-form__actions--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 460px);
  margin: 4px auto 0;
}

.vehicle-detail-panel {
  margin-top: 18px;
}

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

.vehicle-detail-content {
  display: grid;
  gap: 18px;
}

.vehicle-detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-detail-metric,
.vehicle-cost-row {
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.28);
  padding: 12px;
}

.vehicle-detail-metric span,
.vehicle-cost-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.vehicle-detail-metric strong,
.vehicle-cost-row strong {
  color: var(--text);
  font-size: 15px;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.vehicle-detail-block {
  min-width: 0;
}

.vehicle-timeline,
.vehicle-cost-list {
  display: grid;
  gap: 10px;
}

.vehicle-timeline-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(51, 65, 85, 0.48);
  border-radius: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.22);
}

.vehicle-timeline-item__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
}

.vehicle-timeline-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vehicle-timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .vehicle-detail-overview,
  .vehicle-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .equipment-work-card {
    grid-template-columns: 1fr;
  }

  .equipment-work-report__header,
  .equipment-work-report__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .equipment-work-report__summary {
    grid-template-columns: 1fr;
  }

  .equipment-work-report__actions .btn {
    width: 100%;
  }

  .equipment-work-card .btn {
    width: 100%;
  }

  .utility-card {
    grid-template-columns: 1fr;
  }

  .utility-card__stats,
  .equipment-report-card,
  .equipment-report-card__metrics {
    grid-template-columns: 1fr;
  }

  .utility-card__actions {
    grid-column: auto;
  }

  .utility-card__actions .btn {
    width: 100%;
  }

  #masiniSection.vehicle-section--utility .utility-card {
    grid-template-columns: 1fr;
  }

#masiniSection.vehicle-section--utility .utility-card__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

  #sculeSection .tools-filter-row,
  .tool-list-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-workspace {
    grid-template-columns: 1fr;
  }

  .tools-workspace__side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .tool-selected-card {
    max-height: none;
  }

  .tool-list-card {
    grid-template-columns: 42px 82px minmax(0, 1fr);
  }

  .tool-list-card__actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .today-card--wide {
    grid-column: span 1;
  }

  #avizeSection .module-form,
  #sculeSection .module-form,
  #cereriMaterialeSection .module-form,
  #masiniSection .module-form,
  #avizeSection .filters-row,
  #sculeSection .filters-row,
  #cereriMaterialeSection .filters-row,
  #masiniSection .filters-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-search-control,
  .tools-results-meta,
  .tools-pagination {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tools-pagination {
    grid-template-columns: 1fr auto 1fr;
  }

  #avizeSection .card,
  #sculeSection .card,
  #cereriMaterialeSection .card,
  #masiniSection .card {
    padding: 12px;
    border-radius: 14px;
  }

  #masiniSection.vehicle-section--utility .utility-card__stats {
    grid-template-columns: 1fr;
  }

  #avizeSection .card__header,
  #sculeSection .card__header,
  #cereriMaterialeSection .card__header {
    align-items: flex-start;
    gap: 8px;
  }

  #avizeSection .table-wrapper,
  #sculeSection .table-wrapper,
  #cereriMaterialeSection .table-wrapper {
    margin-inline: -4px;
  }

  .tools-header-actions {
    justify-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .tools-header-actions__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tools-header-actions__buttons .btn {
    width: 100%;
    min-height: 44px;
  }

  .tool-qr-bulk-toolbar,
  .tool-qr-bulk-toolbar__actions,
  .tool-qr-bulk-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .tool-qr-bulk-toolbar__actions .btn,
  .tool-qr-bulk-controls .btn {
    width: 100%;
  }

  #avizeSection .table-wrapper table,
  #sculeSection .table-wrapper table,
  #cereriMaterialeSection .table-wrapper table {
    min-width: 560px;
  }

  #sculeSection .table-wrapper table {
    min-width: 640px;
  }

  .tool-qr-panel,
  .tool-qr-label__body {
    grid-template-columns: 1fr;
  }

  .tool-list-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .tool-list-card__qr {
    justify-content: start;
  }

  .tool-list-card__qr .tool-qr-mini {
    width: 86px;
    min-width: 86px;
  }

  .tool-list-card__qr .tool-qr-mini svg {
    width: 72px;
    height: 72px;
  }

  .tool-list-card__head {
    display: grid;
  }

  .tool-list-card__badges {
    justify-content: flex-start;
  }

  .tool-list-card__meta,
  .tool-selected-summary__grid,
  .tool-form-grid,
  #toolForm .tool-qr-panel .module-form__actions--compact {
    grid-template-columns: 1fr;
  }

  .tool-list-card__actions {
    grid-template-columns: 1fr;
  }

  .tool-list-card__actions .btn {
    min-height: 44px;
  }

  .owner-metric-grid,
  .owner-dashboard-card--finance .owner-metric-grid,
  .owner-top-site {
    grid-template-columns: 1fr;
  }

  .owner-top-site__value {
    white-space: normal;
  }

  .tool-qr-panel__preview {
    width: 100%;
    min-height: auto;
  }

  .tool-qr-panel .module-form__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #cereriMaterialeSection .table-wrapper table {
    min-width: 0;
  }

  #cereriMaterialeSection .table-wrapper thead {
    display: none;
  }

  #cereriMaterialeSection .table-wrapper table,
  #cereriMaterialeSection .table-wrapper tbody,
  #cereriMaterialeSection .table-wrapper tr,
  #cereriMaterialeSection .table-wrapper td {
    display: block;
    width: 100%;
  }

  #cereriMaterialeSection .table-wrapper tr {
    padding: 12px;
    border: 1px solid rgba(71, 85, 105, 0.68);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
  }

  #cereriMaterialeSection .table-wrapper tbody {
    display: grid;
    gap: 10px;
  }

  #cereriMaterialeSection .table-wrapper td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  #cereriMaterialeSection .table-wrapper td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  #cereriMaterialeSection .table-wrapper td[data-label="Status"] {
    align-items: flex-start;
  }

  #cereriMaterialeSection .material-request-status-stack {
    justify-content: flex-end;
  }

  #cereriMaterialeSection .table-wrapper .empty-cell {
    display: block;
    text-align: center;
  }

  #cereriMaterialeSection .table-wrapper .empty-cell::before {
    content: "";
  }

  .request-item-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .request-item-card__main {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .request-item-card__main strong {
    font-size: 1rem;
  }

  .request-item-card__field,
  .request-item-card__total {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .request-item-card__total strong {
    text-align: left;
  }

  .request-item-card__check {
    justify-content: center;
    width: 100%;
    border-radius: 12px;
  }

  .request-item-card__actions .btn {
    width: 100%;
  }
}

/* Compactare globala: pagina nu trebuie sa faca scroll orizontal. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell,
.main-content,
.app-section,
.section-intro,
.card,
.module-grid,
.module-grid--stacked,
.operations-grid,
.filters-row,
.module-form,
.table-wrapper {
  min-width: 0;
  max-width: 100%;
}

.main-content {
  overflow-x: clip;
}

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

table {
  table-layout: auto;
}

th,
td {
  max-width: 260px;
  overflow-wrap: anywhere;
  word-break: normal;
}

#bazinMotorinaSection .module-grid--stacked {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: start;
}

#bazinMotorinaSection .module-grid--stacked > .module-grid--tank-operation {
  grid-template-columns: minmax(0, 1fr);
}

#bazinMotorinaSection .tank-latest-transactions {
  grid-column: 1 / -1;
}

#bazinMotorinaSection .module-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#bazinMotorinaSection .module-form__actions {
  flex-wrap: wrap;
}

#bazinMotorinaSection .module-form__actions .btn {
  flex: 1 1 130px;
}

#bazinMotorinaSection .table-wrapper table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#alimentariUtilajeSection .module-grid--equipment-fuel {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  grid-template-areas:
    "list form"
    "export form";
  align-items: start;
}

#alimentariUtilajeSection .equipment-fuel-list-card {
  grid-area: list;
}

#alimentariUtilajeSection .equipment-fuel-export-card {
  grid-area: export;
}

#alimentariUtilajeSection .equipment-fuel-form-card {
  grid-area: form;
}

#alimentariUtilajeSection .equipment-fuel-form-card .module-form {
  grid-template-columns: minmax(0, 1fr);
}

#alimentariUtilajeSection .equipment-fuel-form-card .module-form__actions {
  flex-wrap: wrap;
}

#alimentariUtilajeSection .equipment-fuel-form-card .module-form__actions .btn {
  flex: 1 1 150px;
}

#fuelContainersSection {
  overflow-x: hidden;
}

#fuelContainersSection .module-grid--stacked {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

#fuelContainersSection .module-grid--stacked > article:first-child {
  grid-column: 1;
  grid-row: 1;
}

#fuelContainersSection .module-grid--stacked > .module-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

#fuelContainersSection .module-grid--stacked > article:last-child {
  grid-column: 1;
  grid-row: 2;
}

#fuelContainersSection .card,
#fuelContainersSection .module-form,
#fuelContainersSection .table-wrapper {
  min-width: 0;
  max-width: 100%;
}

#fuelContainersSection .module-form {
  grid-template-columns: 1fr;
}

#fuelContainersSection input,
#fuelContainersSection select,
#fuelContainersSection textarea {
  width: 100%;
  min-width: 0;
}

#fuelContainersSection .module-form__actions {
  flex-wrap: wrap;
}

#fuelContainersSection .module-form__actions .btn {
  flex: 1 1 160px;
}

#fuelContainersSection .table-wrapper table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#fuelContainersSection th,
#fuelContainersSection td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

#fuelContainersSection .fuel-container-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.35);
}

#fuelContainersSection .fuel-container-filters input,
#fuelContainersSection .fuel-container-filters select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

#fuelContainersSection .fuel-container-filters input:focus,
#fuelContainersSection .fuel-container-filters select:focus {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

#fuelContainersSection .fuel-container-filters .btn {
  min-height: 42px;
  width: 100%;
}

#fuelContainersSection .fuel-container-immediate {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

#fuelContainersSection .fuel-container-immediate input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

#fuelContainersSection .fuel-inventory-card {
  gap: 16px;
  scroll-margin-top: 24px;
}

#fuelContainersSection .fuel-inventory-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#fuelContainersSection .fuel-inventory-form .module-form__textarea,
#fuelContainersSection .fuel-inventory-form .module-form__actions,
#fuelContainersSection .fuel-inventory-form .message {
  grid-column: 1 / -1;
}

#fuelContainersSection .ledger-anomaly--negative {
  color: #f87171;
  font-weight: 700;
}

#fuelContainersSection tr.ledger-anomaly--negative {
  background: rgba(239, 68, 68, 0.08);
}

#fuelContainersSection .ledger-anomaly--capacity {
  color: #fb923c;
  font-weight: 700;
}

#fuelContainersSection tr.ledger-anomaly--capacity {
  background: rgba(249, 115, 22, 0.1);
}

#fuelContainersSection .ledger-anomaly__hint {
  display: inline-block;
  margin-top: 4px;
  color: currentColor;
  font-size: 11px;
  line-height: 1.25;
}

#atelierSection {
  overflow-x: hidden;
}

#atelierSection .atelier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

#atelierSection .atelier-layout > article:first-child {
  grid-column: 1;
  grid-row: 1;
}

#atelierSection .atelier-layout > .module-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

#atelierSection .atelier-layout > article:last-child {
  grid-column: 1;
  grid-row: 2;
}

#atelierSection .card,
#atelierSection .module-form,
#atelierSection .table-wrapper {
  min-width: 0;
  max-width: 100%;
}

#atelierSection .module-form {
  grid-template-columns: 1fr;
}

#atelierSection input,
#atelierSection select,
#atelierSection textarea {
  width: 100%;
  min-width: 0;
}

#atelierSection .module-form__actions {
  flex-wrap: wrap;
}

#atelierSection .module-form__actions .btn {
  flex: 1 1 160px;
}

#atelierSection .table-wrapper table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#atelierSection th,
#atelierSection td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

#atelierSection .workshop-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

#bazinMotorinaSection th,
#bazinMotorinaSection td {
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: normal;
}

#avizeSection .table-wrapper table,
#sculeSection .table-wrapper table,
#cereriMaterialeSection .table-wrapper table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#avizeSection th,
#avizeSection td,
#sculeSection th,
#sculeSection td,
#cereriMaterialeSection th,
#cereriMaterialeSection td {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  #bazinMotorinaSection .module-grid--stacked,
  #bazinMotorinaSection .module-grid--stacked > .module-grid,
  #alimentariUtilajeSection .module-grid--equipment-fuel {
    grid-template-columns: 1fr;
  }

  #alimentariUtilajeSection .module-grid--equipment-fuel {
    grid-template-areas:
      "list"
      "form"
      "export";
  }

  #bazinMotorinaSection .tank-latest-transactions {
    grid-column: auto;
  }

  #fuelContainersSection .module-grid--stacked {
    grid-template-columns: minmax(0, 1fr);
  }

  #atelierSection .atelier-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #fuelContainersSection .module-grid--stacked > article:first-child,
  #fuelContainersSection .module-grid--stacked > .module-grid,
  #fuelContainersSection .module-grid--stacked > article:last-child,
  #atelierSection .atelier-layout > article:first-child,
  #atelierSection .atelier-layout > .module-grid,
  #atelierSection .atelier-layout > article:last-child {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  #bazinMotorinaSection .module-form {
    grid-template-columns: 1fr;
  }

  #bazinMotorinaSection th,
  #bazinMotorinaSection td {
    font-size: 11px;
  }
}

/* Repair V4: searchable site selectors + safer compact tables */
.search-select {
  position: relative;
  min-width: 0;
  width: 100%;
}

.search-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-select__input {
  width: 100%;
}

.search-select__results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-select__results button,
.search-select__empty {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.search-select__results button:hover {
  background: rgba(37, 99, 235, 0.16);
}

.search-select__empty {
  color: var(--muted);
  cursor: default;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  min-width: 720px;
  table-layout: auto;
}

.table-wrapper th,
.table-wrapper td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .app-shell {
    display: block;
  }

  .main-content {
    padding: 12px;
    padding-bottom: 120px;
  }

  .module-grid,
  .module-grid.module-grid--stacked,
  .content-grid,
  .today-grid,
  .priority-grid,
  .cards-grid,
  .summary-grid {
    grid-template-columns: 1fr !important;
  }

  .filters-row,
  .filters-row--compact,
  .module-form,
  .module-form--inline {
    grid-template-columns: 1fr !important;
  }

  .filters-row,
  .filters-row--compact,
  .module-form,
  .module-form--inline {
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .filters-row > *,
  .filters-row--compact > *,
  .module-form > *,
  .module-form--inline > *,
  .module-form__field,
  .field-stack {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .filters-row input,
  .filters-row select,
  .filters-row textarea,
  .filters-row button,
  .module-form input,
  .module-form select,
  .module-form textarea,
  .module-form button,
  .module-form__textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .module-form__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .module-form__actions .btn,
  .filters-row .btn,
  .filters-row--compact .btn,
  .export-card .btn {
    width: 100%;
    min-height: 44px;
  }

  .card,
  .section-intro {
    padding: 12px;
    border-radius: 16px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
  }

  .topbar h2 {
    font-size: 22px;
  }

  .table-wrapper table {
    min-width: 760px;
  }

  .table-wrapper--compact table {
    min-width: 640px;
  }

  .mobile-driver-nav {
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  }
}


/* Facturi & Incasari V9 layout fix */
#facturiIncasariSection .dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

#facturiIncasariSection .stat-card span,
#facturiIncasariSection .stat-card strong {
  display: block;
}

#facturiIncasariSection .stat-card span {
  margin-bottom: 8px;
  line-height: 1.25;
}

#facturiIncasariSection .stat-card strong {
  font-size: 22px;
  line-height: 1.15;
  word-break: keep-all;
  white-space: normal;
}

#facturiIncasariSection .module-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

#facturiIncasariSection .module-form__actions {
  grid-column: 1 / -1;
}

#facturiIncasariSection .table-wrapper table {
  min-width: 900px;
}

#facturiIncasariSection .actions-cell {
  min-width: 260px;
}

@media (max-width: 1280px) {
  #facturiIncasariSection .module-grid,
  #facturiIncasariSection .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== AVIZ - SEMNATURI & STAMPILA ===== */

.signature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 80px;
  text-align: center;
  font-size: 13px;
}

.signature-box--supplier img {
  display: block;
  width: 60mm;       /* marime mai mare */
  max-height: 40mm;
  height: auto;
  object-fit: contain;
  margin-top: 6px;
}
.btn--xs { padding: 0.35rem 0.55rem; min-height: 0; font-size: 0.78rem; }
.table-row--active { outline: 1px solid var(--accent, #2563eb); background: rgba(37, 99, 235, 0.12); }


/* Devize pe santier - compact polish */
.estimate-form,
.estimate-line-form {
  align-items: end;
  gap: 10px;
}

.estimate-form label,
.estimate-line-form label {
  min-width: 0;
}

.estimate-summary-message {
  padding: 0;
  background: transparent;
  border: 0;
}

.estimate-summary-card {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.estimate-summary-card > div {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-muted);
}

.estimate-summary-card span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.estimate-summary-card strong {
  display: block;
  color: var(--text-color);
  font-size: 15px;
}

@media (max-width: 900px) {
  .estimate-summary-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .estimate-summary-card {
    grid-template-columns: 1fr;
  }
}

.estimate-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) 110px minmax(220px, 1.2fr);
}

.estimate-form .form-actions,
.estimate-line-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.estimate-line-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(220px, 1.4fr) 90px 120px 130px;
  align-items: end;
}

.estimate-line-form input,
.estimate-line-form select,
.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  min-width: 0;
}

@media (max-width: 1200px) {
  .estimate-form,
  .estimate-line-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .estimate-form,
  .estimate-line-form {
    grid-template-columns: 1fr;
  }
}

/* Devize - aliniere vizuala cu modulele operationale */
#devizeSection.hidden {
  display: none;
}

#devizeSection:not(.hidden) {
  display: grid;
  gap: 14px;
}

#devizeSection .devize-card {
  overflow: hidden;
}

#devizeSection .card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#devizeSection .card__hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

#devizeSection .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0 14px;
}

#devizeSection .form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#devizeSection .form-grid input,
#devizeSection .form-grid select,
#devizeSection .form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

#devizeSection .form-grid textarea {
  min-height: 76px;
  resize: vertical;
}

#devizeSection .form-grid__wide {
  grid-column: span 2;
}

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

#devizeSection .form-actions .btn,
#devizeSection #addWorkItemBtn {
  min-height: 42px;
  padding: 10px 16px;
}

#devizeSection .table-wrapper {
  margin-top: 8px;
  border-radius: 16px;
}

#devizeSection .table-wrapper table {
  width: 100%;
  min-width: 780px;
}

#devizeSection .table-wrapper th,
#devizeSection .table-wrapper td {
  padding: 10px 12px;
  vertical-align: middle;
}

#devizeSection .table-row--active {
  background: rgba(37, 99, 235, 0.16);
  outline: 1px solid rgba(37, 99, 235, 0.8);
}

#devizeSection .estimate-summary-message {
  margin: 12px 0;
}

#devizeSection .estimate-summary-card {
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

#devizeSection .estimate-cost-card,
#devizeSection .estimate-financial-card,
#devizeSection #workSituationPanel {
  margin-top: 14px;
  box-shadow: none;
}

#devizeSection .estimate-line-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  #devizeSection .card__header {
    flex-direction: column;
  }

  #devizeSection .form-grid,
  #devizeSection .estimate-form,
  #devizeSection .estimate-line-form {
    grid-template-columns: 1fr !important;
  }

  #devizeSection .form-grid__wide {
    grid-column: auto;
  }
}


/* Contracte / Comenzi client - layout aliniat cu restul modulelor ERP */
#contracteClientSection:not(.hidden) {
  display: grid;
  gap: 14px;
}

#contracteClientSection .module-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  align-items: start;
}

#contracteClientSection .card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#contracteClientSection .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 10px 0 0;
}

#contracteClientSection .form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#contracteClientSection .form-grid input,
#contracteClientSection .form-grid select,
#contracteClientSection .form-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  padding: 9px 11px;
  font: inherit;
}

#contracteClientSection .form-grid textarea {
  min-height: 76px;
  resize: vertical;
}

#contracteClientSection .form-grid__wide,
#contracteClientSection .form-actions {
  grid-column: 1 / -1;
}

#contracteClientSection .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

#contracteClientSection .table-wrapper table {
  min-width: 940px;
}

#contracteClientSection .table-wrapper th,
#contracteClientSection .table-wrapper td {
  padding: 10px 12px;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  #contracteClientSection .module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #contracteClientSection .card__header {
    flex-direction: column;
  }

  #contracteClientSection .form-grid {
    grid-template-columns: 1fr !important;
  }
}

.erp-priority-item.alert-success {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(22, 101, 52, 0.16);
}

.erp-priority-item.alert-warning {
  border-color: rgba(234, 179, 8, 0.48);
  background: rgba(113, 63, 18, 0.18);
}

.erp-priority-item.alert-orange {
  border-color: rgba(249, 115, 22, 0.52);
  background: rgba(124, 45, 18, 0.2);
}

.erp-priority-item.alert-danger {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(127, 29, 29, 0.22);
}

.erp-priority-item.alert-critical {
  border-color: rgba(190, 18, 60, 0.72);
  background: rgba(76, 5, 25, 0.34);
  box-shadow: inset 3px 0 0 rgba(244, 63, 94, 0.8);
}

.erp-priority-label {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.erp-document-alerts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.erp-document-alerts.hidden {
  display: none;
}

.erp-document-alerts__title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.erp-document-alert {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
}

.erp-document-alert strong,
.erp-document-alert span,
.erp-document-alert em {
  display: block;
}

.erp-document-alert span,
.erp-document-alert em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.erp-document-alert__meta {
  min-width: 120px;
  text-align: right;
}

.erp-document-alert__content {
  display: grid;
  gap: 3px;
}

.document-status-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.document-status-badge.status-success {
  color: #bbf7d0 !important;
  background: rgba(22, 101, 52, 0.36);
  border-color: rgba(34, 197, 94, 0.48);
}

.document-status-badge.status-warning {
  color: #fef08a !important;
  background: rgba(113, 63, 18, 0.38);
  border-color: rgba(234, 179, 8, 0.55);
}

.document-status-badge.status-orange {
  color: #fed7aa !important;
  background: rgba(124, 45, 18, 0.42);
  border-color: rgba(249, 115, 22, 0.62);
}

.document-status-badge.status-danger {
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(239, 68, 68, 0.68);
}

.document-status-badge.status-critical {
  color: #ffe4e6 !important;
  background: rgba(76, 5, 25, 0.68);
  border-color: rgba(190, 18, 60, 0.78);
}

.document-admin-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.erp-document-alert.alert-success {
  border-color: rgba(34, 197, 94, 0.34);
}

.erp-document-alert.alert-warning {
  border-color: rgba(234, 179, 8, 0.5);
}

.erp-document-alert.alert-orange {
  border-color: rgba(249, 115, 22, 0.55);
}

.erp-document-alert.alert-danger {
  border-color: rgba(239, 68, 68, 0.58);
}

.erp-document-alert.alert-critical {
  border-color: rgba(190, 18, 60, 0.75);
  background: rgba(76, 5, 25, 0.3);
}

:root[data-theme="light"] .erp-priority-item.alert-success,
body.light-theme .erp-priority-item.alert-success {
  background: rgba(220, 252, 231, 0.85);
}

:root[data-theme="light"] .erp-priority-item.alert-warning,
body.light-theme .erp-priority-item.alert-warning {
  background: rgba(254, 249, 195, 0.9);
}

:root[data-theme="light"] .erp-priority-item.alert-orange,
body.light-theme .erp-priority-item.alert-orange {
  background: rgba(255, 237, 213, 0.92);
}

:root[data-theme="light"] .erp-priority-item.alert-danger,
body.light-theme .erp-priority-item.alert-danger {
  background: rgba(254, 226, 226, 0.92);
}

:root[data-theme="light"] .erp-priority-item.alert-critical,
body.light-theme .erp-priority-item.alert-critical {
  background: rgba(255, 228, 230, 0.95);
}

@media (max-width: 720px) {
  .erp-priority-item {
    flex-wrap: wrap;
  }

  .erp-priority-label {
    width: 100%;
    text-align: center;
  }

  .erp-document-alert {
    flex-direction: column;
  }

  .erp-document-alert__meta {
    min-width: 0;
    text-align: left;
  }
}

.role-permissions-card {
  grid-column: 1 / -1;
}

.role-permissions-table-wrapper {
  max-height: 520px;
}

.role-permissions-table th,
.role-permissions-table td {
  text-align: center;
  vertical-align: middle;
}

.role-permissions-table th:first-child,
.role-permissions-table td:first-child {
  min-width: 190px;
  text-align: left;
}

.role-permissions-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.role-permissions-table .role-permission-module {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-permissions-table .role-permission-module small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .role-permissions-table {
    min-width: 760px;
  }
}

@media (max-width: 640px) {
  #cereriMaterialeSection .table-wrapper table {
    min-width: 0 !important;
  }

  #cereriMaterialeSection .request-panel--positions {
    padding: 12px;
  }

  .topbar__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-user {
    width: 100%;
  }

  .active-role-switcher {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .active-role-switcher__select {
    width: 100%;
  }

  .notifications-menu,
  .notifications-menu .btn,
  .sync-menu,
  .sync-menu .btn {
    width: 100%;
  }

  .notifications-panel,
  .sync-panel {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 32px));
  }

  .notification-item__footer,
  .notification-item__meta,
  .sync-item__top,
  .sync-item__meta,
  .sync-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Utilaje: override final pentru carduri late si lizibile pe desktop */
#masiniSection.vehicle-section--utility {
  width: 100%;
  max-width: none;
  overflow-x: hidden;
}

#masiniSection.vehicle-section--utility .module-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: none;
  gap: 16px;
  align-items: stretch;
}

#masiniSection.vehicle-section--utility .module-grid > .card,
#masiniSection.vehicle-section--utility .table-wrapper,
#masiniSection.vehicle-section--utility .table-wrapper table,
#masiniSection.vehicle-section--utility .table-wrapper tbody,
#masiniSection.vehicle-section--utility .table-wrapper tr,
#masiniSection.vehicle-section--utility .table-wrapper td,
#masiniSection.vehicle-section--utility .utility-card-list,
#masiniSection.vehicle-section--utility .utility-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

#masiniSection.vehicle-section--utility .table-wrapper,
#masiniSection.vehicle-section--utility .table-wrapper table,
#masiniSection.vehicle-section--utility .table-wrapper tbody,
#masiniSection.vehicle-section--utility .table-wrapper tr,
#masiniSection.vehicle-section--utility .table-wrapper td {
  display: block !important;
}

#masiniSection.vehicle-section--utility .table-wrapper {
  overflow-x: hidden !important;
}

#masiniSection.vehicle-section--utility .utility-card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 12px;
}

#masiniSection.vehicle-section--utility .utility-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}

#masiniSection.vehicle-section--utility .utility-card__top {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
}

#masiniSection.vehicle-section--utility .utility-card__title {
  min-width: 0;
  white-space: normal;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

#masiniSection.vehicle-section--utility .utility-card__stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

#masiniSection.vehicle-section--utility .utility-card__actions {
  justify-content: flex-start;
  align-items: center;
}

.equipment-management-tabs {
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.equipment-management-panel {
  display: grid;
  gap: 14px;
}

.equipment-management-summary {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.equipment-management-panel .card__header {
  gap: 12px;
}

.equipment-maintenance-panel {
  display: grid;
  gap: 16px;
}

.equipment-maintenance-form {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.equipment-maintenance-form .module-form__actions,
.equipment-maintenance-form .message {
  grid-column: 1 / -1;
}

.equipment-maintenance-list {
  width: 100%;
  overflow-x: auto;
}

.equipment-maintenance-template-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}

.equipment-maintenance-template-list {
  display: grid;
  gap: 8px;
}

.equipment-maintenance-template-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.equipment-maintenance-template-card p {
  margin: 4px 0 0;
  color: var(--muted-text);
}

.equipment-maintenance-template-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.equipment-maintenance-table {
  min-width: 980px;
}

.equipment-maintenance-table small {
  color: var(--muted-text);
}

.equipment-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.maintenance-execution-form {
  display: grid;
  gap: 14px;
}

.maintenance-execution-context {
  display: grid;
  gap: 4px;
}

.maintenance-execution-section {
  display: grid;
  gap: 8px;
}

.maintenance-execution-section h4 {
  margin: 0;
  font-size: 0.95rem;
}

.maintenance-execution-task {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.26);
}

.maintenance-execution-parts {
  display: grid;
  gap: 8px;
}

.maintenance-execution-part {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 110px;
  gap: 8px;
  align-items: center;
}

.maintenance-execution-part input {
  min-width: 0;
}

@media (max-width: 700px) {
  #masiniSection.vehicle-section--utility .utility-card__top,
  #masiniSection.vehicle-section--utility .utility-card__stats {
    grid-template-columns: 1fr !important;
  }

  #masiniSection.vehicle-section--utility .utility-card__actions .btn {
    width: 100%;
  }

  .equipment-maintenance-form {
    grid-template-columns: 1fr;
  }

  .equipment-maintenance-template-card {
    flex-direction: column;
  }

  .equipment-maintenance-template-card__meta {
    justify-content: flex-start;
  }

  .maintenance-execution-part {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.field-role-mode {
    overflow-x: hidden;
  }

  body.field-role-mode .module-grid,
  body.field-role-mode .cards-grid,
  body.field-role-mode .filters-row,
  body.field-role-mode .form-grid,
  body.field-role-mode .module-form,
  body.field-role-mode .module-form__grid,
  body.field-role-mode .module-form__actions,
  body.field-role-mode .toolbar,
  body.field-role-mode .quick-actions,
  body.field-role-mode .equipment-report-filters,
  body.field-role-mode .stock-movement-grid,
  body.field-role-mode .material-request-grid {
    grid-template-columns: 1fr !important;
    flex-direction: column;
    align-items: stretch;
  }

  body.field-role-mode .card,
  body.field-role-mode .module-card,
  body.field-role-mode .panel,
  body.field-role-mode .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    height: auto;
    min-height: 0;
  }

body.field-role-mode input:not([type="checkbox"]):not([type="radio"]),
body.field-role-mode select,
body.field-role-mode textarea,
body.field-role-mode .btn,
body.field-role-mode button[type="submit"],
body.field-role-mode .module-form__actions button,
body.field-role-mode .filters-row button {
  width: 100%;
  min-width: 0;
}
}

.workspace-shell {
  --workspace-accent: #4f46e5;
  --workspace-accent-strong: #312e81;
  --workspace-accent-soft: #eef2ff;
  --workspace-text: #0f172a;
  --workspace-muted: #475569;
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 24px;
  color: var(--workspace-text);
}

.workspace-header,
.workspace-card,
.metric-card,
.action-card,
.quick-action-card,
.timeline-card,
.notification-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}

.workspace-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  color: #0f172a;
}

.workspace-subtitle {
  margin: 0 0 8px;
  color: var(--workspace-muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.card__header h4,
.card__header--compact h4 {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.workspace-card {
  padding: 20px;
}

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

.metric-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.metric-card span,
.metric-card small {
  color: var(--workspace-muted);
}

.metric-card span {
  font-size: 14px;
  font-weight: 500;
}

.metric-card strong {
  color: #0f172a;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  word-break: break-word;
}

.metric-card small {
  color: #334155;
  font-size: 14px;
}

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

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

.action-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--workspace-accent) 42%, transparent);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.action-card .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  font-size: 24px;
}

.action-card strong {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.action-card small {
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.mobile-workspace {
  background: #f4f6f8;
}

.desktop-workspace {
  background: #f8fafc;
}

.role-accent-driver { --workspace-accent: #6366f1; --workspace-accent-strong: #3730a3; --workspace-accent-soft: #eef2ff; }
.role-accent-operator { --workspace-accent: #f59e0b; --workspace-accent-strong: #1f2937; --workspace-accent-soft: #fff7ed; }
.role-accent-warehouse { --workspace-accent: #16a34a; --workspace-accent-strong: #166534; --workspace-accent-soft: #ecfdf5; }
.role-accent-site { --workspace-accent: #f97316; --workspace-accent-strong: #9a3412; --workspace-accent-soft: #fff7ed; }
.role-accent-admin { --workspace-accent: #8b5cf6; --workspace-accent-strong: #5b21b6; --workspace-accent-soft: #f5f3ff; }

.next-home,
.object-shell,
.object-page {
  align-content: start;
}

.next-context-card,
.object-header,
.object-page__header,
.next-search,
.next-status-list,
.timeline-list {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.next-context-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: min(360px, 100%);
  padding: 16px;
}

.next-context-card .material-symbols-outlined,
.object-page__title .material-symbols-outlined {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
}

.next-context-card small,
.object-page__title small,
.object-result-card small {
  color: var(--workspace-muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.next-context-card strong,
.object-result-card strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.next-context-card p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.next-search {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.next-search__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  padding: 10px 14px;
  background: #f8fafc;
}

.next-search__bar .material-symbols-outlined {
  color: var(--workspace-accent-strong);
}

.next-search__bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--workspace-text);
  font: inherit;
  font-weight: 750;
}

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

.object-result-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
}

.object-result-card span {
  display: block;
  margin-top: 3px;
  color: #334155;
  font-size: 14px;
}

.next-status-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.next-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.next-status-row:last-child {
  border-bottom: 0;
}

.next-status-row span {
  color: var(--workspace-muted);
  font-size: 14px;
  font-weight: 500;
}

.next-status-row strong {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.object-header,
.object-page__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

#vehicleObjectHeader {
  display: grid;
  align-items: stretch;
}

.object-header__main,
.vehicle-object-header__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 16px;
  align-items: center;
  width: 100%;
}

.object-title,
.object-page__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.object-title h2,
.object-page__title h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 700;
}

.object-subtitle,
.object-page__meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #475569;
  text-align: right;
  font-size: 14px;
}

.object-subtitle strong,
.object-page__meta strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
}

.vehicle-object-timeline-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.vehicle-object-timeline-card .card__header--compact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vehicle-object-timeline-card .card__header--compact h4 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.vehicle-object-timeline-card .badge--neutral {
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.object-selector,
.vehicle-object-switcher {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.object-selector label,
.vehicle-object-switcher label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.object-selector__select,
.vehicle-object-switcher select {
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
}

.object-nav-prev,
.object-nav-next,
.vehicle-object-switcher__btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

.object-context-bar,
.vehicle-object-context-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.object-context-item,
.vehicle-object-context-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.object-context-item small,
.vehicle-object-context-pill small {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.object-context-item strong,
.vehicle-object-context-pill strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.vehicle-object-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}

.vehicle-object-layout__wide {
  grid-column: 1 / -1;
}

.vehicle-object-context__grid {
  display: grid;
  gap: 10px;
}

.object-related-card,
.vehicle-object-context__row,
.vehicle-object-related-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.object-related-card span,
.vehicle-object-context__row span,
.vehicle-object-related-card span {
  color: var(--workspace-muted);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.object-related-card strong,
.vehicle-object-context__row strong,
.vehicle-object-related-card strong {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.object-related-card small,
.vehicle-object-context__row small,
.vehicle-object-related-card small {
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.object-related-grid,
.vehicle-object-related {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-object-related-card {
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vehicle-object-related-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--workspace-accent) 38%, transparent);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.object-tabs-card,
.vehicle-object-tabs-card {
  display: grid;
  gap: 14px;
}

.object-tabs,
.vehicle-object-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.object-tab,
.vehicle-object-tab {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.object-tab--active,
.vehicle-object-tab--active {
  border-color: color-mix(in srgb, var(--workspace-accent) 44%, transparent);
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
}

.object-tab-content,
.vehicle-object-tab-content {
  min-width: 0;
}

.object-tab-panel {
  min-width: 0;
}

.vehicle-object-overview,
.object-selector-list,
.vehicle-object-selector-list {
  display: grid;
  gap: 14px;
}

.object-attention-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.object-attention-section__header {
  margin-bottom: 0;
}

.action-engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.action-engine-card {
  min-height: 116px;
  text-align: left;
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.action-engine-card .material-symbols-outlined {
  color: var(--workspace-accent-strong);
}

.action-engine-card--high,
.action-engine-card--critical {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff7ed;
}

.action-engine-card--danger .material-symbols-outlined,
.action-engine-card--warning .material-symbols-outlined {
  color: #b45309;
}

.action-engine-card__deadline {
  color: #92400e;
  font-weight: 700;
}

.inbox-shell {
  gap: 16px;
}

.next-home-inbox,
.inbox-controls-card,
.inbox-list-card {
  display: grid;
  gap: 12px;
}

.inbox-preview-list .inbox-list {
  gap: 10px;
}

.inbox-list {
  display: grid;
  gap: 12px;
}

.inbox-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.inbox-item--high,
.inbox-item--critical,
.inbox-item--urgent,
.inbox-item--danger {
  border-color: rgba(185, 28, 28, 0.24);
  background: #fff7ed;
}

.inbox-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
}

.inbox-item__icon .material-symbols-outlined {
  font-size: 25px;
}

.inbox-item__body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.inbox-item__heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.inbox-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.inbox-item__meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.inbox-item h4 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.inbox-item__priority {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.inbox-item--high .inbox-item__priority,
.inbox-item--critical .inbox-item__priority,
.inbox-item--urgent .inbox-item__priority,
.inbox-item--danger .inbox-item__priority {
  background: #ffedd5;
  color: #9a3412;
}

.inbox-item__object {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.inbox-item__deadline {
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.inbox-item p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.inbox-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inbox-item--compact {
  grid-template-columns: auto minmax(0, 1fr);
}

.inbox-item--compact .inbox-item__actions {
  grid-column: 2;
  justify-content: flex-start;
}

.inbox-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.inbox-filters {
  flex-wrap: wrap;
}

/* MAVENTERA visual alignment */
.app-shell {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #020617 0%, #071426 48%, #020617 100%);
}

.sidebar {
  background: rgba(2, 8, 23, 0.9);
  border-right-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.sidebar__brand h1,
.sidebar__user-name,
.topbar h2 {
  color: #f8fafc;
}

.nav-btn,
.sidebar-group__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  min-height: 48px;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  color: #dbeafe;
  font-size: 15px;
  font-weight: 700;
}

.nav-btn::before {
  content: "radio_button_unchecked";
  font-family: "Material Symbols Outlined";
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  color: #cbd5e1;
}

.nav-btn[data-section="home"]::before { content: "home"; }
.nav-btn[data-section="inbox"]::before { content: "inbox"; }
.nav-btn[data-section="dashboard"]::before { content: "dashboard"; }
.nav-btn[data-section="masini"]::before { content: "directions_car"; }
.nav-btn[data-section="alimentari"]::before { content: "local_gas_station"; }
.nav-btn[data-section="foi-parcurs"]::before { content: "route"; }
.nav-btn[data-section="atelier"]::before { content: "build"; }
.nav-btn[data-section="pontaj"]::before { content: "timer"; }
.nav-btn[data-section="users"]::before { content: "group"; }

.nav-btn--active {
  border-color: rgba(59, 130, 246, 0.7);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(29, 78, 216, 0.16));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.nav-btn--active::before {
  color: #ffffff;
}

.sidebar-group {
  border-color: transparent;
  background: transparent;
}

.sidebar-group__toggle {
  color: #94a3b8;
}

.main-content {
  background: transparent;
}

#homeSection,
#inboxSection,
#vehicleObjectSection,
#equipmentObjectSection,
#siteObjectSection {
  color: #e5edf7;
}

#homeSection .workspace-shell,
#inboxSection .workspace-shell,
#vehicleObjectSection .workspace-shell,
#equipmentObjectSection .workspace-shell,
#siteObjectSection .workspace-shell {
  --workspace-accent: #2563eb;
  --workspace-accent-strong: #2563eb;
  --workspace-accent-soft: rgba(37, 99, 235, 0.12);
  --workspace-text: #0f172a;
  --workspace-muted: #475569;
  max-width: none;
  padding: 0 0 28px;
}

#homeSection .workspace-header,
#inboxSection .workspace-header,
#vehicleObjectSection .workspace-header,
#equipmentObjectSection .workspace-header,
#siteObjectSection .workspace-header {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(8, 20, 38, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

#homeSection .workspace-title,
#inboxSection .workspace-title,
#vehicleObjectSection .workspace-title,
#equipmentObjectSection .workspace-title,
#siteObjectSection .workspace-title {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

#homeSection .workspace-subtitle,
#inboxSection .workspace-subtitle,
#vehicleObjectSection .workspace-subtitle,
#equipmentObjectSection .workspace-subtitle,
#siteObjectSection .workspace-subtitle,
#homeSection .next-home__summary,
#inboxSection .next-home__summary {
  color: #dbeafe;
  text-transform: none;
  letter-spacing: 0;
}

#homeSection .metric-grid,
#homeSection .next-home__main {
  display: none;
}

#homeSection .next-search,
#homeSection .next-home-inbox,
#homeSection .workspace-card:not(.inbox-controls-card):not(.inbox-list-card) {
  border-color: rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

#homeSection .next-search label,
#homeSection .card__header h4,
#homeSection .card__header--compact h4 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

#homeSection .card__hint {
  color: #475569;
}

.next-context-card {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

.next-context-card small,
.next-context-card p {
  color: #cbd5e1;
  text-transform: none;
}

.next-context-card strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.next-search__bar {
  border-color: #dbe3ef;
  background: #f8fafc;
}

.object-result-card {
  border-color: #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.object-result-card strong {
  color: #0f172a;
  font-weight: 800;
}

.object-result-card span,
.object-result-card small {
  color: #475569;
}

#homeActionGrid.next-action-grid .action-card,
#vehicleObjectActions.next-action-grid .action-card,
#equipmentObjectActions.next-action-grid .action-card,
#siteObjectActions.next-action-grid .action-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: #e5edf7;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.26);
}

#homeActionGrid.next-action-grid .action-card strong,
#vehicleObjectActions.next-action-grid .action-card strong,
#equipmentObjectActions.next-action-grid .action-card strong,
#siteObjectActions.next-action-grid .action-card strong {
  color: #ffffff;
}

#homeActionGrid.next-action-grid .action-card small,
#vehicleObjectActions.next-action-grid .action-card small,
#equipmentObjectActions.next-action-grid .action-card small,
#siteObjectActions.next-action-grid .action-card small {
  color: #cbd5e1;
}

.action-card .material-symbols-outlined,
.object-action-card .material-symbols-outlined {
  color: #60a5fa;
}

.next-home-inbox .inbox-item {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.next-home-inbox .inbox-item--high,
.next-home-inbox .inbox-item--critical,
.next-home-inbox .inbox-item--urgent,
.next-home-inbox .inbox-item--danger {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(90deg, #fff1f2, #fff7ed);
}

.next-home-inbox .inbox-item h4,
.next-home-inbox .inbox-item__object {
  color: #0f172a;
}

.next-home-inbox .inbox-item__deadline {
  color: #334155;
}

.next-home-inbox .inbox-item__actions .btn--primary,
.inbox-shell .inbox-item__actions .btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.inbox-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 22px;
  background: rgba(8, 20, 38, 0.78);
  box-shadow: 0 24px 62px rgba(2, 6, 23, 0.34);
}

.inbox-shell .workspace-header {
  border: 0;
  padding: 8px 0 4px;
  background: transparent;
  box-shadow: none;
}

.inbox-shell .inbox-controls-card,
.inbox-shell .inbox-list-card,
.inbox-shell .metric-card {
  border-color: rgba(148, 163, 184, 0.13);
  background: rgba(15, 28, 48, 0.72);
  color: #e5edf7;
  box-shadow: none;
}

.inbox-shell .metric-card span,
.inbox-shell .metric-card small,
.inbox-shell .card__hint {
  color: #cbd5e1;
}

.inbox-shell .metric-card strong,
.inbox-shell .card__header h4 {
  color: #ffffff;
}

.inbox-shell .activity-tab {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.52);
  color: #cbd5e1;
}

.inbox-shell .activity-tab--active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.inbox-shell .inbox-item {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 32, 55, 0.82);
  box-shadow: none;
}

.inbox-shell .inbox-item h4,
.inbox-shell .inbox-item__object {
  color: #ffffff;
}

.inbox-shell .inbox-item__deadline,
.inbox-shell .inbox-item p {
  color: #cbd5e1;
}

.inbox-shell .inbox-item__priority {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.inbox-shell .inbox-item--high .inbox-item__priority,
.inbox-shell .inbox-item--critical .inbox-item__priority,
.inbox-shell .inbox-item--urgent .inbox-item__priority,
.inbox-shell .inbox-item--danger .inbox-item__priority {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.inbox-shell .inbox-item__meta span {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

#vehicleObjectSection .metric-card,
#equipmentObjectSection .metric-card,
#siteObjectSection .metric-card,
#vehicleObjectSection .workspace-card,
#equipmentObjectSection .workspace-card,
#siteObjectSection .workspace-card,
#vehicleObjectSection .timeline-list,
#equipmentObjectSection .timeline-list,
#siteObjectSection .timeline-list,
#vehicleObjectSection .object-header,
#equipmentObjectSection .object-header,
#siteObjectSection .object-header {
  border-color: rgba(226, 232, 240, 0.92);
  background: #ffffff;
  color: #0f172a;
}

#vehicleObjectSection .workspace-header .object-title strong,
#equipmentObjectSection .workspace-header .object-title strong,
#siteObjectSection .workspace-header .object-title strong,
#vehicleObjectSection .metric-card strong,
#equipmentObjectSection .metric-card strong,
#siteObjectSection .metric-card strong {
  color: #0f172a;
}

#vehicleObjectSection .workspace-header .object-title small,
#equipmentObjectSection .workspace-header .object-title small,
#siteObjectSection .workspace-header .object-title small {
  color: #475569;
}

.action-engine-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
}

.action-engine-card .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.action-engine-card__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.action-engine-card strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.action-engine-card__object {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.action-engine-card__deadline {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.action-engine-card__priority {
  grid-column: 2;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.action-engine-card--high,
.action-engine-card--critical,
.action-engine-card--danger,
.action-engine-card--warning {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(90deg, #fff1f2, #fff7ed);
}

.action-engine-card--high .material-symbols-outlined,
.action-engine-card--critical .material-symbols-outlined,
.action-engine-card--danger .material-symbols-outlined,
.action-engine-card--warning .material-symbols-outlined {
  background: rgba(248, 113, 113, 0.14);
  color: #dc2626;
}

.action-engine-card--high .action-engine-card__priority,
.action-engine-card--critical .action-engine-card__priority,
.action-engine-card--danger .action-engine-card__priority,
.action-engine-card--warning .action-engine-card__priority {
  background: #ffedd5;
  color: #9a3412;
}

#homeSection .next-home-actions-card {
  border-color: rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

#homeActionGrid.next-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#homeSection #homeActionGrid.next-action-grid .action-card {
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-color: #dbe3ef;
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
}

#homeSection #homeActionGrid.next-action-grid .action-card strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

#homeSection #homeActionGrid.next-action-grid .action-card small {
  color: #475569;
}

#homeSection #homeActionGrid.next-action-grid .action-card .material-symbols-outlined {
  color: #2563eb;
}

.vehicle-object-tab-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.vehicle-object-tab-header strong {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.vehicle-object-tab-header span {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

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

.vehicle-object-list-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.vehicle-object-list-row__type {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.vehicle-object-list-row strong {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.vehicle-object-list-row small {
  color: #334155;
  font-size: 14px;
}

.empty-state {
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.object-empty-state,
.timeline-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(79, 70, 229, 0.28);
  border-radius: 18px;
  background: #f8fafc;
}

.object-empty-state > .material-symbols-outlined:first-child,
.timeline-empty-state__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 28px;
}

.object-empty-state strong,
.timeline-empty-state strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.object-empty-state p,
.timeline-empty-state p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.object-loading-state,
.object-error-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
}

.object-loading-state .material-symbols-outlined,
.object-error-state .material-symbols-outlined {
  color: var(--workspace-accent-strong);
}

.object-error-state p {
  margin: 4px 0 0;
  color: #334155;
}

.timeline-list {
  display: grid;
  gap: 0;
  padding: 8px;
}

#vehicleObjectTimeline.timeline-list {
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
}

.timeline-item + .timeline-item {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.activity-day {
  display: grid;
  gap: 0;
}

.activity-day + .activity-day {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.activity-day__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 4px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  font-size: 21px;
}

.timeline-item__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.timeline-time {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.timeline-title {
  color: #111827;
  font-size: 17px;
  font-weight: 600;
}

.timeline-meta {
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.driver-workspace {
  --field-control-bg: #ffffff;
  --field-control-muted-bg: #f8fafc;
  --field-control-icon-bg: #f1f5f9;
  --field-control-text: #0f172a;
  --field-control-muted: #64748b;
  --field-control-border: #e2e8f0;
  width: min(760px, 100%);
  margin: 0 auto;
  padding-bottom: 104px;
}

.driver-workspace__hero {
  min-height: auto;
  background:
    linear-gradient(135deg, #312e81 0%, #1e1b4b 58%, #0f766e 150%);
  color: #fff;
}

.driver-workspace__hero .workspace-subtitle,
.driver-workspace__summary {
  color: rgba(255, 255, 255, 0.8);
}

.driver-workspace__summary {
  max-width: 680px;
  margin: 8px 0 0;
  font-weight: 650;
  line-height: 1.45;
}

.driver-workspace__vehicle {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  place-items: center;
  width: 132px;
  min-height: 112px;
  border-radius: 26px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(199, 210, 254, 0.28);
  text-align: center;
}

.driver-app-view {
  display: grid;
  gap: 14px;
}

.driver-app-view.hidden {
  display: none !important;
}

.driver-app-view--active {
  animation: driverViewIn 160ms ease-out;
}

@keyframes driverViewIn {
  from { opacity: 0.72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.driver-single-vehicle-mode .driver-vehicle-select-control {
  display: none;
}

.driver-workspace__vehicle .material-symbols-outlined {
  color: #c7d2fe;
  font-size: 42px;
}

.driver-workspace__vehicle strong,
.driver-workspace__vehicle small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.driver-workspace__vehicle small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

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

.driver-field-form input,
.driver-field-form select,
.driver-field-form textarea {
  min-height: 48px;
  border-radius: 14px;
}

.driver-field-form .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 800;
}

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

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

.driver-profile-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.driver-profile-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.driver-profile-row strong {
  color: #0f172a;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.field-profile-role-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--field-control-border, #cbd5e1);
  border-radius: 14px;
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
  font-size: 16px;
  font-weight: 800;
  padding: 0 14px;
  color-scheme: light;
  appearance: auto;
}

.field-profile-role-select option {
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
}

#driverActionSection #driverProfileCard #driverProfileRoleSwitcher.field-profile-role-select {
  border: 1px solid #94a3b8;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  color-scheme: light;
  appearance: auto;
  -webkit-appearance: menulist;
  caret-color: #0f172a;
}

#driverActionSection #driverProfileCard #driverProfileRoleSwitcher.field-profile-role-select option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

#driverActionSection #driverProfileCard #driverProfileRoleSwitcher.field-profile-role-select:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.operator-profile-card {
  margin-top: 16px;
}

.driver-logout-btn {
  width: 100%;
  margin-top: 14px;
}

.driver-attendance-history {
  display: grid;
  gap: 8px;
}

.driver-attendance-history__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
}

.driver-attendance-history__row span,
.driver-attendance-history__row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.driver-attendance-history__row span {
  color: var(--workspace-muted);
}

.operator-workspace {
  --field-control-bg: #ffffff;
  --field-control-muted-bg: #f8fafc;
  --field-control-icon-bg: #f1f5f9;
  --field-control-text: #0f172a;
  --field-control-muted: #64748b;
  --field-control-border: #e2e8f0;
  padding-bottom: 92px;
}

.operator-app-view {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.operator-app-view.hidden {
  display: none !important;
}

.operator-app-view--active {
  animation: driverViewIn 0.18s ease-out;
}

.operator-workspace__hero {
  min-height: 180px;
  background:
    linear-gradient(135deg, #1f2937 0%, #111827 58%, #f59e0b 160%);
  color: #fff;
}

.operator-workspace__hero .workspace-subtitle,
.operator-workspace__summary {
  color: rgba(255, 255, 255, 0.78);
}

.operator-workspace__summary {
  max-width: 680px;
  margin: 12px 0 0;
  font-weight: 650;
  line-height: 1.45;
}

.operator-workspace__machine {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.operator-workspace__machine .material-symbols-outlined {
  color: #fbbf24;
  font-size: 54px;
}

.operator-workspace__forms {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.operator-workspace__forms #operatorFazCard {
  grid-row: span 2;
}

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

.operator-field-card {
  min-width: 0;
  overflow: visible;
  color-scheme: light;
}

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

.operator-field-form input,
.operator-field-form select,
.operator-field-form textarea {
  min-height: 48px;
  border-radius: 14px;
}

#operatorUtilajSection .operator-mobile-field,
#operatorUtilajSection .driver-profile-row {
  color-scheme: light;
}

#operatorUtilajSection .operator-mobile-field input,
#operatorUtilajSection .operator-mobile-field select,
#operatorUtilajSection .operator-mobile-field textarea {
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
  color-scheme: light;
  appearance: auto;
}

#operatorUtilajSection .operator-mobile-field select option {
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
}

#operatorUtilajSection .operator-mobile-field input::placeholder,
#operatorUtilajSection .operator-mobile-field textarea::placeholder {
  color: var(--field-control-muted, #64748b);
  -webkit-text-fill-color: var(--field-control-muted, #64748b);
  opacity: 1;
}

.operator-field-form .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 800;
}

.operator-attendance-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 800;
}

#operatorProblemCard .btn,
#operatorAttendanceCard .btn,
#operatorProfileCard .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 800;
}

.operator-recent-history {
  display: grid;
  gap: 10px;
}

.operator-history-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.operator-history-item > span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--workspace-accent-soft);
  color: var(--workspace-accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
}

.operator-history-item strong,
.operator-history-item small {
  display: block;
}

.operator-history-item small {
  margin-top: 3px;
  color: var(--workspace-muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.bottom-nav.hidden {
  display: none;
}

.operator-bottom-nav {
  --workspace-accent-strong: #1f2937;
  --workspace-accent-soft: #fff7ed;
}

.bottom-nav__btn {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 9px 6px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
}

.bottom-nav__btn .material-symbols-outlined {
  font-size: 22px;
}

.bottom-nav__btn--active {
  color: var(--workspace-accent-strong, #1f2937);
  background: var(--workspace-accent-soft, #fff7ed);
}

body.role-operator-utilaj .sidebar {
  display: none;
}

/* UX-I1-05 — two-level Office domain navigation */
.office-breadcrumb {
  margin: 0 0 0.35rem;
  color: var(--text-muted, #64748b);
  font-size: 0.8rem;
}

.office-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.office-breadcrumb__list li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--border-strong, #94a3b8);
}

.office-breadcrumb__list [aria-current="location"] {
  color: var(--text, #0f172a);
  font-weight: 700;
}

.office-read-only {
  opacity: 0.72;
}

.office-navigation {
  gap: 16px;
}

.office-domain-navigation,
.office-local-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.office-domain-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #dbeafe;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.office-domain-btn::before,
.office-local-panel .nav-btn::before {
  content: attr(data-office-icon);
  font-family: "Material Symbols Outlined";
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  color: #cbd5e1;
}

.office-domain-btn:hover,
.office-domain-btn:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(37, 99, 235, 0.13);
}

.office-domain-btn--active {
  border-color: rgba(59, 130, 246, 0.78);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(29, 78, 216, 0.16));
  color: #fff;
}

.office-local-navigation,
.office-administration-navigation {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 12px;
}

.office-navigation__eyebrow {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.office-local-panel[hidden] {
  display: none !important;
}

.office-local-panel .nav-btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
}

.office-administration-navigation .office-domain-btn {
  color: #fbbf24;
}

.office-mobile-menu-btn,
.office-sidebar-backdrop {
  display: none;
}

body.sidebar-collapsed .office-domain-btn {
  justify-content: center;
  overflow: hidden;
  font-size: 0;
}

body.sidebar-collapsed .office-domain-btn::before {
  font-size: 22px;
}

body.sidebar-collapsed .office-local-navigation,
body.sidebar-collapsed .office-administration-navigation {
  display: none;
}

@media (max-width: 900px) {
  .app-shell,
  body.sidebar-collapsed .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-content {
    min-width: 0;
    width: 100%;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1300;
    width: min(88vw, 320px);
    height: 100dvh;
    overflow-y: auto;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 0;
    padding: 18px 16px;
    transform: translateX(0);
    transition: transform 180ms ease;
  }

  body.sidebar-collapsed .sidebar {
    width: min(88vw, 320px);
    padding: 18px 16px;
    transform: translateX(-105%);
    pointer-events: none;
  }

  body.sidebar-collapsed .office-domain-btn {
    justify-content: flex-start;
    font-size: 14px;
  }

  body.sidebar-collapsed .office-local-navigation,
  body.sidebar-collapsed .office-administration-navigation {
    display: block;
  }

  .office-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 11px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .office-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    display: block;
    border: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(2px);
  }

  .office-sidebar-backdrop[hidden],
  .office-sidebar-backdrop.hidden {
    display: none;
  }

  .sidebar__nav {
    margin-top: 18px;
  }
}

body.role-operator-utilaj .app-shell {
  grid-template-columns: 1fr;
}

body.role-operator-utilaj .main-content {
  max-width: none;
  background: #f4f6f8;
}

body.role-operator-utilaj #operatorUtilajSection {
  margin: -8px;
  padding: 18px;
}

@media (max-width: 1024px) {
  .operator-workspace__forms {
    grid-template-columns: 1fr;
  }

  .operator-workspace__forms #operatorFazCard {
    grid-row: auto;
  }

  .driver-workspace__forms {
    grid-template-columns: 1fr;
  }

  .driver-workspace__forms #driverTripCard {
    grid-row: auto;
  }

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

  .vehicle-object-layout,
  .vehicle-object-related {
    grid-template-columns: 1fr;
  }

  .inbox-item {
    grid-template-columns: 1fr;
  }

  .inbox-item__actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .vehicle-object-header__main,
  .vehicle-object-context-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #operatorUtilajSection .section-intro,
  #equipmentOperatorAssignmentsSection .section-intro,
  #operatorUtilajSection .card,
  #equipmentOperatorAssignmentsSection .card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #operatorUtilajSection input:not([type="checkbox"]):not([type="radio"]),
  #operatorUtilajSection select,
  #operatorUtilajSection textarea,
  #operatorUtilajSection .btn,
  #equipmentOperatorAssignmentsSection input:not([type="checkbox"]):not([type="radio"]),
  #equipmentOperatorAssignmentsSection select,
  #equipmentOperatorAssignmentsSection textarea,
  #equipmentOperatorAssignmentsSection .btn {
    width: 100%;
    min-width: 0;
  }

  .workspace-shell {
    gap: 14px;
    padding-bottom: 104px;
  }

  .workspace-header,
  .workspace-card,
  .metric-card,
  .action-card,
  .next-context-card,
  .object-page__header,
  .next-search,
  .next-status-list,
  .timeline-list {
    border-radius: 18px;
  }

  .workspace-header {
    align-items: flex-start;
    padding: 20px;
  }

  .workspace-title {
    font-size: 2.15rem;
  }

  #vehicleObjectSection .vehicle-object-timeline-card {
    order: 2;
  }

  #equipmentObjectSection .vehicle-object-timeline-card {
    order: 2;
  }

  #vehicleObjectSection .vehicle-object-actions {
    order: 3;
  }

  #equipmentObjectSection .vehicle-object-actions {
    order: 3;
  }

  #vehicleObjectSection .vehicle-object-metrics {
    order: 4;
  }

  #equipmentObjectSection .vehicle-object-metrics {
    order: 4;
  }

  #vehicleObjectSection .vehicle-object-tabs-card {
    order: 5;
  }

  #equipmentObjectSection .vehicle-object-tabs-card {
    order: 5;
  }

  .vehicle-object-switcher {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .vehicle-object-context-bar {
    grid-template-columns: 1fr;
  }

  .vehicle-object-timeline-card {
    padding: 18px;
  }

  .vehicle-object-timeline-card .card__header--compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-empty-state {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .next-home .workspace-header,
  .object-page__header,
  .object-result-card {
    align-items: stretch;
    flex-direction: column;
  }

  .object-page__meta {
    justify-items: start;
    text-align: left;
  }

  .operator-workspace__machine {
    width: 70px;
    height: 70px;
    border-radius: 22px;
  }

  .operator-workspace__machine .material-symbols-outlined {
    font-size: 40px;
  }

  .driver-workspace__vehicle {
    width: 100%;
    min-height: 96px;
    justify-items: start;
    padding: 16px;
    text-align: left;
  }

  .driver-workspace__vehicle .material-symbols-outlined {
    font-size: 36px;
  }

  .metric-grid,
  .action-grid,
  .driver-workspace__actions,
  .operator-workspace__inline {
    grid-template-columns: 1fr;
  }

  .operator-history-item {
    grid-template-columns: 1fr;
  }

  body.role-operator-utilaj #operatorUtilajSection {
    margin: -12px;
    padding: 12px;
  }
}

/* M13.A.4.2 Pontaj readability: scoped override for white office/mobile cards. */
#pontajSection .card,
#pontajSection .metric-card,
#pontajSection .table-wrapper,
#workerAttendancePanel,
#workerAttendancePanel .worker-attendance-stop-panel {
  background: #ffffff;
  color: #0f172a;
  border-color: #dbe3ef;
}

#pontajSection .card__header h3,
#pontajSection .metric-card strong,
#pontajSection table tbody td,
#workerAttendancePanel .field-stack > span,
#workerAttendancePanel .worker-attendance-location-mobile__label {
  color: #0f172a;
}

#pontajSection .metric-card span,
#pontajSection .card__hint,
#pontajSection .field-help,
#workerAttendancePanel .message {
  color: #334155;
}

#pontajSection input:not([type="checkbox"]):not([type="radio"]),
#pontajSection select,
#pontajSection textarea,
#pontajSection .module-form__textarea {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  box-shadow: none;
}

#pontajSection input::placeholder,
#pontajSection textarea::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}

#pontajSection table thead th {
  background: #f1f5f9;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

#pontajSection table tbody td {
  border-bottom: 1px solid #e2e8f0;
}

#workerAttendancePanel .worker-attendance-location-segment {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

/* M13.A.12 Recovery stabilization: scoped readability, no global form/table overrides. */
#homeSection #globalSearchResults {
  position: relative;
  z-index: 6;
}

#homeSection #globalSearchResults .empty-state {
  color: #334155;
}

#homeSection #globalSearchResults .object-result-card {
  color: #0f172a;
}

#homeSection #globalSearchResults .object-result-card .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

#alimentariSection .filters-row--fuel-list {
  align-items: end;
  gap: 10px;
}

#alimentariSection .filters-row--fuel-list input,
#alimentariSection .filters-row--fuel-list select,
#alimentariSection .filters-row--fuel-list .filter-field input {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  box-shadow: none;
}

#alimentariSection .filters-row--fuel-list input::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}

#alimentariSection .filters-row--fuel-list .filter-field span {
  color: #334155;
  font-weight: 800;
}

#alimentariSection .filters-row--fuel-list .btn {
  min-height: 42px;
}

#alimentariSection .fuel-entries-table th {
  color: #334155;
  font-weight: 800;
}

#alimentariSection .fuel-entries-table td {
  color: #e5e7eb;
}

body.theme-light #alimentariSection .fuel-entries-table td,
[data-theme="light"] #alimentariSection .fuel-entries-table td {
  color: #0f172a;
}

#alimentariSection .fuel-entries-table .badge {
  border: 1px solid rgba(148, 163, 184, 0.38);
}

#foiParcursSection .card__header h3,
#alimentariSection .card__header h3,
#masiniSection .card__header h3,
#dashboardSection .card__header h3 {
  color: currentColor;
  font-weight: 850;
}

#foiParcursSection .field-help,
#alimentariSection .field-help,
#masiniSection .field-help,
#dashboardSection .card__hint {
  color: #cbd5e1;
}

body.theme-light #foiParcursSection .field-help,
body.theme-light #alimentariSection .field-help,
body.theme-light #masiniSection .field-help,
body.theme-light #dashboardSection .card__hint,
[data-theme="light"] #foiParcursSection .field-help,
[data-theme="light"] #alimentariSection .field-help,
[data-theme="light"] #masiniSection .field-help,
[data-theme="light"] #dashboardSection .card__hint {
  color: #475569;
}

@media (max-width: 920px) {
  #alimentariSection .filters-row--fuel-list {
    grid-template-columns: 1fr;
  }
}

#workerAttendancePanel .worker-attendance-location-segment.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: none;
}

/* M13.B Recovery Sprint 01: regression fixes only. */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.15;
  border-radius: 12px;
}

.btn--compact {
  min-height: 36px;
  padding: 8px 12px;
}

#homeActionGrid.next-action-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

#homeSection #homeActionGrid.next-action-grid .action-card {
  width: auto;
  min-width: 128px;
  max-width: 178px;
  min-height: 44px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
}

#homeSection #homeActionGrid.next-action-grid .action-card .material-symbols-outlined {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 19px;
}

#homeSection #homeActionGrid.next-action-grid .action-card strong {
  font-size: 13px;
  line-height: 1.15;
}

#homeSection #homeActionGrid.next-action-grid .action-card small {
  display: none;
}

#homeSection .next-home-inbox .card__header .btn,
#homeSection .inbox-preview-footer .btn {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.inbox-item {
  grid-template-columns: 52px minmax(0, 1fr) minmax(112px, auto);
  align-items: center;
}

.inbox-item__icon {
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 46px;
}

.inbox-item__body {
  grid-column: 2;
  grid-row: 1;
}

.inbox-item__actions {
  grid-column: 3;
  grid-row: 1;
}

.inbox-item__heading {
  align-items: flex-start;
  min-width: 0;
}

.inbox-item h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.inbox-item__priority {
  margin-left: auto;
  white-space: nowrap;
}

.inbox-item--compact {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.inbox-item--compact .inbox-item__actions {
  grid-column: 3;
  justify-content: flex-end;
}

#equipmentObjectSection .equipment-object-empty-state {
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
}

#pontajSection .section-intro,
#pontajSection .card,
#pontajSection .metric-card {
  line-height: 1.35;
}

#pontajSection .section-intro h3,
#pontajSection .card__header h3 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
}

#pontajSection .section-intro p,
#pontajSection .card__hint,
#pontajSection .field-help {
  color: #334155;
}

#pontajSection .filters-row,
#pontajSection .module-form,
#workerAttendancePanel .worker-attendance-form {
  gap: 12px;
  align-items: end;
}

#pontajSection .table-wrapper {
  border-color: #dbe3ef;
}

#pontajSection table th,
#pontajSection table td {
  padding: 11px 10px;
  vertical-align: middle;
}

#foiParcursSection .card input,
#foiParcursSection .card select,
#foiParcursSection .card textarea,
#alimentariSection .card input,
#alimentariSection .card select,
#alimentariSection .card textarea,
#masiniSection .card input,
#masiniSection .card select,
#masiniSection .card textarea,
#pontajSection .card input,
#pontajSection .card select,
#pontajSection .card textarea {
  min-height: 42px;
  border-radius: 12px;
}

#foiParcursSection .table-wrapper th,
#foiParcursSection .table-wrapper td,
#alimentariSection .table-wrapper th,
#alimentariSection .table-wrapper td,
#masiniSection .table-wrapper th,
#masiniSection .table-wrapper td {
  padding: 10px 9px;
  vertical-align: middle;
}

#foiParcursSection .table-wrapper th,
#alimentariSection .table-wrapper th,
#masiniSection .table-wrapper th {
  font-weight: 800;
}

@media (max-width: 1024px) {
  .inbox-item,
  .inbox-item--compact {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .inbox-item__actions,
  .inbox-item--compact .inbox-item__actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
  }
}

/* M13.B Recovery Sprint 02: scoped visible-issue fixes only. */
#masiniSection.vehicle-section--utility #equipmentOverviewPanel {
  gap: 10px;
}

#masiniSection.vehicle-section--utility #equipmentOverviewPanel .card__header {
  margin-bottom: 0;
}

#masiniSection.vehicle-section--utility #equipmentOverviewPanel .equipment-management-summary {
  gap: 10px;
}

#masiniSection.vehicle-section--utility #equipmentOverviewPanel .summary-card {
  min-height: 0;
  padding: 12px 14px;
}

#masiniSection.vehicle-section--utility #equipmentOverviewRecentList.equipment-work-list {
  min-height: 0;
  margin: 6px 0 0;
  gap: 8px;
}

#masiniSection.vehicle-section--utility #equipmentOverviewRecentList .equipment-management-empty {
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

#masiniSection.vehicle-section--utility #equipmentFuelShortcutPanel {
  gap: 8px;
}

#masiniSection.vehicle-section--utility #equipmentFuelShortcutPanel .card__header {
  margin-bottom: 0;
}

#masiniSection.vehicle-section--utility #equipmentFuelShortcutPanel .empty-cell {
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
}

#equipmentObjectSection .vehicle-object-overview {
  gap: 10px;
}

#equipmentObjectSection .equipment-object-empty-state {
  max-width: none;
}

#pontajSection .btn:disabled,
#pontajSection .btn[disabled],
#pontajSection .btn.is-disabled,
#pontajSection button:disabled {
  color: #475569;
  -webkit-text-fill-color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
  opacity: 1;
  box-shadow: none;
}

#pontajSection .btn--danger:disabled,
#pontajSection .btn--danger[disabled] {
  color: #7f1d1d;
  -webkit-text-fill-color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

#alimentariSection input[type="date"] {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}

#alimentariSection input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  filter: none;
}

#operatorUtilajSection .operator-workspace__hero .workspace-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.26);
}

#operatorUtilajSection .operator-workspace__hero .workspace-subtitle,
#operatorUtilajSection .operator-workspace__hero .operator-workspace__summary {
  color: rgba(255, 255, 255, 0.86);
}

#homeSection .next-home-inbox .inbox-item,
#inboxSection .inbox-shell .inbox-item,
#inboxSection .inbox-list-card .inbox-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(112px, auto);
  align-items: center;
  column-gap: 14px;
}

#homeSection .next-home-inbox .inbox-item__icon,
#inboxSection .inbox-shell .inbox-item__icon,
#inboxSection .inbox-list-card .inbox-item__icon {
  position: static;
  grid-column: 1;
  min-width: 46px;
  width: 46px;
  height: 46px;
}

#homeSection .next-home-inbox .inbox-item__body,
#inboxSection .inbox-shell .inbox-item__body,
#inboxSection .inbox-list-card .inbox-item__body {
  grid-column: 2;
  min-width: 0;
}

#homeSection .next-home-inbox .inbox-item__actions,
#inboxSection .inbox-shell .inbox-item__actions,
#inboxSection .inbox-list-card .inbox-item__actions {
  grid-column: 3;
}

@media (max-width: 1024px) {
  #homeSection .next-home-inbox .inbox-item,
  #inboxSection .inbox-shell .inbox-item,
  #inboxSection .inbox-list-card .inbox-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  #homeSection .next-home-inbox .inbox-item__actions,
  #inboxSection .inbox-shell .inbox-item__actions,
  #inboxSection .inbox-list-card .inbox-item__actions {
    grid-column: 2;
    grid-row: 2;
  }
}

/* M13.B.3: final scoped recovery fixes, no redesign. */
#homeSection .next-home-inbox .inbox-item,
#inboxSection .inbox-shell .inbox-item,
#inboxSection .inbox-list-card .inbox-item,
#inboxSection .inbox-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(112px, auto);
  gap: 14px;
  align-items: center;
}

#homeSection .next-home-inbox .inbox-item__icon,
#inboxSection .inbox-shell .inbox-item__icon,
#inboxSection .inbox-list-card .inbox-item__icon,
#inboxSection .inbox-item__icon {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-width: 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  white-space: nowrap;
}

#homeSection .next-home-inbox .inbox-item__icon .material-symbols-outlined,
#inboxSection .inbox-shell .inbox-item__icon .material-symbols-outlined,
#inboxSection .inbox-list-card .inbox-item__icon .material-symbols-outlined,
#inboxSection .inbox-item__icon .material-symbols-outlined {
  display: block;
  width: 1em;
  max-width: 1em;
  overflow: hidden;
  font-size: 24px;
  line-height: 1;
  text-transform: none;
}

#homeSection .next-home-inbox .inbox-item__body,
#inboxSection .inbox-shell .inbox-item__body,
#inboxSection .inbox-list-card .inbox-item__body,
#inboxSection .inbox-item__body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#homeSection .next-home-inbox .inbox-item__actions,
#inboxSection .inbox-shell .inbox-item__actions,
#inboxSection .inbox-list-card .inbox-item__actions,
#inboxSection .inbox-item__actions {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

#homeSection .next-home-inbox .inbox-item__heading,
#inboxSection .inbox-shell .inbox-item__heading,
#inboxSection .inbox-list-card .inbox-item__heading,
#inboxSection .inbox-item__heading {
  min-width: 0;
  flex-wrap: wrap;
}

#homeSection .next-home-inbox .inbox-item h4,
#inboxSection .inbox-shell .inbox-item h4,
#inboxSection .inbox-list-card .inbox-item h4,
#inboxSection .inbox-item h4 {
  min-width: 0;
  overflow-wrap: anywhere;
}

#masiniSection.vehicle-section--utility #equipmentOverviewPanel {
  padding-bottom: 14px;
}

#masiniSection.vehicle-section--utility #equipmentOverviewPanel .equipment-management-summary {
  margin-bottom: 0;
}

#masiniSection.vehicle-section--utility #equipmentOverviewRecentList .equipment-management-empty,
#equipmentObjectSection .equipment-object-empty-state {
  display: block;
  min-height: 0;
  max-height: none;
  line-height: 1.35;
}

#masiniSection.vehicle-section--utility #equipmentFuelShortcutPanel {
  padding-bottom: 14px;
}

#pontajSection .badge {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-weight: 850;
}

#pontajSection .badge--warning {
  border-color: #facc15;
  background: #fef3c7;
  color: #78350f;
  -webkit-text-fill-color: #78350f;
}

#pontajSection .badge--success {
  border-color: #86efac;
  background: #dcfce7;
  color: #14532d;
  -webkit-text-fill-color: #14532d;
}

#pontajSection .badge--danger {
  border-color: #fecaca;
  background: #fee2e2;
  color: #7f1d1d;
  -webkit-text-fill-color: #7f1d1d;
}

#pontajSection .badge--neutral,
#pontajSection .badge--muted {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  -webkit-text-fill-color: #334155;
}

#pontajSection .filters-row .btn,
#pontajSection .export-card .btn,
#pontajSection .table-actions .btn {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  border-color: #94a3b8;
  font-weight: 850;
}

#pontajSection .filters-row .btn--primary,
#pontajSection .export-card .btn--primary,
#pontajSection .table-actions .btn--primary,
#pontajSection .filters-row .btn:not(.btn--secondary):not(.btn--danger):not(.btn--ghost) {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

#pontajSection .btn--secondary,
#pontajSection .export-card .btn--secondary,
#pontajSection .table-actions .btn--secondary {
  background: #f8fafc;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#pontajSection .btn--danger,
#pontajSection .table-actions .btn--danger {
  color: #7f1d1d;
  -webkit-text-fill-color: #7f1d1d;
}

#alimentariSection input,
#alimentariSection select,
#alimentariSection textarea {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#alimentariSection input::placeholder,
#alimentariSection textarea::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}

#alimentariSection input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  opacity: 1;
}

#alimentariSection .card input:not([type="checkbox"]):not([type="radio"]),
#alimentariSection .card select,
#alimentariSection .card textarea {
  border-color: #94a3b8;
  background: #ffffff;
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}

#alimentariSection .card select option {
  background: #ffffff;
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#alimentariSection .card input::placeholder,
#alimentariSection .card textarea::placeholder,
#alimentariSection .filters-row--fuel-list input::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}

#alimentariSection .card input:disabled,
#alimentariSection .card select:disabled,
#alimentariSection .card textarea:disabled,
#alimentariSection .card input[readonly] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  background-color: #f1f5f9;
  color: #475569;
  -webkit-text-fill-color: #475569;
  opacity: 1;
}

#alimentariSection .field-label,
#alimentariSection .filter-field span {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#fuelForm > .fuel-state-selector {
  grid-column: 1 / -1;
}

#fuelForm .fuel-state-selector {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

#fuelForm .fuel-state-selector legend {
  padding: 0 6px;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

#fuelForm .fuel-state-selector__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

#fuelForm .fuel-state-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

#fuelForm .fuel-state-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

#fuelForm .fuel-state-option__content {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#fuelForm .fuel-state-option__check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #94a3b8;
  border-radius: 50%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 12px;
  font-weight: 900;
}

#fuelForm .fuel-state-option input[type="radio"]:checked + .fuel-state-option__content {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px #2563eb;
}

#fuelForm .fuel-state-option input[type="radio"]:checked + .fuel-state-option__content .fuel-state-option__check {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

#fuelForm .fuel-state-option input[type="radio"]:focus-visible + .fuel-state-option__content {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

#fuelForm .fuel-state-selector__hint {
  margin: 10px 2px 0;
  min-height: 2.7em;
}

@media (max-width: 520px) {
  #fuelForm .fuel-state-selector__options {
    grid-template-columns: 1fr;
  }
}

#alimentariSection input[type="date"] {
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}

#alimentariSection input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  filter: none;
}

#operatorUtilajSection .operator-field-card,
#operatorUtilajSection .operator-mobile-field {
  color-scheme: light;
}

#operatorUtilajSection .operator-mobile-field {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

#operatorUtilajSection .operator-mobile-field > .material-symbols-outlined {
  background: #f1f5f9;
  color: #0f172a;
}

#operatorUtilajSection .operator-mobile-field label {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#operatorUtilajSection .operator-mobile-field input:not([type="checkbox"]):not([type="radio"]),
#operatorUtilajSection .operator-mobile-field select,
#operatorUtilajSection .operator-mobile-field textarea {
  border-color: #94a3b8;
  background: #ffffff;
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}

#operatorUtilajSection .operator-mobile-field select option {
  background: #ffffff;
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

#operatorUtilajSection .operator-mobile-field input::placeholder,
#operatorUtilajSection .operator-mobile-field textarea::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
  opacity: 1;
}

#operatorUtilajSection .operator-mobile-field input:disabled,
#operatorUtilajSection .operator-mobile-field select:disabled,
#operatorUtilajSection .operator-mobile-field textarea:disabled,
#operatorUtilajSection .operator-mobile-field input[readonly] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  background-color: #f1f5f9;
  color: #475569;
  -webkit-text-fill-color: #475569;
  opacity: 1;
}

#operatorUtilajSection .operator-mobile-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  filter: none;
}

#usersSection .user-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#usersSection .user-role-badge {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-size: 11px;
  letter-spacing: 0.02em;
}

#usersSection .user-roles-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
}

#usersSection .user-roles-editor.hidden {
  display: none;
}

#usersSection .user-roles-editor__header {
  display: grid;
  gap: 2px;
}

#usersSection .user-roles-editor__header strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

#usersSection .user-roles-editor__header span,
#usersSection .user-roles-editor .field-help {
  color: #475569;
  font-size: 12px;
}

#usersSection .user-roles-editor__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

#usersSection .user-warehouse-access-list {
  display: grid;
  gap: 8px;
}

#usersSection .user-warehouse-access-option {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

#usersSection .user-warehouse-access-option input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

#usersSection .user-warehouse-access-option span {
  display: grid;
  gap: 2px;
}

#usersSection .user-warehouse-access-option strong {
  color: #0f172a;
  font-size: 13px;
}

#usersSection .user-warehouse-access-option small {
  color: #64748b;
  font-size: 11px;
}

#usersSection .user-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 6px 5px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

#usersSection .user-role-chip--primary {
  border-color: #2563eb;
  background: #dbeafe;
}

#usersSection .user-role-chip small {
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

#usersSection .user-role-chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

#usersSection .user-role-chip button:hover {
  background: #fee2e2;
  color: #991b1b;
}

#usersSection .user-roles-editor__add {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

#usersSection .user-roles-editor__add select {
  min-height: 40px;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background: #ffffff;
  background-color: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  color-scheme: light;
}

#usersSection .user-roles-editor__add select option {
  background: #ffffff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

@media (max-width: 720px) {
  #usersSection .user-roles-editor__add {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  #homeSection .next-home-inbox .inbox-item,
  #inboxSection .inbox-shell .inbox-item,
  #inboxSection .inbox-list-card .inbox-item,
  #inboxSection .inbox-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  #homeSection .next-home-inbox .inbox-item__actions,
  #inboxSection .inbox-shell .inbox-item__actions,
  #inboxSection .inbox-list-card .inbox-item__actions,
  #inboxSection .inbox-item__actions {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
  }
}

/* M14.3 Driver Field App: scoped view navigation and readable mobile cards. */
body.mobile-driver-mode .topbar {
  display: none;
}

body.mobile-driver-mode .main-content {
  padding-top: 12px;
}

body.mobile-driver-mode #driverActionSection {
  width: 100%;
}

#driverActionSection .driver-workspace__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
}

#driverActionSection .driver-workspace__hero .workspace-title {
  color: #ffffff;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.05;
}

#driverActionSection .driver-workspace__summary {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

#driverActionSection .driver-app-view {
  width: min(100%, 680px);
  margin: 0 auto;
}

#driverActionSection .driver-field-card,
#driverActionSection .driver-workday-card {
  border: 1px solid var(--field-control-border, #e2e8f0);
  border-radius: 22px;
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  color-scheme: light;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.18);
}

#driverActionSection .card__header h3 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
}

#driverActionSection .driver-field-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--field-control-border, #e2e8f0);
  border-radius: 18px;
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  color-scheme: light;
}

#driverActionSection .driver-field-control > .material-symbols-outlined {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--field-control-icon-bg, #f1f5f9);
  color: var(--field-control-text, #0f172a);
  font-size: 24px;
}

#driverActionSection .driver-field-control label {
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

#driverActionSection .driver-field-control input,
#driverActionSection .driver-field-control select,
#driverActionSection .driver-field-control textarea {
  min-height: 28px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
  font-size: 17px;
  font-weight: 760;
  box-shadow: none;
  padding: 0;
  color-scheme: light;
  appearance: auto;
}

#driverActionSection .driver-field-control select option {
  background: var(--field-control-bg, #ffffff);
  color: var(--field-control-text, #0f172a);
  -webkit-text-fill-color: var(--field-control-text, #0f172a);
}

#driverActionSection .driver-field-control input::placeholder,
#driverActionSection .driver-field-control textarea::placeholder {
  color: var(--field-control-muted, #64748b);
  -webkit-text-fill-color: var(--field-control-muted, #64748b);
  opacity: 1;
}

#driverActionSection .driver-field-control--textarea {
  align-items: start;
}

#driverActionSection .driver-field-control--textarea textarea {
  min-height: 88px;
  resize: vertical;
}

#driverActionSection .driver-workspace__actions .btn,
#driverActionSection .driver-field-form > .btn,
#driverActionSection .driver-logout-btn {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 850;
}

#driverActionSection .driver-workday-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#driverActionSection .driver-workday-grid div,
#driverActionSection .driver-today-trip-item,
#driverActionSection .driver-attendance-history__row,
#driverActionSection .operator-history-item,
#driverActionSection .driver-profile-row {
  background: #f8fafc;
}

#driverActionSection .driver-workday-grid span,
#driverActionSection .driver-today-trip-item small,
#driverActionSection .driver-attendance-history__row span {
  color: #64748b;
}

#driverActionSection .driver-workday-grid strong,
#driverActionSection .driver-today-trip-item strong,
#driverActionSection .driver-attendance-history__row strong {
  color: #0f172a;
}

body.mobile-driver-mode .mobile-driver-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

body.mobile-driver-mode .mobile-driver-nav__btn {
  min-height: 58px;
  border-radius: 16px;
  color: #e5edf7 !important;
}

body.mobile-driver-mode .mobile-driver-nav__btn--active {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.32);
  color: #ffffff !important;
}

@media (max-width: 420px) {
  #driverActionSection .driver-workspace__hero {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  #driverActionSection .driver-workspace__vehicle {
    width: 100%;
    min-height: 82px;
    justify-items: start;
    padding: 14px;
    text-align: left;
  }

  #driverActionSection .driver-workday-grid {
    grid-template-columns: 1fr;
  }

  #driverActionSection .driver-workspace__actions {
    grid-template-columns: 1fr;
  }

  #driverActionSection .driver-field-control {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px;
  }

  #driverActionSection .driver-field-control > .material-symbols-outlined {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
#inboxSection .inbox-shell,
#dashboardSection .contained-dashboard {
  max-width: 1440px;
  min-width: 0;
}

/* Inbox is an operational queue: one compact, scannable row per action. */
#inboxSection .inbox-list {
  gap: 8px;
}

#inboxSection .inbox-item,
#inboxSection .inbox-shell .inbox-item,
#inboxSection .inbox-list-card .inbox-item {
  grid-template-columns: 38px minmax(0, 1fr) minmax(104px, auto);
  gap: 10px;
  min-height: 68px;
  padding: 9px 10px;
  border-radius: 12px;
}

#inboxSection .inbox-item__icon,
#inboxSection .inbox-shell .inbox-item__icon,
#inboxSection .inbox-list-card .inbox-item__icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
}

#inboxSection .inbox-item__body {
  gap: 3px;
}

#inboxSection .inbox-item h4 {
  font-size: 15px;
  line-height: 1.2;
}

#inboxSection .inbox-item__priority {
  padding: 3px 7px;
  font-size: 10px;
}

#inboxSection .inbox-item__object,
#inboxSection .inbox-item__deadline {
  font-size: 12px;
}

#inboxSection .inbox-item p,
#inboxSection .inbox-item__meta {
  display: none;
}

#inboxSection .inbox-item__actions .btn {
  min-height: 36px;
  padding: 7px 10px;
}

#inboxSection .inbox-item--group {
  border-left: 4px solid var(--primary, #166534);
}

#inboxSection .inbox-item--group .inbox-item__meta,
#inboxSection .inbox-item--group p {
  display: flex;
}

.inbox-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.inbox-filter-grid .field {
  min-width: 0;
}

.inbox-filter-grid input,
.inbox-filter-grid select {
  width: 100%;
  min-width: 0;
}

.inbox-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inbox-drawer {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.inbox-drawer.hidden,
.inbox-drawer[hidden] {
  display: none;
}

.inbox-drawer__backdrop {
  background: rgb(15 23 42 / 55%);
}

.inbox-drawer__panel {
  background: var(--surface, #fff);
  color: var(--text, #172033);
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 24px;
  box-shadow: -16px 0 40px rgb(15 23 42 / 18%);
  outline: 3px solid transparent;
}

.inbox-drawer__panel:focus-visible {
  outline-color: var(--primary, #166534);
  outline-offset: -4px;
}

.inbox-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.inbox-drawer__header h4 {
  margin: 4px 0 0;
}

.inbox-drawer__details {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.inbox-drawer__details div {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #d8dee9);
}

.inbox-drawer__details dt {
  font-weight: 700;
}

.inbox-drawer__details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.inbox-drawer__group-preview {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 20px;
}

.inbox-drawer__resolution-note {
  color: var(--muted, #667085);
  font-size: 13px;
  line-height: 1.45;
}

.contained-dashboard {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.contained-dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.contained-dashboard-kpi {
  appearance: none;
  border: 1px solid var(--border, #d8dee9);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: inherit;
  text-align: left;
  padding: 18px;
  min-width: 0;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.contained-dashboard-kpi:hover,
.contained-dashboard-kpi:focus-visible {
  border-color: var(--primary, #166534);
  box-shadow: 0 0 0 3px rgb(22 101 52 / 14%);
}

.contained-dashboard-kpi span,
.contained-dashboard-kpi small {
  overflow-wrap: anywhere;
}

.contained-dashboard-kpi strong {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.contained-dashboard__tabs,
.contained-dashboard__panel-host {
  min-width: 0;
}

.contained-dashboard-panel ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.contained-dashboard-panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #d8dee9);
}

@media (max-width: 980px) {
  .inbox-filter-grid,
  .contained-dashboard__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .inbox-filter-grid,
  .contained-dashboard__kpis {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .inbox-drawer__backdrop {
    display: none;
  }

  .inbox-drawer__panel {
    padding: 18px;
  }

  .inbox-drawer__details div,
  .contained-dashboard-panel li {
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
    align-items: flex-start;
  }

  #inboxSection .inbox-item,
  #inboxSection .inbox-shell .inbox-item,
  #inboxSection .inbox-list-card .inbox-item {
    grid-template-columns: 34px minmax(0, 1fr) minmax(86px, auto);
    gap: 8px;
    min-height: 64px;
    padding: 8px;
  }

  #inboxSection .inbox-item__icon,
  #inboxSection .inbox-shell .inbox-item__icon,
  #inboxSection .inbox-list-card .inbox-item__icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  #inboxSection .inbox-item__actions,
  #inboxSection .inbox-shell .inbox-item__actions,
  #inboxSection .inbox-list-card .inbox-item__actions {
    grid-column: 3;
    grid-row: 1;
  }

  #inboxSection .inbox-item__actions .btn {
    padding-inline: 8px;
    font-size: 11px;
  }
}
.site-complete-report__filters {
  align-items: end;
}

.site-complete-report__date {
  display: grid;
  gap: 0.35rem;
  color: var(--muted, #64748b);
  font-size: 0.78rem;
}

.site-complete-report__date input {
  min-height: 2.65rem;
}

.site-complete-report__opening {
  align-self: center;
  min-width: 13rem;
}

.site-complete-report {
  display: grid;
  gap: 1rem;
}

.site-complete-report__identity {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(28rem, 1.3fr);
  gap: 1.25rem;
}

.site-complete-report__identity h3,
.site-complete-report__identity p {
  margin: 0.2rem 0;
}

.site-complete-report__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.site-complete-report__meta div {
  min-width: 0;
}

.site-complete-report__meta dt {
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-complete-report__meta dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.site-complete-report__summary {
  width: 100%;
  border-collapse: collapse;
}

.site-complete-report__summary th,
.site-complete-report__summary td {
  border-bottom: 1px solid var(--border, #dbe3ec);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.site-complete-report__summary th {
  width: 55%;
  color: var(--muted, #64748b);
  font-weight: 600;
}

.site-complete-report__summary td {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.site-complete-report__summary small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  font-weight: 400;
}

.site-complete-report__sections {
  display: grid;
  gap: 0.75rem;
}

.site-complete-report__section {
  padding: 0;
  overflow: hidden;
}

.site-complete-report__section > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.site-complete-report__section > summary span {
  color: var(--muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.site-complete-report__section > .table-wrapper,
.site-complete-report__section > .empty-cell,
.site-complete-report__section > .site-complete-report__warnings {
  margin: 0;
  border-top: 1px solid var(--border, #dbe3ec);
}

.site-complete-report__section > .empty-cell,
.site-complete-report__warnings {
  padding: 0.9rem 1rem;
}

.site-complete-report__warnings ul {
  margin: 0;
  padding-left: 1.25rem;
}

.site-complete-report__table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.site-complete-report__table th,
.site-complete-report__table td {
  border-bottom: 1px solid var(--border, #dbe3ec);
  padding: 0.48rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.site-complete-report__table th {
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
  white-space: nowrap;
}

.site-complete-report__table td {
  max-width: 18rem;
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .site-complete-report__opening {
    grid-column: 1 / -1;
  }

  .site-complete-report__identity {
    grid-template-columns: 1fr;
  }

  .site-complete-report__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-complete-report__meta {
    grid-template-columns: 1fr;
  }

  .site-complete-report__opening {
    min-width: 0;
  }
}

.fuel-field-form {display:grid;gap:16px;max-width:600px;padding:16px;}
.fuel-field-form label {display:grid;gap:6px;}
.fuel-field-form input,.fuel-field-form select,.fuel-field-form button {min-height:44px;max-width:100%;padding:10px;}
.fuel-field-form .fuel-search-input {margin-block:6px;}
.fuel-operation-review {margin-top:16px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text);}
.fuel-operation-review dl {display:grid;grid-template-columns:minmax(9rem,.8fr) minmax(0,1.2fr);gap:8px 16px;}
.fuel-operation-review dt {font-weight:700;}
.fuel-operation-review dd {margin:0;}
.fuel-operation-review button {min-height:44px;margin:8px 8px 0 0;}
.fuel-field-form [hidden] {display:none;}
.fuel-field-form .fuel-hourmeter-defective[hidden],.equipment-fuel-form-card .fuel-hourmeter-defective[hidden] {display:none !important;}
.equipment-fuel-form-card .fuel-hourmeter-defective__hint[hidden],.equipment-fuel-form-card .module-form__field[hidden] {display:none !important;}
.fuel-destination-choice {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px;max-width:420px;}
.fuel-destination-choice button {min-height:46px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);color:var(--text);font-weight:700;}
.fuel-destination-choice button[aria-pressed="true"] {border-color:var(--primary);background:var(--primary);color:#fff;}
.fuel-hourmeter-defective {display:flex !important;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer;background:var(--panel-2);font-weight:600;}
.fuel-hourmeter-defective input {width:20px;height:20px;min-height:20px;padding:0;flex:0 0 auto;}
.fuel-hourmeter-defective__hint {margin:-8px 0 0;padding:10px 12px;border-radius:8px;background:rgba(180,83,9,.16);color:#fed7aa;}
.fuel-field-history {max-width:900px;margin:24px 0;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text);overflow:hidden;}
.fuel-field-history > summary {padding:14px 16px;cursor:pointer;font-weight:800;background:var(--panel-2);}
.fuel-field-history-list {display:grid;gap:0;}
.fuel-field-history-row {display:grid;grid-template-columns:minmax(10rem,1fr) minmax(10rem,1fr) minmax(5rem,.45fr) minmax(12rem,1.25fr);align-items:center;gap:8px 14px;margin:0;padding:12px 16px;border-top:1px solid var(--border);}
.fuel-field-history-row time {color:var(--muted);font-variant-numeric:tabular-nums;}
.fuel-field-history-quantity {font-weight:800;font-variant-numeric:tabular-nums;}
.fuel-field-history-location {min-width:0;overflow-wrap:anywhere;}
.fuel-field-history-location.is-unavailable {color:var(--muted);font-style:italic;}
.fuel-field-history-more {margin:12px 16px 16px;min-height:42px;padding:8px 14px;}
.fuel-hourmeter-badge {background:rgba(245,158,11,.16);color:#fbbf24;border:1px solid #b45309;}
.fuel-hourmeter-consumption {color:var(--muted);font-size:.875rem;}
body.theme-light .fuel-hourmeter-defective__hint,[data-theme="light"] .fuel-hourmeter-defective__hint {background:#fff7ed;color:#7c2d12;}
body.theme-light .fuel-hourmeter-badge,[data-theme="light"] .fuel-hourmeter-badge {background:#fef3c7;color:#78350f;border-color:#f59e0b;}
@media (max-width:760px) {.fuel-field-history-row {grid-template-columns:1fr auto;}.fuel-field-history-row strong,.fuel-field-history-location {grid-column:1/-1;}}
.fuel-tank-move-form,.fuel-tank-location-history {margin:12px 0 20px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text);}
.fuel-tank-location-summary {margin:6px 0;padding:10px 12px;border-radius:10px;background:var(--panel-2);color:var(--text);}
.fuel-tank-location-history {max-width:600px;padding:16px;}
.fuel-tank-location-history p {margin:10px 0 0;color:var(--muted);}

/* Native hidden must win over the navigation display rules. */
.office-domain-btn[hidden], #notificationsToggleBtn[hidden] { display: none !important; }

/* Fuel review uses the same theme tokens in both themes and all states. */
.fuel-operation-review dd {color:var(--text);}
.fuel-operation-review dt {color:var(--muted);}
.fuel-operation-review button {background:var(--panel-2);color:var(--text);border:2px solid var(--muted);border-radius:8px;}
.fuel-operation-review button:hover:not(:disabled) {background:var(--panel);border-color:var(--text);}
.fuel-operation-review button:focus-visible,.fuel-field-form :is(input,select,button):focus-visible {outline:3px solid var(--text);outline-offset:3px;}
.fuel-operation-review button:disabled {opacity:1;color:var(--muted);background:var(--panel);cursor:not-allowed;}
.fuel-field-form [role="status"] {color:var(--text);}

/* Fuel controls must retain theme contrast, including native placeholders and disabled states. */
#fuelFieldContent {color:var(--text);}
#fuelFieldContent :is(input,select,button) {color:var(--text);background:var(--panel-2);border:2px solid var(--muted);border-radius:8px;opacity:1;}
#fuelFieldContent input::placeholder {color:var(--muted);opacity:1;}
#fuelFieldContent :is(input,select,button):disabled {color:var(--muted);background:var(--panel);opacity:1;-webkit-text-fill-color:var(--muted);}
#fuelFieldContent :is(button,select):hover:not(:disabled) {background:var(--panel);border-color:var(--text);}
#fuelFieldContent :is(input,select,button,summary):focus-visible {outline:3px solid var(--text);outline-offset:3px;}
#fuelFieldContent input[type="checkbox"] {accent-color:var(--primary);}
#fuelFieldContent .fuel-destination-choice button[aria-pressed="true"] {background:var(--primary);color:#fff;border-color:var(--muted);}
#fuelFieldContent .fuel-destination-choice button[aria-pressed="true"]:hover {background:var(--primary-hover);}
#fuelFieldContent .fuel-operation-review button:disabled {color:var(--muted);background:var(--panel);}
#fuelFieldContent [role="status"] {color:var(--text);}
