/* ==========================================
   1. GLOBAL MODAL (Kerangka Umum)
   ========================================== */
.mdl-backdrop {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Default tersembunyi */
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(2px);
}

/* Kelas untuk memunculkan modal */
.mdl-backdrop.show {
    display: flex;
}

.mdl-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: mdlFadeIn 0.25s ease-out;
}

.mdl-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-500, #267cee);
    flex-shrink: 0;
}

.mdl-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.mdl-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.mdl-close-btn:hover {
    color: #b70000;
    transform: scale(1.1);
}

.mdl-body {
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 0;
}

.mdl-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}


/* ==========================================
   2. MODAL SPESIFIK: BARANG (barang-mdl-...)
   ========================================== */
.barang-mdl-header {
    background: var(--primary-500, #267cee);
    border-bottom: 1px solid #e5e7eb;
    
}

.barang-mdl-form-group {
    margin-bottom: 1.25rem;
}

.barang-mdl-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.barang-mdl-input,
.barang-mdl-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
    box-sizing: border-box;
}

.barang-mdl-input:focus,
.barang-mdl-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animasi halus saat modal muncul */
@keyframes mdlFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   3. GLOBAL ALERT MODAL
   ========================================== */

.alert-mdl-backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.alert-mdl-dialog {
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08);
    animation: alertModalIn 0.22s ease-out;
}

.alert-mdl-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.alert-mdl-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-mdl-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.alert-mdl-text {
    flex: 1;
}

.alert-mdl-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 650;
    color: #111827;
}

.alert-mdl-message {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.6;
    color: #6b7280;
}

/* SUCCESS */
.alert-success .alert-mdl-icon {
    background: #ecfdf5;
    color: #059669;
}

/* ERROR */
.alert-error .alert-mdl-icon {
    background: #fef2f2;
    color: #dc2626;
}

/* WARNING */
.alert-warning .alert-mdl-icon {
    background: #fffbeb;
    color: #d97706;
}

/* INFO */
.alert-info .alert-mdl-icon {
    background: #eff6ff;
    color: #2563eb;
}

/* Footer */
.alert-mdl-footer {
    background: #ffffff;
    border-top: 1px solid #eef0f3;
    padding: 0.85rem 1.5rem;
}

.alert-mdl-ok {
    min-width: 80px;
}

/* Animation */
@keyframes alertModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* ==========================================
   4. GLOBAL CONFIRM MODAL
   ========================================== */

.confirm-mdl-backdrop {
    backdrop-filter: blur(4px);
}

.confirm-mdl-dialog {
    max-width: 440px;
}

.confirm-mdl-content {
    padding: 1.75rem 1.75rem 0.5rem;
    text-align: center;
}

.confirm-mdl-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-mdl-icon svg {
    width: 26px;
    height: 26px;
}

.confirm-danger .confirm-mdl-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.confirm-warning .confirm-mdl-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.confirm-info .confirm-mdl-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.confirm-mdl-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
}

.confirm-mdl-message {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.confirm-mdl-footer {
    margin-top: 1.5rem;
    justify-content: center;
    background: transparent;
    border-top: none;
    padding: 1rem 1.75rem 1.75rem;
}

.confirm-mdl-footer button {
    min-width: 110px;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* ==========================================
   MODAL SPESIFIK: PRODUKSI
   (produksi-mdl-...)
   ========================================== */

.produksi-mdl-header {
    background: var(--primary-500, #267cee);
    border-bottom: 1px solid #e5e7eb;
    color: #ffffff;
}

.produksi-mdl-form-group {
    margin-bottom: 1.25rem;
}

.produksi-mdl-form-group:last-child {
    margin-bottom: 0;
}

.produksi-mdl-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.produksi-mdl-input,
.produksi-mdl-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
    box-sizing: border-box;
}

.produksi-mdl-input:focus,
.produksi-mdl-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.produksi-mdl-input::placeholder {
    color: #9ca3af;
}

.produksi-mdl-input:disabled,
.produksi-mdl-select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

/* DETAIL PRODUKSI */
.produksi-detail-section {
  margin-bottom:1.5rem;
}

.produksi-detail-section:last-child {
  margin-bottom:0;
}

.produksi-detail-section-title {
  margin-bottom:1rem;
  padding-bottom:.65rem;
  border-bottom:1px solid #e5e7eb;
  color:#111827;
  font-size:.9rem;
  font-weight:700;
}

.produksi-detail-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 1.5rem;
  width:100%;
}

.produksi-detail-item {
  display:flex;
  flex-direction:column;
  gap:.35rem;
  min-width:0;
  padding:.75rem 0;
  border-bottom:1px solid #f1f5f9;
}

.produksi-detail-item > span {
  color:#6b7280;
  font-size:.75rem;
  font-weight:500;
}

.produksi-detail-item > strong {
  overflow:hidden;
  color:#111827;
  font-size:.9rem;
  font-weight:600;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* STATUS */
#detailStatusProduksi {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:.3rem .65rem;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
}

/* BAHAN / MATERIAL */
.produksi-detail-bahan-list {
  display:flex;
  flex-direction:column;
  gap:.75rem;
  width:100%;
}

.produksi-detail-bahan-item {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr) minmax(100px,1fr);
  gap:1rem;
  align-items:center;
  padding:.9rem 1rem;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:10px;
}

.produksi-detail-bahan-info {
  display:flex;
  flex-direction:column;
  gap:.2rem;
  min-width:0;
}

.produksi-detail-bahan-info strong {
  overflow:hidden;
  color:#111827;
  font-size:.85rem;
  font-weight:600;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.produksi-detail-bahan-info small {
  overflow:hidden;
  color:#6b7280;
  font-size:.7rem;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.produksi-detail-bahan-quantity {
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

.produksi-detail-bahan-quantity span {
  color:#6b7280;
  font-size:.68rem;
  font-weight:500;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.produksi-detail-bahan-quantity strong {
  color:#111827;
  font-size:.82rem;
  font-weight:600;
}

.produksi-detail-bahan-note {
  grid-column:1 / -1;
  padding-top:.65rem;
  border-top:1px solid #e5e7eb;
  color:#6b7280;
  font-size:.72rem;
  line-height:1.5;
}

.produksi-detail-empty {
  padding:1.25rem;
  border:1px dashed #d1d5db;
  border-radius:10px;
  color:#6b7280;
  font-size:.8rem;
  text-align:center;
}



/* ==========================================
   RESPONSIVE MODAL - DESKTOP & LAPTOP
   ========================================== */

/* Laptop */
@media (min-width: 769px) and (max-width: 1440px) {
    .mdl-dialog {
        max-height: calc(100vh - 40px);
    }

    .mdl-body {
        max-height: calc(100vh - 170px);
        overflow-y: auto;
    }
}

/* Desktop besar */
@media (min-width: 1441px) {
    .mdl-dialog {
        max-height: calc(100vh - 64px);
    }

    .mdl-body {
        max-height: calc(100vh - 190px);
        overflow-y: auto;
    }
}


/* ==========================================
   RESPONSIVE MODAL - KHUSUS HP
   ========================================== */

@media (max-width:768px) {

  /* Global Mobile Modal */

  .mdl-backdrop {
    padding:16px;
    align-items:center;
  }

  .mdl-dialog {
    width:100%;
    max-width:100%;
    max-height:calc(100dvh - 32px);
    border-radius:16px;
  }

  .mdl-header {
    padding:1rem 1.125rem;
  }

  .mdl-title {
    font-size:1rem;
  }

  .mdl-body {
    padding:1.125rem;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .mdl-footer {
    padding:.875rem 1.125rem;
    gap:.625rem;
  }


  /* Barang Modal */

  .barang-mdl-body {
    padding:1.125rem;
  }

  .barang-mdl-form-group {
    margin-bottom:1rem;
  }

  .barang-mdl-form-group label {
    font-size:.8rem;
    margin-bottom:.4rem;
  }

  .barang-mdl-input,
  .barang-mdl-select {
    min-height:42px;
    padding:.6rem .75rem;
    font-size:.875rem;
    border-radius:9px;
  }

  .barang-mdl-footer {
    padding:.875rem 1.125rem;
  }


  /* Produksi Modal */

  .produksi-mdl-form-group {
    margin-bottom:1rem;
  }

  .produksi-mdl-form-group label {
    font-size:.8rem;
    margin-bottom:.4rem;
  }

  .produksi-mdl-input,
  .produksi-mdl-select {
    min-height:42px;
    padding:.6rem .75rem;
    font-size:.875rem;
    border-radius:9px;
  }

  .produksi-mdl-body {
    padding:1.125rem;
  }

  .produksi-mdl-footer {
    padding:.875rem 1.125rem;
  }


  /* Detail Produksi */

  .detail-item {
    grid-template-columns:110px 12px minmax(0,1fr);
    min-height:44px;
    padding:9px 0;
  }

  .detail-label {
    font-size:.75rem;
  }

  .detail-item strong,
  .detail-item > span:last-child {
    font-size:.8rem;
  }

}

/* ==========================================
   BAHAN / MATERIAL PRODUKSI
   ========================================== */

.produksi-bahan-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  background:var(--bg-soft,#f8fafc);
  border:1px solid var(--border-color,#e2e8f0);
  border-radius:12px;
}

.produksi-bahan-title {
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
  font-size:14px;
  font-weight:600;
  color:var(--text-primary,#1e293b);
}

.produksi-bahan-description {
  margin:5px 0 0;
  font-size:12px;
  line-height:1.5;
  color:var(--text-secondary,#64748b);
}

.produksi-bahan-header .btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-shrink:0;
  min-height:38px;
  padding:0 13px;
  border-radius:9px;
  font-size:13px;
  font-weight:600;
}

.produksi-bahan-header .btn svg {
  width:16px;
  height:16px;
  stroke-width:2;
}

.produksi-bahan-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  margin-top:10px;
}

/* ==========================================
   FORM BAHAN / MATERIAL
   ========================================== */

.produksi-bahan-row {
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  width:100%;
  box-sizing:border-box;
  padding:14px;
  padding-right:58px;
  background:var(--bg-card,#ffffff);
  border:1px solid var(--border-color,#e2e8f0);
  border-radius:12px;
}

.produksi-bahan-row .produksi-bahan-field:first-child,
.produksi-bahan-row .produksi-bahan-field:nth-child(4) {
  grid-column:1 / -1;
}


.produksi-bahan-field {
  min-width:0;
  max-width:100%;
}

.produksi-bahan-field label {
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:600;
  color:var(--text-secondary,#64748b);
}

.produksi-bahan-field select,
.produksi-bahan-field input {
  display:block;
  width:100%;
  max-width:100%;
  height:38px;
  box-sizing:border-box;
  padding:0 11px;
  border:1px solid var(--border-color,#e2e8f0);
  border-radius:8px;
  background:var(--bg-card,#ffffff);
  color:var(--text-primary,#1e293b);
  font-size:13px;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}

.produksi-bahan-field select:focus,
.produksi-bahan-field input:focus {
  border-color:var(--primary-color,#2563eb);
  box-shadow:0 0 0 3px rgba(37,99,235,.08);
}

.produksi-bahan-input-group {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

.produksi-bahan-input-group input {
  flex:1;
  min-width:0;
}

.produksi-bahan-unit {
  flex-shrink:0;
  min-width:32px;
  font-size:12px;
  color:var(--text-secondary,#64748b);
}

.produksi-bahan-remove {
  position:absolute;
  top:14px;
  right:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid #fecaca;
  border-radius:8px;
  background:#fff;
  color:#dc2626;
  cursor:pointer;
}
.produksi-bahan-remove:hover {
  background:#fef2f2;
  border-color:#fca5a5;
}

.produksi-bahan-remove svg {
  width:16px;
  height:16px;
}

/* ==========================================
   SEARCHABLE DROPDOWN
   ========================================== */

.searchable-dropdown {
  position:relative;
  width:100%;
}

.searchable-dropdown-trigger {
  width:100%;
  min-height:42px;
  padding:0.625rem 0.875rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:0.95rem;
  color:#374151;
  background:#ffffff;
  border:1px solid #d1d5db;
  border-radius:6px;
  cursor:pointer;
  box-sizing:border-box;
  text-align:left;
}

.searchable-dropdown-trigger:hover {
  border-color:#2563eb;
}

.searchable-dropdown-trigger:focus {
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,0.1);
}

.searchable-dropdown-trigger svg {
  width:18px;
  height:18px;
  flex-shrink:0;
}

.searchable-dropdown-menu {
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:1000;
  display:none;
  background:#ffffff;
  border:1px solid #d1d5db;
  border-radius:8px;
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
  overflow:hidden;
}

.searchable-dropdown.open .searchable-dropdown-menu {
  display:block;
}

.searchable-dropdown-search {
  position:relative;
  padding:8px;
  border-bottom:1px solid #e5e7eb;
  background:#ffffff;
}

.searchable-dropdown-search svg {
  position:absolute;
  top:50%;
  left:18px;
  width:16px;
  height:16px;
  color:#64748b;
  transform:translateY(-50%);
  pointer-events:none;
}

.searchable-dropdown-search input {
  width:100%;
  height:38px;
  padding:0 10px 0 34px;
  font-size:0.9rem;
  color:#374151;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:6px;
  outline:none;
  box-sizing:border-box;
}

.searchable-dropdown-search input:focus {
  border-color:#2563eb;
  background:#ffffff;
}

.searchable-dropdown-options {
  max-height:220px;
  overflow-y:auto;
  padding:4px 0;
}

.searchable-dropdown-option {
  padding:10px 12px;
  font-size:0.9rem;
  color:#374151;
  cursor:pointer;
}

.searchable-dropdown-option:hover {
  background:#f1f5f9;
}

.searchable-dropdown-option.selected {
  color:#2563eb;
  background:#eff6ff;
  font-weight:500;
}

.searchable-dropdown-empty {
  padding:12px;
  font-size:0.9rem;
  color:#64748b;
  text-align:center;
}

.searchable-dropdown-trigger:disabled {
  color:#94a3b8;
  background:#f8fafc;
  border-color:#e2e8f0;
  cursor:not-allowed;
  opacity:1;
}

.searchable-dropdown-trigger:disabled:hover {
  border-color:#e2e8f0;
  background:#f8fafc;
  box-shadow:none;
}

.searchable-dropdown-trigger:disabled svg {
  color:#94a3b8;
}

/* ABSENSI POPUP OTOMATIS */
.absensi-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(15 23 42 / 62%);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.absensi-popup-overlay.is-visible {
  display: flex;
}

.absensi-popup-card {
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid rgb(226 232 240 / 85%);
  border-radius: 22px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #1e293b);
  box-shadow: 0 24px 70px rgb(15 23 42 / 22%);
  font-family: inherit;
  line-height: 1.6;
}

.absensi-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.absensi-popup-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 16px;
  background: #e8f5ec;
  color: #256f46;
}

.absensi-popup-icon svg {
  width: 25px;
  height: 25px;
}

.absensi-popup-header h2 {
  margin: 0 0 4px;
  color: var(--text-primary, #1e293b);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.absensi-popup-header p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  line-height: 1.5;
}

.absensi-popup-card > p {
  color: var(--text-primary, #1e293b);
  font-size: 14px;
  line-height: 1.7;
}

.absensi-popup-question {
  margin: 0 0 18px;
  font-size: 15px !important;
  font-weight: 600;
}

.absensi-popup-card form {
  margin-top: 20px;
}

.absensi-popup-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.absensi-popup-card .form-group label {
  display: block;
  margin: 0;
  color: var(--text-primary, #334155);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.absensi-popup-card .form-group select,
.absensi-popup-card .form-group textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #1e293b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.absensi-popup-card .form-group select {
  cursor: pointer;
}

.absensi-popup-card .form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.absensi-popup-card .form-group select::placeholder,
.absensi-popup-card .form-group textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.absensi-popup-card .form-group select:focus,
.absensi-popup-card .form-group textarea:focus {
  border-color: #2e8b57;
  box-shadow: 0 0 0 3px rgb(46 139 87 / 13%);
}

.absensi-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.absensi-popup-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.absensi-popup-actions .btn:active {
  transform: scale(0.985);
}

.absensi-popup-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.absensi-popup-actions .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.absensi-popup-nanti {
  display: block;
  margin: 18px auto 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.absensi-popup-nanti:hover {
  background: #f1f5f9;
  color: #334155;
}


.attendance-review-group {
  margin-top: 16px;
}

.attendance-review-note {
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.attendance-review-note:focus {
  outline: none;
  border-color: #256f46;
  box-shadow: 0 0 0 3px rgb(37 111 70 / 12%);
}

.attendance-review-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.attendance-review-actions .btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
}

.attendance-review-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}


@media (max-width: 480px) {
  .absensi-popup-overlay {
    align-items: center;
    padding: 12px;
  }

  .absensi-popup-card {
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
    border-radius: 18px;
  }

  .absensi-popup-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .absensi-popup-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .absensi-popup-header h2 {
    font-size: 18px;
  }

  .absensi-popup-question {
    font-size: 14px !important;
  }

  .absensi-popup-card .form-group select,
  .absensi-popup-card .form-group textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .absensi-popup-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .absensi-popup-card {
    padding: 20px;
    border-radius: 20px;
  }
}


/*====================
Blok — Password Toggle: menempatkan tombol mata di dalam input password.
======================*/

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-control {
  width: 100%;
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle-btn:hover {
  color: var(--primary-color, #2563eb);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}