
:root {
    --main-min-width: 320px;
    --main-background-color: #F8F8F8;
    --form-title-color: #B6B6B6;
    --form-control-placeholder-color: #B6B6B6;
    --form-control-color: #7e7d7d;
    --form-control-border-color: #E5E5E5;
    --form-control-focus-border-color: #9BBB31;
    --form-control-bg-color: #fff;

    --link-phone-color: #3A95D8;
    --link-phone-hover-color: #2178b6;

    --color-light: #B6B6B6;
}

body, html, main {
    width: 100%;
    height: 100%;
    min-width: 320px;
    padding: 0;
    background-color: var(--main-background-color);
    min-width: var(--main-min-width);
}

/*
    bootstrap default style overload
*/
.avatar {
    background: #718d17;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase !important;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.avatar-middle {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    font-size: 2rem;
}

.avatar-big {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    font-size: 4rem;
}

.font-h2 {
    color: rgba(155, 187, 49, 1);
    font-weight: 600;
    font-size: 1.6rem;
}

.text-color-red {
    color: rgba(255, 123, 123, 1);
}

.color-light {
    color: var(--color-light);
}

.color-light2 {
    color: rgba(149, 149, 149, 1);
}

.color-light3 {
    color: rgba(73, 73, 73, 1);
}

.fs-7 {
    font-size: .8rem !important;
}

.table th {
    color: rgba(182, 182, 182, 1);
}

a {
    color: rgba(155, 187, 49, 1);
}

a:hover {
    color: rgb(114, 139, 29);
}

.text-bg-primary {
    color: #fff !important;
    background-color: rgba(155, 187, 49, 0.7) !important;
}

.text-bg-danger {
    color: #fff !important;
    background-color: rgba(255, 123, 123, 0.7) !important;
}

.text-bg-warning {
    color: #fff !important;
    background-color: rgba(254, 197, 23, 1) !important;
}

.text-bg-info {
    color: #fff !important;
    background-color: rgba(111, 216, 239, 0.7) !important;
}

.text-primary {
    color: rgba(155, 187, 49, 0.7) !important;
}

.text-danger {
    color: rgba(255, 123, 123, 0.7) !important;
}

.text-info {
    color: rgba(111, 216, 239, 0.7) !important;
}

.table th {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(241, 241, 241, 1) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: rgba(250, 250, 250, 1) !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #9BBB31;
    --bs-btn-border-color: #9BBB31;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #84a122;
    --bs-btn-hover-border-color: #84a122;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #718d17;
    --bs-btn-active-border-color: #718d17;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #c6d496;
    --bs-btn-disabled-border-color: #c6d496;
}

.btn-primary:focus {
    outline: 0;
    box-shadow: none;
}

.btn-outline-primary {
    --bs-btn-color: #9BBB31;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #9BBB31;
    --bs-btn-hover-color: #9BBB31;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: #84a122;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #84a122;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: #718d17;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #c6d496;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #c6d496;
    --bs-gradient: none;
}

.btn-warning {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: rgba(254, 197, 23, 1);
    --bs-btn-border-color: rgba(254, 197, 23, 1);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: rgba(254, 214, 93, 1);
    --bs-btn-hover-border-color: rgba(254, 214, 93, 1);
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: rgba(254, 214, 93, 1);
    --bs-btn-active-border-color: rgba(254, 214, 93, 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #ffc107;
    --bs-btn-disabled-border-color: #ffc107;
}

.btn-outline-light {
    --bs-btn-color: rgba(58, 149, 216, 1);
    --bs-btn-border-color: rgba(58, 149, 216, 1);
    --bs-btn-hover-color: rgba(117, 181, 227, 1);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: rgba(117, 181, 227, 1);
    --bs-btn-focus-shadow-rgb: 248, 249, 250;
    --bs-btn-active-color: rgba(117, 181, 227, 1);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: rgba(117, 181, 227, 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgb(140, 196, 236);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgb(140, 196, 236);
    --bs-gradient: none;
}


.form-control::placeholder {
    color: var(--form-control-placeholder-color);
}

.form-control:-ms-input-placeholder {
    color: var(--form-control-placeholder-color);
}

.form-control::-ms-input-placeholder {
    color: var(--form-control-placeholder-color);
}

.form-control {
    color: var(--form-control-color);
    background-color: var(--form-control-bg-color);
    border-color: var(--form-control-border-color);
    outline: 0;
    box-shadow: none;
}

.form-control:focus {
    color: var(--form-control-color);
    background-color: var(--form-control-bg-color);
    border-color: var(--form-control-focus-border-color);
    outline: 0;
    box-shadow: none;
}

.form-check-input[type=checkbox] {
    border-radius: 0;
    background-color: var(--form-control-bg-color);
    border: var(--bs-border-width) solid var(--form-control-border-color);
    box-shadow: none;
}

.form-check-input[type=checkbox]:checked {
    background-color: var(--form-control-focus-border-color);
    border: var(--bs-border-width) solid var(--form-control-focus-border-color);
    box-shadow: none;
}

@media screen and (max-width: 720px) {
    .g-5, .gy-5 {
        --bs-gutter-y: 1rem;
    }

    .g-5, .gx-5 {
        --bs-gutter-x: 1rem;
    }
}

/*
    yonl defaul style
*/
.min-w-320px {
    min-width: 320px !important;
}

.disabled-user-select {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.link-phone {
    color: var(--link-phone-color);
}

.link-phone:hover {
    color: var(--link-phone-hover-color);
}

.base-box {
    box-shadow: 0px 0px 16px 0px #B4B4B440;
    border-radius: 5px;
    background-color: #fff;
}

.btn-link:hover svg path {
    fill: #9BBB31 !important;
}

/*
    yonl login page
*/
.form-signin {
    max-width: 330px;
    padding: 1rem;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

/*
    yonl base page
*/
#header,
.page-nav {
    z-index: 1000;
}

header {
    box-shadow: 0px 0px 16px 0px #B4B4B440;
    background: #FFFFFF;
    height: 48px;
    position: fixed;
    top: 0;
}

header .space {
    width: 64px;
}

#content > div {
    padding-bottom: 40px;
}

.page-wrapper {
    height: calc(100vh - 48px);
}

.page-nav {
    width: 64px;
    background: #FFFFFF;
    position: fixed;
    top: 48px;
    left: 0px;
    height: calc(100% - 48px);
}

.page-content {
    background: #F8F8F8;
    margin-left: 64px;
    margin-top: 48px;
    /* height: 100%; */
}

.nav-link {
    padding: 0;
}

.nav-text {
    font-size: 10px;
    color: #B6B6B6;
}

.nav-link img {
    width: 24px;
    height: 24px;
}

.nav-link.active .nav-text,
.nav-link:hover .nav-text {
    color: #9BBB31 !important;
}

.nav-link.active svg path,
.nav-link:hover svg path {
    fill: #9BBB31 !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #B6B6B6;
    background-color: #fff;
}

@media screen and (max-width: 720px) {
    #header,
    #content,
    .page-nav {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    #header .space {
        width: 0px;
        display: none;
    }

    #content > div {
        padding-bottom: 0px;
    }

    .page-wrapper {
        flex-direction: column !important;
    }

    .page-nav {
        width: 100%;
        order: 2;
        position: fixed;
        bottom: 0;
        left: auto;
        top: auto;
        height: 77px;
    }

    .page-nav .nav {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .page-content {
        order: 1;
        padding-bottom: 120px;
        margin-left: 0px;
    }
}

/*
    yonl news page
*/
.news-block div {
    color: var(--color-light);
}

.news-block {
    background: #fff;
    border: 1px solid #FF7B7B;
    border-radius: 5px;
    box-shadow: 0px 0px 16px 0px rgba(180, 180, 180, 0.25);

}

.news-block + .news-block {
    margin-top: 1.5rem;
}

.vk-block {
    background: #fff;
    box-shadow: 0px 0px 16px 0px rgba(180, 180, 180, 0.25);
    margin-left: 1.5rem;
    border-radius: 5px;
}

.vk-block div {
    color: #B6B6B6;
}

.vk-block .btn {
    background-color: rgba(58, 149, 216, 1);
    color: #fff;
    text-decoration: none;
}

.vk-block .btn:hover {
    background-color: rgb(23, 119, 187);
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 720px) {
    .news-block-top {
        flex-direction: column-reverse !important;
    }

    .news-wrapper {
        flex-direction: column !important;
    }

    .news-wrapper .news {
        order: 2;
    }

    .news-wrapper .vk-block {
        order: 1;
        margin-left: 0rem;
        margin-bottom: 1.5rem;
    }
}

/*
    yonl tariff page
*/
.separator {
    width: 100%;
    height: 1px;
    background-color: rgba(229, 229, 229, 1);
}

.tariff-block-info div {
    color: rgba(149, 149, 149, 1);
}

@media screen and (max-width: 1280px) {
    .tariff-wrapper .col {
        width: 100% !important;
        flex: 1 1 100%;
    }

    .tariff-wrapper .row .col {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

.tariff-wrapper .row {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none; /* Firefox */
    }

    .tariff-wrapper .row::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .tariff-scrollbar-container {
        width: 100%;
        height: 12px;
        background: #f0f0f0;
        border-radius: 6px;
        margin-top: 15px;
        margin-bottom: 25px;
        position: relative;
        overflow: hidden;
    }

    .tariff-scrollbar-thumb {
        height: 100%;
        background-color: #9BBB31; /* Green color from logo */
        border-radius: 6px;
        position: absolute;
        left: 0;
        top: 0;
        width: 30%; /* Will be updated via JS */
        cursor: pointer;
    }
}

/*
    yonl main page
*/
.working-hours-block {
    min-width: 250px;
}

.working-hours {
    color: rgba(73, 73, 73, 1);
}

@media screen and (max-width: 900px) {
    .info-wrapper .main-top-block {
        flex-direction: column !important;
    }

    .info-wrapper .news-block {
        margin-right: 0px !important;
        margin-bottom: 1.5rem !important;
    }

    .info-wrapper .working-hours {
        display: flex;
        justify-content: space-between !important;
    }

    .info-wrapper .working-hours > * {
        text-align: left !important;
    }

    .info-wrapper .working-hours > p:nth-child(2) {
        text-align: right !important;
    }
}

/*
    yonl profile page
*/
.profile-wrapper .col {
    border-right: 1px solid rgba(229, 229, 229, 1);
}

.profile-wrapper .col:last-child {
    border-right: none;
}

@media screen and (max-width: 1300px) {
    .profile-personal-information-wrapper {
        flex-direction: column !important;
    }

    .profile-wrapper .col,
    .profile-wrapper .col-3,
    .profile-wrapper .col-6 {
        width: 100% !important;
        flex: 1 1 100%;
    }
}


/*
    yonl pay page
*/
.pay-wrapper .pay-history-wrapper .input-group {
    width: auto !important;
}

.pay-wrapper .pay-history-wrapper {
    z-index: 2;
    position: relative;
}

.pay-wrapper .form-check-label,
.pay-wrapper .form-check {
    cursor: pointer;
}

.pay-wrapper .form-check.checked,
.pay-wrapper .form-check:hover {
    background-color: #9BBB31;
}

.pay-wrapper .btn-group {
    border-radius: 5px;
}

.pay-wrapper .form-check .form-check-input {
    margin-top: .0px;
    margin-left: 0px;
}

.pay-wrapper .form-check .form-check-label {
    margin-left: 1.25rem;
}

@media screen and (max-width: 1350px) {
    .pay-wrapper .pay-change-balance-wrapper .col {
        width: 100% !important;
        flex: 1 1 100%;
    }

    .pay-wrapper .pay-change-balance-wrapper .btn-group {
        display: flex;
        flex-direction: column !important;
        margin-bottom: 1.25rem;
    }

    .pay-wrapper .pay-change-balance-wrapper .btn-group > * {
        width: 100%;
        height: 50px;
        border-radius: 3px;
    }

    .pay-wrapper .pay-change-balance-wrapper .col-12 > * {
        display: flex;
        flex-direction: column !important;
        align-items: normal !important;
    }

    .pay-wrapper .pay-terminal-addresses-wrapper .col-4 {
        width: 100% !important;
        flex: 1 1 100%;
        margin-top: 1.25rem;
    }

    .pay-wrapper .pay-history-wrapper {
        flex-direction: column !important;
        align-items: normal !important;
    }

    .pay-wrapper .pay-history-wrapper .d-inline-flex {
        flex-direction: column !important;
        margin-bottom: 1.25rem;
    }

    .pay-wrapper .pay-history-wrapper .input-group {
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .pay-wrapper .btn-group .form-check {
        margin: 0px !important;
    }

    .pay-wrapper .btn-group .form-check:nth-child(1) {
        margin-bottom: 1.25rem !important;
    }
}


/* ====== Tariff card: 3 columns (Tariff / Settings / Services) ====== */

/* убиваем наследование text-center внутри карточки */
.base-box.tariff {
    text-align: left;
}
.base-box.tariff * {
    text-align: inherit;
}

/* общий контейнер 3 колонок */
.tariff3 {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* колонки: одинаковые правила для header и body */
.tariff3__col--left  { flex: 1 1 320px; min-width: 320px; padding-right: 24px; }
.tariff3__col--mid   { flex: 1 1 320px; min-width: 320px; padding: 0 18px; }
.tariff3__col--right { flex: 1 1 320px; min-width: 320px; padding-left: 18px; }

/* вертикальные разделители “на всю высоту” строки */
.tariff3__sep {
    width: 1px;
    background: rgba(200, 200, 200, .25);
    align-self: stretch;
}

/* заголовок колонки */
.tariff3__hdr {
    color: var(--color-light);
    font-size: 1.25rem; /* fs-5 */
    margin: 0 0 16px 0;
}

/* списки без левого “выпадающего” буллета */
.tariff3 ul {
    padding-left: 1.1rem;
    margin: 0;
}

/* mobile: колонки в столбик, разделители убрать */
@media screen and (max-width: 990px) {
    .tariff3 { flex-wrap: wrap; }
    .tariff3__sep { display: none; }
    .tariff3__col--left,
    .tariff3__col--mid,
    .tariff3__col--right {
        min-width: 100%;
        padding: 0;
        margin-bottom: 16px;
    }
    .tariff3__col--right { margin-bottom: 0; }
}


/* Mobile header tweaks: center phone button and prevent overflow */
@media screen and (max-width: 720px) {
    #header {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        justify-content: space-between !important;
    }

    #header .left {
        flex: 1;
        justify-content: flex-start;
    }

    #header .right {
        flex: 1;
        justify-content: flex-end;
        gap: 0.5rem;
        min-width: 0;
    }

    #header .working-hours-block {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0 !important; /* Override the 250px min-width from line 532 */
    }

    #header .working-hours {
        display: none !important;
    }

    #header .working-hours-block .btn {
        white-space: nowrap;
        font-size: 0.75rem; /* Smaller font to save space */
        padding: 0.25rem 0.5rem;
    }

    #header img[src*="logo.svg"] {
        width: 100px; /* Scale down logo to avoid overlap */
        height: auto;
    }
}
