/* ================= Summary Table ================= */
/* 🚫 Cegah keclap sidebar */
.sidebar-hide-temp .main-sidebar {
  visibility: hidden !important;
}

.summary-table {
  border-collapse: collapse;
  margin-top: 20px;
}

.summary-table th,
.summary-table td {
  padding: 8px 16px;
  white-space: nowrap;
  border: none;
}

.summary-table th {
  text-align: left;
  width: 200px;
  position: relative;
}

.summary-table th::after {
  content: ":";
  position: absolute;
  right: 0;
}

.summary-table td {
  text-align: right;
  font-weight: bold;
  padding-left: 20px;
}

.btn-print {
  float: right;
  margin-bottom: 10px;
}

@media print {
  .btn, .btn-back, .btn-print {
    display: none;
  }
}

/* ================= My Table ================= */
.my-table thead th {
  vertical-align: middle;
  text-align: center;
  background-color: #f8f9fa;
}

.text-success {
  color: green;
  font-weight: bold;
}

.text-danger {
  color: red;
  font-weight: bold;
}

#searchInput {
  width: 100%;
  max-width: 350px;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

tr:hover {
  background-color: #f1f1f1;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

/* ================= Pagination Layout ================= */
.pagination {
  margin-top: 15px;
  display: flex;
  justify-content: space-between; /* kiri dan kanan */
  align-items: center;
  flex-wrap: wrap;
}

.pagination .left-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination .right-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pagination button {
  padding: 5px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button:disabled {
  background: #eee;
  cursor: not-allowed;
}

.rows-select {
  padding: 4px;
}

/* ================== PRINT ================== */
@media print {
  body * {
    visibility: hidden;
  }

  #printArea, 
  #printArea * {
    visibility: visible;
  }

  #printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .btn, 
  .btn-back, 
  .btn-print {
    display: none !important;
  }

  .table thead th {
    color: #000 !important;
    background-color: #f8f9fa !important;
  }
}

/* ================== LAYOUT UMUM ================== */
.detail-header h4 {
  flex: 1;
  text-align: center;
}

.detail-header {
  position: relative;
}

.btn-print {
  position: absolute;
  right: 0;
}

/* ================== TANDA TANGAN ================== */
.ttd-section {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.ttd-box {
  width: 30%;
}

.ttd-box p {
  margin-bottom: 80px;
}

.ttd-name {
  text-decoration: underline;
  font-weight: bold;
}