body {
  min-height: 100vh;
  background: #f7faf7;
}

.container {
  width: 75%;
  max-width: 75%;
}

@media (max-width: 767.98px) {
  .container {
    width: 100%;
    max-width: 100%;
  }
}

#hoofd-menu .btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#hoofd-menu .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.75rem rgba(25, 135, 84, 0.2);
}

.form-check-input:checked {
  background-color: #198754;
  border-color: #198754;
}

fieldset legend {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.sortable-table caption {
  color: inherit;
}

.sortable-table .sort-btn {
  color: inherit;
  font-weight: 600;
}

.sortable-table .sort-indicator {
  font-size: 0.75em;
  margin-left: 0.15rem;
}

.link-disabled {
  cursor: default;
  user-select: none;
}

.kaart-hover-preview {
  position: fixed;
  z-index: 1080;
  width: 200px;
  height: 200px;
  pointer-events: none;
  border: 1px solid #adb5bd;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.kaart-hover-preview img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.list-group-item.active {
  background-color: #198754;
  border-color: #198754;
}

.beheer-table th {
  white-space: nowrap;
}

.tellers-thead,
.beheer-thead {
  --bs-table-bg: #198754;
  --bs-table-color: #fff;
  --bs-table-border-color: #157347;
  color: #fff;
}

.tellers-thead th,
.beheer-thead th {
  background-color: #198754 !important;
  color: #fff !important;
  border-bottom: 0;
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
  white-space: nowrap;
}

.tellers-sort-btn,
.beheer-sort-btn {
  color: #fff !important;
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.45rem;
  border-radius: 0.35rem;
}

.tellers-sort-btn:hover,
.tellers-sort-btn:focus,
.tellers-sort-btn.active,
.beheer-sort-btn:hover,
.beheer-sort-btn:focus,
.beheer-sort-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.tellers-sort-btn .sort-icon,
.beheer-sort-btn .sort-icon {
  opacity: 0.75;
  font-size: 0.85em;
}

.tellers-actions-label,
.beheer-actions-label {
  display: inline-block;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.25rem 0.45rem;
}

.tellers-table tbody td,
.beheer-data-table tbody td {
  vertical-align: middle;
}

.sector-use-row.is-on > td {
  background-color: #d1e7dd !important;
}

.sector-use-row.is-off > td {
  background-color: #f8d7da !important;
}

.sector-use-row.is-on .form-check-label {
  color: #198754;
  font-weight: 600;
}

.sector-use-row.is-off .form-check-label {
  color: #dc3545;
  font-weight: 600;
}

.telling-sectoren-table .form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.telling-not-open td {
  font-style: italic;
  color: #5c636a;
}

.telrooster-layout .min-h-pool {
  min-height: 12rem;
}

.rooster-grid-scroll {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.rooster-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rooster-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.rooster-row-label {
  flex: 0 0 9.5rem;
  max-width: 9.5rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  line-height: 1.25;
}

.rooster-row-label-reserve {
  background-color: #6c757d;
  color: #fff;
  border-right-color: #5c636a;
}

.rooster-row-status {
  flex: 0 0 13rem;
  max-width: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  border-right: 1px solid #dee2e6;
  font-size: 0.75rem;
  line-height: 1.25;
}

.rooster-status-ok {
  font-size: 2rem;
  color: #198754;
}

.rooster-status-problems {
  padding-left: 1.1rem;
  margin: 0;
  color: #212529;
}

.rooster-status-problems li {
  margin-bottom: 0.15rem;
}

.rooster-row-slots {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.5rem;
  min-width: 0;
}

.rooster-slot {
  flex: 1 1 0;
  min-width: 8.5rem;
  min-height: 4.25rem;
  border: 2px dashed #dee2e6;
  border-radius: 0.375rem;
  padding: 0.25rem;
  background: #fafafa;
  transition: border-color 0.15s, background-color 0.15s;
}

.rooster-slot-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rooster-slot-placeholder {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(33, 37, 41, 0.35);
  line-height: 1;
}

.rooster-valid-ok {
  background-color: #d1e7dd;
}

.rooster-valid-ok .rooster-row-slots {
  background-color: #d1e7dd;
}

.rooster-valid-ok .rooster-row-label:not(.rooster-row-label-reserve) {
  background-color: #a3cfbb;
  border-right-color: #198754;
}

.rooster-valid-ok .rooster-row-status {
  background-color: #d1e7dd;
}

.rooster-valid-warn {
  background-color: #fff3cd;
}

.rooster-valid-warn .rooster-row-slots {
  background-color: #fff3cd;
}

.rooster-valid-warn .rooster-row-label:not(.rooster-row-label-reserve) {
  background-color: #ffe69c;
  border-right-color: #ffc107;
}

.rooster-valid-warn .rooster-row-status {
  background-color: #fff3cd;
}

.rooster-valid-bad {
  background-color: #f8d7da;
}

.rooster-valid-bad .rooster-row-slots {
  background-color: #f8d7da;
}

.rooster-valid-bad .rooster-row-label:not(.rooster-row-label-reserve) {
  background-color: #f1aeb5;
  border-right-color: #dc3545;
}

.rooster-valid-bad .rooster-row-status {
  background-color: #f8d7da;
}

.rooster-valid-reserve {
  background-color: #e9ecef;
}

.rooster-valid-reserve .rooster-row-slots {
  background-color: #e9ecef;
}

.rooster-valid-reserve .rooster-row-status {
  background-color: #e9ecef;
}

.rooster-valid-reserve .rooster-slot {
  background: #f8f9fa;
}

.telrooster-layout .col-lg-2 .rooster-teller .card-body {
  padding: 0.4rem 0.5rem;
}

.telrooster-layout .col-lg-2 .rooster-teller .text-muted {
  display: none;
}

.sector-kaart-thumb {
  max-width: 12rem;
  max-height: 8rem;
  object-fit: contain;
  background: #fff;
}

.sector-kaart-versies .list-group-item {
  cursor: pointer;
}

.rooster-drop-zone.drag-over {
  border-color: #198754 !important;
  background-color: #e8f5ee !important;
}

.rooster-pool.rooster-drop-zone.drag-over {
  outline: 2px dashed #198754;
  outline-offset: 2px;
}

.rooster-teller {
  cursor: grab;
  user-select: none;
}

.rooster-teller:active {
  cursor: grabbing;
}

.rooster-teller-dragging {
  opacity: 0.55;
}

.rooster-teller-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rooster-icon {
  font-size: 0.95rem;
  color: #adb5bd;
  line-height: 1;
}

.rooster-icon.is-active {
  color: #0d6efd;
}

.rooster-pay-btn {
  line-height: 1;
  vertical-align: baseline;
}

.rooster-pay-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.rooster-icon-pay.is-active {
  color: #0d6efd;
}

.rooster-row-reserve .rooster-slot {
  background: #f8f9fa;
}

.text-bg-success-subtle {
  background-color: #d1e7dd;
}
