.estimate-page { max-width: 1500px; margin: 28px auto 0; }
.estimate-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:25px 28px; border:1px solid #d2e0d2; border-radius:18px; background:linear-gradient(135deg,#f8fcf5 0%,#edf5ea 100%); }
.estimate-intro h2 { margin:7px 0 8px; color:var(--forest); font-size:28px; letter-spacing:-.045em; }
.estimate-intro p { margin:0; color:#64806f; font-size:13px; }
.estimate-intro-meta { display:flex; align-items:center; gap:8px; color:#527060; font-size:11px; white-space:nowrap; }
.estimate-status-dot { width:9px; height:9px; border-radius:50%; background:#16a05a; box-shadow:0 0 0 4px rgba(22,160,90,.12); }
.estimate-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0; padding:7px; border:1px solid #d7e4d6; border-radius:14px; background:#eef5ec; }
.estimate-step-tab { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; padding:11px 14px; border:0; border-radius:10px; color:#607a69; background:transparent; text-align:left; cursor:pointer; }
.estimate-step-tab span { grid-row:1 / -1; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#557563; background:#fff; font-size:11px; font-weight:800; }
.estimate-step-tab strong { font-size:12px; color:inherit; }
.estimate-step-tab small { margin-top:2px; color:#8aa094; font-size:10px; }
.estimate-step-tab.is-active { color:#fff; background:var(--forest); box-shadow:0 5px 14px rgba(12,68,47,.16); }
.estimate-step-tab.is-active span { color:var(--forest); background:#cde8c9; }
.estimate-step-tab.is-active small { color:#c5dfc8; }
.estimate-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr); gap:18px; align-items:start; }
.estimate-step[hidden] { display:none; }
.estimate-card, .estimate-side-card { border:1px solid #d2e0d2; border-radius:16px; background:#fffdf8; box-shadow:0 12px 28px rgba(28,65,45,.045); }
.estimate-card { padding:24px; }
.estimate-card-head, .estimate-side-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.estimate-card-head { padding-bottom:18px; border-bottom:1px solid #e3ebdd; }
.estimate-card-head h3, .estimate-side-head h3 { margin:5px 0 5px; color:var(--forest); font-size:19px; letter-spacing:-.035em; }
.estimate-card-head p { margin:0; color:#6c8777; font-size:12px; }
.estimate-kicker { display:block; color:#6d9773; font-size:10px; font-weight:850; letter-spacing:.15em; }
.estimate-card-index { display:grid; place-items:center; width:31px; height:31px; border-radius:10px; color:#fff; background:var(--forest); font-size:11px; font-weight:850; }
.estimate-form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px 14px; padding-top:20px; }
.estimate-field { display:grid; gap:6px; color:#527060; font-size:10px; font-weight:800; letter-spacing:.02em; }
.estimate-field > span { color:#63806e; }
.estimate-field input, .estimate-field select, .estimate-field textarea, .estimate-line input, .estimate-line select { width:100%; box-sizing:border-box; min-height:38px; padding:9px 10px; border:1px solid #cbdccc; border-radius:8px; color:var(--forest); background:#fff; font:inherit; font-size:12px; font-weight:550; letter-spacing:0; outline:0; }
.estimate-field textarea { resize:vertical; min-height:110px; line-height:1.5; }
.estimate-field input:focus, .estimate-field select:focus, .estimate-field textarea:focus, .estimate-line input:focus, .estimate-line select:focus { border-color:#6d9773; box-shadow:0 0 0 3px rgba(109,151,115,.14); }
.field-span-2 { grid-column:span 2; }
.estimate-input-with-suffix { position:relative; }
.estimate-input-with-suffix input { padding-right:45px; }
.estimate-input-with-suffix em { position:absolute; top:50%; right:11px; transform:translateY(-50%); color:#769080; font-size:10px; font-style:normal; font-weight:800; }
.estimate-choice-group { display:flex; gap:7px; min-height:38px; }
.estimate-choice-group button { padding:0 15px; border:1px solid #cbdccc; border-radius:8px; color:#527060; background:#fff; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.estimate-choice-group button.is-selected { color:#fff; border-color:var(--forest); background:var(--forest); }
.estimate-step-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:15px; }
.estimate-step-actions .btn { width:auto; min-width:145px; }
.estimate-sidebar { display:grid; gap:14px; position:sticky; top:18px; }
.estimate-side-card { padding:18px; }
.estimate-side-head { align-items:center; padding-bottom:13px; border-bottom:1px solid #e3ebdd; }
.estimate-side-head h3 { margin-bottom:0; font-size:15px; }
.estimate-live-pill { padding:5px 9px; border-radius:999px; color:#157044; background:#dff1df; font-size:10px; font-weight:850; }
.estimate-cost-list { display:grid; gap:0; margin-top:7px; }
.estimate-cost-list > div, .estimate-total-row, .estimate-per-person { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #edf1eb; color:#5b7767; font-size:11px; }
.estimate-cost-list strong { color:#315d43; font-size:12px; }
.estimate-total-row { margin:0 -18px; padding:13px 18px 2px; border:0; color:var(--forest); font-weight:850; }
.estimate-total-row strong { color:#0a824b; font-size:18px; }
.estimate-margin-type { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.estimate-margin-type label { display:flex; align-items:center; gap:6px; color:#5d7868; font-size:11px; font-weight:700; }
.estimate-margin-type input { accent-color:#08733d; }
.estimate-rate-card { margin-top:13px; padding:14px; border-radius:11px; color:#dff0df; background:var(--forest); }
.estimate-rate-card span { display:block; font-size:10px; font-weight:750; }
.estimate-rate-card strong { display:block; margin-top:4px; color:#fff; font-size:24px; letter-spacing:-.04em; }
.estimate-per-person { margin-top:9px; padding:10px 0 0; border-bottom:0; }
.estimate-per-person span { display:grid; gap:3px; color:#769080; font-size:10px; }
.estimate-per-person b { color:var(--forest); font-size:12px; }
.estimate-tour-card dl { display:grid; gap:0; margin:10px 0 0; }
.estimate-tour-card dl > div { display:flex; justify-content:space-between; gap:15px; padding:8px 0; border-bottom:1px solid #edf1eb; }
.estimate-tour-card dl > div:last-child { border-bottom:0; }
.estimate-tour-card dt { color:#7b9283; font-size:10px; }
.estimate-tour-card dd { margin:0; color:var(--forest); font-size:11px; font-weight:750; text-align:right; }
.estimate-mini-image { display:flex; align-items:center; gap:9px; margin-top:14px; padding:11px; border-radius:10px; background:linear-gradient(135deg,#e4f0e4,#f7f1e6); }
.estimate-mini-image > span { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:#fff; background:#1a8652; }
.estimate-mini-image b, .estimate-mini-image small { display:block; }
.estimate-mini-image b { color:var(--forest); font-size:11px; }
.estimate-mini-image small { margin-top:3px; color:#668273; font-size:10px; }
.estimate-section-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:20px; }
.estimate-section-title > div { display:grid; grid-template-columns:auto 1fr; column-gap:8px; align-items:center; }
.estimate-section-icon { grid-row:1 / span 2; display:grid; place-items:center; width:25px; height:25px; border-radius:8px; color:#fff; background:#11834d; font-size:12px; }
.estimate-section-title strong { color:var(--forest); font-size:13px; }
.estimate-section-title small { color:#789182; font-size:10px; }
.estimate-line-head { display:grid; gap:8px; align-items:center; margin-top:14px; padding:0 42px 7px 4px; color:#7a9081; font-size:9px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.transport-head { grid-template-columns:minmax(160px,1.6fr) .45fr 1fr .7fr .8fr 18px; }
.hotel-head { grid-template-columns:minmax(145px,1.5fr) .75fr .5fr .6fr .8fr .8fr 18px; }
.meal-head { grid-template-columns:minmax(220px,1fr) 18px; }
.other-head { grid-template-columns:minmax(180px,1.5fr) .85fr 18px; }
.estimate-lines { display:grid; gap:7px; }
.estimate-line { display:grid; gap:8px; align-items:center; padding:7px 0; border-top:1px solid #edf1eb; }
.estimate-line-transport { grid-template-columns:minmax(160px,1.6fr) .45fr 1fr .7fr .8fr 18px; }
.estimate-line-hotel { grid-template-columns:minmax(145px,1.5fr) .75fr .5fr .6fr .8fr .8fr 18px; }
.estimate-line-meal { grid-template-columns:minmax(220px,1fr) 18px; }
.estimate-line-other { grid-template-columns:minmax(220px,1fr) 18px; }
.estimate-line select, .estimate-line input { min-height:34px; padding:7px 8px; font-size:10px; }
.estimate-line-total { color:#08733d; font-size:11px; text-align:right; white-space:nowrap; }
.estimate-line-total.is-tbc { color:#7b6b2a; font-size:10px; }
.estimate-line input[readonly] { background:#f1f7f0; color:#2f6948; cursor:not-allowed; }
.estimate-remove-line { width:18px; height:24px; padding:0; border:0; color:#a06454; background:transparent; font-size:17px; cursor:pointer; }
.estimate-mobile-label { display:none; }
.estimate-custom-line { margin-top:5px; }
.estimate-subtotal { display:flex; justify-content:flex-end; gap:10px; padding-top:10px; color:#729080; font-size:10px; font-weight:750; }
.estimate-subtotal strong { color:#08733d; font-size:12px; }
.estimate-expense-section + .estimate-expense-section { border-top:1px solid #e6ede4; }
.estimate-quote-preview { margin-top:20px; overflow:hidden; border:1px solid #cfe0d0; border-radius:14px; background:#f5faf3; }
.estimate-quote-preview-top { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; padding:20px; background:linear-gradient(120deg,#0e553e,#17764e); color:#fff; }
.estimate-quote-preview-top .estimate-kicker { color:#b9dbb7; }
.estimate-quote-preview-top h4 { margin:7px 0 4px; color:#fff; font-size:20px; }
.estimate-quote-preview-top p { margin:0; color:#d5ead6; font-size:11px; }
.estimate-quote-preview-top > strong { color:#ffe18d; font-size:20px; white-space:nowrap; }
.estimate-quote-total, .estimate-quote-meta { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 20px; }
.estimate-quote-total { color:#50705e; font-size:12px; font-weight:750; }
.estimate-quote-total strong { color:#0b7c47; font-size:20px; }
.estimate-quote-meta { border-top:1px solid #dce9dc; color:#779080; font-size:10px; }
.estimate-quote-meta b { margin-left:4px; color:var(--forest); }
.estimate-notes { margin-top:17px; }
.estimate-terms { display:flex; align-items:flex-start; gap:9px; margin-top:16px; padding:12px; border:1px dashed #bfd6c1; border-radius:9px; color:#6a8373; background:#fbfdf9; font-size:10px; line-height:1.45; }
.estimate-terms > span { color:#159053; font-size:16px; }
.estimate-terms p { margin:0; }
.estimate-actions-card { padding-bottom:16px; }
.estimate-action-primary, .estimate-action-secondary { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:38px; margin-top:10px; padding:0 11px; border-radius:8px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.estimate-action-primary { border:1px solid var(--forest); color:#fff; background:var(--forest); }
.estimate-action-secondary { border:1px solid #cbdccc; color:var(--forest); background:#fff; }
.estimate-action-primary:hover, .estimate-action-secondary:hover { transform:translateY(-1px); box-shadow:0 5px 12px rgba(12,68,47,.1); }
.estimate-action-row { display:none; }
.estimate-action-note { min-height:15px; margin:10px 0 0; color:#278154; font-size:10px; text-align:center; }
#estimate-print-sheet { display:none; }
@media (max-width: 1100px) { .estimate-layout { grid-template-columns:1fr; } .estimate-sidebar { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); } .estimate-actions-card { grid-column:1 / -1; } }
@media (max-width: 780px) { .estimate-intro { display:block; padding:20px; } .estimate-intro-meta { margin-top:13px; } .estimate-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .estimate-sidebar { grid-template-columns:1fr; } .estimate-actions-card { grid-column:auto; } .estimate-line-head { display:none; } .estimate-line { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:13px 0; } .estimate-line > div:first-child, .estimate-line-total { grid-column:1 / -1; text-align:left; } .estimate-line-total { padding-top:3px; } .estimate-remove-line { position:absolute; right:4px; margin-top:-150px; } .estimate-line { position:relative; } .estimate-mobile-label { display:block; margin-bottom:4px; color:#789182; font-size:9px; font-weight:800; text-transform:uppercase; } }
@media (max-width: 520px) { .estimate-page { margin-top:16px; } .estimate-steps { grid-template-columns:1fr; } .estimate-step-tab { grid-template-columns:auto 1fr; } .estimate-form-grid { grid-template-columns:1fr; } .field-span-2 { grid-column:auto; } .estimate-card { padding:16px; } .estimate-card-head h3 { font-size:17px; } .estimate-quote-preview-top { display:block; } .estimate-quote-preview-top > strong { display:block; margin-top:13px; } .estimate-quote-meta { display:grid; grid-template-columns:repeat(3,1fr); } .estimate-step-actions { justify-content:stretch; } .estimate-step-actions .btn { flex:1; min-width:0; } }
@media (max-width: 780px) { .estimate-line-meal, .estimate-line-other { padding-right:30px; } .estimate-line-meal .estimate-remove-line, .estimate-line-other .estimate-remove-line { top:16px; margin-top:0; } }
@media print { body.estimate-printing { background:#fff !important; } body.estimate-printing > *:not(#estimate-print-sheet) { display:none !important; } body.estimate-printing #estimate-print-sheet { display:block; max-width:900px; margin:0 auto; padding:28px; color:#173f2d; font:14px Arial,sans-serif; } .print-brand { display:flex; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:5px solid #0a4e37; } .print-eyebrow { display:block; color:#2b7c53; font-size:11px; font-weight:bold; letter-spacing:.16em; } .print-brand h1 { margin:7px 0; font-size:30px; } .print-brand p { margin:0; color:#658071; } .print-brand > strong { color:#0b7c47; } .print-trip { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin:20px 0; padding:17px; border:1px solid #d7e5d8; border-radius:10px; } .print-trip span,.print-costs h2,.print-note span { display:block; color:#63806e; font-size:10px; font-weight:bold; letter-spacing:.12em; text-transform:uppercase; } .print-trip b,.print-trip small { display:block; margin-top:7px; } .print-trip small { color:#678171; } .print-costs { padding:17px; border:1px solid #d7e5d8; border-radius:10px; } .print-costs h2 { margin:0 0 8px; } .print-costs > div { display:flex; justify-content:space-between; gap:15px; padding:10px 0; border-bottom:1px solid #edf1ed; } .print-costs .print-total { margin-top:4px; padding-top:14px; color:#08733d; font-size:18px; font-weight:bold; } .print-note { margin-top:20px; padding:14px; background:#f0f7ef; border-radius:8px; } .print-note p { margin:7px 0 0; } .print-footer { display:flex; justify-content:space-between; gap:18px; margin-top:34px; padding-top:13px; border-top:4px solid #0a4e37; color:#577565; } .print-footer b { color:#173f2d; } }
@media print {
  body.estimate-printing .admin-shell { display:block !important; background:#fff !important; }
  body.estimate-printing .admin-sidebar,
  body.estimate-printing .admin-topbar,
  body.estimate-printing .admin-content > :not(#estimate-print-sheet) { display:none !important; }
  body.estimate-printing .admin-content { display:block !important; padding:0 !important; }
  body.estimate-printing #estimate-print-sheet { display:block !important; }
}

/* Single-page estimate maker layout. */
.estimate-page { max-width:1500px; margin:24px auto 48px; }
.estimate-steps { display:none; }
.estimate-layout { grid-template-columns:minmax(0,1.7fr) minmax(310px,.75fr); gap:20px; }
.estimate-main { display:grid; gap:18px; min-width:0; }
.estimate-step { display:block; min-width:0; }
.estimate-step + .estimate-step { margin-top:0; }
.estimate-step[hidden] { display:block !important; }
.estimate-step-actions { display:none; }
.estimate-card { padding:22px; }
.estimate-expense-section:first-child .estimate-section-title { margin-top:0; }
.estimate-sidebar { gap:14px; }
.estimate-sidebar .estimate-side-card { box-shadow:0 14px 30px rgba(28,65,45,.07); }
@media (max-width:1100px) {
  .estimate-layout { grid-template-columns:1fr; }
  .estimate-sidebar { position:static; }
}
@media (max-width:780px) {
  .estimate-page { margin:16px 0 32px; }
  .estimate-card { padding:17px; }
  .estimate-intro { border-radius:14px; }
}
