main.overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3294117647);
  z-index: 2;
}

.letter-list.show {
  display: flex;
}

#formSurat button, #formSurat a {
  padding: 5px 11px !important;
  font-size: 16px !important;
}

.letter-list {
  border-radius: 6px;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 5px #999;
  height: 400px;
  z-index: 9999;
  margin: auto;
}
.letter-list .close {
  cursor: pointer;
  position: absolute;
  width: 30px;
  height: 30px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  background: transparent;
  top: -15px;
  right: -10px;
}
.letter-list .close * {
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.letter-list .info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.letter-list .info h3 {
  font-size: 20px;
}
.letter-list .info svg {
  width: 18px;
  height: 18px;
}
.letter-list .item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.letter-list .item a {
  border: unset;
  background-color: whitesmoke;
  display: inline-block;
  width: 100%;
  padding: 5px 10px;
  text-decoration: none;
  color: black;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  .modal-dialog.modal-fullscreen-md-down {
    margin: 0.5rem;
    width: auto;
  }
  .modal-content {
    border-radius: 0.5rem;
  }
  .modal-body {
    padding: 0;
  }
  .ratio.ratio-1x1 {
    --bs-aspect-ratio: 120%;
  }
}
@media (max-width: 576px) {
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}
.center {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile responsive improvements for preview */
@media (max-width: 768px) {
  .modal-dialog.modal-fullscreen-md-down {
    margin: 0.5rem;
    width: auto;
  }
  .modal-content {
    border-radius: 0.5rem;
  }
  .modal-body {
    padding: 0;
  }
  .embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }
  .embed-responsive-1by1::before {
    padding-top: 100%;
  }
  .embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}
@media (max-width: 576px) {
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}
/* Additional styles for better mobile experience */
.modal-fullscreen-md-down {
  max-width: 95%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .modal-fullscreen-md-down {
    max-width: 100%;
    margin: 0.5rem;
  }
}
/* Improve iframe scrolling on mobile */
.embed-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.embed-responsive-item {
  transform: scale(0.95);
  transform-origin: top center;
}

@media (max-width: 576px) {
  .embed-responsive-item {
    transform: scale(0.9);
  }
}
/* Mobile responsive improvements for preview */
@media (max-width: 768px) {
  .modal-dialog.modal-fullscreen-md-down {
    margin: 0.5rem;
    width: auto;
  }
  .modal-content {
    border-radius: 0.5rem;
  }
  .modal-body {
    padding: 0;
  }
  .embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }
  .embed-responsive-1by1::before {
    padding-top: 100%;
  }
  .embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}
@media (max-width: 576px) {
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
}
/* Additional styles for better mobile experience */
.modal-fullscreen-md-down {
  max-width: 95%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .modal-fullscreen-md-down {
    max-width: 100%;
    margin: 0.5rem;
  }
}
/* Improve iframe scrolling on mobile */
.embed-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.embed-responsive-item {
  transform: scale(0.95);
  transform-origin: top center;
}

@media (max-width: 576px) {
  .embed-responsive-item {
    transform: scale(0.9);
  }
}
/* Additional styles for long content */
.surat-container {
  overflow-wrap: break-word;
}

.table-data {
  table-layout: fixed;
}

.table-data td {
  word-break: break-word;
}

/* Tambahkan di bagian style templates/layout.php */
[data-bs-theme=dark] {
  --bs-body-color: #dee2e6;
  --bs-body-bg: #121212;
  --bs-card-bg: #1e1e1e;
  --bs-border-color: #444;
}

[data-bs-theme=dark] .card {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme=dark] .navbar {
  background-color: #1e1e1e !important;
}

[data-bs-theme=dark] .bg-white {
  background-color: #1e1e1e !important;
}

[data-bs-theme=dark] .bg-light {
  background-color: #2d2d2d !important;
}

[data-bs-theme=dark] .table {
  --bs-table-color: #dee2e6;
  --bs-table-bg: #1e1e1e;
  --bs-table-border-color: #444;
}

[data-bs-theme=dark] .modal-content {
  background-color: #1e1e1e;
  color: #dee2e6;
}

[data-bs-theme=dark] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-brand {
  font-size: unset !important;
}

.card-header {
  border-bottom: unset !important;
}

.list-group-item {
  background: inherit !important;
}

.dataTables_wrapper > div:nth-child(1) {
  margin: 10px 0 !important;
}

@media (max-width: 768px) {
  .dataTables_wrapper > div:nth-child(1) > div:nth-child(1) {
    display: none !important;
  }
  .dataTables_wrapper > div:nth-child(1) > div:nth-child(2) {
    display: flex;
    margin: 5px 0 !important;
  }
}
.dataTables_wrapper > div:nth-child(3) > div.col-sm-12.col-md-7 {
  margin-top: 20px !important;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

nav {
  top: 0;
  left: 0;
  right: 0;
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
}

table {
  color: unset !important;
}
table tbody, table td, table tfoot, table th, table thead, table tr {
  border-color: gray !important;
}

.navbar-toggler-icon {
  filter: invert(1) brightness(10) contrast(10) !important;
}/*# sourceMappingURL=custom.css.map */