﻿/* Shared worklist styles (TechViewNext; later RadViewNext and reports) */

.wl-page {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 84px);
    box-sizing: border-box;
    background: #f4f6f4;
}

.wl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.wl-toolbar--tabs {
    gap: 6px;
}

.wl-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wl-sep {
    width: 1px;
    height: 24px;
    background: #dde3de;
    margin: 0 6px;
}

.wl-spacer {
    flex: 1 1 auto;
}

/* Cells that may wrap to a second line (dates) */
.rz-data-grid td.wl-wrap .rz-cell-data {
    white-space: normal;
    line-height: 1.25;
}

/* Tabs and chips (own buttons, not Radzen, so the green is ours) */
.wl-tab, .wl-chip {
    height: 30px;
    padding: 0 12px;
    border: 1px solid #dde3de;
    border-radius: 15px;
    background: #fff;
    color: #36413b;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

    .wl-tab:hover, .wl-chip:hover {
        background: #f4f6f4;
        border-color: #c9d2cb;
    }

    .wl-tab.is-on, .wl-chip.is-on {
        background: #e8f3e9;
        border-color: #2e7d32;
        color: #1b5e20;
        font-weight: 600;
    }

    .wl-tab:focus-visible, .wl-chip:focus-visible {
        outline: 2px solid #2e7d32;
        outline-offset: 1px;
    }

.wl-count {
    font-size: 12px;
    color: #6b7770;
}

.is-on .wl-count {
    color: #1b5e20;
}

.wl-chip--issue.has-items {
    background: #fdecea;
    border-color: #e3a3a3;
    color: #a61b1b;
}

.wl-chip--issue.has-items .wl-count {
    color: #a61b1b;
}

/* STAT chip: same colors as STAT rows (#fff6f6 / #b71c1c) */
.wl-chip--stat {
    background: #fff6f6;
    border-color: #f3c7c7;
    color: #b71c1c;
}

    .wl-chip--stat .wl-count {
        color: #b71c1c;
    }

    .wl-chip--stat:hover {
        background: #fdecea;
        border-color: #e3a3a3;
    }

    .wl-chip--stat.is-on {
        background: #fdecea;
        border-color: #b71c1c;
        color: #b71c1c;
    }

    .wl-chip--stat:focus-visible {
        outline-color: #b71c1c;
    }

/* Segmented button group (Name|MRN|DOB, date presets) */
.wl-seg {
    display: inline-flex;
    height: 36px;
    border: 1px solid #c9d2cb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.wl-seg button {
    border: none;
    border-left: 1px solid #dde3de;
    background: #fff;
    color: #36413b;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

    .wl-seg button:first-child {
        border-left: none;
    }

    .wl-seg button:hover {
        background: #f4f6f4;
    }

    .wl-seg button.is-on {
        background: #2e7d32;
        color: #fff;
    }

    .wl-seg button:focus-visible {
        outline: 2px solid #2e7d32;
        outline-offset: -2px;
    }

/* Grid polish (v11 classes; scoped to .wl-grid) */
.wl-grid .rz-grid-table thead th {
    background: #f4f6f4;
    color: #5c6862;
    font-size: 12px;
    font-weight: 600;
}

/* Row hover. Pink issue and STAT rows keep their color: inline !important beats this. */
.wl-grid .rz-grid-table tbody tr.rz-data-row:hover > td {
    background-color: #e8f3e9 !important;
}

/* Icon buttons: quiet outline */
.wl-btn-icon {
    color: #36413b !important;
    background: #fff !important;
    border: 1px solid #c9d2cb !important;
    box-shadow: none !important;
}

    .wl-btn-icon:hover {
        background: #f4f6f4 !important;
        border-color: #9aa59f !important;
    }

.wl-btn-delete:hover {
    color: #c62828 !important;
    background: #fdecea !important;
    border-color: #e3a3a3 !important;
    box-shadow: none !important;
}

/* Two-line cell: main line + small gray sub-line, each truncated */
.wl-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-sub {
    font-size: 12px;
    color: var(--wl-sub-color, #6b7770);
}

.wl-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dde3de;
    border-radius: 10px;
}

    .wl-card > .wl-toolbar {
        padding: 10px 12px;
        border-bottom: 1px solid #e6ebe7;
    }

    .wl-card .rz-data-grid {
        border: none;
        box-shadow: none;
        border-radius: 0 0 10px 10px;
    }

/* "Live" badge (RadViewNext Active list) */
.wl-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    background: #e8f3e9;
    color: #1b5e20;
    font-size: 13px;
    font-weight: 600;
}

.wl-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e7d32;
}

/* Report stage: Transcribed = amber (waits for sign), Finalized = green (done) */
.wl-stage i {
    font-size: 11px;
    margin-right: 5px;
}

.wl-stage--final i {
    color: #2e7d32;
}

.wl-stage--trans i {
    color: #c77700;
}

.wl-stage-bar {
    height: 4px;
    width: 80px;
    border-radius: 2px;
    margin-top: 3px;
    background: #2e7d32;
}

    .wl-stage-bar.wl-stage--trans {
        background: #f0a020;
    }
