/* Modal / Dialog Component */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(1px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: #0f172a;
  color: #fff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 13px;
  font-weight: 700;
}

.btn-modal-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.btn-modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.modal-table td:first-child {
  width: 110px;
  font-weight: 600;
  color: #64748b;
}

.modal-footer {
  background: #f8fafc;
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}
