:root {
  --blue: #125da9;
  --blue-700: #0d427c;
  --cyan: #33b7c5;
  --green: #04a64b;
  --lime: #a5cf2e;
  --orange: #f26522;
  --ink: #1a2633;
  --muted: #667281;
  --line: #dbe4ea;
  --surface: #ffffff;
  --soft: #f5f9fb;
  --shadow: 0 18px 40px rgba(10, 43, 74, 0.12);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(51, 183, 197, 0.14), transparent 280px),
    var(--soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(18, 93, 169, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: clamp(170px, 23vw, 320px);
  height: auto;
}

.brand h1,
.section-title h2,
.contact-info h2,
.capability-band h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: var(--blue-700);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.contact-strip span {
  border: 1px solid rgba(51, 183, 197, 0.34);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue-700);
  background: #f3fbfc;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.shared-indicator {
  align-self: center;
  border: 1px solid #d6dee5;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #f7fafc;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.shared-indicator.is-ok {
  color: #0a6d34;
  border-color: rgba(4, 166, 75, 0.26);
  background: #eaf8ef;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 460px;
}

.data-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.import-backup {
  margin: 0;
  flex-direction: row;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 102px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(18, 93, 169, 0.08);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.metric-card.accent {
  border-color: rgba(4, 166, 75, 0.28);
  background: linear-gradient(135deg, #f7fff9, #ffffff);
}

.metric-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  color: var(--blue);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(10, 43, 74, 0.08);
  scrollbar-width: none;
}

.tab {
  flex: 1 1 148px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: var(--blue-700);
  background: transparent;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.tab:hover,
.tab:focus-visible {
  color: var(--blue);
  background: rgba(51, 183, 197, 0.12);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(51, 183, 197, 0.28);
}

.tab.is-active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 18px rgba(18, 93, 169, 0.18);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panel-in 0.18s ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.3fr);
  gap: 14px;
  align-items: start;
}

.work-grid-wide {
  grid-template-columns: minmax(0, 1fr);
}

.form-card,
.list-card,
.service-intro,
.capability-band,
.service-gallery article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(10, 43, 74, 0.08);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.metric-card:hover,
.form-card:hover,
.list-card:hover,
.service-intro:hover,
.capability-band:hover,
.service-gallery article:hover {
  transform: translateY(-2px);
  border-color: rgba(51, 183, 197, 0.55);
  background:
    linear-gradient(135deg, rgba(51, 183, 197, 0.08), rgba(4, 166, 75, 0.05) 42%, rgba(255, 255, 255, 0.96)),
    var(--surface);
  box-shadow: 0 18px 42px rgba(18, 93, 169, 0.16), 0 0 0 1px rgba(4, 166, 75, 0.08);
}

.metric-card:hover strong,
.form-card:hover .section-title h2,
.list-card:hover .section-title h2,
.service-intro:hover h2,
.capability-band:hover h2,
.service-gallery article:hover h3 {
  color: var(--blue);
}

.form-card,
.list-card {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title.compact {
  margin-bottom: 12px;
}

.section-title h2 {
  color: var(--blue-700);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--blue-700);
  background: #eaf6fb;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.done {
  color: #0a6d34;
  background: #e6f8ec;
}

.status-pill.wait {
  color: #8a3d08;
  background: #fff0e8;
}

.status-pill.danger-pill {
  color: #9c1c12;
  background: #ffe9e6;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 13px;
  color: #314253;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8e0;
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #98a5b3;
  font-weight: 500;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51, 183, 197, 0.17);
}

.photo-box {
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px dashed #a8c7d8;
  border-radius: var(--radius);
  background: #f8fcfd;
}

.photo-box > label:first-child {
  margin-bottom: 8px;
}

.check-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.check-row input {
  width: auto;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.75;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.sst-analysis-box {
  display: grid;
  gap: 10px;
  margin: 6px 0 16px;
  padding: 12px;
  border: 1px solid rgba(18, 93, 169, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fcfd, #eef8f5);
}

.sst-analysis-box h3 {
  margin: 0;
  color: var(--blue-700);
  font-size: 1rem;
}

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

.sst-recommendation-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: stretch;
  gap: 8px;
}

.sst-recommendation-item span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 6px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.sst-recommendation-item textarea {
  min-height: 52px;
}

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

.birthday-actions input {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--blue-700);
  font-weight: 800;
}

.birthday-board {
  margin-top: 12px;
}

.birthday-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}

.birthday-poster,
.birthday-today-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 93, 169, 0.12);
  border-radius: var(--radius);
  background: #f7f4ef;
}

.birthday-poster {
  min-height: 430px;
  padding: 28px;
  box-shadow: inset 0 -90px 0 rgba(51, 183, 197, 0.08);
}

.birthday-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background:
    linear-gradient(8deg, rgba(4, 166, 75, 0.2), transparent 64%),
    linear-gradient(-8deg, rgba(51, 183, 197, 0.2), transparent 70%);
  pointer-events: none;
}

.birthday-decor {
  position: absolute;
  width: 142px;
  height: 66px;
  top: 22px;
  border-top: 4px solid var(--orange);
  opacity: 0.9;
}

.birthday-decor::before,
.birthday-decor::after {
  content: "";
  position: absolute;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-35deg);
}

.birthday-decor::before {
  width: 20px;
  height: 34px;
  left: 18px;
  top: -6px;
  background: var(--lime);
}

.birthday-decor::after {
  width: 18px;
  height: 30px;
  left: 52px;
  top: 10px;
  background: var(--orange);
}

.birthday-decor.top-left {
  left: 24px;
  border-radius: 80% 20% 0 0;
}

.birthday-decor.top-right {
  right: 24px;
  border-radius: 20% 80% 0 0;
  transform: scaleX(-1);
}

.birthday-title-block {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.birthday-title-block img {
  width: min(300px, 40vw);
  margin-bottom: 8px;
}

.birthday-title-block h3 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.birthday-month-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 12px;
  margin: 24px auto 0;
  max-width: 980px;
}

.birthday-person {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.birthday-person strong {
  color: var(--orange);
  font-size: 0.9rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.birthday-person span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.birthday-person small {
  color: var(--muted);
  font-weight: 800;
}

.birthday-person.today {
  border: 1px solid rgba(4, 166, 75, 0.18);
  border-radius: var(--radius);
  padding: 18px 14px;
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
}

.birthday-person.today strong {
  font-size: 1.08rem;
}

.birthday-phrase {
  position: relative;
  z-index: 1;
  margin: 26px auto 0;
  max-width: 780px;
  color: var(--blue);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.birthday-today-panel {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbfd);
}

.birthday-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(18, 93, 169, 0.24);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.birthday-empty strong {
  color: var(--blue-700);
}

.birthday-empty.compact {
  min-height: 250px;
}

.worker-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.worker-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 18px rgba(18, 93, 169, 0.18);
  font-weight: 900;
}

.worker-avatar.small {
  width: 42px;
  height: 42px;
  font-size: 0.78rem;
}

.worker-avatar.birthday {
  width: 104px;
  height: 104px;
  font-size: 1.6rem;
}

.worker-avatar.birthday-large {
  width: 154px;
  height: 154px;
  font-size: 2.4rem;
}

.worker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worker-photo-preview {
  margin: -4px 0 6px;
}

.worker-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(51, 183, 197, 0.3);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  color: var(--blue-700);
  background: #f3fbfc;
  font-weight: 800;
}

.worker-photo-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.sst-profile-edit {
  background: linear-gradient(180deg, #ffffff, #f3fbfc);
}

.worker-profile-editor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.worker-profile-editor .row-sub {
  grid-column: 1 / -1;
}

.form-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 900;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.btn.ghost {
  color: var(--blue-700);
  background: #edf6fa;
}

.btn.outline {
  color: var(--blue);
  border-color: rgba(18, 93, 169, 0.35);
  background: white;
}

.btn.danger {
  color: #9c2a12;
  background: #fff0eb;
}

.btn.small {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.filters {
  margin-bottom: 12px;
}

.filters input,
.filters select {
  flex: 1 1 220px;
  min-height: 40px;
}

.expense-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 4px 6px 4px 10px;
  border: 1px solid rgba(18, 93, 169, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
  box-shadow: 0 6px 16px rgba(18, 93, 169, 0.08);
  cursor: pointer;
}

.expense-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.expense-toggle-text {
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.expense-toggle-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 71px;
  height: 27px;
  padding: 0 8px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #10cf18, #08b510);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
  transition: background 0.22s ease, justify-content 0.22s ease;
}

.expense-toggle-slider::before {
  content: attr(data-on);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.expense-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease;
}

.expense-toggle input:not(:checked) + .expense-toggle-slider {
  justify-content: flex-end;
  background: linear-gradient(135deg, #ff2a1d, #e41306);
}

.expense-toggle input:not(:checked) + .expense-toggle-slider::before {
  content: attr(data-off);
}

.expense-toggle input:not(:checked) + .expense-toggle-slider::after {
  transform: translateX(-44px);
}

@media (max-width: 720px) {
  .expense-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .expense-toggle-slider {
    width: 71px;
    height: 27px;
  }

  .expense-toggle-slider::after {
    width: 15px;
    height: 15px;
  }

  .expense-toggle input:not(:checked) + .expense-toggle-slider::after {
    transform: translateX(-44px);
  }
}

.table-wrap {
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  background: white;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #2b4358;
  background: #eef6f9;
  font-size: 0.78rem;
  text-transform: uppercase;
  box-shadow: 0 1px 0 var(--line);
}

td {
  color: #263746;
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

.row-title {
  display: block;
  color: var(--blue-700);
  font-weight: 900;
}

.oil-plate-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(18, 93, 169, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef6f9;
}

.oil-plate-badge.is-warning {
  color: #805400;
  border-color: rgba(242, 181, 34, 0.56);
  background: #fff7dd;
}

.oil-plate-badge.is-overdue {
  color: #9c1c12;
  border-color: rgba(215, 44, 24, 0.48);
  background: #fff0ee;
  animation: urgent-plate-pulse 1.08s ease-in-out infinite;
}

.oil-row-danger {
  background: linear-gradient(90deg, rgba(215, 44, 24, 0.11), rgba(255, 255, 255, 0.96) 36%);
  box-shadow: inset 4px 0 0 #d72c18;
}

.oil-row-warn {
  background: linear-gradient(90deg, rgba(242, 181, 34, 0.12), rgba(255, 255, 255, 0.96) 36%);
  box-shadow: inset 4px 0 0 #f2b522;
}

@keyframes urgent-plate-pulse {
  0%,
  100% {
    color: #9c1c12;
    background: #fff0ee;
    box-shadow: 0 0 0 0 rgba(215, 44, 24, 0.44);
    transform: scale(1);
  }

  50% {
    color: #ffffff;
    background: #d72c18;
    box-shadow: 0 0 0 6px rgba(215, 44, 24, 0.16), 0 0 20px rgba(215, 44, 24, 0.34);
    transform: scale(1.04);
  }
}

.row-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.empty-row {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-inline {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  transform: translateY(16px);
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 6px;
  padding: 12px 14px;
  color: white;
  background: var(--blue-700);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.access-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(18, 93, 169, 0.2), rgba(245, 249, 251, 0.94)),
    rgba(245, 249, 251, 0.96);
}

.access-card {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.access-card img {
  width: 230px;
  margin-bottom: 16px;
}

.access-card h2 {
  margin: 0;
  color: var(--blue-700);
  font-size: 1.7rem;
}

.access-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.access-card .btn {
  width: 100%;
}

.access-error {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: #9c2a12;
  font-size: 0.84rem;
  font-weight: 800;
}

.expense-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.expense-entry-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.expense-plate-dashboard-card {
  padding: 16px;
}

.plate-spend-dashboard {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.plate-spend-dashboard.is-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plate-spend-dashboard.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 93, 169, 0.3);
  box-shadow: 0 14px 26px rgba(18, 93, 169, 0.11);
}

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

.plate-spend-kpis article {
  min-height: 70px;
  border: 1px solid rgba(51, 183, 197, 0.18);
  border-radius: 6px;
  padding: 10px;
  background: #f7fbfd;
}

.plate-spend-kpis span,
.plate-spend-dashboard small,
.plate-spend-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.plate-spend-kpis strong {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.15;
}

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

.plate-spend-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.plate-spend-row:hover,
.plate-spend-row:focus-visible {
  outline: none;
  border-color: rgba(18, 93, 169, 0.32);
  background: #f8fcfd;
}

.plate-spend-row strong,
.plate-spend-row b {
  position: relative;
  z-index: 1;
  color: var(--blue-700);
  font-size: 0.92rem;
}

.plate-spend-row em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  text-transform: none;
}

.plate-spend-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-metrics article,
.dashboard-chart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.dashboard-metrics article {
  min-height: 86px;
  padding: 12px;
}

.dashboard-metrics span,
.chart-heading span,
.bar-meta,
.company-chip em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 9px;
  color: var(--blue);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.15;
  word-break: break-word;
}

.dashboard-chart {
  padding: 12px;
}

.dashboard-chart.is-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-chart.is-clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 93, 169, 0.28);
  box-shadow: 0 12px 24px rgba(18, 93, 169, 0.1);
}

.chart-heading,
.bar-label,
.bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chart-heading {
  margin-bottom: 10px;
}

.chart-heading strong {
  color: var(--blue-700);
  font-size: 0.9rem;
}

.company-bar {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.company-bar.is-clickable,
.pie-legend .is-clickable {
  cursor: pointer;
}

.company-bar.is-clickable:hover .bar-label span,
.pie-legend .is-clickable:hover {
  color: var(--blue);
  text-decoration: underline;
}

.expense-detail-modal {
  width: min(1180px, 100%);
}

.expense-detail-summary article {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.expense-detail-summary article span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.expense-detail-summary article strong {
  display: block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 1.2rem;
}

.expense-detail-chart {
  margin-top: 14px;
}

.expense-detail-table {
  margin-top: 14px;
}

.bar-label span {
  color: #263746;
  font-weight: 900;
}

.bar-label strong {
  color: var(--green);
  font-size: 0.9rem;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff4;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.bar-fill.is-alert {
  background: linear-gradient(90deg, var(--orange), #d72c18);
}

.bar-fill.alt-fill {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.bar-fill.is-warning {
  background: linear-gradient(90deg, #f5c542, var(--orange));
}

.dashboard-empty {
  margin: 0;
  color: var(--muted);
}

.fuel-dashboard,
.work-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.fuel-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.fuel-alert {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(4, 166, 75, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fff9;
}

.fuel-alert strong {
  color: var(--blue-700);
}

.fuel-alert span {
  color: var(--muted);
  font-size: 0.86rem;
}

.fuel-alert.warn {
  border-color: rgba(242, 101, 34, 0.32);
  background: #fff8f2;
}

.fuel-alert.danger {
  border-color: rgba(215, 44, 24, 0.34);
  background: #fff0ee;
}

.fuel-alert.ok {
  border-color: rgba(4, 166, 75, 0.22);
  background: #f8fff9;
}

.alert-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.moving-alert {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(4, 166, 75, 0.22);
  border-radius: var(--radius);
  background: #f8fff9;
}

.moving-alert > div {
  display: inline-flex;
  align-items: center;
  min-width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: #0a6d34;
  font-weight: 900;
  white-space: nowrap;
  animation: slide-alert 24s linear infinite;
}

.moving-alert.warn {
  border-color: rgba(242, 181, 34, 0.44);
  background: #fff9e8;
}

.moving-alert.warn > div {
  color: #805400;
}

.moving-alert.danger {
  border-color: rgba(215, 44, 24, 0.34);
  background: #fff0ee;
}

.moving-alert.danger > div {
  color: #9c1c12;
}

@keyframes slide-alert {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 720px) {
  .alert-toolbar {
    grid-template-columns: 1fr;
  }
}

.import-status {
  display: grid;
  gap: 8px;
  min-height: 42px;
}

.import-result {
  border: 1px solid rgba(4, 166, 75, 0.22);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f8fff9;
}

.import-result strong {
  display: block;
  color: var(--green);
}

.import-result span {
  color: var(--muted);
  font-size: 0.86rem;
}

.document-import-summary {
  min-height: 42px;
}

.doc-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.doc-summary-grid span,
.document-chip {
  border: 1px solid rgba(18, 93, 169, 0.16);
  border-radius: 6px;
  padding: 8px 10px;
  background: #f7fbff;
  color: #334658;
  font-size: 0.78rem;
  font-weight: 800;
}

.doc-summary-grid strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
}

.doc-summary-grid .doc-alert {
  border-color: rgba(215, 44, 24, 0.28);
  background: #fff0ee;
}

.doc-summary-grid .doc-alert strong {
  color: #b82718;
}

.document-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-chip {
  display: inline-flex;
  align-items: center;
}

.work-list-card {
  min-width: 0;
}

.work-dashboard .dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.chart-filter-row {
  display: flex;
  justify-content: flex-end;
}

.chart-filter-row label {
  display: grid;
  gap: 5px;
  min-width: min(240px, 100%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-charts {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) repeat(2, minmax(260px, 0.85fr));
  gap: 10px;
}

.expense-chart-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.2fr) repeat(2, minmax(220px, 0.9fr));
  gap: 10px;
}

.chart-wide {
  min-width: 0;
}

.line-chart svg {
  width: 100%;
  min-height: 210px;
}

.chart-axis {
  stroke: #c8d8e2;
  stroke-width: 1;
}

.line-area {
  fill: rgba(51, 183, 197, 0.16);
}

.line-path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-dot {
  fill: var(--orange);
  stroke: white;
  stroke-width: 2;
}

.line-chart text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.line-chart .line-value {
  fill: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
}

.chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pie-chart-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pie-chart {
  width: min(150px, 100%);
  aspect-ratio: 1;
  border: 10px solid white;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(10, 43, 74, 0.08), 0 12px 26px rgba(10, 43, 74, 0.12);
}

.pie-legend {
  display: grid;
  gap: 7px;
}

.pie-legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.work-operations-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.work-alert-card {
  max-height: 52vh;
  overflow: auto;
}

.table-scroll-top {
  display: none;
}

.table-scroll-top > div {
  height: 1px;
}

.work-table-wrap table {
  min-width: 1480px;
}

.oil-table-wrap table {
  min-width: 1180px;
}

.work-table-wrap {
  cursor: grab;
}

.work-table-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.table-input,
.table-select {
  min-width: 132px;
  padding: 8px 9px;
}

.table-select {
  min-width: 150px;
}

.work-status-select {
  border-width: 2px;
  font-weight: 900;
}

.work-status-select.status-realized {
  border-color: rgba(4, 166, 75, 0.45);
  color: #0a6d34;
  background: #e6f8ec;
}

.work-status-select.status-progress {
  border-color: rgba(242, 181, 34, 0.6);
  color: #805400;
  background: #fff7dd;
}

.work-status-select.status-scheduled {
  border-color: rgba(18, 93, 169, 0.42);
  color: var(--blue-700);
  background: #eaf6fb;
}

.clamp-text {
  display: -webkit-box;
  max-width: 420px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.work-alert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.link-button {
  min-height: 32px;
  border: 0;
  padding: 0 2px;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
}

.work-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 43, 74, 0.34);
}

.work-detail-card {
  width: min(980px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.work-detail-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.work-detail-card h2,
.work-detail-description h3 {
  margin: 0;
  color: var(--blue-700);
}

.work-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.work-detail-description {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fcfd;
}

.sst-evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sst-evidence-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fcfd;
}

.sst-evidence-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.sst-evidence-gallery a:hover img {
  transform: scale(1.03);
}

.sst-improvement-modal {
  width: min(1180px, 100%);
}

.sst-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.sst-schedule-summary article {
  border: 1px solid rgba(18, 93, 169, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fcfd;
}

.sst-schedule-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sst-schedule-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-700);
  font-size: 1.25rem;
}

.sst-improvement-schedule {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.sst-improvement-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.sst-improvement-row-head {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: stretch;
}

.sst-improvement-row-head span {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.sst-improvement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.sst-followup-field {
  margin-top: 10px;
}

.work-detail-edit {
  margin-top: 14px;
  border: 1px solid rgba(18, 93, 169, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: #f5f9fb;
}

.work-detail-edit h3 {
  margin: 0 0 10px;
  color: var(--blue-700);
}

.work-detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.work-detail-edit-grid .full-field {
  grid-column: 1 / -1;
}

.oil-filter-editor {
  margin: 10px 0 16px;
  border: 1px solid rgba(18, 93, 169, 0.16);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fcfd;
}

.oil-filter-rows,
.oil-modal-filters {
  display: grid;
  gap: 8px;
}

.oil-filter-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(110px, 0.75fr) minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.oil-filter-row input {
  min-height: 38px;
}

.work-detail-description p {
  margin-bottom: 0;
  line-height: 1.45;
}

.missing-plate-list {
  display: grid;
  gap: 10px;
}

.missing-plate-item {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.35fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fcfd;
}

.missing-plate-item p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.company-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.company-chip {
  width: 100%;
  border: 1px solid rgba(4, 166, 75, 0.22);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fff9;
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

button.company-chip:hover,
button.company-chip:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(10, 43, 74, 0.14);
}

.fleet-company-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.16), 0 16px 28px rgba(10, 43, 74, 0.14);
}

.company-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-chip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 1rem;
}

.company-chip em {
  display: block;
  line-height: 1.35;
  text-transform: none;
}

.company-chip small {
  display: block;
  margin-top: 8px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0.82;
}

.fleet-company-card {
  min-height: 116px;
  border-width: 2px;
}

.fleet-company-card.fleet-company-gesteser,
tr.fleet-company-gesteser td {
  background: linear-gradient(90deg, #dff6ff, #ffffff 72%);
}

.fleet-company-card.fleet-company-tgn {
  border-color: rgba(13, 66, 124, 0.44);
  color: white;
  background: linear-gradient(135deg, #0d427c, #125da9);
}

.fleet-company-card.fleet-company-tgn strong,
.fleet-company-card.fleet-company-tgn span,
.fleet-company-card.fleet-company-tgn em {
  color: white;
}

tr.fleet-company-tgn td {
  background: linear-gradient(90deg, #e6eef8, #ffffff 72%);
}

.fleet-company-card.fleet-company-avsa,
tr.fleet-company-avsa td {
  background: linear-gradient(90deg, #fff0a8, #ffffff 74%);
}

.fleet-company-card.fleet-company-d1 {
  border-color: rgba(215, 44, 24, 0.44);
  color: white;
  background: linear-gradient(135deg, #d72c18, #ff5a3f);
}

.fleet-company-card.fleet-company-d1 strong,
.fleet-company-card.fleet-company-d1 span,
.fleet-company-card.fleet-company-d1 em {
  color: white;
}

tr.fleet-company-d1 td {
  background: linear-gradient(90deg, #ffe1df, #ffffff 74%);
}

tr.oil-row-danger td {
  background: linear-gradient(90deg, rgba(215, 44, 24, 0.16), rgba(255, 255, 255, 0.98) 66%) !important;
}

tr.oil-row-warn td {
  background: linear-gradient(90deg, rgba(242, 181, 34, 0.16), rgba(255, 255, 255, 0.98) 66%) !important;
}

.fleet-company-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0d427c;
  background: #eef6f9;
  font-size: 0.72rem;
  font-weight: 900;
}

.fleet-company-badge.fleet-company-gesteser {
  background: #cbedff;
}

.fleet-company-badge.fleet-company-tgn {
  color: white;
  background: #0d427c;
}

.fleet-company-badge.fleet-company-avsa {
  color: #805400;
  background: #ffe681;
}

.fleet-company-badge.fleet-company-d1 {
  color: white;
  background: #d72c18;
}

.fleet-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.fleet-dashboard-card,
.fleet-calendar-card,
.fleet-table-card {
  grid-column: 1 / -1;
}

.fleet-document-calendar {
  display: grid;
  gap: 12px;
}

.fleet-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.fleet-calendar-summary,
.fleet-doc-card,
.fleet-document-card {
  border: 1px solid rgba(18, 93, 169, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f7fcfb);
}

.fleet-calendar-summary h3 {
  margin: 4px 0;
  color: var(--blue-700);
}

.fleet-calendar-summary span,
.fleet-doc-card span,
.fleet-doc-card em,
.fleet-document-card p {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.fleet-doc-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
}

.fleet-doc-card strong {
  display: block;
  margin-top: 2px;
  color: var(--blue-700);
  font-size: 1.2rem;
}

.fleet-doc-card.is-warning {
  border-color: rgba(242, 181, 34, 0.45);
  background: #fff9e8;
}

.fleet-doc-card.is-overdue {
  border-color: rgba(215, 44, 24, 0.42);
  background: #fff0ee;
  animation: urgent-plate-pulse 1.08s ease-in-out infinite;
}

.fleet-expired-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(215, 44, 24, 0.28);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff7f5;
}

.fleet-expired-stack strong {
  color: #9c1c12;
}

.fleet-expired-chip {
  border: 1px solid rgba(215, 44, 24, 0.34);
  border-radius: 999px;
  padding: 7px 10px;
  color: #9c1c12;
  background: white;
  font-weight: 900;
}

.fleet-doc-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.fleet-doc-pill.is-ok {
  color: #0a6d34;
  background: #e6f8ec;
}

.fleet-doc-pill.is-warning {
  color: #805400;
  background: #fff7dd;
}

.fleet-doc-pill.is-missing {
  color: #516070;
  background: #eef3f6;
}

.fleet-doc-pill.is-overdue {
  color: #9c1c12;
  background: #ffe9e6;
  animation: urgent-plate-pulse 1.08s ease-in-out infinite;
}

.fleet-profile-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: linear-gradient(135deg, #f7fcfd, #eef8f5);
}

.fleet-profile-hero h2 {
  margin: 4px 0;
  color: var(--blue-700);
}

.fleet-vehicle-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(18, 93, 169, 0.14);
  border-radius: var(--radius);
  object-fit: cover;
  background: #edf6fa;
}

.fleet-vehicle-cover.placeholder {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 900;
}

.fleet-tech-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.fleet-tech-title {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 3px solid rgba(18, 93, 169, 0.18);
  padding-bottom: 12px;
}

.fleet-tech-title img {
  width: 100%;
}

.fleet-document-list,
.fleet-history-list {
  display: grid;
  gap: 10px;
}

.fleet-document-card {
  display: grid;
  gap: 8px;
}

.fleet-document-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

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

.fleet-history-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.fleet-history-list p {
  margin: 7px 0 0;
  color: #3b4d5d;
  line-height: 1.45;
}

.fleet-history-list em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.fleet-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.fleet-photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.fleet-table-wrap table {
  min-width: 1280px;
}

.document-chip.is-danger {
  color: #9c1c12;
  border-color: rgba(215, 44, 24, 0.28);
  background: #fff0ee;
}

@media (max-width: 760px) {
  .fleet-profile-hero,
  .fleet-tech-title {
    grid-template-columns: 1fr;
  }
}

.services-layout {
  display: grid;
  gap: 14px;
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.contact-card-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-info h2,
.capability-band h2 {
  color: var(--blue-700);
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
}

.contact-info p {
  color: var(--muted);
  line-height: 1.6;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: #263746;
  font-weight: 800;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-gallery article {
  overflow: hidden;
}

.service-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-gallery h3 {
  margin: 14px 14px 7px;
  color: var(--blue-700);
  font-size: 1.05rem;
}

.service-gallery p {
  margin: 0 14px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.capability-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(340px, 1.4fr);
  gap: 18px;
  padding: 18px;
  border-color: rgba(165, 207, 46, 0.45);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
}

.service-list li {
  color: #334658;
  line-height: 1.45;
}

.sst-dashboard-card .dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.sst-executive-charts {
  grid-template-columns: minmax(420px, 1.35fr) repeat(2, minmax(250px, 0.85fr));
}

.sst-table-wrap table {
  min-width: 1080px;
}

.sst-compliance-wrap table {
  min-width: 1320px;
}

.sst-worker-detail .work-detail-description p {
  line-height: 1.55;
}

.sst-dashboard-card {
  overflow: hidden;
}

.sst-payroll-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 93, 169, 0.14);
}

.sst-payroll-dashboard.is-clickable .dashboard-chart,
.sst-payroll-dashboard.is-clickable .dashboard-metrics article {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sst-payroll-dashboard.is-clickable .dashboard-chart:hover,
.sst-payroll-dashboard.is-clickable .dashboard-metrics article:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 93, 169, 0.28);
  box-shadow: 0 16px 32px rgba(18, 93, 169, 0.12);
}

.payroll-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.payroll-charts {
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
}

.payroll-position-bar .bar-fill {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.payroll-table-wrap table {
  min-width: 1420px;
}

.payroll-table-wrap td:nth-child(6) {
  color: var(--blue-700);
  font-weight: 900;
  white-space: nowrap;
}

.payroll-table-wrap .table-input,
.payroll-detail-modal .table-input {
  width: 100%;
  min-width: 128px;
  border-color: rgba(18, 93, 169, 0.18);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.payroll-table-wrap .payroll-name-input,
.payroll-detail-modal .payroll-name-input {
  min-width: 220px;
}

.payroll-table-wrap .payroll-money-input,
.payroll-detail-modal .payroll-money-input {
  min-width: 132px;
  color: var(--blue-700);
  font-weight: 950;
  text-align: right;
}

.payroll-table-wrap .table-input:focus,
.payroll-detail-modal .table-input:focus {
  border-color: rgba(18, 93, 169, 0.48);
  box-shadow: 0 0 0 3px rgba(48, 183, 196, 0.16);
  outline: none;
}

.payroll-area-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 93, 169, 0.16);
  border-radius: 999px;
  background: #eef8fb;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-modal-charts {
  grid-template-columns: minmax(320px, 0.85fr) minmax(460px, 1.15fr);
}

.payroll-detail-modal .expense-detail-table table {
  min-width: 1080px;
}

#print-area {
  display: none;
}

.print-document {
  color: #172333;
  font-family: "Segoe UI", Arial, sans-serif;
}

.print-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 4px solid var(--blue);
  padding-bottom: 14px;
}

.print-header img {
  max-width: 220px;
}

.print-header h1 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 28px;
}

.print-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.print-box {
  border: 1px solid #ccd9e2;
  border-radius: 6px;
  padding: 10px;
}

.print-box span,
.print-section span {
  display: block;
  color: #667281;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-box strong,
.print-section strong {
  display: block;
  margin-top: 4px;
}

.print-section {
  margin: 14px 0;
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  padding: 12px;
}

.print-section h2 {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 16px;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.print-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.print-photo-grid img {
  width: 100%;
  height: 150px;
  border: 1px solid #d8e2e8;
  border-radius: 6px;
  object-fit: cover;
}

.print-percent {
  height: 8px;
  overflow: hidden;
  margin-top: 5px;
  border-radius: 999px;
  background: #e7eff4;
}

.print-percent span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.signature-line {
  border-top: 1px solid #667281;
  padding-top: 8px;
  color: #394b5b;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .summary-grid,
  .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid,
  .work-operations-grid,
  .oil-filter-row,
  .expense-chart-grid,
  .executive-charts,
  .service-intro,
  .capability-band,
  .dashboard-metrics,
  .birthday-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .topbar,
  .brand,
  .contact-strip,
  .shared-indicator,
  .data-actions,
  .tabs,
  .form-actions {
    align-items: stretch;
  }

  .topbar,
  .brand,
  .contact-strip,
  .data-actions {
    flex-direction: column;
  }

  .birthday-actions {
    justify-content: flex-start;
  }

  .birthday-poster {
    padding: 22px 14px;
  }

  .birthday-decor {
    display: none;
  }

  .worker-avatar.birthday {
    width: 88px;
    height: 88px;
  }

  .worker-avatar.birthday-large {
    width: 128px;
    height: 128px;
  }

  .worker-profile-editor {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .brand-logo {
    width: min(100%, 260px);
  }

  .contact-strip {
    justify-content: flex-start;
  }

  .summary-grid,
  .field-grid.two,
  .field-grid.three,
  .service-gallery,
  .service-list,
  dl {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 auto;
  }

  table {
    min-width: 680px;
  }
}

@media print {
  body {
    background: white;
  }

  #app-shell {
    display: none !important;
  }

  #print-area {
    display: block;
  }

  @page {
    margin: 14mm;
    size: letter;
  }

  .print-document {
    font-size: 12px;
  }

  .print-section,
  .print-box,
  .print-photo-grid img {
    break-inside: avoid;
  }
}
