@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&display=swap");

:root {
  --ink: #15171a;
  --muted: #65707c;
  --line: #d8dde3;
  --soft-line: #ebeff3;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --brand: #8e2f2f;
  --brand-dark: #752222;
  --accent: #0f7b62;
  --warn: #b9770e;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font-body: "Zalando Sans Expanded", "Zalando Sans", Arial, Helvetica, sans-serif;
  --font-heading: "Orbitron", "Zalando Sans Expanded", Arial, Helvetica, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: var(--font-body);
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
th,
.login-brand span,
.title-block h1,
.table-meta strong,
.catalog-table .section-row td,
.selected-heading h2,
.print-title h1,
.print-table th,
.print-table .section-row td {
  font-family: var(--font-heading);
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef2f4;
}

.login-panel {
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 36px 36px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.login-brand img {
  width: 230px;
  max-width: 52%;
  height: auto;
}

.login-brand span {
  color: var(--brand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 16px;
}

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

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid rgba(15, 123, 98, 0.24);
  outline-offset: 1px;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button,
.icon-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary-button:hover,
.icon-button:hover {
  border-color: #b8c0c9;
  background: #f9fafb;
}

.danger-button {
  min-height: 38px;
  border: 1px solid #e0bbbb;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff3f3;
  color: #9f2424;
  font-weight: 700;
}

.danger-button:hover {
  background: #ffe8e8;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #a32424;
  font-weight: 700;
}

.app-shell {
  min-height: 100vh;
}

.app-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-strip {
  display: grid;
  grid-template-columns: 160px minmax(360px, 1fr) 340px;
  gap: 22px;
  align-items: center;
}

.canada-proof-logo {
  width: 150px;
  height: auto;
}

.mcrae-logo {
  width: 330px;
  height: auto;
  justify-self: end;
}

.title-block {
  justify-self: stretch;
  min-width: 0;
  text-align: center;
}

.title-block h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.user-actions span {
  color: var(--muted);
  font-size: 13px;
}

.quote-controls {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(175px, 190px) minmax(215px, 235px) minmax(320px, 1.5fr) minmax(320px, max-content);
  column-gap: 18px;
  row-gap: 12px;
  align-items: end;
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid var(--soft-line);
}

.quote-controls label {
  min-width: 0;
}

.quote-controls input,
.quote-controls select {
  width: 100%;
  min-width: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.toggle-row input {
  min-height: auto;
}

.toggle-row span {
  color: var(--ink);
  text-transform: none;
  font-weight: 700;
}

.settings-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 22px;
  background: #f8fafb;
  border-bottom: 1px solid var(--soft-line);
}

.settings-panel[hidden] {
  display: none !important;
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 16px 22px;
  background: #fff8ef;
  border-bottom: 1px solid #eed8b8;
}

.admin-panel h2 {
  margin: 0;
  font-size: 18px;
}

.admin-panel h3 {
  margin: 0;
  font-size: 15px;
}

.admin-panel p {
  margin: 4px 0 0;
  color: #785c32;
}

.price-file-status {
  min-height: auto !important;
  margin: 2px 0 0 !important;
  padding-top: 8px;
  border-top: 1px solid #eed8b8;
  color: var(--muted) !important;
  font-size: 13px;
}

.admin-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #eed8b8;
  border-radius: 8px;
}

.import-form,
.password-form,
.user-form {
  display: grid;
  gap: 8px;
}

.price-update-card {
  align-content: start;
}

.admin-card label {
  min-width: 0;
}

.admin-card input {
  width: 100%;
  min-width: 0;
}

.admin-card p {
  min-height: 32px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.admin-card button {
  justify-self: start;
}

.password-form input {
  min-width: 0;
}

.own-password-form {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

.own-password-form p {
  min-height: 0;
}

.user-card {
  gap: 10px;
}

.existing-users-card {
  gap: 10px;
}

.existing-users-card .user-list {
  max-height: 360px;
}

.user-card select {
  width: 100%;
  min-width: 0;
}

.user-list {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4px;
}

.user-row {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fbfcfd;
}

.user-row-main,
.user-reset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.user-row-main > div {
  display: grid;
  gap: 2px;
}

.user-row span,
.user-row small,
.user-empty {
  color: var(--muted);
  font-size: 12px;
}

.user-row span {
  text-transform: capitalize;
}

.user-row small {
  text-align: left;
}

.user-row-permission {
  white-space: nowrap;
}

.user-reset-input {
  min-width: 0;
}

.compact-button {
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.admin-message {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  font-weight: 700;
  color: var(--warn);
}

.category-tabs {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 12px 22px 0;
}

.category-tabs button {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #f4f6f8;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 800;
  white-space: nowrap;
}

.category-tabs button.active {
  position: relative;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 -3px 0 var(--brand-dark) inset;
  padding-top: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 0 18px 22px;
}

.saved-quotes-screen {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.saved-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saved-screen-header h2,
.saved-screen-header p {
  margin: 0;
}

.saved-screen-header p {
  color: var(--muted);
  margin-top: 4px;
}

.saved-screen-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-panel,
.selected-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  min-width: 0;
}

.selected-panel {
  border-radius: 8px;
  align-self: start;
  position: sticky;
  top: 12px;
}

.table-meta {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.table-meta strong {
  color: var(--brand);
  font-size: 18px;
}

.table-meta span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 224px);
  background: #fff;
  border-radius: 0 0 8px 8px;
  scrollbar-color: #8d98a3 #f4f6f8;
  scrollbar-gutter: stable;
}

.table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #f4f6f8;
}

.table-wrap::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #8d98a3;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

.catalog-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 13px;
}

.catalog-table th,
.catalog-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 7px 6px;
  text-align: center;
  vertical-align: middle;
}

.catalog-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

.catalog-table th:not(.warranty-col),
.catalog-table tbody tr:not(.section-row) td:nth-child(1),
.catalog-table tbody tr:not(.section-row) td:nth-child(2),
.catalog-table tbody tr:not(.section-row) td:nth-child(5) {
  white-space: nowrap;
}

.catalog-table .warranty-col {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}

.catalog-table th.warranty-col {
  line-height: 1.15;
  white-space: normal;
}

.catalog-table td.warranty-col {
  white-space: nowrap;
}

.catalog-table tbody tr:hover {
  background: #f7fbfa;
}

.catalog-table .section-row td {
  background: #f0f2f4;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  height: 30px;
  padding: 5px 6px;
  text-align: center;
  text-transform: uppercase;
}

.app-shell.hide-cost-price .cost-price-col {
  display: none;
}

.app-shell.hide-margin .margin-col,
.app-shell.hide-margin .markup-col {
  display: none;
}

.app-shell.hide-core-col .core-col {
  display: none;
}

.app-shell.hide-group-col .group-col {
  display: none;
}

.part-cell {
  font-weight: 800;
  color: #101215;
}

.muted {
  color: var(--muted);
}

.price-cell {
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  white-space: nowrap;
}

.cost-price-col,
.your-price {
  width: 160px;
  max-width: 160px;
}

.list-price-col,
.margin-col,
.markup-col {
  width: 78px;
  max-width: 78px;
}

.markup-col {
  width: 94px;
  max-width: 94px;
}

.your-price {
  color: var(--accent);
  font-weight: 800;
}

.price-editor {
  display: inline-grid;
  grid-template-columns: 76px 56px;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.price-editor:has(.revert-button) {
  grid-template-columns: 76px 56px 58px;
}

.price-editor input {
  min-height: 28px;
  width: 76px;
  padding: 3px 5px;
  text-align: center;
}

.price-editor button {
  min-height: 28px;
  min-width: 56px;
  border: 1px solid #b6c8c2;
  border-radius: 6px;
  background: #eaf6f1;
  color: #075f4b;
  font-weight: 800;
  padding: 3px 8px;
  line-height: 1;
}

.price-editor .revert-button {
  border-color: #d3b8b8;
  background: #fff1f1;
  color: #8e2f2f;
}

.add-button {
  min-width: 36px;
  min-height: 32px;
  border: 1px solid #b6c8c2;
  border-radius: 6px;
  background: #eaf6f1;
  color: #075f4b;
  font-weight: 800;
}

.add-button:hover {
  background: #d9efe7;
}

.selected-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.selected-heading h2 {
  margin: 0;
  font-size: 18px;
}

.check-row {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.check-row input {
  min-height: auto;
}

.check-row span {
  color: var(--ink);
  text-transform: none;
  font-weight: 600;
}

.selected-items {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  min-height: 120px;
}

.selected-empty {
  color: var(--muted);
  font-size: 14px;
}

.selected-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fbfcfd;
}

.selected-item strong {
  display: block;
}

.selected-item .line-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.line-controls {
  display: grid;
  grid-template-columns: 64px 36px;
  gap: 6px;
  align-items: start;
}

.line-controls input {
  width: 64px;
  min-height: 34px;
}

.remove-button {
  width: 36px;
  min-height: 34px;
  border: 1px solid #e0bbbb;
  border-radius: 6px;
  background: #fff3f3;
  color: #9f2424;
  font-weight: 800;
}

.totals {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--soft-line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.grand-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: 18px;
}

.saved-quotes {
  border-top: 1px solid var(--soft-line);
}

.saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 8px;
}

.saved-heading h2 {
  margin: 0;
  font-size: 17px;
}

.saved-quotes-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 245px);
  overflow: auto;
}

.saved-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.saved-status-card {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 7px 9px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-top: 5px solid var(--bucket-color, var(--brand));
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(236, 241, 245, 0.96));
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.saved-status-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58, 80, 102, 0.08);
}

.saved-status-card.active {
  transform: translateY(-1px);
  border-color: rgba(40, 90, 120, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(214, 227, 239, 0.99));
  box-shadow:
    0 0 0 4px rgba(40, 90, 120, 0.18),
    0 14px 26px rgba(41, 56, 70, 0.12);
}

.saved-status-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.saved-status-count {
  display: inline-block;
  margin-top: 2px;
  color: #101215;
  font-size: 22px;
  line-height: 1;
}

.saved-status-card.active .saved-status-label,
.saved-status-card.active .saved-status-count {
  color: var(--ink);
}

.saved-user-list {
  display: grid;
  gap: 6px;
}

.saved-quote-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, 0.55fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fbfcfd;
}

.saved-quote-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.saved-quote-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.saved-quote-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.saved-quote-main {
  display: grid;
  gap: 2px;
}

.saved-quote-main strong {
  font-size: 15px;
}

.saved-quote-main span {
  color: var(--muted);
  font-size: 12px;
}

.saved-quote-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.saved-quote-preview {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.saved-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 10px;
}

.saved-preview-toolbar > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.saved-preview-body {
  overflow: auto;
  background: #f7f8fa;
  padding: 14px;
}

.saved-preview-body .print-sheet {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.print-sheet,
.print-sheet * {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.print-sheet {
  color: #111;
  font-family: var(--font-body);
}

.print-header {
  display: grid;
  grid-template-columns: 140px 1fr 300px;
  gap: 12px;
  align-items: center;
  border-bottom: 2px solid #8e2f2f;
  padding-bottom: 10px;
}

.print-header img {
  max-width: 100%;
  height: auto;
}

.print-header .print-mcrae-logo {
  width: 300px;
  justify-self: end;
}

.print-title {
  text-align: center;
}

.print-title h1 {
  margin: 0;
  color: #8e2f2f;
  font-size: 30px;
  text-transform: uppercase;
}

.print-meta {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
  margin: 10px 0;
  font-size: 13px;
}

.print-meta div {
  border: 1px solid #c9c9c9;
  padding: 7px 8px;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.print-table th,
.print-table td {
  border: 1px solid #1e1e1e;
  padding: 4px 5px;
  text-align: center;
}

.print-table th {
  background-color: #8e2f2f;
  color: #fff;
  border-color: #1e1e1e;
  text-transform: uppercase;
}

.print-table .warranty-col {
  width: 12%;
  max-width: 12%;
  line-height: 1.15;
  white-space: normal;
}

.print-table .section-row td {
  background-color: #efefef;
  color: #8e2f2f;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.print-table .money,
.print-table .num {
  text-align: center;
  white-space: nowrap;
}

.print-table .part {
  font-weight: 800;
}

.print-summary {
  width: 280px;
  margin: 14px 0 0 auto;
  border-collapse: collapse;
  font-size: 13px;
}

.print-summary td {
  border: 1px solid #1e1e1e;
  padding: 6px 8px;
}

.print-summary td:last-child {
  text-align: right;
  font-weight: 800;
}

.print-list-dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.print-list-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.dialog-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fff;
}

.dialog-card h2,
.dialog-card p {
  margin: 0;
}

.dialog-card p {
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.print-area {
  display: none;
}

@media (max-width: 1380px) {
  .quote-controls {
    grid-template-columns: minmax(220px, 1fr) minmax(175px, 190px) minmax(215px, 235px) minmax(300px, 1.4fr);
  }

  .control-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-panel {
    grid-template-columns: 1fr 1fr;
  }

  .admin-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .app-header,
  .brand-strip,
  .quote-controls,
  .admin-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .mcrae-logo {
    justify-self: start;
  }

  .user-actions,
  .control-actions {
    justify-content: flex-start;
  }

  .selected-panel {
    position: static;
  }

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

  .saved-quotes-list {
    display: grid;
  }

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

  .saved-quote-actions,
  .saved-screen-actions {
    justify-content: flex-start;
  }

  .saved-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-preview-toolbar > div {
    justify-content: flex-start;
  }

  .table-wrap {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .login-panel {
    padding: 28px;
  }

  .user-row,
  .user-row-main,
  .user-reset-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .user-reset-input {
    width: 100%;
  }

  .user-row small {
    text-align: left;
  }

  .login-brand {
    gap: 18px;
  }

  .login-brand img {
    width: 190px;
  }

  .login-brand span {
    font-size: 24px;
  }
}

@media (max-width: 460px) {
  .login-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-brand img {
    max-width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .print-sheet,
  .print-sheet * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-shell.printing > :not(.print-area) {
    display: none !important;
  }

  .app-shell.printing .print-area {
    display: block;
  }

  .print-sheet {
    color: #111;
    font-family: var(--font-body);
    padding: 0;
  }

  .print-header {
    display: grid;
    grid-template-columns: 140px 1fr 300px;
    gap: 12px;
    align-items: center;
    border-bottom: 2px solid #8e2f2f;
    padding-bottom: 10px;
  }

  .print-header img {
    max-width: 100%;
    height: auto;
  }

  .print-header .print-mcrae-logo {
    width: 300px;
    justify-self: end;
  }

  .print-title {
    text-align: center;
  }

  .print-title h1 {
    margin: 0;
    color: #8e2f2f;
    font-size: 30px;
    text-transform: uppercase;
  }

  .print-meta {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    margin: 10px 0;
    font-size: 13px;
  }

  .print-meta div {
    border: 1px solid #c9c9c9;
    padding: 7px 8px;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #1e1e1e;
    padding: 4px 5px;
    text-align: center;
  }

  .print-table th {
    background-color: #8e2f2f !important;
    color: #fff !important;
    border-color: #1e1e1e;
    text-transform: uppercase;
  }

  .print-table .warranty-col {
    width: 12%;
    max-width: 12%;
    line-height: 1.15;
    white-space: normal;
  }

  .print-table .section-row td {
    background-color: #efefef !important;
    color: #8e2f2f !important;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
  }

  .print-table .money,
  .print-table .num {
    text-align: center;
    white-space: nowrap;
  }

  .print-table .part {
    font-weight: 800;
  }

  .print-summary {
    width: 280px;
    margin: 14px 0 0 auto;
    border-collapse: collapse;
    font-size: 13px;
  }

  .print-summary td {
    border: 1px solid #1e1e1e;
    padding: 6px 8px;
  }

  .print-summary td:last-child {
    text-align: right;
    font-weight: 800;
  }

  @page {
    size: letter landscape;
    margin: 0.35in;
  }
}
