/* Preview Pegawai Dialog - split layout with independent right panel scroll */
#modalPreviewPegawai.right-side-panel {
  padding: 0 !important;
}
#modalPreviewPegawai.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;
}
#modalPreviewPegawai.right-side-panel.show .modal-dialog {
  transform: translateX(0);
}
#modalPreviewPegawai.right-side-panel .modal-content {
  height: 100%;
  border-radius: 0.5rem;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
#modalPreviewPegawai.right-side-panel .modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#modalPreviewPegawai.right-side-panel .modal-footer {
  margin-top: auto;
}
#modalPreviewPegawai.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;
}

/* 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;
}

/* Form Create/Edit Pegawai - Right Side Panel */
#modalPegawai.right-side-panel {
  padding: 0 !important;
}
#modalPegawai.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;
}
#modalPegawai.right-side-panel.show .modal-dialog {
  transform: translateX(0);
}
#modalPegawai.right-side-panel .modal-content {
  height: 100%;
  border-radius: 0.5rem;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
#modalPegawai.right-side-panel .modal-body {
  flex: 1;
  overflow-y: auto;
}
#modalPegawai.right-side-panel .modal-footer {
  margin-top: auto;
}
#modalPegawai.right-side-panel .modal-dialog form {
  height: 100%;
}
#modalPegawai.right-side-panel ~ .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
}

/* Dropzone custom styling (merge dari style_pegawai_form.css) */
#dropzone-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
#dropzone-foto:hover {
  border-color: var(--primary-rgb);
}
#dropzone-foto .dz-message {
  margin: 0;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
#dropzone-foto .dz-preview {
  margin: 0;
}
#dropzone-foto .dz-image img {
  border-radius: 0.25rem;
}
