/* Error/confirm SweetAlert copy stays in the middle in en, ar, and fr. */

.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) {
    text-align: center;
}

.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center;
}

.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-title,
.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container,
.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container p,
html[lang="en"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-title,
html[lang="en"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container,
html[lang="en"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container p,
html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-title,
html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container,
html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container p,
html[lang="fr"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-title,
html[lang="fr"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container,
html[lang="fr"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container p {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    margin-inline: auto !important;
}

html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-title,
html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container,
html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-html-container p {
    direction: rtl;
    unicode-bidi: isolate;
}

.swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .swal2-actions {
    justify-content: center !important;
    width: 100%;
}

html[lang="ar"] .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .text-start,
html[lang="ar"] .swal2-container .swal2-popup:not(.swal2-toast):not(.boc-service-option-picker):not(.boc-clear-visit):not(.boc-return-product) .text-start {
    text-align: center !important;
}

.swal2-popup.boc-clear-visit {
    width: min(26.5rem, calc(100vw - 2rem));
    padding: 1.45rem 1.35rem 1.15rem;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.swal2-popup.boc-clear-visit .boc-clear-visit__title {
    margin: 0 0 0.85rem;
    color: #1e3a5f;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

html[lang="ar"] .swal2-popup.boc-clear-visit,
html[lang="ar"] .swal2-popup.boc-clear-visit .boc-clear-visit__title,
html[lang="ar"] .swal2-popup.boc-clear-visit .boc-clear-visit__copy {
    direction: rtl;
    unicode-bidi: isolate;
}

.swal2-popup.boc-clear-visit .swal2-html-container.boc-clear-visit__body,
.swal2-popup.boc-clear-visit .boc-clear-visit__body {
    margin: 0;
    padding: 0;
    text-align: start !important;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #f8fafc;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__mark {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 134, 168, 0.12);
    color: #0086a8;
    font-size: 0.95rem;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__copy {
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: start;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__when {
    display: inline;
    direction: ltr;
    unicode-bidi: isolate;
    font-weight: 800;
    white-space: nowrap;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 1.15rem 0 0;
    direction: ltr;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__yes,
.swal2-popup.boc-clear-visit .boc-clear-visit__no {
    min-height: 44px;
    margin: 0;
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__no {
    border: 0;
    background: transparent;
    color: #1e3a5f;
}

.swal2-popup.boc-clear-visit .boc-clear-visit__yes {
    min-width: 7.5rem;
    border: 0;
    background: #0086a8;
    color: #fff;
}

/* Occupied-room confirm only. Close stays in the inline-end corner, clear of the message in en, ar, and fr. */
.swal2-popup.boc-in-room-displace .swal2-html-container,
html[lang="en"] .swal2-popup.boc-in-room-displace .swal2-html-container,
html[lang="ar"] .swal2-popup.boc-in-room-displace .swal2-html-container,
html[lang="fr"] .swal2-popup.boc-in-room-displace .swal2-html-container {
    box-sizing: border-box;
    padding-inline: 3rem;
}

.swal2-popup.boc-in-room-displace .swal2-close,
html[lang="en"] .swal2-popup.boc-in-room-displace .swal2-close,
html[lang="ar"] .swal2-popup.boc-in-room-displace .swal2-close,
html[lang="fr"] .swal2-popup.boc-in-room-displace .swal2-close {
    position: absolute;
    z-index: 3;
    top: 0.35rem;
    right: auto;
    left: auto;
    inset-inline-end: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.swal2-popup.boc-in-room-displace .swal2-confirm {
    background-color: #dc2626 !important;
}

/* Dental bill timing only. Close stays in the inline-end corner, clear of the full title in en, ar, and fr. */
.swal2-popup.boc-dental-bill-when .swal2-title,
html[lang="en"] .swal2-popup.boc-dental-bill-when .swal2-title,
html[lang="ar"] .swal2-popup.boc-dental-bill-when .swal2-title,
html[lang="fr"] .swal2-popup.boc-dental-bill-when .swal2-title {
    box-sizing: border-box;
    padding-inline: 3rem;
}

.swal2-popup.boc-dental-bill-when .swal2-close,
html[lang="en"] .swal2-popup.boc-dental-bill-when .swal2-close,
html[lang="ar"] .swal2-popup.boc-dental-bill-when .swal2-close,
html[lang="fr"] .swal2-popup.boc-dental-bill-when .swal2-close {
    position: absolute;
    z-index: 3;
    top: 0.35rem;
    right: auto;
    left: auto;
    inset-inline-end: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: auto;
}

/* Every popup with a close button (Per tooth or all teeth, Upper/Lower/All, Change color, print choices…):
   one plain X in the top inline-end corner, beside the title and never on it, with no frame or focus ring
   when it opens. A soft round highlight shows on hover, and a ring only for keyboard focus. */
.swal2-popup:not(.swal2-toast) .swal2-close {
    position: absolute;
    z-index: 3;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    outline: none;
    overflow: visible;
    transform: none;
}

.swal2-popup:not(.swal2-toast) .swal2-close:hover {
    background: #f1f5f9;
    color: #1e3a5f;
    transform: none;
}

.swal2-popup:not(.swal2-toast) .swal2-close:focus {
    box-shadow: none;
    outline: none;
}

.swal2-popup:not(.swal2-toast) .swal2-close:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 134, 168, 0.45);
}

.swal2-popup:not(.swal2-toast):has(> .swal2-close:not([style*="none"])) .swal2-title {
    box-sizing: border-box;
    padding-inline: 3.5rem;
}

.swal2-popup.boc-return-product {
    width: min(26.5rem, calc(100vw - 2rem));
    padding: 1.45rem 1.35rem 1.15rem;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.swal2-popup.boc-return-product .boc-return-product__title {
    margin: 0 0 0.85rem;
    color: #1e3a5f;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

html[lang="ar"] .swal2-popup.boc-return-product,
html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__title,
html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__field {
    direction: rtl;
    unicode-bidi: isolate;
}

.swal2-popup.boc-return-product .boc-return-product__body {
    margin: 0;
    padding: 0;
    text-align: start !important;
}

.swal2-popup.boc-return-product .boc-return-product__field,
.swal2-popup.boc-return-product select.swal2-select,
.swal2-popup.boc-return-product input.swal2-input {
    width: 100% !important;
    min-height: 48px;
    margin: 0.35rem 0 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: none;
}

.swal2-popup.boc-return-product .boc-return-product__field:focus,
.swal2-popup.boc-return-product select.swal2-select:focus,
.swal2-popup.boc-return-product input.swal2-input:focus {
    border-color: #0086a8;
    box-shadow: 0 0 0 3px rgba(0, 134, 168, 0.15);
}

.swal2-popup.boc-return-product .boc-return-product__actions {
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    margin: 1.15rem 0 0;
    direction: ltr;
}

.swal2-popup.boc-return-product .boc-return-product__yes,
.swal2-popup.boc-return-product .boc-return-product__deny,
.swal2-popup.boc-return-product .boc-return-product__no {
    min-height: 44px;
    margin: 0;
    border-radius: 10px;
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.swal2-popup.boc-return-product .boc-return-product__no {
    border: 0;
    background: transparent;
    color: #1e3a5f;
}

.swal2-popup.boc-return-product .boc-return-product__deny {
    border: 1px solid #0086a8;
    background: #fff;
    color: #0086a8;
}

.swal2-popup.boc-return-product .boc-return-product__yes {
    min-width: 7.5rem;
    border: 0;
    background: #0086a8;
    color: #fff;
}

.swal2-popup.boc-return-product .boc-return-product__fields {
    display: grid;
    gap: 0.45rem;
}

.swal2-popup.boc-return-product .boc-return-product__label {
    margin: 0.45rem 0 0;
    color: #1e3a5f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: start;
}

.swal2-popup.boc-return-product .boc-return-product__qty {
    direction: ltr;
    text-align: start;
}

.swal2-popup.boc-return-product .boc-return-product__batch[hidden] {
    display: none !important;
}

html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__title {
    text-align: center;
}

html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__label,
html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__field {
    direction: rtl;
    text-align: start;
}

html[lang="ar"] .swal2-popup.boc-return-product .boc-return-product__qty {
    direction: ltr;
    text-align: start;
}
