/* Hành chính — work: CSS riêng của mục này, nạp ngay sau hanh-chinh.css và hanh-chinh-assets.css, hanh-chinh-insurance.css, hanh-chinh-payroll.css, hanh-chinh-requests.css, hanh-chinh-info-hub.css.
   Tách từ hanh-chinh.css ngày 2026-10-10 (tools/crm-visual/extract-module.cjs); thứ tự cascade đã kiểm. */

.work-assignment-board.staff-only {
        grid-template-columns: minmax(0, 1fr);
    }
    .work-assignment-panel {
        padding: 18px;
        min-width: 0;
    }
    .work-assignment-panel-note {
        margin: 5px 0 0;
        color: #000;
        font-size: 12px;
        line-height: 1.55;
    }
    .work-assignment-list {
        display: grid;
        gap: 12px;
    }
    .work-assignment-person {
        min-width: 0;
    }
    .work-assignment-person span {
        display: block;
        margin-top: 3px;
        color: #000;
        font-size: 12px;
        line-height: 1.45;
    }
    .work-assignment-actions select,
    .work-assignment-card textarea {
        border: 1px solid #DECDB4;
        border-radius: 12px;
        background: #fff;
        font: inherit;
        font-size: 13px;
        outline: none;
    }
    .work-assignment-actions select {
        min-width: 210px;
        flex: 1 1 210px;
        padding: 9px 11px;
    }
    .work-assignment-card textarea {
        width: 100%;
        min-height: 72px;
        resize: vertical;
        padding: 10px 12px;
    }
    .work-assignment-empty {
        border: 1px dashed #DECDB4;
        border-radius: 18px;
        background: #FCFBF8;
        padding: 22px;
        color: #000;
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }
    .outside-work-toolbar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
        align-items: end;
        padding: 16px 18px;
        margin-bottom: 18px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    }
    .outside-work-toolbar label {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .outside-work-toolbar span {
        font-size: 12px;
        color: var(--muted);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .outside-work-record-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (max-width: 1024px) {
        .outside-work-record-grid {
            grid-template-columns: 1fr;
        }
}
.work-command-module {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.work-command-module[hidden] {
    display: none !important;
}
.work-command-search {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e4d7c3;
    border-radius: 11px;
    background: #fff;
}
.work-command-search .material-icons {
    flex: 0 0 auto;
    color: #a5743d;
    font-size: 18px;
}
.work-command-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #28211b;
    font: inherit;
    font-size: 11.5px;
    outline: none;
}

.work-command-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.work-command-stat {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    min-height: 78px;
    padding: 11px 13px;
    overflow: hidden;
    border: 1px solid #e6dac6;
    border-radius: 15px;
    color: #32271f;
    background: rgba(255,255,255,.96);
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.work-command-stat:hover {
    border-color: #cca879;
    transform: translateY(-1px);
}

.work-command-stat.active {
    color: #fff;
    border-color: #2f3b63;
    background: linear-gradient(135deg, #2f3b63, #263151);
    box-shadow: 0 9px 20px rgba(47,59,99,.16);
}

.work-command-stat span {
    align-self: end;
    color: #000;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.work-command-stat strong {
    align-self: start;
    font-size: 25px;
    line-height: 1;
}

.work-command-stat .material-icons {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: #b6844d;
    font-size: 24px;
}

.work-command-stat.active span,
.work-command-stat.active .material-icons {
    color: rgba(255,255,255,.78);
}

.work-command-center {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e6dac6;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(74,47,21,.055);
}

.work-command-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.work-command-tabs {
    display: flex;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
}

.work-command-tabs button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #6f6257;
    background: #f7f2ea;
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
}

.work-command-tabs button .material-icons {
    font-size: 16px;
}

.work-command-tabs button.active {
    color: #fff;
    border-color: #8e642d;
    background: #ae7c41;
}

.work-command-search {
    height: 38px;
    padding: 0 10px;
}

.work-command-module .work-assignment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.work-command-module .work-assignment-card {
    align-content: start;
    gap: 8px;
    padding: 11px;
    border-radius: 13px;
}

.work-command-module .work-assignment-card textarea {
    min-height: 58px;
}

.work-command-module .work-assignment-empty {
    grid-column: 1 / -1;
    padding: 28px 18px;
}

@media (max-width: 1380px) {
.work-command-module .work-assignment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
.work-command-toolbar {
        grid-template-columns: 1fr;
    }

    .work-command-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .work-command-tabs {
        width: 100%;
    }
}
