﻿

    /* --- Curve section --- */
    .public-layout #curve {
        background-image: linear-gradient(180deg, var(--background-light), white);
        padding: 20px;
        clip-path: ellipse(100% 90% at 50% 0%);
        padding-top: 50px;
        height: 420px;
    }

    /* --- Branch visibility --- */
    .public-layout .onebra,
    .public-layout .multibra {
        opacity: 0;
    }

    /* --- Form control focus --- */
    .public-layout .form-control:focus {
        border-color: var(--background-light);
        outline: 0;
        box-shadow: 0 0 0 2px var(--bs-primary);
    }

    /* --- Semantic UI dropdown --- */
    .public-layout .ui.selection.active.dropdown {
        border-color: var(--background-light);
        box-shadow: 0 0 0 2px var(--bs-primary);
    }

    /* --- Header --- */
    .public-layout #masterHeader {
        height: 50px;
        background: var(--background-light);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    /* --- Main wrapper --- */
    .public-layout ._main {
        position: relative;
        padding-bottom: 65px;
        background: transparent;
        margin-top: -406px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .public-layout ._main::-webkit-scrollbar {
            width: 0px;
            height: 0px;
            display: none;
        }

    /* --- Text & background utilities --- */
    .public-layout .text-primary {
        color: var(--bs-primary) !important;
    }

    .public-layout ._bg-primary {
        background: var(--bs-primary);
        color: white;
    }

    .public-layout ._bdcomname {
        font-family: var(--bs-body-font-family) !important;
        color: var(--bs-primary) !important;
    }

    /* --- Container typography --- */
    .public-layout ._container div,
    .public-layout ._container p,
    .public-layout ._container span {
        color: var(--color-text);
        font-family: 'Be Vietnam Pro', sans-serif !important;
    }

    /* --- Label spacing --- */
    .public-layout ._main ._label {
        margin-bottom: 6px;
        margin-top: 12px;
    }

/* --- Responsive: mobile --- */
@media only screen and (max-width: 600px) {
    .public-layout ._main .action_Save-Content {
        width: 100%;
    }

    .public-layout ._main .btn.action {
        width: 100%;
    }

    .public-layout ._appcont {
        border: none !important;
    }
}

/* --- App container border --- */
.public-layout ._appcont {
    border: 1px solid #b2b2b245;
}

/* --- Ellipsis two lines --- */
.public-layout ._main .ellipsis_two_line {
    line-height: 1.55 !important;
}

/* --- Flatpickr overrides --- */
.public-layout .flatpickr-calendar {
    border: none !important;
    box-shadow: none !important;
}

.public-layout ._main .flatpickr-calendar .flatpickr-day.selected {
    background: var(--background-light) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--bs-primary) !important;
}

@media (hover: hover) and (pointer: fine) {
    .public-layout ._main .flatpickr-calendar .flatpickr-day:not(.selected):hover,
    .public-layout ._main .flatpickr-calendar .flatpickr-day:not(.selected):focus {
        background: var(--background-light) !important;
        border: 1px solid var(--bs-primary) !important;
    }
}

/* --- Flag image --- */
.public-layout .flag-image {
    width: 30px;
    border-radius: 100px;
    border: 1px solid #d0d0d0;
}

/* --- Navbar --- */
.public-layout .navbar {
    box-shadow: none !important;
}

/* --- Percentage bar --- */
.public-layout ._percentage {
    top: 59px;
    width: 250px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

/* --- Container layout --- */
.public-layout ._container {
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: linear-gradient(180deg, var(--background-light), white);
}

/* --- Sections nav --- */
.public-layout #sectionsNav.show-menu {
    background: var(--background-light);
}

.public-layout #sectionsNav {
    z-index: 9000;
}

/* --- Navbar mobile --- */
.public-layout .navbar-mobile.showmenu,
.public-layout .more._show {
    display: block;
    opacity: 1 !important;
}

.public-layout .navbar-mobile {
    background-image: linear-gradient(180deg, var(--background-light), white) !important;
    position: absolute;
    top: 100%;
    left: 0;
    height: calc(100vh - 44px);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    transition: visibility 0s, opacity 0.2s linear;
    width: 100%;
}

@media (max-width: 991px) {
    .public-layout .navbar .navbar-translate {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: space-between !important;
        align-items: center;
        transition: transform 0.5s cubic-bezier(0.685, 0.0473, 0.346, 1);
    }
}

/* --- Branch item (bitem) --- */
@media (hover: hover) and (pointer: fine) {
    .public-layout .bitem:hover {
        border: 1px solid var(--bs-primary) !important;
        background: var(--background-light) !important;
        cursor: pointer;
    }
}

.public-layout .bitem.selected,
.public-layout ._back:hover,
.public-layout ._colapmenu:hover,
.public-layout .mlan:hover,
.public-layout .mlan.active,
.public-layout ._calapp:hover {
    border: 1px solid var(--bs-primary) !important;
    background: var(--background-light) !important;
    cursor: pointer;
}

.public-layout ._calapp:hover {
    color: unset !important;
}

.public-layout ._calapp:last-child {
    border-top-right-radius: 7px !important;
    border-bottom-right-radius: 7px !important;
    border-right: 1px solid #d2d6da;
}

.public-layout ._calapp {
    cursor: pointer;
    padding: 0.4rem 0.9rem !important;
}

.public-layout .mlan {
    border: 1px solid transparent !important;
    display: inline-block;
}

.public-layout #_bdm_LangArea hr,
.public-layout #_pam_LangArea hr {
    opacity: 0.1 !important;
    margin: 0 30px;
}

.public-layout .bitem.selected .check {
    opacity: 1 !important;
}

.public-layout .bitem {
    border-width: 1px !important;
    transition: border 0.3s ease-in-out, background 0.3s ease-in-out;
}

    .public-layout .bitem .check,
    .public-layout #_bdbtnSer {
        opacity: 0;
        transition: opacity 0.25s ease-in-out;
        pointer-events: none;
    }

        .public-layout .bitem.selected .check,
        .public-layout #_bdbtnSer.show {
            opacity: 1 !important;
            pointer-events: inherit !important;
        }

/* --- Pattern / feature branch --- */
.public-layout ._pattern {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50px;
    overflow: hidden;
    background: var(--background-light) !important;
}

.public-layout ._feabrach {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin: auto;
    position: absolute;
    border-radius: 50px;
    top: 0;
}

/* --- App employee item --- */
.public-layout .appemp {
    min-width: 90px;
    max-width: 120px;
    border: 1px solid transparent;
    margin-right: 3px !important;
    overflow: hidden;
}

/* --- Arrows --- */
.public-layout .arrows.left {
    left: 20px;
}

.public-layout .arrows.right {
    right: 0px;
}

.public-layout .arrows .arrow {
    border: 1px solid transparent;
    height: 27px;
    width: 28px !important;
    display: block;
}

    .public-layout .arrows .arrow:hover {
        border: 1px solid var(--bs-primary) !important;
        background: var(--background-light);
    }

/* --- Carousel --- */
.public-layout .carousel-wrapper {
    position: absolute;
    left: 40px;
    right: 40px;
    width: calc(100% - 97px);
    transition: transform 0.5s ease-in-out;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: auto;
}

    .public-layout .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

.public-layout .carousel-container {
    height: 90px;
    position: relative;
}

/* --- Flatpickr full-width calendar --- */
.public-layout .flatpickr-months {
    display: none;
}

.public-layout .flatpickr-calendar {
    width: 100% !important;
    max-width: none !important;
}

.public-layout .flatpickr-innerContainer {
    width: 100% !important;
}

.public-layout .flatpickr-day {
    flex: 1 0 auto;
    text-align: center;
}

.public-layout .flatpickr-days {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.public-layout .showTimeInput {
    border: none !important;
    box-shadow: none !important;
}

.public-layout .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
}

.public-layout .flatpickr-day {
    flex: 1 0 calc(100% / 7);
    max-width: calc(100% / 7);
    text-align: center;
    margin: 2px 0;
}

.public-layout .flatpickr-rContainer {
    width: 100%;
    padding: 5px;
    border: 1px solid #e6e6e6;
    padding-top: 13px;
    border-radius: 8px;
}

.public-layout .flatpickr-weekdays {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 10px;
    font-size: 16px;
}

.public-layout .flatpickr-weekday {
    font-weight: 500 !important;
}

/* --- App time picker --- */
.public-layout .apptime {
    width: 70px;
    display: inline-block;
    margin: 6px 4px 1px 1px;
    border-radius: 10px !important;
}

/* --- Language dropdown --- */
.public-layout #_bdcbbLanguage,
.public-layout #_pacbbLanguage {
    position: absolute;
    top: 30px;
    background: white;
    min-width: 120px;
    right: -9px;
    max-height: unset;
    padding: 10px !important;
}

/* --- Slide animations --- */
.public-layout .slide-in {
    opacity: 0;
    transform: translateX(30%);
    animation: publicSlideIn 0.35s ease-in-out forwards;
}

.public-layout .slide-out {
    opacity: 1;
    transform: translateX(0);
    animation: publicSlideOut 0.35s ease-in-out forwards;
}

.public-layout .slide-in-left {
    opacity: 0;
    transform: translateX(-30%);
    animation: publicSlideInLeft 0.35s ease-in-out forwards;
}

.public-layout .slide-out-left {
    opacity: 1;
    transform: translateX(0);
    animation: publicSlideOutLeft 0.35s ease-in-out forwards;
}

/* --- Error states --- */
.public-layout ._block._bg_block.error {
    background: #FFF6F6 !important;
    border-color: #E0B4B4 !important;
}

.public-layout ._block.error .errtext {
    display: block !important;
}

/* --- Button hover --- */
.public-layout .btn:hover:not(.btn-icon-only) {
    color: white !important;
    box-shadow: #ffc1c1 0px 0px 0px 3px, #ffe6e6 0px 0px 0px 6px !important;
}

/* --- Form validation --- */
.public-layout #bd_form .ui.basic.red.pointing.prompt,
.public-layout #pa_form .ui.basic.red.pointing.prompt {
    display: none !important;
}

/* --- Disabled states --- */
.public-layout .apptime.disabled,
.public-layout ._calapp.back.disabled {
    background: #d5d5d5;
    pointer-events: none;
    opacity: 0.5;
}

/* --- Branch address "more" --- */
.public-layout #_bdm_BranchAddress .more,
.public-layout #_pam_BranchAddress .more {
    opacity: 0;
    transition: visibility 0s, opacity 0.2s linear;
    display: none;
}

    .public-layout #_bdm_BranchAddress .more._show,
    .public-layout #_pam_BranchAddress .more._show {
        display: block;
    }

/* --- Social icons --- */
.public-layout .social {
    opacity: 0;
    transform: translateY(-20px);
    animation: publicLineUp 0.2s forwards;
    animation-delay: 0.7s;
}

.public-layout .hotconArea img {
    aspect-ratio: 1;
    width: 40px;
    height: 40px;
    border-radius: 20px;
}

.public-layout .solcialItem {
    opacity: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s all;
    background: #fff;
    border-radius: 50px;
    padding: 3px 15px;
    box-shadow: 0px 5px 20px 0px #bebebe;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
    text-transform: none;
}

.public-layout .social:hover .solcialItem {
    opacity: 1;
    right: 100%;
}

@keyframes publicSlideIn {
    from {
        opacity: 0;
        transform: translateX(30%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes publicSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30%);
    }
}

@keyframes publicSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes publicSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30%);
    }
}

@keyframes publicLineUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
