@import url("variables.css");
@import url("ui-main.css");

@media (prefers-color-scheme: dark) {
    .theme-a.adaptive {
        background: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
    }
}

@font-face {
    font-family: "PJS";
    src: url("../fonts/pjs.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "PJS";
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: row;
    margin: 0px;
    padding: 0px;
    align-items: stretch;
    overflow: hidden;
}

a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

p {
    padding: 0;
    margin: 0;
    -webkit-user-select: none;
    user-select: none;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

input[type="text"] {
    background-color: var(--MainLogo);
    padding: 10px;
    color: var(--WhiteColor);
    border-top-style: none;
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom: 1px solid var(--Slogan);
    font-size: 12pt;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
    width: 350px;
}

input[type="date"] {
    background-color: var(--MainLogo);
    padding: 10px;
    color: var(--WhiteColor);
    border-top-style: none;
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom: 1px solid var(--Slogan);
    font-size: 12pt;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
    width: 350px;
}

input[type="password"] {
    background-color: var(--MainLogo);
    padding: 10px;
    color: var(--WhiteColor);
    border-top-style: none;
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom: 1px solid var(--Slogan);
    font-size: 12pt;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
}

input[type="email"] {
    background-color: var(--MainLogo);
    padding: 10px;
    color: var(--WhiteColor);
    border-top-style: none;
    border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
    border-bottom: 1px solid var(--Slogan);
    font-size: 12pt;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
}

input[type="radio"] {
    display: none;
    -webkit-user-select: none;
    user-select: none;
}

input:focus {
    outline: none;
}

label {
    background: var(--MainMenu);
    font: inherit;
    cursor: pointer;
    width: fit-content;
    border-radius: 10px;
    border: 1px solid var(--MainLogo);
    padding: 10px 20px 5px;
    color: var(--Slogan);
    font-size: var(--ButtonFontSize);
    font-weight: 400;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
    -webkit-user-select: none;
    user-select: none;
}

input[type="radio"]:checked + label {
    background-color: var(--MainLogo);
}

fieldset {
    border-width: 0;
    padding: 0;
    margin: 0;
}

#FirstPage {
    background-image: url('../images/male.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

button {
    -webkit-user-select: none;
    user-select: none;
}

#MainMenu {
    display: flex;
    flex-direction: column;
    background-color: var(--MainMenu);
    min-width: 350px;
    box-shadow: 0px 0px 20px 5px;
    overflow: hidden;
    align-items: stretch;
    justify-content: space-between;
}

#MainMenuFirstBlock {
    background-color: var(--MainLogo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

#MainLogo {
    width: 100px;
}

#Slogan {
    font-size: 11.5pt;
    color: var(--Slogan);
    font-weight: 600;
}

#User {
    border-radius: 20px;
    border: 0 solid var(--LogoColor);
    margin-left: 40px;
    margin-right: 40px;
    transform: translateY(-50%);
    background-color: var(--MainLogo);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px 10px 20px;
    overflow: hidden;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.25);
}

#UID {
    font-size: 12pt;
    color: var(--LogoColor);
    font-weight: 600;
    margin-right: 40px;
    max-width: 200px;
    overflow: hidden;
    word-break: break-word;
    align-content: center;
    max-height: 100px;
}

#ProUser {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.DaysLeft {
    color: var(--LogoColor);
    font-size: 8pt;
    margin-right: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--MainLogo);
    font: inherit;
    cursor: pointer;
    width: fit-content;
    border-radius: 10px;
    border: 1px solid var(--LogoColor);
    color: var(--LogoColor);
    font-size: var(--ButtonFontSize);
    font-weight: 400;
    transition: background-color 0.5s ease, color 0.5s ease;
    padding: 20px 40px 15px;
}

.action-btn:not(:disabled):hover {
    background: var(--LogoColor);
    color: var(--MainLogo);
}

.action-btn:disabled {
    color: var(--MainMenu);
    border: 1px solid var(--MainMenu);
    pointer-events: none;
}

.info-btn {
    background-color: var(--WhiteColor);
    font: inherit;
    cursor: pointer;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--MainLogo);
    padding: 10px 40px 5px;
    color: var(--MainLogo);
    font-size: var(--ButtonFontSize);
    font-weight: 400;
    flex: 0 0 auto;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.info-btn:hover {
    color: var(--WhiteColor);
    background-color: var(--MainLogo);
}

.subaction-btn {
    background-color: var(--MainMenu);
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--Slogan);
    padding: 10px 20px 5px;
    color: var(--Slogan);
    font-size: var(--ButtonFontSize);
    font-weight: 400;
    flex: 0 0 auto;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.subaction-red-btn {
    background-color: var(--MainMenu);
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid var(--DengerColor);
    padding: 10px 40px 5px;
    color: var(--DengerColor);
    font-size: var(--ButtonFontSize);
    font-weight: 400;
    flex: 0 0 auto;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.subaction-btn:not(:disabled):hover {
    background-color: var(--MainLogo);
}

.subaction-btn:disabled {
    color: var(--MainLogo);
    border: 1px solid var(--MainLogo);
    cursor: default;
}

#LogInButton {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 160px;
    gap: 40px;
    margin-bottom: 20px;
}

.UItitle {
    font-size: 24pt;
    color: var(--LogoColor);

    /* margin-bottom: 80px */
}

.UItitle2 {
    font-size: 14pt;
    color: var(--WhiteColor);
    margin-bottom: 10px;
}

.UItitle3 {
    font-size: 12pt;
    color: var(--Slogan);
    margin-bottom: 10px;
    line-height: 16pt;
}

.UItitle4 {
    font-size: 14pt;
    color: var(--Slogan);
    margin-bottom: 10px;
}

.ModalLabel + label {
    background-color: var(--MainLogo);
    padding: 20px 20px 20px 40px;
    border-width: 1px;
}

.ModalLabel:checked + label {
    color: var(--WhiteColor);
    border-left: 1px solid var(--MainLogo);
    border-top: 1px solid var(--MainLogo);
    border-right: 1px solid var(--WhiteColor);
    border-bottom: 1px solid var(--MainLogo);
    border-radius: 0;
}

.UIinputText {
    width: 100%;
}

/* 1. Элемент-родитель должен иметь relative позиционирование */
[data-plannissimo-title] {
    position: relative;
    cursor: pointer;

    /* Делает курсор рукой при наведении */
}

/* 2. Оформление текста подсказки (::after) */
[data-plannissimo-title]::after {
    /* Браузер берет текст прямо из вашего атрибута перевода! */
    content: attr(data-plannissimo-temp);

    /* Позиционирование строго по центру над элементом */
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);

    /* Внешний вид */
    background-color: var(--MainLogo);

    /* Темный фон */
    color: var(--WhiteColor);

    /* Белый текст */
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;

    /* Чтобы текст не переносился */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;

    /* Скрытие по умолчанию и анимация */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 1s, transform 0.2s ease 1s;
    font-size: 12px;
}

/* 3. Маленькая стрелочка под подсказкой (::before) */
[data-plannissimo-title]::before {
    content: "";
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);

    /* Создание треугольника с помощью границ */
    border-width: 5px;
    border-style: solid;
    border-color: var(--MainLogo) transparent transparent transparent;

    /* Скрытие по умолчанию */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 1s;
    z-index: 1000;
}

/* 4. Поведение при наведении (Hover) */
[data-plannissimo-title]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);

    /* Легкое движение вверх */
}

[data-plannissimo-title]:hover::before {
    opacity: 1;
    visibility: visible;
}

.LogInWindow {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: all 0.5s ease;
    margin-left: -100vw;
    position: relative;
    width: calc(100% - 400px);
}

.step {
    position: relative;
    color: var(--WhiteColor);
    padding: 20px 20px 20px 0px;
}

.step::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0px;
    height: 100%;

    /* Теперь высота всегда 100% */
    border-right: 2px solid var(--WhiteColor);
    border-radius: 0;

    /* Новая логика анимации через масштабирование */
    transform: scaleY(0);

    /* Изначально полоска сжата в 0 */
    /* Ключевые свойства для направления: */
    transform-origin: top;

    /* При добавлении active растет СВЕРХУ ВНИЗ */
    transition: transform 0.5s ease 0.5s;
}

.step.active::after {
    transform: scaleY(1);

    /* Раскрывается на полную высоту */
}

/* Эффект для удаления класса active: */
.step:not(.active)::after {
    transform-origin: bottom;

    /* При удалении active сжимается СВЕРХУ ВНИЗ к нижнему краю */
}

.stepnext {
    color: var(--Slogan);
    background-color: var(--MainLogo);
    padding: 20px 20px 20px 0px;
    border-width: 1px;
}

.dot-underline {
    color: var(--Slogan);

    /* text-decoration: underline dotted;
    text-decoration-thickness: 2px; */
    cursor: help;
    border-bottom: 1px dashed var(--Slogan);
}

.helppage {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    width: 350px;
    box-sizing: border-box;
    background-color: var(--WhiteColor);
    border-radius: 40px;
    padding: 40px 40px 40px 80px;
    z-index: 1;
    contain: size;
    overflow: hidden;
    box-shadow: 0px 0px 20px 5px;
    margin-left: -350px;
    transition: all 0.5s ease;
    opacity: 0;
}

.LogInWindowCenterPage {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    transition: all 0.5s ease;
    margin-left: 0px;
    width: 500px;
    min-width: 500px;
    max-width: 500px;
    padding: 0px 40px 0px 80px;
    align-content: stretch;
    border-width: 0px;
}

.LogInWindowCenterPageTop {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: stretch;
}

.LogInWindowCenterPageTopContent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    justify-content: center;
    border-width: 1px;
}

.OpenedPlanP {
    width: 100%;
    border-radius: 20px;
    background-image: url('');
    background-position: center center;
    background-size: cover;
    background-color: var(--WhiteColor);
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
    border-width: 0;
    display: none;
    box-sizing: border-box;
}

.OpenedPlanIconButton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    background-color: var(--MainMenu);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#OpenedPlanNotes {
    position: relative;
}

.note {
    min-width: 300px;
    min-height: 300px;
    padding: 15px;
    box-sizing: border-box;
    border: none;
    border-bottom: 3px solid #dfad2f;
    border-radius: 5px;

    /* overflow: hidden; */
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.25);
}

.note-text {
    width: 100%;
    max-height: 100%;
    box-sizing: border-box;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    background: transparent;
    font: inherit;
    field-sizing: content;
}

.note-select-color {
    width: 30px;
    border: 3px solid var(--MainMenu);
    border-radius: 5px;
}

#Workspace,
#OpenedPlanNotes {
    position: relative;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.workspace-instruction {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    color: var(--MainMenu);
    background-color: var(--LogoColor);
    border-radius: 10px;
    padding: 10px 15px;
    pointer-events: none;
    text-align: center;
    white-space: normal;
    width: calc(100% - 80px);
    animation: instructionBackgroundFade 0.5s ease 10s forwards;
}

@keyframes instructionBackgroundFade {
    from {
        background-color: var(--LogoColor);
        color: var(--MainMenu);
    }

    to {
        background-color: transparent;
        color: color-mix(in srgb, var(--MainMenu) 50%, transparent);
    }
}

#NoteDel:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.diary-back-color {
    width: 25px;
    height: 15px;
    border-radius: 5px;
    border-width: 3px;
    border-style: solid;
    color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diary-text-color {
    text-align: center;
    font-size: 10pt;
}

/* ========================================================================== */
/* Дневник */
/* ========================================================================== */
#OpenedPlanDairy {
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

/* Область прокрутки страницы */
#DiaryPageEditorWrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--MainMenu);
    display: none;
    border-radius: 20px;
    box-shadow: 5px 5px 5px 1px rgba(0, 0, 0, 0.1);
}

/* Редактируемая страница */
#DiaryPageEditor {
    width: 100%;
    max-width: 900px;
    margin: 10px auto;
    padding: 40px;
    box-sizing: border-box;
    outline: none;
    color: #000000;
    background-color: #ffffff;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
    border-radius: 10px;
    min-height: calc(100% - 40px);
    border: 1px solid var(--WhiteColor);
    box-shadow: 5px 5px 5px 1px rgba(0, 0, 0, 0.1);
}

/* Переопределяем глобальный user-select:none */
#DiaryPageEditor * {
    -webkit-user-select: text;
    user-select: text;
}

/* Изображения */
#DiaryPageEditor img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: auto;
    user-select: auto;
}

/* Таблицы */
#DiaryPageEditor table {
    max-width: 100%;
    border-collapse: collapse;
}

/* Список страниц */
#pagenameslist {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 0 0 auto;
    border-radius: 5px;
    padding-bottom: 10px;
}

/* Одна страница в списке */
.diary-page-tab {
    color: var(--MainMenu);
    background-color: var(--Slogan);
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Удаление недоступно, пока страница не выбрана */
#PageDel:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.linktile {
    border-radius: 10px;
    background-color: #FFFFFF;
    width: 100%;
    display: flex;
    flex-direction: row;
    row-gap: 10px;
    padding: 10px;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
    break-inside: avoid-column;
    margin: 0;
}

.tasktile {
    border-radius: 10px;
    background-color: #FFFFFF;
    width: 100%;
    display: flex;
    flex-direction: row;
    row-gap: 10px;
    padding: 10px;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    break-inside: avoid-column;
    margin: 0;
}

#OpenedPlanLinks {
    overflow: hidden;
}

#linkcontainer {
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

#LinkDescription {
    width: 100%;
    max-width: 400px;
}

#LinkDescription img {
    max-width: 100%;
    height: auto;
}

/* ========================================================================== */
/* Ссылки */
/* ========================================================================== */
#OpenedPlanLinks {
    overflow-x: auto;
    overflow-y: hidden;
}

/* Ссылки заполняются сверху вниз.

    После заполнения первого столбца браузер создаёт второй,
    затем третий, четвёртый и т.д.

    Минимальная ширина одного столбца — 500px. */
#linkcontainer {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 20px 10px;
    box-sizing: border-box;
    column-width: 500px;
    column-gap: 20px;
    column-fill: auto;
    overflow-x: auto;
    overflow-y: hidden;
}

#linkcontainer > [data-link-card] {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px 0;
    break-inside: avoid;
    break-inside: avoid-column;
}

#OpenedPlanLinks {
    overflow: hidden;
    min-width: 0;
}

.taskdonecheck {
    width: 40px;
    height: 40px;
    margin-top: -5px;
    margin-right: -5px;
}

.WeekDays {
    width: 20px;
    color: var(--MainMenu);
    font-size: 9pt;
    padding: 3px;
    box-sizing: border-box;
    text-align: center;
}

.DayToday {
    width: 20px;
    background-color: var(--CalendarPlanColor);
    color: var(--WhiteColor);
    font-size: 9pt;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 5px;
}

#CalW {
    padding: 5px 10px;
    border-radius: 5px;
}

.DayHours {
    width: 60px;
    color: var(--MainMenu);
    font-size: 9pt;
    padding: 3px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ========================================================================== */
/* События календаря */
/* ========================================================================== */
#CalDayTimeline {
    position: relative;
    width: 100%;
    height: calc(100dvh - 260px);
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

#CalDayHours {
    position: relative;
    width: 100%;
    height: 1200px;
}

.DayHours {
    width: 60px;
    height: 50px;
    color: var(--MainMenu);
    font-size: 9pt;
    padding: 3px;
    box-sizing: border-box;
    text-align: center;
    border-top: 1px solid var(--Slogan);
}

#CalDayEvents {
    position: absolute;
    top: 0;
    left: 120px;
    right: 10px;
    height: 1200px;
    pointer-events: none;
}

.CalendarEventBlock {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 5px;
    background-color: color-mix(
        in srgb,
        var(--CalendarPlanColor) 15%,
        transparent
    );
    cursor: pointer;
    pointer-events: auto;
}

.CalendarEventText {
    color: var(--MainMenu);
    font-size: 9pt;
    padding: 5px 8px;
    box-sizing: border-box;
    user-select: none;
    overflow: hidden;
}

.DayHasEvent {
    outline: 1px solid var(--CalendarPlanColor);
    outline-offset: -1px;
    border-radius: 5px;
}

#allday {
    color: var(--MainMenu);
}

/* Для datetime-local, чтобы поля события выглядели как остальные input. */
input[type="datetime-local"] {
    background-color: var(--MainLogo);
    padding: 10px;
    color: var(--WhiteColor);
    border-top-style: none;
    border-top-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom: 1px solid var(--Slogan);
    font-family: inherit;
    font-size: 12pt;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
}

#CalDayHours {
    position: relative;
}

#CalCurrentTime {
    position: absolute;
    left: 0;
    width: 100%;

    /* 60px; */
    height: 3px;
    border-radius: 2px;
    background-color: var(--CalendarPlanColor);
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
}

#allday [data-event-id] {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ========================================================================== */
/* Контакты */
/* ========================================================================== */
#OpenedPlanContacts {
    min-width: 0;
    overflow: hidden;
}

#contactcontainer {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 20px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.contacttile {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    flex: 0 0 auto;
}

.contacttile a {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--MainMenu);
    user-select: text;
}

.contacttile #ContactName,
.contacttile [id^="ContactName-"] {
    font-weight: 700;
    color: var(--MainMenu);
}

.contacttile #ContactComment,
.contacttile [id^="ContactComment-"],
.contacttile #ContactAddress,
.contacttile [id^="ContactAddress-"] {
    color: var(--MainMenu);
}

/* ========================================================================== */
/* Бюджет */
/* ========================================================================== */
#OpenedPlanBudget {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: column;
    align-items: stretch;
}

#budgetcontainer {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 100%;
    box-sizing: border-box;
}

.budgettile {
    width: 400px;
    flex: 0 0 auto;
    cursor: pointer;
}

.budgettile [id^="RecordDate-"],
.budgettile [id^="RecordSum-"],
.budgettile [id^="RecordDescription-"] {
    color: var(--MainMenu);
}

#Recordexpense,
#Recordincome {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.leftpanelblock {
    background-color: var(--MainLogo);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 40px 40px 40px 80px;
    border-radius: 40px;
    z-index: 3;
    justify-content: center;
    box-shadow: 0px 0px 20px 5px;
    transition: all 0.5s ease;
}

.modalwindow {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: absolute;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 4;
    margin-left: -100vw;
}

#OpenUnknownFile {
    transition: margin-left 0.5s ease;
}