/* Right side panel modal */
#modalProvinsi.right-side-panel {
  padding: 0 !important;
}
#modalProvinsi.right-side-panel .modal-dialog {
  position: fixed;
  top: 10px;
  right: 10px;
  margin: 0;
  width: 600px;
  max-width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  z-index: 1070;
}
#modalProvinsi.right-side-panel.show .modal-dialog {
  transform: translateX(0);
}
#modalProvinsi.right-side-panel .modal-content {
  height: 100%;
  border-radius: 0.5rem;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
#modalProvinsi.right-side-panel .modal-dialog form {
  height: 100%;
}
#modalProvinsi.right-side-panel .modal-body {
  flex: 1;
  overflow-y: auto;
}
#modalProvinsi.right-side-panel .modal-footer {
  margin-top: auto;
}
#modalProvinsi.right-side-panel ~ .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
}

/* DataTables layout */
.top-left {
  float: left;
  padding-top: 0;
}
.top-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.top-right .dataTables_filter {
  float: none !important;
  margin: 0 !important;
}
.top-right .dt-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  float: none !important;
}
.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.bottom-container .dataTables_info,
.bottom-container .dataTables_paginate {
  float: none !important;
  padding-top: 0;
}

/* Preview Provinsi Dialog - split layout with independent right panel scroll */
#modalPreviewProvinsi.right-side-panel {
  padding: 0 !important;
}
#modalPreviewProvinsi.right-side-panel .modal-dialog {
  position: fixed;
  top: 10px;
  right: 10px;
  margin: 0;
  width: 900px;
  max-width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  z-index: 1070;
}
#modalPreviewProvinsi.right-side-panel.show .modal-dialog {
  transform: translateX(0);
}
#modalPreviewProvinsi.right-side-panel .modal-content {
  height: 100%;
  border-radius: 0.5rem;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
#modalPreviewProvinsi.right-side-panel .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#modalPreviewProvinsi.right-side-panel .modal-footer {
  margin-top: auto;
}
#modalPreviewProvinsi.right-side-panel ~ .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
}

.preview-row-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  height: 100%;
}

.preview-col-left {
  flex: 0 0 auto;
  max-height: 100%;
  overflow: hidden;
}

.preview-col-right {
  flex: 0 0 auto;
  flex-grow: 1;
  min-width: 0;
}
