/* KMT basit form popup’ları (İş Emri / Öneri-Talep) */

html body .kmt-simple-form-popup.dxbl-modal .modal-dialog,
html body .modal.kmt-simple-form-popup .modal-dialog,
html body .kmt-simple-form-popup.dxbs-modal .dxbs-modal-dialog {
    max-width: 560px;
    width: min(560px, 94vw);
    margin: 1.5rem auto;
}

html body .kmt-simple-form-popup .modal-content,
html body .kmt-simple-form-popup .dxbs-modal-content {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 59, 149, 0.18) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16) !important;
}

html body .kmt-simple-form-popup .dxbl-modal-header-default,
html body .kmt-simple-form-popup .dxbs-modal-header.HeaderTitleCss,
html body .kmt-simple-form-popup .modal-header.HeaderTitleCss {
    min-height: 2.65rem !important;
    height: 2.65rem !important;
    max-height: 2.65rem !important;
    padding: 0 2.75rem !important;
    box-sizing: border-box !important;
}

html body .kmt-simple-form-popup .modal-body,
html body .kmt-simple-form-popup .dxbs-modal-body,
html body .kmt-simple-form-popup .kmt-simple-form-popup-body {
    padding: 0 !important;
    background: #fff !important;
}

html body .kmt-simple-form-popup .modal-footer,
html body .kmt-simple-form-popup .dxbs-modal-footer {
    padding: 0.85rem 1.5rem 1.1rem !important;
    background: #f8fafc !important;
    border-top: 1px solid #e8edf3 !important;
    justify-content: flex-end !important;
    gap: 0.65rem;
}

.kmt-simple-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.35rem 1.5rem 1.15rem;
    box-sizing: border-box;
}

.kmt-simple-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.kmt-simple-form-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.01em;
}

.kmt-simple-form .e-input-group,
.kmt-simple-form .TSITxtBox,
.kmt-simple-form .e-control-wrapper {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.kmt-simple-form .e-input-group,
.kmt-simple-form .e-control-wrapper {
    border-radius: 8px !important;
}

.kmt-simple-form .e-input-group:not(.e-disabled):hover,
.kmt-simple-form .e-control-wrapper:hover {
    border-color: rgba(0, 59, 149, 0.45) !important;
}

.kmt-simple-form .e-input-group.e-input-focus,
.kmt-simple-form .e-control-wrapper.e-input-focus {
    border-color: var(--emm-brand-primary, #003b95) !important;
    box-shadow: 0 0 0 3px rgba(0, 59, 149, 0.12) !important;
}

.kmt-simple-form-memo textarea,
.kmt-simple-form .e-multi-line-input textarea,
.kmt-simple-form .kmt-simple-form-memo .e-input {
    min-height: 128px !important;
    height: 128px !important;
    resize: vertical;
    line-height: 1.45 !important;
    padding: 0.65rem 0.75rem !important;
}

.kmt-simple-form-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.kmt-simple-form-footer .e-btn,
.kmt-simple-form-footer .TSISaveButton,
.kmt-simple-form-footer .TSICancelButton {
    min-width: 110px !important;
    height: 2.35rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0 1rem !important;
}

@media (max-width: 575.98px) {
    .kmt-simple-form {
        padding: 1.1rem 1.1rem 1rem;
        gap: 1rem;
    }

    html body .kmt-simple-form-popup .modal-footer,
    html body .kmt-simple-form-popup .dxbs-modal-footer {
        padding: 0.75rem 1.1rem 1rem !important;
    }
}
