/* ============================================================================
   ByQuality order/estimate view popup (Usr_AddEditOrder) - brand redesign.
   All selectors are scoped under .bqo-dialog / .bqo-wrap so nothing leaks
   into the rest of the app. Brand: red #C70307, charcoal #18181F, Outfit
   (local variable font declared in _Master.cshtml) for labels, theme Inter
   for data.
   ========================================================================== */

.bqo-dialog .e-dlg-content { padding: 0 !important; overflow: hidden; background: #F4F3F1; }
.bqo-dialog .e-dlg-content > div { height: 100%; }
.bqo-dialog .e-footer-content {
    background: #fff !important;
    border-top: 1px solid #DDDAD5 !important;
    padding: 10px 20px !important;
}
.bqo-dialog .e-footer-content .e-btn {
    font-family: 'Outfit', Inter, Arial, sans-serif;
    font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 7px; padding: 10px 22px;
    background: #fff; border: 1px solid #DDDAD5; color: #2B2B31;
}
.bqo-dialog .e-footer-content .e-btn:first-child {
    background: #C70307; border-color: #C70307; color: #fff;
}
.bqo-dialog .e-footer-content .e-btn:first-child:hover { background: #A00206; border-color: #A00206; }
.bqo-dialog .e-footer-content .e-btn:last-child:hover { border-color: #9A9AA2; }

/* ---------- shell ---------- */
.bqo-wrap {
    height: 100%; min-height: 0;
    display: flex; flex-direction: column;
    background: #F4F3F1;
    font-size: 13px; color: #2B2B31;
}

/* ---------- top bar ---------- */
.bqo-topbar {
    flex: none; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, #22222B, #18181F);
    border-bottom: 3px solid #C70307;
    padding: 0 16px; min-height: 56px; color: #C8C9C7;
}
.bqo-ident { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bqo-doctype {
    font-family: 'Outfit', Arial, sans-serif; font-size: 10px; font-weight: 500;
    letter-spacing: .22em; text-transform: uppercase; color: #8E8E96; white-space: nowrap;
}
.bqo-docno {
    font-family: 'Outfit', Arial, sans-serif; font-size: 18px; font-weight: 600;
    color: #fff; letter-spacing: .02em; white-space: nowrap;
}
.bqo-docno a {
    font-size: 11px; color: #FF8A8D !important; text-decoration: underline;
    font-weight: 500; margin-left: 9px; letter-spacing: .02em;
}
.bqo-tb-spacer { flex: 1; }
.bqo-topbar .e-btn,
.bqo-topbar .e-dropdown-btn,
.bqo-tb-btn {
    font-family: 'Outfit', Arial, sans-serif !important;
    font-size: 11.5px !important; font-weight: 500 !important;
    letter-spacing: .06em; text-transform: uppercase;
    background: transparent !important; color: #C8C9C7 !important;
    border: 1px solid rgba(255,255,255,.22) !important; border-radius: 7px !important;
    padding: 7px 13px !important; box-shadow: none !important;
    cursor: pointer; white-space: nowrap;
}
.bqo-topbar .e-btn:hover, .bqo-topbar .e-dropdown-btn:hover, .bqo-tb-btn:hover {
    border-color: rgba(255,255,255,.5) !important; color: #fff !important;
    background: rgba(255,255,255,.04) !important;
}
.bqo-topbar .e-btn .e-btn-icon { color: inherit !important; font-size: 13px !important; }
.bqo-tb-btn.bqo-save {
    background: #C70307 !important; border-color: #C70307 !important;
    color: #fff !important; font-weight: 600 !important;
}
.bqo-tb-btn.bqo-save:hover { background: #A00206 !important; }

/* ---------- document header ---------- */
.bqo-dochead {
    flex: none; background: #fff; border-bottom: 1px solid #DDDAD5;
    padding: 14px 20px 0; position: relative;
}
.bqo-dh-row { display: flex; gap: 24px; align-items: flex-start; }

.bqo-customer { display: flex; gap: 12px; align-items: center; min-width: 300px; max-width: 360px; }
.bqo-cust-photo {
    width: 52px; height: 52px; border-radius: 12px; flex: none;
    background-size: cover; background-position: center;
    border: 1px solid #E8E6E2; background-color: #F1EFEB;
}
.bqo-cust-name {
    font-family: 'Outfit', Arial, sans-serif; font-size: 16px; font-weight: 600;
    color: #1A1A20; line-height: 1.2;
}
.bqo-cust-meta { display: flex; gap: 7px; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.bqo-chip {
    font-size: 10.5px; font-weight: 600; letter-spacing: .05em; padding: 2px 8px;
    border-radius: 5px; background: #F1EFEB; color: #6C6C74; border: 1px solid #E8E6E2;
    white-space: nowrap;
}
.bqo-chip.bqo-parent { background: #FBF6EC; border-color: #EADFC8; color: #8A6D3B; display: inline-flex; align-items: center; gap: 5px; }
.bqo-chip.bqo-parent img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.bqo-wrap .bqo-kebab,
.bqo-wrap .bqo-kebab.e-btn {
    border: none !important; background: transparent !important; color: #9A9AA2 !important;
    padding: 2px 6px !important; box-shadow: none !important; border-radius: 6px !important;
}
.bqo-wrap .bqo-kebab:hover { background: #F1EFEB !important; color: #2B2B31 !important; }

.bqo-project { flex: 1; min-width: 0; }
.bqo-label {
    font-family: 'Outfit', Arial, sans-serif; font-size: 9.5px; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase; color: #9A9AA2; margin-bottom: 2px;
}
.bqo-project .e-input-group, .bqo-project .e-input-group.e-control-wrapper {
    border: none !important; border-bottom: 1px dashed transparent !important;
    background: transparent !important; box-shadow: none !important; margin-bottom: 0;
}
.bqo-project .e-input-group:hover { border-bottom-color: #DDDAD5 !important; }
.bqo-project .e-input-group input.e-input {
    font-family: 'Outfit', Arial, sans-serif !important; font-size: 19px !important;
    font-weight: 600 !important; color: #1A1A20 !important; padding: 0 !important; height: 28px;
}
.bqo-tagrow { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- status stepper ---------- */
.bqo-stepper { min-width: 360px; max-width: 480px; flex: none; position: relative; }
.bqo-steps { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; }
.bqo-step { display: flex; align-items: center; }
.bqo-step .bqo-dot {
    width: 24px; height: 24px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    background: #E8F3EC; color: #2E7D4F; border: 1.5px solid #2E7D4F;
}
.bqo-step .bqo-lbl {
    font-family: 'Outfit', Arial, sans-serif; font-size: 10.5px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; margin: 0 8px 0 6px;
    white-space: nowrap; color: #2E7D4F;
}
.bqo-step .bqo-bar { width: 22px; height: 2px; background: #2E7D4F; margin-right: 8px; }
.bqo-step.bqo-now .bqo-dot { box-shadow: 0 0 0 4px rgba(199,3,7,.13); border: none; }
.bqo-step-note { font-size: 11px; color: #9A9AA2; text-align: right; margin-top: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.bqo-step-note b { color: #2B2B31; font-weight: 600; }
.bqo-step-note img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.bqo-linkedrow { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.bqo-ls-pill {
    font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap;
}
.bqo-ls-add { font-size: 11px; color: #6C6C74; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.bqo-ls-add:hover { color: #C70307; }

.bqo-status-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 430px;
    background: #fff; border: 1px solid #DDDAD5; border-radius: 12px;
    box-shadow: 0 18px 50px rgba(20,20,26,.22); padding: 12px;
}

/* ---------- meta strip ---------- */
.bqo-metastrip {
    display: flex; align-items: stretch; margin: 12px -20px 0; padding: 0 20px;
    border-top: 1px solid #E8E6E2; background: #FCFBFA; overflow-x: auto;
}
.bqo-meta {
    padding: 9px 18px 10px 0; margin-right: 18px; border-right: 1px solid #E8E6E2;
    min-width: 130px; flex: none;
}
.bqo-meta:last-child { border-right: none; margin-right: 0; }
.bqo-meta .bqo-label { margin-bottom: 1px; white-space: nowrap; }
.bqo-meta .e-input-group, .bqo-meta .e-input-group.e-control-wrapper {
    border: none !important; border-bottom: 1px dashed #E8E6E2 !important;
    background: transparent !important; box-shadow: none !important;
    min-height: 24px; margin-bottom: 0; border-radius: 0 !important;
}
.bqo-meta .e-input-group:hover, .bqo-meta .e-input-group.e-input-focus {
    border-bottom-color: #C70307 !important;
}
.bqo-meta .e-input-group input.e-input {
    font-size: 13px !important; font-weight: 600 !important; color: #1A1A20 !important;
    padding: 0 !important; height: 23px !important; min-height: 23px !important;
}
.bqo-meta .e-input-group .e-input-group-icon {
    min-height: 22px !important; min-width: 20px !important; font-size: 12px !important;
    border: none !important; background: transparent !important; color: #9A9AA2 !important;
}
.bqo-meta-err { color: #C70307; font-weight: 600; font-size: 10.5px; }
.bqo-xr {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #8A6D3B;
    background: #FBF6EC; border: 1px dashed #EADFC8; border-radius: 6px;
    padding: 1px 7px; margin-top: 3px; white-space: nowrap;
}
.bqo-xr .e-dropdown-btn { padding: 0 2px !important; border: none !important; background: transparent !important; box-shadow: none !important; color: #8A6D3B !important; }

/* ---------- body ---------- */
.bqo-body { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 14px 16px; }
.bqo-main {
    flex: 1; min-width: 0; display: flex; flex-direction: column;
    background: #fff; border: 1px solid #E8E6E2; border-radius: 12px; overflow: hidden;
}
.bqo-main > .e-tab { height: 100% !important; }

/* tabs restyle */
.bqo-wrap .e-tab .e-tab-header {
    background: #FCFBFA !important; border-bottom: 1px solid #E8E6E2 !important;
    padding: 0 6px;
}
.bqo-wrap .e-tab .e-tab-header .e-toolbar-item .e-tab-wrap { background: transparent !important; }
.bqo-wrap .e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    font-family: 'Outfit', Arial, sans-serif !important; font-size: 11px !important;
    font-weight: 500 !important; letter-spacing: .07em; text-transform: uppercase;
    color: #6C6C74 !important;
}
.bqo-wrap .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    color: #C70307 !important; font-weight: 600 !important;
}
.bqo-wrap .e-tab .e-tab-header .e-indicator { background: #C70307 !important; height: 2.5px !important; }
.bqo-wrap .e-tab .e-content { background: #fff; }

/* ---------- tab panes ----------
   .tab-auto-fit clips .e-content (overflow:hidden) and the panes size their body in
   viewport units (60-70dvh), which are taller than the pane actually gets inside this
   dialog once the topbar, document header, meta strip and footer are subtracted - the
   last grid/list row was cut off with no way to scroll to it. Each pane is a flex
   column that inherits the real pane height; overflow-y stays as the safety net for
   panes still sized in dvh (Clock In/Out, Production Timeline). */
.bqo-main > .e-tab > .e-content { min-height: 0; }
.bqo-main > .e-tab > .e-content > .e-item {
    height: 100%; min-height: 0;
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden;
}

/* ---------- right rail ---------- */
.bqo-rail {
    width: 344px; flex: none; display: flex; flex-direction: column; gap: 12px;
    overflow-y: auto; overflow-x: hidden; min-height: 0; padding-bottom: 2px;
}
.bqo-card { background: #fff; border: 1px solid #E8E6E2; border-radius: 12px; flex: none; }
.bqo-card-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid #E8E6E2;
}
.bqo-card-hd h4 {
    font-family: 'Outfit', Arial, sans-serif; font-size: 10.5px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: #6C6C74; margin: 0;
}
.bqo-card-act { font-size: 11px; color: #C70307; cursor: pointer; font-weight: 600; white-space: nowrap; }
.bqo-card-act:hover { text-decoration: underline; }
.bqo-card-bd { padding: 11px 14px; }

/* financial summary */
.bqo-fin-bd { padding: 5px 0 0; }
.bqo-finrow { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 15px; font-size: 12.5px; }
.bqo-finrow .k { color: #6C6C74; font-weight: 500; }
.bqo-finrow .v { font-weight: 600; color: #1A1A20; text-align: right; font-variant-numeric: tabular-nums; }
.bqo-finrow .v .bqo-cad, .bqo-finband .v .bqo-cad {
    display: block; font-size: 10.5px; color: #9A9AA2; font-weight: 500;
}
.bqo-finband {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 15px; margin: 4px 0; background: #18181F; color: #fff;
}
.bqo-finband .k {
    font-family: 'Outfit', Arial, sans-serif; font-size: 10.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
}
.bqo-finband .v { font-weight: 700; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.bqo-finband.bqo-total { background: #C70307; }
.bqo-finband.bqo-total .v .bqo-cad { color: #F3C2C3; }

/* PAID band: gray = no payments, blue = partially paid, green = paid in full.
   When paid in full the Total Due band goes gray (bqo-total-settled). */
.bqo-paidband { flex-direction: column; align-items: stretch; gap: 3px; }
.bqo-paidband .bqo-paid-top { display: flex; justify-content: space-between; align-items: baseline; }
.bqo-paidband .bqo-paid-bot { display: flex; justify-content: space-between; align-items: center; }
.bqo-paid-none { background: #83838B; }
.bqo-paid-part { background: #1D5FBF; }
.bqo-paid-full { background: #1E9E4B; }
.bqo-paid-over { background: #C70307; }
.bqo-paid-none .v .bqo-cad, .bqo-paid-part .v .bqo-cad, .bqo-paid-full .v .bqo-cad, .bqo-paid-over .v .bqo-cad { color: rgba(255,255,255,.75); }
.bqo-finband.bqo-total.bqo-total-settled { background: #83838B; }
.bqo-finband.bqo-total.bqo-total-settled .v .bqo-cad { color: rgba(255,255,255,.75); }
.bqo-receive { font-size: 10.5px; font-weight: 600; color: #fff; text-decoration: underline; cursor: pointer; opacity: .92; }
.bqo-receive:hover { opacity: 1; color: #fff; }
.bqo-receive i { margin-right: 4px; }
.bqo-balance { font-size: 10.5px; font-weight: 600; color: #fff; opacity: .92; }
.bqo-balance i { margin-right: 3px; }

/* Receive Payment dialog */
.bqpay-wrap { font-family: 'Outfit', Arial, sans-serif; color: #18181F; }
.bqpay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.bqpay-sum > div { background: #FAF9F7; border: 1px solid #E2DFDA; border-radius: 9px; padding: 8px 12px; }
.bqpay-sum span {
    display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: #9A9AA2; margin-bottom: 2px;
}
.bqpay-sum b { font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bqpay-sum .bqpay-ok { background: #EAF7EF; border-color: #BFE5CC; }
.bqpay-sum .bqpay-ok b { color: #1E9E4B; }
.bqpay-sum .bqpay-over { background: #FBEBEB; border-color: #F3C2C3; }
.bqpay-sum .bqpay-over b { color: #C70307; }
.bqpay-usebal {
    display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700;
    color: #C70307; cursor: pointer; white-space: nowrap;
}
.bqpay-usebal:hover { color: #A00206; text-decoration: underline; }
.bqpay-usebal i { margin-right: 3px; }

/* Currency box flashes red while a non-default currency has no exchange rate. */
.bqo-xr-missing { border-radius: 8px; animation: bqoXrFlash 1.1s ease-in-out infinite; }
.bqo-xr-missing .bqo-label { color: #C70307; font-weight: 700; }
@keyframes bqoXrFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(199,3,7,0); background: transparent; }
    50% { box-shadow: 0 0 0 3px rgba(199,3,7,.35); background: #FBEBEB; }
}
.bqpay-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 10px; }
.bqpay-field { display: flex; flex-direction: column; gap: 3px; }
.bqpay-field.bqpay-wide { grid-column: 1 / -1; }
.bqpay-field label {
    font-size: 9.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: #9A9AA2; margin: 0;
}
.bqpay-field input, .bqpay-field select {
    border: 1px solid #DDDAD5; border-radius: 7px; padding: 7px 10px;
    font-size: 13px; font-family: inherit; color: #18181F; background: #fff; outline: none;
}
.bqpay-field input:focus, .bqpay-field select:focus { border-color: #C70307; }
/* Payment allocation across orders */
.bqpay-alloc { background: #FAF9F7; border: 1px solid #E2DFDA; border-radius: 9px; padding: 10px 12px; margin-bottom: 10px; }
.bqpay-alloc-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bqpay-alloc-hd > span:first-child {
    font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9A9AA2;
}
.bqpay-alloc-hd .st { font-size: 11px; font-weight: 700; }
.bqpay-alloc-hd .st.ok { color: #1E9E4B; }
.bqpay-alloc-hd .st.warn { color: #C70307; }
.bqpay-alloc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #E8E6E2; }
.bqpay-alloc-row:last-of-type { border-bottom: 0; }
.bqpay-alloc-row .o { flex: 1; min-width: 0; font-size: 12.5px; color: #2B2B31; }
.bqpay-alloc-row .o b { font-weight: 700; margin-right: 6px; }
.bqpay-alloc-row .o .nm { color: #5B5B63; }
.bqpay-alloc-row .o .due { display: block; font-size: 10.5px; color: #9A9AA2; font-weight: 600; }
.bqpay-alloc-row input {
    flex: none; width: 120px; border: 1px solid #DDDAD5; border-radius: 7px; padding: 6px 9px;
    font-size: 13px; font-family: inherit; color: #18181F; background: #fff; outline: none; text-align: right;
}
.bqpay-alloc-row input:focus { border-color: #C70307; }
.bqpay-alloc-row .x { flex: none; color: #8E8E96; cursor: pointer; font-size: 12px; }
.bqpay-alloc-row .x:hover { color: #C70307; }
.bqpay-alloc-add { margin-top: 7px; }
.bqpay-alloc-add select {
    width: 100%; border: 1px dashed #C9C5BF; border-radius: 7px; padding: 7px 10px;
    font-size: 12px; font-family: inherit; color: #5B5B63; background: #fff; outline: none; cursor: pointer;
}
.bqpay-alloc-add select:focus { border-color: #C70307; }

.bqpay-err { color: #C70307; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.bqpay-save {
    font-family: 'Outfit', Arial, sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    background: #C70307; color: #fff; border: 1px solid #C70307; border-radius: 7px;
    padding: 9px 18px; cursor: pointer; transition: background .15s;
}
.bqpay-save:hover { background: #A00206; border-color: #A00206; }
.bqpay-save:disabled { opacity: .6; cursor: default; }
.bqpay-save i { margin-right: 5px; }
.bqpay-list-hd {
    font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: #6C6C74; margin: 16px 0 6px; padding-top: 12px; border-top: 1px dashed #DDDAD5;
}
.bqpay-list { max-height: 260px; overflow-y: auto; }
.bqpay-row {
    display: flex; align-items: center; gap: 10px; padding: 7px 2px;
    border-bottom: 1px solid #EFEDEA; font-size: 12.5px;
}
.bqpay-row .d { flex: none; width: 92px; color: #5B5B63; }
.bqpay-row .m { flex: 1; min-width: 0; color: #2B2B31; }
.bqpay-row .m .n { display: block; font-size: 11px; color: #9A9AA2; }
.bqpay-row .u { flex: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #9A9AA2; }
.bqpay-row .a { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.bqpay-row .x { flex: none; color: #8E8E96; cursor: pointer; font-size: 12px; font-weight: 600; }
.bqpay-row .x:hover { color: #C70307; }
.bqpay-row .x.cf { color: #C70307; text-decoration: underline; }
.bqo-finsep { border-top: 1px dashed #DDDAD5; margin: 4px 15px; }
.bqo-finfoot { padding: 7px 15px 10px; font-size: 10.5px; color: #9A9AA2; }

/* billing / shipping */
.bqo-addr-group { padding: 2px 0 8px; }
.bqo-addr-group + .bqo-addr-group { border-top: 1px dashed #E8E6E2; padding-top: 9px; }
.bqo-addr-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.bqo-addr-hd .t {
    font-family: 'Outfit', Arial, sans-serif; font-size: 9.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: #9A9AA2;
}
.bqo-addr-hd .e-dropdown-btn {
    font-size: 11px !important; color: #C70307 !important; font-weight: 600 !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
    padding: 1px 4px !important;
}
.bqo-who { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0; min-width: 0; }
.bqo-who img { width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid #E8E6E2; }
.bqo-who .t { min-width: 0; flex: 1; }
.bqo-who .r {
    font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #9A9AA2;
    font-family: 'Outfit', Arial, sans-serif;
}
.bqo-who .n { font-size: 12px; font-weight: 600; color: #1A1A20; line-height: 1.3; }
.bqo-who .s { font-size: 11px; color: #9A9AA2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bqo-missing { font-size: 11.5px; color: #C70307; font-weight: 600; padding: 3px 0; }

/* terms & notes */
.bqo-trow { padding: 7px 0; border-bottom: 1px dashed #E8E6E2; }
.bqo-trow:last-child { border-bottom: none; }
.bqo-trow-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.bqo-trow .bqo-lnk { color: #C70307; font-weight: 600; cursor: pointer; font-size: 10.5px; white-space: nowrap; }
.bqo-trow .bqo-lnk:hover { text-decoration: underline; }
.bqo-trow .e-input-group textarea.e-input { font-size: 12px !important; line-height: 1.5; }
.bqo-rail .e-input-group, .bqo-rail .e-input-group.e-control-wrapper {
    border-color: #E8E6E2 !important; border-radius: 7px;
}
.bqo-unitrow { display: flex; gap: 10px; }
.bqo-unitrow > div { flex: 1; min-width: 0; }

/* ---------- items tab (Usr_Order_Items) restyle, markup untouched ---------- */
.bqo-wrap .e-tab .e-content .table.dataTable thead tr {
    border-bottom: 1px solid #DDDAD5 !important;
}
.bqo-wrap .e-tab .e-content .table.dataTable thead th {
    font-family: 'Outfit', Arial, sans-serif !important; font-size: 10px !important;
    font-weight: 600 !important; letter-spacing: .14em !important;
    color: #9A9AA2 !important; padding-top: 8px; padding-bottom: 8px;
    background: #FCFBFA;
}
.bqo-wrap .bqo-item-row { background: #fff; }
.bqo-wrap .bqo-item-row > td { border-bottom: 1px solid #E8E6E2 !important; color: #2B2B31; }
.bqo-wrap .bqo-item-row:hover { background: #FBFAF8; }
.bqo-wrap .bqo-item-off { background: #F5F4F2; }
.bqo-wrap .bqo-item-off .iname, .bqo-wrap .bqo-item-off td { color: #9A9AA2; }
.bqo-wrap .e-tab .e-content .btn.btn-secondary.btn-sm {
    font-family: 'Outfit', Arial, sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: .05em; border-radius: 7px; background: #fff; color: #2B2B31;
    border: 1px solid #DDDAD5; padding: 5px 12px;
}
.bqo-wrap .e-tab .e-content .btn.btn-secondary.btn-sm:hover { border-color: #9A9AA2; background: #fff; }
.bqo-wrap .e-tab .e-content .page-heading {
    font-family: 'Outfit', Arial, sans-serif !important; font-size: 15px !important;
    letter-spacing: .02em;
}

/* scrollbars inside the popup */
.bqo-rail::-webkit-scrollbar, .bqo-metastrip::-webkit-scrollbar { width: 8px; height: 8px; }
.bqo-rail::-webkit-scrollbar-thumb, .bqo-metastrip::-webkit-scrollbar-thumb {
    background: #DDDAD5; border-radius: 99px;
}

/* responsive: let the rail drop under the main column on narrow windows */
@media (max-width: 1280px) {
    .bqo-body { flex-direction: column; overflow-y: auto; }
    .bqo-rail { width: 100%; overflow: visible; }
    .bqo-main { min-height: 480px; }
    .bqo-stepper { min-width: 0; }
    .bqo-dh-row { flex-wrap: wrap; }
}
