.quote-studio-shell {
  max-width: 1440px;
  padding: 48px 4% 90px;
  margin: 0 auto;
  color: #23332f;
}
.quote-studio-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.quote-studio-heading h1 {
  margin: 10px 0;
  font-size: clamp(38px, 6vw, 72px);
}
.quote-studio-heading > div > p:last-child {
  max-width: 680px;
  color: #596864;
}
.quote-studio-link {
  grid-column: 1 / -1;
  justify-self: start;
  text-decoration: none;
}
#quote-studio-login {
  margin: 0 auto;
}
#quote-studio-app[hidden],
#quote-studio-login[hidden] {
  display: none;
}
.quote-studio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: #e8eee8;
  border: 1px solid #d5ded6;
  border-radius: 12px;
}
.quote-studio-toolbar p {
  margin: 0;
}
.quote-studio-toolbar [data-error="true"],
.quote-studio-note[data-error="true"] {
  color: #9c3025;
}
#quote-studio-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.quote-studio-card,
.quote-studio-summary {
  min-width: 0;
  padding: 24px;
  margin-bottom: 20px;
  background: #fffdf9;
  border: 1px solid #d9ded8;
  border-radius: 16px;
}
.quote-studio-card > .eyebrow {
  margin-bottom: 16px;
  color: #896643;
}
.quote-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quote-studio-shell label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.quote-studio-shell input:not([type="checkbox"]),
.quote-studio-shell select,
.quote-studio-shell textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: #23332f;
  background: #fff;
  border: 1px solid #bfcac3;
  border-radius: 7px;
  font: inherit;
}
.quote-studio-shell textarea {
  resize: vertical;
}
.quote-studio-help {
  margin: -4px 0 16px;
  color: #596864;
  font-size: 14px;
}
.quote-event-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.quote-event-choices label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #cbd4ce;
  border-radius: 9px;
  cursor: pointer;
}
.quote-event-choices input[type="checkbox"],
.quote-reviewed input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #994835;
}
.quote-event-choices label:has(input:checked) {
  background: #f5ebe6;
  border-color: #994835;
}
.quote-event-panel {
  padding: 18px;
  margin: 20px 0 0;
  border: 1px solid #d8ded8;
  border-radius: 11px;
}
.quote-event-panel legend {
  padding: 0 7px;
  font-size: 17px;
  font-weight: 700;
}
.quote-event-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quote-event-day-crew h4 {
  margin: 18px 0 10px;
}
.quote-crew-grid,
.quote-deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quote-crew-grid label,
.quote-deliverable-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 90px;
  align-items: center;
  padding: 10px 12px;
  background: #f1f4ef;
  border-radius: 8px;
}
.quote-crew-grid input,
.quote-deliverable-row input {
  text-align: right;
}
.quote-deliverable-row {
  margin: 0;
}
.quote-custom-items {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #d9ded8;
}
.quote-custom-items h3 {
  margin: 0 0 12px;
}
.quote-custom-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px 140px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.quote-custom-row button {
  min-height: 42px;
}
.quote-notes-label {
  margin-top: 18px;
}
.quote-studio-summary {
  position: sticky;
  top: 24px;
  border-top: 4px solid #994835;
}
.quote-studio-summary h2 {
  margin: 8px 0 14px;
}
.quote-line-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e1e4df;
  font-size: 12px;
}
.quote-line-summary-row span {
  overflow-wrap: anywhere;
}
.quote-line-summary-row strong {
  flex: 0 0 auto;
}
.quote-adjustments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.quote-totals {
  margin: 16px 0;
}
.quote-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e1e4df;
}
.quote-totals dd {
  margin: 0;
  text-align: right;
}
.quote-grand-total {
  font-weight: 700;
  font-size: 19px;
}
.quote-actions {
  display: grid;
  gap: 9px;
}
.quote-actions .button {
  width: 100%;
  margin: 0;
}
.quote-actions button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.quote-studio-note {
  margin: 14px 0 0;
  color: #596864;
  font-size: 12px;
}
.quote-settings {
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid #d9ded8;
}
.quote-settings summary {
  cursor: pointer;
  font-weight: 700;
}
.quote-settings > p {
  color: #596864;
  font-size: 12px;
}
.quote-rate-settings fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  margin: 14px 0;
  border: 1px solid #d9ded8;
  border-radius: 9px;
}
.quote-rate-settings legend {
  padding: 0 5px;
  font-weight: 700;
}
.quote-rate-settings label {
  font-size: 11px;
}
.quote-terms-label {
  margin-top: 14px;
}
.quote-reviewed {
  flex-direction: row !important;
  align-items: flex-start;
  margin: 14px 0;
}
.quote-print-dialog {
  width: min(940px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 18px;
  border: 0;
  background: #f4f0e8;
}
.quote-print-dialog::backdrop {
  background: #18201ddd;
}
.quote-print-actions {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 14px;
  background: #f4f0e8;
}
.quote-print-document {
  max-width: 794px;
  min-height: 1050px;
  padding: 48px;
  margin: 0 auto;
  color: #23332f;
  background: #fff;
  box-shadow: 0 5px 28px #17201c24;
  font-family: Arial, sans-serif;
}
.quote-print-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #994835;
}
.quote-print-brand {
  font: 700 28px Georgia, serif;
  letter-spacing: .1em;
}
.quote-print-brand span {
  display: block;
  margin-top: 5px;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .28em;
}
.quote-print-reference {
  display: grid;
  gap: 5px;
  text-align: right;
  font-size: 11px;
}
.quote-print-document > .eyebrow {
  margin: 28px 0 8px;
  color: #896643;
  font-size: 10px;
  letter-spacing: .14em;
}
.quote-print-document > h1 {
  margin: 0 0 22px;
  font: 400 42px/1.1 Georgia, serif;
}
.quote-print-document > h1 em {
  color: #994835;
}
.quote-print-client {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  background: #f4f2ec;
}
.quote-print-client div {
  display: grid;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .08em;
}
.quote-print-client strong {
  font-size: 13px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.quote-print-contact {
  margin: 12px 0;
  font-size: 11px;
}
.quote-print-document h2 {
  margin: 24px 0 10px;
  font: 700 16px Georgia, serif;
}
#print-scope p {
  margin: 5px 0;
  font-size: 11px;
}
.quote-print-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 10px;
}
.quote-print-table th,
.quote-print-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  overflow-wrap: anywhere;
}
.quote-print-table th:not(:first-child),
.quote-print-table td:not(:first-child) {
  text-align: right;
}
.quote-print-totals {
  width: min(330px, 100%);
  margin: 18px 0 0 auto;
  font-size: 11px;
}
.quote-print-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
}
.quote-print-grand {
  margin-top: 5px;
  border-top: 2px solid #23332f;
  font-size: 15px;
}
.quote-print-notes {
  margin-top: 20px;
  padding: 12px;
  background: #f4f2ec;
  font-size: 11px;
  white-space: pre-line;
}
.quote-print-terms {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
}
.quote-print-terms p {
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-line;
}
.quote-print-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  margin-top: 28px;
  border-top: 2px solid #994835;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.quote-print-footer span {
  font-weight: 400;
  letter-spacing: 0;
}
@media (max-width: 980px) {
  #quote-studio-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote-studio-summary {
    position: static;
  }
}
@media (max-width: 650px) {
  .quote-studio-shell {
    padding: 30px 16px 70px;
  }
  .quote-studio-heading {
    flex-direction: column;
  }
  .quote-studio-grid,
  .quote-event-details,
  .quote-crew-grid,
  .quote-deliverables,
  .quote-rate-settings fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote-studio-card,
  .quote-studio-summary {
    padding: 16px;
  }
  .quote-custom-row {
    grid-template-columns: minmax(0, 1fr) 80px 110px;
  }
  .quote-custom-row button {
    grid-column: 1 / -1;
  }
  .quote-print-document {
    min-height: 0;
    padding: 24px;
  }
  .quote-print-document > h1 {
    font-size: 32px;
  }
  .quote-print-client {
    grid-template-columns: 1fr;
  }
}
@media print {
  body:has(#quote-print-dialog[open]) > * {
    visibility: hidden !important;
  }
  #quote-print-dialog[open],
  #quote-print-dialog[open] * {
    visibility: visible !important;
  }
  #quote-print-dialog[open] {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .quote-print-actions {
    display: none !important;
  }
  .quote-print-document {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 12mm;
    box-shadow: none;
  }
  .quote-print-table tr,
  .quote-print-totals > div,
  .quote-print-client {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 10mm;
  }
}
