@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

/* Применяем шрифт и фон */
html {
    height: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* === Кнопки-переключатели === */
.interval-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.interval-selector label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 18px;
    border: 2px solid #ced4da;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    font-weight: 500;
    color: #495057;
}
.interval-selector label:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}
/* Полное скрытие нативного radio */
.interval-selector label input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
    clip: rect(0,0,0,0); clip-path: inset(50%); border: 0;
    appearance: none; -webkit-appearance: none; pointer-events: none;
}
/* Активное состояние */
.interval-selector label:has(input:checked) {
    background: #0d6efd; color: #fff; border-color: #0d6efd;
    box-shadow: 0 4px 10px rgba(13,110,253,0.3);
}

/* === Блок "День недели + Час" === */
#day-of-week-extra {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px dashed #adb5bd;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}
#day-of-week-extra.active { display: block; }

.day-week-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ai-buttons .checkbox {
    margin: 0 !important;
}

.ai-buttons label svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.ai-buttons label {
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*min-width: 130px;*/
    padding: 4px 10px;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.ai-buttons label:hover {
    border-color: #1abc9c;
    background: #1abc9c;
}

.ai-buttons label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.ai-buttons label:has(input:checked) {
    background-color: #1abc9c;
    border-color: #1abc9c;
    color: #ffffff;
}

/* Контейнер иконки */
.tooltip-trigger {
    margin-top: -4px;
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    background: #8e8e8e;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    user-select: none;
}

/* Блок подсказки */
.tooltip-trigger .tooltip-box {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 9999;
    bottom: 135%; /* Позиция над иконкой */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.1s, visibility 0.1s;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none; /* Чтобы не мешал кликам */
}

/* Стрелка снизу подсказки */
.tooltip-trigger .tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

/* Показываем при наведении */
.tooltip-trigger:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

.wrapper {
    flex-grow: 1;
}

.text-muted-readable {
    color: #6c757d !important;
}

/* Стиль кнопки */
.btn-brand-green {
    background-color: #00b894;
    border-color: #00b894;
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-brand-green:hover {
    background-color: #00a383;
    border-color: #00a383;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стиль карточки входа */
.login-card {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 1rem;
}

.ajax-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

tr.choose-project:hover {
    background-color: #d7ecfe;
    --bs-table-bg: transparent;
}

.nav-tabs .nav-link {
    background-color: #f8f8f8;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border: 1px solid #d1d1d1;
    /*border-left: none;*/
}

.nav-tabs .nav-item:last-child .nav-link {
    border-top-left-radius: 0 !important;
    border-top-right-radius: var(--bs-nav-tabs-border-radius) !important;
}

.nav-tabs .nav-item:first-child .nav-link.active {
    border-top-left-radius: var(--bs-nav-tabs-border-radius) !important;
    border-top-right-radius: 0 !important;
    border-left: 1px solid #d1d1d1 !important;
    border-right: 1px solid #d1d1d1 !important;
}

.nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: var(--bs-nav-tabs-border-radius) !important;
    border-top-right-radius: 0 !important;
    /*border-right: none !important;*/
    border-left: 1px solid #d1d1d1 !important;
}

ul.nav.nav-tabs a.nav-link.active:hover {
    border-bottom-color: #ffffff !important;
}

ul.nav.nav-tabs a.nav-link.active.nav-link {
    margin-top: -4px;
    padding-top: 12px;
    border-top-left-radius: var(--bs-nav-tabs-border-radius) !important;
    border-top-right-radius: var(--bs-nav-tabs-border-radius) !important;
    border-left: 1px solid #d1d1d1;
    background: #fff;
    color: #000000;
}

.choose-project {
    cursor: pointer;
    font-size: 12px;
}

#collapseMenu {
    max-width: 600px;
    min-width: 300px;
}

#collapseAccount, #collapseBalance, #collapseCategory, #collapseMenu {
    border: 1px solid #e3e3e3;
    background-color: #fff;
    text-align: left;
    border-radius: 4px;
    position: absolute;
    z-index: 100;
}

#account-menu {
    text-align: right;
}

#collapseAccount ul, #collapseBalance ul, #collapseCategory ul {
    list-style: none;
}

#collapseAccount ul li:hover a, #collapseCategory ul li:hover a {
    background-color: #f8f8f8;
    color: #000;
}

#collapseAccount ul li a, #collapseCategory ul li a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    color: #333;
    transition: background-color .15s ease-out, color .15s ease-out;
    padding: 10px 19px !important;
    font-size: 12px !important;
}

#collapseMenu table thead th {
    color: #777;
    background-color: #eee;
    font-weight: 400;
    font-size: 12px;
}

#collapseMenu table {
    border: 1px solid #d9d9d9;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.choose-project.active {
    cursor: not-allowed;
}

.grid-header a {
    text-decoration: none;
    color: inherit;
}

.grid-header {
    box-sizing: border-box;
    vertical-align: middle;
    background-color: #eee !important;
    color: #777;
    border-bottom: 1px solid #d9d9d9;
    height: 38px;
    cursor: pointer;
    font-weight: 400;
    padding: 7px 9px;
}

.primary-link {
    font-size: 12px;
}

.active {
    background: #d7ecfe;
    --bs-table-bg: transparent;
}

.tab-pane.active {
    background: transparent !important;
    --bs-table-bg: transparent !important;
}

.btn-icon.dropdown-toggle::after {
    margin-left: 1.2em
}

td {
    padding: 0 0.5rem !important;
    font-size: 12px !important;
    vertical-align: middle;
}

.form-control {
    font-size: 12px;
    line-height: normal;
}

.btn {
    font-size: 12px !important;
}

.btn-icon .fa {
    margin-right: 10px;
}

#mass-target:disabled {
    opacity: .5;
}

#mass-target {
    transition: 150ms;
}

#account-tabs a h1 {
    margin-bottom: 0;
    line-height: inherit;
    font-weight: normal;
}

#account-tabs a h1, #account-tabs a {
    font-size: 15px !important;
}

.help-block {
    color: #f52222;
}

#yandexagreeform-target {
    border-radius: 0.35rem;
    border: 1px solid;
}

.text-bg-ok {
    background-color: rgba(73, 204, 144, 0.3) !important;
    --bs-table-bg: transparent;
}

.text-red {
    color: #f52222;
}

.text-bg-delete {
    /*background-color: #f52222 3d;*/
    background: rgba(245, 34, 34, .1) !important;
    --bs-table-bg: transparent;
}

.text-bg-ready {
    background-color: rgba(73, 204, 144, 0.1) !important;
    /*background: rgba(255, 243, 205, .7) !important;*/
}

.text-bg-neutral {
    /*background-color: #f52222 3d;*/
    background: rgba(97, 175, 254, .1) !important;
}

.btn.text-bg-ok:hover, .btn.text-bg-neutral:hover, .btn.text-bg-delete:hover {
    color: rgba(0, 0, 0, .5);
}

.btn.text-bg-ok.disabled, .btn.text-bg-neutral.disabled, .btn.text-bg-delete.disabled {
    color: grey;
    background: transparent !important;
    border-color: grey;
}

.disabled h4, .disabled span, .disabled input {
    opacity: .5
}

.text-bg-ready, .text-bg-ok, .text-bg-neutral, .text-bg-delete {
    --bs-table-bg: transparent;
}

.btn-green:hover {
    color: #fff !important;
    background-color: #17a98c !important;
}

.btn-green {
    background-color: #1abc9c;
    color: #fff !important;
    box-shadow: none;
}

.btn-deep-blue:hover {
    background: #485378;
    color: #fff;
}

.text-deep-blue {
    color: #4a5c88;
    font-weight: 700;
}

.btn-deep-blue {
    font-size: 15px !important;
    font-weight: 700;
    background: #4a5c88;
    border-right: 2px solid #42537a;
    color: #fff;
    box-shadow: none;
}

.account-phone-footer, .account-phone-footer a {
    color: rgba(33, 37, 41, 0.75) !important;
    font-size: 1.2rem !important;
    text-decoration: none;
}

.account-phone-footer a {
    font-weight: 500;
}

.kv-sidenav-bs4.nav-pills > .nav-item:last-child > .nav-link {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.kv-sidenav-bs4.nav-pills .nav-item:last-child .nav-link {
    border-bottom: none;
}

.nav-pills > li.nav-item:last-child,
.nav-pills {
    border-bottom-left-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #343848;
}

.payment_button {
    width: 200px;
}

.green-btn:hover {
    color: #ffffff;
    background-color: #00be9c;
    border-color: #00be9c;
}

.green-btn {
    color: #00be9c;
    border-color: #00be9c;
}

a.nav-link.active.nav-link {
    background: #00be9c;
}

a.kv-toggle.nav-link.active.nav-link {
    background: #fff;
    color: rgb(108, 117, 125);
    /*background: rgb(108, 117, 125);*/
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    color: #000;
    background-color: #f0f0f0;
    border-color: #d1d1d1;
}

.nav-link {
    color: rgb(108, 117, 125);
}

input.apple-switch {
    position: relative;
    -webkit-appearance: none;
    outline: none;
    background-color: #fff;
    border: 1px solid #39383e;
    box-shadow: inset -20px 0 0 0 #39383e;
    padding-left: 0;
    color: #39383e;
    transition: 50ms;
    width: 40px;
    height: 20px;
    border-radius: 40px;
}

input.apple-switch:after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    background: transparent;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
}

input.apple-switch:checked {
    box-shadow: inset 20px 0 0 0 #00be9c;
    border-color: #00be9c;
    transition: 50ms
}

input.apple-switch:checked:after {
    left: 20px;
    box-shadow: -2px 4px 3px rgba(0, 0, 0, 0.05);
}

.footer-light {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 2.5rem 0;
    color: #212529;
}

.footer-light .footer-heading {
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.footer-light a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-light a:hover {
    color: #007bff; /* Или ваш фирменный синий/зеленый */
}

.footer-light .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer-light .phone-number a {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-light .bottom-text {
    color: #6c757d;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.footer-light .social-icons a {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #6c757d;
}

.footer-light .social-icons a:hover {
    color: #212529;
}

.btn {
    font-size: 12px !important;
}

.btn-history {
    color: #00be9c;
    background: #fff;
    border: 1px solid #00be9c;
    margin: 2px;
}

.btn-history:hover {
    color: #fff;
    background: #00be9c;
    border: 1px solid #00be9c;
}

.btn-history span {
    /*color: #00be9c;*/
}

span.svg-m8 svg {
    margin: 8px 0;
}

/** calendar */

.calendar {
    width: 100%;
    min-width: 360px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

.month {
    text-align: center;
    background-color: #f4f4f4;
    padding: 10px;
    font-weight: bold;
}

.days-of-week, .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.days-of-week {
    font-weight: bold;
    background-color: #eee;
    padding: 5px 0;
}

.days-grid div {
    padding: 10px 0;
    border: 1px solid #eee;
    /*border-top: none;*/
    /*border-left: none;*/
}

.days-grid div:nth-child(7n), .days-grid div:nth-child(7n-1) {
    color: #ff6961;
}

sup.index-green {
    color: #3b753b !important;
}

sup.index-red {
    color: #ff6961 !important;
}

.light-green-btn, .blue-btn, .light-blue-btn, .light-red-btn {
    color: #000;
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    cursor: default;
    transition: background-color 0.3s ease, transform 0.2s;
}

.blue-btn {
    background: #58a7dc;
    border: 1px solid #006699;
}

.light-blue-btn {
    background: #b6d9f0;
    border: 1px solid #58a7dc;
}

.light-green-btn {
    background: #c9efdc;
    border: 1px solid #c9efdc;
}

.light-red-btn {
    background: #fbe0de;
    border: 1px solid #c51521;
}

/** /calendar */

/** MicroTask */
.block-task-service {
    border: 1px solid #d3d2df;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    padding: 0 14px;
    transition: .3s;
}

.block-task-service p {
    text-decoration: none !important;
}

.block-task-service svg {
    width: 100%;
    height: 50px;
    padding: 10px 0;
}

.task-anchor {
    text-decoration: none;
    color: #000;
    font-size: 18px;
}

.task-anchor:hover .block-task-service {
    border: 1px solid #000;
    transition: .3s;
}

/** /MicroTask */

@media screen and (max-width: 991px) {
    #account-menu {
        text-align: left;
    }
}
