:root {
  --admin-ink: #080807;
  --admin-panel: #11110f;
  --admin-panel-soft: #181815;
  --admin-paper: #f6f1e7;
  --admin-muted: #96938b;
  --admin-gold: #d9b34c;
  --admin-gold-bright: #f1d77f;
  --admin-line: rgba(255, 255, 255, 0.12);
  --admin-danger: #e46e66;
  --admin-success: #73c995;
  --admin-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--admin-ink);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--admin-ink);
  color: var(--admin-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
select {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--admin-gold);
  color: var(--admin-ink);
}

.admin-eyebrow {
  margin: 0 0 12px;
  color: var(--admin-gold-bright);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.admin-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--admin-line);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-button:hover {
  transform: translateY(-1px);
}

.admin-button.gold {
  border-color: var(--admin-gold);
  background: var(--admin-gold);
  color: #090908;
}

.admin-button.gold:hover {
  background: var(--admin-gold-bright);
}

.admin-button.dark {
  background: rgba(255, 255, 255, 0.035);
  color: #d8d4ca;
}

.admin-button.dark:hover {
  border-color: rgba(217, 179, 76, 0.65);
  color: var(--admin-gold-bright);
}

.admin-button.danger {
  border-color: rgba(228, 110, 102, 0.55);
  background: rgba(228, 110, 102, 0.12);
  color: #ffc2bd;
}

.full-button {
  width: 100%;
}

.alert {
  margin: 0 0 22px;
  padding: 15px 18px;
  border: 1px solid var(--admin-line);
  font-size: 0.86rem;
  line-height: 1.65;
}

.alert p,
.alert ul {
  margin: 0;
}

.alert ul {
  padding: 6px 0 0 19px;
}

.alert.success {
  border-color: rgba(115, 201, 149, 0.42);
  background: rgba(115, 201, 149, 0.08);
  color: #b8e6c9;
}

.alert.error {
  border-color: rgba(228, 110, 102, 0.42);
  background: rgba(228, 110, 102, 0.08);
  color: #f4b7b2;
}

/* Login & setup */
.auth-body {
  background:
    radial-gradient(circle at 16% 20%, rgba(217, 179, 76, 0.1), transparent 26%),
    linear-gradient(135deg, #060605 0%, #0d0d0b 55%, #070706 100%);
}

.auth-shell,
.setup-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 82px);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 0.75fr);
  gap: clamp(50px, 8vw, 150px);
  align-items: center;
}

.setup-shell {
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.15fr);
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.auth-brand::before {
  position: absolute;
  z-index: -1;
  top: -15%;
  left: -20%;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 179, 76, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 120px rgba(217, 179, 76, 0.06) inset;
}

.auth-brand img {
  width: min(310px, 70%);
  max-height: 210px;
  margin-bottom: clamp(42px, 8vh, 92px);
  object-fit: contain;
}

.auth-brand h1 {
  max-width: 780px;
  margin: 0 0 24px;
  font-family: var(--admin-serif);
  font-size: clamp(3.3rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.setup-shell .auth-brand h1 {
  font-size: clamp(3rem, 5vw, 5.8rem);
}

.auth-brand > p:last-of-type {
  max-width: 520px;
  margin: 0;
  color: #aaa69d;
  font-size: 1rem;
  line-height: 1.8;
}

.requirement-list {
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
}

.requirement-list li {
  color: #c9c5bb;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.requirement-list li::before {
  margin-right: 9px;
  content: "◆";
  color: var(--admin-gold);
  font-size: 0.48rem;
}

.auth-card {
  padding: clamp(30px, 4vw, 62px);
  border: 1px solid rgba(217, 179, 76, 0.27);
  background: rgba(17, 17, 15, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.auth-card > div:first-child {
  margin-bottom: 34px;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--admin-serif);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.setup-card {
  padding: clamp(28px, 3.2vw, 52px);
}

.back-link {
  margin-top: 28px;
  display: inline-block;
  color: #8f8c84;
  font-size: 0.78rem;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--admin-gold-bright);
}

/* Form system */
.admin-form,
.editor-section {
  display: grid;
  gap: 22px;
}

.admin-form fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--admin-line);
}

.admin-form legend {
  padding: 0 10px;
  color: var(--admin-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 9px;
}

label > span,
.image-upload > span,
.inventory-toolbar label > span {
  color: #aaa69d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--admin-paper);
  transition: border-color 180ms ease, background 180ms ease;
}

textarea {
  min-height: 132px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--admin-gold);
  background: rgba(217, 179, 76, 0.045);
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

select option {
  background: #151513;
  color: var(--admin-paper);
}

.form-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.check-field {
  min-height: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.check-field.align-end {
  align-self: end;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--admin-gold);
}

.check-field span {
  color: #c9c5bb;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Admin shell */
.admin-layout {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: 278px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--admin-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 179, 76, 0.07), transparent 30%),
    #0b0b09;
}

.admin-logo {
  height: 116px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--admin-line);
}

.admin-logo img {
  width: 145px;
  height: 100px;
  object-fit: contain;
}

.admin-user {
  padding: 25px 4px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.admin-user > span,
.user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.5);
  border-radius: 50%;
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 0.85rem;
}

.admin-user div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-user strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user small {
  color: #77746e;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 2px solid transparent;
  color: #99968e;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-nav a b {
  color: #4f4d48;
  font-size: 0.58rem;
  font-weight: 650;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-left-color: var(--admin-gold);
  background: rgba(217, 179, 76, 0.075);
  color: var(--admin-paper);
}

.admin-nav a.active b {
  color: var(--admin-gold);
}

.sidebar-bottom {
  margin-top: auto;
  padding: 22px 4px 4px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--admin-line);
}

.sidebar-bottom a,
.sidebar-bottom button {
  padding: 0;
  border: 0;
  background: none;
  color: #817e77;
  font-size: 0.7rem;
  text-align: left;
  transition: color 180ms ease;
}

.sidebar-bottom a:hover,
.sidebar-bottom button:hover {
  color: var(--admin-gold-bright);
}

.admin-workspace {
  min-height: 100vh;
  margin-left: 278px;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 78px;
  padding: 0 clamp(24px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(8, 8, 7, 0.9);
  backdrop-filter: blur(18px);
}

.admin-topbar > div {
  display: grid;
  gap: 2px;
}

.admin-topbar > div span {
  color: #68665f;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-topbar > div strong {
  font-family: var(--admin-serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.admin-topbar > a {
  color: var(--admin-gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-menu-button {
  display: none;
}

.admin-main {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 76px) clamp(24px, 4vw, 62px) 72px;
  flex: 1;
}

.admin-footer {
  min-height: 56px;
  margin: 0 clamp(24px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--admin-line);
  color: #5d5b55;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-page-heading {
  margin-bottom: clamp(30px, 4vw, 58px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.admin-page-heading h1 {
  margin: 0 0 12px;
  font-family: var(--admin-serif);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.compact-heading h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.9rem);
}

.admin-page-heading div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #8e8b83;
  line-height: 1.65;
}

.admin-panel {
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
}

.metric-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--admin-line);
  background: var(--admin-line);
}

.metric-grid article {
  min-height: 178px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: #10100e;
}

.metric-grid article > span {
  color: #88857d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid article strong {
  margin: auto 0 5px;
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
}

.metric-grid article small {
  color: #65635d;
  font-size: 0.68rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
}

.panel-heading {
  min-height: 96px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--admin-line);
}

.panel-heading .admin-eyebrow {
  margin-bottom: 5px;
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--admin-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.panel-heading > a {
  color: var(--admin-gold-bright);
  font-size: 0.68rem;
}

.compact-list > a {
  min-height: 79px;
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 180ms ease;
}

.compact-list > a:hover {
  background: rgba(217, 179, 76, 0.045);
}

.vehicle-monogram {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.32);
  color: var(--admin-gold);
  font-family: var(--admin-serif);
  font-size: 0.75rem;
}

.compact-list > a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.compact-list strong {
  overflow: hidden;
  font-size: 0.81rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list small {
  color: #706e67;
  font-size: 0.66rem;
}

.status-dot {
  color: #8f8c84;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  content: "";
  background: #777;
}

.status-dot.available::before { background: var(--admin-success); }
.status-dot.reserved::before { background: var(--admin-gold); }
.status-dot.sold::before { background: #7695cb; }

.activity-list {
  padding: 16px 22px;
}

.activity-list > div {
  min-height: 63px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
}

.activity-list > div > span {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border: 1px solid var(--admin-gold);
  border-radius: 50%;
}

.activity-list p {
  margin: 0;
  color: #aaa79f;
  font-size: 0.72rem;
  line-height: 1.5;
}

.activity-list small {
  display: block;
  color: #5e5c56;
  font-size: 0.62rem;
}

.admin-empty {
  padding: 30px;
  color: #77746d;
  font-size: 0.8rem;
  text-align: center;
}

/* Inventory */
.inventory-toolbar {
  margin-bottom: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--admin-line);
  background: #0e0e0c;
}

.inventory-toolbar input,
.inventory-toolbar select {
  min-height: 44px;
}

.inventory-toolbar .admin-button {
  min-height: 44px;
}

.reset-filter {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #78756e;
  font-size: 0.68rem;
}

.vehicle-table-wrap {
  overflow-x: auto;
}

.vehicle-table {
  min-width: 920px;
}

.vehicle-table-head,
.vehicle-table-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) minmax(150px, 0.75fr) minmax(120px, 0.55fr) minmax(110px, 0.5fr) minmax(230px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.vehicle-table-head {
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--admin-line);
  color: #6e6b65;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vehicle-table-row {
  min-height: 92px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.vehicle-table-row:last-child {
  border-bottom: 0;
}

.vehicle-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.vehicle-identity img {
  width: 78px;
  height: 58px;
  padding: 4px;
  object-fit: contain;
  background: #090908;
}

.vehicle-identity > span,
.vehicle-technical {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.vehicle-identity small,
.vehicle-technical small {
  overflow: hidden;
  color: #76736c;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-identity strong,
.vehicle-technical > span,
.vehicle-price {
  font-size: 0.79rem;
}

.status-badge {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid var(--admin-line);
  color: #9a978f;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.available {
  border-color: rgba(115, 201, 149, 0.35);
  color: #9fdcb5;
}

.status-badge.reserved {
  border-color: rgba(217, 179, 76, 0.43);
  color: var(--admin-gold-bright);
}

.status-badge.sold {
  border-color: rgba(118, 149, 203, 0.4);
  color: #a8c2ed;
}

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

.row-actions a,
.row-actions button {
  padding: 0;
  border: 0;
  background: none;
  color: #a9a69e;
  font-size: 0.65rem;
  transition: color 180ms ease;
}

.row-actions a:hover,
.row-actions button:hover {
  color: var(--admin-gold-bright);
}

.row-actions .danger-link {
  color: #bb7671;
}

/* Vehicle editor */
.vehicle-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.editor-main {
  display: grid;
  gap: 24px;
}

.editor-section {
  padding: clamp(22px, 3vw, 34px);
}

.editor-heading {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
}

.editor-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.4);
  color: var(--admin-gold);
  font-family: var(--admin-serif);
  font-size: 0.76rem;
}

.editor-heading h2 {
  margin: 0 0 4px;
  font-family: var(--admin-serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.editor-heading p {
  margin: 0;
  color: #77746d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.sticky-editor-card {
  position: sticky;
  top: 102px;
}

.image-upload {
  padding-top: 4px;
  display: grid;
  gap: 12px;
}

.image-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #090908;
  background-size: 22px 22px;
}

.image-preview img {
  width: 100%;
  height: 190px;
  padding: 12px;
  object-fit: contain;
}

.file-field {
  padding: 15px;
  display: grid;
  gap: 4px;
  border: 1px dashed rgba(217, 179, 76, 0.35);
  cursor: pointer;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.file-field span {
  color: #c8c4ba;
  font-size: 0.73rem;
  letter-spacing: 0;
  text-transform: none;
}

.file-field small {
  color: #69665f;
  font-size: 0.63rem;
}

.muted-check {
  min-height: auto;
}

.public-preview-link {
  color: #85827b;
  font-size: 0.7rem;
  text-align: center;
  transition: color 180ms ease;
}

.public-preview-link:hover {
  color: var(--admin-gold-bright);
}

/* Contact inbox, community and events */
.message-preview-list > a.unread {
  border-left: 2px solid var(--admin-gold);
  background: rgba(217, 179, 76, 0.045);
}

.activity-panel {
  margin-top: 24px;
}

.activity-list-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.activity-list-wide > div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.message-toolbar {
  grid-template-columns: minmax(280px, 1fr) 170px 190px auto auto;
}

.inbox-list {
  overflow-x: auto;
}

.inbox-list-head,
.inbox-row {
  min-width: 1040px;
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(330px, 1.45fr) 145px 125px 100px;
  gap: 20px;
  align-items: center;
}

.inbox-list-head {
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid var(--admin-line);
  color: #6e6b65;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inbox-row {
  position: relative;
  min-height: 100px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 180ms ease;
}

.inbox-row:last-of-type {
  border-bottom: 0;
}

.inbox-row:hover {
  background: rgba(217, 179, 76, 0.045);
}

.inbox-row.unread {
  background: rgba(217, 179, 76, 0.035);
}

.inbox-row.unread::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: var(--admin-gold);
}

.inbox-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.inbox-person > b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.38);
  border-radius: 50%;
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 0.75rem;
  font-weight: 400;
}

.inbox-person > span,
.inbox-subject {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.inbox-person strong,
.inbox-subject strong {
  overflow: hidden;
  color: #dedad0;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-person small,
.inbox-subject small,
.inbox-row time small {
  overflow: hidden;
  color: #77746d;
  font-size: 0.63rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row time {
  display: grid;
  gap: 5px;
  color: #aaa79f;
  font-size: 0.67rem;
}

.contact-category {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid var(--admin-line);
  color: #aaa79f;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-sale { border-color: rgba(217, 179, 76, 0.42); color: var(--admin-gold-bright); }
.category-it { border-color: rgba(107, 153, 221, 0.42); color: #a9c8f2; }
.category-leitung { border-color: rgba(180, 128, 213, 0.42); color: #d5b0ec; }
.category-bewerbung { border-color: rgba(106, 196, 142, 0.42); color: #a8dfba; }

.status-badge.contact-new { border-color: rgba(217, 179, 76, 0.42); color: var(--admin-gold-bright); }
.status-badge.contact-in_progress { border-color: rgba(107, 153, 221, 0.42); color: #a9c8f2; }
.status-badge.contact-done { border-color: rgba(106, 196, 142, 0.42); color: #a8dfba; }
.status-badge.contact-archived { color: #77746d; }

.message-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 24px;
  align-items: start;
}

.message-content-card {
  min-height: 580px;
  padding: clamp(28px, 4vw, 54px);
}

.message-sender {
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
}

.message-sender > span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.45);
  border-radius: 50%;
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 1.05rem;
}

.message-sender h2 {
  margin: 0 0 7px;
  font-family: var(--admin-serif);
  font-size: clamp(2rem, 3vw, 3.3rem);
  font-weight: 400;
}

.message-sender p {
  margin: 0;
  color: var(--admin-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.message-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--admin-line);
}

.message-contact-grid > div {
  min-height: 104px;
  padding: 25px 20px 25px 0;
  display: grid;
  align-content: center;
  gap: 10px;
}

.message-contact-grid > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--admin-line);
}

.message-contact-grid small {
  color: #706d66;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message-contact-grid a,
.message-contact-grid span {
  overflow-wrap: anywhere;
  color: #d7d3c9;
  font-size: 0.8rem;
}

.message-contact-grid a:hover {
  color: var(--admin-gold-bright);
}

.message-body {
  padding-top: clamp(32px, 5vw, 60px);
}

.message-body p {
  margin: 0;
  color: #cbc7bd;
  font-family: var(--admin-serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.75;
}

.message-workflow-card {
  position: sticky;
  top: 102px;
}

.community-admin-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.7fr) minmax(520px, 1.3fr);
  gap: 24px;
  align-items: start;
}

.community-settings-card {
  position: sticky;
  top: 102px;
}

.event-admin-card {
  overflow: hidden;
}

.event-admin-row {
  min-height: 144px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto 116px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.event-admin-row:last-child {
  border-bottom: 0;
}

.event-admin-date {
  width: 58px;
  height: 66px;
  display: grid;
  place-content: center;
  gap: 3px;
  border: 1px solid rgba(217, 179, 76, 0.36);
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 1.15rem;
  text-align: center;
}

.event-admin-date small {
  color: #77746d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-admin-row > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.event-admin-row > div:nth-child(2) > small {
  color: var(--admin-gold);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-admin-row > div:nth-child(2) > strong {
  overflow: hidden;
  color: #ddd9cf;
  font-family: var(--admin-serif);
  font-size: 1.35rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-admin-row > div:nth-child(2) > p {
  margin: 0;
  overflow: hidden;
  color: #77746d;
  font-size: 0.66rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge.event-draft { border-color: rgba(217, 179, 76, 0.36); color: var(--admin-gold-bright); }
.status-badge.event-published { border-color: rgba(106, 196, 142, 0.42); color: #a8dfba; }
.status-badge.event-archived { color: #77746d; }

.event-row-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.event-row-actions form {
  margin: 0;
}

.event-editor-form {
  width: min(100%, 940px);
}

.editor-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.event-danger-card .event-delete-mark {
  width: 100%;
  height: 250px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 110, 102, 0.26);
  background: #090908;
  color: var(--admin-danger);
  font-family: var(--admin-serif);
  font-size: 4.6rem;
}

/* Users, account and deletion */
.users-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(500px, 1.3fr);
  gap: 24px;
  align-items: start;
}

.create-user-card {
  position: sticky;
  top: 102px;
}

.user-list-card {
  overflow: hidden;
}

.user-row {
  min-height: 92px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.user-row.inactive {
  opacity: 0.58;
}

.user-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.user-details strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-details small {
  color: #77746d;
  font-size: 0.63rem;
}

.user-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.user-actions > a,
.user-row form button {
  padding: 0;
  border: 0;
  background: none;
  color: #a19e95;
  font-size: 0.65rem;
}

.user-actions > a:hover,
.user-row form button:hover {
  color: var(--admin-gold-bright);
}

.account-card {
  width: min(100%, 720px);
}

.account-card .admin-form {
  width: min(100%, 520px);
}

.danger-card {
  width: min(100%, 900px);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 42px;
  align-items: center;
  border-color: rgba(228, 110, 102, 0.3);
}

.danger-card > img {
  width: 100%;
  height: 250px;
  padding: 18px;
  object-fit: contain;
  background: #090908;
}

.danger-card h2 {
  margin: 0 0 14px;
  font-family: var(--admin-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.danger-card div > p:last-of-type {
  margin: 0 0 28px;
  color: #9a978f;
  line-height: 1.7;
}

.danger-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.danger-card form > a {
  color: #aaa69d;
  font-size: 0.72rem;
}

@media (max-width: 1180px) {
  .admin-sidebar {
    width: 238px;
  }

  .admin-workspace {
    margin-left: 238px;
  }

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

  .dashboard-grid,
  .vehicle-editor,
  .users-layout,
  .message-detail-layout,
  .community-admin-layout {
    grid-template-columns: 1fr;
  }

  .sticky-editor-card,
  .create-user-card,
  .message-workflow-card,
  .community-settings-card {
    position: static;
  }

  .inventory-toolbar {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .inventory-toolbar .search-field {
    grid-column: 1 / -1;
  }
}

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

  .auth-brand {
    padding-top: 20px;
  }

  .auth-brand img {
    width: 210px;
    margin-bottom: 30px;
  }

  .auth-brand h1 {
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .admin-sidebar {
    width: min(82vw, 290px);
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  .admin-nav-open .admin-sidebar {
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(0);
  }

  .admin-workspace {
    margin-left: 0;
  }

  .admin-menu-button {
    width: 42px;
    height: 42px;
    padding: 0 10px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--admin-line);
    background: transparent;
  }

  .admin-menu-button span {
    width: 19px;
    height: 1px;
    display: block;
    background: var(--admin-paper);
  }

  .admin-topbar {
    gap: 14px;
  }

  .admin-topbar > div {
    margin-right: auto;
  }

  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-list-wide {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .auth-shell,
  .setup-shell {
    padding: 22px 14px 40px;
    gap: 34px;
  }

  .auth-card,
  .setup-card {
    padding: 26px 18px;
  }

  .requirement-list,
  .form-grid.two,
  .form-grid.three,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .message-contact-grid {
    grid-template-columns: 1fr;
  }

  .message-contact-grid > div + div {
    padding-left: 0;
    border-top: 1px solid var(--admin-line);
    border-left: 0;
  }

  .message-sender {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .message-sender > span {
    width: 54px;
    height: 54px;
  }

  .event-admin-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .event-admin-row > .status-badge,
  .event-row-actions {
    grid-column: 2;
    justify-items: start;
  }

  .admin-main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .admin-topbar {
    min-height: 68px;
    padding: 0 15px;
  }

  .admin-topbar > a {
    font-size: 0;
  }

  .admin-topbar > a::after {
    content: "+ Auto";
    font-size: 0.66rem;
  }

  .admin-page-heading h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .metric-grid article {
    min-height: 128px;
  }

  .inventory-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-toolbar .search-field {
    grid-column: auto;
  }

  .user-row {
    grid-template-columns: 42px 1fr auto;
  }

  .user-row .status-badge {
    grid-column: 2;
  }

  .user-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .danger-card {
    padding: 20px;
  }

  .admin-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Inventory, register and sales */
.disabled-button,
.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-heading h1 {
  overflow-wrap: anywhere;
}

.vehicle-toolbar {
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px auto auto;
}

.vehicle-table {
  min-width: 1100px;
}

.vehicle-table-head,
.vehicle-table-row {
  grid-template-columns: minmax(230px, 1.2fr) minmax(140px, 0.65fr) minmax(110px, 0.5fr) minmax(115px, 0.52fr) minmax(105px, 0.46fr) minmax(240px, 0.95fr);
}

.sale-row-link {
  color: var(--admin-gold-bright) !important;
}

.inventory-admin-table,
.sales-table {
  min-width: 1080px;
}

.inventory-table-wrap,
.sales-table-wrap {
  overflow-x: auto;
}

.inventory-admin-head,
.inventory-admin-row {
  display: grid;
  grid-template-columns: minmax(270px, 1.25fr) minmax(125px, 0.5fr) minmax(120px, 0.5fr) minmax(110px, 0.45fr) minmax(270px, 1fr);
  gap: 18px;
  align-items: center;
}

.inventory-admin-head {
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--admin-line);
  color: #6e6b65;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inventory-admin-row {
  min-height: 104px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.inventory-admin-row:last-child {
  border-bottom: 0;
}

.stock-number {
  color: #d3cfc4;
  font-family: var(--admin-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.location-badge {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid var(--admin-line);
  color: #aaa79f;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-warehouse { border-color: rgba(153, 150, 142, 0.34); color: #b8b4aa; }
.location-showroom { border-color: rgba(217, 179, 76, 0.48); color: var(--admin-gold-bright); }
.location-handover { border-color: rgba(107, 153, 221, 0.45); color: #b3cff5; }
.location-external { border-color: rgba(180, 128, 213, 0.42); color: #d5b0ec; }

.inventory-move-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inventory-move-cell form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 7px;
}

.inventory-move-cell select {
  min-height: 38px;
  padding: 0 9px;
  font-size: 0.68rem;
}

.inventory-move-cell button,
.inventory-move-cell > a {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.035);
  color: #b5b1a7;
  font-size: 0.64rem;
}

.inventory-location-toolbar {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(135px, 160px)) auto auto;
}

.inventory-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.inventory-card-grid > .admin-empty {
  grid-column: 1 / -1;
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
}

.inventory-vehicle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.inventory-vehicle-card:hover {
  border-color: rgba(217, 179, 76, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.inventory-card-visual {
  position: relative;
  min-height: 230px;
  padding: 36px 24px 25px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--admin-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    radial-gradient(circle at 50% 56%, rgba(217, 179, 76, 0.14), transparent 42%),
    #0a0a08;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.inventory-card-visual::after {
  position: absolute;
  right: 16%;
  bottom: 18%;
  left: 16%;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  content: "";
  filter: blur(11px);
}

.inventory-card-visual > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 17px 22px rgba(0, 0, 0, 0.38));
  transition: transform 220ms ease;
}

.inventory-vehicle-card:hover .inventory-card-visual > img {
  transform: scale(1.035) translateY(-2px);
}

.inventory-card-badges {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 14px;
  left: 15px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.inventory-card-badges .status-badge,
.inventory-card-badges .location-badge {
  background: rgba(8, 8, 7, 0.78);
  backdrop-filter: blur(8px);
}

.inventory-card-body {
  padding: 23px;
}

.inventory-card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--admin-gold-bright);
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inventory-card-kicker strong {
  overflow: hidden;
  color: #77746d;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-card-body > p {
  margin: 18px 0 4px;
  color: #77746d;
  font-size: 0.62rem;
  font-weight: 690;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inventory-card-body h2 {
  margin: 0 0 22px;
  color: var(--admin-paper);
  font-family: var(--admin-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.inventory-card-note {
  min-height: 74px;
  padding: 15px 0;
  display: grid;
  align-content: center;
  gap: 7px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.inventory-card-note span,
.inventory-card-move label > span {
  color: #65625c;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inventory-card-note p {
  margin: 0;
  overflow: hidden;
  color: #a5a198;
  font-size: 0.69rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-card-move {
  padding: 17px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border-bottom: 1px solid var(--admin-line);
}

.inventory-card-move label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.inventory-card-move select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.inventory-card-move button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(217, 179, 76, 0.5);
  background: rgba(217, 179, 76, 0.1);
  color: var(--admin-gold-bright);
  font-size: 0.61rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inventory-card-move button:hover {
  background: rgba(217, 179, 76, 0.17);
}

.inventory-card-actions {
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 13px;
}

.inventory-card-actions a {
  color: #a7a39a;
  font-size: 0.64rem;
  font-weight: 690;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inventory-card-actions a:hover,
.inventory-card-actions a span {
  color: var(--admin-gold-bright);
}

.movement-history-panel,
.cashbook-panel,
.register-history-panel,
.secondary-dashboard-grid,
.session-notes {
  margin-top: 24px;
}

.movement-list article {
  min-height: 84px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 38px minmax(210px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.movement-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.34);
  color: var(--admin-gold);
}

.movement-list article > div,
.movement-list article > p {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.movement-list article strong,
.movement-list article p {
  margin: 0;
  color: #cbc7bd;
  font-size: 0.76rem;
}

.movement-list article small,
.movement-list time {
  color: #706d66;
  font-size: 0.63rem;
}

.register-metric-grid article strong,
.sales-metric-grid article strong,
.session-metric-grid article strong,
.dashboard-metric-grid article strong {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

.pos-command-bar {
  margin-bottom: 24px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 25px;
  align-items: center;
  border: 1px solid var(--admin-line);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.025), transparent 48%),
    #0e0e0c;
}

.pos-command-bar.is-open {
  border-color: rgba(115, 201, 149, 0.27);
  background:
    radial-gradient(circle at 0% 50%, rgba(115, 201, 149, 0.08), transparent 28%),
    #0e0e0c;
}

.pos-live-status {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pos-live-status > span {
  width: 11px;
  height: 11px;
  border: 1px solid #77746d;
  border-radius: 50%;
  background: #55534e;
}

.pos-command-bar.is-open .pos-live-status > span {
  border-color: var(--admin-success);
  background: var(--admin-success);
  box-shadow: 0 0 18px rgba(115, 201, 149, 0.7);
}

.pos-live-status > div,
.pos-command-meta span {
  display: grid;
  gap: 5px;
}

.pos-live-status small,
.pos-command-meta small {
  color: #65625c;
  font-size: 0.55rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pos-live-status strong,
.pos-command-meta strong {
  color: #d0ccc2;
  font-size: 0.7rem;
}

.pos-command-meta {
  display: flex;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.pos-command-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pos-command-bar nav a {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--admin-line);
  color: #a29e95;
  font-size: 0.59rem;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pos-command-bar nav a:hover,
.pos-command-bar nav a b {
  color: var(--admin-gold-bright);
}

.pos-command-bar nav a.primary {
  border-color: var(--admin-gold);
  background: var(--admin-gold);
  color: #090908;
}

.pos-command-bar nav a.primary b {
  color: inherit;
}

.pos-payment-overview {
  margin-bottom: 24px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 179, 76, 0.08), transparent 32%),
    var(--admin-panel);
}

.pos-section-heading {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.pos-section-heading .admin-eyebrow {
  margin-bottom: 7px;
}

.pos-section-heading h2 {
  margin: 0;
  font-family: var(--admin-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.pos-section-heading > strong {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.pos-payment-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pos-payment-bars article {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.pos-payment-bars article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pos-payment-bars span {
  color: #8a877f;
  font-size: 0.65rem;
  font-weight: 690;
}

.pos-payment-bars strong {
  color: #d5d1c7;
  font-size: 0.72rem;
}

.pos-payment-bars small {
  color: #5f5c56;
  font-size: 0.58rem;
}

.pos-payment-bars progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--admin-gold);
  accent-color: var(--admin-gold);
}

.pos-payment-bars progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.07);
}

.pos-payment-bars progress::-webkit-progress-value {
  background: linear-gradient(90deg, #9f7e2c, var(--admin-gold-bright));
}

.pos-payment-bars progress::-moz-progress-bar {
  background: linear-gradient(90deg, #9f7e2c, var(--admin-gold-bright));
}

.register-open-card {
  padding: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.8fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}

.register-open-card h2,
.register-status-card h2 {
  margin: 0 0 14px;
  font-family: var(--admin-serif);
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.register-open-card > div > p:last-child,
.register-status-card > p:last-of-type {
  margin: 0;
  color: #8f8b82;
  line-height: 1.7;
}

.register-live-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) repeat(2, minmax(260px, 0.95fr));
  gap: 24px;
  align-items: stretch;
}

.register-status-card {
  padding: clamp(25px, 3vw, 38px);
  background: radial-gradient(circle at 100% 0%, rgba(217, 179, 76, 0.12), transparent 42%), var(--admin-panel);
}

.register-status-card dl {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--admin-line);
}

.register-status-card dl div {
  padding-top: 18px;
  display: grid;
  gap: 6px;
}

.register-status-card dt,
.receipt-meta small,
.receipt-parties small,
.receipt-note small,
.session-summary-card small,
.session-notes small {
  color: #6f6c65;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.register-status-card dd {
  margin: 0;
  color: #d5d1c7;
  font-size: 0.76rem;
}

.register-action-card {
  align-content: start;
}

.close-card {
  border-color: rgba(228, 110, 102, 0.22);
}

.cashbook-list article {
  min-height: 76px;
  padding: 13px 22px;
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) auto 100px;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.cash-direction {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 50%;
}

.cash-direction.positive { border-color: rgba(115, 201, 149, 0.4); color: #9fdcb5; }
.cash-direction.negative { border-color: rgba(228, 110, 102, 0.4); color: #f0a49e; }

.cashbook-list article > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.cashbook-list strong,
.cashbook-list b {
  font-size: 0.76rem;
}

.cashbook-list small,
.cashbook-list time {
  overflow: hidden;
  color: #706d66;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-session-list > a {
  min-height: 76px;
  padding: 13px 22px;
  display: grid;
  grid-template-columns: 54px minmax(200px, 1fr) auto 120px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  transition: background 180ms ease;
}

.register-session-list > a:hover,
.sales-table-row:hover,
.session-sale-list a:hover {
  background: rgba(217, 179, 76, 0.045);
}

.register-session-list > a > span {
  color: var(--admin-gold);
  font-family: var(--admin-serif);
  font-size: 1rem;
}

.register-session-list > a > div,
.session-sale-list a > div,
.sales-table-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.register-session-list small,
.session-sale-list small,
.sales-table-row small {
  overflow: hidden;
  color: #706d66;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-session-list em,
.sales-table-row em {
  font-style: normal;
}

.status-badge.session-open,
.status-badge.sale-completed { border-color: rgba(115, 201, 149, 0.4); color: #9fdcb5; }
.status-badge.session-closed { color: #88857e; }
.status-badge.sale-void { border-color: rgba(228, 110, 102, 0.42); color: #f0a49e; }

.sale-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 370px);
  gap: 24px;
  align-items: start;
}

.pos-sale-context {
  margin-bottom: 24px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  border: 1px solid var(--admin-line);
  background: #0e0e0c;
}

.pos-sale-context.is-ready {
  border-color: rgba(115, 201, 149, 0.28);
  background: linear-gradient(105deg, rgba(115, 201, 149, 0.07), transparent 35%), #0e0e0c;
}

.pos-sale-context > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pos-sale-context > div > span {
  width: 10px;
  height: 10px;
  border: 1px solid #6c6962;
  border-radius: 50%;
  background: #53514c;
}

.pos-sale-context.is-ready > div > span {
  border-color: var(--admin-success);
  background: var(--admin-success);
  box-shadow: 0 0 16px rgba(115, 201, 149, 0.65);
}

.pos-sale-context p {
  margin: 0;
  display: grid;
  gap: 5px;
}

.pos-sale-context small,
.pos-sale-context dt {
  color: #65625c;
  font-size: 0.55rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pos-sale-context p strong {
  color: #d1cdc3;
  font-size: 0.7rem;
}

.pos-sale-context dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pos-sale-context dl > div {
  padding: 2px 20px;
  display: grid;
  gap: 5px;
  border-left: 1px solid var(--admin-line);
}

.pos-sale-context dd {
  margin: 0;
  color: #c8c4ba;
  font-family: var(--admin-serif);
  font-size: 1rem;
}

.pos-vehicle-picker {
  display: grid;
  gap: 18px;
}

.pos-selected-vehicle {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(250px, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(217, 179, 76, 0.28);
  background: #0b0b09;
}

.pos-selected-visual {
  position: relative;
  min-height: 210px;
  padding: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--admin-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(217, 179, 76, 0.14), transparent 44%),
    #090908;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.pos-selected-visual img {
  width: 100%;
  height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 17px 22px rgba(0, 0, 0, 0.4));
}

.pos-selected-visual .status-badge {
  position: absolute;
  bottom: 13px;
  left: 13px;
  background: rgba(8, 8, 7, 0.8);
  backdrop-filter: blur(7px);
}

.pos-selected-copy {
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pos-selected-copy > span {
  color: var(--admin-gold-bright);
  font-size: 0.59rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pos-selected-copy h3 {
  margin: 7px 0 15px;
  font-family: var(--admin-serif);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.pos-selected-copy p {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #75726b;
  font-size: 0.64rem;
}

.pos-selected-copy p b {
  font-weight: 560;
}

.pos-selected-copy p i {
  color: var(--admin-gold);
  font-style: normal;
}

.pos-selected-copy > strong {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.payment-method-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.payment-method-grid legend {
  margin-bottom: 10px;
  padding: 0;
  color: #aaa69d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-method-grid label {
  min-width: 0;
  min-height: 92px;
  padding: 15px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-content: center;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.payment-method-grid label:has(input:checked) {
  border-color: rgba(217, 179, 76, 0.72);
  background: rgba(217, 179, 76, 0.09);
}

.payment-method-grid input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--admin-gold);
}

.payment-method-grid label > span {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.payment-method-grid b {
  color: #d2cec4;
  font-size: 0.68rem;
}

.payment-method-grid small {
  color: #6f6c65;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.45;
}

.editor-sidebar {
  min-width: 0;
}

.sale-summary-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.sale-price-breakdown {
  display: grid;
  border-top: 1px solid var(--admin-line);
}

.sale-price-breakdown > div {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #7d7a72;
  font-size: 0.64rem;
}

.sale-price-breakdown b {
  color: #bcb8ae;
  font-weight: 580;
}

.sale-summary-card li {
  color: #8d8a82;
  font-size: 0.7rem;
  line-height: 1.45;
}

.sale-summary-card li::before {
  margin-right: 8px;
  content: "◆";
  color: var(--admin-gold);
  font-size: 0.45rem;
}

.sale-total {
  padding: 24px 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.sale-total span {
  color: #77746d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sale-total strong {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 2.7rem;
  font-weight: 400;
}

.sale-total strong.negative {
  color: var(--admin-danger);
}

.sales-toolbar {
  grid-template-columns: minmax(210px, 1fr) 145px 135px 155px 135px 135px auto auto;
}

.employee-stats-toolbar {
  grid-template-columns: minmax(210px, 1fr) 160px 160px auto auto;
}

.employee-stats-filter-copy {
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.employee-stats-filter-copy span {
  color: #68655f;
  font-size: 0.57rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employee-stats-filter-copy strong {
  color: #c4c0b6;
  font-family: var(--admin-serif);
  font-size: 1rem;
  font-weight: 400;
}

.employee-sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.employee-sales-grid > .admin-empty {
  grid-column: 1 / -1;
}

.employee-sales-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 179, 76, 0.08), transparent 29%),
    var(--admin-panel);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.employee-sales-card:hover {
  border-color: rgba(217, 179, 76, 0.42);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.employee-sales-card > header {
  padding-bottom: 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
}

.employee-sales-card > header span {
  color: var(--admin-gold);
  font-family: var(--admin-serif);
  font-size: 1.25rem;
}

.employee-sales-card > header small {
  color: #6f6c65;
  font-size: 0.57rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employee-sales-identity {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.employee-sales-identity > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 76, 0.42);
  border-radius: 50%;
  background: rgba(217, 179, 76, 0.07);
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 1rem;
}

.employee-sales-identity h2 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-family: var(--admin-serif);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.employee-sales-identity p {
  margin: 0;
  color: #6f6c65;
  font-size: 0.61rem;
}

.employee-sales-total {
  padding: 20px 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.employee-sales-total span {
  color: #68655f;
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employee-sales-total strong {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.employee-sales-card dl {
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--admin-line);
}

.employee-sales-card dl > div {
  padding: 0 12px;
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--admin-line);
}

.employee-sales-card dl > div:first-child {
  padding-left: 0;
}

.employee-sales-card dl > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.employee-sales-card dt {
  color: #68655f;
  font-size: 0.54rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-sales-card dd {
  margin: 0;
  color: #d0ccc2;
  font-size: 0.73rem;
  font-weight: 650;
}

.employee-payment-split {
  padding: 19px 0;
  display: grid;
  gap: 13px;
  border-bottom: 1px solid var(--admin-line);
}

.employee-payment-split > div {
  display: grid;
  gap: 7px;
}

.employee-payment-split > div > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.employee-payment-split small {
  color: #77746d;
  font-size: 0.58rem;
}

.employee-payment-split b {
  color: #aaa69d;
  font-size: 0.61rem;
  font-weight: 600;
}

.employee-payment-split progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--admin-gold);
  accent-color: var(--admin-gold);
}

.employee-payment-split progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.07);
}

.employee-payment-split progress::-webkit-progress-value {
  background: linear-gradient(90deg, #9f7e2c, var(--admin-gold-bright));
}

.employee-payment-split progress::-moz-progress-bar {
  background: linear-gradient(90deg, #9f7e2c, var(--admin-gold-bright));
}

.employee-sales-card > footer {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.employee-sales-card > footer span,
.employee-sales-card > footer a {
  color: #77746d;
  font-size: 0.58rem;
}

.employee-sales-card > footer span {
  display: grid;
  gap: 4px;
}

.employee-sales-card > footer span b {
  color: #aaa69d;
  font-weight: 580;
}

.employee-sales-card > footer a {
  color: var(--admin-gold-bright);
  font-weight: 690;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sales-table {
  min-width: 1120px;
}

.sales-table-head,
.sales-table-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(190px, 0.9fr) minmax(190px, 0.9fr) 135px 125px 115px;
  gap: 18px;
  align-items: center;
}

.sales-table-head {
  min-height: 52px;
  padding: 0 22px;
  border-bottom: 1px solid var(--admin-line);
  color: #6e6b65;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sales-table-row {
  min-height: 91px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 180ms ease, opacity 180ms ease;
}

.sales-table-row > span,
.sales-table-row > b,
.sales-table-row strong {
  font-size: 0.75rem;
}

.sales-table-row.void-row {
  opacity: 0.58;
}

.receipt-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}

.receipt-card {
  padding: clamp(28px, 5vw, 66px);
}

.receipt-header {
  padding-bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-header img {
  width: 150px;
  height: 100px;
  object-fit: contain;
}

.receipt-header > div {
  display: grid;
  gap: 7px;
  text-align: right;
}

.receipt-header span,
.receipt-header small {
  color: #77746d;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-header strong {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.receipt-status-line {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-status-line time {
  color: #78756e;
  font-size: 0.68rem;
}

.receipt-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-parties > div {
  min-height: 166px;
  padding: 30px 30px 30px 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.receipt-parties > div + div {
  padding-left: 30px;
  border-left: 1px solid var(--admin-line);
}

.receipt-parties strong {
  margin: 4px 0;
  font-family: var(--admin-serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.receipt-parties span {
  color: #8f8c84;
  font-size: 0.7rem;
}

.receipt-lines {
  padding: 30px 0;
  display: grid;
  gap: 15px;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #aaa69d;
  font-size: 0.78rem;
}

.receipt-lines b {
  color: #dedad0;
}

.receipt-lines .receipt-total {
  margin-top: 12px;
  padding-top: 23px;
  align-items: end;
  border-top: 1px solid var(--admin-line);
}

.receipt-total b {
  color: var(--admin-gold-bright);
  font-family: var(--admin-serif);
  font-size: 2.35rem;
  font-weight: 400;
}

.receipt-meta {
  padding: 27px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-meta > div {
  display: grid;
  gap: 7px;
}

.receipt-meta strong {
  font-size: 0.72rem;
}

.receipt-note {
  padding: 26px 0;
  border-bottom: 1px solid var(--admin-line);
}

.receipt-note p {
  margin: 10px 0 0;
  color: #a5a198;
  font-size: 0.75rem;
  line-height: 1.65;
}

.void-stamp {
  margin-top: 28px;
  padding: 23px;
  border: 2px solid rgba(228, 110, 102, 0.55);
  color: #eda49e;
  text-align: center;
}

.void-stamp strong {
  display: block;
  font-family: var(--admin-serif);
  font-size: 2rem;
  letter-spacing: 0.2em;
}

.void-stamp p {
  margin: 8px 0;
}

.void-stamp small {
  color: #a46f6b;
}

.receipt-footer {
  padding-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #66635d;
  font-size: 0.6rem;
}

.receipt-sidebar {
  display: grid;
  gap: 24px;
}

.receipt-vehicle-card {
  padding: 25px;
}

.receipt-vehicle-card > img {
  width: 100%;
  height: 180px;
  margin-bottom: 24px;
  padding: 10px;
  object-fit: contain;
  background: #090908;
}

.receipt-vehicle-card h2 {
  margin: 0 0 20px;
  font-family: var(--admin-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.receipt-vehicle-card dl {
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}

.receipt-vehicle-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.7rem;
}

.receipt-vehicle-card dt { color: #75726b; }
.receipt-vehicle-card dd { margin: 0; color: #c8c4ba; }
.receipt-vehicle-card > a { color: var(--admin-gold-bright); font-size: 0.68rem; }

.void-sale-card {
  border-color: rgba(228, 110, 102, 0.27);
}

.session-summary-card {
  padding: 0 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.session-summary-card > div {
  min-height: 126px;
  padding: 25px 24px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--admin-line);
}

.session-summary-card > div:last-child {
  border-right: 0;
}

.session-summary-card strong {
  font-family: var(--admin-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.session-summary-card > div > span:not(.status-badge) {
  color: #7b7871;
  font-size: 0.66rem;
}

.session-detail-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.session-detail-grid .cashbook-panel {
  margin-top: 0;
}

.session-sale-list a {
  min-height: 82px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  transition: background 180ms ease;
}

.session-sale-list b {
  font-size: 0.72rem;
}

.session-notes {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.session-notes p {
  margin: 10px 0 0;
  color: #aaa69d;
  font-size: 0.76rem;
  line-height: 1.6;
}

.dashboard-register-content {
  min-height: 280px;
  padding: 38px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
}

.register-orb {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 20px currentColor;
}

.register-orb.open { color: var(--admin-success); background: var(--admin-success); }
.register-orb.closed { color: #66635d; background: #66635d; box-shadow: none; }

.dashboard-register-content > strong {
  font-family: var(--admin-serif);
  font-size: 2rem;
  font-weight: 400;
}

.dashboard-register-content p {
  max-width: 480px;
  margin: 0 0 10px;
  color: #817e77;
  font-size: 0.76rem;
  line-height: 1.65;
}

@media (max-width: 1320px) {
  .register-live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .register-status-card {
    grid-column: 1 / -1;
  }

  .sales-toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .sales-toolbar .search-field {
    grid-column: 1 / -1;
  }

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

  .inventory-location-toolbar .search-field {
    grid-column: 1 / -1;
  }

  .pos-command-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pos-command-bar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .sale-editor,
  .receipt-layout,
  .session-detail-grid,
  .register-open-card {
    grid-template-columns: 1fr;
  }

  .sale-editor .sticky-editor-card {
    position: static;
  }

  .vehicle-toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .employee-stats-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .employee-stats-filter-copy {
    grid-column: 1 / -1;
  }

  .session-summary-card {
    grid-template-columns: 1fr 1fr;
  }

  .session-summary-card > div:nth-child(2) {
    border-right: 0;
  }

  .session-summary-card > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-line);
  }
}

@media (max-width: 760px) {
  .register-live-grid,
  .sales-toolbar,
  .vehicle-toolbar,
  .employee-stats-toolbar,
  .session-summary-card,
  .session-notes {
    grid-template-columns: 1fr;
  }

  .register-status-card {
    grid-column: auto;
  }

  .sales-toolbar .search-field,
  .vehicle-toolbar .search-field {
    grid-column: auto;
  }

  .employee-stats-filter-copy {
    grid-column: auto;
  }

  .inventory-location-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-location-toolbar .search-field {
    grid-column: auto;
  }

  .pos-command-bar {
    grid-template-columns: 1fr;
  }

  .pos-command-bar nav {
    grid-column: auto;
    justify-content: stretch;
  }

  .pos-command-bar nav a {
    flex: 1;
    justify-content: space-between;
  }

  .pos-command-meta {
    flex-wrap: wrap;
  }

  .pos-payment-bars {
    grid-template-columns: 1fr;
  }

  .pos-sale-context {
    grid-template-columns: 1fr;
  }

  .pos-sale-context dl {
    grid-template-columns: 1fr;
  }

  .pos-sale-context dl > div {
    padding: 11px 0;
    border-top: 1px solid var(--admin-line);
    border-left: 0;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .cashbook-list article {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .cashbook-list time {
    grid-column: 2 / -1;
  }

  .register-session-list > a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .register-session-list em {
    grid-column: 2 / -1;
  }

  .movement-list article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .movement-list article > p,
  .movement-list article > time {
    grid-column: 2;
  }

  .receipt-parties,
  .receipt-meta {
    grid-template-columns: 1fr;
  }

  .receipt-parties > div + div {
    padding-left: 0;
    border-top: 1px solid var(--admin-line);
    border-left: 0;
  }

  .receipt-meta > div {
    padding: 6px 0;
  }

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

  .receipt-header > div {
    text-align: left;
  }

  .session-summary-card {
    padding: 0;
  }

  .session-summary-card > div,
  .session-summary-card > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .session-summary-card > div:last-child {
    border-bottom: 0;
  }

  .session-sale-list a {
    grid-template-columns: 1fr auto;
  }

  .session-sale-list .status-badge {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .admin-topbar > a.sale-action::after { content: "+ Verkauf"; }
  .admin-topbar > a.vehicle-action::after { content: "+ Auto"; }
  .heading-actions { width: 100%; }
  .heading-actions .admin-button { flex: 1; }
  .receipt-card { padding: 22px 17px; }
  .receipt-footer { flex-direction: column; }
  .pos-section-heading { align-items: flex-start; flex-direction: column; }
  .pos-command-bar nav { flex-direction: column; }
  .pos-selected-vehicle { grid-template-columns: 1fr; }
  .pos-selected-visual { border-right: 0; border-bottom: 1px solid var(--admin-line); }
  .employee-sales-grid { grid-template-columns: 1fr; }
  .employee-sales-card > footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  @page {
    margin: 14mm;
  }

  body,
  html {
    background: #fff !important;
    color: #111 !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .admin-footer,
  .no-print,
  .heading-actions {
    display: none !important;
  }

  .admin-workspace {
    margin-left: 0 !important;
  }

  .admin-main {
    width: 100%;
    padding: 0 !important;
  }

  .receipt-layout {
    display: block;
  }

  .admin-panel,
  .receipt-card {
    border-color: #bbb !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  .metric-grid {
    border-color: #bbb !important;
    background: #bbb !important;
  }

  .metric-grid article {
    min-height: 105px;
    padding: 16px;
    background: #fff !important;
    color: #111 !important;
  }

  .metric-grid article strong,
  .metric-grid article span,
  .metric-grid article small,
  .session-summary-card strong,
  .session-summary-card span,
  .cashbook-list strong,
  .cashbook-list b,
  .cashbook-list small,
  .cashbook-list time,
  .session-sale-list strong,
  .session-sale-list b,
  .session-sale-list small {
    color: #111 !important;
  }

  .receipt-card {
    padding: 0;
    border: 0 !important;
  }

  .receipt-header,
  .receipt-status-line,
  .receipt-parties,
  .receipt-lines,
  .receipt-meta,
  .receipt-note,
  .receipt-lines .receipt-total,
  .receipt-parties > div + div {
    border-color: #bbb !important;
  }

  .receipt-header strong,
  .receipt-total b,
  .receipt-lines b,
  .receipt-parties strong,
  .receipt-meta strong {
    color: #111 !important;
  }

  .receipt-header span,
  .receipt-header small,
  .receipt-status-line time,
  .receipt-parties span,
  .receipt-parties small,
  .receipt-meta small,
  .receipt-note small,
  .receipt-note p,
  .receipt-footer,
  .receipt-lines > div {
    color: #444 !important;
  }

  .metric-grid,
  .session-summary-card,
  .session-detail-grid,
  .session-notes {
    break-inside: avoid;
  }
}
