/* Базовые ссылки */
a {
    color: #2f85ae;
    transition: color 0.2s linear;
}
a:hover, a:focus, a:active {
    color: #2a6496;
}

/* Формы — CakePHP Form helper генерирует .input обёртки */
.input {
    margin-bottom: 1.5rem;
}
.input input,
.input select,
.input textarea {
    margin-bottom: 0;
}
.input label:has(input[type='checkbox']),
.input label:has(input[type='radio']) {
    display: flex;
    align-items: center;
}
.input label > input[type='checkbox'],
.input label > input[type='radio'] {
    margin-right: 1.0rem;
}
.error-message {
    color: #cc1f1a;
    font-size: 0.875rem;
}

/* Пагинатор — CakePHP Paginator helper генерирует ul.pagination */
.paginator {
    text-align: right;
}
.paginator p {
    margin-bottom: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}
.pagination li {
    display: inline-block;
    margin: 0.25em;
    text-align: center;
}
.pagination a {
    color: #2f85ae;
    display: inline-block;
    font-size: 1rem;
    line-height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    text-decoration: none;
}
.pagination li.active a,
.pagination a:hover {
    text-decoration: underline;
}
.pagination .disabled a {
    cursor: not-allowed;
    color: #9ca3af;
    text-decoration: none;
}
.first a, .prev a, .next a, .last a {
    padding: 0 .75rem;
}

/* Сортировка в заголовках таблиц (Paginator::sort()) */
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Статус МойСклад (бейджи) */
.state {
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 3px !important;
    font-size: 0.75rem;
    display: inline-block;
}

/* Страница ошибки */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}
