/* Functions & enquiries: pipeline board, enquiry drawer, quote builder */
.fx-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.fx-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 240px; transition: border-color .15s, background .15s; }
.fx-col.over { border-color: var(--text); background: color-mix(in srgb, var(--accent) 6%, var(--panel-2)); }
.fx-h { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px 10px; font-size: 12.5px; font-weight: 600; }
.fx-h .muted { font-weight: 500; }
.fx-list { display: flex; flex-direction: column; gap: 8px; }
.fx-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: pointer; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.fx-card:hover { border-color: var(--line-2); }
.fx-card.drag { opacity: .45; }
.fx-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fx-top b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fx-empty { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 22px 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel-2); }

.drawer.fx-drawer { width: min(640px, 100vw); display: flex; flex-direction: column; }
.fx-drawer .dh h2 { font-size: 17px; } .fx-drawer .db { flex: 1; padding: 14px 20px 40px; }
.fx-stage { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; }
.fx-sec { border-top: 1px solid var(--line); padding: 16px 0; }
.fx-sh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.fx-sh h3 { margin: 0; font-size: 13.5px; }
.fx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.fx-facts span { display: block; font-size: 11.5px; color: var(--text-3); } .fx-facts b { font-weight: 500; font-size: 13px; word-break: break-word; }
.fx-msg { margin: 14px 0 0; padding: 10px 14px; border-left: 2px solid var(--line-2); color: var(--text-2); font-size: 13.5px; background: var(--panel-2); border-radius: 0 8px 8px 0; }
.fx-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px; margin-bottom: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.fx-inline .f { flex: 1; min-width: 130px; margin: 0; }
.fx-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fx-qt { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fx-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fx-qb { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.fx-qb table { width: 100%; border-collapse: collapse; } .fx-qb th { font-size: 11.5px; color: var(--text-3); font-weight: 500; text-align: left; padding: 0 4px 6px; }
.fx-qb td { padding: 3px 4px; vertical-align: middle; } .fx-qb td input { width: 100%; height: 32px; padding: 0 8px; }
.fx-qb .amt { font-variant-numeric: tabular-nums; font-size: 13px; }
.fx-add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .fx-add select { height: 30px; font-size: 12.5px; width: auto; max-width: 230px; }
.fx-tot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); } .fx-tot > div { display: flex; justify-content: space-between; }
.fx-tot b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fx-note textarea { width: 100%; } .fx-note input[type=date] { height: 30px; width: auto; }
.fx-log { list-style: none; margin: 14px 0 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); }
.fx-log li { position: relative; padding: 0 0 12px 4px; display: flex; flex-direction: column; }
.fx-log li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--line-2); }
.fx-log li.k-deposit::before, .fx-log li.k-accepted::before { background: var(--pos); border-color: var(--pos); }
.fx-log li.k-quote::before, .fx-log li.k-sent::before { background: var(--accent); border-color: var(--accent); }
.fx-log li.k-note::before { background: var(--warn); border-color: var(--warn); }
.fx-log b { font-weight: 500; font-size: 13px; }

.fx-pk { border-top: 1px solid var(--line); padding: 14px 0; } .fx-pk:first-child { border-top: 0; padding-top: 0; }
.fx-ex { width: 100%; } .fx-ex td { padding: 4px; } .fx-ex input, .fx-ex select { width: 100%; height: 32px; }
.fx-link { display: flex; gap: 6px; } .fx-link input { flex: 1; font-family: var(--mono); font-size: 12.5px; }
.fx-qrrow { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.fx-qr { width: 132px; height: 132px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.fx-qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) { .fx-facts { grid-template-columns: 1fr 1fr; } .fx-board { grid-template-columns: repeat(5, 240px); } }
