.taches-page {
    width: 100%;
}

.taches-page .taches-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.taches-page .section-kicker {
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.taches-page .taches-heading h1,
.taches-page .task-detail-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.taches-page .taches-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.taches-page .mine-toggle,
.taches-page .reset-filters,
.taches-page .tree-toggle {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.taches-page .mine-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 750;
}

.taches-page .mine-toggle.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.taches-page .task-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
}

.taches-page .task-filter-combos {
    display: grid;
    grid-template-columns: 220px 250px 180px auto;
    align-items: end;
    justify-self: end;
    gap: 12px;
}

.taches-page .task-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.taches-page .task-filter-field label {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 750;
}

.taches-page .task-search-input,
.taches-page .task-select {
    width: 100%;
    min-height: 40px;
    padding: 0 34px 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.84rem;
}

.taches-page .task-search-input {
    padding: 0 11px;
}

.taches-page .task-search-input::placeholder {
    color: #94a3b8;
}

.taches-page .task-search-input:focus,
.taches-page .task-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.taches-page .reset-filters {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
}

.taches-page .task-created-hidden-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
}

.taches-page .task-created-hidden-message {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 0.86rem;
}

.taches-page .task-created-hidden-message strong {
    font-weight: 800;
}

.taches-page .tasks-section,
.taches-page .task-detail-card {
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.taches-page .tasks-section {
    overflow: hidden;
}

.taches-page .tasks-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf1f6;
}

.taches-page .task-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.taches-page .tasks-loading,
.taches-page .tasks-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taches-page .tasks-empty {
    flex-direction: column;
    gap: 6px;
    padding: 40px 20px;
    text-align: center;
}

.taches-page .tasks-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
}

.taches-page .tasks-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.taches-page .tasks-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.taches-page .tasks-table th,
.taches-page .tasks-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
    vertical-align: middle;
}

.taches-page .tasks-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.taches-page .tasks-table tbody tr:last-child td {
    border-bottom: 0;
}

.taches-page .task-root-row:hover {
    background: #fbfdff;
}

.taches-page .task-child-row {
    background: #f4f8fd;
}

.taches-page .task-child-row:hover {
    background: #edf5ff;
}

.taches-page .tree-column {
    position: relative;
    width: 42px;
    padding-right: 0 !important;
    text-align: center !important;
}

.taches-page .tree-search-context,
.taches-page .tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
}

.taches-page .tree-search-context {
    color: #2563eb;
}

.taches-page .tree-toggle:hover {
    background: #eef2f7;
    color: #1d4ed8;
}

.taches-page .tree-branch {
    position: absolute;
    inset: 0;
    display: block;
}

.taches-page .tree-branch::before,
.taches-page .tree-branch::after {
    position: absolute;
    content: "";
    background: #93a9c2;
}

.taches-page .tree-branch::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
}

.taches-page .tree-branch::after {
    top: 50%;
    right: 0;
    left: 50%;
    height: 2px;
}

.taches-page .tree-branch-last::before {
    bottom: 50%;
}

.taches-page .task-main-cell {
    min-width: 245px;
}

.taches-page .child-task-cell {
    padding-left: 22px !important;
}

.taches-page .child-task-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.taches-page .child-task-heading .task-reference {
    margin-bottom: 0;
}

.taches-page .child-task-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.taches-page .task-reference {
    margin-bottom: 2px;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
}

.taches-page .task-title-link,
.taches-page .back-link,
.taches-page .task-relation-banner a {
    color: #0f172a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 760;
}

.taches-page .task-title-link:hover,
.taches-page .back-link:hover,
.taches-page .task-relation-banner a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.taches-page .task-origin,
.taches-page .task-project-cell span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.73rem;
}

.taches-page .child-project-cell {
    min-width: 170px;
}

.taches-page .task-project-cell .child-parent-reference {
    margin-top: 5px;
    color: #4f6f95;
    font-weight: 700;
}

.taches-page .child-parent-reference a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.taches-page .child-parent-reference a:hover {
    text-decoration: underline;
}

.taches-page .task-project-cell strong {
    display: block;
    color: #334155;
    font-size: 0.8rem;
}

.taches-page .task-responsible,
.taches-page .task-dates,
.taches-page .task-children-count {
    color: #475569;
    font-size: 0.78rem;
}

.taches-page .task-attachments-column {
    width: 62px;
    min-width: 62px;
    text-align: center !important;
}

.taches-page .tasks-table th.task-attachments-column {
    color: #94a3b8;
}

.taches-page .task-export-column {
    width: 52px;
    min-width: 52px;
    padding-left: 6px !important;
    padding-right: 6px !important;
    text-align: center !important;
}

.taches-page .tasks-table th.task-export-column {
    color: #94a3b8;
}

.taches-page .task-attachment-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
}

.taches-page .task-attachment-info .mud-icon-root {
    font-size: 1rem;
}

.taches-page .task-status,
.taches-page .priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.taches-page .status-todo,
.task-status-menu-popover .status-todo {
    --task-status-color: var(--task-status-todo-color);
    --task-status-background: var(--task-status-todo-background);
    --task-status-border: var(--task-status-todo-border);
    background: var(--task-status-background);
    color: var(--task-status-color);
}

.taches-page .status-doing,
.task-status-menu-popover .status-doing {
    --task-status-color: var(--task-status-doing-color);
    --task-status-background: var(--task-status-doing-background);
    --task-status-border: var(--task-status-doing-border);
    background: var(--task-status-background);
    color: var(--task-status-color);
}

.taches-page .status-done,
.task-status-menu-popover .status-done {
    --task-status-color: var(--task-status-done-color);
    --task-status-background: var(--task-status-done-background);
    --task-status-border: var(--task-status-done-border);
    background: var(--task-status-background);
    color: var(--task-status-color);
}

.taches-page .status-cancelled,
.task-status-menu-popover .status-cancelled {
    --task-status-color: var(--task-status-cancelled-color);
    --task-status-background: var(--task-status-cancelled-background);
    --task-status-border: var(--task-status-cancelled-border);
    background: var(--task-status-background);
    color: var(--task-status-color);
}

.taches-page .priority-normal {
    background: #f8fafc;
    color: #475569;
}

.taches-page .priority-high {
    background: #fff7ed;
    color: #c2410c;
}

.taches-page .priority-urgent {
    background: #fef2f2;
    color: #b91c1c;
}

.taches-page .back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 0.86rem;
}

.taches-page .task-detail-heading {
    margin-bottom: 18px;
}

.taches-page .task-detail-heading h1 {
    margin-top: 5px;
}

.taches-page .task-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.taches-page .task-relation-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: #475569;
    font-size: 0.82rem;
}

.taches-page .task-relation-banner a {
    color: #1d4ed8;
    font-size: 0.82rem;
}

.taches-page .task-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(270px, 0.75fr);
    gap: 20px;
}

.taches-page .task-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.taches-page .task-detail-card {
    padding: 22px;
}

.taches-page .task-detail-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 1rem;
}

.taches-page .task-detail-side {
    position: sticky;
    top: 140px;
    align-self: start;
}

.taches-page .task-detail-side-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.taches-page .task-detail-side-heading h2 {
    margin: 0;
}

.taches-page .task-status-action {
    display: inline-flex;
    min-width: 118px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px 7px 13px;
    border: 1px solid var(--task-status-color);
    border-radius: 999px;
    background: var(--task-status-color);
    color: #fff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 13px color-mix(in srgb, var(--task-status-color) 22%, transparent);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.taches-page .task-status-action:hover:not(:disabled) {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px color-mix(in srgb, var(--task-status-color) 28%, transparent);
}

.taches-page .task-status-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--task-status-color) 22%, transparent);
    outline-offset: 2px;
}

.taches-page .task-status-action:disabled {
    cursor: wait;
    opacity: 0.72;
}

.taches-page .task-status-readonly {
    border: 1px solid var(--task-status-border);
}

.task-status-menu-popover .mud-list {
    min-width: 185px;
    padding: 7px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.task-status-menu-popover .task-status-option {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 720;
}

.task-status-menu-popover .task-status-option:hover,
.task-status-menu-popover .task-status-option:focus-visible {
    background: #f8fafc;
    color: #0f172a;
}

.task-status-menu-popover .task-status-option-cancelled {
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px solid #edf1f6;
    border-radius: 0 0 8px 8px;
}

.task-status-menu-popover .task-status-option-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--task-status-color);
    box-shadow: 0 0 0 1px var(--task-status-border);
}

.taches-page .task-description {
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.taches-page .task-detail-list {
    margin: 0;
}

.taches-page .task-detail-list > div {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f6;
}

.taches-page .task-detail-list > div:first-child {
    padding-top: 0;
}

.taches-page .task-detail-list > div:last-child {
    border-bottom: 0;
}

.taches-page .task-detail-list dt {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.taches-page .task-detail-list dd {
    margin: 0;
    color: #1e293b;
    font-size: 0.84rem;
}

.taches-page .subtasks-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.taches-page .subtasks-heading h2 {
    margin-bottom: 3px;
}

.taches-page .subtasks-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
}

.taches-page .subtasks-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.taches-page .subtasks-empty {
    padding: 22px 0 4px;
    color: #64748b;
    font-size: 0.84rem;
    text-align: center;
}

.taches-page .subtasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.taches-page .subtask-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 11px;
    padding: 14px 15px;
    border: 1px solid var(--task-status-border);
    border-left-width: 4px;
    border-radius: 11px;
    background: var(--task-status-background);
    color: #0f172a;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.taches-page .subtask-card:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.taches-page .subtask-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.taches-page .subtask-reference {
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.055em;
}

.taches-page .subtask-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 760;
    line-height: 1.35;
}

.taches-page .subtask-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 9px;
    margin-top: auto;
}

.taches-page .subtask-responsible,
.taches-page .subtask-deadline {
    color: #64748b;
    font-size: 0.72rem;
}

.taches-page .subtask-responsible {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taches-page .subtask-deadline {
    margin-left: auto;
    white-space: nowrap;
}

.taches-page .edit-rights-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf1f6;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (max-width: 1180px) {
    .taches-page .task-filters {
        grid-template-columns: 1fr;
    }

    .taches-page .task-filter-combos {
        grid-template-columns: minmax(190px, 0.9fr) minmax(210px, 1fr) minmax(160px, 0.7fr) auto;
        justify-self: stretch;
    }
}

@media (max-width: 980px) {
    .taches-page .task-detail-layout {
        grid-template-columns: 1fr;
    }

    .taches-page .task-detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .taches-page .task-filter-combos {
        grid-template-columns: 1fr;
    }

    .taches-page .subtasks-heading {
        flex-direction: column;
    }

    .taches-page .subtasks-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .taches-page .subtasks-grid {
        grid-template-columns: 1fr;
    }

    .taches-page .taches-heading {
        flex-direction: column;
    }

}

.taches-page .task-create-card {
    padding: 22px;
    border: 1px solid #e4eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.taches-page .task-create-card-heading {
    margin-bottom: 22px;
}

.taches-page .task-create-documents-card {
    margin-top: 18px;
}

.taches-page .task-create-card-heading h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.05rem;
}

.taches-page .task-create-card-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.taches-page .task-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.taches-page .task-create-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.taches-page .task-create-field-wide {
    grid-column: 1 / -1;
}

.taches-page .task-create-field label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.taches-page .task-create-select,
.taches-page .task-create-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.taches-page .task-create-select {
    padding-right: 38px;
}

.taches-page .task-create-select:focus,
.taches-page .task-create-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.taches-page .task-create-select:disabled,
.taches-page .task-create-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.taches-page .task-create-help {
    color: #64748b;
    font-size: 0.76rem;
}

.taches-page .task-create-title {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .taches-page .task-create-grid {
        grid-template-columns: 1fr;
    }

    .taches-page .task-create-field-wide {
        grid-column: auto;
    }

    .taches-page .mine-toggle {
        width: auto;
    }
}

.taches-page .task-edit-grid {
    margin-top: 18px;
    margin-bottom: 0;
}

.taches-page .task-info-project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.taches-page .task-info-project-edit {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.taches-page .task-info-project-edit:hover {
    text-decoration: underline;
}

.taches-page .task-info-project-edit:disabled {
    color: #94a3b8;
    cursor: default;
    text-decoration: none;
}

.taches-page .task-project-dialog-backdrop {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.taches-page .task-project-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.taches-page .task-project-dialog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #edf1f6;
}

.taches-page .task-project-dialog-heading .section-kicker {
    display: block;
}

.taches-page .task-project-dialog-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
}

.taches-page .task-project-dialog-heading p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.taches-page .task-project-dialog-content {
    padding: 22px 24px;
}

.taches-page .task-project-dialog-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.8rem;
    line-height: 1.45;
}

.taches-page .task-project-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #edf1f6;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .taches-page .task-project-dialog-backdrop {
        align-items: flex-end;
        padding: 12px;
    }

    .taches-page .task-project-dialog {
        max-height: calc(100vh - 24px);
    }

    .taches-page .task-project-dialog-heading,
    .taches-page .task-project-dialog-content {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 720px) {
    .taches-page .task-created-hidden-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}

.taches-page .task-followup-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.taches-page .task-followup-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.taches-page .task-followup-heading h2 {
    margin-bottom: 3px;
}

.taches-page .task-followup-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
}

.taches-page .task-followup-empty {
    padding: 12px 0 4px;
    color: #64748b;
    font-size: 0.84rem;
}

.taches-page .task-followup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taches-page .task-followup-message {
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.taches-page .task-followup-message-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.taches-page .task-followup-message-heading > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.taches-page .task-followup-message-heading strong {
    color: #0f172a;
    font-size: 0.81rem;
}

.taches-page .task-followup-message-heading span {
    color: #64748b;
    font-size: 0.73rem;
}

.taches-page .task-followup-notified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1 !important;
    font-weight: 700;
}

.taches-page .task-followup-notified .mud-icon-root {
    font-size: 0.9rem;
}

.taches-page .task-followup-text {
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.taches-page .task-followup-task-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.taches-page .task-followup-task-link:hover {
    text-decoration: underline;
}

.taches-page .task-followup-composer {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.taches-page .task-followup-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
}

.taches-page .task-followup-notification-option {
    min-width: 0;
}

@media (max-width: 720px) {
    .taches-page .task-followup-composer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .taches-page .task-followup-composer-actions .mud-button-root {
        width: 100%;
    }
}

/* Étiquettes de tâches */
.taches-page .task-label-editor,
.taches-page .task-label-filter {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.taches-page .task-label-filter .task-tag-editor {
    margin-top: 0;
}

.taches-page .task-label-heading,
.taches-page .task-label-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.taches-page .task-label-heading label,
.taches-page .task-label-filter-heading > span:first-child {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.taches-page .task-label-required,
.taches-page .task-label-filter-mode {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.taches-page .task-label-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.taches-page .task-label-input-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.taches-page .task-label-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.taches-page .task-label-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.taches-page .task-label-suggestion {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 8px 10px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.taches-page .task-label-suggestion:hover,
.taches-page .task-label-suggestion:focus-visible {
    background: #eff6ff;
    color: #1d4ed8;
    outline: none;
}

.taches-page .task-label-add {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 14px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.taches-page .task-label-add:disabled {
    cursor: default;
    opacity: .5;
}

.taches-page .task-label-selected,
.taches-page .task-label-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.taches-page .task-label-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f8fafc;
    color: #334155;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
}

.taches-page button.task-label-chip {
    cursor: pointer;
}

.taches-page button.task-label-chip:disabled {
    cursor: default;
    opacity: .45;
}

.taches-page .task-label-chip.selected {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.taches-page .task-label-recent-block {
    margin-top: 12px;
}

.taches-page .task-label-recent-title {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: .74rem;
    font-weight: 700;
}

.taches-page .task-label-error,
.taches-page .task-label-required-message {
    margin-top: 7px;
    font-size: .76rem;
    font-weight: 700;
}

.taches-page .task-label-error,
.taches-page .task-label-required-message {
    color: #b91c1c;
}

.taches-page .task-label-filter {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 14px;
}

.taches-page .task-label-filter-input-row {
    max-width: 720px;
}

@media (max-width: 720px) {
    .taches-page .task-label-input-row {
        flex-direction: column;
    }

    .taches-page .task-label-add {
        min-height: 38px;
    }
}

.taches-page .task-description-resizable textarea {
    resize: vertical !important;
}
