/* Sistem geneli SweetAlert2 teması */
/* html { background:#28a745 } overscroll color must not show through the overlay */
.swal2-container,
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/*
 * Toast: SA2 default keeps height:100% on container + toast spans all grid rows
 * → tall white sidebar. Force a compact top-corner chip instead.
 */
html body.swal2-toast-shown .swal2-container,
html body.swal2-toast-shown .swal2-container.swal2-top,
html body.swal2-toast-shown .swal2-container.swal2-top-start,
html body.swal2-toast-shown .swal2-container.swal2-top-end,
html body.swal2-toast-shown .swal2-container.swal2-top-left,
html body.swal2-toast-shown .swal2-container.swal2-top-right,
html body.swal2-toast-shown .swal2-container.swal2-center,
html body.swal2-toast-shown .swal2-container.swal2-center-start,
html body.swal2-toast-shown .swal2-container.swal2-center-end,
html body.swal2-toast-shown .swal2-container.swal2-bottom,
html body.swal2-toast-shown .swal2-container.swal2-bottom-start,
html body.swal2-toast-shown .swal2-container.swal2-bottom-end,
html .swal2-container:has(.swal2-toast) {
    display: block !important;
    position: fixed !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important;
    transform: none !important;
    inset: auto !important;
    z-index: 20000 !important;
}
html body.swal2-toast-shown .swal2-container.swal2-top-end,
html body.swal2-toast-shown .swal2-container.swal2-top-right,
html .swal2-container.swal2-top-end:has(.swal2-toast),
html .swal2-container.swal2-top-right:has(.swal2-toast) {
    top: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
}
html body.swal2-toast-shown .swal2-container.swal2-top-start,
html body.swal2-toast-shown .swal2-container.swal2-top-left,
html .swal2-container.swal2-top-start:has(.swal2-toast) {
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
}
html body.swal2-toast-shown .swal2-container.swal2-top,
html .swal2-container.swal2-top:has(.swal2-toast) {
    top: 16px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
}
html body.swal2-toast-shown .swal2-container.swal2-bottom-end,
html body.swal2-toast-shown .swal2-container.swal2-bottom-right {
    top: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
}
html body.swal2-toast-shown .swal2-container.swal2-bottom-start,
html body.swal2-toast-shown .swal2-container.swal2-bottom-left {
    top: auto !important;
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
}
html body.swal2-toast-shown .swal2-container.swal2-bottom {
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
}
html body.swal2-toast-shown .swal2-container.swal2-center-end,
html body.swal2-toast-shown .swal2-container.swal2-center-right {
    top: 50% !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
}
html body.swal2-toast-shown .swal2-container.swal2-center-start,
html body.swal2-toast-shown .swal2-container.swal2-center-left {
    top: 50% !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}
html body.swal2-toast-shown .swal2-container.swal2-center {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}

.swal2-container.swal2-center:not(.logistics-offer-modal-container):not(:has(.swal2-toast)) {
    align-items: center !important;
    justify-content: center !important;
}
.swal2-popup:not(.swal2-toast) {
    width: min(300px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    padding: 1.35rem 1.1rem 1.15rem !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    align-self: center !important;
    justify-self: center !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: min(90dvh, 90%) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}
/* Long confirm dialogs (account delete, app cancel, etc.) */
.swal2-popup.swal2-popup-large:not(.swal2-toast),
.swal2-popup.swal-app-cancel-confirm:not(.swal2-toast) {
    width: min(480px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    padding: 1.5rem 1.35rem 1.25rem !important;
}
.swal2-popup.swal2-toast {
    display: grid !important;
    grid-template-columns: min-content auto min-content !important;
    grid-column: auto !important;
    grid-row: auto !important;
    box-sizing: border-box !important;
    width: max-content !important;
    max-width: min(340px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16) !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}
.swal2-popup.swal2-toast .swal2-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    width: auto !important;
    color: #1f2429 !important;
}
.swal2-popup.swal2-toast .swal2-html-container {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    width: auto !important;
    color: #6b7380 !important;
    overflow: visible !important;
}
.swal2-popup.swal2-toast .swal2-icon {
    grid-column: 1 !important;
    grid-row: 1 / 99 !important;
    align-self: center !important;
    width: 1.75em !important;
    min-width: 1.75em !important;
    height: 1.75em !important;
    margin: 0 10px 0 0 !important;
    transform: none !important;
    flex-shrink: 0 !important;
}
.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1.1em !important;
}
.swal2-popup.swal2-toast .swal2-actions {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}
html body.swal2-toast-shown .swal2-container.jb-swal-toast-wrap,
html .swal2-container.jb-swal-toast-wrap {
    display: block !important;
    position: fixed !important;
    width: auto !important;
    max-width: min(360px, calc(100vw - 24px)) !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 20000 !important;
}
.swal2-popup.swal2-toast.jb-swal-toast {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.swal2-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1f2429 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.swal2-html-container,
.swal2-html-container p {
    font-size: 0.95rem !important;
    color: #6b7380 !important;
    line-height: 1.45 !important;
    font-family: inherit !important;
    white-space: normal !important;
    word-break: normal !important;
}

.swal2-icon {
    margin: 0.4rem auto 0.75rem !important;
    transform: scale(0.92);
}

.swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 1rem 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
}

.swal2-confirm,
.swal2-deny {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 999px !important;
    background: #28a745 !important;
    background-color: #28a745 !important;
    color: #fff !important;
    min-height: 48px !important;
    padding: 12px 22px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.swal2-confirm:hover,
.swal2-confirm:focus,
.swal2-confirm:active,
.swal2-confirm:visited,
.swal2-deny:hover,
.swal2-deny:focus,
.swal2-deny:active,
.swal2-deny:visited {
    background: #218838 !important;
    background-color: #218838 !important;
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.swal2-cancel {
    order: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px 10px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #6b7380 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.swal2-cancel:hover,
.swal2-cancel:focus,
.swal2-cancel:active,
.swal2-cancel:visited {
    background: transparent !important;
    background-color: transparent !important;
    color: #495057 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.swal2-styled,
.swal2-styled:hover,
.swal2-styled:focus,
.swal2-styled:active,
.swal2-styled:visited,
.swal2-actions button,
.swal2-actions button:hover,
.swal2-actions button:focus,
.swal2-actions button:active,
.swal2-actions button:visited {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Sistem geneli: buton focus mavi halka kapalı */
button:focus,
button:active,
button:focus-visible,
.btn:focus,
.btn:active,
.btn:focus-visible,
a.btn:focus,
a.btn:focus-visible,
input[type="button"]:focus,
input[type="submit"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Başvuru iptal onay diyaloğu — Vazgeç / Eminim yan yana, siyah tema */
.swal2-popup.swal-app-cancel-confirm .swal2-actions,
.swal-app-cancel-confirm.swal2-popup-large .swal2-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 12px !important;
}

.swal-app-cancel-confirm .swal2-cancel,
.swal-app-cancel-confirm .app-cancel-swal-no {
    order: 1 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid #111 !important;
    border-radius: 12px !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.swal-app-cancel-confirm .swal2-confirm,
.swal-app-cancel-confirm .app-cancel-swal-yes {
    order: 2 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid #111 !important;
    border-radius: 12px !important;
    background: #111 !important;
    background-color: #111 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.swal-app-cancel-confirm .swal2-cancel:hover,
.swal-app-cancel-confirm .swal2-cancel:focus,
.swal-app-cancel-confirm .swal2-cancel:active,
.swal-app-cancel-confirm .app-cancel-swal-no:hover,
.swal-app-cancel-confirm .app-cancel-swal-no:focus,
.swal-app-cancel-confirm .app-cancel-swal-no:active,
.swal-app-cancel-confirm .swal2-confirm:hover,
.swal-app-cancel-confirm .swal2-confirm:focus,
.swal-app-cancel-confirm .swal2-confirm:active,
.swal-app-cancel-confirm .app-cancel-swal-yes:hover,
.swal-app-cancel-confirm .app-cancel-swal-yes:focus,
.swal-app-cancel-confirm .app-cancel-swal-yes:active {
    outline: none !important;
    box-shadow: none !important;
}
