/* =========================================================
   Отдельная экосистема ежедневных задач
   Не изменяет существующие стили портала, работает только по tasks-* классам.
   ========================================================= */

.tasks-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483450;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
}

.tasks-modal,
.tasks-notify-box {
    width: 980px;
    max-width: 96vw;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    padding: 22px;
    color: #111827;
}

.tasks-notify-box {
    width: 520px;
}

.tasks-admin-modal {
    width: 1180px;
}

.tasks-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.tasks-modal-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.tasks-modal-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.tasks-close {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #dbe4ee !important;
    background: #f8fafc !important;
    color: #111827 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.tasks-toolbar {
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.tasks-toolbar label,
.tasks-grid label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.tasks-toolbar input,
.tasks-toolbar button,
.tasks-grid input,
.tasks-grid select,
.tasks-grid textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    min-height: 42px;
    padding: 9px 11px;
    font-size: 14px;
    background: #fff;
}

.tasks-counter {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 15px;
    font-weight: 900;
}

.tasks-create-box {
    border: 1px solid #e5e7eb;
    border-left: 5px solid #16a34a;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
    margin-bottom: 14px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px;
}

.tasks-full {
    grid-column: 1 / -1;
}

.tasks-grid textarea {
    min-height: 70px;
    resize: vertical;
}

.tasks-create-box > button,
.tasks-actions button,
.tasks-toolbar button {
    margin-top: 10px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    min-height: 42px;
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
}

.tasks-actions .tasks-light {
    background: #fff;
    color: #111827;
    border: 1px solid #dbe4ee;
}

.tasks-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: auto;
    max-height: 48vh;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tasks-table th {
    background: #f3f4f6;
    color: #111827;
    font-size: 12px;
    text-align: left;
    padding: 8px;
    font-weight: 900;
    border-bottom: 1px solid #e5e7eb;
}

.tasks-table td {
    padding: 8px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    font-size: 13px;
}

.tasks-table th:nth-child(1),
.tasks-table td:nth-child(1) {
    width: 72px;
    text-align: center;
}

.tasks-table th:nth-child(3),
.tasks-table td:nth-child(3),
.tasks-table th:nth-child(4),
.tasks-table td:nth-child(4) {
    width: 130px;
}

.tasks-table th:nth-child(5),
.tasks-table td:nth-child(5) {
    width: 250px;
}

.task-details {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
    white-space: pre-wrap;
}

.task-date-mini {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.task-result-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    padding: 7px 8px;
    font-size: 12px;
    resize: vertical;
}

.task-done-row td {
    background: #f0fdf4;
    color: #64748b;
}

.task-done-row strong {
    text-decoration: line-through;
    color: #64748b;
}

.task-assigned-item {
    border: 1px solid #dbe4ee;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fffbeb;
}

.task-assigned-item strong,
.task-assigned-item span {
    display: block;
}

.task-assigned-item span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.tasks-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.daily-tasks-floating-btn {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 2147481200;
    width: auto;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 11px 16px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.daily-tasks-nav-btn,
.daily-tasks-admin-btn {
    border-color: #16a34a !important;
    color: #166534 !important;
    background: #f0fdf4 !important;
}

@media (max-width: 950px) {
    .tasks-overlay {
        padding: 8px;
    }

    .tasks-modal,
    .tasks-notify-box,
    .tasks-admin-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 16px);
        padding: 14px;
        border-radius: 14px;
    }

    .tasks-toolbar,
    .tasks-grid,
    .tasks-actions {
        grid-template-columns: 1fr;
    }

    .tasks-counter {
        justify-self: stretch;
        justify-content: center;
    }

    .tasks-table,
    .tasks-table thead,
    .tasks-table tbody,
    .tasks-table tr,
    .tasks-table th,
    .tasks-table td {
        display: block;
        width: 100% !important;
    }

    .tasks-table thead {
        display: none;
    }

    .tasks-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin: 8px;
        padding: 8px;
        background: #fff;
    }

    .tasks-table td {
        border: none;
        padding: 6px 0;
    }

    .tasks-table td::before {
        content: attr(data-label);
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        margin-bottom: 3px;
    }
}


/* =========================================================
   Задачи: шире окно и скрытие лишних колонок при задачах самому себе
   ========================================================= */

.tasks-modal {
    width: 1180px !important;
    max-width: 98vw !important;
}

.tasks-table-wrap {
    overflow-x: hidden !important;
}

.tasks-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
}

/* Более удобные ширины колонок в основном окне задач */
#dailyTasksTable th:nth-child(1),
#dailyTasksTable td:nth-child(1) {
    width: 66px !important;
}

#dailyTasksTable th:nth-child(2),
#dailyTasksTable td:nth-child(2) {
    width: auto !important;
}

#dailyTasksTable th:nth-child(3),
#dailyTasksTable td:nth-child(3),
#dailyTasksTable th:nth-child(4),
#dailyTasksTable td:nth-child(4) {
    width: 120px !important;
}

#dailyTasksTable th:nth-child(5),
#dailyTasksTable td:nth-child(5) {
    width: 260px !important;
}

/* Если менеджер ставит задачи сам себе, колонки "Кому" и "Поставил" скрываются */
#dailyTasksTable.tasks-hide-people-cols .tasks-col-assigned,
#dailyTasksTable.tasks-hide-people-cols .tasks-col-created {
    display: none !important;
}

#dailyTasksTable.tasks-hide-people-cols th:nth-child(1),
#dailyTasksTable.tasks-hide-people-cols td:nth-child(1) {
    width: 66px !important;
}

#dailyTasksTable.tasks-hide-people-cols th:nth-child(5),
#dailyTasksTable.tasks-hide-people-cols td:nth-child(5) {
    width: 330px !important;
}

/* Текст в ячейках не должен создавать горизонтальную прокрутку */
.tasks-table td,
.tasks-table th,
.task-details,
.task-result-input {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 950px) {
    .tasks-modal {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tasks-table-wrap {
        overflow-x: hidden !important;
    }

    #dailyTasksTable.tasks-hide-people-cols .tasks-col-assigned,
    #dailyTasksTable.tasks-hide-people-cols .tasks-col-created {
        display: none !important;
    }
}


/* =========================================================
   Задачи: шапка, дедлайн, выполнено, задачи самому себе
   ========================================================= */

.tasks-toolbar-main {
    grid-template-columns: 280px 230px 260px 1fr !important;
    align-items: end !important;
}

.tasks-toolbar-main #tasksDate {
    background: #f8fafc !important;
    color: #111827 !important;
    cursor: default !important;
}

.tasks-create-box {
    margin-top: 8px !important;
}

.tasks-grid {
    grid-template-columns: 1fr !important;
}

.task-date-mini {
    display: none !important;
}

.task-deadline-mini {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 900;
}

#dailyTasksTable th:nth-child(1),
#dailyTasksTable td:nth-child(1) {
    text-align: center !important;
    vertical-align: middle !important;
}

#dailyTasksTable td:nth-child(1) input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 auto !important;
    accent-color: #16a34a;
}

#dailyTasksTable tr.task-done-row td {
    background: #dcfce7 !important;
    color: #166534 !important;
}

#dailyTasksTable tr.task-done-row strong {
    color: #166534 !important;
    text-decoration: none !important;
}

#dailyTasksTable tr.task-done-row .task-details,
#dailyTasksTable tr.task-done-row .task-deadline-mini {
    opacity: .8 !important;
}

/* Если задачи менеджер ставил сам себе — в самих задачах остается только задача и результат */
#dailyTasksTable.tasks-hide-people-cols th:nth-child(1),
#dailyTasksTable.tasks-hide-people-cols td:nth-child(1) {
    width: 70px !important;
}

#dailyTasksTable.tasks-hide-people-cols th:nth-child(2),
#dailyTasksTable.tasks-hide-people-cols td:nth-child(2) {
    width: auto !important;
}

#dailyTasksTable.tasks-hide-people-cols th:nth-child(5),
#dailyTasksTable.tasks-hide-people-cols td:nth-child(5) {
    width: 320px !important;
}

@media (max-width: 950px) {
    .tasks-toolbar-main {
        grid-template-columns: 1fr !important;
    }

    #dailyTasksTable td:nth-child(1) {
        text-align: left !important;
    }

    #dailyTasksTable td:nth-child(1) input[type="checkbox"] {
        margin: 0 !important;
    }
}


/* =========================================================
   Задачи: всегда себе + важность задач
   ========================================================= */

.tasks-toolbar-main {
    grid-template-columns: 260px 220px 260px 1fr !important;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.task-priority-normal {
    background: #f1f5f9;
    color: #475569;
}

.task-priority-warm {
    background: #ffedd5;
    color: #9a3412;
}

.task-priority-hot {
    background: #fee2e2;
    color: #991b1b;
}

#dailyTasksTable tr.task-done-row .task-priority-badge {
    opacity: .65;
}

@media (max-width: 950px) {
    .tasks-toolbar-main {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   Задачи: дедлайн, просрочка, редактирование и перенос
   ========================================================= */

.tasks-toolbar-main {
    grid-template-columns: 180px 170px 210px 240px 1fr !important;
    align-items: end !important;
}

.tasks-toolbar-main #tasksDate {
    background: #f8fafc !important;
    color: #111827 !important;
    cursor: default !important;
}

.tasks-table {
    table-layout: fixed !important;
    min-width: 0 !important;
}

#dailyTasksTable th:nth-child(1),
#dailyTasksTable td:nth-child(1) {
    width: 72px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#dailyTasksTable th:nth-child(2),
#dailyTasksTable td:nth-child(2) {
    width: auto !important;
}

#dailyTasksTable th:nth-child(3),
#dailyTasksTable td:nth-child(3) {
    width: 170px !important;
}

#dailyTasksTable th:nth-child(4),
#dailyTasksTable td:nth-child(4) {
    width: 120px !important;
    text-align: center !important;
}

#dailyTasksTable th:nth-child(5),
#dailyTasksTable td:nth-child(5) {
    width: 72px !important;
    text-align: center !important;
}

#dailyTasksTable td:nth-child(1) input[type="checkbox"] {
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    margin: 0 auto !important;
    accent-color: #16a34a;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.task-priority-normal {
    background: #f1f5f9;
    color: #475569;
}

.task-priority-warm {
    background: #ffedd5;
    color: #9a3412;
}

.task-priority-hot {
    background: #fee2e2;
    color: #991b1b;
}

.task-meta-line {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.task-deadline-text {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.task-overdue-badge {
    display: inline-flex;
    justify-content: center;
    min-width: 82px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.task-overdue-badge.is-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.task-edit-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #dbe4ee !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

#dailyTasksTable tr.task-done-row td {
    background: #dcfce7 !important;
    color: #166534 !important;
}

#dailyTasksTable tr.task-done-row strong {
    color: #166534 !important;
    text-decoration: none !important;
}

#dailyTasksTable tr.task-overdue-row td {
    background: #fff7ed !important;
}

#dailyTasksTable tr.task-transferred-row td {
    background: #f8fafc !important;
    color: #94a3b8 !important;
}

.task-transfer-note {
    margin-top: 7px;
    padding: 6px 8px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.tasks-carry-modal {
    width: 920px !important;
}

.tasks-carry-list {
    display: grid;
    gap: 10px;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 4px;
}

.tasks-carry-item {
    border: 1px solid #e5e7eb;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 10px;
    background: #fffbeb;
}

.tasks-carry-item strong,
.tasks-carry-item span {
    display: block;
}

.tasks-carry-item span {
    margin-top: 4px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.tasks-carry-item textarea {
    width: 100%;
    min-height: 70px;
    margin-top: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    padding: 9px 10px;
    resize: vertical;
}

.tasks-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

.task-assigned-overdue {
    border-left-color: #dc2626 !important;
    background: #fef2f2 !important;
}

#taskOverduePopup {
    z-index: 2147483600 !important;
}

#taskEditModal {
    z-index: 2147483550 !important;
}

#taskCarryOverModal {
    z-index: 2147483560 !important;
}

@media (max-width: 950px) {
    .tasks-toolbar-main {
        grid-template-columns: 1fr !important;
    }

    #dailyTasksTable th,
    #dailyTasksTable td {
        width: auto !important;
        text-align: left !important;
    }

    #dailyTasksTable td:nth-child(1) input[type="checkbox"] {
        margin: 0 !important;
    }
}


/* =========================================================
   Невыполненные задачи перед отчетом: список и обязательные комментарии
   ========================================================= */

.tasks-carry-modal {
    width: 1040px !important;
    max-width: 96vw !important;
}

.tasks-carry-warning {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.tasks-carry-warning strong {
    font-size: 15px;
    font-weight: 900;
}

.tasks-carry-warning span {
    font-size: 13px;
    line-height: 1.35;
}

.tasks-carry-item {
    border-left-width: 6px !important;
    background: #fffdf5 !important;
}

.tasks-carry-task-head {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
}

.tasks-carry-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.tasks-carry-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tasks-carry-title-row strong {
    font-size: 15px;
    line-height: 1.25;
}

.tasks-carry-details {
    margin-top: 6px;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tasks-carry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tasks-carry-meta span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.tasks-carry-meta .tasks-carry-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.tasks-carry-comment-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.tasks-carry-comment-label b {
    color: #dc2626;
}

.tasks-carry-item textarea {
    min-height: 86px !important;
    background: #ffffff !important;
}

.tasks-carry-item textarea.tasks-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

@media (max-width: 950px) {
    .tasks-carry-modal {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tasks-carry-task-head {
        grid-template-columns: 1fr !important;
    }

    .tasks-carry-number {
        width: auto;
        min-width: 28px;
        justify-self: start;
        padding: 0 10px;
    }
}


/* =========================================================
   Задачи: уведомление сотрудника о назначенной задаче
   ========================================================= */

#taskAssignedPopup {
    z-index: 2147483650 !important;
}

#taskAssignedPopup .tasks-notify-box {
    border-top: 5px solid #f59e0b !important;
}

#taskAssignedPopup .task-assigned-item {
    background: #fffbeb !important;
}

#taskAssignedPopup .task-title-row {
    margin-bottom: 6px;
}


/* =========================================================
   Задачи: оранжевое уведомление в левом углу
   ========================================================= */

.task-assigned-toast {
    position: fixed;
    left: 18px;
    top: 18px;
    width: 380px;
    max-width: calc(100vw - 36px);
    z-index: 2147483670;
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-left-width: 8px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    padding: 12px;
    color: #111827;
}

.task-assigned-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.task-assigned-toast-head strong {
    color: #9a3412;
    font-size: 16px;
    font-weight: 900;
}

.task-assigned-toast-head button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #fed7aa !important;
    background: #ffffff !important;
    color: #9a3412 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.task-assigned-toast-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.task-assigned-toast .task-assigned-item {
    margin: 0 !important;
    background: #ffffff !important;
    border-left-color: #f59e0b !important;
}

.task-assigned-toast-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.task-assigned-toast-actions button {
    min-height: 36px;
    border-radius: 10px;
    border: none;
    background: #f59e0b;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.task-assigned-toast-actions .tasks-light {
    background: #ffffff;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

@media (max-width: 950px) {
    .task-assigned-toast {
        left: 10px;
        top: 10px;
        width: calc(100vw - 20px);
    }
}


/* =========================================================
   Задачи: выполненные в конце списка + надежное уведомление
   ========================================================= */

#dailyTasksTable tr.task-done-row {
    opacity: .78;
}

#dailyTasksTable tr.task-done-row td {
    background: #dcfce7 !important;
}

.task-assigned-toast {
    animation: taskToastPulse .35s ease-out;
}

@keyframes taskToastPulse {
    from {
        transform: translateX(-12px);
        opacity: .2;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* =========================================================
   Задачи: уведомления назначенным задачам для всех ролей
   ========================================================= */

.task-assigned-toast {
    position: fixed !important;
    left: 18px !important;
    top: 18px !important;
    z-index: 2147483647 !important;
    display: block;
}

.task-assigned-toast[style*="display:none"],
.task-assigned-toast[style*="display: none"] {
    display: none !important;
}

#taskAssignedPopup {
    z-index: 2147483646 !important;
}


/* =========================================================
   Админ: редактирование и удаление всех задач
   ========================================================= */

#dailyTasksTable th:nth-child(6),
#dailyTasksTable td:nth-child(6) {
    width: 72px !important;
    text-align: center !important;
}

.task-delete-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #fecaca !important;
    background: #fff !important;
    color: #dc2626 !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

.task-delete-btn:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
}

body:not(.admin-mode) #dailyTasksTable .tasks-admin-delete-col {
    display: none !important;
}

body.admin-mode #tasksDate {
    background: #ffffff !important;
    cursor: pointer !important;
}

body.admin-mode .daily-tasks-admin-btn {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    color: #92400e !important;
}
