:root {
  --bg: #f1eee8;
  --work-bg: #f5f2ec;
  --panel: #ffffff;
  --panel-2: #f2f4f6;
  --line: #c4cbd3;
  --line-dark: #8b96a3;
  --text: #111111;
  --muted: #555555;
  --accent: #c18629;
  --accent-soft: #f4ead8;
  --danger: #9b1c1c;
  --ok: #1f6f32;
  --sidebar: #141414;
}

.danger-confirm-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
  background:
    linear-gradient(110deg, rgba(10, 10, 10, .86), rgba(44, 34, 13, .62)),
    url("../img/hero-reference.jpg") center / cover no-repeat fixed;
}

.danger-confirm-page::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: inherit;
  filter: blur(5px);
  transform: scale(1.03);
}

.danger-confirm-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(193, 134, 41, .24), transparent 34%);
}

.danger-confirm-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
  backdrop-filter: blur(12px);
}

.danger-kicker {
  color: #a42a2a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.danger-confirm-card h1 {
  margin: 0;
  color: #181b22;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.danger-confirm-card p {
  margin: 0;
  color: #4f5664;
  font-size: 16px;
  line-height: 1.55;
}

.danger-summary {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3cd;
  color: #4c3900;
  font-weight: 700;
}

.dependency-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.dependency-list .dependency-list {
  margin-top: 10px;
}

.dependency-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 24, 34, .08);
  border-radius: 12px;
  background: #fafbfc;
}

.dependency-item strong {
  color: #20242d;
}

.dependency-item span {
  color: #596170;
}

.danger-confirm-form {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 24, 34, .1);
}

.danger-confirm-form label {
  display: grid;
  gap: 8px;
  color: #2f3540;
  font-weight: 800;
}

.danger-confirm-form input {
  width: min(360px, 100%);
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(20, 24, 34, .18);
  border-radius: 10px;
  font: inherit;
}

.danger-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verification-code-field input {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .22em;
  text-align: center;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #123c74;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--work-bg);
}

a { color: #123c74; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

select {
  appearance: none;
  border-color: #a89472;
  border-radius: 4px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f4b1b 50%),
    linear-gradient(135deg, #6f4b1b 50%, transparent 50%),
    linear-gradient(to right, #f0dfc1, #f0dfc1);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%,
    100% 0;
  background-size: 6px 6px, 6px 6px, 34px 100%;
  background-repeat: no-repeat;
  padding-right: 42px !important;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(193, 134, 41, 0.28);
  border-color: var(--accent) !important;
}

.flash-stack {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 24px));
}

.flash {
  padding: 10px 12px;
  border: 1px solid #777;
  background: #ffffe1;
  color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash.is-hiding {
  opacity: 0;
  transform: translateX(16px);
}

.marketing-shell,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e4e4e4;
}

.marketing-hero,
.auth-card {
  width: min(980px, 100%);
  padding: 28px;
  border: 1px solid var(--line-dark);
  background: var(--panel);
}

.auth-shell {
  position: relative;
  overflow: hidden;
  padding: 32px 16px;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.84), rgba(30, 23, 10, 0.58)),
    url("../img/hero-reference.jpg") center / cover no-repeat fixed;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: -22px;
  background: inherit;
  filter: blur(5px);
  transform: scale(1.03);
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(17, 17, 17, 0.24);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.auth-layout-wide {
  width: min(1220px, 100%);
}

.auth-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-brand {
  margin-bottom: 18px;
  color: #e1bd5a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-side h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.auth-side p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.auth-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(225, 189, 90, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff5dc;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: auto;
  display: grid;
  align-content: center;
  padding: 44px;
  border: 0;
  background: rgba(255, 250, 241, 0.96);
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.auth-form {
  margin-top: 18px;
}

.auth-form .field input {
  min-height: 48px;
  border-radius: 12px;
  border-color: rgba(49, 38, 20, 0.16);
  background: #fff;
}

.auth-form .primary-btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(193, 134, 41, 0.26);
}

.auth-links {
  justify-content: space-between;
  margin-top: 18px;
}

.marketing-copy { max-width: 700px; }
.marketing-copy p,
.muted-copy { color: var(--muted); line-height: 1.5; }

.eyebrow,
.workspace-eyebrow,
.summary-label,
.field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-actions,
.form-links,
.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.primary-btn,
.ghost-btn,
.logout-btn,
.mini-btn,
.tool-btn {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #ffffff;
  color: #111;
  font-weight: 400;
}

.primary-btn {
  background: var(--accent);
  border-color: #8e611f;
  color: #111;
}

.ghost-btn {
  background: #ffffff;
}

.logout-btn {
  width: 100%;
  margin-top: auto;
  background: #ffffff;
  text-decoration: none;
}

.tool-btn:disabled,
.tool-btn[disabled] {
  color: #777;
  background: #e6e9ed;
  cursor: default;
}

.danger-tool:not(:disabled) { color: var(--danger); }

.stack-form,
.account-form {
  display: grid;
  gap: 12px;
}

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

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

.field {
  display: grid;
  gap: 4px;
}

.field span,
.field-label {
  color: #333;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.password-generate-btn {
  justify-self: start;
}

.password-actions,
.password-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.masked-password {
  min-width: 76px;
  display: inline-block;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 1px;
}

.password-reveal-btn {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #9f8a66;
  border-radius: 4px;
  background: #fffaf1;
  color: #2c2418;
  cursor: pointer;
}

.field input,
.field select,
.field textarea,
.table-search input,
.inline-form input,
.inline-form select {
  width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #fff;
}

.field textarea { min-height: 72px; resize: vertical; }

.field select,
.table-search select,
.inline-form select,
.line-picker select,
.toolbar-field select,
.schedule-head select {
  border-color: #a89472;
  background-color: #fffdf8;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f4b1b 50%),
    linear-gradient(135deg, #6f4b1b 50%, transparent 50%),
    linear-gradient(to right, #f0dfc1, #f0dfc1);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%,
    100% 0;
  background-size: 6px 6px, 6px 6px, 34px 100%;
  background-repeat: no-repeat;
}

.field input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  justify-self: start;
}

.consent-field {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(193, 134, 41, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #332b1f;
  line-height: 1.45;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.consent-field .errorlist {
  grid-column: 1 / -1;
}

.workspace-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px 1fr;
  background: var(--work-bg);
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  background: var(--sidebar);
  color: #fff;
  border-right: 1px solid #000;
}

.workspace-brand {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #6d6d6d;
  background: #1d1d1d;
  font-size: 13px;
  font-weight: 700;
}

.page-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #bdbdbd;
}

.page-tab {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1d1d1d;
  border-right: 1px solid #bdbdbd;
}

.page-tab:last-child { border-right: 0; }
.page-tab.is-active {
  background: #ffffff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.workspace-user {
  padding: 9px;
  border: 1px solid #6f6f6f;
  background: #1d1d1d;
}

.workspace-role {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #888;
  background: #111;
  font-size: 11px;
}

.workspace-user h2 {
  margin: 8px 0 5px;
  font-size: 16px;
  line-height: 1.25;
}

.workspace-user p {
  margin: 0;
  color: #cfcfcf;
  line-height: 1.4;
}

.side-groups {
  display: grid;
  gap: 8px;
}

.menu-group {
  display: grid;
  gap: 5px;
}

.menu-group-trigger {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #161616;
  color: #fff;
  font-weight: 700;
}

.menu-group:not(.is-open) .menu-group-list {
  display: none;
}

.menu-group-list {
  display: grid;
  gap: 1px;
  padding: 0 0 2px 14px;
}

.menu-link {
  min-height: 27px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-align: left;
}

.menu-link:hover {
  background: #242424;
  border-color: #6a6a6a;
}

.menu-link.is-current {
  background: #ffffff;
  color: #111;
  font-weight: 700;
}

.menu-caret {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border: 1px solid rgba(193, 134, 41, 0.65);
  border-radius: 50%;
  background: #221b12;
  color: transparent;
  font-size: 0;
  transition: background 0.16s ease, transform 0.16s ease;
}

.menu-caret::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
}

.menu-group:not(.is-open) .menu-caret::before {
  transform: translateX(-1px) rotate(-45deg);
}

.workspace-main {
  min-width: 0;
  padding: 12px;
}

.workspace-header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.workspace-header h1 {
  margin: 2px 0 0;
  font-size: 22px;
}

.workspace-meta {
  max-width: 520px;
  color: #333;
  line-height: 1.4;
  text-align: right;
}

.summary-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.summary-card,
.report-card,
.content-panel,
.entity-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.summary-card,
.report-card {
  padding: 9px 10px;
}

.summary-value,
.report-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

.content-panel {
  margin-top: 8px;
  padding: 10px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c0c0c0;
}

.panel-head.between { align-items: center; }

.panel-head h2,
.panel-subhead h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.panel-head p,
.panel-subhead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.section-space { margin-top: 10px; }

.client-add-form {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.client-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.client-panel > .panel-head,
.client-add-form,
.client-panel .table-wrap,
.client-panel .card-grid,
.client-panel .schedule-box,
.client-service-part {
  border: 1px solid #d4c3a5;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 27, 21, 0.06);
}

.client-panel > .panel-head {
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d4c3a5;
}

.client-panel > .panel-head h2 {
  font-size: 24px;
}

.client-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.client-overview article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d4c3a5;
  background: linear-gradient(180deg, #ffffff, #fff7ea);
}

.client-overview span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.client-overview strong {
  font-size: 28px;
  line-height: 1;
}

.client-panel .card-grid {
  padding: 10px;
}

.client-panel .entity-card {
  border-color: #d8c8aa;
  border-left: 4px solid var(--accent);
  background: #fffdf8;
}

.client-booking-form {
  gap: 14px;
}

.client-service-part .document-table {
  min-width: 680px;
}

.client-workspace {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.92) 0, rgba(13, 13, 13, 0.92) 286px, rgba(245, 240, 231, 0.94) 286px, rgba(245, 240, 231, 0.94) 100%),
    url("../img/embedded-image-4.png") center / cover fixed;
}

.client-workspace::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 16%, rgba(193, 134, 41, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(245, 240, 231, 0.92));
  pointer-events: none;
}

.client-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 16, 0.94);
}

.client-main {
  padding: 20px;
}

.client-dashboard-head {
  min-height: 112px;
  overflow: hidden;
  position: relative;
  align-items: center;
  border: 0;
  border-radius: 22px;
  padding: 22px 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34)),
    url("../img/hero-reference.jpg") center / cover no-repeat;
  box-shadow: 0 20px 46px rgba(24, 18, 8, 0.18);
}

.client-dashboard-head .workspace-eyebrow {
  color: #e1bd5a;
  letter-spacing: 0.12em;
}

.client-dashboard-head h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
}

.client-dashboard-head .workspace-meta {
  color: rgba(255, 255, 255, 0.86);
}

.client-hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(193, 134, 41, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.96));
  box-shadow: 0 18px 44px rgba(29, 22, 12, 0.1);
}

.client-hero-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-hero-strip h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.client-hero-strip p {
  max-width: 760px;
  margin: 0;
  color: #51493d;
  line-height: 1.55;
}

.client-hero-action {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(193, 134, 41, 0.28);
}

.client-panel {
  margin-top: 14px;
}

.client-panel > .panel-head,
.client-add-form,
.client-panel .table-wrap,
.client-panel .card-grid,
.client-panel .schedule-box,
.client-service-part {
  border-radius: 18px;
}

.client-panel > .panel-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 241, 0.97)),
    linear-gradient(90deg, var(--accent), transparent);
}

.client-add-form {
  padding: 18px;
}

.client-overview {
  gap: 14px;
}

.client-overview article {
  min-height: 110px;
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.88), rgba(68, 47, 16, 0.78)),
    url("../img/embedded-image-5.png") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 16px 34px rgba(25, 20, 12, 0.16);
}

.client-overview article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.84), rgba(99, 69, 20, 0.72)),
    url("../img/embedded-image-6.png") center / cover no-repeat;
}

.client-overview article:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.84), rgba(86, 57, 16, 0.72)),
    url("../img/embedded-image-7.png") center / cover no-repeat;
}

.client-overview span {
  color: #e8d29a;
}

.client-overview strong {
  color: #fff;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.client-panel .entity-card {
  border: 1px solid rgba(193, 134, 41, 0.28);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(29, 22, 12, 0.07);
}

.client-panel .data-table th {
  background: #f2e2c4;
}

.client-panel .primary-btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding-inline: 20px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(193, 134, 41, 0.24);
}

.client-panel .schedule-box {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.98));
}

.client-panel .calendar-day {
  border-radius: 12px;
}

.client-sidebar {
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(18, 18, 18, 0.92)),
    url("../icon.png") center top / 118px auto no-repeat;
}

.client-sidebar .workspace-brand {
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e1bd5a;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-sidebar .page-switch {
  grid-template-columns: 1fr;
  border: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.client-sidebar .page-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

.client-sidebar .workspace-user {
  padding: 16px;
  border: 1px solid rgba(225, 189, 90, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.client-sidebar .workspace-role {
  border: 0;
  border-radius: 999px;
  background: rgba(193, 134, 41, 0.22);
  color: #e8d29a;
}

.client-sidebar .side-groups {
  gap: 14px;
}

.client-sidebar .menu-group-trigger {
  display: none;
}

.client-sidebar .menu-group-list {
  gap: 8px;
  padding: 0;
}

.client-sidebar .menu-link {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.client-sidebar .menu-link::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(225, 189, 90, 0.75);
}

.client-sidebar .menu-link:hover {
  border-color: rgba(225, 189, 90, 0.38);
  background: rgba(193, 134, 41, 0.12);
}

.client-sidebar .menu-link.is-current {
  border-color: rgba(225, 189, 90, 0.7);
  background: linear-gradient(135deg, var(--accent), #e2bf69);
  color: #111;
  box-shadow: 0 10px 22px rgba(193, 134, 41, 0.2);
}

.client-sidebar .menu-link.is-current::before {
  background: #111;
}

.logout-btn {
  min-height: 42px;
  border-color: rgba(193, 134, 41, 0.5);
  border-radius: 999px;
  background: #fffaf1;
  color: #111;
  font-weight: 800;
}

.client-sidebar .logout-btn {
  min-height: 46px;
  border: 1px solid rgba(225, 189, 90, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #fff3d3;
  box-shadow: none;
}

.client-sidebar .logout-btn:hover {
  background: var(--accent);
  color: #111;
  text-decoration: none;
}

.client-add-form {
  display: grid;
  gap: 16px;
}

.client-add-form .primary-btn {
  justify-self: start;
}

.client-panel .card-grid {
  gap: 14px;
}

.client-panel .moto-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(193, 134, 41, 0.2);
  border-left: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 249, 238, 0.97)),
    url("../img/embedded-image-4.png") center / cover no-repeat;
}

.client-panel .moto-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
}

.moto-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.moto-card-label {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.moto-card .entity-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.moto-card-year {
  min-width: 58px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #161616;
  color: #e1bd5a;
  font-weight: 800;
}

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

.moto-card-specs div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(49, 38, 20, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.moto-card-specs span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.moto-card-specs strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.moto-card .entity-note {
  padding-top: 12px;
  border-top: 1px solid rgba(49, 38, 20, 0.08);
  color: #51493d;
}

.workspace-layout {
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.94) 0, rgba(13, 13, 13, 0.94) 286px, rgba(245, 240, 231, 0.95) 286px, rgba(245, 240, 231, 0.95) 100%),
    url("../img/embedded-image-4.png") center / cover fixed;
}

.workspace-sidebar,
.client-sidebar {
  gap: 16px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(18, 18, 18, 0.92)),
    url("../icon.png") center top / 124px auto no-repeat;
}

.workspace-brand,
.client-sidebar .workspace-brand {
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e1bd5a;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-switch,
.client-sidebar .page-switch {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.page-tab,
.client-sidebar .page-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.page-tab.is-active,
.client-sidebar .page-tab.is-active {
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

.workspace-user,
.client-sidebar .workspace-user {
  padding: 16px;
  border: 1px solid rgba(225, 189, 90, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.workspace-role,
.client-sidebar .workspace-role {
  display: inline-flex;
  border: 0;
  border-radius: 999px;
  background: rgba(193, 134, 41, 0.22);
  color: #e8d29a;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-user h2 {
  font-size: 18px;
}

.workspace-user p {
  color: rgba(255, 255, 255, 0.72);
}

.side-groups {
  gap: 12px;
}

.menu-group {
  gap: 8px;
}

.menu-group-trigger,
.client-sidebar .menu-group-trigger {
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(225, 189, 90, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.menu-group-list,
.client-sidebar .menu-group-list {
  gap: 7px;
  padding: 0 0 0 8px;
}

.menu-link,
.client-sidebar .menu-link {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.menu-link::before,
.client-sidebar .menu-link::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(225, 189, 90, 0.78);
}

.menu-link:hover,
.client-sidebar .menu-link:hover {
  border-color: rgba(225, 189, 90, 0.28);
  background: rgba(193, 134, 41, 0.12);
}

.menu-link.is-current,
.client-sidebar .menu-link.is-current {
  border-color: rgba(225, 189, 90, 0.7);
  background: linear-gradient(135deg, var(--accent), #e2bf69);
  color: #111;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(193, 134, 41, 0.18);
}

.menu-link.is-current::before,
.client-sidebar .menu-link.is-current::before {
  background: #111;
}

.home-btn,
.logout-btn,
.client-sidebar .home-btn,
.client-sidebar .logout-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.home-btn,
.client-sidebar .home-btn {
  margin-top: auto;
  border: 1px solid rgba(225, 189, 90, 0.5);
  background: rgba(193, 134, 41, 0.16);
  color: #fff3d3;
}

.home-btn:hover,
.client-sidebar .home-btn:hover {
  background: rgba(193, 134, 41, 0.28);
  text-decoration: none;
}

.logout-btn,
.client-sidebar .logout-btn {
  margin-top: 0;
  border: 1px solid rgba(225, 189, 90, 0.72);
  background: var(--accent);
  color: #111;
}

.logout-btn:hover,
.client-sidebar .logout-btn:hover {
  background: #e2bf69;
  color: #111;
  text-decoration: none;
}

.workspace-main {
  padding: 20px;
}

.workspace-header,
.classic-header {
  min-height: 106px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 22px 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34)),
    url("../img/hero-reference.jpg") center / cover no-repeat;
  box-shadow: 0 20px 46px rgba(24, 18, 8, 0.18);
}

.workspace-header h1 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
}

.workspace-header .workspace-eyebrow {
  color: #e1bd5a;
  letter-spacing: 0.12em;
}

.workspace-meta {
  color: rgba(255, 255, 255, 0.86);
}

.hidden-date-field {
  display: none;
}

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

.entity-card {
  padding: 10px;
}

.entity-title {
  margin-bottom: 8px;
  font-weight: 700;
}

.entity-line,
.entity-note {
  color: #333;
  line-height: 1.45;
}

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

.check-grid ul {
  display: contents;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-grid li,
.inventory-pick {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #c2c2c2;
  background: #f7f9fb;
}

.inventory-pick-grid {
  display: grid;
  gap: 6px;
}

.inventory-pick input[type="number"] {
  width: 80px;
}

.strict-form { gap: 12px; }
.field-block { display: grid; gap: 7px; }

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

.document-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.toolbar-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-field input,
.toolbar-field select {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #fff;
}

.toolbar-field input {
  width: 90px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.document-grid .field:has(textarea) {
  grid-column: span 2;
}

.work-order-grid .field-appointment,
.work-order-grid .field-client_name,
.work-order-grid .field-motorcycle,
.work-order-grid .field-assigned_mechanic {
  grid-column: span 2;
}

.work-order-grid .field-is_paid {
  align-content: end;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
}

.work-order-grid .field-is_paid span {
  grid-column: 1 / -1;
}

.receipt-header-grid {
  grid-template-columns: 1fr 220px 1fr;
}

.document-part {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.document-part-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.document-part-head h3 {
  margin: 0;
  font-size: 16px;
}

.line-picker {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 6px;
  min-width: min(520px, 100%);
}

.line-picker select,
.line-qty {
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #fff;
}

.document-table {
  min-width: 760px;
}

.document-table .line-qty {
  width: 86px;
}

.document-table input.line-qty {
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid #999;
  border-radius: 3px;
}

.document-empty-row td {
  color: var(--muted);
  background: #fbfcfd;
}

.row-remove {
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid #c77;
  border-radius: 3px;
  background: #fff4f4;
  color: var(--danger);
}

.nested-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.nested-table th,
.nested-table td {
  padding: 5px 7px;
  border: 1px solid #d2c4ae;
  text-align: left;
}

.nested-table th {
  background: #f4ead8;
}

.receipt-details-row td {
  background: #fffaf1;
}

.schedule-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.schedule-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.schedule-head h3 {
  margin: 0;
  font-size: 16px;
}

.schedule-head select {
  min-width: 220px;
  min-height: 32px;
  border: 1px solid #9f8a66;
  border-radius: 4px;
  background-color: #fff;
}

.schedule-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #4d463d;
}

.schedule-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.schedule-legend i {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1px solid #9e9e9e;
}

.day-free { background: #dff0df; }
.day-busy { background: #ffe2a8; }
.day-closed { background: #f0b9b2; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  gap: 6px;
}

.calendar-weekday {
  padding: 6px;
  border: 1px solid #d8c7aa;
  background: #f1e4cc;
  font-weight: 700;
  text-align: center;
}

.calendar-empty {
  min-height: 76px;
}

.calendar-day {
  min-height: 76px;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 7px;
  border: 1px solid #bba57d;
  border-radius: 4px;
  color: #111;
  text-align: left;
  background: #fff;
}

.calendar-day strong {
  font-size: 17px;
}

.calendar-day span {
  color: #534a3d;
}

.calendar-day.is-free { background: #e6f3e6; }
.calendar-day.is-busy { background: #ffe5ad; }
.calendar-day.is-closed { background: #efb3aa; }
.calendar-day.is-selected {
  outline: 3px solid var(--accent);
}

.calendar-day:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.admin-calendar .calendar-day {
  min-height: 134px;
}

.readonly-calendar .calendar-day {
  min-height: 86px;
}

.admin-calendar .calendar-day label {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.admin-calendar .calendar-day input[type="number"] {
  width: 100%;
  min-height: 26px;
  border: 1px solid #9f8a66;
}

.day-closed-toggle {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.day-closed-toggle input {
  width: 14px;
  min-height: 14px;
}

.detail-document {
  display: grid;
  gap: 14px;
}

.document-page {
  min-height: 100vh;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.78), rgba(30, 23, 10, 0.5)),
    url("../img/hero-reference.jpg") center / cover fixed no-repeat;
}

.document-page-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(193, 134, 41, 0.24);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.document-page-card h1 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.detail-grid div,
.detail-total {
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.detail-grid span,
.detail-total span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.preview-box {
  padding: 9px;
  border: 1px solid #aaa;
  background: #fff9dc;
}

.preview-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 40px;
  padding: 5px;
  margin-bottom: 6px;
  border: 1px solid #a8a8a8;
  background: #edf1f5;
}

.tool-form { margin: 0; }

.table-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #333;
}

.table-search input {
  width: 250px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.compact-table { min-width: 760px; }

.data-table th,
.data-table td {
  padding: 6px 8px;
  border-right: 1px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
  vertical-align: top;
  text-align: left;
  line-height: 1.35;
}

.data-table th:last-child,
.data-table td:last-child { border-right: 0; }

.data-table th {
  background: #eee6da;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even):not(.is-selected) {
  background: #fafbfc;
}

.data-table tbody tr:hover:not(.no-results-row) {
  background: #fff8eb;
}

.data-table tr.is-selected {
  background: #f4dfb8;
  outline: 1px solid #c18629;
}

.data-table td.is-cell-selected {
  background: #eacb92;
  outline: 1px solid #9c6b24;
}

.no-results-row td {
  color: #555;
  background: #fff7d6;
}

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 190px;
}

.actions-cell form { margin: 0; }

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--danger);
  cursor: pointer;
}

.inline-form {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 5px;
  min-width: 360px;
}

.inline-form[data-confirm-delete] {
  display: block;
  min-width: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border: 1px solid #888;
  background: #f2f2f2;
}

.status-new { background: #fff2c4; }
.status-approved,
.status-completed { background: #dff0df; color: var(--ok); }
.status-canceled { background: #f6dada; color: var(--danger); }
.status-in_progress { background: #fff2c4; }

.mini-btn {
  min-height: 30px;
  padding: 4px 10px;
}

.form-message { min-height: 18px; font-size: 13px; }

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--danger);
  font-size: 12px;
}

.empty-state {
  padding: 8px;
  border: 1px dashed #999;
  background: #f8fafc;
  color: var(--muted);
}

.compact-empty {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 1200px) {
  .summary-grid,
  .report-grid,
  .two-col,
  .three-col,
  .document-grid,
  .detail-grid,
  .card-grid,
  .check-grid,
  .client-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-header { flex-direction: column; align-items: start; }
  .workspace-meta { text-align: left; }
  .table-search { margin-left: 0; width: 100%; }
  .table-search input { width: 100%; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(46px, 1fr)); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-side { min-height: 360px; padding-top: 78px; }
  .client-workspace {
    background:
      linear-gradient(180deg, rgba(13, 13, 13, 0.94) 0, rgba(13, 13, 13, 0.94) 320px, rgba(245, 240, 231, 0.96) 320px, rgba(245, 240, 231, 0.96) 100%),
      url("../img/embedded-image-4.png") center / cover fixed;
  }
  .client-sidebar .menu-group-trigger { display: flex; }
  .client-hero-strip { grid-template-columns: 1fr; }
  .client-hero-action { justify-self: start; }
}

@media (max-width: 760px) {
  .workspace-main,
  .workspace-sidebar,
  .auth-card,
  .marketing-hero { padding: 10px; }

  .summary-grid,
  .report-grid,
  .two-col,
  .three-col,
  .document-grid,
  .detail-grid,
  .card-grid,
  .check-grid,
  .client-overview,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .inline-form,
  .line-picker,
  .schedule-head,
  .page-switch {
    grid-template-columns: 1fr;
  }

  .schedule-box {
    gap: 10px;
    padding: 8px;
  }
  .client-panel .schedule-box {
    padding: 8px;
  }
  .client-service-part {
    overflow: hidden;
    padding: 10px;
  }
  .client-service-part .document-part-head {
    display: grid;
    align-items: start;
    gap: 10px;
  }
  .client-service-part .document-part-head p {
    font-size: 13px;
  }
  .client-service-part .line-picker {
    min-width: 0;
    width: 100%;
  }
  .client-service-part .line-picker select {
    min-width: 0;
  }
  .client-service-part .line-picker .mini-btn {
    width: 100%;
    min-height: 38px;
  }
  .client-service-part .document-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  .client-service-part .document-table thead {
    display: none;
  }
  .client-service-part .document-table,
  .client-service-part .document-table tbody,
  .client-service-part .document-table tr,
  .client-service-part .document-table td {
    display: block;
    width: 100%;
  }
  .client-service-part .document-table tbody {
    display: grid;
    gap: 8px;
  }
  .client-service-part .document-table tr {
    padding: 10px;
    border: 1px solid rgba(193, 134, 41, 0.22);
    border-radius: 12px;
    background: #fffdf8;
  }
  .client-service-part .document-table td {
    padding: 4px 0;
    border: 0;
  }
  .client-service-part .document-table td:first-child {
    font-weight: 800;
    line-height: 1.3;
  }
  .client-service-part .document-table td:nth-child(2),
  .client-service-part .document-table td:nth-child(3),
  .client-service-part .document-table td:nth-child(4) {
    color: #5f5546;
    font-size: 12px;
  }
  .client-service-part .document-table td:nth-child(2)::before {
    content: "Тип: ";
    font-weight: 800;
    color: #2f2b24;
  }
  .client-service-part .document-table td:nth-child(3)::before {
    content: "Нормо-часы: ";
    font-weight: 800;
    color: #2f2b24;
  }
  .client-service-part .document-table td:nth-child(4)::before {
    content: "Цена: ";
    font-weight: 800;
    color: #2f2b24;
  }
  .client-service-part .document-table td:last-child {
    padding-top: 8px;
  }
  .client-service-part .document-table .row-remove {
    width: 100%;
    min-height: 34px;
  }
  .client-service-part .document-empty-row {
    padding: 0;
    border-style: dashed;
  }
  .client-service-part .document-empty-row td {
    padding: 10px;
    text-align: center;
  }
  .schedule-legend {
    gap: 8px 12px;
    font-size: 12px;
  }
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(36px, 1fr));
    gap: 3px;
  }
  .calendar-weekday {
    padding: 5px 2px;
    font-size: 11px;
  }
  .calendar-empty {
    min-height: 46px;
  }
  .calendar-day {
    min-height: 46px;
    padding: 5px 3px;
    gap: 2px;
    border-radius: 3px;
    text-align: center;
  }
  .client-panel .calendar-day {
    border-radius: 6px;
  }
  .calendar-day strong {
    font-size: 14px;
  }
  .calendar-day span {
    font-size: 10px;
    line-height: 1.15;
  }
  .auth-shell { padding: 12px; }
  .auth-side,
  .auth-card { padding: 24px; }
  .auth-back { top: 16px; left: 16px; }
  .auth-side h1 { font-size: 34px; }
  .auth-points { display: none; }
  .client-main { padding: 12px; }
  .moto-card-top,
  .moto-card-specs { grid-template-columns: 1fr; }
  .moto-card-top { display: grid; }
  .client-dashboard-head,
  .client-hero-strip,
  .client-panel > .panel-head,
  .client-add-form,
  .client-panel .schedule-box,
  .client-service-part { border-radius: 14px; }
}
