/* PSO 4.1.04 - Trang chính nhóm thủ tục theo cấp và lĩnh vực */
.pso-main-grouped {
    color: #263746;
    margin-bottom: 20px;
}

.pso-main-grouped * {
    box-sizing: border-box;
}

.pso-main-toolbar {
    align-items: center;
    background: linear-gradient(135deg, #086fc8 0%, #1489dc 100%);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(8, 81, 139, .18);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 18px 20px;
}

.pso-main-toolbar__title {
    align-items: flex-start;
    color: #fff;
    display: flex;
    min-width: 260px;
}

.pso-main-toolbar__icon {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 21px;
    height: 46px;
    justify-content: center;
    margin-right: 12px;
    width: 46px;
}

.pso-main-toolbar h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
    text-transform: none;
}

.pso-main-toolbar p {
    color: rgba(255, 255, 255, .94);
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.pso-main-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 7px;
}

.pso-main-summary span {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 8px;
}

.pso-main-summary em {
    margin-right: 3px;
}

.pso-main-toolbar__actions {
    align-items: center;
    display: flex;
    flex: 0 1 490px;
    gap: 8px;
    justify-content: flex-end;
}

.pso-quick-filter {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 49, 91, .16);
    flex: 1 1 245px;
    max-width: 300px;
    min-width: 220px;
    position: relative;
}

.pso-quick-filter > em {
    color: #6d879a;
    left: 12px;
    position: absolute;
    top: 11px;
}

.pso-quick-filter input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #263746;
    height: 38px;
    outline: 0;
    padding: 8px 35px 8px 34px;
    width: 100%;
}

.pso-quick-filter button {
    background: transparent;
    border: 0;
    color: #8093a3;
    display: none;
    height: 38px;
    padding: 0 12px;
    position: absolute;
    right: 0;
    top: 0;
}

.pso-toolbar-buttons {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.pso-toolbar-buttons .btn {
    background: rgba(255, 255, 255, .97);
    border-color: rgba(255, 255, 255, .7);
    color: #1769aa;
    height: 38px;
}

.pso-filter-result {
    color: #075aa5;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
    padding: 0 3px 8px;
}

.pso-level-section {
    margin-bottom: 20px;
}

.pso-level-heading {
    align-items: center;
    background: #eef6fc;
    border-left: 4px solid #0b72cf;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    min-height: 46px;
    padding: 8px 12px;
}

.pso-level-heading__title {
    align-items: center;
    display: flex;
    min-width: 0;
}

.pso-level-heading__title > span {
    align-items: center;
    background: #0b72cf;
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    margin-right: 9px;
    width: 30px;
}

.pso-level-heading h3 {
    color: #115d98;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.pso-level-heading__meta {
    color: #61798b;
    flex: 0 0 auto;
    font-size: 11px;
    margin-left: 10px;
}

.pso-area-card {
    background: #fff;
    border: 1px solid #d8e3ed;
    border-radius: 7px;
    box-shadow: 0 2px 9px rgba(31, 67, 93, .07);
    margin-bottom: 11px;
    overflow: hidden;
}

.pso-area-heading {
    align-items: center;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    border: 0;
    color: #263746;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 15px;
    text-align: left;
    transition: background .2s ease;
    width: 100%;
}

.pso-area-heading:hover,
.pso-area-heading:focus {
    background: #e7f3fc;
    outline: 0;
}

.pso-area-heading__main {
    align-items: center;
    display: flex;
    min-width: 0;
}

.pso-area-heading__icon {
    align-items: center;
    background: #0b72cf;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 39px;
    font-size: 17px;
    height: 39px;
    justify-content: center;
    margin-right: 11px;
    width: 39px;
}

.pso-area-heading__text {
    display: block;
    min-width: 0;
}

.pso-area-heading__text small {
    color: #6d7f8f;
    display: block;
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.pso-area-heading__text strong {
    color: #125d98;
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.pso-area-heading__meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    margin-left: 12px;
}

.pso-area-count {
    background: #dceefa;
    border-radius: 15px;
    color: #145f99;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
}

.pso-area-chevron {
    color: #59809e;
    margin-left: 10px;
    transition: transform .2s ease;
}

.pso-area-heading[aria-expanded="true"] .pso-area-chevron {
    transform: rotate(180deg);
}

.pso-area-body {
    border-top: 1px solid #d8e3ed;
}

.pso-procedure-table-wrap {
    margin: 0;
}

.pso-procedure-table {
    border: 0;
    margin: 0;
    table-layout: fixed;
    width: 100%;
}

.pso-procedure-table > thead > tr > th {
    background: #f5f8fb;
    border-bottom: 1px solid #d6e0e9;
    border-left: 1px solid #e0e7ed;
    color: #34495a;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 9px;
    vertical-align: middle;
}

.pso-procedure-table > thead > tr > th:first-child,
.pso-procedure-table > tbody > tr > td:first-child {
    border-left: 0;
}

.pso-procedure-table > tbody > tr > td {
    border-bottom: 1px solid #e3e9ee;
    border-left: 1px solid #e8edf1;
    color: #3e4f5d;
    font-size: 13px;
    line-height: 1.5;
    padding: 11px 9px;
    vertical-align: middle;
    word-break: break-word;
}

.pso-procedure-table > tbody > tr:nth-child(even) > td {
    background: #fbfdff;
}

.pso-procedure-table > tbody > tr:hover > td {
    background: #eef7fe;
}

.pso-procedure-table a {
    color: #075fc7;
    text-decoration: none;
}

.pso-procedure-table a:hover,
.pso-procedure-table a:focus {
    color: #e16200;
    text-decoration: underline;
}

.pso-col-stt {
    width: 52px;
}

.pso-col-code {
    width: 180px;
}

.pso-col-agency {
    width: 165px;
}

.pso-col-file {
    width: 62px;
}

.pso-col-code a {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.pso-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pso-file-list li {
    display: inline-block;
    margin: 1px;
}

.pso-download-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd7e1;
    border-radius: 4px;
    color: #256a9f !important;
    display: inline-flex;
    height: 31px;
    justify-content: center;
    text-decoration: none !important;
    transition: all .18s ease;
    width: 34px;
}

.pso-download-btn:hover,
.pso-download-btn:focus {
    background: #0b72cf;
    border-color: #0b72cf;
    color: #fff !important;
}

.pso-area-footer {
    background: #fbfdff;
    border-top: 1px solid #e2e9ef;
    padding: 8px 13px;
    text-align: right;
}

.pso-area-footer a {
    color: #37749f;
    font-size: 12px;
    font-weight: 600;
}

.pso-empty-state {
    background: #f7fafc;
    border: 1px dashed #bdcad5;
    border-radius: 7px;
    color: #708392;
    padding: 40px 20px;
    text-align: center;
}

.pso-empty-state > em {
    font-size: 36px;
    margin-bottom: 8px;
}

.pso-pagination {
    margin-top: 18px;
}

@media (max-width: 991px) {
    .pso-main-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pso-main-toolbar__actions {
        flex-basis: auto;
        justify-content: flex-start;
    }

    .pso-quick-filter {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .pso-main-toolbar {
        border-radius: 6px;
        padding: 15px;
    }

    .pso-main-toolbar h2 {
        font-size: 17px;
    }

    .pso-main-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pso-quick-filter {
        min-width: 0;
        width: 100%;
    }

    .pso-toolbar-buttons .btn {
        flex: 1 1 50%;
    }

    .pso-level-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pso-level-heading__meta {
        margin: 5px 0 0 39px;
    }

    .pso-area-heading {
        align-items: flex-start;
        padding: 10px 11px;
    }

    .pso-area-heading__icon {
        flex-basis: 34px;
        height: 34px;
        margin-right: 8px;
        width: 34px;
    }

    .pso-area-heading__text strong {
        font-size: 14px;
    }

    .pso-area-heading__meta {
        align-items: flex-end;
        flex-direction: column;
        margin-left: 7px;
    }

    .pso-area-count {
        padding: 4px 7px;
    }

    .pso-area-chevron {
        margin: 7px 4px 0 0;
    }

    .pso-procedure-table,
    .pso-procedure-table tbody,
    .pso-procedure-table tr,
    .pso-procedure-table td {
        display: block;
        width: 100%;
    }

    .pso-procedure-table thead {
        display: none;
    }

    .pso-procedure-table > tbody > tr {
        border-bottom: 6px solid #eef3f7;
        padding: 8px 10px;
    }

    .pso-procedure-table > tbody > tr > td,
    .pso-procedure-table > tbody > tr > td:first-child {
        background: #fff !important;
        border: 0;
        min-height: 30px;
        padding: 6px 4px 6px 112px;
        position: relative;
        text-align: left !important;
        width: 100%;
    }

    .pso-procedure-table > tbody > tr > td:before {
        color: #607687;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        left: 4px;
        position: absolute;
        text-transform: uppercase;
        top: 7px;
        width: 100px;
    }

    .pso-col-code,
    .pso-col-agency,
    .pso-col-file,
    .pso-col-stt {
        width: auto;
    }

    .pso-area-footer {
        text-align: left;
    }
}
