/* Choosing several things and acting on them (assets/js/davix-h2i-bulk.js and davix-h2i-action-dialog.js): the checkbox, the bar with the
 * actions, and the pop-up of an action. The same on the Admin Portal, the Dashboard and Studio. */
table.dt th.bk-col,table.dt td.bk-col,.rc-table th.bk-col,.rc-table td.bk-col{width:44px;min-width:44px;padding:0;text-align:center;}
.bk-hit{display:grid;place-items:center;width:44px;min-height:44px;margin:0;cursor:pointer;position:relative;}
.bk-hit input{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:pointer;}
.bk-box{width:18px;height:18px;box-sizing:border-box;border-radius:6px;border:2px solid var(--border-strong);background:var(--surface-2);pointer-events:none;display:grid;place-items:center;transition:background .12s,border-color .12s;}
.bk-box::after{content:'';width:9px;height:5px;border-left:2px solid var(--on-accent,#2a0619);border-bottom:2px solid var(--on-accent,#2a0619);transform:translateY(-1px) rotate(-45deg);opacity:0;}
.bk-hit input:checked+.bk-box{background:var(--accent);border-color:var(--accent);} .bk-hit input:checked+.bk-box::after{opacity:1;}
.bk-hit input:indeterminate+.bk-box{background:var(--accent);border-color:var(--accent);} .bk-hit input:indeterminate+.bk-box::after{width:9px;height:0;border-left:0;transform:none;opacity:1;}
.bk-hit input:focus-visible+.bk-box{outline:2px solid var(--accent);outline-offset:2px;}
.bk-hit input:disabled+.bk-box{opacity:.4;}
table.dt tbody tr.bk-on td,.rc-table tbody tr.bk-on td{background:var(--accent-soft);}

/* stays at the bottom of the screen while you scroll a long list */
.bk-bar{position:sticky;bottom:12px;z-index:30;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;margin:12px 0 0;padding:10px 14px;border:1px solid var(--accent);border-radius:14px;background:var(--surface);box-shadow:0 14px 40px rgba(0,0,0,.55);}
.bk-bar[hidden]{display:none;}
.bk-count{display:flex;align-items:center;gap:6px;font-size:13.5px;} .bk-count b{font-size:15px;color:var(--accent);}
.bk-clear{margin-inline-start:6px;border:0;background:none;padding:6px 4px;color:var(--text-muted);font:inherit;font-size:12.5px;font-weight:700;text-decoration:underline;cursor:pointer;}
.bk-clear:hover,.bk-clear:focus-visible{color:var(--accent);}
.bk-actions{display:flex;flex-wrap:wrap;gap:8px;}
.bk-actions .btn{min-height:36px;}
@media (max-width:560px){ .bk-bar{bottom:8px;padding:10px;} .bk-actions{width:100%;} .bk-actions .btn{flex:1 1 calc(50% - 8px);justify-content:center;} }

/* the pop-up of an action */
.ad-bg{z-index:700;}
.modal.ad{display:flex;flex-direction:column;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);width:min(460px,calc(100vw - 20px));max-width:calc(100vw - 20px);}
.modal.ad.ad-wide{width:min(640px,calc(100vw - 20px));}
.ad .modal-head,.ad .modal-foot,.ad-error{flex:none;}
.ad-body{flex:1;min-height:0;overflow:auto;}
.ad .modal-foot{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.ad-error{margin:0 18px;padding:9px 12px;border:1px solid var(--danger,#ff5a5a);border-radius:10px;background:rgba(255,90,90,.12);color:var(--text);font-size:12.5px;line-height:1.45;overflow-wrap:anywhere;}
.ad-error[hidden]{display:none;}
.ad-lead{margin:0 0 10px;font-size:13px;line-height:1.5;}
.ad-note{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--text-muted);}
.ad-plan{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:12.5px;}
.ad-chips{display:flex;flex-wrap:wrap;gap:6px;}
.ad-chip{padding:3px 9px;border-radius:99px;background:var(--accent-soft);color:var(--accent);font-size:11.5px;font-weight:700;}
.ad-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;align-items:start;}
.ad-grid .ad-all{grid-column:1/-1;}
.ad-grid input,.ad-grid textarea{width:100%;box-sizing:border-box;}
.ad-grid textarea{resize:vertical;min-height:80px;}
.ad-grid small{display:block;margin-top:4px;font-size:11.5px;color:var(--text-faint);}
.ad-body h4{margin:14px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-faint);}
.ad-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;}
.ad-list li{display:flex;flex-wrap:wrap;gap:2px 10px;justify-content:space-between;padding:8px 10px;border:1px solid var(--border);border-radius:9px;font-size:12.5px;}
.ad-list b{overflow-wrap:anywhere;} .ad-list span{color:var(--text-muted);}
.ad-names{max-height:150px;overflow:auto;margin:0 0 4px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:12.5px;line-height:1.6;overflow-wrap:anywhere;}
.ad-keys{width:100%;box-sizing:border-box;min-height:150px;font-family:var(--font-mono,ui-monospace,monospace);font-size:12px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);color:var(--text);white-space:pre;overflow:auto;resize:vertical;}
.ad-warn{margin:10px 0 0;padding:9px 12px;border:1px solid #d99a1b;border-radius:10px;background:rgba(217,154,27,.12);font-size:12.5px;line-height:1.5;}


/* "Select all on this page" with its words, above a grid of cards */
.bk-hit.bk-hit-text{display:inline-flex;align-items:center;gap:9px;width:auto;min-height:36px;padding:0 4px;font-size:12.5px;font-weight:700;color:var(--text-muted);}
.bk-hit.bk-hit-text input{inset-inline-start:4px;}
.bk-allrow{display:flex;align-items:center;margin:0 0 8px;}
.bk-allrow[hidden]{display:none;}
/* the checkbox in the corner of a card */
.bk-corner{position:absolute;top:2px;inset-inline-start:2px;z-index:2;}
.bk-corner .bk-hit{width:40px;min-height:40px;}
.bk-corner .bk-box{width:20px;height:20px;background:var(--surface);box-shadow:0 2px 10px rgba(0,0,0,.45);}
[data-bk-row].bk-on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
/* the checkbox column of a records table takes only the room it needs */
.rc-table th.bk-col,.rc-table td.bk-col{width:1%;}
