/* rmq-freight.css — the Freight screen and prompt (static/rmq-freight.js, sql/base/217).
 * The app's modal look, the same on every page. Sits above the Add Items overlay and
 * the RFPA screen (1200); prompts (2100) and toasts (2000) sit above it. */
.frt-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim-80);
    z-index: 1300; justify-content: center; align-items: flex-start; padding: 24px 16px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.frt-overlay.open { display: flex; }
.frt-modal {
    position: relative; width: 100%; max-width: 420px; margin: auto;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1px solid var(--line-10); border-radius: 16px; padding: 22px;
    color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.frt-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line-12); background: var(--surface-04);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.frt-title { font-size: 1.1rem; margin: 0 36px 6px 0; display: flex; gap: 8px; align-items: center; }
.frt-sub { font-size: 0.82rem; color: var(--gray-a0); line-height: 1.45; margin-bottom: 14px; }
.frt-field { margin-bottom: 14px; }
.frt-field > label { display: block; font-size: 0.82rem; color: var(--gray-c0); margin-bottom: 6px; }
.frt-hint { font-size: 0.72rem; color: var(--gray-80); margin-top: 6px; line-height: 1.4; }
.frt-modal input[type="number"] {
    width: 100%; background: var(--surface-05); border: 1px solid var(--line-20);
    border-radius: 8px; color: var(--text); font-size: 0.9rem; padding: 10px 12px; font-family: inherit;
}
.frt-modal input:focus { outline: none; border-color: var(--red); }
.frt-toggle { display: flex; gap: 8px; }
.frt-toggle button {
    flex: 1; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line-20);
    background: var(--surface-05); color: var(--gray-a0); font-size: 0.84rem; cursor: pointer;
    font-family: inherit;
}
.frt-toggle button.on { border-color: var(--teal); color: var(--teal); background: rgb(var(--teal-rgb) / 0.12); font-weight: 600; }
.frt-check { display: flex; gap: 8px; align-items: center; font-size: 0.84rem; color: var(--gray-c0); cursor: pointer; }
.frt-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.frt-buttons { display: flex; gap: 10px; margin-top: 6px; }
.frt-buttons button { flex: 1; padding: 11px; border-radius: 25px; font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.frt-cancel { background: transparent; border: 1px solid var(--line-20); color: var(--gray-a0); }
.frt-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 50%, var(--purple) 100%); border: none; color: var(--on-accent);
    font-weight: 600; box-shadow: 0 4px 20px rgb(var(--red-rgb) / 0.3);
}
.frt-remove {
    display: block; width: 100%; margin-top: 12px; background: transparent; border: none; color: var(--red);
    font-size: 0.8rem; cursor: pointer; font-family: inherit; padding: 6px;
}
.frt-options { margin-bottom: 6px; }
.frt-option {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; width: 100%;
    border: 1px solid var(--line-12); border-radius: 10px; background: transparent;
    color: var(--text); text-align: left; cursor: pointer; font-family: inherit;
}
.frt-option.on { border-color: var(--teal); background: rgb(var(--teal-rgb) / 0.1); }
.frt-option .dot {
    width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-35);
    flex-shrink: 0; margin-top: 2px;
}
.frt-option.on .dot { border-color: var(--teal); background: radial-gradient(var(--teal) 45%, transparent 50%); }
.frt-option .m { font-size: 0.84rem; font-weight: 600; display: block; }
.frt-option .d { font-size: 0.72rem; color: var(--gray-a0); margin-top: 2px; line-height: 1.4; display: block; }
/* the tag: where the cost came from */
.frt-tag {
    display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 9px; white-space: nowrap; vertical-align: middle;
}
/* the job card's section */
.frt-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0;
    border-bottom: 1px solid var(--line-06);
}
.frt-row.tap { cursor: pointer; }
.frt-row .t { font-weight: 600; font-size: 0.875rem; }
.frt-row .s { color: var(--gray-a0); font-size: 0.75rem; margin-top: 2px; }
.frt-row .a { font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.frt-add {
    background: transparent; border: 1px dashed rgb(var(--teal-rgb) / 0.45); color: var(--teal);
    border-radius: 10px; padding: 7px 12px; font-size: 0.78rem; cursor: pointer; font-family: inherit;
}
