/* Shared BK list/history rhythm. Forms and expanded content retain their layouts. */
body.bk-workspace{--bk-list-icon:22px;--bk-list-row:36px;--bk-list-font:13px;--bk-history-font:12px}
.bk-workspace .order-line,.bk-workspace .customer-row,.bk-workspace .catalog-row{font-size:var(--bk-list-font);min-height:var(--bk-list-row);box-sizing:border-box;align-items:center}
.bk-workspace .order-line>:not(.order-indicators),.bk-workspace .customer-row>*,.bk-workspace .catalog-row>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.bk-workspace .tablewrap td,.bk-workspace .tablewrap th{white-space:nowrap;height:var(--bk-list-row);box-sizing:border-box;font-size:var(--bk-list-font)}
.bk-workspace .order-indicators .status-dot,.bk-workspace .order-indicators .saby-dot,.bk-workspace .order-line .jd-row-edit{width:var(--bk-list-icon)!important;height:var(--bk-list-icon)!important;min-width:var(--bk-list-icon)!important;min-height:var(--bk-list-icon)!important;padding:2px!important;flex:0 0 var(--bk-list-icon)}
.bk-workspace .status-dot svg,.bk-workspace .oc-status-picker button svg{width:17px;height:17px;display:block}
.bk-workspace .status-dot.bk-ready{background:#bef264;color:#365314}.bk-workspace .status-dot.bk-new{background:#edf0f3;color:#87929e}.bk-workspace [data-status-open].green{background:#078548;color:#fff}.bk-workspace [data-status-open].red{background:#d92d20;color:#fff}
.bk-workspace #order-history,.bk-workspace .oc-stage-log,.bk-workspace .jd-fin-ledger,.bk-workspace .bk-payment-history,.bk-workspace #customer-payment-history{font-family:inherit;font-size:var(--bk-history-font);line-height:1.25}
.bk-workspace .bk-payment-history{margin-top:12px}.bk-payment-history h3{font-family:inherit;font-size:12px;font-weight:600;line-height:1.25;margin:6px 0}.bk-payment-history-row{display:grid;grid-template-columns:70px minmax(70px,1fr) auto minmax(60px,1fr);gap:8px;align-items:center;height:30px;border-bottom:1px solid #8795a51c}.bk-payment-history-row>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font:inherit}.bk-payment-history-row button{padding:0!important;min-height:0!important;text-align:left;background:transparent;border:0;color:var(--accent,#3987c6)}.bk-payment-history summary{cursor:pointer;padding:6px 0}.bk-payment-history [hidden]{display:none}

.bk-workspace .order-line,.bk-workspace .customer-row,.bk-workspace .catalog-row{height:var(--bk-list-row)}
.bk-workspace #order-history :is(p,span,small,time),.bk-workspace .jd-fin-ledger :is(b,small,button),.bk-workspace #customer-payment-history :is(td,th){font-family:inherit;font-size:var(--bk-history-font);line-height:1.25}

/* The row track includes padding and borders, even before the column controller mounts. */
body.bk-workspace #content .receipt-workspace .receipt-grid:not(.files) .receipt-review-card,
body.bk-workspace #content .receipt-grid:not(.files) .receipt-review-card.bk-grid-row{
 --receipt-line:max(36px,var(--bk-list-row,36px));
 box-sizing:border-box!important;height:var(--receipt-line)!important;min-height:var(--receipt-line)!important;max-height:var(--receipt-line)!important;
 grid-template-rows:minmax(0,1fr)!important;grid-auto-rows:0!important;align-items:center!important;
 padding-block:1px!important;margin-block:0!important;row-gap:0!important;overflow:hidden!important
}
#content .receipt-grid .receipt-review-card :is(.receipt-comments,.receipt-alerts){min-width:0;white-space:nowrap!important;align-items:center;flex-direction:row!important;flex-wrap:nowrap!important;gap:5px;line-height:1.2}
#content .receipt-grid .receipt-review-card .receipt-comments{display:inline-flex;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
#content .receipt-grid .receipt-comments::-webkit-scrollbar{display:none}
#content .receipt-grid .receipt-comments>*{flex:0 0 auto;white-space:nowrap!important}
#content .receipt-grid .receipt-comments .file-duplicate-note{flex-wrap:nowrap!important;margin:0!important;max-width:none!important}
#content .receipt-grid .receipt-review-card :is(.receipt-docs,.receipt-alerts,.receipt-delete) button{max-height:30px!important;min-height:0!important;margin-block:0!important}
#content .receipt-grid .receipt-upload-date{font:inherit;white-space:nowrap;font-variant-numeric:tabular-nums}
#content .receipt-grid .receipt-bank-row-link{font:inherit;white-space:nowrap;text-decoration:underline}

/* Center workspace modal dialogs within the visible viewport. */
body.bk-workspace dialog[open]:modal { position:fixed!important; inset:0!important; margin:auto!important; transform:none!important; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }
