:root {
  --asphalt: #090a0c;
  --pit: #111318;
  --pit-2: #171a21;
  --metal: #242833;
  --line: #343946;
  --text: #f7f8fb;
  --muted: #a4aab6;
  --red: #ff6a00;
  --red-dark: #c74700;
  --yellow: #ffb21f;
  --green: #22c55e;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(255, 106, 0, 0.16), transparent 28rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 0%, rgba(255, 210, 74, 0.1), transparent 24rem),
    var(--asphalt);
  background-size: auto, 42px 42px, 42px 42px, auto, auto;
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 16px,
      rgba(255, 255, 255, 0.045) 16px 18px,
      transparent 18px 34px
    ),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden,
[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  padding: 18px;
  place-items: center;
}

.login-card {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 70%),
    rgba(17, 19, 24, 0.96);
  box-shadow: var(--shadow);
}

.login-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.94) 0%, rgba(17, 19, 24, 0.76) 48%, rgba(17, 19, 24, 0.42) 100%),
    url("assets/FastTuning.png") center right / min(92%, 520px) no-repeat;
  opacity: 0.42;
  filter: saturate(1.1);
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 10vw, 4.2rem);
}

.login-card label + label,
.login-card button {
  margin-top: 12px;
}

.login-copy {
  color: var(--muted);
  line-height: 1.5;
}

.login-error {
  display: none;
  margin: 12px 0 0;
  color: #ffd4d4;
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.12);
}

.login-error.show {
  display: block;
}

.locked {
  display: none;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  min-height: 172px;
  margin-bottom: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(9, 10, 12, 0.96) 0%, rgba(17, 19, 24, 0.92) 50%, rgba(128, 49, 0, 0.78) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 18px, transparent 18px 36px);
  box-shadow: var(--shadow);
}

.topbar > div:first-child {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.brand-logo {
  display: block;
  position: absolute;
  z-index: 1;
  top: 32%;
  right: clamp(18px, 8vw, 130px);
  width: clamp(280px, 32vw, 460px);
  max-height: 68%;
  object-fit: contain;
  object-position: center;
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.5));
}

.topbar::after {
  position: absolute;
  right: -60px;
  bottom: -24px;
  width: 360px;
  height: 90px;
  content: "";
  background: repeating-linear-gradient(45deg, #f7f7f7 0 18px, #090a0c 18px 36px);
  opacity: 0.18;
  transform: skewX(-20deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 9px;
  color: var(--yellow);
  border: 1px solid rgba(255, 210, 74, 0.36);
  background: rgba(255, 210, 74, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 8px;
  content: "";
  background: repeating-linear-gradient(90deg, #fff 0 7px, #111 7px 14px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(255, 106, 0, 0.42);
}

h2 {
  margin-bottom: 0;
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.topbar-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-self: end;
  width: 100%;
  min-width: 0;
}

.topbar-stats div,
.month-filter-card,
.form-panel,
.summary-panel,
.warnings article,
.price-card,
.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
    rgba(17, 19, 24, 0.96);
  box-shadow: var(--shadow);
}

.topbar-stats div,
.month-filter-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 88px;
  padding: 16px 18px;
  border-left: 4px solid var(--red);
}

.topbar-stats span,
.summary-lines span,
.section-heading span,
label,
.record-meta,
.price-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-stats strong {
  margin-top: 6px;
  color: var(--yellow);
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.month-filter-card input {
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  color: var(--text);
  font-weight: 900;
  border-color: rgba(255, 121, 0, 0.55);
  background: rgba(6, 7, 10, 0.78);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.72);
}

.manager-notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 178, 31, 0.78);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  color: #fff3c2;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.3), rgba(255, 210, 74, 0.1), transparent),
    rgba(17, 19, 24, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 178, 31, 0.16) inset, 0 0 26px rgba(255, 106, 0, 0.2);
  font-weight: 800;
  line-height: 1.45;
  animation: noticePulse 1.9s ease-in-out infinite;
}

.manager-notice::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  content: "";
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.95);
  animation: noticeDot 1s ease-in-out infinite;
}

.manager-notice strong {
  color: var(--yellow);
  text-transform: uppercase;
}

.manager-notice span {
  color: #fff;
}

@keyframes noticePulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 178, 31, 0.16) inset, 0 0 18px rgba(255, 106, 0, 0.16);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 178, 31, 0.42) inset, 0 0 34px rgba(255, 106, 0, 0.42);
  }
}

@keyframes noticeDot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.tab-button,
.ghost-button,
.secondary-button,
.danger-button,
.primary-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: linear-gradient(180deg, #1c2029, #111318);
  font-weight: 900;
  text-transform: uppercase;
}

.tab-button {
  padding: 0 18px;
  white-space: nowrap;
}

.tab-button.active,
.primary-button {
  border-color: rgba(255, 106, 0, 0.8);
  color: #fff;
  background: linear-gradient(180deg, #ff7a1a, #c74700);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 12px 28px rgba(199, 71, 0, 0.34);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.sale-layout,
.farm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
}

.employee-mode .farm-layout {
  grid-template-columns: 1fr;
}

.form-panel,
.summary-panel {
  padding: 18px;
}

.form-panel {
  position: relative;
  overflow: hidden;
}

.form-panel::before,
.summary-panel::before,
.price-card::before,
.warnings article::before {
  display: block;
  width: 62px;
  height: 4px;
  margin-bottom: 14px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.summary-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  border-color: rgba(255, 106, 0, 0.5);
}

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

.section-heading.compact {
  margin-top: 24px;
}

.client-lookup {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 210, 74, 0.08), transparent),
    rgba(9, 10, 12, 0.5);
}

.lookup-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.lookup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  color: var(--text);
  background: rgba(23, 26, 33, 0.88);
  text-align: left;
}

.lookup-item span,
.lookup-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.lookup-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.readonly-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 68px;
  padding: 0 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.1), transparent),
    #0c0e12;
}

.readonly-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.readonly-field strong {
  color: var(--yellow);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #3a4050;
  border-radius: 6px;
  color: var(--text);
  background: #0c0e12;
  outline: none;
}

input,
select {
  height: 45px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

.toggle-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 210, 74, 0.44);
  border-radius: 6px;
  background: rgba(255, 210, 74, 0.08);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.toggle-grid .toggle-row {
  width: auto;
  margin-top: 0;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.items-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.parts-catalog {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #333947;
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.56);
}

.print-upload {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #333947;
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.56);
}

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

.file-field input {
  padding-top: 10px;
}

.receipt-image-preview {
  width: 160px;
  padding: 6px;
  border: 1px solid rgba(255, 106, 0, 0.42);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.92);
}

.receipt-image-preview img {
  display: block;
  width: 100%;
  max-height: 110px;
  border-radius: 5px;
  object-fit: cover;
}

.upload-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.parts-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.parts-header h2 {
  margin: 0;
  color: var(--red);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.parts-header span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.parts-group {
  overflow: hidden;
  border: 1px solid #2f3540;
  border-radius: 4px;
  background: rgba(18, 20, 25, 0.96);
}

.parts-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 950;
  list-style: none;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}

.parts-group summary::-webkit-details-marker {
  display: none;
}

.parts-group summary strong {
  color: var(--red);
  font-size: 1rem;
}

.parts-group[open] summary strong {
  color: var(--yellow);
}

.part-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
  max-height: 168px;
  overflow: auto;
  padding: 10px 12px 12px;
}

.part-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.part-check span {
  flex: 1;
}

.part-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
}

.part-check:has(input:checked) {
  color: var(--text);
}

.part-mode {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(34, 255, 136, 0.42);
  border-radius: 5px;
  color: #22ff88;
  background: rgba(34, 255, 136, 0.08);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.part-mode.remove-mode {
  border-color: rgba(255, 77, 77, 0.5);
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
}

.item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 130px 44px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.1), transparent 42%),
    rgba(23, 26, 33, 0.86);
}

.item-row.pending-item {
  border-style: dashed;
  background: rgba(23, 26, 33, 0.55);
  opacity: 0.82;
}

.item-row.part-removing {
  border-color: rgba(255, 77, 77, 0.55);
  background:
    linear-gradient(90deg, rgba(255, 77, 77, 0.12), transparent 42%),
    rgba(23, 26, 33, 0.86);
}

.icon-button {
  width: 44px;
  padding: 0;
  color: #fff;
  border-color: rgba(255, 106, 0, 0.72);
  background: #351704;
  font-size: 1.5rem;
}

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

.summary-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-lines strong {
  color: var(--yellow);
  font-size: 1.42rem;
}

.notice-box {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(255, 210, 74, 0.48);
  border-radius: 6px;
  color: #ffe89a;
  background:
    linear-gradient(90deg, rgba(255, 210, 74, 0.16), transparent),
    rgba(255, 210, 74, 0.06);
  line-height: 1.45;
}

.action-row,
.records-toolbar {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  padding: 0 16px;
}

.primary-button {
  flex: 1;
}

.secondary-button:hover,
.ghost-button:hover,
.tab-button:hover {
  border-color: rgba(255, 210, 74, 0.62);
}

.danger-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #ff7a1a, #9e3200);
}

.records-toolbar {
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.72);
}

.farm-toolbar,
.farm-notes,
.farm-actions,
.user-actions {
  margin-top: 16px;
}

.search-field {
  flex: 1;
}

.records-list,
.price-grid,
.warnings {
  display: grid;
  gap: 12px;
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.supervision-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.supervision-summary article,
.supervision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
    rgba(17, 19, 24, 0.96);
  box-shadow: var(--shadow);
}

.supervision-summary article {
  padding: 14px;
  border-left: 4px solid var(--red);
}

.supervision-summary span,
.supervision-card-head span,
.supervision-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.supervision-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
  font-size: 1.55rem;
}

.supervision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.supervision-card {
  padding: 16px;
  border-left: 4px solid var(--red);
}

.supervision-card.status-active {
  border-left-color: var(--green);
}

.supervision-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.supervision-card-head h3 {
  margin: 0 0 4px;
  text-transform: uppercase;
}

.supervision-card-head > strong {
  padding: 5px 8px;
  border: 1px solid rgba(255, 210, 74, 0.4);
  border-radius: 6px;
  color: var(--yellow);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-active .supervision-card-head > strong {
  border-color: rgba(34, 197, 94, 0.42);
  color: var(--green);
}

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

.supervision-metrics div {
  padding: 10px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background: rgba(9, 10, 12, 0.48);
}

.supervision-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.supervision-footer {
  margin-top: 12px;
}

.mechanic-os-button {
  width: 100%;
  margin-top: 12px;
}

.mechanic-os-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.72);
}

.employee-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.employee-report-summary article {
  padding: 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background: rgba(17, 19, 24, 0.9);
}

.employee-report-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-report-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font-size: 1.24rem;
}

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

.employee-report-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  scroll-margin-top: 12px;
}

.report-toggle {
  width: 100%;
  color: var(--text);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.report-toggle:hover h2,
.report-toggle:focus-visible h2 {
  color: var(--yellow);
}

.toggle-arrow {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 106, 0, 0.58);
  border-radius: 6px;
  color: var(--yellow);
  background: rgba(255, 106, 0, 0.12);
  font-weight: 900;
}

.report-section-content {
  display: grid;
  gap: 10px;
}

.employee-report-section.collapsed .report-section-content {
  display: none;
}

.price-card,
.record-card,
.warnings article {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.price-card::after,
.warnings article::after {
  position: absolute;
  right: -22px;
  top: 18px;
  width: 92px;
  height: 18px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 12px, transparent 12px 24px);
  transform: skewX(-24deg);
}

.price-card strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--yellow);
  font-size: 1.56rem;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-left: 4px solid var(--red);
  padding-top: 28px;
}

.record-card::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 62px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.record-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.record-items {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.6;
}

.record-items li::before {
  margin-right: 8px;
  color: var(--red);
  content: ">";
  font-weight: 900;
}

.compact-items {
  font-size: 0.88rem;
  line-height: 1.45;
}

.log-details {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.deleted-os-button {
  margin-top: 12px;
}

.deleted-os-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.deleted-os-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background: rgba(9, 10, 12, 0.5);
}

.deleted-os-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.log-card {
  border-left-color: var(--yellow);
}

.log-sale {
  border-left-color: var(--green);
}

.log-farm {
  border-left-color: var(--yellow);
}

.log-user,
.log-system {
  border-left-color: var(--red);
}

.record-money {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #3a4050;
  border-radius: 6px;
  background: rgba(9, 10, 12, 0.42);
  text-align: right;
}

.record-money strong {
  display: block;
  color: var(--yellow);
  font-size: 1.5rem;
}

.receipt-button {
  width: 100%;
  margin-top: 12px;
  white-space: nowrap;
}

.client-os-button {
  width: 100%;
  min-height: 40px;
}

.vehicle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.vehicle-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 210, 74, 0.38);
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255, 210, 74, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.users-form {
  margin-bottom: 16px;
}

.notice-editor {
  margin-bottom: 16px;
}

.remove-user-button {
  width: 100%;
  min-height: 40px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(9, 10, 12, 0.62);
  text-align: center;
}

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

.warnings p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .topbar,
  .sale-layout,
  .farm-layout {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    top: 34%;
    right: 12px;
    width: clamp(180px, 42vw, 300px);
    opacity: 0.24;
  }

  .summary-panel {
    position: static;
  }

  .topbar-stats,
  .warnings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 1280px);
    padding: 14px 0;
  }

  .topbar {
    padding: 16px;
  }

  .brand-logo {
    top: 34px;
    right: -26px;
    width: 210px;
    max-height: none;
    opacity: 0.18;
    transform: none;
  }

  h1 {
    font-size: clamp(2.1rem, 14vw, 3.2rem);
  }

  .field-grid,
  .item-row,
  .record-card {
    grid-template-columns: 1fr;
  }

  .icon-button {
    width: 100%;
  }

  .records-toolbar,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .supervision-grid,
  .supervision-metrics {
    grid-template-columns: 1fr;
  }

  .record-money {
    text-align: left;
  }
}
