/* Casa AI — warm ivory + deep forest green + clay accent (elcara-inspired). */

:root {
    --background: #F7F5EF;
    --surface: #FBFAF6;
    --surface-alt: #EDEAE0;
    --text: #232C26;
    --text-muted: #5F665C;
    --text-subtle: #A0A095;
    --border: #E3E2D7;
    --primary: #2E4A3F;
    --primary-hover: #243B33;
    --primary-fg: #F7F5EF;
    --accent: #C2613F;
    --accent-hover: #AA5435;
    --accent-fg: #FBFAF6;
    --success: #4F7A52;
    --sidebar-bg: #2E4A3F;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(35, 44, 38, 0.05);
    --shadow-md: 0 6px 24px rgba(35, 44, 38, 0.10);
    --shadow-lg: 0 18px 50px rgba(35, 44, 38, 0.22);
}

:root[data-theme="dark"] {
    --background: #1C1F1B;
    --surface: #262A24;
    --surface-alt: #353A31;
    --text: #F0EFE7;
    --text-muted: #B6BBAE;
    --text-subtle: #80867A;
    --border: #3A3F36;
    --primary: #7FB096;
    --primary-hover: #8FBEA4;
    --primary-fg: #16201A;
    --accent: #D17A5A;
    --accent-hover: #DC8A6C;
    --accent-fg: #1C1209;
    --success: #7FB096;
    --sidebar-bg: #20251F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    background: var(--background);
    color: var(--text);
    line-height: 1.55;
}

button { font-family: inherit; cursor: pointer; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-fill { width: 19px; height: 19px; fill: currentColor; }

.shell { display: flex; height: 100dvh; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: 268px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    background-image:
        radial-gradient(120% 80% at 100% 0%, rgba(194,97,63,0.16), transparent 55%);
    color: var(--primary-fg);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 600;
    font-size: 18px; letter-spacing: 0.2px; }
.brand-sub { font-size: 11.5px; color: #B9C7BD; }

.demo-badge {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 500; color: #F0C9B6;
    background: rgba(194, 97, 63, 0.18);
    border: 1px solid rgba(194, 97, 63, 0.45);
    padding: 5px 11px; border-radius: 999px;
}
.demo-badge .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #E0855F;
    box-shadow: 0 0 0 0 rgba(224,133,95,0.7); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(224,133,95,0.6); }
    70% { box-shadow: 0 0 0 6px rgba(224,133,95,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,133,95,0); }
}

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 10px 12px; border: none; background: transparent;
    color: #CBD7CD; font-size: 14px; font-weight: 500;
    border-radius: 10px; text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover:not(:disabled) { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.13); color: #fff; }
.nav-item.active .ico { color: #F0C9B6; }
.nav-item:disabled { opacity: 0.45; cursor: default; }
.soon {
    margin-left: auto; font-size: 9.5px; text-transform: uppercase;
    letter-spacing: 0.06em; color: #B9C7BD;
    border: 1px solid rgba(255,255,255,0.25); padding: 1px 6px; border-radius: 6px;
}

.sidebar-foot { margin-top: auto; }
.sidebar-foot p { font-size: 11px; color: #9DB0A2; line-height: 1.6; margin: 0;
    border-top: 1px solid rgba(255,255,255,0.10); padding-top: 14px; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.topbar h1 { margin: 0; font-family: "Fraunces", Georgia, serif;
    font-size: 20px; font-weight: 600; }
.topbar-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left > div { min-width: 0; }
.menu-btn {
    display: none; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); border-radius: 10px;
}
.menu-btn:hover { background: var(--surface-alt); color: var(--text); }

.sidebar-backdrop { position: fixed; inset: 0; z-index: 60;
    background: rgba(20, 26, 22, 0.5); }
.sidebar-backdrop[hidden] { display: none; }

.tour-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 8px 15px; font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow-sm); transition: all 0.15s ease;
}
.tour-btn:hover { color: var(--text); border-color: var(--text-subtle);
    background: var(--surface-alt); }

.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view[hidden] { display: none; }

/* ---------- Chat ---------- */
.messages {
    flex: 1; overflow-y: auto; padding: 28px 26px 8px;
    max-width: 880px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; gap: 18px;
}
.row { display: flex; gap: 10px; align-items: flex-start; max-width: 84%; }
.row.user { align-self: flex-end; flex-direction: row-reverse; }
.row.assistant { align-self: flex-start; }
.avatar {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; margin-top: 2px;
}
.avatar.bot { box-shadow: var(--shadow-sm); }
.avatar.me {
    background: var(--primary); color: var(--primary-fg);
    display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.msg {
    padding: 12px 16px; border-radius: 16px;
    white-space: pre-wrap; word-wrap: break-word;
    animation: fadeIn 0.25s ease-out; font-size: 14.5px; line-height: 1.6;
}
.row.user .msg {
    background: var(--primary); color: var(--primary-fg);
    border-bottom-right-radius: 5px;
}
.row.assistant .msg {
    background: var(--surface); border: 1px solid var(--border);
    border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm);
}
.msg strong { font-weight: 600; }
.msg .tools {
    display: block; margin-top: 9px; font-size: 11px; color: var(--text-subtle);
    border-top: 1px dashed var(--border); padding-top: 7px;
}
.msg.thinking { color: var(--text-subtle); font-style: italic; }
.msg.thinking .dots span {
    display: inline-block; animation: blink 1.4s infinite both;
}
.msg.thinking .dots span:nth-child(2) { animation-delay: 0.2s; }
.msg.thinking .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.cursor { color: var(--accent); animation: blink 1s infinite; font-weight: 400; }

.suggestions {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 26px 6px;
    max-width: 880px; width: 100%; margin: 0 auto;
}
.suggestions button {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 12.5px;
    padding: 7px 13px; border-radius: 999px;
    transition: all 0.15s ease;
}
.suggestions button:hover { background: var(--primary); color: var(--primary-fg);
    border-color: var(--primary); }

.composer {
    display: flex; gap: 10px; padding: 12px 26px 22px;
    max-width: 880px; width: 100%; margin: 0 auto;
}
.composer input {
    flex: 1; padding: 14px 17px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); font-size: 14.5px; box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease;
}
.composer input:focus { outline: none; box-shadow: 0 0 0 3px rgba(46,74,63,0.16); }
.composer input::placeholder { color: var(--text-subtle); }

.send {
    width: 50px; flex-shrink: 0; border: none; border-radius: var(--radius);
    background: var(--accent); color: var(--accent-fg);
    display: grid; place-items: center;
    transition: background 0.15s ease, transform 0.1s ease;
}
.send:hover { background: var(--accent-hover); }
.send:active { transform: scale(0.95); }
.send:disabled { opacity: 0.5; }

.btn-accent {
    border: none; border-radius: 10px; background: var(--accent);
    color: var(--accent-fg); font-weight: 600; font-size: 14px; padding: 0 18px;
    height: 38px; transition: background 0.15s ease, transform 0.1s ease;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { transform: scale(0.97); }

/* ---------- Vendors ---------- */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; padding: 18px 28px;
    border-bottom: 1px solid var(--border); background: var(--surface);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    padding: 7px 14px; border-radius: 999px; transition: all 0.15s ease;
    text-transform: capitalize;
}
.chip:hover { background: var(--surface-alt); }
.chip.active { background: var(--primary); color: var(--primary-fg);
    border-color: var(--primary); }
.toolbar-right { display: flex; gap: 8px; }
.loc-input {
    padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); font-size: 13.5px;
}
.loc-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(46,74,63,0.14); }

.grid {
    flex: 1; overflow-y: auto; padding: 22px 28px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px; align-content: start;
}
.vendor-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 17px 18px;
    display: flex; flex-direction: column; gap: 7px;
    box-shadow: var(--shadow-sm); transition: transform 0.15s ease,
        box-shadow 0.15s ease, border-color 0.15s ease;
}
.vendor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: var(--text-subtle); }
.vendor-card .v-cat {
    align-self: flex-start; font-size: 11px; font-weight: 600;
    color: var(--primary); background: rgba(46,74,63,0.08);
    padding: 3px 10px; border-radius: 999px; text-transform: capitalize;
}
.vendor-card .v-name { font-weight: 600; font-size: 15.5px; }
.vendor-card .v-meta { font-size: 13px; color: var(--text-muted); }
.vendor-card .v-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-subtle);
}
.v-rating { color: var(--accent); font-weight: 600; }

/* ---------- BOQ ---------- */
.boq-list {
    flex: 1; overflow-y: auto; padding: 22px 28px;
    display: flex; flex-direction: column; gap: 16px;
    max-width: 900px; width: 100%; margin: 0 auto;
}
.boq-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.boq-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: baseline;
    background: linear-gradient(to bottom, rgba(46,74,63,0.03), transparent);
}
.boq-head h3 { margin: 0; font-family: "Fraunces", Georgia, serif;
    font-size: 16.5px; font-weight: 600; }
.boq-head .proj { font-size: 13px; color: var(--text-muted); }
.boq-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.boq-row:last-child { border-bottom: none; }
.boq-qty { flex-shrink: 0; min-width: 76px; font-weight: 600; color: var(--primary); }
.boq-part { flex: 1; }
.tds-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tds-tag.has { color: var(--success); background: rgba(79,122,82,0.12);
    border: 1px solid rgba(79,122,82,0.3); }
.tds-tag.none { color: var(--text-subtle); background: var(--surface-alt);
    border: 1px solid var(--border); }

.empty { color: var(--text-subtle); font-size: 14px; padding: 48px 20px;
    text-align: center; grid-column: 1 / -1; line-height: 1.6; }

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

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px;
    border: 2px solid var(--background); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Guided tour ---------- */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour[hidden] { display: none; }
.tour-spot {
    position: absolute; border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(20, 26, 22, 0.62);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.tour-card {
    position: absolute; width: 320px; max-width: calc(100vw - 32px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 20px; animation: fadeIn 0.25s ease-out;
    transition: top 0.3s ease, left 0.3s ease;
}
.tour-step { font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--accent); }
.tour-card h3 { margin: 6px 0 8px; font-family: "Fraunces", Georgia, serif;
    font-size: 18px; font-weight: 600; }
.tour-card p { margin: 0; font-size: 14px; color: var(--text-muted);
    line-height: 1.6; }
.tour-foot { display: flex; align-items: center; justify-content: space-between;
    margin-top: 18px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: all 0.2s ease; }
.tour-dots span.on { background: var(--accent); width: 18px; border-radius: 3px; }
.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-skip { background: none; border: none; color: var(--text-subtle);
    font-size: 13px; padding: 6px; }
.tour-skip:hover { color: var(--text-muted); }
.tour-prev { background: var(--surface-alt); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    padding: 7px 13px; border-radius: 9px; }
.tour-prev:hover { color: var(--text); }
.tour-next { background: var(--accent); border: none; color: var(--accent-fg);
    font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 9px; }
.tour-next:hover { background: var(--accent-hover); }

/* ---------- Topbar actions / theme ---------- */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); border-radius: 999px; box-shadow: var(--shadow-sm);
    transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-alt); }

/* ---------- Chat toolbar ---------- */
.chat-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 26px; max-width: 880px; width: 100%; margin: 0 auto;
}
.chip-btn {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    padding: 7px 13px; border-radius: 999px; transition: all 0.15s ease;
}
.chip-btn:hover { color: var(--text); background: var(--surface-alt); }
.history-select {
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 13px; padding: 7px 12px;
    border-radius: 999px; font-family: inherit; cursor: pointer; max-width: 220px;
}

/* ---------- BOQ pricing + export ---------- */
.boq-actions { display: flex; gap: 7px; align-items: center; }
.dl {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    padding: 5px 11px; border-radius: 8px; text-decoration: none;
    transition: all 0.15s ease;
}
.dl:hover { color: var(--primary); border-color: var(--primary); }
.boq-rate { flex-shrink: 0; min-width: 90px; text-align: right;
    color: var(--text-muted); font-size: 13px; }
.boq-amt { flex-shrink: 0; min-width: 96px; text-align: right; font-weight: 600; }
.boq-totals {
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
    padding: 14px 20px; background: var(--surface-alt);
}
.boq-totals .t-row { display: flex; gap: 24px; font-size: 13.5px;
    color: var(--text-muted); min-width: 220px; justify-content: space-between; }
.boq-totals .t-row.grand { font-size: 16px; font-weight: 700; color: var(--text);
    border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
.req-quote {
    margin-top: 6px; align-self: flex-start;
    border: 1px solid var(--accent); background: transparent; color: var(--accent);
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
    transition: all 0.15s ease;
}
.req-quote:hover { background: var(--accent); color: var(--accent-fg); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,26,22,0.55); }
.modal-card {
    position: relative; width: 440px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 24px; animation: fadeIn 0.2s ease-out;
}
.modal-x {
    position: absolute; top: 12px; right: 14px; border: none; background: none;
    color: var(--text-subtle); font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--text); }
.modal-card h3 { margin: 0 0 4px; font-family: "Fraunces", Georgia, serif;
    font-size: 19px; }
.modal-card .sub { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.field { display: flex; gap: 8px; margin-bottom: 14px; }
.field input {
    flex: 1; padding: 11px 14px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--background); color: var(--text);
    font-size: 14px;
}
.field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(46,74,63,0.15); }
.quote-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0;
}
.quote-stat {
    background: var(--background); border: 1px solid var(--border);
    border-radius: 10px; padding: 11px 13px;
}
.quote-stat .label { font-size: 11px; color: var(--text-subtle);
    text-transform: uppercase; letter-spacing: 0.04em; }
.quote-stat .val { font-size: 18px; font-weight: 700; margin-top: 2px; }
.tds-box {
    background: var(--background); border: 1px solid var(--border);
    border-radius: 10px; padding: 13px; font-size: 13px; line-height: 1.6;
    color: var(--text-muted); white-space: pre-wrap;
}
.tds-box .tds-h { font-weight: 600; color: var(--text); display: block;
    margin-bottom: 4px; }
.reuse-note { font-size: 12px; color: var(--success); margin-top: 10px;
    font-weight: 500; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
    z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
    background: var(--text); color: var(--background);
    font-size: 13.5px; font-weight: 500; padding: 11px 18px; border-radius: 10px;
    box-shadow: var(--shadow-lg); animation: toastIn 0.2s ease-out;
}
.toast.success { background: var(--success); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */

/* Tablet & phone: off-canvas sidebar with a hamburger. */
@media (max-width: 860px) {
    .menu-btn { display: grid; }
    .sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main { width: 100%; }
    .messages, .suggestions, .composer, .chat-toolbar,
    .boq-list { max-width: 100%; }
}

/* Phone: tighten spacing and collapse multi-column layouts. */
@media (max-width: 640px) {
    .topbar { padding: 12px 16px; }
    .topbar h1 { font-size: 17px; }
    .topbar-sub { display: none; }
    .tour-btn .lbl { display: none; }
    .tour-btn { padding: 0; width: 38px; height: 38px; justify-content: center;
        border-radius: 999px; }
    .topbar-actions { gap: 6px; }

    .messages { padding: 18px 14px 6px; gap: 14px; }
    .row { max-width: 92%; }
    .suggestions { padding: 6px 14px; }
    .composer { padding: 10px 14px 16px; gap: 8px; }
    .chat-toolbar { padding: 8px 14px; }
    .history-select { max-width: 150px; }

    .toolbar { padding: 14px 16px; }
    .toolbar-right { width: 100%; }
    .loc-input { flex: 1; }
    .grid { grid-template-columns: 1fr; padding: 16px 14px; gap: 12px; }
    .boq-list { padding: 16px 14px; gap: 12px; }

    /* BOQ rows: part name on its own line, figures wrap below. */
    .boq-row { flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; }
    .boq-part { flex: 1 1 100%; order: -1; font-weight: 600; }
    .boq-qty, .boq-rate, .boq-amt { min-width: auto; }
    .boq-amt { margin-left: auto; }
    .boq-head { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .boq-totals { padding: 12px 16px; }
    .boq-totals .t-row { min-width: 180px; }

    .modal-card { padding: 20px; }
}
