i.fa.fa-check-circle.text-success[data-info-success],
.info-modal .logo .fa,
.info-modal .info-btn .fa,
.legacy-popup .fa,
.modal .fa {
    color: #ff842b !important;
}

.info-modal .info-btn img {
    filter: brightness(0) saturate(100%) invert(61%) sepia(80%) saturate(1920%) hue-rotate(342deg) brightness(102%) contrast(102%);
}

html body .announcement-launcher[data-announcements-open],
html body .announcement-launcher[data-announcements-open]:is(:hover, :focus, :active) {
    position: fixed;
    right: max(16px, calc((100vw - 425px) / 2 + 16px));
    bottom: calc(80px + 16px);
    z-index: 990;
    padding: 10px 16px;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ff9619 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 4px 14px rgb(140 87 45 / 12%);
    font-size: 14px;
    font-weight: 500;
}

body i.fa.fa-trash,
body i.fa.fa-trash-o,
body .profile-delete-trigger {
    color: #dc3545 !important;
}
/* Shared size for trash glyphs, including section-specific and inline sizes. */
body .fa-trash,
body .fa-trash-o,
body .fa-trash-alt,
body .fa-trash-can {
    font-size: 25px !important;
}
body .profile-delete-trigger svg {
    width: 25px;
    height: 25px;
}

.announcement-screen .announcement-screen-inner {
    background: #fffaf6;
    color: #202a35;
}

.announcement-screen .announcement-screen-header {
    min-height: calc(55px + env(safe-area-inset-top, 0px));
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    flex-shrink: 0;
    box-sizing: border-box;
    border: 0;
    background-color: #ff842b;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

.announcement-screen .announcement-screen-header h2 {
    font-size: 19px;
    font-weight: 700;
}

.announcement-screen .announcement-screen-header a,
.announcement-screen .announcement-screen-header button {
    padding: 7px 10px;
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 10px;
    background: rgb(255 255 255 / 16%);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

/* Keep the collapse control readable on the configured header background. */
.announcement-screen .announcement-screen-header [data-announcements-collapse],
.announcement-screen .announcement-screen-header [data-announcements-collapse]:is(:hover, :focus, :active) {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    border-color: rgb(255 255 255 / 70%) !important;
    background: rgb(255 255 255 / 16%) !important;
    opacity: 1;
}

.announcement-screen .announcement-screen-body {
    padding: 16px;
}

.announcement-screen .announcement-screen-card {
    margin-bottom: 12px;
    padding: 18px 40px 18px 16px;
    border: 1px solid #f3e9e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(140 87 45 / 6%);
    color: #202a35;
    font-size: 16px;
    line-height: 1.6;
}

.announcement-screen .announcement-name {
    margin: 10px 0;
    color: #e77628;
    font-size: 16px;
}

.announcement-screen .announcement-screen-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
    top: 10px;
    right: 8px;
    width: 28px;
    height: 30px;
    border-radius: 9px;
    background: #fff0e4;
    color: #e77628;
    cursor: pointer;
}

.announcement-screen .announcement-screen-card img {
    border-radius: 10px;
}

.announcement-screen button:focus-visible,
.announcement-screen a:focus-visible {
    outline: 2px solid #ffb16d;
    outline-offset: 2px;
}

.notifications-screen > .row:first-child {
    min-height: 55px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.notifications-screen > .row:first-child > .page-title {
    position: relative;
    margin-bottom: 0 !important;
    color: #fff;
}

.notifications-screen > .row:first-child > .page-title > span {
    width: auto;
    margin-top: 0;
}

.notifications-screen > .row:first-child > .page-title > a {
    flex-shrink: 0;
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 10px;
    background: rgb(255 255 255 / 18%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.notifications-screen > .row:first-child > .page-title > a:hover,
.notifications-screen > .row:first-child > .page-title > a:focus {
    background: rgb(255 255 255 / 28%);
    text-decoration: none;
}

.notifications-screen > article.alert {
    position: relative;
    margin-top: 0;
    clear: both;
    margin-bottom: 12px;
    padding: 18px 40px 18px 16px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(140 87 45 / 9%);
    color: #202a35;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

.notifications-screen > article.alert .date {
    margin-bottom: 8px;
    color: #8b929b;
    font-size: 16px;
}

.notifications-screen > article.alert .name {
    margin-bottom: 10px;
    color: #e77628;
    font-size: 16px;
    font-weight: 700;
}

.notifications-screen > article.alert .content {
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.notifications-screen > article.alert .close {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    right: 8px;
    width: 28px;
    height: 30px;
    padding: 5px;
    border-radius: 9px;
    background: #fff1f0;
    opacity: 1;
}

.notifications-screen > article.alert .close img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.notifications-screen > article.alert .close > span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.panel-new {
    background-image: none;
}

.panel-new .top {
    height: 80px;
    min-height: 80px;
    border-radius: 0;
    background: #ff7916 url('/frontend/bg_1.png') center / cover no-repeat;
}

.panel-new .top .city-default[hidden] {
    display: none;
}

.salemdos-top-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.salemdos-language-control {
    position: relative;
    display: inline-flex;
}

.salemdos-language-control::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 16px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
}

.panel-new .top .salemdos-language-select {
    appearance: none;
    -webkit-appearance: none;
    width: 70px;
    height: 44px;
    padding: 0 20px 0 10px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 24px;
    background: rgb(255 255 255 / 17%);
    box-shadow: inset 0 1px 3px rgb(255 255 255 / 20%);
    color: #fff;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.salemdos-language-select option {
    background: #ff8527;
    color: #fff;
}

/* Keep native selection and keyboard handling; enhance the picker where supported. */
@supports (appearance: base-select) {
    .panel-new .top .salemdos-language-select,
    .salemdos-language-select::picker(select) {
        appearance: base-select;
    }

    .panel-new .top .salemdos-language-select {
        align-items: center;
    }

    .salemdos-language-select::picker-icon {
        display: none;
    }

    .salemdos-language-select::picker(select) {
        margin-top: 7px;
        padding: 5px;
        border: 1px solid rgb(255 255 255 / 65%);
        border-radius: 18px;
        background: linear-gradient(145deg, #ffab51, #ff7228);
        box-shadow: 0 9px 24px rgb(129 54 13 / 22%);
        color: #fff;
    }

    .salemdos-language-select option {
        min-height: 40px;
        padding: 9px 12px;
        border-radius: 12px;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer;
    }

    .salemdos-language-select option:hover,
    .salemdos-language-select option:focus,
    .salemdos-language-select option:checked {
        background: rgb(255 255 255 / 24%);
        color: #fff;
    }

    .salemdos-language-select option::checkmark {
        margin-left: auto;
        order: 1;
        color: #fff;
    }
}

.salemdos-notifications-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(255 255 255 / 55%);
    background: rgb(255 255 255 / 17%);
    box-shadow: inset 0 1px 3px rgb(255 255 255 / 20%);
    color: #fff;
    border-radius: 8px;
}

.salemdos-notifications-link:hover {
    background: rgb(255 255 255 / 15%);
    color: #fff;
}

.salemdos-notifications-link svg {
    filter: drop-shadow(0 2px 3px rgb(139 58 13 / 20%));
}

.salemdos-notifications-link:focus-visible,
.salemdos-language-select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.terminal-header.salemdos-header-background {
    background: #ff7916 url('/frontend/bg_1.png') center / cover no-repeat;
    max-width: 460px;
    height: auto;
    min-height: 55px;
    margin-bottom: 32px;
    padding: 8px 16px;
}

@media print {

}
.legacy-popup:not(.employee-face-preview) .legacy-popup-panel {
    border-radius: 16px !important;
    overflow: hidden;
}
.legacy-popup .legacy-popup-header {
    border-radius: 16px 16px 0 0;
    background: #ff842b !important;
    color: #fff !important;
}
html body .legacy-popup.legacy-poll-result-popup .legacy-popup-header,
html body .legacy-popup.legacy-protocol-popup .legacy-popup-header,
html body .legacy-popup.legacy-protocol-voters-popup .legacy-popup-header {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
html body .legacy-protocol-voters-popup .legacy-popup-header,
html body .legacy-protocol-voters-popup .legacy-popup-body { padding: 16px; }
html body .legacy-protocol-voters-popup .legacy-popup-body > div { padding: 16px 0 !important; }
html body .legacy-protocol-voters-popup .legacy-popup-body > div:first-child { padding-top: 0 !important; }
html body .legacy-protocol-voters-popup .legacy-popup-body > div:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }
.legacy-popup .legacy-object-image-count {
    border-radius: 8px;
    background: #fff0e4;
    color: #c46020;
}
.legacy-popup [data-object-card] .bg-grey { background: #fff0e4 !important; }

.legacy-poll-result-popup .text-secondary { color: #d36e27 !important; }
.legacy-poll-result-popup .legacy-popup-body { padding: 16px; color: #202a35; font-size: 16px; line-height: 1.5; }
.legacy-poll-result-popup .legacy-result-row, .legacy-poll-result-popup .legacy-poll-result-line { gap: 10px; padding: 10px 0; border-color: #f0e7df; font-size: 16px; font-variant-numeric: tabular-nums; }
.legacy-poll-result-popup hr { margin: 16px 0; border-color: #f0e7df; }
.legacy-poll-result-popup .legacy-voter-card { margin: 12px 0; padding: 14px; border: 1px solid #f0dfd1; border-radius: 10px; background: #fffaf6 !important; color: #202a35; font-size: 16px; box-shadow: none; }
.legacy-poll-result-popup .legacy-voter-card > p { margin-bottom: 12px; }
.legacy-poll-result-popup .legacy-voter-card-result { gap: 10px; padding: 8px 0; border-top: 1px solid #f0e7df; border-bottom: 1px solid #f0e7df; }
.legacy-poll-result-popup .legacy-voter-card-result > span:last-child { color: #b65b1e; font-weight: 600; }
.legacy-poll-result-popup .legacy-voter-card-objects { gap: 12px; margin-top: 10px; }
.legacy-poll-result-popup .legacy-voter-card-objects > button,
.legacy-poll-result-popup .legacy-voter-card-objects > button:hover { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 36px; min-height: 36px; padding: 6px; border: 0; background: transparent !important; color: #ed7e2b; box-shadow: none !important; }
.legacy-poll-result-popup .legacy-voter-card-objects > button .fa { color: #ed7e2b !important; font-size: 22px; }

.salemdos-warning-mark::before { content: ''; display: block; width: 36px; height: 36px; margin: 0 auto 12px; background: url('/frontend/warning-triangle.svg') center / contain no-repeat; }

/* Service icons: replace only the four legacy purple variants. */
img[src*="26320_944576_14.png"] { content: url('/upload/images/73939_498745_16.png'); }
img[src*="17737_368744_14.png"] { content: url('/upload/images/45173_113005_16.png'); }
img[src*="67772_40614_14.png"] { content: url('/upload/images/14831_764367_16.png'); }
img[src*="17071_333599_14.png"] { content: url('/upload/images/10275_163739_16.png'); }
img[src*="26320_944576_14.png"],
img[src*="17737_368744_14.png"],
img[src*="67772_40614_14.png"],
img[src*="17071_333599_14.png"] {
    filter: brightness(0) saturate(100%) invert(61%) sepia(80%) saturate(1920%) hue-rotate(342deg) brightness(102%) contrast(102%);
}

/* Preserve the white badge while recoloring the delivery silhouette. */
.legacy-service-type.active img[src*="10275_163739_16.png"],
img.request-service-icon-orange[src*="10275_163739_16.png"],
img[src*="17071_333599_14.png"] {
    filter: url("#salemdos-delivery-orange") !important;
}
