/* Gaya seragam modal Bootstrap eKenderaan (sepadan dengan borang popup pengguna).
   Tiada butang x di penjuru header: modal ditutup dengan butang Tutup/Batal di footer atau Esc. */
.modal[style*="background-color"],
.modal-backdrop.show {
    background-color: rgba(11, 27, 51, .55) !important;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal .modal-dialog {
    margin-top: 5vh;
}

.modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .45);
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1e293b;
}

.modal .modal-header,
.modal .modal-header.bg-primary,
.modal .modal-header.alert-danger,
.modal .modal-header.alert-success {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background: #fff !important;
    background-image: none !important;
    color: #0d2746 !important;
}

.modal .modal-title,
.modal .modal-header h4,
.modal .modal-header h5 {
    margin: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: #0d2746;
}

.modal .modal-title b {
    font-weight: inherit;
}

.modal .modal-header.alert-danger .modal-title,
.modal .modal-header.alert-danger h4 {
    color: #b91c1c;
}

.modal .modal-header.alert-success .modal-title,
.modal .modal-header.alert-success h4 {
    color: #047857;
}

/* Butang x di penjuru dibuang bila footer ada butang tutup */
.modal.mh-siap .modal-header .close {
    display: none !important;
}

.modal .modal-body {
    padding: 18px 20px;
    font-size: 13px;
}

.modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal .modal-footer > * {
    margin: 0;
}

.modal .modal-footer .btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.modal .modal-footer .btn-primary,
.modal .modal-footer .btn-success {
    border: 0;
    background: #0d2746;
    color: #fff;
}

.modal .modal-footer .btn-primary:hover,
.modal .modal-footer .btn-success:hover {
    background: #163a66;
}

.modal .modal-footer .btn-default,
.modal .modal-footer .btn-secondary,
.modal .modal-footer .mh-tutup {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.modal .modal-footer .btn-default:hover,
.modal .modal-footer .btn-secondary:hover,
.modal .modal-footer .mh-tutup:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal .modal-footer .btn-danger {
    border: 0;
    background: #dc2626;
    color: #fff;
}

.modal .form-control {
    border-radius: 8px;
}

.modal .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .2);
}
