@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #dde1d9;
  --paper: #ffffff;
  --cream: #eaece6;
  --line: #c9cdc4;
  --line-strong: #a8aca2;
  --ink: #1f1f1f;
  --ink-soft: #4a4a4a;
  --muted: #7a7770;
  --teal: #2d3c3d;
  --teal-soft: #3f5354;
  --teal-line: #4d6263;
  --green: #5d8a4d;
  --green-dark: #466b39;
  --green-soft: #e1ecdc;
  --warn: #b88a2c;
  --error: #b04434;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font: 16px/1.65 var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .shell { flex: 1 0 auto; padding-bottom: 60px; }
body > .foot-strip { flex-shrink: 0; margin-top: auto; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; color: var(--green); margin: 0; }
h1 { font-size: 44px; line-height: 1.1; }
h2 { font-size: 30px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; color: var(--ink); }
h4 { font-size: 17px; line-height: 1.3; color: var(--ink); font-weight: 600; }

.phonebar {
  background: var(--teal);
  color: #cfdada;
  padding: 12px 32px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
}
.phonebar a { color: #ffffff; font-weight: 500; }
.phonebar a:hover { color: #ffffff; text-decoration: underline; }
.phonebar .icon { color: var(--green); margin-right: 6px; }
.phonebar .left { margin-right: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #9eaeae; }
.phonebar .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; display: inline-block; }

.headerbar {
  background: var(--paper);
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.headerbar .brand {
  display: flex; align-items: center; gap: 14px;
}
.headerbar .logo {
  width: 70px; height: 70px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.headerbar .brand-name {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  color: var(--ink); line-height: 1.1;
}
.headerbar .brand-name span { color: var(--green); }
.headerbar .brand-tag {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}
.headerbar .nav {
  display: flex; gap: 6px; align-items: center;
}
.headerbar .nav a {
  color: var(--ink-soft);
  font-size: 15px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 2px;
}
.headerbar .nav a:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.headerbar .nav a.active { color: var(--green); }
.headerbar .nav .sep { color: var(--line); }

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.template-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.template-card:hover { border-color: var(--green); }
.template-card.active { border-color: var(--green); border-width: 2px; padding: 21px; background: var(--green-soft); }
.template-card.add {
  border-style: dashed;
  border-color: var(--line-strong);
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--green);
  text-decoration: none;
  min-height: 160px;
}
.template-card.add:hover { background: var(--green-soft); border-color: var(--green); text-decoration: none; }
.template-card.add .plus {
  font-family: var(--serif); font-size: 38px; line-height: 1;
  margin-bottom: 6px;
}
.template-card .title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px; line-height: 1.2;
}
.template-card .meta {
  font-size: 14px; color: var(--muted);
  margin-bottom: 18px;
}
.template-card .meta strong { color: var(--ink-soft); font-weight: 500; }
.template-card .actions {
  margin-top: auto;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.template-card .actions a {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink-soft);
  text-decoration: none;
}
.template-card .actions a.primary {
  background: var(--green); border-color: var(--green); color: #fff;
}
.template-card .actions a:hover {
  border-color: var(--ink); color: var(--ink);
  text-decoration: none;
}
.template-card .actions a.primary:hover {
  background: var(--green-dark); border-color: var(--green-dark); color: #fff;
}

.combobox { position: relative; }
.combobox-input { padding-right: 36px; cursor: pointer; }
.combobox-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  font-size: 18px; color: var(--muted);
  width: 26px; height: 26px; border-radius: 3px;
  display: none;
}
.combobox-clear:hover { background: var(--cream); color: var(--ink); }
.combobox.has-value .combobox-clear { display: inline-flex; align-items: center; justify-content: center; }
.combobox-list {
  position: absolute; top: calc(100% - 1px); left: 0; right: 0;
  background: var(--paper);
  border: 1.5px solid var(--green);
  border-radius: 0 0 3px 3px;
  max-height: 280px; overflow-y: auto;
  z-index: 220;
  box-shadow: 0 12px 28px rgba(31,31,31,0.12);
}
.combobox-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 11px 14px;
  cursor: pointer;
  font: 400 14px var(--sans);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.combobox-item:last-child { border-bottom: 0; }
.combobox-item:hover, .combobox-item.focus { background: var(--green-soft); color: var(--green-dark); }
.combobox-item .small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.combobox-empty {
  padding: 18px 14px; text-align: center; color: var(--muted); font-size: 13px;
}

.search-input {
  width: 260px;
  padding: 9px 14px 9px 36px;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat 12px center;
}
.search-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); outline: 0; }

.shell { max-width: 1380px; margin: 0 auto; padding: 0 32px; }

.hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: end;
}
.hero h1 { margin-bottom: 8px; }
.hero .lead {
  color: var(--ink-soft); font-size: 16px; line-height: 1.55;
  max-width: 540px;
}
.hero .actions {
  text-align: right;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font: 500 15px/1.2 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-teal { background: var(--teal-soft); border-color: var(--teal-soft); color: #fff; }
.btn-teal:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-ghost { border-color: transparent; padding: 8px 14px; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 11px 16px; font-size: 15px; }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.summary-strip .item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  position: relative;
  transition: border-color .15s, transform .15s;
}
.summary-strip .item::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--line-strong);
  border-radius: 4px 0 0 4px;
}
.summary-strip .item.utkast::before { background: var(--warn); }
.summary-strip .item.accepterad::before { background: var(--green); }
.summary-strip .item .lab {
  font-size: 14px; color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.summary-strip .item .val {
  font-family: var(--serif); font-size: 38px; font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.summary-strip .item .val.green { color: var(--green); }

.surface {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 24px 12px;
}
.surface + .surface { margin-top: 18px; }
.surface .section-head { padding-top: 16px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 24px; }
.section-head .filters { display: flex; gap: 4px; align-items: center; font-size: 15px; }
.section-head .filters a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head .filters a:hover { background: var(--cream); color: var(--ink); }
.section-head .filters a.active { background: var(--ink); color: #fff; }
.section-head .filters a .ct {
  font-size: 12px;
  background: var(--cream);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.section-head .filters a.active .ct { background: rgba(255,255,255,0.18); color: #fff; }
.section-head .filters .sep { color: var(--line); }

table.list {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}
table.list thead th {
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 12px 10px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}
.surface table.list thead th:first-child,
.surface table.list tbody td:first-child { padding-left: 4px; }
.surface table.list thead th:last-child,
.surface table.list tbody td:last-child { padding-right: 4px; }
.surface table.list tbody tr:last-child td { border-bottom: 0; }
table.list thead th.num { text-align: right; }
table.list tbody td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.list tbody tr:hover td { background: var(--cream); }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list .quote-id { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.list td.nowrap { white-space: nowrap; }
table.list .row-actions { white-space: nowrap; text-align: right; }
table.list .row-actions a { margin-left: 12px; font-size: 14px; }
table.list .row-actions form + a { margin-left: 12px; }
@media (max-width: 1100px) {
  table.list .row-actions { white-space: normal; }
  table.list .row-actions a, table.list .row-actions form { display: inline-block; margin: 2px 4px; }
}

.status {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 3px;
  background: #fbf3e0;
  color: var(--warn);
  white-space: nowrap;
}
.status.skickad { background: #e6ecec; color: var(--teal-soft); }
.status.accepterad { background: var(--green-soft); color: var(--green-dark); }
.status.avbruten { background: #f5e3df; color: var(--error); }
.status.arkiverad { background: var(--cream); color: var(--muted); }

.foot-strip {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 24px 32px;
  font-size: 13px;
  color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.foot-strip a { color: var(--muted); }

.login-body {
  background: var(--cream);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login-frame {
  background: var(--paper);
  width: 100%; max-width: 420px;
  padding: 44px 44px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.login-mast { text-align: center; margin-bottom: 32px; }
.login-mast .logo {
  width: 90px; height: 90px;
  display: block;
  margin: 0 auto 18px;
  object-fit: contain;
}
.login-mast h1 {
  font-size: 30px; color: var(--ink); margin-bottom: 4px;
}
.login-mast .sub {
  font-size: 14px; color: var(--muted);
}

.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label-text {
  font-size: 13px;
  color: var(--ink-soft);
}
input[type=text], input[type=password], input[type=number], input[type=email],
input[type=tel], input[type=date], input[type=time], select, textarea {
  font: 400 15px/1.4 var(--sans);
  padding: 11px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  width: 100%;
  font-feature-settings: 'tnum' 1;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.btn-block {
  width: 100%; margin-top: 8px;
  background: var(--green); border: 0; color: #fff;
  padding: 13px;
  font: 500 15px var(--sans);
  border-radius: 3px;
  cursor: pointer;
}
.btn-block:hover { background: var(--green-dark); }

.login-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px; color: var(--muted);
}

.notice {
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  border-radius: 2px;
}
.notice.warn {
  background: #fbf3e0;
  border-color: var(--warn);
}

.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 32px 0 0;
}
.tab {
  padding: 14px 24px 12px;
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--green); border-bottom-color: var(--green); }
.tab .ct {
  color: var(--muted);
  margin-left: 6px;
  font-weight: 500;
  font-size: 14px;
  background: var(--cream);
  padding: 1px 8px;
  border-radius: 999px;
}
.tab.active .ct { background: var(--green-soft); color: var(--green-dark); }

.metabar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 0;
}
.metabar .item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 22px;
  position: relative;
}
.metabar .item.utkast::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--warn);
  border-radius: 4px 0 0 4px;
}
.metabar .item .k {
  font-size: 14px; color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.metabar .item .v {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.metabar .item .v.green { color: var(--green); }

.split-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 20px;
}
@media (max-width: 980px) { .split-2 { grid-template-columns: 1fr; } }

.summary-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px;
}
.summary-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.summary-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.summary-table tr.subtotal td {
  font-weight: 600;
  border-top: 1.5px solid var(--ink-soft);
  padding-top: 14px;
}
.summary-table tr.indent td:first-child {
  padding-left: 16px; color: var(--muted); font-size: 13px;
  font-style: italic;
}
.summary-table tr.indent td { border-bottom: 0; padding-top: 2px; }
.summary-table tr.total td {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--green);
  border-bottom: 0;
  padding-top: 18px;
  padding-bottom: 4px;
}
.summary-table .label-cell { color: var(--ink-soft); }

.surface .surface-foot {
  margin: 0 -24px -12px;
  padding: 14px 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  font-size: 13px;
  color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.surface .surface-foot strong { color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 18px; }

.summary-card-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 14px;
}
.summary-card-head h3 { margin: 0; font-size: 20px; font-family: var(--serif); }
.summary-card-head .badge {
  font-size: 12px; padding: 4px 10px; border-radius: 3px;
  background: var(--cream); color: var(--muted);
}
.summary-card-head .badge.kund { background: var(--green-soft); color: var(--green-dark); }

.empty-card {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  padding: 36px 28px;
  border-radius: 4px;
  text-align: center;
}
.empty-card h3 { font-family: var(--serif); color: var(--ink); margin-bottom: 6px; }
.empty-card p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.modal-back {
  position: fixed; inset: 0;
  background: rgba(31, 31, 31, 0.45);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 60px 20px 40px;
  z-index: 200;
  overflow-y: auto;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--paper);
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(31,31,31,0.25);
  border: 1px solid var(--line);
  animation: pop .15s ease-out;
}
.modal.wide { max-width: 880px; }
.modal-body { overflow-y: auto; flex: 1 1 auto; }
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.modal-tab {
  background: transparent; border: 0;
  padding: 14px 22px;
  font: 500 14px var(--sans);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.modal-tab:hover { color: var(--ink); }
.modal-tab.active { color: var(--green); border-bottom-color: var(--green); background: var(--paper); }
.modal-panel { display: none; padding: 22px 26px; }
.modal-panel.active { display: block; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--green);
  font-weight: 500;
}
.modal-head .sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.modal-close {
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--cream); color: var(--ink); }
.modal-body { padding: 22px 26px; }
.modal-body .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
}
.modal-body .grid .full { grid-column: 1 / -1; }
.modal-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0 18px;
}
.modal-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 12px;
}
.modal-foot {
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  border-radius: 0 0 4px 4px;
  display: flex; justify-content: flex-end; gap: 10px;
  align-items: center;
}
.modal-foot .left {
  margin-right: auto;
}
.modal .live-summary {
  background: var(--cream);
  border-radius: 3px;
  padding: 14px 16px;
  margin-top: 4px;
}
.modal .live-summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modal .live-summary td { padding: 4px 0; }
.modal .live-summary td.num { text-align: right; font-variant-numeric: tabular-nums; }
.modal .live-summary tr.total td {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  font-size: 18px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 6px;
  font-size: 14px;
}
.checkbox-row input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.print-page {
  background: white;
  width: 210mm;
  min-height: 297mm;
  margin: 28px auto;
  padding: 26mm 24mm 22mm;
  box-shadow: 0 12px 50px rgba(0,0,0,0.12);
  position: relative;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.print-letterhead {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px; margin-bottom: 28px;
  border-bottom: 2px solid var(--green);
}
.print-letterhead .logo {
  width: 110px; height: 110px;
  flex-shrink: 0;
  object-fit: contain;
}
.print-letterhead .right { text-align: right; }
.print-letterhead .right h1 {
  font-size: 38px; color: var(--green); margin: 0; line-height: 1;
}
.print-letterhead .right .meta {
  margin-top: 10px; font-size: 13px; color: var(--ink-soft);
  line-height: 1.6;
}
.print-letterhead .right .meta strong { color: var(--ink); }

.print-recipient {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  margin-bottom: 28px;
}
.print-recipient h4 { color: var(--green); margin-bottom: 6px; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.print-recipient address { font-style: normal; line-height: 1.55; }
.print-recipient strong { color: var(--ink); }

.print-section { margin-bottom: 26px; }
.print-section h2 { font-size: 22px; color: var(--green); margin: 0 0 12px; }
.print-section ul.simple {
  list-style: none; padding: 0; margin: 0;
}
.print-section ul.simple li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.print-section ul.simple li:last-child { border-bottom: 0; }

.cost-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 20px 24px;
  border-radius: 3px;
}
.cost-card .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.cost-card .row:last-of-type { border-bottom: 0; }
.cost-card .row.total {
  font-family: var(--serif); font-weight: 600; font-size: 26px;
  color: var(--green);
  margin-top: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--green);
}

.fineprint {
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.6; color: var(--ink-soft);
}
.fineprint p { margin: 0 0 6px; }

.signatures {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.sig-line { border-bottom: 1.5px solid var(--ink); height: 50px; }
.sig-lab { font-size: 12px; color: var(--muted); margin-top: 6px; }

.print-foot {
  position: absolute; left: 24mm; right: 24mm; bottom: 14mm;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  padding-top: 10px; border-top: 1px solid var(--line);
}

.draft-stamp {
  position: absolute; top: 26mm; right: 24mm;
  border: 2px solid var(--warn); color: var(--warn);
  padding: 6px 14px; border-radius: 2px;
  font-family: var(--serif);
  font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.85);
  transform: rotate(-4deg);
}

.print-toolbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--teal); color: #fff;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.print-toolbar a, .print-toolbar button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 14px; border-radius: 2px;
  font: 500 14px var(--sans);
  cursor: pointer; text-decoration: none;
}
.print-toolbar .btn-filled { background: var(--green); border-color: var(--green); }
.print-toolbar .btn-filled:hover { background: var(--green-dark); }

@media print {
  body { background: white; }
  .print-toolbar, .draft-stamp { display: none; }
  .print-page { box-shadow: none; margin: 0; width: auto; min-height: auto; padding: 18mm 16mm; }
  @page { size: A4; margin: 0; }
}
