@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gidole&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Share+Tech&display=swap');


* {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

input[type='number'] {
    font-family: "Gidole", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

:root {
    --text-color: #636B76;
    --bg-color: #F3F4F6;
    --border-color: #d8d8d8;
    --blue: #306FCC;
    --blue-bg: rgba(161, 192, 227, 0.3);
    --blue-bg-2: rgba(161, 192, 227, 0.5);
    --blue-bg-3: rgba(161, 192, 227, 1);
    --blue-bg-hovered: rgb(103, 151, 205);
    --green-old: #00D5BE;
    --green: #00BBA7;
    --green-bg-hovered: rgba(1, 143, 129, 0.5);
    --green-bg: rgba(170, 214, 210, 0.3);
    --yellow-second: rgba(223, 192, 139, 0.3);
    --yellow: rgba(255, 227, 103, 0.9);
    --yellow-bg: rgba(250, 203, 126, 0.8);
    --red: #fc4750;
    --red-bg: rgba(227, 135, 141, 0.3);
    --red-bg-2: rgba(227, 135, 141, 0.5);
    --red-bg-hovered: rgba(159, 27, 33, 0.5);
    --fiolet: #8e51ff;
    --fiolet-bg: rgba(189, 163, 237, 0.3);
    --dark: #27272a;

    --spacing: 0.25rem;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

input[type='checkbox'] {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    appearance: none; /* убираем стандартный вид */
    -webkit-appearance: none;
    border: 2px solid #ccc;
    outline: none;
    cursor: pointer;
    display: inline-block;
    transform: scale(1.1);
}

input[type='checkbox']:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.ui-datepicker-calendar {
    width: 330px;
    background-color: white;
    border-radius: 0 0 10px 10px;
}

.nui-table td, .nui-table th, .ui-datepicker-calendar td, .ui-datepicker-calendar th {
    padding: 0.5rem;
}

.nui-table thead, tbody {
    width: 100%;
}

.nui-table, .ui-datepicker-calendar {
    border-top: 1px solid var(--border-color);    /* Верхняя граница таблицы */
    border-left: none;            /* Нет левой границы */
    border-right: none;           /* Нет правой границы */
    border-bottom: none;          /* Нет нижней границы */
    table-layout: auto;
    width: 100%;
}

.nui-table {
    border-collapse: collapse;    /* Объединяем границы ячеек */
}

.nui-table > thead, .nui-table > tbody {
    table-layout: auto;
    width: 100%;
}

/* Границы у ячеек (внутри таблицы) */
.nui-table th, .nui-table td {
    border: 1px solid var(--border-color);       /* Границы у всех ячеек */
}

/* Убираем левую границу у первой ячейки в строке */
.nui-table th:first-child,
.nui-table td:first-child,
.ui-datepicker-calendar th:first-child,
.ui-datepicker-calendar td:first-child {
  border-left: none;
}

.ui-datepicker-calendar tr > td {
  /* стили для первой ячейки последней строки */
    border-radius: 7px;
    border: none;
    background-color: var(--blue-bg);
    padding: 10px 12px;
}

.ui-datepicker-calendar thead > tr > th > span {
  /* стили для первой ячейки последней строки */
    font-size: 11px;
}

/* Убираем правую границу у последней ячейки в строке */
.nui-table th:last-child,
.nui-table td:last-child,
.ui-datepicker-calendar th:last-child,
.ui-datepicker-calendar td:last-child {
  border-right: none;
}

.nui-table > tbody > tr:nth-child(odd) {
    background-color: white;
}

.nui-table > tbody > tr:nth-child(even) {
    background-color: rgba(245, 245, 245, 0.65);
}

/* Убираем нижнюю границу у последней строки */
.nui-table tr:last-child td, .ui-datepicker-calendar tr:last-child td {
  border-bottom: none;
}

.ui-datepicker-calendar > tbody > tr > td:hover {
    background-color: #6f94c6;
    cursor: pointer;
}

.ui-datepicker-calendar > tbody > tr > .ui-datepicker-current-day {
    background-color: var(--green);
}

.ui-datepicker-calendar > tbody > tr > .ui-datepicker-current-day:hover {
    background-color: var(--green);
}

.ui-datepicker-calendar > tbody > tr > td:hover > a {
    color: white;
}

.ui-datepicker-calendar > tbody > tr > td > a {
    font-size: 16px;
}

.ui-datepicker {
    -webkit-box-shadow: 0px 0px 6px 2px rgba(34, 60, 80, 0.7);
    -moz-box-shadow: 0px 0px 6px 2px rgba(34, 60, 80, 0.7);
    box-shadow: 0px 0px 6px 2px rgba(34, 60, 80, 0.7);
    border-radius: 10px;
    transform: translateX(-40%);
}

.ui-datepicker-header {
    background: var(--blue);
    color: white;
    padding: 10px;
    position: relative;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.ui-datepicker-header > a {
    cursor: pointer;
    text-decoration: none;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
}

.ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker-next {
    right: 10px;
}

/* Скрытие стандартных стрелок (если используете свои иконки) */
.ui-datepicker-prev > span,
.ui-datepicker-next > span {
    display: none;
}

/* Кастомные иконки */
.ui-datepicker-prev::after {
    content: '←';
    color: white;
    padding: 1rem;
    font-size: 25px;
}

.ui-datepicker-next::after {
    content: '→';
    color: white;
    padding: 1rem;
    font-size: 25px;
}

.ui-datepicker-title {
    text-align: center;
    margin-top: 10px;
    transform: translateY(-20%);
}

.ui-datepicker-title > span {
    font-size: 24px;
}

.ui-datepicker-calendar > tbody > tr > .ui-datepicker-today {
    background-color: var(--blue);
}

.ui-datepicker-today > a {
    color: white;
}

.ui-state-default {
    text-align: center;
    display: block;
}

.ui-datepicker-current-day {
    background-color: var(--green);
    color: white;
}

.ui-datepicker-calendar > tbody > tr > .ui-datepicker-current-day {
    background-color: var(--green);
    color: white;
}

.ui-datepicker-calendar > tbody > tr > .ui-datepicker-current-day > a {
    background-color: var(--green);
    color: white;
}

.dark-button, .blue-button {
    background-color: var(--blue-bg-2);
    color: var(--blue);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 7px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.175s ease-in-out;
}

.dark-button:hover, .blue-button:hover {
    background-color: var(--blue-bg-hovered);
    color: white;
}

.green-button {
    background-color: var(--green-bg);
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 7px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.175s ease-in-out;
}

.green-button:hover {
    background-color: var(--green-bg-hovered);
    color: white;
}

.red-button {
    background-color: var(--red-bg);
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 7px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.175s ease-in-out;
}

.red-button:hover {
    background-color: var(--red-bg-hovered);
    color: white;
}

.yellow-button {
    background-color: var(--yellow-second);
    color: #a16800;;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 7px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.175s ease-in-out;
}

.yellow-button:hover {
    background-color: var(--yellow-second);
    color: white;
}

.large-button {
    font-size: 16px;
    padding: 10px 20px;
}

.menu-line {
    border-bottom: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.nui-table > tbody > tr:hover {
    background-color: rgba(209, 209, 209, 0.5);
}

#general_errors_list {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    min-width: 300px;
    max-width: 70vw;
    width: 25vw;
    max-height: 70vh;
    height: min-content;
    border-radius: 1rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
}

.error {
    background-color: rgba(227, 135, 141, 0.9);
    border-radius: 1rem;
    border: 3px solid var(--red);
    padding: 0.5rem;
    color: whitesmoke;
}

.error-type > h3 {
    font-weight: 800;
    font-size: 30px;
    margin: 0;
}

.error-body > span {
    font-size: 20px;
}


.success {
    background-color: var(--green-bg-hovered);
    border-radius: 1rem;
    border: 3px solid rgba(90, 181, 116, 0.9);
    padding: 0.5rem;
    color: whitesmoke;
}

.success-type > h3 {
    font-weight: 800;
    font-size: 30px;
    margin: 0;
}

.success-body > span {
    font-size: 20px;
}

.modal {
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 1rem;
    box-shadow: rgb(38, 57, 77) 0 7px 10px 0;
}

.modal-body {
    background-color: white;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-actions {
    position: absolute;
    background-color: white;
    height: max-content;
    width: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    box-shadow: rgb(38, 57, 77) 0 7px 10px 0;
}

.modal-actions.left {
    left: -80px;
}

.modal-actions.right {
    right: -80px;
}

.modal-actions > button {
    height: 50px;
    width: 50px;
}

.modal-title {
    margin-bottom: 2rem;
}

.modal-title > span {
    font-size: 20px;
    font-weight: 600;
}
