@import "fonts.css";

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "OpenSans", sans-serif;
}

.header__container {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: 0 auto;

}

.wrapper {
    min-height: 100%;
    position: relative;
    min-width: 1200px;
    overflow: hidden;
}


/*==============================header======================*/


.header {
    background-color: #061629;
    padding: 10px;
}


.header__right {
    text-align: right;
    vertical-align: middle;
    padding: 5px 0;
}

.header__nav {
    display: inline-block;
}

.header__login,
.header__company {
    display: block;
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.header__login:hover {
    text-decoration: none;
    color: #ffbd00;
}

/*===================================main=================*/
.calendar {
    margin-top: 20px;
}

.sidebar-statistic {
    margin-top: 20px;
}

.sidebar-table {
    margin-top: 20px;
}


.statistic__title {
    display: inline-block;
    font-size: 14px;

}

.filter {
    display: inline-block;
    padding: 20px;
    border: 1px solid black;
    margin: 20px 0px;
    border-radius: 10px;
    margin-right: 10px;
}

.filter__title {
    margin-bottom: 10px;
    text-align: center;
    color: #000;
}

.filter__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.filter__item {
    margin: 0;

}


.filter__item .filter__link {
    display: block;
    text-align: center;
    width: 100%;
}

.date__pagination {
    text-align: center;
}

.statistic__params {
    display: flex;
    flex-direction: row;
}

.statistic__data {
    padding: 20px;
}

.date-pagination {
    text-align: center;
    margin: 20px;
    font-size: 0;

}


.date-pagination__item {
    display: inline-block;
    font-size: 16px;
}

.date-pagination__link {
    border: 1px solid #ccc;
    padding: 7px 10px;
    font-weight: bold;

}

.date-pagination__link-right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #ccc;
    font-weight: bold;
    text-align: center;

}

.date-pagination__link-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border: 1px solid #ccc;
    font-weight: bold;
}

.date-pagination__item:nth-child(odd) .date-pagination__link:hover {
    background-color: #2ae;
    border-top: 1px solid #2ae;
    border-bottom: 1px solid #2ae;
    color: white;
    text-decoration: none;
}

.date-pagination__link {
    color: black;
}

.sidebar-table__th,
.sidebar-table__td {
    border: 1px solid black;
    padding: 5px;
    font-size: 14px;
}

.sidebar-table__th {
    font-weight: 900;
}

.table-statistic {
    padding-left: 0px !important;
}



.date-pagination__item:nth-child(odd) .date-pagination__link-danger:hover {
    background-color: red;
    border-top: 1px solid red;
    border-bottom: 1px solid red;
}

.error {
    margin: 5px;
    color: red;
}

.widget-usermenu__container {
    margin-top: 20px;
    margin-right: 20px;
}

.table-show a {
    position: relative;
    padding-right: 10px;
}

.table-show a:after {
    position: absolute;
}

.btn-100 {
    width: 100%;
}

.date-search-form.active,
.myCalendar.active {
    display: block;
}

.myCalendar,
.date-search-form {
    display: none;
}



.date-search-cheak {
    margin-top: 20px;
    padding-top: 15px;

    display: flex;
    justify-content: flex-start;
}

/* Красивая "кнопка-ссылка" Назад */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;
    border-radius: 9999px;

    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    border: 1px solid #d0d7e2;
    background: linear-gradient(135deg, #f9fafb, #eef2f7);
    color: #1f2933;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.back-link__icon {
    font-size: 14px;
    line-height: 1;
}

/* Hover-состояние */
.back-link:hover {
    background: #e5f0ff;
    border-color: #96b3ff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    transform: translateY(-1px);
}

/* Active-состояние */
.back-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

/* Фокус для доступности */
.back-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.active--date .btn-success {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.active--date .filter__item--date .filter__link {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

@media (max-width: 1200px) {
    .filter__item--date {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .filter-content {

        flex-wrap: wrap;
    }

    .filter {
        width: 100%;
    }

    .filter__item--date {
        margin-top: 0px;
        width: auto;
    }
}

@media (max-width: 435px) {
    .filter__item--date {
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .filter .filter__list {
        display: block;
    }

    .filter .filter__list li {
        margin-left: 0px;
        margin-top: 10px;
        width: 100%;
    }

    .filter__list li a {
        width: 100%;
    }

    .filter {
        width: 100%;
    }

}

