[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { background: #f3f5f7; }
.page { min-height: 100vh; }
.page-wrapper { min-width: 0; }
.navbar-vertical { background: #19272f; border-right: 1px solid #263941; }
.navbar-vertical .navbar-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.navbar-vertical .nav-link { width: 100%; border: 0; color: #bacbd1; text-align: left; cursor: pointer; background: transparent; }
.navbar-vertical .nav-link:hover { color: #fff; background: #263941; }
.navbar-vertical .nav-link.active { color: #fff; background: #146f73; }
.navbar-vertical .nav-link-icon { color: inherit; }
.navbar-vertical .navbar-toggler { color: #fff; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; background: #16898a; color: #fff; font-size: 20px; flex: none; }
.header-inner, .header-account, .key-controls, .filter-bar, .filter-actions, .pager, .pager-actions { display: flex; align-items: center; }
.navbar .header-inner { justify-content: flex-end; min-height: 52px; }
.header-account { gap: 16px; min-width: 0; }
.header-account #current-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card { border-radius: 6px; }
.key-controls { gap: 8px; flex-wrap: wrap; }
.key-controls input { max-width: 560px; min-width: 220px; flex: 1; }
.filter-bar { gap: 12px; flex-wrap: wrap; align-items: end; }
.filter-field { min-width: 180px; }
.filter-field .form-label { margin-bottom: 5px; }
.filter-actions { gap: 8px; }
.filter-actions .btn, .card-actions .btn, .selection-actions .btn { white-space: nowrap; }
.table-card { position: relative; }
.list-header { gap: 12px; flex-wrap: wrap; }
.list-header .card-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--tblr-primary-bg-subtle); border-bottom: 1px solid var(--tblr-border-color); color: var(--tblr-primary); font-weight: 600; }
.selection-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.table-card .table-responsive { min-height: 130px; }
.table-card table { margin-bottom: 0; }
.table-card th, .table-card td { white-space: nowrap; vertical-align: middle; }
.table-card th:nth-last-child(2), .table-card td:nth-last-child(2) { min-width: 170px; }
.table-card th.row-actions-column, .table-card td.row-actions-column { position: sticky; right: 0; z-index: 1; width: 92px; min-width: 92px; max-width: 92px; padding-inline: 10px; text-align: center; background: var(--tblr-bg-surface, #fff); box-shadow: -1px 0 var(--tblr-border-color); }
.table-card th.row-actions-column { z-index: 2; }
.table-card td.row-actions-column:has(.dropdown-menu.show) { z-index: 3; }
.table-card td.row-actions-column .btn { white-space: nowrap; }
.table-card td.key-cell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; font-family: Consolas, monospace; font-size: 12px; }
.table-card td.empty-cell { padding: 34px 12px; text-align: center; color: #7c8a92; }
.pager { justify-content: space-between; gap: 12px; min-height: 58px; }
.pager-actions { gap: 8px; }
.pager-actions .form-select { width: 78px; }
.table-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgb(255 255 255 / 65%); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(390px, 100%); }
.login-brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 19px; font-weight: 700; color: #22343b; }
.login-card { box-shadow: 0 12px 36px rgb(25 39 47 / 8%); }
.modal .modal-dialog { max-width: min(480px, calc(100% - 24px)); }
.modal-title { font-size: 17px; }
#toast-container { z-index: 1100; }
@media (max-width: 991.98px) {
  .navbar-vertical { border-right: 0; }
  .navbar-vertical .container-fluid { align-items: center; }
  .navbar-vertical .navbar-collapse { width: 100%; }
  .navbar-vertical .navbar-nav { padding-bottom: 12px; }
}
@media (max-width: 575.98px) {
  .header-inner { gap: 12px; }
  .header-account { gap: 4px; }
  .header-account #current-user { max-width: 130px; font-size: 12px; }
  .header-account .btn span { display: none; }
  .filter-field { width: 100%; }
  .filter-actions { width: 100%; }
  .list-header .card-actions { width: 100%; margin-left: 0; }
  .selection-bar { align-items: flex-start; flex-wrap: wrap; }
  .selection-actions { justify-content: flex-start; width: 100%; }
  .pager { flex-wrap: wrap; }
  .key-controls input { min-width: 100%; }
}
