/* =====================================================================
   PHIẾU TÍNH GIÁ – tiến độ, 3 ô giá, dòng tiền, lịch đóng tiền, vay ngân hàng
   ===================================================================== */
#quoteModal .box { max-width: 1220px; }
@media (min-width: 900px) { #quoteModal .body.two { grid-template-columns: minmax(0, 1fr) 380px; } }
.qf { gap: 10px 12px; }
.qf .qk { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--champ3); }
.qf .qsec { display: block; }
.qf .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.qf .qhead .muted { font-size: 12px; } .qf .qhead b { color: #0f3a31; }
.qplans { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; } .qplans .chip { font-size: 12.5px; padding: 6px 13px; }
.qeb { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important; color: #1f2a24 !important; font-weight: 600 !important; cursor: pointer; }
.qeb b { color: #0f3a31; } .qeb small { font-weight: 400; }
.sw2 { position: relative; width: 40px; height: 22px; flex: none; }
.sw2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100% !important; padding: 0 !important; }
.sw2 i { position: absolute; inset: 0; border-radius: 999px; background: #e2d8c2; transition: background .2s; pointer-events: none; }
.sw2 i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.sw2 input:checked + i { background: linear-gradient(135deg, #1e5a4b, #0f3a31); }
.sw2 input:checked + i::after { transform: translateX(18px); background: var(--champ); }

.qtiles { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qt { background: linear-gradient(180deg, #fff, #fcf9f2); border: 1px solid #efe5cf; border-radius: 12px; padding: 9px 12px; min-width: 0; }
.qt span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--champ3); white-space: nowrap; }
.qt b { display: block; font-size: 18px; font-weight: 600; color: #1f2a24; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.qt.hi { background: linear-gradient(150deg, #18493d, #0e3229); border-color: rgba(233,212,166,.3); }
.qt.hi span { color: var(--champ); } .qt.hi b { color: #fff3d6; font-weight: 300; font-size: 22px; } .qt.hi small { color: #a9bdb4; }

.qflow { background: #fff; border: 1px solid #efe5cf; border-radius: 12px; padding: 6px 6px 0; }
.qflow svg { display: block; width: 100%; height: auto; font-family: inherit; }
.qflow .gr line { stroke: #f0e8d6; } .qflow text { font-size: 10px; fill: #7d8a83; }
.qflow .bars rect { fill: #8fb8a6; } .qflow .bars rect.bgb { fill: #0f3a31; }
.qflow .cum { fill: none; stroke: #c9a46a; stroke-width: 2.2; stroke-linejoin: round; }
.qflow .bgl { stroke: #0f3a31; stroke-dasharray: 4 3; } .qflow .bgt { fill: #0f3a31; font-weight: 600; }

.qf details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; list-style: none; padding: 2px 0 6px; }
.qf details summary::-webkit-details-marker { display: none; }
.qf details summary .qk::before { content: "+ "; } .qf details[open] summary .qk::before { content: "− "; }
.qf details summary .muted { font-size: 12px; }
.qtt { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid #efe5cf; border-radius: 12px; overflow: hidden; }
.qtt th { text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--champ3); font-weight: 600; padding: 7px 9px; background: #fbf7ee; }
.qtt td { padding: 6px 9px; border-top: 1px solid #f3ecdc; } .qtt td small { color: var(--muted); }
.qtt .r { text-align: right; white-space: nowrap; } .qtt tr.bg td { background: #f3f8f5; font-weight: 600; }
.qtt td i { display: inline-block; width: 46px; height: 5px; border-radius: 3px; margin-right: 7px; vertical-align: middle; background: linear-gradient(90deg, #c9a46a var(--w), #efe5cf var(--w)); }

.qloan { background: linear-gradient(180deg, #fbf7ee, #f6f0e2); border: 1px solid #ece0c6; border-radius: 16px; padding: 12px 14px 14px; }
.qsl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 10px; }
.qsl label b { color: #0f3a31; font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0 2px; }
.qsl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; margin-top: 10px; padding: 0; border: 0;
  background: linear-gradient(90deg, #0f3a31 var(--p, 50%), #e2d8c2 var(--p, 50%)); box-shadow: none; }
.qsl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #c9a46a; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.qsl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #c9a46a; cursor: pointer; }
.qseg { display: inline-flex; background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.qseg button { border: 0; background: none; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: #3d4a43; }
.qseg button.on { background: linear-gradient(135deg, #1b5144, #0f3a31); color: var(--champ); }
#lTiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qsplit { margin-top: 10px; } .qsplit .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e2d8c2; }
.qsplit .g { background: #0f3a31; } .qsplit .l { background: #c9a46a; }
.qsplit .lg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #3d4a43; margin-top: 6px; }
.qsplit .lg span { display: inline-flex; align-items: center; gap: 5px; }
.qsplit .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; } .qsplit .lg .r { margin-left: auto; font-weight: 600; }
.qsay { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: #3d4a43; } .qsay b { color: #0f3a31; }

@media (max-width: 700px) {
  .qtiles, #lTiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #qTiles .qt.hi { grid-column: span 2; } .qsl { grid-template-columns: 1fr; gap: 8px; } .qtt td i { display: none; }
}
.qsl label { display: block !important; white-space: nowrap; }
.qsl label input[type=range] { display: block; }
