.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(.5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.modal-overlay.active {
    display: flex;
}
.modal-overlay > .modal {
    background-color: #fff;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
.modal-overlay > .modal > .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.modal-overlay > .modal > .modal-header > .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}
.modal-overlay > .modal > .modal-body {
    padding: 20px;
}
.modal-overlay > .modal > .modal-body > .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 15px auto;
}
.modal-overlay > .modal > .modal-body > .form-group > .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}
.modal-overlay > .modal > .modal-body > .form-group > .form-control,
.modal-overlay > .modal > .modal-body > .form-group > .form-select {
    height: 37px;
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
}
.modal-overlay > .modal > .modal-body > .form-group > .form-control::placeholder {
    color: #aaa;
}
.modal-overlay > .modal > .modal-body > .form-group > .form-control:focus,
.modal-overlay > .modal > .modal-body > .form-group > .form-select:focus {
    border-color: #333;
}
.modal-overlay > .modal > .modal-body > .modal-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}
.modal-overlay > .modal > .modal-body > .modal-text.warning {
    color: #dc2626;
    font-weight: 500;
}
.modal-overlay > .modal > .modal-body > .modal-text.hint {
    color: #6b7280;
}
.modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.modal-detail-row:last-child {
    border-bottom: none;
}

.modal-detail-row .label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.modal-detail-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}
.modal-overlay > .modal > .modal-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.modal-overlay > .modal > .modal-footer > .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-success {
    background-color: #16a34a;
    color: #fff;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-success:hover {
    background-color: #15803d;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-secondary:hover {
    background: #d1d5db;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-danger {
    background: #dc2626;
    color: #ffffff;
}
.modal-overlay > .modal > .modal-footer > .btn.btn-danger:hover {
    background: #b91c1c;
}
.modal-overlay > .modal > .modal-footer > .btn.btn:active {
    transform: scale(0.98);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}






