:root {
  --ink: #171717;
  --muted: #63666d;
  --line: #d8dce2;
  --panel: #ffffff;
  --page: #f2f4f7;
  --accent: #b7924b;
  --accent-soft: #f4ead7;
  --table-head: #111111;
  --focus: #315b86;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(42, 42, 42, 0.88)),
    var(--page);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.login-card img {
  width: 160px;
  justify-self: center;
}

.login-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
}

.login-card .eyebrow {
  text-align: center;
}

.login-card button,
.logout-button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #111111;
  border-radius: 6px;
  color: #ffffff;
  background: #111111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-status {
  min-height: 20px;
  margin: 0;
  color: #9c1c1c;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

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

.site-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 28px;
  color: #ffffff;
  background: #0f0f0f;
  border-bottom: 3px solid var(--accent);
}

.menu-toggle-button {
  width: 44px;
  height: 44px;
  display: grid;
  gap: 5px;
  align-content: center;
  justify-content: center;
  padding: 0;
  background: #181818;
  border: 1px solid #4e4e4e;
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle-button span {
  width: 22px;
  height: 2px;
  display: block;
  background: #ffffff;
  border-radius: 999px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: 160px;
  max-height: 66px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 2px;
}

.menu-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.site-side-menu {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: min(360px, calc(100vw - 34px));
  height: 100vh;
  padding: 32px 18px;
  color: #ffffff;
  background: #10191a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.32);
  transform: translateX(-105%);
  transition: transform 0.18s ease;
}

.site-side-menu.is-open {
  transform: translateX(0);
}

.side-menu-brand {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 12px 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-brand img {
  width: 92px;
  height: 78px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

.side-menu-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.side-menu-brand span {
  display: block;
  margin-top: 8px;
  color: #a8adb1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-menu {
  display: grid;
  gap: 10px;
}

.site-menu button {
  min-height: 56px;
  padding: 14px 18px;
  color: #b5babd;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.site-menu button:hover,
.site-menu button.is-active {
  color: #ffe7ab;
  background: rgba(183, 146, 75, 0.16);
  border-color: rgba(183, 146, 75, 0.28);
}

.logout-button {
  min-width: 84px;
  background: #1d1d1d;
  border-color: #565656;
}

.site-page {
  display: none;
}

.site-page.is-active {
  display: block;
}

.site-page-card {
  width: min(1120px, calc(100% - 48px));
  margin: 28px auto;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.08);
}

.site-page-card h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.site-page-card p {
  max-width: 780px;
  margin: 0 0 12px;
  color: #2f2f2f;
  font-size: 18px;
}

.page-logo {
  width: 190px;
  margin-bottom: 22px;
}

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

.about-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.about-grid h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.about-grid p {
  font-size: 15px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(820px, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  color: #ffffff;
  background: #111111;
  border-bottom: 4px solid var(--accent);
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow,
.source-note,
.quote-label,
.quote-code {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .eyebrow,
.topbar .source-note {
  color: #d8d8d8;
}

.topbar .source-note {
  justify-self: end;
  text-align: right;
}

.topbar-actions {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 8px;
  min-width: 0;
}

.topbar-actions button,
.topbar-discount-action {
  min-width: 0;
}

.topbar-actions button {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  color: #ffffff;
  background: #1d1d1d;
  border: 1px solid #565656;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.15;
}

.topbar-actions button:hover,
.topbar-actions button.is-active {
  color: #111111;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.topbar-actions button:disabled {
  color: #858585;
  background: #202020;
  border-color: #383838;
  cursor: not-allowed;
}

.topbar-discount-action {
  position: relative;
}

.topbar-discount-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 50%;
  width: 220px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.topbar-discount-panel label {
  font-size: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
}

.control-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 23, 23, 0.08);
}

.panel-section {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-of-type {
  margin-bottom: 0;
}

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

label,
.section-heading,
.field-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c6cbd3;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(49, 91, 134, 0.2);
  border-color: var(--focus);
}

.hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.service-picker-section {
  position: relative;
}

.service-picker-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: #111111;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.selected-service-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-picker {
  display: none;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.service-group {
  display: grid;
  gap: 7px;
}

.service-group-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 3px;
  width: 100%;
  min-height: 0;
  padding: 10px 11px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.service-option:hover,
.service-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.service-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 8px 0 0;
  accent-color: var(--ink);
}

.service-option-copy {
  display: grid;
  gap: 3px;
}

.service-option strong {
  font-size: 13px;
}

.service-option span {
  color: var(--muted);
  font-size: 12px;
}

.manual-service-editor {
  display: grid;
  gap: 12px;
}

.manual-service-editor.is-hidden {
  display: none;
}

.manual-service-items {
  display: grid;
  gap: 8px;
}

.manual-service-items-heading,
.manual-service-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.manual-service-items-heading.has-price,
.manual-service-item.has-price {
  grid-template-columns: 72px minmax(0, 1fr) 96px;
}

.manual-service-items-heading {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manual-service-item {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.manual-service-field {
  display: grid;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-service-field input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.manual-service-qty,
.manual-service-price {
  text-align: center;
}

.extras-list {
  display: grid;
  gap: 8px;
}

.extras-search-field {
  margin-bottom: 2px;
}

.extras-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: #fbfcfd;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
}

.extra-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.extra-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.extra-option input.extra-control-input {
  width: 92px;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  font-size: 13px;
  text-align: center;
}

.extra-option input.extra-complimentary-input {
  width: 18px;
  min-height: 18px;
  margin: 7px 0 0;
}

.extra-option input:disabled {
  color: var(--muted);
  background: #eef1f5;
}

.extra-option input.extra-dimensions-input {
  width: 128px;
  text-align: left;
}

.extra-option input.extra-capacity-input {
  width: 138px;
  text-align: left;
}

.extra-option strong {
  display: block;
  font-size: 13px;
}

.extra-option span {
  color: var(--muted);
  font-size: 12px;
}

.extra-price {
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.extra-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

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

.extra-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.extra-quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.extra-quantity-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.batch-launch-button {
  width: 100%;
  margin-bottom: 10px;
  color: #ffffff;
  background: var(--accent);
}

.drive-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.drive-status.is-error {
  color: #a32920;
}

.drive-status.is-success {
  color: #17633a;
}

.filename-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.filename-note strong {
  color: var(--ink);
}

button,
.button-link {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-decoration: none;
}

.primary-button {
  color: #ffffff;
  background: #111111;
}

.secondary-button {
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid #dec999;
}

.toggle-button {
  width: 100%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.toggle-button.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.discount-controls {
  margin-top: 10px;
}

.history-panel {
  margin-top: 18px;
}

.history-actions,
.history-item-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.last-saved-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.history-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.history-status.is-error {
  color: #a32920;
}

.history-status.is-success {
  color: #17633a;
}

.history-results {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.history-item strong {
  font-size: 12px;
}

.history-item span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.history-item button {
  min-height: 34px;
  font-size: 12px;
}

.history-item button.history-delete-button {
  color: #ffffff;
  background: #8f1d1d;
  border-color: #8f1d1d;
}

.history-item button.history-delete-button:hover {
  background: #6e1414;
  border-color: #6e1414;
}

.batch-dialog {
  width: calc(100vw - 24px);
  max-width: none;
  height: calc(100vh - 24px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--page);
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.batch-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.batch-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.batch-modal-header {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #ffffff;
  background: #111111;
  border-bottom: 3px solid var(--accent);
}

.batch-modal-header h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.batch-modal-header .eyebrow {
  color: #d8d8d8;
}

.batch-header-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 8px;
  min-width: 0;
}

.batch-header-actions button {
  min-height: 38px;
  padding: 7px 10px;
  color: #ffffff;
  background: #1d1d1d;
  border: 1px solid #565656;
  font-size: 11px;
  line-height: 1.15;
}

.batch-header-actions button:hover,
.batch-header-actions button.is-active {
  color: #111111;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.batch-header-actions button:disabled {
  color: #858585;
  background: #202020;
  border-color: #383838;
  cursor: not-allowed;
}

.batch-close-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 1px solid #555555;
  font-size: 28px;
  line-height: 1;
}

.batch-setup {
  align-self: start;
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 12px;
  align-items: end;
  width: min(100%, 600px);
  margin: 40px auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.batch-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
}

.batch-sidebar {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.batch-sidebar-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.batch-sidebar-heading > div {
  display: grid;
  gap: 2px;
}

.batch-sidebar-heading span {
  font-size: 14px;
  font-weight: 700;
}

.batch-sidebar-heading small {
  color: var(--muted);
  font-size: 11px;
}

.batch-sidebar-heading button {
  min-height: 36px;
  font-size: 12px;
}

.batch-draft-list {
  display: grid;
  gap: 8px;
}

.batch-draft-item {
  position: relative;
}

.batch-draft-button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 10px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  text-align: left;
}

.batch-draft-item .batch-draft-button {
  padding-right: 40px;
}

.batch-remove-button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  color: #6f211c;
  background: #ffffff;
  border: 1px solid #d8aaa6;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
}

.batch-remove-button:hover {
  color: #ffffff;
  background: #a32920;
  border-color: #a32920;
}

.batch-remove-button:disabled {
  color: #a4a4a4;
  background: #eeeeee;
  border-color: #d5d5d5;
  cursor: not-allowed;
}

.batch-draft-button:hover,
.batch-draft-button.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.batch-draft-button.is-saved {
  border-color: #4a8b65;
}

.batch-draft-button strong,
.batch-draft-button span,
.batch-draft-button small {
  overflow-wrap: anywhere;
}

.batch-draft-button strong {
  font-size: 12px;
}

.batch-draft-button span {
  color: var(--muted);
  font-size: 11px;
}

.batch-draft-button small {
  color: #17633a;
  font-size: 10px;
  font-weight: 700;
}

.batch-editor {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.batch-toolbar {
  position: sticky;
  z-index: 4;
  top: -14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  margin-bottom: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.batch-toolbar-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
}

.batch-toolbar-actions button {
  padding: 0 14px;
  white-space: nowrap;
}

.batch-editor-host > .app-shell {
  grid-template-columns: minmax(300px, 360px) minmax(600px, 1fr);
  gap: 16px;
  padding: 10px 0 0;
}

.batch-editor-host .control-panel {
  top: 86px;
  max-height: calc(100vh - 145px);
}

.batch-saved-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #7bad90;
  border-radius: 8px;
}

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

.batch-saved-result:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.batch-saved-result span {
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.batch-saved-result a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.batch-saved-result-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.batch-saved-result-actions button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.preview-panel {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.quote-document-set {
  display: grid;
  gap: 24px;
  width: min(100%, 940px);
}

.quote-document {
  width: 100%;
  min-height: 12.6in;
  padding: 36px;
  color: #111111;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.035), transparent 18%, rgba(0, 0, 0, 0.045) 48%, transparent 72%),
    #ffffff;
  border: 4px solid #111111;
  box-shadow: 0 18px 55px rgba(23, 23, 23, 0.12);
}

.quote-page-content {
  width: 100%;
  transform-origin: top left;
}

.mounting-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}

.mounting-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 28px;
  align-items: center;
  margin: -36px -36px 4px;
  padding: 32px 36px 28px;
  color: #ffffff;
  background:
    linear-gradient(115deg, #050606 0%, #111111 68%, transparent 68.2%),
    linear-gradient(120deg, transparent 0 73%, rgba(255, 255, 255, 0.82) 73.4% 74.6%, #111111 75%),
    #111111;
  border-bottom: 1px solid #d8d8d8;
}

.mounting-page-header h2 {
  margin: 6px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

.mounting-page-header p:last-child {
  margin: 0;
  color: #d8d8d8;
  font-size: 12px;
}

.mounting-option {
  overflow: hidden;
  border: 1px solid #cfd3d8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.mounting-option-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 18px;
  color: #ffffff;
  background: #111111;
}

.mounting-option-heading span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mounting-option-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.mounting-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.25;
  object-fit: cover;
  object-position: center;
}

.mounting-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #c6c6c6;
}

.mounting-page-footer span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mounting-page-footer strong {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
}

.quote-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 32px;
  align-items: start;
  margin: -36px -36px 30px;
  padding: 34px 36px 30px;
  color: #ffffff;
  background:
    linear-gradient(115deg, #050606 0%, #111111 64%, transparent 64.2%),
    linear-gradient(120deg, transparent 0 69%, rgba(255, 255, 255, 0.82) 69.4% 70.6%, #111111 71%),
    #111111;
  border-bottom: 1px solid #d8d8d8;
}

.quote-logo {
  width: 184px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  justify-self: end;
  filter: invert(1) grayscale(1) contrast(1.25);
}

.quote-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.quote-header h2 {
  margin: 6px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.quote-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-code-pill strong {
  font-weight: 500;
  letter-spacing: 0.16em;
}

.quote-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0 8px 22px;
}

.quote-info-grid div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.quote-info-grid span,
.totals-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-copy {
  display: grid;
  gap: 5px;
}

.info-copy strong,
.quote-info-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.info-icon,
.footer-icon,
.payment-icon {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  background: #111111;
  flex: 0 0 auto;
}

.info-icon {
  width: 42px;
  height: 42px;
  background: #eeeeee;
  border: 1px solid #d6d6d6;
}

.info-icon::before,
.info-icon::after,
.footer-icon::before,
.footer-icon::after,
.payment-icon::before,
.payment-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.info-icon-calendar::before {
  width: 18px;
  height: 16px;
  left: 11px;
  top: 13px;
  border: 2px solid #111111;
  border-radius: 2px;
}

.info-icon-calendar::after {
  width: 18px;
  height: 2px;
  left: 11px;
  top: 18px;
  background: #111111;
  box-shadow: 4px -6px 0 -1px #111111, 12px -6px 0 -1px #111111;
}

.info-icon-clock::before {
  width: 18px;
  height: 18px;
  left: 11px;
  top: 11px;
  border: 2px solid #111111;
  border-radius: 50%;
}

.info-icon-clock::after {
  width: 9px;
  height: 9px;
  left: 20px;
  top: 16px;
  border-left: 2px solid #111111;
  border-bottom: 2px solid #111111;
}

.info-icon-location::before {
  width: 18px;
  height: 18px;
  left: 12px;
  top: 9px;
  border: 2px solid #111111;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.info-icon-location::after {
  width: 6px;
  height: 6px;
  left: 18px;
  top: 15px;
  background: #111111;
  border-radius: 50%;
}

.quote-section {
  margin-top: 20px;
}

.intro-message {
  margin: 14px 8px 0;
  padding: 4px 0 4px 18px;
  color: var(--ink);
  border-left: 4px solid #d5d5d5;
  background: transparent;
}

.intro-message p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.35;
}

.service-detail-card {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
}

.service-detail-card .table-wrap {
  overflow-x: auto;
}

.service-detail-heading {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 0 32px 16px;
  color: #111111;
  background: transparent;
}

.service-detail-heading::before,
.service-detail-heading::after,
#selectedExtrasSection h3::before,
#selectedExtrasSection h3::after {
  content: "";
  position: absolute;
  top: 16px;
  width: calc(50% - 150px);
  height: 1px;
  background: #d0d0d0;
}

.service-detail-heading::before,
#selectedExtrasSection h3::before {
  left: 0;
}

.service-detail-heading::after,
#selectedExtrasSection h3::after {
  right: 0;
}

.service-detail-heading span {
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.service-detail-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: capitalize;
}

#selectedExtrasSection {
  padding: 14px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quote-section h3 {
  position: relative;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.price-badge {
  display: block;
  align-items: center;
  white-space: nowrap;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.service-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 0;
  background: #111111;
  border: 1px solid #111111;
  border-top: 0;
}

.service-price-row span {
  padding: 12px 20px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-price-row strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 270px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #e8e8e8, #ffffff 45%, #cfcfcf);
}

.quote-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.quote-bottom-grid.without-totals {
  grid-template-columns: 1fr;
}

.payment-conditions {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 0;
  padding: 18px 20px;
  color: #ffffff;
  border: 1px solid #111111;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.18), transparent 32%),
    #111111;
}

.payment-conditions h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  color: #ffffff;
}

.payment-conditions p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.payment-conditions .requirement-text {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.payment-icon {
  width: 68px;
  height: 78px;
  border: 3px solid #ffffff;
  border-radius: 5px;
  background: transparent;
}

.payment-icon::before {
  width: 26px;
  height: 26px;
  right: -15px;
  bottom: -10px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #111111;
}

.payment-icon::after {
  width: 34px;
  height: 30px;
  left: 14px;
  top: 16px;
  border-top: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  box-shadow: 0 13px 0 -10px #ffffff;
}

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

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

th,
td {
  padding: 6px 13px;
  border: 1px solid #d9dde2;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

td {
  white-space: pre-line;
}

th {
  color: #ffffff;
  background: #111111;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qty-column {
  width: 112px;
  text-align: center;
}

.price-column {
  width: 180px;
  text-align: right;
}

td.qty-column {
  color: var(--ink);
  font-weight: 700;
}

td.price-column {
  font-weight: 700;
}

.totals-box {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  border: 1px solid #111111;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.totals-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #f3f3f3, #ffffff 48%, #dcdcdc);
  border-bottom: 1px solid #cfd3d8;
}

.totals-box div:last-child {
  border-bottom: 0;
}

.totals-box strong {
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.totals-box .grand-total {
  color: #ffffff;
  background: #111111;
}

.totals-box .grand-total span {
  color: #ffffff;
}

.totals-box .grand-total strong {
  font-size: 28px;
}

.notes-section p {
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  border-left: 4px solid var(--accent);
  background: #fbfcfd;
}

.quote-footer {
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.quote-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.footer-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.footer-divider::before,
.footer-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c6c6c6;
}

.footer-divider::after {
  max-width: none;
}

.footer-divider {
  height: 14px;
}

.signature-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px !important;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.contact-row p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 31px;
  height: 31px;
  background: #111111;
}

.footer-icon-signature::before {
  width: 14px;
  height: 2px;
  left: 9px;
  top: 17px;
  background: #ffffff;
  transform: rotate(-28deg);
}

.footer-icon-signature::after {
  width: 10px;
  height: 10px;
  left: 10px;
  top: 8px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.footer-icon-location::before {
  width: 13px;
  height: 13px;
  left: 9px;
  top: 6px;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.footer-icon-phone::before {
  width: 12px;
  height: 12px;
  left: 8px;
  top: 8px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  border-radius: 0 0 0 8px;
  transform: rotate(-35deg);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 12px 16px;
  }

  .site-brand img {
    width: 132px;
  }

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
  }

  .batch-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .batch-editor-host > .app-shell {
    grid-template-columns: 1fr;
  }

  .batch-editor-host .control-panel {
    max-height: none;
  }

  .batch-modal-header {
    grid-template-columns: minmax(170px, auto) minmax(0, 1fr) 42px;
  }

  .batch-header-actions {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}

@media (max-width: 680px) {
  .login-card,
  .site-page-card {
    padding: 22px;
  }

  .site-page-card {
    width: calc(100% - 28px);
  }

  .site-page-card h1 {
    font-size: 34px;
  }

  .site-page-card p {
    font-size: 16px;
  }

  .page-logo {
    width: 150px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }

  .topbar .source-note {
    display: none;
  }

  .topbar-actions {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions > :last-child {
    grid-column: 1 / -1;
  }

  .topbar-discount-panel {
    position: fixed;
    top: 152px;
    left: 14px;
    width: calc(100vw - 28px);
    transform: none;
  }

  .app-shell {
    padding: 14px;
  }

  .two-columns,
  .quote-info-grid {
    grid-template-columns: 1fr;
  }

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

  .batch-dialog {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .batch-modal-header {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .batch-header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-close-button {
    grid-column: 2;
    grid-row: 1;
  }

  .batch-setup,
  .batch-workspace,
  .batch-toolbar {
    grid-template-columns: 1fr;
  }

  .batch-workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .batch-setup {
    margin: 16px;
    width: auto;
  }

  .batch-sidebar {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .batch-toolbar {
    position: static;
  }

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

  .quote-document {
    padding: 24px;
  }

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

  .quote-logo {
    justify-self: start;
    width: 140px;
  }

  .mounting-page-header {
    grid-template-columns: 1fr;
    margin: -24px -24px 0;
    padding: 26px 24px 22px;
  }

  .mounting-page-header h2 {
    font-size: 36px;
  }

  .mounting-option-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .mounting-page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  @page {
    size: 8.5in 13in;
    margin: 0.18in;
  }

  body {
    background: #ffffff;
  }

  .no-print {
    display: none !important;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .preview-panel {
    display: block;
  }

  .quote-document-set {
    display: block;
    width: 100%;
  }

  .quote-document {
    width: 100%;
    height: 12.62in;
    min-height: 12.62in;
    padding: 30px;
    border: 4px solid #111111;
    box-shadow: none;
    overflow: hidden;
  }

  .quote-page {
    break-after: page;
    page-break-after: always;
  }

  .quote-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .quote-section,
  .quote-info-grid,
  .totals-box,
  .payment-conditions {
    break-inside: avoid;
  }

  .quote-header h2 {
    font-size: 34px;
  }

  .quote-logo {
    width: 154px;
  }

  .quote-info-grid {
    gap: 16px;
    margin-bottom: 16px;
  }

  .info-icon {
    width: 36px;
    height: 36px;
  }

  .intro-message p,
  .payment-conditions p,
  .quote-footer p {
    font-size: 10.5px;
  }

  .service-detail-heading strong {
    font-size: 28px;
  }

  #selectedExtrasSection h3 {
    font-size: 24px;
  }

  th,
  td {
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.15;
  }

  th {
    font-size: 8.5px;
  }

  .qty-column {
    width: 82px;
  }

  .price-column {
    width: 138px;
  }

  .quote-bottom-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 14px;
  }

  .payment-conditions {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
  }

  .payment-conditions h3 {
    font-size: 18px;
  }

  .payment-icon {
    width: 48px;
    height: 58px;
  }

  .totals-box div {
    min-height: 34px;
    padding: 8px 18px;
  }

  .totals-box strong {
    font-size: 17px;
  }

  .totals-box .grand-total strong {
    font-size: 23px;
  }

  .quote-footer {
    margin-top: 18px;
  }
}

body.pdf-export {
  background: #ffffff;
}

body.manual-print-fit .quote-document {
  height: 12.62in;
  min-height: 12.62in;
  overflow: hidden;
}

body.pdf-export .quote-document-set {
  display: block;
  width: 100%;
}

body.pdf-export .quote-document {
  width: 100%;
  height: 12.62in;
  min-height: 12.62in;
  padding: 30px;
  border: 4px solid #111111;
  box-shadow: none;
}

body.pdf-export .quote-page {
  break-after: page;
  page-break-after: always;
}

body.pdf-export .quote-page:last-child {
  break-after: auto;
  page-break-after: auto;
}

body.pdf-export .mounting-page-header {
  margin: -30px -30px 4px;
  padding: 28px 30px 24px;
}

body.pdf-export .mounting-page-header h2 {
  font-size: 42px;
}

body.pdf-export .mounting-option {
  break-inside: avoid;
}

body.pdf-export .mounting-image {
  aspect-ratio: 16 / 8.2;
}

body.pdf-export .quote-header h2 {
  font-size: 34px;
}

body.pdf-export .quote-logo {
  width: 154px;
}

body.pdf-export .quote-info-grid {
  gap: 16px;
  margin-bottom: 16px;
}

body.pdf-export .info-icon {
  width: 36px;
  height: 36px;
}

body.pdf-export .intro-message p,
body.pdf-export .payment-conditions p,
body.pdf-export .quote-footer p {
  font-size: 10.5px;
}

body.pdf-export .service-detail-heading strong {
  font-size: 28px;
}

body.pdf-export #selectedExtrasSection h3 {
  font-size: 24px;
}

body.pdf-export th,
body.pdf-export td {
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.15;
}

body.pdf-export th {
  font-size: 8.5px;
}

body.pdf-export .qty-column {
  width: 82px;
}

body.pdf-export .price-column {
  width: 138px;
}

body.pdf-export .quote-bottom-grid {
  grid-template-columns: 1.12fr 0.88fr;
  gap: 14px;
}

body.pdf-export .payment-conditions {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
}

body.pdf-export .payment-conditions h3 {
  font-size: 18px;
}

body.pdf-export .payment-icon {
  width: 48px;
  height: 58px;
}

body.pdf-export .totals-box div {
  min-height: 34px;
  padding: 8px 18px;
}

body.pdf-export .totals-box strong {
  font-size: 17px;
}

body.pdf-export .totals-box .grand-total strong {
  font-size: 23px;
}

body.pdf-export .quote-footer {
  margin-top: 18px;
}

body.pdf-export .quote-section,
body.pdf-export .quote-info-grid,
body.pdf-export .totals-box,
body.pdf-export .payment-conditions {
  break-inside: avoid;
}
