.project-list-page {
    background: #f4f6f8;
    min-height: calc(100vh - 110px);
    padding: 16px 20px 24px;
}

.project-list-toolbar {
    align-items: center;
    border-bottom: 1px solid #d8dde3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
}

.project-list-search {
    flex: 1 1 240px;
    max-width: 520px;
    min-width: 220px;
    position: relative;
}

.project-list-search > i {
    color: #68737d;
    left: 13px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.project-list-search .form-control {
    height: 38px;
    padding-left: 38px;
}

.project-list-filter {
    flex: 0 1 190px;
    min-width: 160px;
}

.project-list-dynamic-filter {
    flex: 1 1 220px;
    max-width: 320px;
    min-width: 200px;
}

.project-list-filter .form-control,
.project-list-dynamic-filter .form-control {
    height: 38px;
}

.project-list-dynamic-filter .select2.select2-container {
    display: block;
    height: 38px;
    margin: 0;
    vertical-align: top;
    width: 100% !important;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--single {
    height: 38px !important;
    min-height: 38px !important;
    text-align: left !important;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--single .select2-selection__rendered {
    overflow: hidden;
    padding: 6px 12px !important;
    text-align: left !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple {
    align-items: center;
    display: flex;
    height: 38px !important;
    min-height: 38px !important;
    overflow: hidden;
    padding: 0;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    display: flex !important;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
    height: 36px;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 6px !important;
    scrollbar-width: none;
    text-align: left !important;
    white-space: nowrap !important;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-selection__rendered::-webkit-scrollbar {
    display: none;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-selection__rendered:empty {
    display: none !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-selection__choice {
    flex: 0 0 auto;
    float: none;
    margin: 0 5px 0 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-search--inline {
    flex: 1 0 120px;
    float: none;
    margin: 0;
    min-width: 120px;
    text-align: left;
}

.project-list-dynamic-filter .select2.select2-container .selection .select2-selection.select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 28px;
    margin: 0 !important;
    min-width: 120px;
    padding: 0 6px !important;
    text-align: left !important;
    width: 100% !important;
}

.project-list-dynamic-filter .select2-selection__placeholder {
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
}

.project-list-select2-results .select2-results__option::before {
    margin-right: 10px;
    pointer-events: none;
}

.select2-container .project-list-select2-results + .select2-results__message {
    text-align: left;
}

.project-list-add {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    height: 38px;
    margin-left: auto;
    white-space: nowrap;
}

.project-list-summary {
    align-items: center;
    color: #66717c;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    min-height: 44px;
}

.project-list-summary strong {
    color: #20262d;
}

.project-list-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.project-list-card {
    background: #fff;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    color: #20262d;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.project-list-card:hover {
    border-color: #8aaed1;
    box-shadow: 0 5px 14px rgba(31, 45, 58, 0.12);
    transform: translateY(-1px);
}

.project-list-card:focus {
    border-color: #0b73c9;
    box-shadow: 0 0 0 3px rgba(11, 115, 201, 0.18);
    outline: 0;
}

.project-list-card-active {
    border-color: #0b73c9;
}

.project-list-media {
    aspect-ratio: 16 / 9;
    background: #dfe4e8;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.project-list-media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    width: 100%;
}

.project-list-card:hover .project-list-media img {
    transform: scale(1.015);
}

.project-list-active-badge {
    align-items: center;
    background: #fff;
    border: 1px solid #b8d7c2;
    border-radius: 4px;
    color: #24713a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    left: 10px;
    padding: 5px 8px;
    position: absolute;
    top: 10px;
}

.project-list-card-body {
    display: flex;
    flex-direction: column;
    min-height: 132px;
    padding: 13px 14px 14px;
}

.project-list-card-heading {
    align-items: center;
    display: flex;
    min-height: 24px;
}

.project-list-code {
    background: #edf1f4;
    border-radius: 3px;
    color: #4a5864;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    max-width: calc(100% - 28px);
    overflow: hidden;
    padding: 3px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list-open-icon {
    color: #87929c;
    margin-left: auto;
}

.project-list-name {
    color: #1f2a33;
    display: -webkit-box;
    font-size: 15px;
    line-height: 21px;
    margin-top: 7px;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-list-meta {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
    padding-top: 11px;
}

.project-list-date {
    color: #6b7680;
    font-size: 12px;
    white-space: nowrap;
}

.project-list-date i {
    margin-right: 4px;
}

.project-list-status {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 5px;
    max-width: 55%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-list-status i {
    font-size: 7px;
}

.project-list-status-0 {
    color: #616b74;
}

.project-list-status-1 {
    color: #24843d;
}

.project-list-status-2 {
    color: #087f8c;
}

.project-list-status-3 {
    color: #1769aa;
}

.project-list-status-4 {
    color: #bf3d3d;
}

.project-list-empty {
    align-items: center;
    color: #68737d;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 72px 20px;
    text-align: center;
}

.project-list-empty > i {
    color: #9aa5ae;
    font-size: 40px;
    margin-bottom: 14px;
}

.project-list-empty strong {
    color: #2f3942;
    font-size: 15px;
    margin-bottom: 5px;
}

.project-list-footer {
    align-items: center;
    border-top: 1px solid #d8dde3;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
    min-height: 58px;
    padding-top: 14px;
}

.project-list-page-size {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.project-list-page-size label {
    color: #65717b;
    margin: 0;
}

.project-list-page-size .form-control {
    height: 34px;
    min-width: 72px;
    padding: 4px 8px;
}

.project-list-footer .pagination {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
}

@media (max-width: 767px) {
    .project-list-page {
        padding: 12px;
    }

    .project-list-search,
    .project-list-filter,
    .project-list-dynamic-filter {
        flex-basis: 100%;
        max-width: none;
        min-width: 0;
    }

    .project-list-add {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .project-list-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-list-footer {
        align-items: flex-end;
        flex-direction: column;
    }

    .project-list-footer .pagination {
        justify-content: flex-start;
        width: 100%;
    }
}
