:root {
  color-scheme: dark;
  --bg: #070707;
  --panel: rgba(19, 19, 19, 0.86);
  --panel-strong: rgba(29, 29, 28, 0.94);
  --line: rgba(246, 240, 228, 0.13);
  --line-strong: rgba(246, 240, 228, 0.30);
  --text: #f7f3ea;
  --muted: rgba(247, 243, 234, 0.64);
  --faint: rgba(247, 243, 234, 0.42);
  --gold: #d8d0bf;
  --gold-strong: #f4efe4;
  --green: #9ec8aa;
  --blue: #c8d0dc;
  --red: #ff6b6b;
  --violet: #d7d0df;
  --warning: #dfd0b4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --font-panel: "Avenir Next", Avenir, Manrope, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Avenir Next", Avenir, Manrope, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-small: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 21px;
  --text-metric: 23px;
  --text-section: 26px;
  --text-login: 28px;
  --text-page: 32px;
  --text-hero: 40px;
  font-family: var(--font-panel);
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  letter-spacing: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  background:
    radial-gradient(circle at 16% 0%, rgba(246, 240, 228, 0.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(135deg, #070707 0%, #111111 48%, #050505 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 17, 22, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup.logo-only {
  gap: 0;
}

.login-brand {
  justify-content: center;
}

.brand-logo-card {
  width: 93px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.26));
}

.login-logo-card {
  width: min(208px, 62vw);
  margin-bottom: 10px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #080808;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  box-shadow: 0 12px 35px rgba(246, 240, 228, 0.12);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
.metric-value,
.stat-value,
.money,
.strong {
  font-family: var(--font-display);
}

h1 {
  margin-bottom: 0;
  font-size: var(--text-login);
  line-height: 1.1;
}

.login-copy {
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-stack {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-small);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.readonly-field input {
  color: var(--faint);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  padding: 11px 12px;
  outline: none;
  font-size: var(--text-base);
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 240, 228, 0.12);
}

.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  border: 0;
  border-radius: 13px;
  min-height: 44px;
  touch-action: manipulation;
}

.primary-button {
  color: #080808;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  font-weight: 800;
  padding: 11px 14px;
  box-shadow: 0 16px 36px rgba(246, 240, 228, 0.13);
  font-size: var(--text-base);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  padding: 10px 13px;
}

.danger-button {
  color: var(--text);
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.26);
  padding: 10px 13px;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
}

form .form-error {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.10);
}

form .form-error.is-visible {
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #070707;
}

.sidebar .brand-lockup {
  margin-bottom: 26px;
}

.sidebar .brand-lockup.logo-only {
  justify-content: center;
}

.sidebar .brand-logo-card {
  width: 70px;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  padding: 11px 12px;
  font-size: var(--text-md);
  text-align: left;
}

.nav button.active {
  color: #080808;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.nav .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: currentColor;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.nav-badge {
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  color: #080808;
  background: var(--gold-strong);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1;
}

.nav-badge.urgent {
  color: var(--text);
  background: var(--red);
}

.main {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-title {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.topbar h2 {
  margin: 0 0 5px;
  font-size: var(--text-page);
  line-height: 1.1;
}

.topbar-actions {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.muted {
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.45;
}

.small {
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.38;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 18px;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.82) 34%, rgba(8, 10, 13, 0.30) 72%),
    linear-gradient(180deg, rgba(9, 11, 15, 0.18), rgba(9, 11, 15, 0.62)),
    url("/assets/hero/showroom-car.png") center right / cover no-repeat,
    linear-gradient(135deg, rgba(24, 24, 23, 0.90), rgba(10, 10, 10, 0.72));
  min-height: 336px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  opacity: 0.52;
  background:
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.055) 48px 50px),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #080808;
  background: var(--gold);
  font-size: var(--text-sm);
  font-weight: 800;
}

.hero-title {
  max-width: 630px;
  margin: 15px 0 10px;
  font-size: var(--text-hero);
  line-height: 1.08;
}

.hero-stats,
.metric-grid,
.two-grid,
.three-grid,
.form-grid {
  display: grid;
  gap: 12px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.stat,
.card,
.table-wrap,
.report-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.stat,
.card,
.report-block {
  padding: 16px;
}

.stat-value,
.metric-value,
.money,
.strong {
  font-weight: 800;
}

.stat-value {
  margin-top: 4px;
  font-size: var(--text-xl);
}

.hero-visual {
  min-height: 240px;
}

.hero-car-photo {
  width: 100%;
  min-height: 240px;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
}

.car-art {
  position: relative;
  width: min(330px, 100%);
  height: 130px;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.45));
}

.car-body {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 31px;
  height: 54px;
  border: 1px solid rgba(246, 240, 228, 0.22);
  border-radius: 52px 64px 20px 20px;
  background: linear-gradient(160deg, #f6f7f2, #8e9aa5 50%, #181c22);
}

.car-cabin {
  position: absolute;
  left: 29%;
  right: 28%;
  bottom: 82px;
  height: 42px;
  border-radius: 42px 42px 8px 8px;
  background: linear-gradient(135deg, rgba(200, 208, 220, 0.34), rgba(246, 247, 242, 0.36));
  border: 1px solid rgba(246, 240, 228, 0.18);
}

.car-light {
  position: absolute;
  right: 8%;
  bottom: 55px;
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-strong);
  box-shadow: 0 0 26px rgba(246, 240, 228, 0.30);
}

.wheel {
  position: absolute;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 8px solid #30343a;
  background: #08090b;
}

.wheel.left {
  left: 18%;
}

.wheel.right {
  right: 18%;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metric {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 128px;
  text-align: center;
}

.metric-icon {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border-radius: 12px;
  color: var(--gold-strong);
  background: rgba(246, 240, 228, 0.10);
  border: 1px solid rgba(246, 240, 228, 0.18);
  --metric-icon-url: url("/assets/dashboard/summary.svg");
}

.metric-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: currentColor;
  -webkit-mask: var(--metric-icon-url) center / contain no-repeat;
  mask: var(--metric-icon-url) center / contain no-repeat;
}

.metric-value {
  font-size: var(--text-metric);
  line-height: 1.15;
}

.metric-note {
  margin-top: 7px;
  color: var(--faint);
  font-size: var(--text-small);
  line-height: 1.35;
}

.two-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

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

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(246, 240, 228, 0.10), transparent 38%),
    linear-gradient(120deg, rgba(29, 29, 28, 0.94), rgba(10, 10, 10, 0.76));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.report-hero h3 {
  margin: 12px 0 8px;
  font-size: var(--text-section);
  line-height: 1.12;
}

.report-hero p {
  max-width: 620px;
  line-height: 1.55;
}

.report-hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.report-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.report-chip {
  min-width: 136px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.report-chip span,
.report-chip strong {
  display: block;
}

.report-chip strong {
  margin-top: 3px;
  font-size: var(--text-lg);
}

.report-chip.green strong {
  color: var(--green);
}

.report-chip.blue strong {
  color: var(--blue);
}

.report-chip.red strong {
  color: var(--red);
}

.report-chip.gold strong {
  color: var(--gold-strong);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.report-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 26, 33, 0.78);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.report-card.span-2 {
  grid-column: span 2;
}

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

.report-card-head h3 {
  margin: 0 0 4px;
  font-size: var(--text-lg);
}

.report-card-head .metric-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.report-donut-wrap {
  display: grid;
  gap: 12px;
}

.report-donut {
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--report-donut);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.22);
}

.report-donut::before {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: #11141b;
}

.report-donut > div {
  position: relative;
  z-index: 1;
  max-width: 64%;
  text-align: center;
}

.report-donut strong,
.report-donut span {
  display: block;
}

.report-donut strong {
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  line-height: 1.1;
}

.report-donut span {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.report-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 10px;
}

.report-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.report-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.report-stat-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.report-stat-grid span,
.report-stat-grid strong {
  display: block;
}

.report-stat-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.report-stat-grid strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: var(--text-base);
}

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

.report-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
}

.report-bar-label span {
  min-width: 0;
  color: var(--muted);
}

.report-bar-label strong {
  flex: 0 0 auto;
  font-size: var(--text-sm);
}

.report-bar-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.report-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.report-bar-row.green .report-bar-track span {
  background: var(--green);
}

.report-bar-row.blue .report-bar-track span {
  background: var(--blue);
}

.report-bar-row.red .report-bar-track span {
  background: var(--red);
}

.report-bar-row.violet .report-bar-track span {
  background: var(--violet);
}

.report-bar-row.warning .report-bar-track span {
  background: var(--warning);
}

.report-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 168px;
  padding-top: 6px;
}

.report-time-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 104px auto auto;
  gap: 5px;
  align-items: end;
  text-align: center;
}

.report-time-bar {
  width: 100%;
  min-height: 2px;
  align-self: end;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(to top, rgba(246, 240, 228, 0.82), rgba(158, 200, 170, 0.58));
}

.report-time-column strong {
  overflow-wrap: anywhere;
  font-size: var(--text-xs);
  line-height: 1.15;
}

.report-time-column span {
  color: var(--muted);
  font-size: var(--text-xs);
}

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

.report-export-button {
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.report-export-button span,
.report-export-button small {
  display: block;
}

.report-export-button span {
  font-weight: 800;
  font-size: var(--text-base);
}

.report-export-button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.3;
}

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

.section-head h3,
.card h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-bottom: 14px;
}

.search {
  max-width: 360px;
}

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

.tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  padding: 8px 11px;
  font-size: var(--text-small);
}

.tabs button.active {
  color: #080808;
  border-color: transparent;
  background: var(--gold);
}

.table-wrap {
  overflow: hidden;
}

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

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: var(--text-base);
}

th {
  color: var(--faint);
  font-size: var(--text-sm);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

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

.vehicle-card {
  display: grid;
  grid-template-rows: auto minmax(114px, auto) auto auto;
  gap: 15px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.vehicle-card-visual {
  position: relative;
  min-height: 178px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 228, 0.11);
  border-radius: 17px;
  background:
    radial-gradient(circle at 20% 8%, rgba(246, 240, 228, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
}

.vehicle-card-visual img {
  width: min(188px, 56%);
  max-height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.34));
}

.vehicle-card-visual .status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}

.vehicle-card-title {
  min-width: 0;
}

.vehicle-card-title h3 {
  margin: 0 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 18px;
  line-height: 1.2;
}

.vehicle-card-title p {
  min-height: 36px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.35;
}

.vehicle-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.vehicle-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: var(--text-sm);
  font-weight: 700;
}

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

.vehicle-card-money > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.vehicle-card-money span,
.vehicle-card-money strong {
  display: block;
}

.vehicle-card-money strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  white-space: nowrap;
  font-size: var(--text-md);
}

.vehicle-card-money .negative {
  color: var(--red);
}

.vehicle-card-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  justify-content: stretch;
  width: 100%;
}

.vehicle-card-actions button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-inline: 5px;
  white-space: nowrap;
}

@media (min-width: 1760px) {
  .stock-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-card.span-2 {
    grid-column: span 2;
  }
}

.vehicle-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 240, 228, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(246, 240, 228, 0.11), transparent 42%),
    rgba(9, 11, 15, 0.88);
}

.vehicle-thumb img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #080808;
  background: var(--gold);
  font-size: var(--text-sm);
  font-weight: 800;
  white-space: nowrap;
}

.status.green {
  background: var(--green);
}

.status.red {
  color: var(--text);
  background: rgba(255, 107, 107, 0.20);
  border: 1px solid rgba(255, 107, 107, 0.30);
}

.status.blue {
  color: var(--text);
  background: rgba(200, 208, 220, 0.14);
  border: 1px solid rgba(200, 208, 220, 0.24);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.row-actions button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: var(--text-sm);
}

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

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

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

.compact-card {
  box-shadow: none;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(110px, 150px);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.check-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.check-row input[name^="givenValue"] {
  min-width: 0;
}

.mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.trade-add-actions {
  margin-top: 10px;
}

.trade-add-actions button {
  width: 100%;
}

.trade-received-form {
  align-items: end;
}

.modal-actions {
  margin-top: 12px;
}

.progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  height: 210px;
  margin-top: 18px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: 14px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(to top, rgba(246, 240, 228, 0.72), rgba(158, 200, 170, 0.34));
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.form-section h3 {
  margin-bottom: 4px;
}

.vehicle-preview {
  padding: 12px 14px;
  border: 1px solid rgba(246, 240, 228, 0.16);
  border-radius: 14px;
  background: rgba(246, 240, 228, 0.055);
}

.is-hidden {
  display: none;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
}

.modal-root.open {
  display: grid;
}

.modal {
  width: min(820px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #11141b;
  box-shadow: var(--shadow);
}

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

.modal-header h3 {
  margin: 0 0 4px;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(246, 240, 228, 0.050);
}

.print-area {
  display: none;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.88);
  backdrop-filter: blur(18px);
}

.mobile-topbar .brand-lockup {
  justify-content: center;
}

.mobile-topbar .brand-logo-image {
  width: 100%;
}

.mobile-topbar .brand-logo-card {
  width: 78px;
}

.mobile-topbar .ghost-button {
  justify-self: end;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 11px;
  font-size: var(--text-sm);
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 20;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.90);
  backdrop-filter: blur(18px);
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav button {
  flex: 0 0 auto;
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  padding: 10px 9px;
  font-size: var(--text-xs);
  white-space: nowrap;
}

.mobile-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.mobile-nav .nav-badge {
  min-width: 18px;
  height: 18px;
  margin-left: 1px;
  padding: 0 5px;
  font-size: 10px;
}

.mobile-nav button.active {
  color: #080808;
  background: var(--gold);
  font-weight: 800;
}

@media (max-width: 980px) {
  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-topbar,
  .mobile-nav {
    display: grid;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-topbar {
    grid-template-columns: minmax(54px, 1fr) auto minmax(54px, 1fr);
    align-items: center;
  }

  .mobile-topbar .brand-lockup {
    grid-column: 2;
  }

  .mobile-topbar .ghost-button {
    grid-column: 3;
  }

  .main {
    padding: 16px max(14px, env(safe-area-inset-right)) 112px max(14px, env(safe-area-inset-left));
    padding-bottom: 112px;
  }

  .hero,
  .report-hero,
  .two-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .hero-stats,
  .three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .topbar-title,
  .topbar-actions {
    grid-column: auto;
  }

  .topbar h2 {
    font-size: 25px;
  }

  .topbar-actions {
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }

  .metric-grid,
  .hero-stats,
  .three-grid,
  .report-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .report-card.span-2 {
    grid-column: auto;
  }

  .report-hero {
    padding: 15px;
    border-radius: 18px;
  }

  .report-hero h3 {
    font-size: 23px;
  }

  .report-chip {
    width: 100%;
  }

  .report-stat-grid,
  .report-export-grid {
    grid-template-columns: 1fr;
  }

  .report-timeline {
    gap: 5px;
  }

  .report-time-column {
    grid-template-rows: 90px auto auto;
  }

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

  .vehicle-card {
    padding: 13px;
    width: 100%;
  }

  .vehicle-card-visual {
    min-height: 160px;
  }

  .vehicle-card-money {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 16px;
    border-radius: 18px;
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(8, 10, 13, 0.96) 0%, rgba(8, 10, 13, 0.76) 46%, rgba(8, 10, 13, 0.24) 100%),
      url("/assets/hero/showroom-car.png") 70% bottom / auto 64% no-repeat,
      linear-gradient(135deg, rgba(24, 24, 23, 0.90), rgba(10, 10, 10, 0.72));
  }

  .hero-title {
    font-size: 27px;
  }

  .hero-visual {
    min-height: 164px;
  }

  .car-art {
    width: 250px;
    height: 104px;
    transform: scale(0.88);
  }

  .metric {
    min-height: auto;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  }

  td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: flex-start;
    justify-content: stretch;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    min-width: 0;
    color: var(--faint);
    font-size: var(--text-sm);
    font-weight: 800;
    text-align: left;
  }

  td > * {
    min-width: 0;
  }

  td[data-label="Araç"],
  td[data-label="Satış"],
  td[data-label="Kayıt"],
  td[data-label="Müşteri"],
  td[data-label="Cari / Kişi"],
  td[data-label="Banka / Kurum"],
  td.actions-cell {
    text-align: left;
  }

  td.actions-cell {
    display: grid;
  }

  td.actions-cell::before {
    display: block;
  }

  .row-actions {
    justify-content: flex-start;
    width: 100%;
  }

  td .row-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    align-items: stretch;
  }

  td .row-actions button,
  td .row-actions .status {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .row-actions button {
    min-height: 40px;
    padding: 8px 10px;
  }

  .check-row,
  .mini-form {
    grid-template-columns: 1fr;
  }

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

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

  .modal-root {
    align-items: end;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    padding: 15px;
    border-radius: 20px;
  }

  .modal-header {
    position: sticky;
    top: -15px;
    z-index: 2;
    margin: -15px -15px 14px;
    padding: 15px;
    background: #11141b;
    border-bottom: 1px solid var(--line);
  }

  .login-screen {
    align-items: start;
    padding: 16px;
    padding-top: 32px;
  }

  .login-card {
    padding: 20px;
    border-radius: 22px;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }

  .layout,
  .login-screen,
  .modal-root {
    display: none !important;
  }

  .print-area {
    display: block;
    padding: 24px;
  }
}
