@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #ed1c24;
    --primary-dark: #c5151c;
    --secondary: #00a5b4;
    --bg: #f5f5f5;
    --card: #ffffff;
    --card-2: #f9fafb;
    --text: #333333;
    --muted: #6b7280;
    --border: #d7dce2;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

a {
    color: var(--secondary);
}

/* Base layout styles for Rutoken Baza */
/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1500;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid rgba(237, 28, 36, 0.08);
    box-shadow: 0 8px 32px rgba(237, 28, 36, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}
.topbar__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.topbar__brand {
    flex-shrink: 0;
}

.topbar__brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topbar__brand a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.topbar__brand a:hover::before {
    left: 100%;
}

.topbar__brand a:hover {
    background: rgba(237, 28, 36, 0.05);
    transform: translateY(-1px);
}

.topbar__brand .brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #00b4b4);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 161, 180, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 161, 180, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(0, 161, 180, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 161, 180, 0.3);
    }
}
.topbar__links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar__links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.topbar__links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap;
}

.topbar__links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 161, 180, 0.1), transparent);
    transition: left 0.4s ease;
}

.topbar__links a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 161, 180, 0.15);
    background: rgba(0, 165, 180, 0.05);
}

.topbar__links a:hover::before {
    left: 100%;
}

.topbar__links a.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(237, 28, 36, 0.08);
    font-weight: 700;
}

.topbar__links a.active::before {
    background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.1), transparent);
}
.topbar__user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
}

.topbar__name {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(237, 28, 36, 0.05);
    border: 1px solid rgba(237, 28, 36, 0.1);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.topbar__logout-form {
    margin: 0;
    display: inline-flex;
}

.topbar__logout-form button {
    margin: 0;
}
.topbar .btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.2);
}

.topbar .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.3);
}

.topbar .btn.ghost {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar .btn.ghost:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 161, 180, 0.2);
}

/* Mobile footer nav - скрыта */
.mobile-footer-navigation {
    display: none !important;
}
.mobile-footer-navigation a {
    display: grid;
    gap: 2px;
    justify-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 4px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border-right: 1px solid #f0f2f5;
}
.mobile-footer-navigation a:last-child {
    border-right: none;
}
.mobile-footer-navigation .menu-icons {
    display: grid;
    gap: 4px;
    justify-items: center;
    color: inherit;
}
.mobile-footer-navigation a:hover,
.mobile-footer-navigation a:focus {
    background: #f3f6f8;
    color: var(--secondary);
}
.menu-icons::before {
    font-family: "icomoon", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: currentColor;
}
.menu-icons.search::before { content: "\e900"; }
.menu-icons.catalog::before { content: "\e99c"; }
.menu-icons.favorites::before { content: "\eafe"; }
.menu-icons.profile::before { content: "\e971"; }
.menu-icons span {
    font-size: 12px;
    line-height: 1.2;
}

/* Sprint picker custom dropdown */
.sprint-picker {
    position: relative;
    z-index: 20;
    pointer-events: all;
}
.sprint-picker__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.04);
    pointer-events: all;
    user-select: none;
}
.sprint-picker__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sprint-picker__title {
    font-weight: 700;
    color: var(--primary);
}
.sprint-picker__period {
    color: var(--text);
    font-size: 12px;
}
.sprint-picker__chevron {
    color: var(--secondary);
    font-size: 12px;
}
.sprint-picker__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 8px;
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
    z-index: 200;
}
.sprint-picker__option {
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.sprint-picker__option:hover {
    border-color: var(--secondary);
    background: #f3f6f8;
}
.sprint-picker__option-title {
    font-weight: 600;
    color: var(--text);
}
.sprint-picker__option-period {
    font-size: 12px;
    color: #6b7280;
}
@keyframes navSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

a {
    color: var(--secondary);
}

.reports-shell {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.reports-flash {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.reports-flash.success { border-color: var(--secondary); }
.reports-flash.error { border-color: var(--primary); }

.reports-hero {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 18px;
    margin-bottom: 22px;
    overflow: visible;
    padding: 40px 0;
}

.hero-text, .hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
    overflow: visible;
}

.hero-text h1 {
    margin: 8px 0 10px;
    font-size: 32px;
}

.lead {
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--primary);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(237, 28, 36, 0.25);
}

.btn.ghost {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #fff;
}

.btn.small {
    padding: 8px 10px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 165, 180, 0.15);
}

.hero-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.pill {
    background: #f0f4f5;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--secondary);
}

.hero-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
    overflow: visible;
}

.hero-metric {
    position: relative;
    background: var(--card-2);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
}

.label {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 2px;
    letter-spacing: 0.04em;
}

.value {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.sub-value {
    color: var(--muted);
    margin: 2px 0 0;
}

.reports-filters {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}

.filters-form .actions {
    display: flex;
    gap: 8px;
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.field select,
.reports-form select,
.reports-form input,
.reports-form textarea {
    width: 100%;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    appearance: none;
}

.field select::placeholder,
.reports-form input::placeholder,
.reports-form textarea::placeholder {
    color: var(--muted);
}

.field select:focus,
.reports-form select:focus,
.reports-form input:focus,
.reports-form textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 165, 180, 0.18);
    background: #f7fdfd;
}

.field select option,
.reports-form select option {
    background: #fff;
    color: var(--text);
}

.reports-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    padding: 40px 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

.stat-card .value {
    font-size: 26px;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    margin: 2px 0 0;
    display: inline-block;
}

.reports-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.reports-actions.dual {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.action-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.action-card h3 {
    margin: 4px 0 12px;
    font-size: 20px;
}

.reports-form {
    display: grid;
    gap: 8px;
}

.reports-form textarea {
    min-height: 110px;
    resize: vertical;
}

.reports-form .inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.reports-section {
    padding: 40px 0;
}

.section-head h2 {
    margin: 2px 0 8px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.reports-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.reports-card h3 {
    margin: 0 0 10px;
}

.table-wrapper {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.reports-table th,
.reports-table td {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text);
}

.reports-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    background: #f1f3f5;
}

.reports-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--secondary);
    font-size: 12px;
    color: var(--secondary);
}

.reports-badge.success {
    background: #e9f8fa;
    border-color: var(--secondary);
    color: var(--secondary);
}

.reports-badge.subtle {
    background: #f6f7f8;
    color: var(--muted);
}

/* Улучшенные стили для статусов отчетов */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-badge.status-review {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.4);
    color: #ff9800;
}

.status-badge.status-rework {
    background: rgba(237, 28, 36, 0.15);
    border: 2px solid rgba(237, 28, 36, 0.4);
    color: #ed1c24;
}

.status-badge.status-accepted {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

/* Стили для статусов задач */
.task-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.task-status-badge.task-status-in_progress {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.task-status-badge.task-status-review {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.task-status-badge.task-status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.task-status-badge.task-status-blocked {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.task-status-badge.task-status-cancelled {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.task-status-badge.task-status-postponed {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.task-status-badge.task-status-analytics {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

/* Стили для карточек отчетов с редактированием */
.report-card .card-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-card .report-view-mode,
.report-card .report-edit-mode {
    margin-top: 16px;
}

.report-card .report-field {
    margin-bottom: 20px;
}

.report-card .report-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
}

.report-card .report-value {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
}

.report-card .tasks-table-view {
    margin-top: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.report-card .tasks-table-view .tasks-table__row {
    display: grid;
    grid-template-columns: 100px 2fr 140px 80px 1fr;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e1e5e9;
    align-items: start;
}

.report-card .tasks-table-view .task-title-cell,
.report-card .tasks-table-view .task-comment-cell {
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.report-card .tasks-table-view .tasks-table__row:last-child {
    border-bottom: none;
}

.report-card .tasks-table-view .tasks-table__row--head {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85em;
    color: #666;
}

.report-card .tasks-table-view code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
}

.report-card .tasks-table-edit {
    margin-top: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.report-card .tasks-table-edit .tasks-table__row {
    display: grid;
    grid-template-columns: 100px 2fr 140px 80px 1fr 40px;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e1e5e9;
    align-items: center;
}

.report-card .tasks-table-edit .tasks-table__row:last-child {
    border-bottom: none;
}

.report-card .tasks-table-edit .tasks-table__row--head {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85em;
    color: #666;
}

.report-card .tasks-table-edit input,
.report-card .tasks-table-edit select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
}

.report-card .report-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.report-card .report-field__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Статистика отчета */
.report-card .report-stats {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.report-card .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card .stat-item.stat-time {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary);
}

.report-card .stat-label {
    font-size: 0.9em;
    color: #666;
}

.report-card .stat-value {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

/* Комментарий руководителя */
.report-card .comment-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.report-card .report-comment-value {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(237, 28, 36, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 14px;
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
    font-style: italic;
}

/* Действия карточки */
.report-card .card-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.report-card .actions-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card .status-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.report-card .status-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.report-card .status-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    min-width: 180px;
}

.report-card .comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-card .comment-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-card .comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background: white;
}

.report-card .comment-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.report-card .comment-input::placeholder {
    color: #999;
}

/* Улучшенный layout карточек */
.report-card {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
}

.report-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.report-card .tasks-table-view {
    max-width: 100%;
    overflow-x: auto;
}

.report-card .tasks-table-view .tasks-table__row {
    min-width: 600px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .report-card .report-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .report-card .stat-item.stat-time {
        margin-left: 0;
    }
    
    .report-card .status-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-card .status-select {
        width: 100%;
        min-width: auto;
    }
    
    .report-card .tasks-table-view .tasks-table__row {
        grid-template-columns: 80px 1.5fr 100px 60px 1.2fr;
        gap: 8px;
        padding: 8px;
        font-size: 0.85em;
    }
    
    .report-card .tasks-table-view .tasks-table__row--head {
        font-size: 0.75em;
    }
}

.inline-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tasks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.tasks-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.empty {
    padding: 12px;
    background: #f9fafb;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
}

@media (max-width: 960px) {
    .reports-hero {
        grid-template-columns: 1fr;
    }
    .hero-card {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .filters-form {
        grid-template-columns: 1fr;
    }
    .inline-form {
        flex-direction: column;
        align-items: flex-start;
    }
}

.tasks-table__row {
    display: grid;
    grid-template-columns:
        minmax(60px, 0.5fr)
        minmax(140px, 1.4fr)
        minmax(90px, 0.55fr)   /* тип */
        minmax(120px, 0.75fr)  /* статус */
        minmax(60px, 0.35fr)   /* баллы */
        minmax(70px, 0.35fr)   /* время */
        minmax(140px, 1.3fr)   /* комментарий */
        32px;
    gap: 6px;
    align-items: center;
    position: relative;
}
.tasks-table__row.tasks-table__row--dev {
    grid-template-columns:
        minmax(70px, 0.55fr)
        minmax(140px, 1.2fr)
        minmax(100px, 0.6fr)
        minmax(120px, 0.75fr)
        minmax(70px, 0.35fr)
        minmax(150px, 1.4fr)
        32px;
}
.tasks-table__row input,
.tasks-table__row select {
    width: 100%;
    min-width: 0;
}
.tasks-table__remove {
    width: 32px;
    height: 32px;
    padding: 0;
}
.task-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 48px;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #d7dce2;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 8px;
    z-index: 20;
    max-height: 220px;
    overflow: auto;
    display: none;
}
.task-suggest__item {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.task-suggest__item:hover {
    background: #f5f7fb;
}
.task-suggest__title {
    font-weight: 600;
    color: #333;
}
.task-suggest__meta {
    font-size: 12px;
    color: #6b7280;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}
.modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    max-width: min(1280px, 98vw);
    width: 100%;
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
    color: #333333;
    border: 1px solid #d7dce2;
}
.modal .tasks-builder {
    overflow-x: auto;
}
.modal .tasks-table {
    min-width: 1100px;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    color: #333333;
}
.modal .reports-form label {
    color: #333333;
    font-weight: 600;
}
.modal .reports-form input,
.modal .reports-form select,
.modal .reports-form textarea {
    background: #fff;
    color: #333333;
    border: 1px solid #d7dce2;
}
.modal .reports-form input::placeholder,
.modal .reports-form textarea::placeholder {
    color: #6b7280;
}
.tasks-builder {
    margin: 12px 0;
    background: #f9fafb;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
}
.tasks-builder__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.tasks-table {
    display: grid;
    gap: 6px;
}
.tasks-table__row--head {
    color: #6b7280;
    font-size: 12px;
}
.score-inline {
    margin: 14px 0 8px;
    padding: 10px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #f9fafb;
}
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.tasks-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tasks-hint span {
    background: #f3f6f8;
    border: 1px dashed #d7dce2;
    padding: 6px 8px;
    border-radius: 10px;
}

/* ===== MODAL STYLES ===== */
.modal,
.modal-2,
.buyNow {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    color: var(--main-color);
    z-index: 9999;
}

.modal-content,
.modal-content-2 {
    position: relative;
    background-color: #FFFFFF;
    margin: auto;
    padding: 0;
    border: 5px solid rgb(38 38 38);
    width: 100%;
    max-width: 650px;
    box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: center;
}

@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

.modal-close,
.modal-close-2,
.closebuyNow {
    position: absolute;
    color: #ffffff9e;
    right: 11px;
    top: -7px;
    font-size: 35px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus,
.modal-close-2:hover,
.modal-close-2:focus,
.closebuyNow:hover,
.closebuyNow:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.modal-header,
.modal-header-2 {
    position: relative;
    padding: 2px 16px;
    background-color: var(--black);
    color: white;
    padding-bottom: 15px;
}

.modal-body-info{
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    width: 80%;
    text-align: left;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-body-info-details{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-body input[type="submit"]{
    color: var(--white);
    cursor: pointer;
    text-transform: uppercase;
    background-color: var(--black);
    border: 1px solid var(--main-color);
}

.modal-body input[type=submit]:hover, .modal-body-2 input[type=submit]:hover {
    background-color: var(--main-color);
}

.details-title{
    font-weight: 900;
}

.details-price{
    font-size: var(--font-size-22);
}

.modal-body-info-details .product-counts{
    opacity: 1;
}

.modal-content .count-buttons{
    width: 80%;
    margin: 0 auto;
    margin-bottom: 15px;
}

.modal-content .count-buttons button {
    width: 100%;
    color: var(--white) !important;
    border: 1px solid #ffffffa8;
    height: 50px!important;
    font-size: var(--font-size-28)!important;
}

.modal-content .count-buttons input[type="number"] {
    width: 100%;
    color: var(--white) !important;
    border: 1px solid #ffffffa8;
    height: 50px!important;
}

.modal-body,
.modal-body-2 {
    padding: 2px 16px;
    background-color: var(--black);
}

.modal-body img{
    max-width: 100px;
}

.modal-body input,
.modal-body-2 input {
    padding: 15px;
    width: 80%;
    background-color: #ffffff2e;
    color: var(--main-color);
    border: 0;
    margin-bottom: 15px;
    font-size: var(--font-size-22);
}

.modal-body input[type=checkbox] {
    padding: 10px;
    width: auto;
    background-color: none;
}

.modal-body textarea {
    padding: 15px;
    width: 80%;
    background-color: #ffffff2e;
    color: var(--main-color);
    border: 0;
    margin-bottom: 15px;
    font-size: var(--font-size-22);
}

.modal-end-text{
    font-size: var(--font-size-16);
}

.overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 25;
    transition: .3s all;
    pointer-events: none;
}

.overlay.active {
    pointer-events: auto;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modalWindow {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2);
    border-radius: 8px;
    z-index: 30;
    transition: 0.3s all;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modalWindow.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.modalWindow.active ~ .overlay,
.modalWindow.active .overlay {
    opacity: 1;
    visibility: visible;
}

.modalWindow .modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: none;
    margin: 0;
    border: none;
    animation: none;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body .field {
    margin-bottom: 20px;
}

.modal-body .field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.modal-body .field input,
.modal-body .field select,
.modal-body .field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.modal-body .field textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-body .actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Улучшенная модалка создания задач */
.task-modal {
    max-width: 1200px;
    width: 90vw;
}

.task-modal .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
}

.task-modal .modal-header {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(0, 165, 180, 0.1));
    border-bottom: 2px solid #e1e5e9;
    padding: 20px 24px;
}

.task-modal .modal-header h3 {
    font-size: 1.4em;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.task-modal .modal-body {
    padding: 24px;
    background: #fafbfc;
}

/* Модалка создания отчета */
.report-modal {
    max-width: 1000px;
    width: 90vw;
    z-index: 30;
}

.report-modal .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    background: white;
    position: relative;
    z-index: 31;
    pointer-events: auto;
}

.report-modal .modal-header {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(0, 165, 180, 0.1));
    border-bottom: 2px solid #e1e5e9;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-modal .modal-header h3 {
    font-size: 1.4em;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.report-modal .modal-header .js-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.report-modal .modal-header .js-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.report-modal .modal-body {
    padding: 24px;
    background: #fafbfc;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.task-creation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e1e5e9;
}

.task-creation-form .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.task-creation-form .section-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.task-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.task-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.1);
    transform: translateY(-2px);
}

.task-item.drag-over {
    border-color: #28a745;
    background: #f8fff9;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.task-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 2px 6px rgba(237, 28, 36, 0.2);
}

.task-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.task-remove:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.task-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-field-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-items: start;
}

.task-field-row-single {
    display: grid;
    grid-template-columns: 120px 2fr 140px 120px 180px;
    gap: 12px;
    align-items: start;
}

.task-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    min-width: 0;
}

.task-field-gitlab {
    flex: 0 0 120px;
}

.task-field-title {
    flex: 1;
    min-width: 0;
}

.task-field-app {
    flex: 0 0 140px;
}

.task-field-time {
    flex: 0 0 180px;
}

.task-field label {
    font-size: 0.7em;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
    line-height: 1.2;
    min-height: 16px;
    display: block;
}

.task-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.task-field input,
.task-field select {
    height: 40px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: white;
    color: #333;
}

.task-field input:focus,
.task-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.task-field input::placeholder {
    color: #999;
}

.task-field.time-field {
    max-width: 280px;
}

.time-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.time-input {
    flex: 1;
    min-width: 60px;
    width: 70px;
}

.time-unit-select {
    flex: 0 0 60px;
    min-width: 60px;
    width: 60px;
    font-size: 0.85em;
}

.time-hint {
    font-size: 0.75em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

.empty-tasks {
    display: none;
}

.empty-tasks.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state .empty-icon {
    font-size: 3em;
    opacity: 0.5;
}

.empty-state h5 {
    margin: 15px 0 8px 0;
    color: #666;
}

.empty-state p {
    margin: 0 0 20px 0;
    color: #999;
}

.task-creation-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #e1e5e9;
    margin-top: 24px;
    gap: 16px;
}

.task-creation-form .form-stats {
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(237, 28, 36, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(237, 28, 36, 0.1);
}

.task-creation-form .form-stats #tasks-count {
    font-weight: 700;
    color: var(--primary);
}

.task-creation-form .form-actions .buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .task-modal .modal-content {
        width: 98vw;
        margin: 10px;
    }

    .task-field-row-single {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .task-field-gitlab,
    .task-field-app,
    .task-field-time {
        flex: 1;
    }

    .task-field-time {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .task-creation-form .form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .task-creation-form .form-stats {
        text-align: center;
    }

    .task-creation-form .form-actions .buttons {
        width: 100%;
        flex-direction: column;
    }

    .task-creation-form .form-actions .buttons .btn {
        width: 100%;
    }
}

/* Стили для таблицы задач в формах отчетов */
.tasks-builder {
    margin-top: 20px;
}

.tasks-builder__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tasks-table {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.tasks-table__row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 1fr 0.6fr 2fr 40px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    background: white;
}

/* Специфические стили для таблицы задач в /my */
.my-reports-page .tasks-table__row {
    grid-template-columns: 1fr 1fr 1fr 0.8fr 2.5fr 40px;
}

.tasks-table__row--dev {
    grid-template-columns: 1fr 1fr 0.8fr 0.8fr 1fr 2fr 40px;
}

/* Специфические стили для таблицы задач в /my */
.my-reports-page .tasks-table__row--dev {
    grid-template-columns: 1fr 1fr 0.8fr 1fr 0.8fr 2.5fr 40px;
}

/* Стилизация обязательных полей в форме задач */
.my-reports-page .tasks-table input[required],
.my-reports-page .tasks-table select[required],
.my-reports-page .tasks-table textarea[required] {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.1);
}

.my-reports-page .tasks-table input[required]:focus,
.my-reports-page .tasks-table select[required]:focus,
.my-reports-page .tasks-table textarea[required]:focus {
    box-shadow:
        0 0 0 2px rgba(237, 28, 36, 0.1),
        0 0 0 4px rgba(237, 28, 36, 0.05);
}

/* Стилизация полей с ошибками валидации */
.my-reports-page .tasks-table input.error-field,
.my-reports-page .tasks-table textarea.error-field,
.my-reports-page .tasks-table select.error-field {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
    animation: shake 0.3s ease-in-out;
}

.my-reports-page .tasks-table input.error-field:focus,
.my-reports-page .tasks-table textarea.error-field:focus,
.my-reports-page .tasks-table select.error-field:focus {
    border-color: #dc3545;
    box-shadow:
        0 0 0 2px rgba(220, 53, 69, 0.2),
        0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* Стилизация для дубликатов задач */
.my-reports-page .tasks-table input.error-field-duplicate,
.my-reports-page .tasks-table textarea.error-field-duplicate,
.my-reports-page .tasks-table select.error-field-duplicate {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.3);
    animation: shake 0.3s ease-in-out;
}

.my-reports-page .tasks-table input.error-field-duplicate:focus,
.my-reports-page .tasks-table textarea.error-field-duplicate:focus,
.my-reports-page .tasks-table select.error-field-duplicate:focus {
    border-color: #ff9800;
    box-shadow:
        0 0 0 2px rgba(255, 152, 0, 0.3),
        0 0 0 4px rgba(255, 152, 0, 0.15);
}

/* Модалка для уведомлений */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.notification-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.notification-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    z-index: 1;
}

.notification-modal__content--success {
    border-top: 4px solid #28a745;
}

.notification-modal__content--error {
    border-top: 4px solid #dc3545;
}

.notification-modal__content--warning {
    border-top: 4px solid #ffc107;
}

.notification-modal__content--info {
    border-top: 4px solid #17a2b8;
}

.notification-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.notification-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-modal__content--success .notification-modal__icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.notification-modal__content--error .notification-modal__icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.notification-modal__content--warning .notification-modal__icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.notification-modal__content--info .notification-modal__icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.notification-modal__icon svg {
    width: 24px;
    height: 24px;
}

.notification-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-modal__close:hover {
    background: #f8f9fa;
    color: #333;
}

.notification-modal__body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.notification-modal__title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.notification-modal__message {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.notification-modal__message ul {
    margin: 12px 0;
    padding-left: 24px;
}

.notification-modal__message li {
    margin-bottom: 8px;
}

.notification-modal__footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    justify-content: flex-end;
}

.notification-modal__btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.notification-modal__btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

.notification-modal__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(237, 28, 36, 0.4);
}

.notification-modal__btn--secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.notification-modal__btn--secondary:hover {
    background: #e9ecef;
    color: #495057;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .notification-modal__content {
        max-width: 100%;
        margin: 16px;
    }
    
    .notification-modal__header {
        padding: 16px 20px;
    }
    
    .notification-modal__body {
        padding: 20px;
    }
    
    .notification-modal__footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .notification-modal__btn {
        width: 100%;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.tasks-table__row--head {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.tasks-table__row--head span {
    font-size: 0.9em;
    color: #666;
}

.tasks-table__row input,
.tasks-table__row select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.tasks-table__row input:focus,
.tasks-table__row select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.tasks-table__remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: background-color 0.2s;
}

.tasks-table__remove:hover {
    background: #c82333;
}

.tasks-hint {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.85em;
    color: #495057;
    position: relative;
    overflow: hidden;
}

.tasks-hint::before {
    content: '💡';
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 1.2em;
    opacity: 0.6;
}

.tasks-hint span {
    display: block;
    margin-bottom: 8px;
    padding-left: 28px;
    line-height: 1.4;
    position: relative;
}

.tasks-hint span:last-child {
    margin-bottom: 0;
}

.tasks-hint span strong {
    color: var(--primary);
    font-weight: 600;
}

.tasks-hint span code {
    background: rgba(237, 28, 36, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

/* Админ действия */
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 8px;
    font-size: 0.9em;
}

/* Оптимизация hero секции */

.reports-hero .hero-text h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.reports-hero .hero-text .lead {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.hero-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-pills .pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}



.hero-metric .label {
    font-size: 0.85em;
    color: #ccc;
    margin-bottom: 5px;
}

.hero-metric .value {
    font-size: 1.5em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.hero-metric .sub-value {
    font-size: 0.8em;
    color: #ccc;
}

/* Компактная секция статистики */


.stat-card .label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.stat-card .hint {
    color: #999;
    font-size: 0.8em;
}

/* Оптимизация действий */
.reports-actions {
    padding: 40px 0;
}

.action-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-card h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Унифицированная форма отчетов */
.reports-form {
    display: grid;
    gap: 20px;
}

.reports-form label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.reports-form input,
.reports-form select,
.reports-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.reports-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Оптимизация таблиц отчетов */
.reports-section {
    padding: 40px 0;
}

/* Секции отчетов должны быть ограничены шириной контейнера */
.content-container .reports-section {
    padding: 40px 0;
}

/* Стили для секций с таблицами в стиле dashboard-section */
.dashboard-section .label {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.dashboard-section .section-description {
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
    margin-bottom: 0;
}

.section-head {
    margin-bottom: 30px;
}

.section-head h2 {
    margin-bottom: 5px;
}

.table-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

.reports-table th,
.reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.reports-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.reports-table tr:hover {
    background: #f8f9fa;
}

/* Секция аналитики */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.reports-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reports-card h3 {
    margin-bottom: 20px;
    color: #333;
}

.empty {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Компактная панель фильтров */
.reports-filters {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.filters-bar {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters-form {
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-width: 200px;
}

.filter-group .btn {
    padding: 8px 12px;
    border-radius: 4px;
}

/* Улучшенный header для reports */
.reports-header {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.95) 0%, rgba(0, 165, 180, 0.95) 100%);
    color: white;
    padding: 40px 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    align-items: center;
    margin-bottom: 20px;
}

.header-title h1 {
    margin: 0 0 5px 0;
    font-size: 2em;
    font-weight: 700;
}

.header-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.header-meta .meta-item strong {
    font-weight: 600;
}

.header-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.metric-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    font-size: 24px;
    line-height: 1;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75em;
    opacity: 0.9;
    white-space: nowrap;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.meta-badge.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.meta-item {
    font-size: 0.85em;
    opacity: 0.9;
}

.text-muted {
    opacity: 0.7;
}

.header-controls {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.quick-filters select {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 160px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-filters select:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-filters select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.filter-reset {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.filter-reset:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-menu {
    position: relative;
}

.admin-toggle {
    position: relative;
    z-index: 10;
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.admin-menu:hover .admin-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.admin-dropdown button:hover {
    background: #f8f9fa;
}

.flash-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.flash-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.flash-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Основной контейнер сайта */
main {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Контейнер для всего контента */
.content-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard */

.dashboard-section {
    background: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

/* Стили для табов фильтрации отчетов */
.reports-filter-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--card-2);
    border-color: var(--secondary);
}

.filter-tab.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.filter-tab .tab-count {
    font-weight: 600;
}

.reports-container {
    margin-top: 20px;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sort-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
}

.sort-select:hover {
    border-color: var(--primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.section-count {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.section-count .count-number {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1;
}

.section-count .count-label {
    font-size: 0.75em;
    opacity: 0.9;
    text-transform: lowercase;
}

/* Карточки отчетов */
.reports-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .reports-cards {
        grid-template-columns: 1fr;
    }
}

.report-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-card[data-status="accepted"]::before {
    background: linear-gradient(90deg, #28a745, #20c997);
    opacity: 1;
}

.report-card[data-status="review"]::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    opacity: 1;
}

.report-card[data-status="rework"]::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
    opacity: 1;
}

.report-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(237, 28, 36, 0.15);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.developer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(0, 165, 180, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.developer {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    display: block;
    margin-bottom: 4px;
}

.sprint-badge {
    font-size: 0.8em;
    color: var(--secondary);
    background: rgba(0, 165, 180, 0.1);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-block;
}

.report-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
    min-height: 40px;
    margin-right: 10px;
}

.date-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft { background: #fff3cd; color: #856404; }
.status-review { background: #d1ecf1; color: #0c5460; }
.status-accepted { background: #d4edda; color: #155724; }
.status-rework { background: #f8d7da; color: #721c24; }

.card-content {
    margin-bottom: 15px;
    flex: 1;
}

.report-summary {
    color: #555;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.report-tasks {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-count {
    font-size: 0.85em;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
}

.card-actions {
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.status-form select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85em;
}

/* Улучшенная аналитика */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Стили для таблицы упоминаний задач */
.task-title-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mention-count {
    color: var(--primary);
    font-size: 1em;
    font-weight: 500;
}

.unique-days-count,
.developers-count {
    color: #666;
    font-weight: 500;
}

.task-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
}

.allocated-time {
    color: #666;
    font-weight: 500;
}

.spent-time {
    color: var(--primary);
    font-size: 1.05em;
}

/* Стили для страницы задачи */
.task-page .task-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.task-page .info-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.task-page .info-label {
    font-size: 0.85em;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.task-page .info-value {
    font-size: 1.1em;
    color: #111827;
    font-weight: 500;
}

.task-page .task-edit-form {
    margin-top: 24px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.task-page .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.task-page .form-field {
    display: flex;
    flex-direction: column;
}

.task-page .form-field label {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.task-page .form-field input,
.task-page .form-field select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.2s;
}

.task-page .form-field input:focus,
.task-page .form-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.task-page .form-actions {
    display: flex;
    gap: 12px;
}

.task-page .task-comment-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

.task-page .text-success {
    color: #10b981;
}

.task-page .text-danger {
    color: #ef4444;
}

/* Стили для ссылок на задачи */
.task-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.task-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.task-link code {
    color: inherit;
    background: transparent;
    padding: 0;
}

/* Стили для объединенной таблицы задач */
.time-cell {
    white-space: nowrap;
    font-size: 0.95em;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.time-allocated {
    color: #666;
    font-weight: 500;
}

.time-separator {
    color: #999;
    margin: 0 2px;
}

.time-spent {
    color: var(--primary);
    font-weight: 600;
}

.stats-cell {
    white-space: nowrap;
    font-size: 0.9em;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stats-days {
    color: #666;
    font-weight: 500;
}

.stats-separator {
    color: #999;
}

.stats-dev {
    color: #666;
    font-weight: 500;
}

.app-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
}

.task-reports {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.task-reports .report-link {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(237, 28, 36, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.85em;
    text-decoration: none;
    transition: background 0.2s;
}

.task-reports .report-link:hover {
    background: rgba(237, 28, 36, 0.2);
    text-decoration: none;
}

.task-reports .report-count {
    color: #666;
    font-size: 0.85em;
    margin-left: 4px;
}

.analytics-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.analytics-card.primary::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.analytics-card.success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.analytics-card.warning::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.analytics-card.danger::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.analytics-card.info::before {
    background: linear-gradient(90deg, var(--secondary), #00b4b4);
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.analytics-card .card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.analytics-card .card-value {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: #333;
}

.analytics-card .card-label {
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.card-content {
    flex: 1;
}

.card-value {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.card-label {
    font-size: 0.8em;
    opacity: 0.9;
}

.analytics-table-wrapper {
    margin-top: 32px;
}

.table-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.analytics-table {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.stats-table thead {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(0, 165, 180, 0.1));
}

.stats-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.stats-table tbody tr:hover {
    background: #f8f9fa;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.developer-cell {
    font-weight: 600;
    color: #333;
}

.developer-cell .dev-name {
    display: block;
}

.percent-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.percent-value {
    font-weight: 600;
    color: #333;
}

.percent-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.percent-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.percent-bar-fill.excellent {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.percent-bar-fill.good {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.percent-bar-fill.average {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.percent-bar-fill.poor {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.rating-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.rating-badge.excellent {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
}

.rating-badge.good {
    background: rgba(23, 162, 184, 0.15);
    color: #0c5460;
}

.rating-badge.average {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.rating-badge.poor {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.section-description {
    color: #666;
    font-size: 0.9em;
    margin-top: 8px;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #333;
}

.empty-state p {
    color: #666;
    font-size: 0.9em;
}

.compact-table th,
.compact-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.compact-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.compact-table tr:hover {
    background: #f8f9fa;
}

.percent-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Empty states */
.empty-card,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-card .empty-icon,
.empty-state .empty-icon {
    font-size: 4em;
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-card h3,
.empty-state h3 {
    margin: 0 0 8px 0;
    color: #999;
}

.empty-card p,
.empty-state p {
    margin: 0;
    color: #ccc;
}

/* Форма создания отчета */
.report-form-section {
    margin-top: 30px;
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-header h3 {
    margin: 0;
    color: #333;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tasks-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tasks-header h4 {
    margin: 0;
    color: #333;
}

.tasks-container {
    margin-bottom: 15px;
}

.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 0.85em;
    color: #1565c0;
}

.notice-icon {
    font-size: 1.1em;
    margin-top: -1px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .reports-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .topbar__inner {
        gap: 10px;
        padding: 12px 20px;
    }
    
    .topbar__links {
        gap: 4px;
    }
    
    .topbar__links a {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .topbar__user {
        gap: 6px;
    }

    .topbar .btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .topbar .btn.ghost {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .topbar__name {
        padding: 5px 8px;
        font-size: 0.8em;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .topbar__inner {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .topbar__brand {
        flex: 1;
        min-width: 0;
    }

    .topbar__brand a {
        font-size: 15px;
        padding: 5px 10px;
    }

    .topbar__links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 4px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(237, 28, 36, 0.1);
    }

    .topbar__links a {
        padding: 5px 8px;
        font-size: 0.8em;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .topbar__user {
        flex-shrink: 0;
        gap: 4px;
        min-width: 0;
    }

    .topbar__name {
        display: none;
    }

    .topbar .btn {
        padding: 5px 8px;
        font-size: 0.8em;
        white-space: nowrap;
        min-width: auto;
    }

    .topbar .btn.ghost {
        padding: 5px 8px;
        font-size: 0.8em;
        border-width: 1.5px;
    }

    .topbar .btn.primary {
        padding: 5px 8px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .topbar__inner {
        padding: 8px 10px;
        gap: 6px;
    }

    .topbar__brand a {
        font-size: 14px;
        padding: 4px 8px;
    }

    .topbar__user {
        gap: 4px;
    }

    .topbar .btn {
        padding: 4px 6px;
        font-size: 0.75em;
    }

    .topbar .btn.ghost {
        padding: 4px 6px;
        font-size: 0.75em;
    }
    }

    .reports-header {
        padding: 24px 20px;
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-metrics {
        align-self: stretch;
        justify-content: space-around;
    }

    .header-controls {
        padding: 16px 18px;
        margin-top: 20px;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .quick-filters {
        width: 100%;
        flex-wrap: wrap;
    }

    .quick-filters select {
        flex: 1;
        min-width: 140px;
    }

    .quick-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .quick-filters {
        flex-wrap: wrap;
    }

    .quick-filters select {
        min-width: 120px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding: 20px;
    }

    .analytics-cards {
        grid-template-columns: 1fr;
    }
}

/* Унифицированные стили для страниц reports и my с фирменными цветами */
.reports-page .action-card,
.my-reports-page .action-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    color: var(--text);
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 32px;
}

.reports-page .action-card:hover,
.my-reports-page .action-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reports-page .action-card::before,
.my-reports-page .action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.7;
}

.reports-page .action-card::after,
.my-reports-page .action-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Стили для списка отчетов в таблице задач */
.task-reports {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.report-link {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(237, 28, 36, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.report-link:hover {
    background: rgba(237, 28, 36, 0.2);
    text-decoration: none;
}

.section-description {
    color: var(--muted);
    font-size: 0.9em;
    margin-top: 8px;
    font-style: italic;
}

.reports-page .action-card .label,
.my-reports-page .action-card .label {
    color: var(--muted);
}

.reports-page .action-card h3,
.my-reports-page .action-card h3 {
    color: var(--text);
    margin-bottom: 20px;
}

.reports-page .reports-form input,
.reports-page .reports-form select,
.reports-page .reports-form textarea,
.my-reports-page .reports-form input,
.my-reports-page .reports-form select,
.my-reports-page .reports-form textarea {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    color: var(--text);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reports-page .reports-form input:focus,
.reports-page .reports-form select:focus,
.reports-page .reports-form textarea:focus,
.my-reports-page .reports-form input:focus,
.my-reports-page .reports-form select:focus,
.my-reports-page .reports-form textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(237, 28, 36, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Стили для лейблов в формах внутри action-card */
.reports-page .action-card .reports-form label,
.my-reports-page .action-card .reports-form label {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9em;
}

/* Стили для кнопок в action-card */
.reports-page .action-card button,
.my-reports-page .action-card button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.reports-page .action-card button:hover,
.my-reports-page .action-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.4);
}

.reports-page .action-card button:active,
.my-reports-page .action-card button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

/* Специфические стили для страницы reports */
.reports-page .hero-text h1 {
    color: #333;
}

.reports-page .hero-text .lead {
    color: #666;
    font-size: 1.1em;
}

/* Фирменные цвета для метрик */
.reports-page .hero-metric,
.my-reports-page .hero-metric {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(0, 165, 180, 0.05) 100%);
    border: 1px solid rgba(237, 28, 36, 0.1);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.08);
    color: var(--text);
}

.reports-page .hero-metric .label,
.my-reports-page .hero-metric .label {
    color: var(--muted);
}

.reports-page .hero-metric .value,
.my-reports-page .hero-metric .value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5em;
}

/* Специфические стили для sprint-picker в hero-metric */
.reports-page .hero-metric.sprint-picker,
.my-reports-page .hero-metric.sprint-picker {
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-page .hero-metric.sprint-picker:hover,
.my-reports-page .hero-metric.sprint-picker:hover {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.02) 0%, rgba(0, 165, 180, 0.02) 100%);
    border-color: rgba(237, 28, 36, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(237, 28, 36, 0.12);
}

.reports-page .hero-metric.sprint-picker .label,
.my-reports-page .hero-metric.sprint-picker .label {
    color: var(--text);
    font-weight: 600;
}

/* Автодополнение для Gitlab ID */
.input-with-suggest {
    position: relative;
    width: 100%;
}

.task-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
}

/* Специфические стили для подсказок в my-reports-page */
.my-reports-page .task-suggest {
    z-index: 99999;
}

/* Убеждаемся, что контейнеры не скрывают подсказки */
.my-reports-page .tasks-table,
.my-reports-page .tasks-table__row {
    overflow: visible;
}

.task-suggest-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.task-suggest-item:last-child {
    border-bottom: none;
}

.task-suggest-item:hover {
    background-color: var(--card-2);
}

.task-suggest-id {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9em;
}

.task-suggest-title {
    font-weight: 500;
    color: var(--text);
    margin: 4px 0;
    font-size: 0.95em;
    line-height: 1.3;
}

.task-suggest-info {
    font-size: 0.8em;
    color: var(--muted);
    font-style: italic;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.task-suggest-app {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   СТРАНИЦА /MY - УЛУЧШЕННЫЙ ДИЗАЙН
   ============================================ */

/* Заблокированное поле названия задачи */
.tasks-table__row input[name="task_title"].locked-field,
.tasks-table__row input[name="task_title"][readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Hero секция для страницы /my */
/* Hero секция для страницы /my - переопределяем общий grid layout */
.my-reports-page .dashboard-section.reports-hero {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.08) 0%, rgba(0, 165, 180, 0.08) 100%) !important;
    border-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
    border: 1px solid rgba(237, 28, 36, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.my-reports-page .hero-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: stretch;
    width: 100%;
}

.my-reports-page .hero-text {
    min-width: 0;
}

.my-reports-page .hero-text .eyebrow {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.my-reports-page .hero-text h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #212529;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.my-reports-page .hero-text .lead {
    font-size: 1.05em;
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

.my-reports-page .hero-text .lead.empty {
    color: #adb5bd;
    font-style: italic;
}

.my-reports-page .hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: visible;
}

.my-reports-page .hero-stat {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(237, 28, 36, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-reports-page .hero-stat-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-weight: 600;
}

.my-reports-page .hero-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.my-reports-page .hero-sprint {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(237, 28, 36, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-reports-page .hero-sprint:hover {
    border-color: rgba(237, 28, 36, 0.3);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.15);
    transform: translateY(-2px);
}

.my-reports-page .sprint-picker__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(0, 165, 180, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(237, 28, 36, 0.1);
    cursor: pointer;
}

.my-reports-page .sprint-picker__control:hover {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.08) 0%, rgba(0, 165, 180, 0.08) 100%);
}

.my-reports-page .sprint-picker__control > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.my-reports-page .sprint-picker__title {
    font-size: 1.1em;
    font-weight: 700;
    color: #212529;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-reports-page .sprint-picker__period {
    font-size: 0.85em;
    color: #6c757d;
}

.my-reports-page .sprint-picker__chevron {
    font-size: 0.75em;
    color: var(--primary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.my-reports-page .hero-sprint.active .sprint-picker__chevron,
.my-reports-page .sprint-picker__control.active .sprint-picker__chevron {
    transform: rotate(180deg);
}

.my-reports-page .sprint-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    z-index: 3000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
}

/* Гарантируем, что выпадающий список перекрывает соседние карточки в блоке Telegram */
.my-reports-page #sprintPickerCard {
    position: relative;
    z-index: 30;
}

.my-reports-page #sprintMenu {
    z-index: 4000;
}

.my-reports-page .sprint-picker__option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.my-reports-page .sprint-picker__option:last-child {
    border-bottom: none;
}

.my-reports-page .sprint-picker__option:hover {
    background: #f8f9fa;
}

.my-reports-page .sprint-picker__option-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.my-reports-page .badge-active {
    font-size: 0.75em;
    padding: 2px 8px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-radius: 12px;
    font-weight: 600;
}

.my-reports-page .sprint-picker__option-period {
    font-size: 0.85em;
    color: #6c757d;
}

/* Форма создания отчета для /my */
.my-reports-page .reports-actions {
    margin-bottom: 40px;
}

.my-reports-page .reports-actions .section-head {
    margin-bottom: 24px;
}

.my-reports-page .action-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Карточки отчетов */
.my-reports-page .reports-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-reports-page .report-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.my-reports-page .report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.my-reports-page .report-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(237, 28, 36, 0.2);
}

.my-reports-page .report-card:hover::before {
    opacity: 1;
}

.my-reports-page .report-card--hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.my-reports-page .reports-load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.my-reports-page .report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    gap: 24px;
}

.my-reports-page .report-card__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.my-reports-page .report-card__title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.my-reports-page .report-card__title {
    font-weight: 700;
    color: #212529;
    font-size: 1.25em;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.my-reports-page .report-card__status-badge {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.my-reports-page .report-card__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.my-reports-page .report-card__content {
    margin-top: 8px;
}

.my-reports-page .report-field {
    margin-bottom: 28px;
}

.my-reports-page .report-field:last-child {
    margin-bottom: 0;
}

.my-reports-page .report-field__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.my-reports-page .report-field label {
    display: block;
    font-weight: 700;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-reports-page .report-value {
    color: #212529;
    line-height: 1.8;
    padding: 16px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 0.95em;
}

/* Таблицы задач */
.my-reports-page .tasks-table-view,
.my-reports-page .tasks-table-edit,
.my-reports-page .tasks-table--create {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.my-reports-page .tasks-table--create .tasks-table__row {
    grid-template-columns: 1fr 2fr 1fr 0.8fr 2fr auto;
}

.my-reports-page .tasks-table-view .tasks-table__row,
.my-reports-page .tasks-table-edit .tasks-table__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 0.8fr 2fr;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background-color 0.2s ease;
}

.my-reports-page .tasks-table-edit .tasks-table__row {
    grid-template-columns: 1fr 2fr 1fr 0.8fr 2fr auto;
}

.my-reports-page .tasks-table-view .tasks-table__row--head,
.my-reports-page .tasks-table-edit .tasks-table__row--head {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    font-weight: 700;
    font-size: 0.8em;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px;
    border-bottom: 2px solid #e9ecef;
}

.my-reports-page .tasks-table-view .tasks-table__row:not(.tasks-table__row--head):hover,
.my-reports-page .tasks-table-edit .tasks-table__row:not(.tasks-table__row--head):hover {
    background: #f8f9fa;
}

.my-reports-page .tasks-table-view .tasks-table__row:last-child,
.my-reports-page .tasks-table-edit .tasks-table__row:last-child {
    border-bottom: none;
}

.my-reports-page .tasks-table-view .tasks-table__row span,
.my-reports-page .tasks-table-edit .tasks-table__row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9em;
}

.my-reports-page .tasks-table-edit input,
.my-reports-page .tasks-table-edit select {
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.my-reports-page .tasks-table-edit input:focus,
.my-reports-page .tasks-table-edit select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.my-reports-page .tasks-table-edit select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23333' d='M5 8L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.my-reports-page .report-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.my-reports-page .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

.my-reports-page .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.1);
}

/* Бейджи статусов */
.my-reports-page .reports-badge.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    font-weight: 600;
}

.my-reports-page .reports-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-weight: 600;
}

.my-reports-page .reports-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.my-reports-page .reports-badge.subtle {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Кнопки */
.my-reports-page .btn.danger {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    font-weight: 600;
    transition: all 0.2s ease;
}

.my-reports-page .btn.danger:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.my-reports-page .btn.ghost {
    transition: all 0.2s ease;
}

.my-reports-page .btn.ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.my-reports-page .tasks-table__remove {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.3em;
    line-height: 1;
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-reports-page .tasks-table__remove:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    transform: scale(1.05);
}

.my-reports-page .btn.primary.full {
    margin-top: 8px;
    padding: 14px 24px;
    font-size: 1em;
}

/* Подсказка задач */
.my-reports-page .tasks-hint {
    margin-top: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(0, 165, 180, 0.05) 100%);
    border: 2px solid rgba(237, 28, 36, 0.1);
    border-radius: 12px;
    font-size: 0.9em;
    color: #495057;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-reports-page .tasks-hint__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.my-reports-page .tasks-hint__section strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-reports-page .tasks-hint__section p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
    padding-left: 0;
}

.my-reports-page .tasks-hint__section code {
    background: rgba(237, 28, 36, 0.15);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    font-weight: 600;
}

/* Flash сообщения */
.my-reports-page .reports-flash {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    border: 2px solid;
}

.my-reports-page .reports-flash.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.my-reports-page .reports-flash.error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Автодополнение для /my */
.my-reports-page .input-with-suggest {
    position: relative;
}

.my-reports-page .task-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.my-reports-page .task-suggest__item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.my-reports-page .task-suggest__item:last-child {
    border-bottom: none;
}

.my-reports-page .task-suggest__item:hover {
    background: #f8f9fa;
}

.my-reports-page .task-suggest__title {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.my-reports-page .task-suggest__meta {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
}

/* Адаптивность для /my */
@media (max-width: 1024px) {
    .my-reports-page .hero-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .my-reports-page .hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .my-reports-page .hero-sprint {
        grid-column: 1 / -1;
    }
    
    .my-reports-page .report-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .my-reports-page .report-card__actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row,
    .my-reports-page .tasks-table-edit .tasks-table__row {
        gap: 10px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .my-reports-page .reports-hero {
        padding: 28px 24px;
    }
    
    .my-reports-page .hero-text h1 {
        font-size: 1.8em;
    }
    
    .my-reports-page .hero-sidebar {
        grid-template-columns: 1fr;
    }
    
    .my-reports-page .hero-stat-value {
        font-size: 1.5em;
    }
    
    .my-reports-page .action-card {
        padding: 20px;
    }
    
    .my-reports-page .report-card {
        padding: 20px;
    }
    
    .my-reports-page .report-card__title {
        font-size: 1.1em;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row,
    .my-reports-page .tasks-table-edit .tasks-table__row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .my-reports-page .tasks-table-edit .tasks-table__row {
        grid-template-columns: 1fr;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span:first-child::before,
    .my-reports-page .tasks-table-edit .tasks-table__row span:first-child::before {
        content: 'ID Gitlab: ';
        font-weight: 600;
        color: #6c757d;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span:nth-child(2)::before,
    .my-reports-page .tasks-table-edit .tasks-table__row span:nth-child(2)::before {
        content: 'Название: ';
        font-weight: 600;
        color: #6c757d;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span:nth-child(3)::before,
    .my-reports-page .tasks-table-edit .tasks-table__row span:nth-child(3)::before {
        content: 'Статус: ';
        font-weight: 600;
        color: #6c757d;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span:nth-child(4)::before,
    .my-reports-page .tasks-table-edit .tasks-table__row span:nth-child(4)::before {
        content: 'Время: ';
        font-weight: 600;
        color: #6c757d;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span:nth-child(5)::before,
    .my-reports-page .tasks-table-edit .tasks-table__row span:nth-child(5)::before {
        content: 'Информация: ';
        font-weight: 600;
        color: #6c757d;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row span,
    .my-reports-page .tasks-table-edit .tasks-table__row span {
        white-space: normal;
        padding-left: 0;
    }
    
    .my-reports-page .tasks-table-view .tasks-table__row--head,
    .my-reports-page .tasks-table-edit .tasks-table__row--head {
        display: none;
    }
}

/* Стили для страниц user и report - красивый дизайн */
.user-page .dashboard-section,
.report-page .dashboard-section,
.task-page .dashboard-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid rgba(237, 28, 36, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-page .dashboard-section::before,
.report-page .dashboard-section::before,
.task-page .dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed1c24 0%, #00a5b4 50%, #ed1c24 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.user-page .dashboard-section:hover,
.report-page .dashboard-section:hover,
.task-page .dashboard-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-page .dashboard-section .section-header,
.report-page .dashboard-section .section-header,
.task-page .dashboard-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(237, 28, 36, 0.15);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.user-page .dashboard-section .section-header h1,
.report-page .dashboard-section .section-header h1,
.task-page .dashboard-section .section-header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 800;
    color: #2c3e50;
    background: linear-gradient(135deg, #ed1c24 0%, #00a5b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.user-page .dashboard-section .section-header h2,
.report-page .dashboard-section .section-header h2,
.task-page .dashboard-section .section-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-page .dashboard-section .section-header h2::before,
.report-page .dashboard-section .section-header h2::before,
.task-page .dashboard-section .section-header h2::before {
    content: '';
    width: 6px;
    height: 24px;
    background: linear-gradient(135deg, #ed1c24 0%, #00a5b4 100%);
    border-radius: 3px;
}

.user-page .dashboard-section .section-description,
.report-page .dashboard-section .section-description,
.task-page .dashboard-section .section-description {
    font-size: 1em;
    color: #6c757d;
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 500;
    max-width: 600px;
}

.user-page .dashboard-section .section-controls,
.report-page .dashboard-section .section-controls,
.task-page .dashboard-section .section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.user-page .dashboard-section .status-badge,
.report-page .dashboard-section .status-badge,
.task-page .dashboard-section .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-review {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-accepted {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-rework {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Дополнительные декоративные элементы */
.user-page .dashboard-section::after,
.report-page .dashboard-section::after,
.task-page .dashboard-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.08) 0%, rgba(0, 165, 180, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.user-page .dashboard-section .section-content,
.report-page .dashboard-section .section-content,
.task-page .dashboard-section .section-content {
    position: relative;
    z-index: 2;
}

/* Красивые метрики для страниц user/report/task */
.task-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(237, 28, 36, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ed1c24 0%, #00a5b4 50%, #ed1c24 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 0.85em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ed1c24 0%, #00a5b4 100%);
    flex-shrink: 0;
}

.info-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0;
}

.info-value .text-danger {
    color: #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-value .text-success {
    color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-value .text-warning {
    color: #ffc107;
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Специфические иконки для разных метрик */
.info-card[data-type="reports"] .info-label::before,
.info-card[data-type="developer"] .info-label::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-card[data-type="tasks"] .info-label::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-card[data-type="time"] .info-label::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.info-card[data-type="days"] .info-label::before,
.info-card[data-type="date"] .info-label::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.info-card[data-type="returns"] .info-label::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.info-card[data-type="sprint"] .info-label::before,
.info-card[data-type="status"] .info-label::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.info-card[data-type="created"] .info-label::before,
.info-card[data-type="updated"] .info-label::before {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Адаптивность для метрик */
@media (max-width: 768px) {
    .task-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .info-card {
        padding: 20px;
    }

    .info-label {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .info-value {
        font-size: 1.5em;
    }
}

/* Адаптивность для user и report страниц */
@media (max-width: 768px) {
    .user-page .dashboard-section,
    .report-page .dashboard-section,
    .task-page .dashboard-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .user-page .dashboard-section .section-header,
    .report-page .dashboard-section .section-header,
    .task-page .dashboard-section .section-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .user-page .dashboard-section .section-header h1,
    .report-page .dashboard-section .section-header h1,
    .task-page .dashboard-section .section-header h1 {
        font-size: 1.5em;
    }

    .user-page .dashboard-section .section-header h2,
    .report-page .dashboard-section .section-header h2,
    .task-page .dashboard-section .section-header h2 {
        font-size: 1.2em;
    }
}
