﻿/* Красная кнопка с градиентом */
.zabota-gradient-button {
    background: linear-gradient(39.58deg, #F15C27 16.52%, #FE2C1A 63.98%, #FF184F 85.03%);
    border-radius: 4px;
    color: white !important;
    box-shadow: none !important; /* Убирает тень */
}

    .zabota-gradient-button:disabled,
    .mud-button-root.zabota-gradient-button:disabled,
    .mud-button-root.zabota-gradient-button.mud-button-disabled,
    .mud-button-root.zabota-gradient-button.mud-disabled,
    .mud-button-root.zabota-gradient-button[disabled] {
        background: #B7BAC5 !important;
        background-color: #B7BAC5 !important;
        background-image: none !important;
        border-color: #B7BAC5 !important;
        box-shadow: none !important;
        color: rgba(255, 255, 255, 0.7) !important;
        cursor: not-allowed;
    }

        .mud-button-root.zabota-gradient-button:disabled .text-white,
        .mud-button-root.zabota-gradient-button.mud-button-disabled .text-white,
        .mud-button-root.zabota-gradient-button.mud-disabled .text-white,
        .mud-button-root.zabota-gradient-button[disabled] .text-white,
        .mud-button-root.zabota-gradient-button:disabled .mud-button-label,
        .mud-button-root.zabota-gradient-button.mud-button-disabled .mud-button-label,
        .mud-button-root.zabota-gradient-button.mud-disabled .mud-button-label,
        .mud-button-root.zabota-gradient-button[disabled] .mud-button-label {
            color: rgba(255, 255, 255, 0.7) !important;
        }

.text-white {
    color: white !important;
}

.zabota-focus-red > .mud-input-control-input-container > .mud-input.mud-input-outlined > input:focus ~ .mud-input-outlined-border {
    border: 1px solid;
    border-color: #FA3C1F !important;
}

/* Оборачивает весь контент диалога в рамку */
.zabota-dialog-border {
    border: 1px solid;
    border-color: #5A5E6A !important;
}

.report-send-settings-dialog {
    width: min(75vw, 720px) !important;
    max-width: min(75vw, 720px) !important;
}

@media (max-width: 600px) {
    .report-send-settings-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
    }
}

/* Светлая тема — серый бордюр */
.mud-theme-light .zabota-dialog-border {
    border-color: #3E4559;
}

/* Тёмная тема — белый бордюр */
.mud-theme-dark .zabota-dialog-border {
    border-color: #5A5E6A !important;
}

.zabota-themed-background {
    background-color: var(--mud-palette-background);
    min-height: 100vh;
    padding: 16px;
}

.active-link {
    color: var(--mud-drawer-text) !important; /* Используем переменные темы */
    font-weight: 600 !important; /* Сделаем шрифт чуть толще */
}

@media (prefers-color-scheme: dark) {
    .active-link {
        color: var(--mud-drawer-text-dark) !important;
    }
}

/* Стиль для кнопки панели меню */
.drawer-toggle-wrapper {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* Стиль для логотипа */
.logo-max {
    position: absolute;
    left: 10px;
    max-width: 100%;
    width: auto;
    max-height: 60%;
    object-fit: contain; /* Сохраняет пропорции */
}

/* Общие стили строк таблицы */
.zabota-dark-table {
    background-color: #14192C;
    border: 1px solid;
    border-color: #33323E !important;
}

/* Строка с Blocked=true в темной теме */
.zabota-dark-blocked {
    background-color: #262C41 !important;
}

/* Строка с Blocked=true в светлой теме */
.zabota-light-blocked {
    background-color: #F1F1F1 !important;
}

/* Стиль кнопки на драйвере */
.zabota-dark-button {
    background-color: #14192B;
}

/* Оборачивает весь контент диалога в рамку */
.zabota-dialog-dark {
    background-color: #14192C;
}

.zabota-dialog-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
}
/* Раздел «Помощь» */
.help-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font-family: var(--mud-typography-default-font-family, var(--mud-typography-body1-font-family, 'Roboto', 'Helvetica', 'Arial', sans-serif));
}

.help-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, rgba(255, 106, 57, 1) 0%, rgba(241, 156, 73, 1) 100%);
    color: #FFFFFF;
    border-radius: 24px;
    padding: 20px 24px;
    gap: 20px;
}

.help-hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 560px;
}

.help-hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.help-hero p {
    margin-bottom: 8px;
    max-width: 520px;
}

.help-hero-image {
    max-width: 180px;
    width: 100%;
    border-radius: 16px;
}

.help-nav-grid {
    margin-bottom: 16px;
}

.help-nav-grid .mud-grid-item {
    display: flex;
}

.help-nav-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
    font: inherit;
}

.help-nav-link:hover,
.help-nav-link:focus,
.help-nav-link:visited {
    color: inherit;
    text-decoration: none !important;
}

.help-nav-card {
    border-radius: 16px;
    border: 1px solid var(--mud-palette-divider, rgba(27, 27, 29, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--mud-palette-surface, #FFFFFF);
    color: var(--mud-palette-text-primary, #1B1B1D);
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.help-nav-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(27, 27, 29, 0.08);
}

.help-nav-card .mud-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.help-nav-card h3 {
    font-size: 1.2rem;
    margin-top: 12px;
}

.help-nav-icon {
    font-size: 32px;
    color: #FF6B00;
}

.help-data-flow {
    border-width: 1px;
    border-radius: 16px;
    background-color: #ffefea;
    border-color: #ff6a39;
    border-style: solid;
    padding: 24px;
}

.help-data-flow h3 {
    margin-bottom: 16px;
}

.help-data-flow-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 4px;
}

.help-data-flow-track::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ff6a39;
    opacity: 0.35;
}

.help-data-flow-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    position: relative;
}

.help-data-flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #ff6a39;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 106, 57, 0.3);
    z-index: 1;
    flex: 0 0 48px;
}

.help-data-flow-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-data-flow-title {
    font-weight: 600;
    color: #ff6a39;
}

.help-data-flow-description {
    color: rgba(27, 27, 29, 0.8);
}

.help-status-label {
    font-weight: 500;
}

.help-action-icon {
    font-size: 24px;
}

.help-tabs {
    border-radius: 24px;
    background-color: var(--mud-palette-surface, rgba(255, 255, 255, 0.9));
    padding: 16px;
}

.help-tabs-control {
    border-radius: 16px;
}

.help-video-placeholder {
    padding: 32px;
    text-align: center;
    color: #1B1B1D;
}

.help-video-placeholder h2 {
    margin-bottom: 12px;
}

.help-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.help-section-grid {
    align-items: stretch;
}

.help-step-card {
    padding: 24px;
    border-radius: 16px;
    background-color: var(--mud-palette-surface, #FFFFFF);
    color: var(--mud-palette-text-primary, #1B1B1D);
    border: 1px solid var(--mud-palette-divider, rgba(27, 27, 29, 0.12));
}

.help-anti-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.help-anti-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-anti-header .mud-icon-root {
    font-size: 36px;
    color: #FF6B00;
}

.help-anti-section {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 239, 234, 0.9), rgba(255, 217, 199, 0.9));
    border: 1px solid rgba(255, 106, 57, 0.35);
    box-shadow: 0 8px 20px rgba(255, 106, 57, 0.15);
    color: rgba(27, 27, 29, 0.88);
}

.help-anti-section h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #FF6B00;
}

.help-anti-section p {
    margin-bottom: 0;
}

.help-errors-card .help-anti-header .mud-icon-root {
    color: #FF3B3F;
}

.help-errors-card .help-anti-section {
    border-color: rgba(255, 59, 63, 0.35);
    box-shadow: 0 8px 20px rgba(255, 59, 63, 0.15);
    background: linear-gradient(135deg, rgba(255, 232, 234, 0.95), rgba(255, 210, 212, 0.9));
}

.help-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0 12px 12px;
}

.help-list-icon {
    font-size: 32px;
    color: #FF6B00;
}

.help-list-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-list-title {
    font-weight: 600;
    color: var(--mud-palette-text-primary, #1B1B1D);
}

.help-list-description {
    color: var(--mud-palette-text-secondary, rgba(27, 27, 29, 0.72));
    font-size: 0.95rem;
}

.help-section-divider {
    border-color: #FF6A39 !important;
    background-color: #FF6A39;
    opacity: 1;
    height: 2px;
}

.help-step-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 16px;
    background-color: #1B1B1D;
}

.help-step-illustration img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
}

.help-status-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.help-status-card h2 {
    margin-bottom: 8px;
}

.help-status-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-status-group h3 {
    margin-bottom: 4px;
}

.help-status-table {
    border-radius: 12px;
    background-color: var(--mud-palette-surface, #FFFFFF);
    color: var(--mud-palette-text-primary, #1B1B1D);
    border: 1px solid var(--mud-palette-divider, rgba(27, 27, 29, 0.12));
    box-shadow: none;
}

.help-status-table .mud-table-head th {
    color: var(--mud-palette-text-secondary, rgba(27, 27, 29, 0.7));
    font-family: var(--mud-typography-default-font-family, var(--mud-typography-body1-font-family, 'Roboto', 'Helvetica', 'Arial', sans-serif));
}

.help-status-table .mud-table-body td {
    color: var(--mud-palette-text-primary, #1B1B1D);
    font-family: var(--mud-typography-default-font-family, var(--mud-typography-body1-font-family, 'Roboto', 'Helvetica', 'Arial', sans-serif));
}

.help-status-col {
    vertical-align: middle;
}

.help-status-table .mud-table-head th:nth-child(1),
.help-status-table .mud-table-body td:nth-child(1) {
    width: 20%;
}

.help-status-table .mud-table-head th:nth-child(2),
.help-status-table .mud-table-body td:nth-child(2) {
    width: 30%;
}

.help-status-table .mud-table-head th:nth-child(3),
.help-status-table .mud-table-body td:nth-child(3) {
    width: 50%;
}

.help-status-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-status-icon {
    width: 32px;
    height: 32px;
}

.help-link {
    color: #FF6B00;
    font-weight: 600;
}

.help-actions-table .mud-table-root {
    border-radius: 16px;
}

.help-screenshot-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    max-width: 312px;
    margin: 0 auto;
    border: 1px solid rgba(27, 27, 29, 0.12);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 2px rgba(27, 27, 29, 0.04);
}

.help-screenshot-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(27, 27, 29, 0.12);
}

.help-faq-panels .mud-expand-panel {
    border-radius: 12px;
    border: 1px solid rgba(27, 27, 29, 0.08);
    margin-bottom: 12px;
}

.help-faq-panels .mud-expand-panel-header {
    font-weight: 600;
}

.mud-theme-dark .help-page {
    background-color: var(--mud-palette-background, #14192C);
}

.mud-theme-dark .help-nav-card {
    background-color: var(--mud-palette-appbar-background, #202537);
    color: var(--mud-palette-text-primary, #b2b0bf);
    border: 1px solid var(--mud-palette-divider, rgba(255, 255, 255, 0.08));
    box-shadow: none;
}

.mud-theme-dark .help-nav-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
}

.mud-theme-dark .help-nav-icon {
    color: #FF9055;
}

.mud-theme-dark .help-tabs {
    background-color: var(--mud-palette-surface, rgba(24, 24, 30, 0.9));
}

.mud-theme-dark .help-step-card {
    background-color: var(--mud-palette-appbar-background, #202537);
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.87));
    border: 1px solid var(--mud-palette-lines-default, var(--mud-palette-divider, rgba(255, 255, 255, 0.08)));
}

.mud-theme-dark .help-list-title {
    color: rgba(255, 255, 255, 0.9);
}

.mud-theme-dark .help-list-description {
    color: rgba(255, 255, 255, 0.7);
}

.mud-theme-dark .help-data-flow {
    background-color: rgba(38, 30, 26, 0.95);
    border-color: #ff9055;
}

.mud-theme-dark .help-data-flow h3 {
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.9));
}

.mud-theme-dark .help-data-flow-track::before {
    background-color: #ff9055;
    opacity: 0.45;
}

.mud-theme-dark .help-data-flow-icon {
    background-color: #ff9055;
    box-shadow: 0 4px 12px rgba(255, 144, 85, 0.3);
}

.mud-theme-dark .help-data-flow-description {
    color: rgba(255, 255, 255, 0.72);
}

.mud-theme-dark .help-status-card h2,
.mud-theme-dark .help-status-group h3 {
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.9));
}

.mud-theme-dark .help-status-label {
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.85));
}

.mud-theme-dark .help-status-table {
    background-color: var(--mud-palette-appbar-background, #202537);
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.87));
    border: 1px solid var(--mud-palette-lines-default, var(--mud-palette-divider, rgba(255, 255, 255, 0.08)));
    box-shadow: none;
}

.mud-theme-dark .help-status-table .mud-table-head th {
    color: var(--mud-palette-text-secondary, #A8ADBD);
}

.mud-theme-dark .help-status-table .mud-table-body td {
    color: var(--mud-palette-text-primary, rgba(255, 255, 255, 0.82));
}

.mud-theme-dark .help-status-table .mud-table-body tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mud-theme-dark .help-screenshot-frame {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(16, 18, 34, 0.9);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.mud-theme-dark .help-screenshot-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.mud-theme-dark .help-anti-card .help-anti-header .mud-icon-root {
    color: #FF9055;
}

.mud-theme-dark .help-anti-card .help-anti-section {
    background: linear-gradient(135deg, rgba(255, 223, 209, 0.92), rgba(255, 239, 234, 0.92));
    border-color: rgba(255, 168, 120, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    color: rgba(27, 27, 29, 0.9);
}

.mud-theme-dark .help-errors-card .help-anti-header .mud-icon-root {
    color: #FF6B6F;
}

.mud-theme-dark .help-errors-card .help-anti-section {
    background: linear-gradient(135deg, rgba(255, 226, 228, 0.92), rgba(255, 210, 212, 0.92));
    border-color: rgba(255, 128, 132, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.mud-theme-dark .help-video-placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.mud-theme-dark .help-hero {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.mud-theme-dark .help-action-icon {
    color: #FF9055;
}

@media (max-width: 900px) {
    .help-hero {
        flex-direction: column;
        text-align: center;
    }

    .help-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .help-hero-image {
        max-width: 160px;
    }
}

@media (max-width: 600px) {
    .help-page {
        padding: 16px;
    }

    .help-nav-card {
        border-radius: 12px;
    }
}

/* Радиусы 8px для кнопок по умолчанию */
.mud-button-root {
    border-radius: 8px !important;
}

.report-criteria__layout {
    position: relative;
}

.report-criteria__refresh {
    position: absolute;
    top: 0;
    right: 0;
}

.report-criteria__number-column {
    width: 64px;
    text-align: center;
}
