html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
  --table-border-color: #d9e1ea;
  --table-head-bg: #f4f7fb;
  --table-head-color: #1f3147;
  --table-row-hover-bg: #eef5ff;
  --table-row-stripe-bg: #f9fbfe;
  --table-filter-border: #c6d3e2;
}

main.pb-3 {
  width: 100%;
}

.app-shell {
  max-width: none;
  padding-left: clamp(0.85rem, 1.6vw, 1.6rem);
  padding-right: clamp(0.85rem, 1.6vw, 1.6rem);
}

.table-pro-shell {
  overflow: hidden;
  border: 1px solid var(--table-border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.table-pro {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #1f2937;
  width: 100%;
}

.table-pro.table-dense {
  table-layout: fixed;
  font-size: 0.825rem;
}

.table-pro > :not(caption) > * > * {
  padding: 0.42rem 0.56rem;
  border-color: var(--table-border-color);
  vertical-align: middle;
}

.table-pro > thead > tr > th {
  background: var(--table-head-bg);
  color: var(--table-head-color);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-pro.table-dense > :not(caption) > * > * {
  padding: 0.25rem 0.4rem;
  line-height: 1.15;
}

.table-pro.table-dense > thead > tr > th {
  font-size: 0.68rem;
}

.table-pro.table-dense > tbody > tr > td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-pro.table-dense > tbody > tr > td.col-actions,
.table-pro.table-dense > tbody > tr > td.col-select,
.table-pro.table-dense > thead > tr > th.col-actions,
.table-pro.table-dense > thead > tr > th.col-select {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.table-pro.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: var(--table-row-stripe-bg);
}

.table-pro.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--table-row-hover-bg);
}

.table-pro .btn.btn-sm {
  --bs-btn-padding-y: 0.16rem;
  --bs-btn-padding-x: 0.45rem;
  --bs-btn-font-size: 0.72rem;
}

table.dataTable.table-pro > thead > tr > th,
table.dataTable.table-pro > thead > tr > td,
table.dataTable.table-pro > tbody > tr > th,
table.dataTable.table-pro > tbody > tr > td {
  padding: 0.25rem 0.4rem !important;
  border-bottom-color: var(--table-border-color);
}

table.dataTable.table-pro thead tr:nth-child(2) th {
  background: #fff;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
}

table.dataTable.table-pro thead tr:nth-child(2) th:empty {
  padding: 0.12rem !important;
}

table.dataTable.table-pro thead input {
  width: 100%;
  min-width: 65px;
  padding: 0.1rem 0.32rem;
  border: 1px solid var(--table-filter-border);
  border-radius: 5px;
  font-size: 0.7rem;
  line-height: 1.05;
  height: 1.55rem;
  box-sizing: border-box;
}

.table-pro-shell .dataTables_wrapper {
  width: 100%;
}

.table-pro-shell .dataTables_scroll {
  width: 100%;
}

.table-pro-shell .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.datatable-search {
  width: 100%;
  max-width: 320px;
  height: 1.7rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--table-filter-border);
  border-radius: 6px;
  font-size: 0.75rem;
}

.datatable-search-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cell-truncate {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.columns-resizable th.resizable-header {
  position: relative;
  user-select: none;
}

.columns-resizable .col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}

.columns-resizable .col-resizer:hover {
  background: rgba(44, 105, 201, 0.2);
}

.lgc-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1080;
}

.lgc-overlay.is-visible {
  display: flex;
}

.lgc-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.35);
}

.lgc-overlay__dialog {
  position: relative;
  z-index: 1;
  min-width: min(320px, calc(100vw - 2rem));
  max-width: 460px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--table-border-color);
  border-radius: 0.3rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #212529;
}

.lgc-overlay__spinner {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.lgc-overlay__message {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

body.lgc-overlay-open {
  cursor: progress;
}

.lgc-is-busy {
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .app-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .table-pro {
    font-size: 0.82rem;
  }
}
