.navlink, .lang { color: #adb5bd; text-decoration: none; }
.navlink.on, .lang.on, .navlink:hover, .lang:hover { color: #fff; }
.lang { font-size: .85rem; }

.grid-wrap { overflow: auto; max-height: calc(100vh - 190px); background: #fff; border: 1px solid #dee2e6; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: .85rem; width: max-content; min-width: 100%; }
.grid th, .grid td { border-bottom: 1px solid #dee2e6; border-inline-end: 1px solid #eee; padding: .25rem .45rem; white-space: nowrap; background: #fff; }
.grid thead th { position: sticky; top: 0; z-index: 2; background: #f1f3f5; font-weight: 600; }
.grid tfoot td { position: sticky; bottom: 0; background: #f1f3f5; font-weight: 700; z-index: 2; }
.grid .stick { position: sticky; inset-inline-start: 0; z-index: 1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.grid thead .stick, .grid tfoot .stick { z-index: 3; }
.grid .n { text-align: end; font-variant-numeric: tabular-nums; direction: ltr; }
.grid input.cell { width: 6.2em; border: 1px solid transparent; background: #fffbe6; text-align: end; direction: ltr; }
.grid input.cell.short { width: 4.2em; }
.grid input.cell:focus { border-color: #0d6efd; outline: none; background: #fff; }
.grid input.cell:disabled, .grid select:disabled { background: transparent; color: inherit; }
.grid select { border: 0; background: #fffbe6; }
.grid button.sum { border: 0; background: none; color: #0d6efd; min-width: 5em; text-align: end; direction: ltr; }
.grid button.mini { border: 1px solid #ced4da; background: #fff; border-radius: 3px; font-size: .7rem; padding: 0 .25rem; }
.grid tr.saving td { opacity: .55; }
.neg { color: #dc3545; font-weight: 600; }
.badge-new { background: #d1e7dd; color: #0a3622; }
.badge-leaving { background: #f8d7da; color: #58151c; }

#toast { position: fixed; bottom: 1rem; inset-inline-end: 1rem; z-index: 2000; display: none; }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 8vh 1rem; overflow: auto; }
.modal-box { background: #fff; border-radius: .5rem; width: 100%; max-width: 620px; padding: 1rem; }
.auth-card { max-width: 400px; margin: 8vh auto; }
