/* DataQ v1.7 client walkthrough feedback */

/* Paused is an operational status, visually distinct from both active work and blockers. */
.m11-status-paused,
.status-paused {
    background: #f2edff;
    color: #5b3fa3;
    border-color: #d9cdf7;
}

.m11-stacked-chart .is-paused {
    background: #7a66ad;
    color: #fff;
}

.m11-chart-legend i.is-paused {
    background: #7a66ad;
}

.m11-status-pie-segment.is-paused {
    stroke: #7a66ad;
}

.m11-status-pie-legend .is-paused i {
    background: #7a66ad;
}

.m11-employee-status-stack .is-paused {
    background: #7a66ad;
}

.m11-employee-status-legend i.is-paused {
    background: #7a66ad;
}

.m17-kpi-paused {
    border-top-color: #7a66ad;
    background: #fcfaff;
}

.m17-kpi-paused > span,
.m17-kpi-paused > strong {
    color: #5b3fa3;
}

#activity-overview .m11-kpi-grid[aria-label="Current Employee responsibility"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

#attention-history .m11-attention-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Admin Month board: the Attention column makes this a ten-column table.
   Override the older M11 positional widths so every later column keeps its
   intended meaning instead of inheriting the pre-Attention width. */
.m17-admin-month-board-table {
    min-width: 1735px;
}

#board .m17-admin-month-board-table th:nth-child(1) { width: 390px; }
#board .m17-admin-month-board-table th:nth-child(2) { width: 190px; }
#board .m17-admin-month-board-table th:nth-child(3) { width: 145px; }
#board .m17-admin-month-board-table th:nth-child(4) { width: 138px; }
#board .m17-admin-month-board-table th:nth-child(5) { width: 145px; }
#board .m17-admin-month-board-table th:nth-child(6) { width: 120px; }
#board .m17-admin-month-board-table th:nth-child(7) { width: 125px; }
#board .m17-admin-month-board-table th:nth-child(8) { width: 170px; }
#board .m17-admin-month-board-table th:nth-child(9) { width: 145px; }
#board .m17-admin-month-board-table th:nth-child(10) { width: 165px; }

.m17-admin-col-attention {
    width: 138px;
}

.m17-attention-cell {
    vertical-align: middle;
}

.m17-attention-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.m17-attention-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, opacity .12s ease;
}

.m17-attention-badge.is-resolving {
    opacity: .55;
    pointer-events: none;
}

.m17-attention-badge.is-support {
    background: #edf8f6;
    border-color: #b8ded7;
    color: #176d61;
}

.m17-attention-badge.is-support:hover,
.m17-attention-badge.is-support:focus-visible {
    background: #dff3ef;
    border-color: #76bcb0;
}

.m17-attention-badge.is-escalation {
    background: #fff2e3;
    border-color: #f1c48d;
    color: #a45100;
}

.m17-attention-badge.is-escalation:hover,
.m17-attention-badge.is-escalation:focus-visible {
    background: #ffe8cc;
    border-color: #df9b49;
}

.m17-attention-clear {
    color: #a4a8ad;
    font-weight: 700;
}

/* Employee controls intentionally use only workflow language. No hidden timing terminology. */
.m17-attention-open-actions {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.m17-attention-open-actions form {
    display: inline-flex;
    width: auto;
    margin: 0;
}

.m17-withdraw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #d8dce2;
    border-radius: 999px;
    background: #fff;
    color: #59636d;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.m17-withdraw-button:hover,
.m17-withdraw-button:focus-visible {
    border-color: #aab2bb;
    background: #f5f7f8;
    color: #313940;
}

/* Admin attention resolution uses a product-styled modal rather than the browser's native confirm. */
.m17-attention-dialog {
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #162033;
    box-shadow: 0 24px 70px rgba(13, 28, 41, .24);
}

.m17-attention-dialog::backdrop {
    background: rgba(15, 29, 40, .48);
    backdrop-filter: blur(2px);
}

.m17-attention-dialog-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 24px;
    border: 1px solid #e4e8ec;
    border-radius: 18px;
    background: #fff;
}

.m17-attention-dialog-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e8f6f3;
    color: #176d61;
    font-size: 21px;
    font-weight: 900;
}

.m17-attention-dialog-copy {
    min-width: 0;
}

.m17-attention-dialog-copy .eyebrow {
    margin: 0 0 4px;
}

.m17-attention-dialog-copy h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.m17-attention-dialog-task {
    margin: 12px 0 4px;
    overflow-wrap: anywhere;
    color: #172234;
    font-weight: 800;
}

.m17-attention-dialog-message,
.m17-attention-dialog-note,
.m17-attention-dialog-error {
    margin: 6px 0 0;
    line-height: 1.5;
}

.m17-attention-dialog-message {
    color: #465465;
}

.m17-attention-dialog-note {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7f8;
    color: #66717d;
    font-size: 13px;
}

.m17-attention-request-detail {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    background: #fbfcfc;
    color: #465465;
    line-height: 1.45;
}

.m17-attention-request-detail strong,
.m17-attention-resolution-label {
    color: #263547;
    font-size: 12px;
    font-weight: 800;
}

.m17-attention-resolution-label {
    display: block;
    margin-top: 12px;
}

.m17-attention-dialog textarea[data-attention-resolution-notes] {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    resize: vertical;
    min-height: 92px;
}

.m17-attention-dialog-error {
    padding: 9px 11px;
    border: 1px solid #f0b9b6;
    border-radius: 9px;
    background: #fff4f3;
    color: #a13c36;
    font-size: 13px;
    font-weight: 700;
}

.m17-attention-dialog-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.m17-attention-dialog-actions button {
    min-width: 118px;
}

.m17-attention-dialog-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.m17-paused-work-note {
    color: #6a5a91;
}

.m17-paused-kpi strong {
    color: #5b3fa3;
}

/* Reports use the same paused identity so persisted snapshots are not visually merged into active work. */
.report-status-paused {
    background: #7a5cb5;
}

.report-status-legend i.is-paused {
    background: #7a5cb5;
}

@media (max-width: 1500px) {
    #activity-overview .m11-kpi-grid[aria-label="Current Employee responsibility"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .m17-attention-badges {
        min-width: 112px;
    }

    #attention-history .m11-attention-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #activity-overview .m11-kpi-grid[aria-label="Current Employee responsibility"],
    #attention-history .m11-attention-metrics {
        grid-template-columns: 1fr;
    }

    .m17-attention-dialog-card {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 20px;
    }

    .m17-attention-dialog-icon {
        width: 40px;
        height: 40px;
    }

    .m17-attention-dialog-actions {
        flex-direction: column-reverse;
    }

    .m17-attention-dialog-actions button {
        width: 100%;
    }
}
