﻿body {
  margin: 0;
  background: #f4f6f8;
  color: #1f2328;
}

.flash-toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  pointer-events: none;
}

.flash-toast {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(22, 33, 50, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash-toast.success { background: #eef9f2; border-color: #9fd8b2; color: #1f7a3b; }
.flash-toast.warning { background: #fff4e5; border-color: #f5d38b; color: #a25b00; }
.flash-toast.error { background: #fdeceb; border-color: #f2b8b5; color: #b42318; }
.flash-toast.hide { opacity: 0; transform: translateY(-8px); }

.app-shell { min-height: 100vh; display: flex; }

.embed-mode .app-shell {
  min-height: auto;
  display: block;
}

.embed-mode .admin-mobilebar,
.embed-mode .admin-offcanvas,
.embed-mode .app-sidebar {
  display: none !important;
}

.embed-mode .app-main {
  margin-left: 0;
  width: 100%;
  padding: 0;
}

.admin-mobilebar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #fff;
  border-bottom: 1px solid #dde3e9;
  padding: 8px 10px;
}

.admin-offcanvas {
  background: linear-gradient(180deg, #9f1910 0%, #7f140d 100%);
  color: #fff;
}

.admin-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.app-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #9f1910 0%, #7f140d 100%);
  color: #fff;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.brand-wrap {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.brand-main { color: #9f1910; font-weight: 800; letter-spacing: 0.08rem; }
.brand-sub { color: #424a53; font-size: 0.85rem; }
.brand-logo { width: 100px; max-width: 100%; height: auto; display: block; margin: 0 auto; }
.brand-logo-link { display: flex; justify-content: center; width: 100%; }

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0.55rem;
  margin-bottom: 0.25rem;
  padding: 0.6rem 0.7rem;
}

.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.sidebar-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.2); }

.sidebar-group {
  margin: 0.1rem 0 0.35rem;
}

.sidebar-group > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0.55rem;
  margin-bottom: 0.2rem;
  padding: 0.6rem 0.7rem;
}

.sidebar-group > summary::-webkit-details-marker {
  display: none;
}

.sidebar-group > summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-group.open > summary,
.sidebar-group[open] > summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.nav-sublink {
  font-size: 0.92rem;
  margin-left: 0.7rem;
  margin-right: 0.1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.app-main {
  margin-left: 270px;
  width: calc(100% - 270px);
  padding: 1.4rem;
}

.page { max-width: 1600px; margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edit-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #dde3e9;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(22, 33, 50, 0.08);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dde3e9;
  box-shadow: 0 8px 24px rgba(22, 33, 50, 0.06);
  padding: 16px;
}

.search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.search input,
.search select {
  min-width: 180px;
}

@media (min-width: 992px) {
  .search {
    flex-wrap: nowrap;
    align-items: center;
  }

  .search input[type="search"] {
    flex: 1 1 auto;
    min-width: 220px;
  }

  .search select {
    flex: 0 0 180px;
    min-width: 140px;
  }

  .search .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.table thead th { color: #9f1910; }
.table th a { color: #9f1910; text-decoration: none; }
.table th a:hover { text-decoration: underline; }

.row-click { cursor: pointer; }
.row-click:hover td { background: #f8fafc; }

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-published { background: #cae8dd; color: #15503b; }
.status-draft { background: #eef0f3; color: #475569; }

.date-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: 70px 70px 90px 90px 90px 220px;
}

.date-grid-compact {
  display: grid;
  gap: 6px;
  grid-template-columns: 70px 70px 90px 220px;
}

.form-label-small {
  color: #64748b;
  font-size: 0.85rem;
}

.actions-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .app-main {
    margin-left: 0;
    width: 100%;
  }

  .date-grid,
  .date-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

.hint { color: #64748b; font-size: 0.9rem; }
.section { border-top: 1px solid #dde3e9; padding-top: 10px; margin-top: 8px; }
.section-title { font-weight: 600; margin-bottom: 6px; }
.form { display: grid; gap: 8px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field {
  display: block;
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #fff;
}
.field-sm { max-width: 240px; }

.rubriek-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rubriek-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #dde3e9;
  border-radius: 999px;
  background: #fafafa;
}

.rubriek-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  color: #9f1910;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.photo-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.photo-grid-compact .photo-card img { max-height: 95px; }
.photo-grid-compact .photo-card span { font-size: 0.82rem; }

.fotobank-folder-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.photo-card {
  display: block;
  text-decoration: none;
  border: 1px solid #dde3e9;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  color: #1f2328;
}

.photo-card img {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border: 1px solid #dde3e9;
  border-radius: 8px;
  background: #fafafa;
}

.photo-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  word-break: break-word;
}

.photo-card.active {
  border-color: #9f1910;
  box-shadow: 0 0 0 2px rgba(159, 25, 16, 0.15);
}

.photo-select-item { position: relative; }

.photo-select-check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  border: 1px solid #dde3e9;
  border-radius: 6px;
  padding: 2px 4px;
  line-height: 1;
}

.photo-select-check input[type="checkbox"] { cursor: pointer; }

.photo-detail img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid #dde3e9;
  border-radius: 10px;
}

.image-preview {
  margin-top: 8px;
  margin-bottom: 8px;
}

.image-preview img,
.image-preview .image-preview-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #dde3e9;
}

#ClubLogoURL + .image-preview img,
#ClubLogoURL + .image-preview .image-preview-img {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}

#ClubLogoURL + .image-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin-top: 8px;
}

.image-preview-error {
  display: none;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f2b8b5;
  background: #fdeceb;
  color: #b42318;
}

.nieuws-edit-content {
  align-items: flex-start;
}

.nieuws-edit-side {
  flex: 0 0 350px;
  width: 350px;
  max-width: 350px;
}

.datepicker-input-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}

.datepicker-input-wrap .form-control {
  width: 100%;
  padding-right: 2.25rem;
}

.datepicker-input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  cursor: pointer;
  pointer-events: auto;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.dashboard-card {
  margin: 0;
}

.dashboard-card .menu-list .btn {
  font-size: 0.95rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.dashboard-logout {
  align-self: start;
}

.ajax-picker-results {
  position: absolute;
  z-index: 30;
  width: calc(100% - 1.5rem);
  max-height: 240px;
  overflow-y: auto;
  margin-top: 2px;
}

.ajax-picker-results .ajax-picker-item {
  white-space: normal;
}

.wysiwyg-wrap {
  width: 100%;
  max-width: 680px;
  margin-bottom: 0.5rem;
}

.wysiwyg-mode-row {
  margin: 0.5rem 0;
}

.quill-editor {
  background: #fff;
}

.quill-editor.ql-container {
  height: auto;
  min-height: 240px;
}

.quill-editor .ql-editor {
  min-height: 220px;
}

.wysiwyg-wrap .ql-toolbar,
.wysiwyg-wrap .quill-editor {
  position: relative;
  z-index: 1;
}

.wysiwyg-wrap.is-source-mode textarea.form-control[data-wysiwyg="1"] {
  display: block;
  min-height: 240px;
}

.is-edit-page .panel > form input.form-control,
.is-edit-page .panel > form textarea.form-control,
.is-edit-page .panel > form select.form-select,
.is-edit-page .panel > form .cke {
  max-width: 680px;
}

.is-edit-page .panel > form .cke {
  width: 100% !important;
}

@media (max-width: 991.98px) {
  .nieuws-edit-side {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .datepicker-input-wrap {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .nieuws-edit-side {
    position: sticky;
    top: 74px;
    align-self: flex-start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 4px;
  }

  .nieuws-edit-preview-sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    margin-bottom: 0;
    padding-bottom: 8px;
  }

.nieuws-edit-links-scroll {
  margin-top: 8px !important;
}

.nieuws-koppeling-dropdown {
  border: 1px solid #dde3e9;
  border-radius: 10px;
  background: #fff;
}

.nieuws-koppeling-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 600;
  margin: 0;
}

.nieuws-koppeling-summary::-webkit-details-marker {
  display: none;
}

.nieuws-koppeling-summary::after {
  content: "\25BE";
  float: right;
  color: #6c757d;
}

.nieuws-koppeling-dropdown[open] .nieuws-koppeling-summary::after {
  content: "\25B4";
}

.nieuws-koppeling-body {
  border-top: 1px solid #eef2f7;
  padding: 8px 12px 10px;
  max-height: 220px;
  overflow: auto;
}

.nieuws-edit-side .select2-container {
  width: 100% !important;
}

.nieuws-edit-side .select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid #ced4da;
  border-radius: 8px;
}

.select2-dropdown .select2-results__option .nieuws-select2-option {
  display: flex;
  align-items: center;
}

.select2-dropdown .select2-results__option .nieuws-select2-option > * + * {
  margin-left: 10px !important;
}

.select2-dropdown .select2-results__option .nieuws-select2-checkbox {
  pointer-events: none;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0 !important;
}

.select2-dropdown .select2-results__option .nieuws-select2-option-label {
  line-height: 1.25;
  display: inline-block;
}

  .nieuws-edit-main .form-control,
  .nieuws-edit-main .field-picker {
    max-width: 680px;
  }

  .nieuws-edit-main .date-grid .form-control,
  .nieuws-edit-main .date-grid .field-picker {
    max-width: 100%;
  }

  #SchermTMDatumPicker { max-width: none; }
}

@media (min-width: 992px) {
  .is-edit-page .panel > form.edit-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 16px;
    align-items: start;
  }

  .is-edit-page .panel > form.edit-form-layout > * {
    grid-column: 1;
    min-width: 0;
  }

  .is-edit-page .panel > form.edit-form-layout > .edit-image-rail {
    grid-column: 2;
    grid-row: 1 / span 100;
    position: sticky;
    top: 72px;
    align-self: start;
    width: 280px;
  }

  .is-edit-page .panel > form .field-picker,
  .is-edit-page .panel > form .js-flatpickr-date {
    max-width: 300px;
  }

  .is-edit-page .panel > form .datepicker-input-wrap {
    max-width: 300px;
  }
}

.edit-image-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}

.edit-image-rail .image-preview {
  margin: 0;
  padding: 8px;
  width: 250px;
  max-width: 250px;
  background: #fafbfc;
  border: 1px solid #dde3e9;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .edit-image-rail .image-preview:hover {
    transform: scale(1.45);
    box-shadow: 0 16px 34px rgba(22, 33, 50, 0.22);
    position: relative;
    z-index: 40;
  }
}

.edit-image-rail .image-preview img,
.edit-image-rail .image-preview .image-preview-img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.edit-image-rail .image-preview.club-logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.edit-image-rail .image-preview.club-logo-preview img,
.edit-image-rail .image-preview.club-logo-preview .image-preview-img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.edit-image-rail .image-preview-caption {
  margin-top: 6px !important;
  font-size: 0.74rem;
  line-height: 1.25;
}

.edit-image-rail .image-preview-caption strong {
  font-size: 0.76rem;
  font-weight: 600;
}

.edit-image-rail .image-preview-error {
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .is-edit-page .panel > form .datepicker-input-wrap {
    max-width: 100%;
  }
}

.agenda-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 680px;
}

.pasfoto-season-col {
  width: 150px;
}
@media (max-width: 760px) {
  .agenda-two-col {
    grid-template-columns: 1fr;
  }
}


/* Fotobank CSS */
.fotobank-search {
  width: auto;
  flex: 1 1 auto;
}

.fotobank-search input[name="zoek"] {
  flex: 0 1 360px;
  max-width: 360px;
}

.fotobank-search .btn {
  margin-left: 0;
}

.table {
  width: 100%;
  border-collapse: collapse; }

.table th, .table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: none;
  vertical-align: top;
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
}

/* Ensure Bootstrap contextual rows color every cell */
.table tr.table-info > td,
.table tr.table-warning > td {
  background-color: var(--bs-table-bg) !important;
}

.row-click {
  cursor: pointer;
}

.row-click:hover {
  background: #f7f7f7;
}

.table tr.row-click:hover > td {
  background-color: #f7f7f7 !important;
}

.dashboard-widget[data-widget="affiliates"] .table tbody tr:hover > td {
  background-color: #f7f7f7 !important;
}

.mobile-actions {
  display: none;
  margin-top: 8px;
  gap: 6px;
  flex-wrap: wrap;
}

.table th { color: var(--muted); font-weight: 600; }

.table .title { font-weight: 400; }

.table .meta { color: var(--muted); }

.link-title {
  color: #111111;
  text-decoration: none;
}

.link-title:hover {
  color: #901E40;
  text-decoration: underline;
}

.link-date {
  color: #111111;
  text-decoration: none;
}

.link-date:hover {
  color: #901E40;
  text-decoration: underline;
}

.table .link-title:hover,
.table .link-date:hover {
  color: inherit;
  text-decoration: none;
}

.table .actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.table td.actions .btn + .btn {
  margin-left: 8px;
}

.table th:last-child,
.table td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
  width: 1%;
}

/* Dashboard tables should keep normal last-column alignment */
.dashboard-list .table th:last-child,
.dashboard-list .table td:last-child {
  text-align: left;
  padding-right: 8px;
  width: auto;
}

#dashboardGrid .table th:last-child,
#dashboardGrid .table td:last-child {
  text-align: left;
  padding-right: 8px;
  width: auto;
}

.weather-page .table th:last-child,
.weather-page .table td:last-child {
  padding-right: 8px;
}

.mobile-line { display: none; }
.desktop-title { display: block; }

.empty { text-align: center; color: var(--muted); padding: 20px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px; color: var(--muted);
}

.pager-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pager-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pager-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: #901E40;
  color: #ffffff;
  font-weight: 600;
}

.pager-ps {
  display: inline-flex;
  gap: 6px;
  align-items: center; color: var(--muted);
}

.pager-ps select {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.per-page-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.per-page-text {
  display: inline-block;
  white-space: nowrap;
}

.form { display: grid; gap: 10px; }

.form label { display: block; }
.form label > span { display: block; margin-bottom: 4px; }

.checkbox-grid {
  display: grid;
  gap: 4px;
  padding: 4px 0 2px;
}

.checkbox-grid-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.checkbox-col {
  display: grid;
  gap: 4px;
}

.form input[type="text"],
.form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 10px; }

.field-highlight {
  border-color: #901E40 !important;
  box-shadow: 0 0 0 2px rgba(144,30,64,0.15);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form textarea { resize: both; min-height: 110px; }

textarea[name="FotoOnderschrift"] {
  min-height: 75px !important;
}

.form .is-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

.form .invalid-feedback {
  display: block;
  margin-top: 4px;
  color: #b42318; font-weight: 600;
}

.form-error-summary {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #b42318;
  background: #fff3f2;
  color: #7a271a;
  border-radius: 10px;
  font-weight: 600;
}

.image-preview-wrap {
  max-width: 440px;
}

.image-preview-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.field {
  max-width: 720px;
}

.field.textarea-wide {
  width: 720px;
  max-width: none;
}

.field-sm {
  max-width: 260px;
}

.field-xs {
  max-width: 70px;
}

.field-xxs {
  max-width: 46px;
}

.field-picker {
  max-width: 220px;
}

.date-inline {
  display: grid;
  gap: 2px 4px;
  grid-template-columns: 46px 46px 72px 46px 46px 220px;
  align-items: start;
  justify-content: start;
}

.date-inline-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.date-inline-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-presets {
  display: block;
  position: relative;
  min-height: 32px;
}

.time-presets .btn.btn-sm {
  height: 30px;
}

.date-labels {
  display: grid;
  gap: 2px 4px;
  grid-template-columns: 46px 46px 72px 46px 46px 220px; color: var(--muted);
  margin-top: 1px;
  justify-content: start;
}

.date-top {
  margin-bottom: -4px;
}

.title-field {
  margin-top: -4px;
}

.date-inline-3 {
  display: grid;
  gap: 2px 4px;
  grid-template-columns: 46px 46px 72px 220px;
  align-items: start;
  justify-content: start;
}

.date-grid-compact {
  display: grid;
  gap: 2px 4px;
  grid-template-columns: 46px 46px 72px 220px;
  align-items: start;
  justify-content: start;
}

.date-picker-wrap {
  position: relative;
  max-width: 220px;
}

.date-picker-wrap .field-picker {
  padding-right: 34px;
}

.date-picker-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #901E40;
  padding: 0;
  width: 18px;
  height: 18px;
  line-height: 1;
  cursor: pointer;
}

.date-labels-3 {
  display: grid;
  gap: 2px 4px;
  grid-template-columns: 46px 46px 72px 220px; color: var(--muted);
  margin-top: 1px;
  justify-content: start;
}

.inline-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hint {
  color: var(--muted); }

.section {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

.section-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 2px 0 8px;
  background: #fff;
}

.form-fieldset legend {
  width: auto;
  padding: 0 6px;
  margin: 0 0 4px; font-weight: 700;
  color: #1f2937;
}

.rubriek-ui {
  display: grid;
  gap: 8px;
}

.rubriek-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rubriek-add-block {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 6px 8px;
  align-items: center;
}

.rubriek-toolbar-label {
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}

.rubriek-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rubriek-add-row .field {
  max-width: 260px;
}

.rubriek-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rubriek-autolink {
  display: grid;
  gap: 6px;
}

.rubriek-autolink-fields {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 260px);
  gap: 8px;
}

.rubriek-autolink-fields .field {
  max-width: 100%;
}

.rubriek-search input[type="text"] {
  max-width: 420px;
  width: auto;
}

.rlink-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rubriek-suggest {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  max-width: 420px;
  padding: 4px;
  display: none;
}

.rubriek-suggest.open { display: block; }

.bedrijf-suggest {
  max-width: 100%;
}

.rubriek-option {
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.rubriek-option:hover {
  background: #f3f3f3;
}

.rubriek-option.active {
  background: #efe7ea;
  border: 1px solid #901E40;
}

.rubriek-option-static {
  cursor: default;
  color: var(--muted);
}

.rubriek-option-static:hover {
  background: transparent;
}

.rubriek-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rubriek-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa; }

.rubriek-chip button {
  border: none;
  background: transparent;
  cursor: pointer; line-height: 1;
  color: #901E40;
}

.rubriek-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rubriek-list li {
  margin: 4px 0;
}

#rlinkPrevWrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

#rlinkPrevList {
  flex: 1;
}

.rl-hidden {
  display: none;
}

.rl-columns {
  column-count: 3;
  column-gap: 18px;
}

.rl-columns li {
  break-inside: avoid;
}

.rubriek-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: #fafafa; }

.rubriek-list a:hover {
  border-color: #901E40;
  color: #901E40;
  background: #fff6f8;
}

.autolink-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  max-width: 1000px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.photo-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.photo-grid-compact .photo-card img {
  max-height: 95px;
}

.photo-grid-compact .photo-card span {
  font-size: 0.82rem;
}

.fotobank-folder-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.folder-tree-header {
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.folder-tree {
  max-height: 420px;
  overflow: auto;
}

.folder-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f1f1f1;
}

.folder-tree-item:last-child {
  border-bottom: 0;
}

.folder-tree-item:hover {
  background: #f7f7f7;
  color: var(--text);
}

.folder-tree-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-tree-left i {
  color: #6c757d;
}

.folder-tree-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-tree-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fotobank-bulk-toolbar {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  display: grid;
  gap: 0;
}

.bulk-quick-actions,
.bulk-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-quick-actions {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

@media (min-width: 721px) {
  .bulk-quick-actions.spread-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 8px;
  }
  .bulk-quick-actions.spread-actions > .btn:nth-child(1) {
    justify-self: start;
  }
  .bulk-quick-actions.spread-actions > .btn:nth-child(2) {
    justify-self: center;
  }
  .bulk-quick-actions.spread-actions > .btn:nth-child(3) {
    justify-self: end;
  }
}

.bulk-meta-actions {
  padding: 8px 10px;
  display: grid;
  gap: 8px;
  width: 100%;
}

.bulk-quick-actions .btn.btn-outline-secondary {
  border-color: #aeb4bc;
  background: linear-gradient(#ffffff, #f1f3f5);
  color: #2f3a46;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.bulk-quick-actions .btn.btn-outline-secondary:hover {
  background: linear-gradient(#ffffff, #e8ecf1);
  border-color: #98a1ab;
  color: #1f2937;
}

.folder-tree-header .btn.btn-outline-secondary {
  border-color: #aeb4bc;
  background: linear-gradient(#ffffff, #f1f3f5);
  color: #2f3a46;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.folder-tree-header .btn.btn-outline-secondary:hover {
  background: linear-gradient(#ffffff, #e8ecf1);
  border-color: #98a1ab;
  color: #1f2937;
}

.bulk-meta-actions .hint {
  margin-left: 2px;
}

.bulk-meta-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.bulk-meta-top > :nth-child(1) {
  justify-self: start;
}

.bulk-meta-top > :nth-child(2) {
  justify-self: center;
}

.bulk-meta-top > :nth-child(3) {
  justify-self: end;
}

.bulk-meta-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

#fotobankBulkStatus {
  margin-left: auto;
  text-align: right;
}

#fotobankBulkTagRemoveForm .bulk-meta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#fotobankBulkTagRemoveForm .bulk-meta-actions input[name="bulk_tag_remove"] {
  max-width: 220px !important;
  justify-self: start;
}

#fotobankBulkTagRemoveForm .bulk-meta-actions .checkbox-inline {
  justify-self: center;
  margin: 0;
}

#fotobankBulkTagRemoveForm .bulk-meta-actions .btn {
  justify-self: end;
}

.bulk-credit-link {
  color: #4f5f72;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.bulk-credit-link:hover {
  color: #901E40;
}

.photo-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  color: var(--text);
}

.photo-card img {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}

.photo-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  word-break: break-word;
}

.photo-card.active {
  border-color: #901E40;
  box-shadow: 0 0 0 2px rgba(144,30,64,0.15);
}

.photo-select-item {
  position: relative;
}

.photo-select-check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 4px;
  line-height: 1;
}

.photo-select-check input[type="checkbox"] {
  cursor: pointer;
}

.photo-selector-search-input {
  max-width: 360px;
}

.photo-selector-upload-input {
  max-width: 360px;
}

.photo-selector-progress-wrap {
  max-width: 460px;
}

.photo-selector-progress-bar {
  width: 0%;
}

#photoSelectorResults .photo-selector-item {
  position: relative;
  overflow: visible;
}

#photoSelectorResults .photo-selector-item img {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#photoSelectorResults .photo-selector-item:hover,
#photoSelectorResults .photo-selector-item:focus {
  z-index: 20;
}

#photoSelectorResults .photo-selector-item:hover img,
#photoSelectorResults .photo-selector-item:focus img {
  transform: scale(3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

#photoSelectorResults .photo-selector-item.ps-zoom-right:hover img,
#photoSelectorResults .photo-selector-item.ps-zoom-right:focus img {
  transform-origin: left center;
}

#photoSelectorResults .photo-selector-item.ps-zoom-left:hover img,
#photoSelectorResults .photo-selector-item.ps-zoom-left:focus img {
  transform-origin: right center;
}

.fotobank-dropzone {
  width: 100%;
  max-width: 460px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  padding: 12px;
  text-align: center;
  cursor: pointer;
}

.fotobank-dropzone.dragover {
  border-color: var(--accent);
  background: #fff4f7;
  color: var(--text);
}

.photo-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-card.photo-card-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-card.photo-card-inline img {
  width: 72px;
  max-height: 72px;
  flex: 0 0 72px;
}

.photo-card.photo-card-inline span {
  margin-top: 0;
}

.photo-detail img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cropper-wrap {
  width: 100%;
  min-height: 420px;
  max-height: 70vh;
  overflow: hidden;
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-radius: 10px;
}

#fotobankCropImage {
  display: block;
  max-width: 100%;
}

.modal-dialog {
  max-height: 100vh;
}

.modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

.rlink-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
}

/* Photo Selector */
.photo-card {
  display: inline-block;
  text-decoration: none;
  border: 2px solid #ddd;
  padding: 8px;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  color: #1f2328;
}

.photo-card:hover {
  border-color: #ad1311;
}

.photo-card img {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.photo-card span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  word-break: break-word;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-grid-compact {
  gap: 4px;
}

.photo-selector-search-input {
  max-width: 360px;
}

.photo-selector-upload-input {
  max-width: 360px;
}

.photo-selector-progress-wrap {
  max-width: 460px;
}

#photoSelectorResults .photo-selector-item {
  position: relative;
  overflow: visible;
}

#photoSelectorResults .photo-selector-item img {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#photoSelectorResults .photo-selector-item:hover,
#photoSelectorResults .photo-selector-item:focus {
  z-index: 20;
}

#photoSelectorResults .photo-selector-item:hover img,
#photoSelectorResults .photo-selector-item:focus img {
  transform: scale(3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

#photoSelectorResults .photo-selector-item.ps-zoom-right:hover img,
#photoSelectorResults .photo-selector-item.ps-zoom-right:focus img {
  transform-origin: left center;
}

#photoSelectorResults .photo-selector-item.ps-zoom-left:hover img,
#photoSelectorResults .photo-selector-item.ps-zoom-left:focus img {
  transform-origin: right center;
}



.pasfoto-season-col,
.pasfoto-url-col,
.pasfoto-preview-col,
.pasfoto-actions-col {
  vertical-align: top;
}

.pasfoto-url-col {
  min-width: 680px;
}

.pasfoto-url-input {
  width: 680px;
  max-width: 680px;
}

.pasfoto-inline-preview {
  display: block;
  width: auto;
  max-width: 100px;
  height: auto;
}


