/* ================================================================
   PUBLIC — Catering Quotation Request Form
   ================================================================ */

.quotation-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}

.quotation-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.quotation-head .section-eyebrow {
    display: block;
    margin-bottom: 10px;
}

.quotation-head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.12;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.quotation-head p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.65;
}

/* ── Error banner ─────────────────────────────────────────── */
.q-errors {
    border-left: 3px solid #ef4444;
    background: #fef2f2;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 32px;
    color: #991b1b;
    font-size: 13.5px;
}

.q-errors strong { display: block; margin-bottom: 6px; font-size: 13px; }
.q-errors ul { margin: 0; padding-left: 18px; line-height: 1.7; }

/* ── Two-column layout: form + sticky estimate ───────────────── */
.quotation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}

.quotation-main {
    min-width: 0;
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 32px;
}

/* ── Sections (flat, numbered — no boxed cards) ──────────────── */
.q-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.quotation-main .q-section:first-child { padding-top: 32px; }
.quotation-main .q-section:last-of-type { border-bottom: none; padding-bottom: 32px; }

.q-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
}

.q-step {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light);
    opacity: 0.6;
    flex-shrink: 0;
}

.q-section-head h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.q-section-head .q-optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 2px;
}

.q-section-sub {
    font-size: 12.5px;
    color: var(--text-light);
    margin: -14px 0 18px;
    line-height: 1.55;
}

/* ── Fields ───────────────────────────────────────────────── */
.q-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

.q-grid-full { grid-column: 1 / -1; }

.q-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.q-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.q-field label .req { color: #ef4444; font-weight: 600; }

.q-field input:not([type="checkbox"]):not([type="radio"]),
.q-field select,
.q-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    background: #fafaf8;
    transition: border-color .15s, background .15s;
    outline: none;
}

.q-field select { padding: 10px 30px 10px 14px; }

.q-field input:not([type="checkbox"]):not([type="radio"]):focus,
.q-field select:focus,
.q-field textarea:focus {
    border-color: var(--green);
    background: #fff;
}

.q-field input:not([type="checkbox"]):not([type="radio"])[readonly] {
    color: var(--text-light);
    background: #f3f4f6;
}

.q-field textarea {
    resize: vertical;
    min-height: 80px;
}

.q-field .q-hint {
    font-size: 11.5px;
    color: var(--text-light);
}

.q-field .q-error {
    font-size: 11.5px;
    color: #ef4444;
}

/* ── Choose a set: selected display + browse button ─────────── */
.set-selected-display { margin-bottom: 12px; }

.set-selected-none {
    font-size: 13.5px;
    color: var(--text-light);
    padding: 10px 0;
}

.set-selected-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--green);
    border-radius: 10px;
    background: var(--green-light, rgba(76,175,130,.06));
    position: relative;
}

.set-selected-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-selected-img img { width: 100%; height: 100%; object-fit: cover; }
.set-selected-img-placeholder svg { width: 24px; height: 24px; fill: var(--text-light); opacity: .4; }

.set-selected-info { flex: 1; min-width: 0; }

.set-selected-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.set-selected-price { font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.set-selected-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.set-selected-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    line-height: 0;
    opacity: .5;
    transition: opacity .15s;
}
.set-selected-clear:hover { opacity: 1; }
.set-selected-clear svg { width: 16px; height: 16px; fill: var(--text); }

.btn-browse-sets {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.btn-browse-sets:hover { border-color: var(--green); background: var(--green-light, rgba(76,175,130,.05)); }
.btn-browse-sets svg { width: 16px; height: 16px; fill: var(--text); }

/* ── Set picker modal ────────────────────────────────────────── */
.set-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.set-modal-overlay.open { display: flex; }

.set-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.set-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
    flex-shrink: 0;
}
.set-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }

.set-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    opacity: .5;
    transition: opacity .15s;
}
.set-modal-close:hover { opacity: 1; }
.set-modal-close svg { width: 20px; height: 20px; fill: var(--text); }

.set-modal-search { padding: 16px 24px 12px; flex-shrink: 0; }
.set-modal-search input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--font-body);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}
.set-modal-search input:focus { border-color: var(--green); }

.set-modal-body {
    overflow-y: auto;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Set cards inside modal ──────────────────────────────────── */
.set-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.set-card:hover { border-color: var(--green); background: var(--green-light, rgba(76,175,130,.04)); }
.set-card.selected { border-color: var(--green); background: var(--green-light, rgba(76,175,130,.07)); }
.set-card-none { align-items: center; background: #fafaf8; }

.set-card-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0ee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.set-card-img img { width: 100%; height: 100%; object-fit: cover; }
.set-card-img-placeholder svg { width: 28px; height: 28px; fill: var(--text-light); opacity: .35; }

.set-card-body { flex: 1; min-width: 0; }
.set-card-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.set-card-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.5; margin-bottom: 6px; }
.set-card-price { font-size: 12.5px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.set-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.set-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.set-card.selected .set-card-check { display: flex; }
.set-card-check svg { width: 13px; height: 13px; fill: #fff; }

.set-option-tag {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(45,106,79,.08);
    color: var(--green-dark, var(--green));
    font-weight: 500;
}

/* ── Add-ons: scrollable container ───────────────────────────── */
.addon-list-scroll {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 4px;
}
.addon-list-scroll .addon-list div.addon-row:last-child { border-bottom: none; }

/* ── Add-ons: simple checkbox rows ──────────────────────────── */
.addon-list { display: flex; flex-direction: column; }

.addon-row {
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: default;
    transition: background .15s;
}

.addon-list div.addon-row:last-child { border-bottom: none; }

.addon-row:hover { background: var(--accent-bg, rgba(76,175,130,.05)); }

.addon-row-left { display: flex; align-items: center; gap: 14px; }

.addon-row-body h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.addon-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.addon-row-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}

.addon-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Add-on pax stepper ──────────────────────────────────── */
.addon-pax-control {
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeInUp .18s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.addon-pax-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface, #fff);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}
.addon-pax-btn:hover {
    background: var(--accent-bg, rgba(76,175,130,.08));
    border-color: var(--green);
    color: var(--green);
}

.addon-pax-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 4px;
    background: var(--surface, #fff);
    color: var(--text);
    cursor: text;
    -moz-appearance: textfield;
}
.addon-pax-input::-webkit-inner-spin-button,
.addon-pax-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.addon-pax-label {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}


/* ── Submit ───────────────────────────────────────────────── */
.q-submit-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.q-submit-row button,
.summary-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.q-submit-row button:hover,
.summary-submit:hover { background: var(--green-dark, var(--green)); }

.q-submit-row button svg,
.summary-submit svg { width: 16px; height: 16px; fill: #fff; }

/* Only one submit control is needed — the sticky summary owns it on
   desktop; a plain full-width one appears under the form on mobile. */
.q-submit-row { display: none; }

/* ── Sticky estimate sidebar (signature element) ─────────────── */
.quotation-summary { position: relative; }

.summary-sticky {
    position: sticky;
    top: 96px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    background: var(--surface, #fff);
}

.summary-sticky h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 16px;
}

.summary-placeholder {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    padding: 6px 0 18px;
}

.summary-rows { display: none; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.summary-row .s-label { color: var(--text-light); }
.summary-row .s-note { font-size: 11px; color: var(--text-light); display: block; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 18px;
}

.summary-total .s-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
}

.summary-total .s-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--green);
    font-family: var(--font-display);
}

.summary-foot {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 12px;
    text-align: center;
}

@media(max-width: 900px) {
    .quotation-layout { grid-template-columns: 1fr; gap: 8px; }
    .quotation-summary { order: 10; }
    .summary-sticky { position: static; margin-top: 8px; }
    .q-submit-row { display: flex; margin-top: 8px; padding: 0 0 24px; }
    .summary-submit { display: none; }
}

@media(max-width: 600px) {
    .q-grid { grid-template-columns: 1fr; }
    .quotation-page { padding: 84px 18px 50px; }
    .q-section { padding: 28px 0; }
}


/* ================================================================
   PUBLIC — Catering Quotation Success / Status Page
   ================================================================ */

.quotation-success-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}

.success-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

/* ── Header (flat, no gradient block) ────────────────────────── */
.success-header {
    text-align: center;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-light, rgba(76,175,130,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.success-icon svg { width: 24px; height: 24px; fill: var(--green); }

.success-icon.rejected { background: #fef2f2; }
.success-icon.rejected svg { fill: #dc2626; }

.success-header h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.success-header > p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

.success-ref {
    display: inline-block;
    font-family: monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: var(--text);
    background: #f4f4f2;
    padding: 6px 16px;
    border-radius: 999px;
    margin-top: 16px;
}

/* ── Status row ───────────────────────────────────────────── */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.status-row .s-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.status-chip.pending   { background: #fff7ed; color: #c2410c; }
.status-chip.confirmed { background: #ecfdf5; color: #059669; }
.status-chip.rejected  { background: #fef2f2; color: #dc2626; }
.status-chip.expired   { background: #f3f4f6; color: #6b7280; }

/* ── Flat left-accent notice bars (replace heavy colour blocks) ─ */
.notice-bar {
    border-left: 3px solid var(--border);
    padding: 14px 18px;
    margin-bottom: 28px;
    border-radius: 4px;
    background: #fafaf8;
}

.notice-bar.pending  { border-left-color: #f59e0b; }
.notice-bar.confirmed { border-left-color: var(--green); background: var(--green-light, rgba(76,175,130,.08)); }

.notice-bar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.notice-bar.pending .notice-bar-label { color: #b45309; }
.notice-bar.confirmed .notice-bar-label { color: var(--green-dark, var(--green)); }

.notice-bar p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.notice-bar-mono {
    font-family: monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin: 4px 0 8px;
}

.notice-bar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ── Details list ─────────────────────────────────────────── */
.success-section { margin-bottom: 28px; }

.success-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.success-detail-row:last-child { border-bottom: none; }
.success-detail-row .label { color: var(--text-light); flex-shrink: 0; }
.success-detail-row .value { color: var(--text); font-weight: 600; text-align: right; }
.success-detail-row.total .value { color: var(--green); font-size: 15px; }

/* ── Items table ──────────────────────────────────────────── */
.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 4px;
}

.items-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--border);
}

.items-table th.right { text-align: right; }

.items-table td {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.items-table td.right { text-align: right; }
.items-table tr:last-child td { border-bottom: none; }

.items-total-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--green);
    font-size: 14px;
    gap: 24px;
}

/* ── Actions ──────────────────────────────────────────────── */
.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

.success-bookmark-tip {
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
}

@media(max-width: 600px) {
    .quotation-success-page { padding: 84px 18px 60px; }
    .success-card { padding: 28px 20px; border-radius: 14px; }
    .success-header { padding-bottom: 24px; margin-bottom: 24px; }
    .notice-bar-actions { flex-direction: column; }
    .notice-bar-actions a { text-align: center; }
    .set-modal { max-height: 92vh; border-radius: 14px 14px 0 0; }
    .set-modal-overlay { align-items: flex-end; padding: 0; }
    .set-card-img { width: 60px; height: 60px; }
    .set-selected-img { width: 52px; height: 52px; }
}


/* ================================================================
   PUBLIC — Catering Invoice Page
   (same flat card language as the quotation / success pages)
   ================================================================ */

.invoice-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}

.invoice-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

/* ── Header ── */
.invoice-header-flat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.invoice-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.invoice-brand-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

.invoice-doc-meta { text-align: right; }

.invoice-doc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
}

.invoice-doc-no {
    font-family: monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin-top: 6px;
}

.invoice-doc-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.invoice-doc-meta .status-chip { margin-top: 10px; }

/* ── Parties ── */
.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.party-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.party-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.party-detail {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}

/* ── Event grid ── */
.invoice-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 28px;
}

.event-item-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.event-item-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

/* ── Menu items block ── */
.invoice-items-block {
    margin-bottom: 28px;
}

.invoice-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ── Totals ── */
.invoice-totals-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.invoice-totals-box {
    width: 280px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.invoice-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.invoice-totals-row:last-child { border-bottom: none; }
.invoice-totals-row .t-label { color: var(--text-light); }
.invoice-totals-row .t-amount { font-weight: 600; color: var(--text); }

.invoice-totals-row.grand { background: #fafaf8; }
.invoice-totals-row.grand .t-label { font-weight: 700; color: var(--text); }
.invoice-totals-row.grand .t-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--green);
    font-family: var(--font-display);
}

.invoice-totals-row.deposit .t-amount { color: var(--green); }

.invoice-totals-row.balance { background: #fff7ed; }
.invoice-totals-row.balance .t-label,
.invoice-totals-row.balance .t-amount { color: #c2410c; font-weight: 700; }

/* ── Actions ── */
.invoice-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

@media(max-width: 640px) {
    .invoice-header-flat { flex-direction: column; gap: 14px; }
    .invoice-doc-meta { text-align: left; }
    .invoice-parties { grid-template-columns: 1fr; gap: 20px; }
    .invoice-event-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 600px) {
    .invoice-page { padding: 84px 18px 60px; }
    .invoice-card { padding: 28px 20px; border-radius: 14px; }
}

/* ── Urgent order banner ──────────────────────────────────── */
.urgent-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
    grid-column: 1 / -1;
    animation: fadeInUp .2s ease;
}

.urgent-banner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ea580c;
    margin-top: 1px;
}

.urgent-banner div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #7c2d12;
    line-height: 1.5;
}

.urgent-banner strong:first-child {
    font-size: 13.5px;
    font-weight: 700;
    color: #c2410c;
}

/* ── Summary urgent row ───────────────────────────────────── */
.summary-row-urgent {
    color: #ea580c;
}
.summary-row-urgent .s-label {
    color: #ea580c;
    font-weight: 600;
}
.summary-row-urgent span:last-child {
    font-weight: 700;
    color: #ea580c;
}