/* ===== Pricing & commercials page (agent-only) — js/ncx/pricingUI.js ===== */
#app[data-view="pricing"] .pricing-panel .branding-box { width: min(1320px, 100%); }
.pc-root { display: grid; gap: .9rem; }
.pc-root .soft, .psec .soft { color: #7a7268; font-weight: 400; }
.pc-root small { display: block; font-size: .7rem; color: #7a7268; font-weight: 400; line-height: 1.25; }

/* summary strip */
.pc-summary { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: .85rem 1.2rem; background: #fff; border: 1px solid #e6dfd1; border-radius: 12px; box-shadow: 0 2px 10px rgba(40, 30, 20, .05); }
.pc-sum-main { display: grid; gap: .05rem; margin-right: auto; }
.pc-sum-l { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a7268; }
.pc-sum-l em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.pc-sum-price { font-size: 1.7rem; line-height: 1.1; color: var(--brand, #0f4f4c); font-variant-numeric: tabular-nums; }
.pc-sum-price small { display: inline; font-size: .85rem; color: #7a7268; }
.pc-sum-from { font-size: .74rem; color: #7a7268; }
.pc-sum-kv { display: grid; gap: .1rem; min-width: 5.5rem; }
.pc-sum-kv span, .pc-sum-guests > span:first-child { font-size: .7rem; color: #7a7268; font-weight: 600; }
.pc-sum-kv b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pc-sum-guests { display: grid; gap: .2rem; }
.pc-segs { display: inline-flex; padding: .15rem; background: #f1ece2; border-radius: 999px; }
.pc-seg { border: 0; background: none; min-width: 2rem; min-height: 1.75rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .82rem; color: #5a5248; cursor: pointer; }
.pc-seg.is-on { background: #fff; color: var(--brand, #0f4f4c); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.pc-sum-flag { font-size: .76rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; cursor: help; }
.pc-sum-flag.is-warn { background: #fff4dc; color: #8a5a00; border: 1px solid #f0d9a4; }
.pc-sum-flag.is-err { background: #fde8e4; color: #9a2f1f; border: 1px solid #f2c2b8; }
.is-neg, .is-low { color: #a33 !important; }

/* collapsible sections */
.psec { background: #fff; border: 1px solid #e6dfd1; border-radius: 12px; }
.psec-legacy { margin-top: .9rem; }
.psec-head { display: flex; align-items: baseline; gap: .5rem; padding: .85rem 1.2rem; cursor: pointer; list-style: none; user-select: none; }
.psec-head::-webkit-details-marker { display: none; }
.psec-head::after { content: "▾"; margin-left: auto; color: #9a9184; font-size: .8rem; transition: transform .15s; }
.psec:not([open]) > .psec-head::after { transform: rotate(-90deg); }
.psec-head .bsec-n { align-self: center; }
.psec-t { font-weight: 700; font-size: 1rem; color: var(--brand, #0f4f4c); }
.psec-sub { font-size: .76rem; color: #7a7268; }
.psec-body { padding: 0 1.2rem 1.1rem; }
.psec[open] > .psec-head { border-bottom: 1px solid #f0ebe1; margin-bottom: .8rem; }

/* tables */
.pc-table-wrap { overflow-x: auto; }
.pc-table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pc-table th { text-align: left; font-size: .7rem; font-weight: 700; color: #7a7268; text-transform: uppercase; letter-spacing: .03em; padding: .35rem .5rem; border-bottom: 1px solid #e6dfd1; white-space: nowrap; }
.pc-table td { padding: .45rem .5rem; border-bottom: 1px solid #f0ebe1; vertical-align: top; }
.pc-num { text-align: right; white-space: nowrap; }
.pc-table th.pc-num { text-align: right; }
.pc-sell { color: var(--brand, #0f4f4c); font-weight: 700; }
.pc-item { min-width: 15rem; }
.pc-item b { font-weight: 700; }
.pc-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); margin-right: .3rem; vertical-align: 1px; }
.pc-fx { color: #6a5a2a !important; }
.pc-line.is-out td { color: #9a9184; }
.pc-line.is-out .pc-item b { text-decoration: line-through; }
.pc-na { color: #8a5a00; font-size: .78rem; }
.pc-badge { display: inline-block; padding: 0 .45rem; border-radius: 999px; font-size: .66rem; font-weight: 700; background: #eef3f1; color: #2c5d55; border: 1px solid #d3e3df; vertical-align: 1px; white-space: nowrap; }
.pc-badge.is-now { background: #fff4dc; color: #8a5a00; border-color: #f0d9a4; }
.pc-badge.is-out { background: #fde8e4; color: #9a2f1f; border-color: #f2c2b8; }
.pc-costing tfoot td { border-bottom: 0; }
.pc-tot td { border-top: 2px solid #e6dfd1; font-weight: 700; }
.pc-round td { background: #f7faf9; }
.pc-round td:first-child { border-radius: 8px 0 0 8px; }
.pc-round td:last-child { border-radius: 0 8px 8px 0; }
.pc-inline { display: inline-flex; align-items: center; gap: .35rem; margin-left: .8rem; font-size: .76rem; color: #5a5248; font-weight: 600; }
.pc-root select, .pc-in input, .pc-field input { font: inherit; font-size: .82rem; padding: .25rem .4rem; border: 1px solid #d8d0c0; border-radius: 6px; background: #fff; color: inherit; }
.pc-in { display: inline-flex; align-items: center; gap: .15rem; }
.pc-in input { text-align: right; width: 5.5rem; }
.pc-in input::placeholder { color: #a39a8c; }
.pc-in i { font-style: normal; font-size: .74rem; color: #7a7268; }
.pc-root input:focus, .pc-root select:focus { outline: 2px solid var(--brand, #0f4f4c); outline-offset: 1px; }

/* profit row */
.pc-profit { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; margin: .8rem 0 .2rem; padding: .7rem .9rem; background: #faf8f3; border-radius: 10px; }
.pc-profit > div { display: grid; gap: .1rem; }
.pc-profit span { font-size: .7rem; font-weight: 600; color: #7a7268; }
.pc-profit b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pc-note { font-size: .74rem; color: #7a7268; margin: .55rem 0 0; }
.pc-warns { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .3rem; }
.pc-warn { font-size: .8rem; padding: .4rem .65rem; border-radius: 8px; margin: 0; }
.pc-warn.is-warn { background: #fff8e8; border: 1px solid #f0e0b8; color: #6f4a00; }
.pc-warn.is-err { background: #fdeeea; border: 1px solid #f2c2b8; color: #8b1e1e; }

/* cabins */
.pc-cab.is-on td { background: #f4f9f7; }
.pc-cab.is-na td { color: #9a9184; }
.pc-savetag { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: #e6f4ea; color: #1f5c3a; font-weight: 700; font-size: .76rem; }

/* payments */
.pc-pay-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pc-dep { display: grid; gap: .6rem; }
.pc-field { display: grid; gap: .25rem; font-size: .78rem; font-weight: 600; color: #5a5248; }
.pc-field em { font-style: normal; font-weight: 400; color: #7a7268; margin-left: .3rem; }
.pc-field input[type="date"] { max-width: 11rem; }
.pc-dep-calc { display: grid; gap: .3rem; padding: .6rem .75rem; background: #faf8f3; border-radius: 10px; font-size: .8rem; }
.pc-dep-calc > div { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.pc-dep-calc b { font-variant-numeric: tabular-nums; }
.pc-dep-sug { border-top: 1px solid #e6dfd1; padding-top: .35rem; font-weight: 700; color: var(--brand, #0f4f4c); }
.pc-dep-bal { font-size: .82rem; margin: 0; }
.pc-sup { background: #fcfbf8; border-right: 1px solid #f0ebe1; min-width: 10rem; }
.pc-grp-first td { border-top: 1px solid #e6dfd1; }
.pc-due b { font-weight: 700; }
.pc-due.is-soon small { color: #8a5a00; font-weight: 700; }
.pc-due.is-late small { color: #a33; font-weight: 700; }
.pc-sub { margin-top: .7rem; }
.pc-sub > summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: #5a5248; }
.pc-terms { margin-top: .4rem; }

/* currency + rules */
.pc-fx-grid { display: grid; gap: .45rem; }
.pc-fxrow { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.pc-fxrow > span:first-child { min-width: 4.5rem; font-weight: 600; }
.pc-rules td.pr-t { font-weight: 600; white-space: nowrap; }
.pc-rules-foot { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.pc-empty, .pc-empty-state { padding: 1.4rem 1.2rem; background: #fff; border: 1px dashed #d8d0c0; border-radius: 12px; color: #5a5248; }
.pc-empty-state p { margin: .2rem 0; }

/* legacy section: the client package price now comes from the costing */
.psec-legacy .pb-pkg, .psec-legacy .pb-ovr[data-ovr-level="package"], .psec-legacy .pb-more-h:has(+ .pb-ovr[data-ovr-level="package"]) { display: none; }
.psec-legacy .pc-stale input { max-width: 8rem; }

@media (max-width: 1100px) { .pc-pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pc-summary { position: static; gap: .5rem 1rem; } .psec-sub { display: none; } }
.pc-sum-saved { font-size: .74rem; font-weight: 700; color: #1f5c3a; background: #e6f4ea; border-radius: 999px; padding: .25rem .6rem; }
.pc-sum-update { white-space: nowrap; }
