.bm1-workspace { background:#fff; padding:20px; color:#17232d; }
.bm1-head,.bm1-pages { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bm1-head h1 { font-size:22px; margin:0; }
.bm1-head-actions { display:flex; gap:8px; }
.bm1-conditions { margin:14px 0 0; color:#637581; font-size:12px; }
.bm1-head button,.bm1-pages button { display:inline-flex; align-items:center; gap:7px; }
.bm1-queues { padding-top:18px; }
.bm1-queues [role="tablist"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.bm1-queues [role="tab"] { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px; min-height:76px; min-width:0; text-align:left; border:1px solid #d4dfe4; border-radius:4px; background:#f7f9fa; color:#17232d; padding:12px 14px; overflow-wrap:anywhere; }
.bm1-queues [role="tab"]:hover { background:#edf5f1; }
.bm1-queues [role="tab"][aria-selected="true"] { background:#e7f3ec; border-color:#28734f; box-shadow:inset 0 -2px #28734f; }
.bm1-queues [role="tab"]:focus-visible { outline:2px solid #28734f; outline-offset:2px; }
.bm1-queues span { font-size:14px; font-weight:600; }
.bm1-queues strong { font-size:16px; font-variant-numeric:tabular-nums; }
.bm1-queues small,.bm1-queues p { font-size:12px; color:#586975; }
.bm1-queues p { margin:8px 0 0; }
.bm1-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; padding:20px 0; border-bottom:1px solid #e1e7eb; }
.bm1-workspace label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; min-width:0; }
.bm1-filters input,.bm1-filters select { min-height:36px; }
.bm1-search { flex:1 1 240px; }
.bm1-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:20px 0; border-bottom:1px solid #e1e7eb; gap:20px; }
.bm1-totals span { display:block; font-size:13px; color:#586975; }
.bm1-totals strong { display:block; font-size:20px; margin-top:8px; overflow-wrap:anywhere; }
.bm1-warning strong { color:#a44019; }
.bm1-table-wrap { overflow-x:auto; max-width:100%; margin-top:18px; }
.bm1-table { width:100%; table-layout:fixed; min-width:1000px; border-collapse:collapse; font-size:13px; }
.bm1-table th { background:#f3f6f7; text-align:left; color:#586975; padding:12px 10px; }
.bm1-table td { padding:13px 10px; border-bottom:1px solid #e1e7eb; vertical-align:top; overflow-wrap:anywhere; }
.bm1-table th:nth-child(1) { width:17%; }.bm1-table th:nth-child(2) { width:17%; }.bm1-table th:nth-child(3) { width:26%; }
.bm1-table th:nth-child(4) { width:14%; text-align:right; }.bm1-table th:nth-child(5) { width:13%; }.bm1-table th:nth-child(6) { width:13%; }
.bm1-table small { display:block; font-size:11px; color:#637581; margin-top:5px; }
.bm1-table td:last-child button { margin-bottom:5px; }
.bm1-amount { text-align:right; font-variant-numeric:tabular-nums; font-weight:700; }
.bm1-amount.income { color:#197043; }.bm1-amount.expense { color:#a44019; }
.bm1-status { display:inline-block; padding:4px 6px; border-radius:4px; background:#fff2d9; color:#8e4c10; }
.bm1-status.allocated { background:#e0f4e8; color:#197043; }
.bm1-pages { justify-content:end; padding-top:16px; font-size:13px; }.bm1-pages span { margin-right:auto; }
.bm1-error { padding:10px 12px; background:#fff1ef; border-left:3px solid #bd4034; color:#9a2d22; font-size:13px; }
.bm1-overlay { position:fixed; inset:0; z-index:210; background:#16273566; display:flex; align-items:center; justify-content:center; padding:24px; }
.bm1-dialog { width:min(680px,100%); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; background:#fff; border-radius:8px; box-shadow:0 14px 50px #0003; overflow:hidden; }
.bm1-dialog header,.bm1-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid #e1e7eb; }
.bm1-dialog h2 { margin:0; font-size:18px; }
.bm1-dialog-body { padding:20px; overflow:auto; display:grid; gap:16px; }
.bm1-dialog-body input,.bm1-dialog-body select,.bm1-dialog-body textarea { width:100%; min-width:0; min-height:36px; box-sizing:border-box; }
.bm1-fact { display:grid; gap:7px; background:#f3f6f7; padding:12px; border-radius:4px; font-size:13px; }
.bm1-fact strong { font-size:22px; }.bm1-fact p { margin:0; overflow-wrap:anywhere; }.bm1-fact span { color:#637581; }
.bm1-dialog footer { border-top:1px solid #e1e7eb; border-bottom:0; justify-content:end; }
.bm1-dialog fieldset { border:1px solid #dae3e8; border-radius:4px; margin:0; padding:12px; }
.bm1-dialog legend { font-size:13px; font-weight:600; }
.bm1-dialog .bm1-receipt { flex-direction:row; align-items:center; gap:10px; padding:8px 0; }
.bm1-receipt input { width:16px; min-height:16px; flex:none; }.bm1-receipt span { flex:1; }.bm1-receipt b { white-space:nowrap; font-size:13px; }
.bm1-allocation-preview { padding-top:12px; border-top:1px solid #e1e7eb; font-size:13px; }
.bm1-picker { position:relative; }.bm1-results { position:absolute; top:100%; left:0; right:0; max-height:220px; overflow:auto; background:#fff; border:1px solid #d8e2e8; box-shadow:0 8px 20px #0002; z-index:2; }
.bm1-results[hidden] { display:none; }.bm1-results button { display:block; width:100%; text-align:left; border:0; border-radius:0; padding:10px 12px; background:#fff; }.bm1-results button:hover,.bm1-results button:focus { background:#edf6f1; }.bm1-results small { display:block; color:#637581; }
.bm1-dialog details { font-size:13px; }.bm1-dialog details p { padding:8px 0; margin:0; border-bottom:1px solid #e1e7eb; overflow-wrap:anywhere; }
.bank-movement-tabs { display:flex; gap:8px; margin-bottom:12px; }
.dc-workspace { padding:20px; background:#fff; color:#17232d; }
.dc-workspace label { display:flex; flex-direction:column; gap:6px; font-size:13px; min-width:0; }
.dc-workspace h2 { font-size:16px; margin:20px 0 0; }
.dc-totals { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; padding:20px 0 14px; border-bottom:1px solid #e1e7eb; }
.dc-totals span { font-size:12px; color:#586975; display:block; min-height:32px; }
.dc-totals strong { display:block; font-size:19px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.dc-negative { color:#a44019; }.dc-income { color:#197043; }
.dc-balance-note,.dc-pending { font-size:13px; color:#735216; }.dc-groups { margin-top:20px; }
.dc-table { width:100%; min-width:850px; table-layout:fixed; border-collapse:collapse; font-size:13px; }
.dc-table th,.dc-table td { padding:12px; text-align:left; border-bottom:1px solid #e1e7eb; vertical-align:top; overflow-wrap:anywhere; }
.dc-table th { background:#f3f6f7; color:#586975; }
.dc-table small { display:block; margin-top:5px; color:#637581; }
.dc-table th:nth-last-child(2),.dc-table td:nth-last-child(2),.dc-table th:nth-last-child(3),.dc-table td:nth-last-child(3) { text-align:right; font-variant-numeric:tabular-nums; }
.dc-table th:last-child { width:92px; }.dc-detail { background:#f7f9fa; }
.dc-detail dl { display:grid; grid-template-columns:160px minmax(0,1fr); gap:8px; text-align:left; }.dc-detail dd { margin:0; }
.dc-empty { padding:48px 0; text-align:center; color:#637581; }
.bm1-delivery-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media(max-width:1100px) { .dc-totals { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) { .bm1-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }.bm1-workspace { padding:14px; }.bm1-queues [role="tablist"] { grid-template-columns:repeat(2,minmax(0,1fr)); }.bm1-queues [role="tab"]:last-child { grid-column:1/-1; } }
