#adminPage .sheet-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0}
#adminPage .sheet-tools button,#adminPage .sheet-tools select,#adminPage .sheet-tools input{border:1px solid #b6c8d4;border-radius:3px;background:#fff;padding:5px 7px;font:12px Arial,sans-serif;color:#29475b;height:30px}
#adminPage .sheet-tools button{cursor:pointer}#adminPage .sheet-tools button:hover{background:#eaf3f9}
#adminPage .sheet-tools label{font:11px Arial,sans-serif;display:flex;align-items:center;gap:5px;margin-left:7px}
#adminPage .sheet-tools input{width:65px;text-align:center}
#adminPage .sheet-formula{display:flex;align-items:center;border:1px solid #b5c6d2;background:#f0f4f6;height:34px;margin-bottom:6px}
#adminPage .sheet-formula span{min-width:45px;text-align:center;font:12px Arial,sans-serif}
#adminPage .sheet-formula input{flex:1;min-width:0;border:0;border-left:1px solid #bacbd5;height:32px;padding:5px 10px;font:13px Arial,sans-serif}
#adminPage .sheet-scroll{overflow:auto;max-height:62vh;border:1px solid #aebfcc;background:#fff}
#adminPage .sheet-table{table-layout:fixed;border-spacing:0;width:max-content;border-collapse:separate;font:12px Arial,sans-serif}
#adminPage .sheet-table td,#adminPage .sheet-table th{padding:0;border-right:1px solid #d6dfe5;border-bottom:1px solid #d6dfe5;height:28px}
#adminPage .sheet-table th{background:#edf2f5;color:#536773;font-weight:400;text-align:center}
#adminPage .sheet-table thead th{position:sticky;top:0;z-index:3;height:28px}
#adminPage .sheet-table tbody th{position:sticky;left:0;z-index:2}
#adminPage .sheet-table thead th:first-child{left:0;z-index:4}
#adminPage .sheet-table input{display:block;width:100%;height:100%;min-height:27px;border:0;border-radius:0;padding:3px 5px;font:13px Arial,sans-serif;color:#243e4e;outline:0}
#adminPage .sheet-table input:focus{outline:0}
#adminPage .sheet-table td.sheet-selected{background:#f4f9fd}
#adminPage .sheet-table td.sheet-current{box-shadow:inset 0 0 0 2px #21864e}
#adminPage .sheet-help{font-size:11px;line-height:1.6;color:#697f8e;margin-top:7px}
#adminPage .sheet-selection-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 10px;font-size:12px;}
#adminPage .sheet-selection-tools label{display:flex;align-items:center;gap:5px;}
#adminPage .sheet-selection-tools select,#adminPage .sheet-selection-tools input{height:30px;border:1px solid #b6c8d4;border-radius:3px;background:#fff;padding:4px 7px;}
#adminPage .sheet-selection-tools input{flex:1;min-width:180px;font-family:monospace;}
#adminPage .sheet-table [data-sheet-select-row],#adminPage .sheet-table [data-sheet-select-col]{cursor:pointer;}
#adminPage .sheet-table th.sheet-axis-selected{background:#c9e2f3;color:#1d4b68;font-weight:bold;}
#adminPage .sheet-table [data-sheet-select-row]:focus-visible,#adminPage .sheet-table [data-sheet-select-col]:focus-visible{outline:2px solid #21864e;outline-offset:-2px;}
#adminPage .sheet-dragging .sheet-table,#adminPage .sheet-dragging .sheet-table :is(input,textarea){user-select:none;cursor:cell;}

/* T52.6.91: reliable Excel-style mouse range selection. */
#adminPage .sheet-table [data-sheet-cell]{touch-action:none;}
#adminPage .sheet-dragging,#adminPage .sheet-dragging *{user-select:none!important;-webkit-user-select:none!important;}
#adminPage .sheet-dragging .sheet-table [data-sheet-cell]{cursor:cell!important;}

#adminPage .sheet-table .sheet-column-select{display:flex;align-items:center;justify-content:center;gap:4px;min-height:18px;padding:1px 3px;}
#adminPage .sheet-table .sheet-column-select input[type=checkbox],#adminPage .sheet-table input[data-sheet-check-all-cols]{appearance:auto;display:inline-block;width:14px;height:14px;min-height:14px;padding:0;margin:0;accent-color:#1475ac;cursor:pointer;}
#adminPage .sheet-table .sheet-column-select .sheet-column-letter{display:inline-block;padding:0;}
#adminPage .sheet-table th.sheet-axis-selected .sheet-column-select{background:#c9e2f3;}

/* T52.6.93: robust native mouse selection and explicit row/column selectors. */
#adminPage .sheet-table input[type=checkbox][data-sheet-check],
#adminPage .sheet-table input[type=checkbox][data-sheet-check-all],
#adminPage .sheet-table input[type=checkbox][data-sheet-check-col],
#adminPage .sheet-table input[type=checkbox][data-sheet-check-all-cols]{
  appearance:auto;display:inline-block;width:14px!important;height:14px!important;min-width:14px;min-height:14px;padding:0!important;margin:0;accent-color:#1475ac;cursor:pointer;
}
#adminPage .sheet-table th:has(>input[data-sheet-check]),
#adminPage .sheet-table th:has(>input[data-sheet-check-all]){text-align:center;vertical-align:middle;}
#adminPage .sheet-table .sheet-column-select{display:grid;grid-template-columns:20px minmax(24px,1fr);align-items:center;justify-items:center;gap:2px;width:100%;padding:1px 3px;box-sizing:border-box;}
#adminPage .sheet-table .sheet-column-letter[data-sheet-column-handle]{display:block;width:100%;min-height:18px;line-height:18px;cursor:cell;user-select:none;-webkit-user-select:none;}


/* T52.6.93: make the REAL editable control visibly selected, not only its TD. */
#adminPage .sheet-table td.sheet-selected{
  background:#f4f9fd!important;
  box-shadow:inset 0 0 0 1px #5b9bc4!important;
}
#adminPage .sheet-table td.sheet-selected > input[data-sheet-cell],
#adminPage .sheet-table td.sheet-selected > textarea[data-sheet-cell]{
  background:#f4f9fd!important;
  box-shadow:inset 0 0 0 1px #5b9bc4!important;
}
#adminPage .sheet-table td.sheet-current > input[data-sheet-cell],
#adminPage .sheet-table td.sheet-current > textarea[data-sheet-cell]{
  box-shadow:inset 0 0 0 2px #21864e!important;
}
#adminPage .sheet-table tbody tr.sheet-row-selected > th,
#adminPage .sheet-table th.sheet-axis-selected{
  background:#bcdcf0!important;
  color:#173f59!important;
  font-weight:700!important;
}
#adminPage .sheet-table tbody tr.sheet-row-selected > th input[type=checkbox],
#adminPage .sheet-table th.sheet-axis-selected input[type=checkbox]{
  accent-color:#0b6fa4;
}
#adminPage .sheet-selection-summary{
  display:inline-flex;align-items:center;min-height:30px;padding:4px 9px;border:1px solid #8fb9d4;border-radius:3px;background:#eef7fc;color:#174e70;font-weight:700;
}

/* T52.6.94: make the proven T52.6.93 selection treatment explicit on every Accounting journal and RECON sheet. */
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected,
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected > input[data-sheet-cell],
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected > textarea[data-sheet-cell]{
  background:#f4f9fd!important;
}
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected{
  box-shadow:inset 0 0 0 1px #5b9fc7!important;
}
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected > input[data-sheet-cell],
#adminPage .bank-spreadsheet .sheet-table td.sheet-selected > textarea[data-sheet-cell]{
  box-shadow:inset 0 0 0 1px #5b9fc7!important;
}
#adminPage .bank-spreadsheet .sheet-table th.sheet-axis-selected,
#adminPage .bank-spreadsheet .sheet-table tr.sheet-row-selected > th{
  background:#c9e2f3!important;
  color:#1d4b68!important;
  font-weight:700!important;
}
#adminPage .bank-spreadsheet .sheet-selection-summary{
  min-width:190px;
}

#adminPage .sheet-table td.sheet-merged-cell{vertical-align:top;overflow:hidden}
#adminPage .sheet-table td.sheet-merged-cell textarea{display:block;box-sizing:border-box;width:100%;border:0;border-radius:0;resize:none;white-space:pre-wrap;overflow:auto;padding:5px;text-align:left;min-height:28px;line-height:1.4}
