@charset "UTF-8";
:root {
  --forest: #193d34;
  --forest-hover: #245346;
  --lime: #d4e8bc;
  --ink: #23332d;
  --muted: #6e7872;
  --border: #e3e6df;
  --canvas: #f5f6f2;
  --white: #fff;
  --danger: #a13932;
  --radius: 14px;
  --shadow: 0 3px 15px #213f3210;
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin-bottom: 6px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 12px;
}
ul {
  padding-left: 20px;
}
a,
button,
input,
textarea,
summary {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--forest);
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 5px;
  left: 5px;
  background: var(--white);
  padding: 12px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 10px;
}
.button {
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-align: center;
}
.button.primary {
  background: var(--forest);
  color: white;
}
.button.primary:hover {
  background: var(--forest-hover);
}
.button.secondary {
  background: white;
  border-color: #d9dfd6;
}
.button.secondary:hover {
  background: #f0f3ed;
  border-color: #bfcabc;
}
.button.ghost {
  background: transparent;
  color: var(--muted);
}
.button.ghost:hover {
  background: #edf0e8;
}
.button.danger {
  color: var(--danger);
  border-color: #e8c7c3;
  background: #fff8f6;
}
.button.danger:hover {
  background: #fae6e2;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: inherit;
}
.icon-button:hover {
  background: #ffffff15;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 13px;
  color: var(--forest);
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 17px;
  height: 17px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.back-link:hover {
  color: var(--forest);
}
/* Application shell */
.admin-body {
  background: var(--canvas);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: #e8efdf;
  padding: 32px 22px 18px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.1;
}
.brand-symbol {
  background: var(--lime);
  width: 39px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--forest);
}
.brand-symbol .icon {
  width: 25px;
  height: 25px;
}
.brand-light {
  font-weight: 350;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 8px;
  margin-top: 8px;
  font-weight: 500;
  color: #c2d3b9;
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #a3b9ad;
  margin: 54px 12px 15px;
}
.main-nav {
  display: grid;
  gap: 6px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  color: #bbd0c4;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  min-height: 46px;
}
.main-nav a:hover {
  background: #ffffff08;
  color: white;
}
.main-nav a.active {
  background: #d5eabc1a;
  color: #e5f3d4;
  box-shadow: inset 3px 0 var(--lime);
}
.main-nav .icon {
  width: 19px;
  height: 19px;
  opacity: 0.85;
}
.sidebar-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #a4be9455;
  padding: 12px 7px;
  border-radius: 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 650;
  margin-top: 29px;
}
.sidebar-create:hover {
  background: #ffffff0c;
}
.sidebar-create .icon {
  width: 17px;
  height: 17px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  font-size: 11px;
  line-height: 1.9;
  color: #a5bcae;
  padding: 25px 9px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 0 0;
  border-top: 1px solid #ffffff18;
  min-width: 0;
}
.avatar {
  height: 35px;
  width: 35px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcebc5;
  color: var(--forest);
  font-weight: 650;
}
.user-card > div {
  min-width: 0;
  flex: 1;
}
.user-card strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.user-card small {
  color: #a8c1b3;
  font-size: 10px;
}
.user-card form {
  margin: 0;
}
.user-card .icon-button {
  width: 30px;
  color: #b5c8bd;
}
.workspace {
  margin-left: 238px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfefa;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb .breadcrumb-separator {
  padding: 0 10px;
  color: #b8bfb5;
}
.breadcrumb strong {
  color: #4a5d51;
  font-weight: 550;
}
.topbar-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-date-short {
  display: none;
}
.menu-toggle {
  display: none;
}
.main-content {
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  padding: 38px;
  flex: 1;
  min-width: 0;
}
.workspace-footer {
  padding: 20px 38px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: #899087;
  font-size: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.heading-dot {
  color: #a78d4b;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quiet-label {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
}
.panel-heading h2 {
  font-size: 16px;
}
.panel-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.notice {
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.notice.success {
  background: #e6efdc;
  border: 1px solid #c9dabc;
  color: #325539;
}
.notice.error {
  background: #fff0ed;
  border: 1px solid #edc8c3;
  color: #943d35;
}
.heading-count {
  background: #eef2e8;
  color: #4b654b;
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: 7px;
  vertical-align: middle;
}
.empty-state {
  text-align: center;
  padding: 54px 22px;
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  width: 56px;
  height: 56px;
  border: 1px solid #e3e9dc;
  border-radius: 16px;
  background: #f6f8f1;
  color: #65805e;
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty-state h3,
.empty-state h2 {
  font-size: 17px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  max-width: 410px;
  margin: 0 auto 22px;
}
.pagination {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination .button {
  font-size: 11px;
  min-height: 40px;
  padding: 8px 12px;
}
/* Dashboard and lists */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.stat-label {
  font-size: 12px;
  font-weight: 550;
  color: #617163;
  display: block;
}
.stat-card strong {
  display: block;
  font-size: 38px;
  line-height: 1.25;
  margin: 12px 0 12px;
  letter-spacing: -1.5px;
  font-weight: 650;
}
.stat-card .muted {
  font-size: 10px;
  display: block;
}
.stat-icon {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #edf3e4;
  color: #56714a;
}
.stat-icon.amber {
  background: #f8f0df;
  color: #a17e32;
}
.stat-icon.blue {
  background: #eaf0f2;
  color: #547580;
}
.quick-search {
  border: 1px solid #dce4d2;
  background: #eaf0e2;
  border-radius: var(--radius);
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.quick-search > div {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.quick-search h2 {
  font-size: 17px;
}
.quick-search p {
  color: #718069;
  font-size: 11px;
  margin: 0;
}
.search-emblem {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #cbd7be;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: #f1f5eb;
}
.quick-search form {
  display: flex;
  gap: 8px;
  max-width: 360px;
}
.quick-search input {
  min-width: 0;
  width: 190px;
}
.quick-search .button {
  white-space: nowrap;
}
.records-table-head,
.record-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 0.9fr 20px;
  align-items: center;
  column-gap: 12px;
  padding: 18px 26px;
}
.records-table-head {
  background: #f8f9f5;
  border-top: 1px solid #edf0e7;
  border-bottom: 1px solid #edf0e7;
  color: #7e897d;
  font-size: 9px;
  font-weight: 650;
}
.record-row {
  border-bottom: 1px solid #edf0e7;
  font-size: 11px;
  min-height: 78px;
}
.record-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.record-row:hover {
  background: #fafbf7;
}
.plate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mini-car {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f3ec;
  color: #738368;
}
.mini-car .icon {
  width: 17px;
  height: 17px;
}
.plate-text {
  font-weight: 750;
  letter-spacing: 0.7px;
  white-space: nowrap;
}
.count-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: #f0f3ea;
  color: #617154;
  white-space: nowrap;
}
.row-arrow {
  color: #8d9986;
}
.row-arrow .icon {
  width: 16px;
}
.dashboard-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 8px;
  font-size: 10px;
  color: #8a9483;
}
.dashboard-note .icon {
  width: 13px;
  height: 13px;
}
.filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 24px;
  gap: 15px;
}
.filter-form .field {
  flex: 1 1 150px;
  margin: 0;
}
.filter-form .button {
  flex-shrink: 0;
}
/* Fields and maintenance form */
.field {
  margin-bottom: 20px;
  min-width: 0;
}
.field label,
.custom-section > label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
  color: #3e5044;
}
.field label > span:not(.optional),
.required-mark {
  color: #b48348;
}
.field label.required-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.required-label .required-mark {
  display: inline;
  line-height: 1;
}
.field small:empty {
  display: none;
}
.field .optional {
  font-size: 10px;
  font-weight: 400;
  color: #92998f;
  margin-left: 5px;
}
input:not([type="checkbox"]),
textarea {
  border: 1px solid #dce1d6;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  width: 100%;
  min-width: 0;
  line-height: 1.5;
  transition: border-color 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #a1a89c;
  font-size: 12px;
}
input:hover,
textarea:hover {
  border-color: #bbc8b4;
}
input:focus,
textarea:focus {
  border-color: #5d7d4d;
  box-shadow: 0 0 0 3px #5d7d4d0c;
}
input[readonly] {
  background: #f7f8f4;
  color: #67715f;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.field small,
.custom-section small {
  display: block;
  color: #90988a;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 7px;
}
.field-error {
  display: block;
  color: #a14034;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}
.field-error:empty {
  display: none;
}
.field-validation-valid {
  display: none;
}
.input-validation-error,
input[aria-invalid="true"] {
  border-color: #b65448 !important;
  background: #fffaf9 !important;
}
.validation-summary {
  font-size: 12px;
  color: #a14034;
  background: #fff2ef;
  border: 1px solid #ebccc6;
  padding: 15px 18px;
  border-radius: 9px;
  margin-bottom: 22px;
}
.validation-summary-valid {
  display: none;
}
.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}
.validation-summary li + li {
  margin-top: 4px;
}
.validation-summary:empty {
  display: none;
}
.maintenance-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.form-main {
  min-width: 0;
}
.form-section {
  padding: 26px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #edf0e6;
  min-width: 0;
}
.section-title h2 {
  font-size: 16px;
}
.section-title p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.step-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 11px;
  color: #6e7e61;
  border: 1px solid #dfe6d6;
  border-radius: 8px;
  background: #f5f7ef;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.form-grid .field:last-child {
  margin-bottom: 0;
}
@media (min-width: 769px) {
  .form-grid .field:nth-last-child(2) {
    margin-bottom: 0;
  }
}
.plate-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #dce1d6;
  border-radius: 8px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.plate-input:focus-within {
  border-color: var(--forest);
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.plate-country {
  width: 33px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #204981;
  color: white;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 650;
}
.plate-input input {
  border: 0;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 16px;
  min-width: 0;
}
.plate-input input:focus {
  outline: none;
  box-shadow: none;
}
.plate-input input::placeholder {
  font-size: 14px;
  letter-spacing: 1px;
}
.input-suffix {
  position: relative;
}
.input-suffix input {
  padding-right: 43px;
}
.input-suffix > span {
  position: absolute;
  right: 15px;
  top: 12px;
  color: #89917f;
  font-size: 13px;
  pointer-events: none;
}
.selection-count {
  font-size: 10px;
  margin-left: auto;
  padding: 5px 9px;
  background: #edf3e6;
  color: #4c6c3a;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 600;
}
.operation-group {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
  min-width: 0;
}
.operation-group legend {
  font-size: 11px;
  font-weight: 650;
  color: #829073;
  margin-bottom: 12px;
  padding: 0;
}
.operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.operation {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e6dc;
  border-radius: 8px;
  padding: 12px;
  min-height: 46px;
  cursor: pointer;
  color: #64705f;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
}
.operation:hover {
  background: #f7f9f2;
  border-color: #c8d4be;
}
.operation input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.operation:focus-within {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}
.operation-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d8dfd0;
  border-radius: 5px;
  background: white;
  color: transparent;
}
.operation-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}
.operation:has(input:checked) {
  border-color: #8aa775;
  background: #edf4e6;
  color: #365a2c;
}
.operation input:checked + .operation-check {
  background: #5a7947;
  border-color: #5a7947;
  color: white;
}
.custom-section {
  border-top: 1px solid #edf0e6;
  padding-top: 23px;
}
.custom-input-row {
  display: flex;
  gap: 8px;
}
.custom-input-row .button {
  padding: 9px 14px;
  flex-shrink: 0;
}
.custom-input-row input {
  font-size: 12px;
}
.custom-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.custom-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #edf3e6;
  border: 1px solid #ccdabc;
  border-radius: 6px;
  padding: 6px 6px 6px 11px;
  color: #456537;
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.custom-chip > span {
  min-width: 0;
}
.custom-chip button {
  border: 0;
  color: #678256;
  background: transparent;
  font-size: 20px;
  width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
}
.custom-chip button:hover {
  background: #dce7cf;
}
.form-aside {
  position: sticky;
  top: 24px;
}
.summary-card {
  padding: 23px;
}
.summary-card h2 {
  font-size: 17px;
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  font-size: 11px;
  margin: 15px 0;
  color: #86917d;
}
.summary-line strong {
  color: #4b6041;
  font-size: 11px;
  text-align: right;
}
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 21px 0;
}
.summary-help {
  font-size: 10px;
  line-height: 1.8;
  display: flex;
  gap: 9px;
  color: #8b9482;
}
.summary-help .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
}
.save-button {
  font-size: 11px;
  padding: 12px;
  width: 100%;
  min-height: 47px;
}
.save-button .icon {
  width: 16px;
  height: 16px;
}
.cancel-link {
  display: block;
  text-align: center;
  padding-top: 14px;
  font-size: 11px;
  color: #8c9584;
}
.cancel-link:hover {
  color: var(--forest);
}
.form-tip {
  font-size: 10px;
  line-height: 1.8;
  color: #909986;
  text-align: center;
  padding: 0 10px;
}
/* Record detail and history */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 25px;
  padding: 24px 0;
}
.detail-stats-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-stats > div {
  padding: 0 25px;
  border-right: 1px solid var(--border);
}
.detail-stats > div:last-child {
  border: 0;
}
.detail-stats span {
  display: block;
  font-size: 10px;
  color: #85917b;
  margin-bottom: 7px;
}
.detail-stats strong {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
}
.completed-items {
  padding: 0;
  list-style: none;
  margin: 0;
}
.completed-items li {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #f0f2eb;
  font-size: 12px;
}
.completed-items li:last-child {
  border: 0;
}
.completed-items .count-tag {
  margin-left: auto;
}
.completed-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf4e6;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #5e8048;
}
.completed-check .icon {
  width: 13px;
  height: 13px;
}
.ready-message-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #eef6ec;
  border: 1px solid #c5dec0;
}
.ready-message-banner strong {
  display: block;
  font-size: 14px;
  color: #183a2c;
}
.ready-message-banner p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #2f5241;
}
.ready-message-actions,
.customer-message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.whatsapp-button {
  background: #1b6b3a;
  border-color: #1b6b3a;
  color: #ffffff;
}
.whatsapp-button:hover {
  background: #14542d;
  border-color: #14542d;
  color: #ffffff;
}
.customer-message-panel textarea {
  font-size: 13px;
  line-height: 1.6;
}
.customer-message-hint {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: #546350;
}
.copy-feedback {
  font-size: 12px;
  font-weight: 600;
  color: #1b6b3a;
}
.complaint-panel {
  background: #f4f6f9;
  border-color: #d6dee8;
}
.complaint-panel .eyebrow {
  color: #384e66;
}
.complaint-panel h2 {
  font-size: 16px;
}
.complaint-panel p {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 13px;
  color: #25374a;
}
.complaint-panel small {
  font-size: 10px;
  color: #384e66;
}
.completed-notes-panel {
  background: #f3f8ef;
  border-color: #d3e2c8;
}
.completed-notes-panel .eyebrow {
  color: #3b592f;
}
.completed-notes-panel h2 {
  font-size: 16px;
}
.completed-notes-panel p {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 13px;
  color: #2b4222;
}
.completed-notes-panel small {
  font-size: 10px;
  color: #3b592f;
}
.recommendation-panel {
  background: #fbf9ef;
  border-color: #eae5cc;
}
.recommendation-panel .eyebrow {
  color: #9b8a52;
}
.recommendation-panel h2 {
  font-size: 16px;
}
.recommendation-panel p {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 13px;
  color: #716943;
}
.recommendation-panel small {
  font-size: 10px;
  color: #9a916d;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.metadata {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 8px;
  margin: 22px 0;
  font-size: 10px;
}
.metadata dt {
  color: #8c9582;
}
.metadata dd {
  margin: 0;
  text-align: right;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.audit-history {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.audit-history summary {
  font-size: 11px;
  color: var(--forest);
  cursor: pointer;
}
.audit-history ol {
  padding-left: 15px;
  margin-bottom: 0;
}
.audit-history li {
  font-size: 10px;
  padding: 10px 0;
}
.audit-history span,
.audit-history small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.archive-box {
  padding: 0 8px;
}
.archive-box h3 {
  font-size: 12px;
}
.archive-box p {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.archive-box .button {
  font-size: 11px;
  width: 100%;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 430px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #10241b80;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin-top: 15px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.dialog-icon {
  width: 48px;
  height: 48px;
  background: #f9e9e4;
  color: #b35f4e;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.vehicle-search-panel {
  padding: 32px;
}
.vehicle-search-panel > .search-emblem {
  margin-bottom: 20px;
}
.vehicle-search-panel form {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 690px;
}
.vehicle-search-panel .field {
  flex: 1;
}
.vehicle-search-panel .button {
  margin-top: 26px;
}
.vehicle-search-panel > .muted {
  font-size: 10px;
  margin: 0;
}
.vehicle-heading {
  margin-top: 38px;
}
.vehicle-heading h2 {
  font-size: 30px;
}
.history-title {
  margin: 30px 0 20px;
}
.history-card {
  padding: 24px;
  display: flex;
  gap: 25px;
}
.history-date {
  width: 65px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 20px;
}
.history-date > span {
  font-size: 33px;
  display: block;
  line-height: 1.1;
  color: #48653a;
  font-weight: 600;
}
.history-date strong {
  display: block;
  font-size: 9px;
  color: #97a18d;
  font-weight: 500;
  margin-top: 8px;
}
.history-body {
  flex: 1;
  min-width: 0;
}
.history-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.history-card-heading h3 {
  font-size: 14px;
}
.history-card-heading > .muted {
  font-size: 11px;
}
.history-operations {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.history-operations > span {
  background: #f1f5eb;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
  color: #647658;
}
.history-complaint-note {
  padding: 12px 15px;
  border-left: 3px solid #6b88a8;
  background: #f4f6f9;
  font-size: 11px;
  color: #2d4359;
  margin-top: 14px;
}
.history-complaint-note p {
  margin: 5px 0 0;
}
.history-completed-note {
  padding: 12px 15px;
  border-left: 3px solid #7ea86b;
  background: #f3f8ef;
  font-size: 11px;
  color: #355229;
  margin-top: 17px;
}
.history-completed-note p {
  margin: 5px 0 0;
}
.history-recommendation {
  padding: 12px 15px;
  border-left: 3px solid #e0ce8e;
  background: #fcfaef;
  font-size: 11px;
  color: #8b7e4a;
  margin-top: 17px;
}
.history-recommendation p {
  margin: 5px 0 0;
}
.history-card-footer {
  border-top: 1px solid #edf0e6;
  padding-top: 16px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: #8d9685;
}
/* Sign-in */
.login-body {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100dvh;
  background: #fafbf7;
}
.login-story {
  background: var(--forest);
  color: #edf2e5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(28px, 4.8vw, 86px);
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  inset: auto -150px -280px auto;
  width: 600px;
  height: 600px;
  border: 1px solid #9ab68b18;
  border-radius: 50%;
  pointer-events: none;
}
.login-story .brand {
  font-size: 31px;
}
.story-copy {
  margin: auto 0;
  padding: 70px 0 50px;
}
.story-copy .eyebrow {
  color: #b2c9a1;
  font-size: 9px;
  letter-spacing: 2.1px;
}
.story-copy h1 {
  font-size: clamp(37px, 4.1vw, 65px);
  line-height: 1.13;
  letter-spacing: -2.2px;
  margin: 22px 0 26px;
  font-weight: 550;
}
.story-copy em {
  font-style: normal;
  color: var(--lime);
}
.story-copy p {
  font-size: 13px;
  color: #a4bcac;
  line-height: 1.9;
}
.car-illustration {
  margin-top: 32px;
  width: 100%;
  max-width: 450px;
  color: #a5bf9677;
}
.story-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #8eaa95;
  letter-spacing: 0.3px;
}
.small-dot {
  width: 6px;
  height: 6px;
  background: #b3c994;
  border-radius: 50%;
}
.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 30px 24px;
  min-width: 0;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 370px;
  margin: auto;
}
.login-lock {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dce4d3;
  border-radius: 13px;
  background: #eff4e7;
  color: #58714a;
  margin-bottom: 30px;
}
.login-card > .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.login-card h2 {
  font-size: 29px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin-bottom: 13px;
}
.login-card > .muted {
  font-size: 12px;
  margin-bottom: 35px;
}
.login-card .field {
  margin-bottom: 22px;
}
.login-card input:not([type="checkbox"]) {
  background: #fff;
  min-height: 48px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  color: #94a08b;
}
.password-toggle:hover {
  background: #edf2e5;
}
.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #53604b;
  margin: 4px 0 26px;
  cursor: pointer;
}
.remember input {
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
  margin: 0;
}
.remember small {
  display: block;
  color: #939b8b;
  font-size: 9px;
  margin-top: 3px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  padding: 14px 18px;
  min-height: 49px;
}
.login-submit .icon {
  width: 17px;
  height: 17px;
}
.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid #e5e9de;
  margin-top: 30px;
  padding-top: 22px;
  color: #98a18d;
  font-size: 9px;
}
.login-security .icon {
  width: 12px;
  height: 12px;
}
.login-footer {
  font-size: 9px;
  color: #9ba391;
  padding-top: 55px;
}
.login-mobile-brand {
  display: none;
}
.error-page {
  min-height: 100dvh;
  background: var(--canvas);
  display: grid;
  place-items: center;
  padding: 20px;
}
.error-card {
  max-width: 480px;
  background: white;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.error-card h1 {
  font-size: 27px;
}
.error-card p {
  color: var(--muted);
  font-size: 14px;
}
/* Tablet */
@media (min-width: 1600px) {
  .main-content {
    padding: 48px 55px;
  }
  .stats-grid {
    gap: 24px;
  }
  .stat-card {
    padding: 30px;
  }
  .maintenance-form,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }
  .form-section {
    padding: 32px;
  }
  .summary-card {
    padding: 28px;
  }
}
@media (max-width: 1199px) {
  .sidebar {
    width: 210px;
    padding: 28px 17px 17px;
  }
  .workspace {
    margin-left: 210px;
  }
  .main-content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .stat-card {
    padding: 19px;
  }
  .stat-card .muted {
    font-size: 9px;
  }
  .quick-search {
    flex-wrap: wrap;
  }
  .quick-search form {
    width: 100%;
    max-width: none;
  }
  .quick-search input {
    flex: 1;
  }
  .maintenance-form,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .form-section {
    padding: 22px;
  }
  .operation-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    padding: 19px;
  }
  .section-title {
    flex-wrap: wrap;
  }
  .selection-count {
    margin-left: 45px;
  }
  .record-row,
  .records-table-head {
    column-gap: 8px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .mini-car {
    display: none;
  }
  .detail-stats > div {
    padding: 0 18px;
  }
  .detail-stats strong {
    font-size: 14px;
  }
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
    transition: transform 0.2s;
    box-shadow: 15px 0 50px #112e231a;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
    color: var(--forest);
  }
  .menu-toggle:hover {
    background: #eaf0e1;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #10271f70;
    border: 0;
    z-index: 25;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .nav-overlay {
    display: block;
  }
  .nav-open {
    overflow: hidden;
  }
  .topbar {
    height: 66px;
    padding-left: 18px;
  }
  .main-content {
    padding: 30px;
  }
  .sidebar-caption {
    margin-top: 40px;
  }
  .main-nav a {
    font-size: 14px;
  }
  .sidebar-create {
    font-size: 13px;
  }
  .user-card strong {
    font-size: 13px;
  }
  .login-story {
    padding: 40px 30px;
  }
  .story-copy h1 {
    font-size: 42px;
  }
  .login-main {
    padding-left: 35px;
    padding-right: 35px;
  }
  .login-card h2 {
    font-size: 27px;
  }
  .maintenance-form,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .operation-grid {
    grid-template-columns: 1fr;
  }
}
/* Phone */
@media (max-width: 767px) {
  :root {
    font-size: 14px;
  }
  .topbar {
    padding: 0 16px;
    height: 62px;
    gap: 8px;
  }
  .topbar-date {
    display: block;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
  }
  .topbar-date-long {
    display: none;
  }
  .topbar-date-short {
    display: inline;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb .breadcrumb-parent,
  .breadcrumb .breadcrumb-separator {
    display: none;
  }
  .topbar-left {
    gap: 3px;
  }
  .main-content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  .page-heading > .button {
    width: 100%;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.7;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }
  .stat-card {
    padding: 15px 10px;
    position: relative;
    min-height: 142px;
  }
  .stat-label {
    font-size: 10px;
    line-height: 1.5;
    min-height: 30px;
    padding-right: 10px;
  }
  .stat-card strong {
    font-size: 29px;
    letter-spacing: -1px;
    margin: 6px 0;
  }
  .stat-card .muted {
    font-size: 8px;
    line-height: 1.6;
  }
  .stat-card .stat-icon {
    position: absolute;
    right: 10px;
    top: 15px;
    width: 18px;
    height: 18px;
    background: transparent;
  }
  .stat-card .stat-icon .icon {
    width: 15px;
    height: 15px;
  }
  .quick-search {
    padding: 21px 18px;
    gap: 20px;
  }
  .quick-search > div {
    gap: 12px;
  }
  .search-emblem {
    width: 40px;
    height: 40px;
  }
  .quick-search h2 {
    font-size: 15px;
  }
  .quick-search p {
    font-size: 10px;
    line-height: 1.7;
  }
  .quick-search form {
    flex-wrap: wrap;
  }
  .quick-search input {
    width: 100%;
    flex: 1 1 100%;
  }
  .quick-search form .button {
    width: 100%;
  }
  .panel-heading {
    padding: 20px;
    align-items: flex-start;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .panel-heading .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .panel-heading .text-link .icon {
    display: none;
  }
  .records-table-head {
    display: none;
  }
  .record-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 12px;
    padding: 20px;
    position: relative;
  }
  .record-row .plate-cell {
    grid-column: 1 / -1;
    font-size: 15px;
    padding-right: 30px;
  }
  .mini-car {
    display: grid;
  }
  .record-row [data-label] {
    font-size: 11px;
  }
  .record-row [data-label]:before {
    content: attr(data-label);
    display: block;
    color: #949e88;
    font-size: 9px;
    margin-bottom: 3px;
    font-weight: 400;
  }
  .record-row .row-arrow {
    position: absolute;
    right: 18px;
    top: 25px;
  }
  .record-row .count-tag {
    padding: 3px 7px;
  }
  .dashboard-note {
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.8;
    text-align: center;
    padding: 0 4px;
  }
  .dashboard-note .icon {
    display: none;
  }
  .workspace-footer {
    padding: 18px 16px;
    font-size: 9px;
  }
  .filter-form {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .filter-form .field:first-child {
    grid-column: 1/-1;
  }
  .filter-form .button {
    font-size: 12px;
  }
  .maintenance-form,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-section {
    padding: 20px;
  }
  .section-title {
    margin-bottom: 20px;
    padding-bottom: 19px;
    gap: 10px;
  }
  .section-title h2 {
    font-size: 15px;
  }
  .section-title p {
    font-size: 10px;
    line-height: 1.6;
  }
  .step-number {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .selection-count {
    margin: 4px 0 0 39px;
    font-size: 10px;
  }
  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .operation {
    padding: 10px 8px;
    font-size: 10px;
    gap: 6px;
    min-height: 52px;
  }
  .operation-check {
    width: 15px;
    height: 15px;
    border-radius: 4px;
  }
  .operation-check .icon {
    width: 11px;
    height: 11px;
  }
  .operation-group {
    margin-bottom: 22px;
  }
  .custom-input-row {
    gap: 7px;
  }
  .custom-input-row .button {
    padding: 10px;
    font-size: 11px;
  }
  .custom-input-row .button .icon {
    width: 15px;
    height: 15px;
  }
  .custom-input-row input {
    font-size: 12px;
  }
  .custom-input-row input::placeholder {
    font-size: 10px;
  }
  .field label {
    font-size: 12px;
    line-height: 1.6;
  }
  .field .optional {
    font-size: 9px;
    white-space: nowrap;
  }
  input:not([type="checkbox"]),
  textarea {
    font-size: 16px;
  }
  .field small {
    font-size: 10px;
  }
  .form-aside {
    position: static;
  }
  .summary-card {
    padding: 22px;
  }
  .summary-card h2 {
    font-size: 21px;
  }
  .summary-line,
  .summary-line strong {
    font-size: 12px;
  }
  .summary-help {
    font-size: 11px;
  }
  .save-button {
    font-size: 13px;
    min-height: 50px;
  }
  .cancel-link {
    padding: 17px 0 0;
    font-size: 12px;
  }
  .form-tip {
    font-size: 10px;
    margin-top: -7px;
  }
  .quiet-label {
    display: none;
  }
  .back-link {
    margin-bottom: 20px;
  }
  .heading-actions {
    width: 100%;
    gap: 9px;
  }
  .heading-actions .button {
    flex: 1;
    font-size: 11px;
    padding: 10px;
  }
  .detail-stats {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
  .detail-stats > div {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
  }
  .detail-stats > div:nth-child(2n) {
    border-right: 0;
  }
  .detail-stats > div:last-child,
  .detail-stats > div:nth-last-child(2) {
    border-bottom: 0;
  }
  .detail-stats strong {
    font-size: 14px;
  }
  .detail-stats > div:last-child {
    border-bottom: 0;
  }
  .metadata {
    font-size: 12px;
  }
  .audit-history summary {
    font-size: 12px;
  }
  .audit-history li {
    font-size: 11px;
  }
  .archive-box {
    padding: 8px 5px;
  }
  .archive-box h3 {
    font-size: 13px;
  }
  .archive-box p {
    font-size: 12px;
  }
  .archive-box .button {
    font-size: 12px;
  }
  .vehicle-search-panel {
    padding: 22px;
  }
  .vehicle-search-panel form {
    display: block;
  }
  .vehicle-search-panel .button {
    width: 100%;
    margin: 0 0 18px;
  }
  .vehicle-search-panel .field {
    margin-bottom: 15px;
  }
  .vehicle-search-panel > .muted {
    font-size: 10px;
  }
  .vehicle-heading h2 {
    font-size: 27px;
  }
  .history-card {
    padding: 18px;
    gap: 15px;
  }
  .history-date {
    width: 47px;
    padding-right: 12px;
  }
  .history-date > span {
    font-size: 28px;
  }
  .history-date strong {
    font-size: 8px;
  }
  .history-card-heading {
    display: block;
  }
  .history-card-heading h3 {
    font-size: 13px;
  }
  .history-operations > span {
    font-size: 9px;
  }
  .history-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .history-complaint-note,
  .history-completed-note,
  .history-recommendation {
    padding: 11px;
    font-size: 10px;
  }
  .pagination {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .pagination > div {
    width: 100%;
    justify-content: space-between;
  }
  .login-body {
    display: block;
    min-height: 100dvh;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100dvh;
    padding: 30px 24px 22px;
  }
  .login-mobile-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    max-width: 370px;
    color: var(--forest);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -1px;
    margin-bottom: 50px;
  }
  .login-mobile-brand span {
    font-size: 9px;
    letter-spacing: 0.8px;
    font-weight: 500;
    color: #98a18d;
  }
  .login-card {
    margin: auto;
  }
  .login-card > .muted {
    margin-bottom: 30px;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .login-lock {
    margin-bottom: 24px;
    width: 42px;
    height: 42px;
  }
  .login-card input:not([type="checkbox"]) {
    min-height: 50px;
  }
  .login-card .field label {
    font-size: 12px;
  }
  .login-card > .eyebrow {
    font-size: 9px;
  }
  .login-security {
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
  }
  .login-footer {
    padding-top: 40px;
    font-size: 9px;
  }
  .remember {
    font-size: 12px;
  }
  .remember small {
    font-size: 10px;
  }
}
@media (max-width: 359px) {
  .main-content {
    padding: 20px 12px;
  }
  .stats-grid {
    gap: 6px;
  }
  .stat-card {
    padding: 12px 8px;
  }
  .stat-card .stat-icon {
    display: none;
  }
  .stat-label {
    padding-right: 0;
    font-size: 9px;
  }
  .stat-card strong {
    font-size: 27px;
  }
  .form-section {
    padding: 17px;
  }
  .operation-grid {
    grid-template-columns: 1fr;
  }
  .operation {
    font-size: 12px;
    min-height: 46px;
    padding: 11px;
  }
  .section-title p {
    font-size: 9px;
  }
  .section-title h2 {
    font-size: 14px;
  }
  .login-main {
    padding: 25px 20px 20px;
  }
  .login-card h2 {
    font-size: 25px;
  }
  .login-mobile-brand {
    font-size: 22px;
  }
  .login-security {
    font-size: 8px;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable supporting text and controls on smaller devices. */
.skip-link {
  position: absolute;
}
@media (max-width: 767px) {
  .operation {
    font-size: 12px;
    min-height: 56px;
  }
  .operation-group legend {
    font-size: 12px;
  }
  .custom-chip {
    font-size: 12px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .field label {
    font-size: 13px;
  }
  .field small {
    font-size: 11px;
  }
  .field .optional {
    font-size: 10px;
  }
  .completed-items li {
    font-size: 13px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-card .muted {
    font-size: 9px;
  }
  .login-card > .muted {
    font-size: 13px;
  }
  .login-card .field label {
    font-size: 13px;
  }
}
/* Supporting text meets WCAG AA contrast on the warm surfaces. */
:root {
  --muted: #626d66;
}
.workspace-footer,
.records-table-head,
.dashboard-note,
.field small,
.custom-section small,
.field .optional,
.operation-group legend,
.summary-line,
.summary-help,
.cancel-link,
.form-tip,
.detail-stats span,
.metadata dt,
.history-date strong,
.history-card-footer,
.login-security,
.login-footer,
.remember small,
.login-mobile-brand span {
  color: #626e5c;
}
.quick-search p {
  color: #5c6b54;
}
.recommendation-panel .eyebrow,
.recommendation-panel small {
  color: #786837;
}
.history-recommendation {
  color: #74642d;
}
input::placeholder,
textarea::placeholder {
  color: #6c7864;
}
.step-number,
.input-suffix > span,
.history-operations > span {
  color: #5f6f53;
}
@media (max-width: 767px) {
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .custom-chip button {
    width: 44px;
    min-height: 44px;
  }
}

/* Reusable maintenance template catalog. */
.template-guide {
  background: #eaf0e2;
  border: 1px solid #d3dfc9;
  color: #465e3a;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.8;
}
.template-guide > .icon {
  margin-top: 3px;
}
.template-guide strong {
  display: block;
}
.template-categories {
  max-width: 1100px;
}
.template-category .section-title {
  flex-wrap: nowrap;
}
.template-category .operation-group {
  margin-bottom: 0;
}
.template-category .operation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.template-add-icon {
  margin-left: auto;
  color: var(--forest);
  background: #f0f5e9;
  flex-shrink: 0;
}
.template-add-icon:hover {
  background: #e3ecd8;
}
.template-operation {
  text-align: left;
  justify-content: space-between;
  color: #455d3a;
  background: #f5f8f0;
  min-height: 52px;
}
.template-operation > span {
  min-width: 0;
}
.template-operation .icon {
  width: 16px;
  height: 16px;
  color: #657b58;
}
.template-add-tile {
  border: 1px dashed #8ea57d;
  color: var(--forest);
  background: #fff;
  justify-content: center;
  font-weight: 600;
}
.template-add-tile .icon {
  width: 17px;
  height: 17px;
}
.inactive-templates {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.inactive-templates summary {
  cursor: pointer;
  color: #626e5c;
  font-size: 12px;
}
.inactive-templates p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 11px;
}
.inactive-templates ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inactive-templates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.inactive-templates li > span {
  overflow-wrap: anywhere;
}
.inactive-templates li:last-child {
  border: 0;
}
.inactive-templates form {
  flex-shrink: 0;
}
.inactive-templates .button {
  font-size: 11px;
  padding: 8px 12px;
}
.template-editor {
  max-width: 490px;
}
.template-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.template-editor-heading h2 {
  margin-top: 0;
}
.template-editor-heading .icon-button {
  flex-shrink: 0;
  color: var(--forest);
}
.template-editor-heading .icon-button:hover {
  background: #f0f5e9;
}
.template-editor .field > select,
.filter-form .field > select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce1d6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.template-editor select:focus-visible,
.filter-form select:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
#template-remove-form {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
#template-remove-form p {
  font-size: 11px;
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
.operations-manage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 20px;
}
.operations-manage .text-link {
  font-size: 11px;
}
.operations-manage small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.operations-manage .button {
  flex-shrink: 0;
  font-size: 10px;
  padding: 8px 10px;
  min-height: 38px;
}
.template-refresh-status {
  font-size: 11px;
  color: var(--forest);
}
.template-refresh-status:empty {
  display: none;
}
.custom-section > .custom-help {
  margin: -2px 0 12px;
  color: var(--muted);
}
@media (max-width: 1023px) {
  .template-category .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .template-operation {
    font-size: 12px;
    min-height: 56px;
  }
  .template-add-tile {
    min-height: 56px;
  }
  .template-guide {
    font-size: 12px;
  }
  .operations-manage {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .operations-manage .text-link {
    font-size: 12px;
  }
  .operations-manage small {
    font-size: 11px;
  }
  .operations-manage .button {
    min-height: 44px;
    font-size: 11px;
  }
  .template-editor .field > select,
  .filter-form .field > select {
    font-size: 16px;
  }
  .template-editor-heading h2 {
    font-size: 21px;
  }
}
@media (max-width: 359px) {
  .template-category .operation-grid {
    grid-template-columns: 1fr;
  }
  .inactive-templates li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* On-demand PDF preview. PDF bytes stay in memory. */
.record-entry {
  position: relative;
}
.record-entry .record-row {
  padding-right: 150px;
}
.record-entry .row-arrow {
  visibility: hidden;
}
.record-entry:last-child .record-row {
  border-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
}
.record-actions .icon-button {
  color: var(--forest);
  width: 38px;
  height: 42px;
}
.record-actions .icon-button:hover {
  background: #edf3e6;
}
.record-actions .icon {
  width: 18px;
  height: 18px;
}
.history-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.pdf-viewer {
  border: 1px solid #d9e0d3;
  border-radius: 14px;
  background: #e8ece4;
  overflow: hidden;
}
.pdf-viewer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #d9e0d3;
  padding: 16px 22px;
  background: #f9fbf5;
  color: #5c6e51;
  font-size: 11px;
}
.pdf-viewer-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pdf-viewer-toolbar .icon {
  width: 17px;
  height: 17px;
}
.pdf-pages {
  display: grid;
  gap: 24px;
  padding: 28px;
  min-width: 0;
}
.pdf-pages:empty {
  display: none;
}
.pdf-sheet {
  display: block;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  max-width: 794px;
  aspect-ratio: 210 / 297;
  background: #fff;
  box-shadow: 0 3px 18px #1c352220;
  margin: 0 auto;
  position: relative;
}
.pdf-sheet:disabled { cursor: wait; }
.pdf-sheet:focus-visible { outline: 3px solid var(--forest); outline-offset: 5px; }
body.pdf-zoom-open { overflow: hidden; }
.pdf-zoom-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100dvw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #e8ece4;
}
.pdf-zoom-dialog[open] { display: flex; flex-direction: column; }
.pdf-zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: white; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.pdf-zoom-toolbar > strong { font-size: 13px; }
.pdf-zoom-controls { display: flex; align-items: center; gap: 6px; }
.pdf-zoom-controls > span { min-width: 42px; text-align: center; font-size: 12px; }
.pdf-zoom-controls .button { padding: 10px 12px; }
.pdf-zoom-viewport { overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.pdf-zoom-content { width: max-content; min-width: 100%; padding: 16px; display: grid; justify-items: center; }
.pdf-zoom-content canvas { display: block; background: white; box-shadow: 0 3px 18px #1c352220; }
.pdf-zoom-content p:empty { display: none; }
.pdf-sheet canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pdf-sheet-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #637358;
  font-size: 13px;
  padding: 25px;
  text-align: center;
}
.pdf-loading {
  text-align: center;
  padding: 50px 22px;
  color: #506644;
  font-size: 13px;
  background: #f4f7ef;
}
.pdf-loading p {
  margin-top: 20px;
}
.pdf-loading-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background: #e5efdc;
  border-radius: 16px;
}
.pdf-loading-icon .icon {
  width: 28px;
  height: 28px;
}
@media (max-width: 767px) {
  .record-actions {
    top: auto;
    bottom: 8px;
    right: 12px;
    transform: none;
  }
  .record-actions .icon-button {
    width: 44px;
    height: 44px;
  }
  .record-entry .record-row {
    padding-right: 20px;
    padding-bottom: 64px;
  }
  .record-entry .record-row .plate-cell {
    padding-right: 0;
  }
  .history-card-actions {
    gap: 12px;
  }
  .pdf-viewer-toolbar {
    padding: 14px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pdf-pages {
    padding: 10px;
    gap: 12px;
  }
  .pdf-heading > .button {
    min-height: 48px;
  }
}
