.filter-component .button {
    height: 50px;
}

.filter-component .module-form__bottom {
    margin-top: 25px;
}

.header__navigation {
    margin-left: auto;
    margin-right: 0;
    justify-content: flex-end;
}

/* wwwroot/css/site.css */
.cron-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.cron-group-monthly {
    background-color: #e3f2fd;
    color: #1565c0;
}

.cron-group-yearly {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.cron-group-test {
    background-color: #fff3e0;
    color: #ef6c00;
}

.cron-group-daily {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.cron-group-weekly {
    background-color: #fff8e1;
    color: #f57f17;
}

.cron-group-hourly {
    background-color: #fce4ec;
    color: #c2185b;
}

.cron-group-never {
    background-color: #f5f5f5;
    color: #616161;
}

.group-header {
    background-color: #f8f9fa;
    border-left: 4px solid #dee2e6;
}

.group-header.yearly-month {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}

.group-header .badge {
    background-color: #6c757d;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* Стили для заголовков групп */
.group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.group-title-left {
    flex: 1;
}

.group-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.badge-count {
    background-color: #6c757d;
    color: white;
}

.badge-sum {
    background-color: #28a745;
    color: white;
    font-weight: 600;
}

.badge-count span {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.9;
}

/* Подсветка задач с Invoice */
.invoice-task {
    background-color: rgba(40, 167, 69, 0.05);
}

.invoice-task:hover {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.invoice-type-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
}

/* Стили для групп */
.group-header.cron-group-monthly {
    background: linear-gradient(90deg, #e3f2fd, #ffffff);
    border-left: 4px solid #2196f3;
}

.group-header.yearly-month {
    background: linear-gradient(90deg, #fff3e0, #ffffff);
    border-left: 4px solid #ff9800;
}

.group-header.cron-group-other {
    background: linear-gradient(90deg, #f5f5f5, #ffffff);
    border-left: 4px solid #9e9e9e;
}

/* Адаптивность */
@media (max-width: 768px) {
    .group-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .group-stats {
        width: 100%;
        justify-content: flex-start;
    }
}

.module-form-with-html .field p {
    margin-bottom: 0.5em; /* Отступ снизу для каждого абзаца */
}

.module-form-with-html .field p:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего абзаца */
}

/* Breadcrumbs.css */

.breadcrumbs__current {
    font-weight: 500;
}

.breadcrumbs__separator {
    margin: 0 0.5rem;
}

.breadcrumbs__link {

}

/* main */
.container-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Стили блока сообщения */
.title-block {
    max-width: 600px; /* оптимальная ширина для чтения */
    width: 100%;
    background-color: #ffffff;
    border-radius: 24px; /* скруглённые углы */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.05);
    padding: 40px 48px;
    text-align: center; /* центрируем текст внутри блока */
    transition: all 0.3s ease;
}

/* Заголовок */
.title-block__title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

/* Описание */
.title-block__description {
    font-size: 18px;
    line-height: 1.6;
    color: #334155;
}

/* Отступы между абзацами */
.title-block__description p {
    margin: 0 0 20px 0;
}

.title-block__description p:last-child {
    margin-bottom: 0;
}

/* Выделение контактных данных */
.title-block__description p:last-of-type,
.title-block__description p:nth-last-of-type(2),
.title-block__description p:nth-last-of-type(3) {
    font-weight: 500;
    color: #0f172a;
}

.title-block__description p:last-of-type {
    color: #2563eb; /* email можно выделить цветом */
}

/* Адаптация для мобильных устройств */
@media (max-width: 640px) {
    .title-block {
        padding: 30px 20px;
    }

    .title-block__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .title-block__description {
        font-size: 16px;
    }
}

.square .clr-field button,
.circle .clr-field button {
    width: 22px;
    height: 22px;
    left: 5px;
    right: auto;
    border-radius: 5px;
}

.square .clr-field input,
.circle .clr-field input {
    padding-left: 36px;
}

.circle .clr-field button {
    border-radius: 50%;
}

.full .clr-field button {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

:root {
    --primary-color: #17181d;
    --accent-color: #c7181d;
}

/* message tags */
.tags-section {
    margin: 15px 0 20px;         /* отступы сверху и снизу */
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.tags-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-button {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    line-height: 1.4;
}

.tag-button:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

.tag-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}

.table-wrapper.table-condensed table td,
.table-wrapper.table-condensed table th {
    font-size: 12px !important;
    padding: 5px 8px;
}
.col-nowrap {
    white-space: nowrap !important;
}

.faq-public {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.faq-public__item {
    border-bottom: 1px solid rgba(186, 198, 205, 0.7);
}

.faq-public__question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-public__icon {
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-public__icon::before,
.faq-public__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 2px;
    background: var(--accent-color);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.faq-public__icon::after {
    transform: translate(-52%, -50%) rotate(45deg);
}

.faq-public__icon::before {
    transform: translate(-8%, -50%) rotate(-45deg);
}

.faq-public__question[aria-expanded="false"],
.faq-public__question[aria-expanded="true"] {
    color: var(--accent-color);
}

.faq-public__question[aria-expanded="false"] span:first-child {
    border-bottom: 3px dotted var(--accent-color);
}

.faq-public__item.is-open .faq-public__icon::before {
    transform: translate(-8%, -50%) rotate(45deg);
}

.faq-public__item.is-open .faq-public__icon::after {
    transform: translate(-52%, -50%) rotate(-45deg);
}

.faq-public__answer {
    padding: 0 0 28px;
    max-width: 1320px;
}

.faq-public__answer .typography {
    font-size: 18px;
    line-height: 1.45;
}

.faq-public__answer .typography a {
    color: var(--accent-color);
}

.faq-public__answer .typography a:hover {
    color: var(--accent-color);
}

@media screen and (max-width: 767px) {
    .faq-public__question {
        font-size: 20px;
        padding: 18px 0;
        line-height: 1.25;
    }

    .faq-public__question[aria-expanded="false"] span:first-child {
        border-bottom-width: 2px;
    }

    .faq-public__answer {
        padding-bottom: 20px;
    }

    .faq-public__answer .typography {
        font-size: 16px;
    }
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 14px;
    justify-content: center;
}

.footer__links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--accent-color);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__copyright {
    font-size: 12px;
}

@media screen and (max-width: 767px) {
    .footer__copyright {
        font-size: 12px;
    }
}

.public-page-content .typography a {
    color: var(--accent-color);
}

.public-page-content .typography a:hover {
    color: var(--accent-color);
}
