/* Source: css/hinh-anh-thi-cong.css */
.hatc-page {
    color: #263238;
    padding: 12px;
}

.hatc-toolbar,
.hatc-filter,
.hatc-summary,
.hatc-pager {
    display: flex;
    align-items: center;
}

.hatc-toolbar {
    justify-content: flex-end;
    min-height: 36px;
}

.hatc-actions,
.hatc-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hatc-view-switch {
    border: 1px solid #d6dbe0;
    border-radius: 4px;
    overflow: hidden;
}

.hatc-view-switch .btn {
    border: 0;
    border-radius: 0;
    min-height: 31px;
    min-width: 34px;
}

.hatc-filter {
    background: #f7f8fa;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    display: block;
    margin-top: 8px;
    padding: 10px 12px 8px;
}

.hatc-filter label,
#modal-hinh-anh-thi-cong label {
    color: #455a64;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hatc-summary {
    color: #607d8b;
    font-size: 13px;
    gap: 18px;
    min-height: 40px;
}

.hatc-summary strong {
    color: #263238;
}

.hatc-bulk-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.hatc-loading,
.hatc-empty {
    align-items: center;
    color: #78909c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.hatc-loading .fa,
.hatc-empty .fa {
    font-size: 32px;
    margin-bottom: 10px;
}

.hatc-empty p {
    margin: 0;
}

.hatc-list {
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    overflow: hidden;
}

.hatc-list thead th {
    background: #eef1f4;
    border-bottom: 1px solid #cfd6dc;
    color: #455a64;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 8px;
    vertical-align: middle;
}

.hatc-list tbody td {
    font-size: 13px;
    padding: 7px 8px;
    vertical-align: middle;
}

.hatc-description-cell {
    min-width: 240px;
}

.hatc-description-row + .hatc-description-row {
    border-top: 1px dashed #dfe3e8;
    margin-top: 6px;
    padding-top: 6px;
}

.hatc-description-label {
    color: #607d8b;
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hatc-preserve-lines {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.hatc-description-cell .hatc-preserve-lines {
    color: #263238;
    display: block;
    line-height: 1.45;
}

.hatc-description-cell > small {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.hatc-col-image {
    width: 86px;
}

.hatc-col-select {
    text-align: center;
    width: 42px;
}

.hatc-col-actions {
    width: 120px;
}

.hatc-thumb-button,
.hatc-photo-image {
    background: #eceff1;
    border: 0;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.hatc-thumb-button {
    border-radius: 4px;
    height: 56px;
    width: 74px;
}

.hatc-thumb-button img,
.hatc-photo-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hatc-cover-mark,
.hatc-photo-badge {
    align-items: center;
    background: #ffca28;
    color: #263238;
    display: flex;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 6px;
}

.hatc-cover-mark {
    border-radius: 50%;
    font-size: 9px;
    height: 20px;
    width: 20px;
}

.hatc-album {
    display: block;
}

.hatc-album-group + .hatc-album-group {
    border-top: 1px solid #dfe3e8;
    margin-top: 22px;
    padding-top: 18px;
}

.hatc-album-group-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.hatc-album-group-header h2 {
    color: #263238;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.hatc-album-group-header h2 .fa {
    color: #607d8b;
    margin-right: 6px;
}

.hatc-album-group-header > span {
    background: #eef2f5;
    border-radius: 4px;
    color: #546e7a;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
}

.hatc-album-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

.hatc-album-card {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(38, 50, 56, 0.06);
    min-width: 0;
    overflow: hidden;
}

.hatc-album-card:hover {
    border-color: #aebbc4;
    box-shadow: 0 3px 10px rgba(38, 50, 56, 0.11);
}

.hatc-album-card-header {
    align-items: center;
    border-bottom: 1px solid #e6eaed;
    display: flex;
    justify-content: space-between;
    min-height: 44px;
    padding: 6px 8px 6px 12px;
}

.hatc-album-card-header > span {
    color: #455a64;
    font-size: 12px;
    font-weight: 600;
}

.hatc-album-images {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 8px;
}

.hatc-album-photo {
    aspect-ratio: 4 / 3;
    background: #e7ebee;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.hatc-album-photo img {
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
    width: 100%;
}

.hatc-album-photo:hover img,
.hatc-album-photo:focus img {
    transform: scale(1.025);
}

.hatc-album-photo-index,
.hatc-album-photo-cover {
    background: rgba(20, 28, 33, 0.82);
    border-radius: 3px;
    bottom: 8px;
    color: #fff;
    font-size: 11px;
    padding: 4px 7px;
    position: absolute;
}

.hatc-album-photo-index {
    left: 8px;
}

.hatc-album-photo-cover {
    color: #ffc107;
    right: 8px;
}

.hatc-album-actions,
.hatc-manager-actions {
    display: flex;
    gap: 4px;
}

.hatc-photo {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(38, 50, 56, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.hatc-photo:hover {
    border-color: #b8c4cc;
    box-shadow: 0 3px 10px rgba(38, 50, 56, 0.1);
}

.hatc-photo-image {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.hatc-photo-badge {
    border-radius: 4px;
    font-size: 11px;
    height: 24px;
    width: 24px;
}

.hatc-photo-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
}

.hatc-photo-heading {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.hatc-photo-title {
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-field-badge {
    background: #e8f1f8;
    border: 1px solid #ccdae5;
    border-radius: 4px;
    color: #315a78;
    font-size: 11px;
    flex: 0 1 auto;
    max-width: 48%;
    overflow: hidden;
    padding: 3px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-photo-body p {
    color: #455a64;
    display: -webkit-box;
    font-size: 12px;
    height: 36px;
    line-height: 18px;
    margin: 9px 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hatc-photo-info {
    color: #607d8b;
    display: grid;
    font-size: 11px;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: auto;
}

.hatc-photo-info span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-photo-info .fa {
    color: #90a4ae;
    margin-right: 3px;
}

.hatc-photo-footer {
    align-items: center;
    border-top: 1px solid #edf0f2;
    color: #78909c;
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    padding-top: 8px;
}

.hatc-photo-footer > small {
    min-width: 0;
    overflow: hidden;
    padding-right: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-row-actions .btn {
    align-items: center;
    display: inline-flex;
    height: 29px;
    justify-content: center;
    padding: 0;
    width: 29px;
}

.hatc-pager {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 12px;
    justify-content: flex-end;
    padding: 12px 0 2px;
}

.hatc-pager nav {
    display: flex;
    gap: 3px;
}

.hatc-pager nav .btn {
    min-width: 31px;
}

.hatc-page-size {
    align-items: center;
    display: flex;
    gap: 6px;
}

.hatc-page-size select {
    width: 74px;
}

.hatc-upload-bar {
    align-items: center;
    border-top: 1px solid #e3e7ea;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 2px;
    padding: 12px 0;
}

.hatc-editor-dialog {
    margin: 20px auto;
    max-width: 1320px !important;
    width: calc(100% - 32px);
}

#modal-hinh-anh-thi-cong .modal-body {
    max-height: calc(100vh - 172px);
    overflow-y: auto;
    padding: 20px;
}

#modal-hinh-anh-thi-cong .modal-header,
#modal-hinh-anh-thi-cong .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
}

.hatc-field-select-wrap {
    min-width: 0;
    position: relative;
}

.hatc-field-select-wrap > .select2-container {
    max-width: 100%;
    width: 100% !important;
}

#modal-hinh-anh-thi-cong .select2-container--default .select2-selection--multiple {
    border-color: #ced4da;
    border-radius: 4px;
    min-height: 38px;
}

#modal-hinh-anh-thi-cong .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
}

.ui-datepicker {
    z-index: 1065 !important;
}

.hatc-upload-bar span {
    color: #607d8b;
    font-size: 12px;
}

.hatc-selected-files {
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    max-height: 420px;
    overflow: auto;
}

.hatc-selected-files table {
    min-width: 760px;
    table-layout: fixed;
}

.hatc-selected-files thead th {
    background: #eef1f4;
    border-bottom-width: 1px;
    color: #455a64;
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    position: sticky;
    top: 0;
    vertical-align: middle;
    z-index: 1;
}

.hatc-selected-files tbody td {
    padding: 8px;
    vertical-align: middle;
}

.hatc-selected-order {
    text-align: center;
    width: 52px;
}

.hatc-selected-drag-col {
    text-align: center;
    width: 44px;
}

.hatc-drag-handle {
    background: transparent;
    border: 0;
    color: #607d8b;
    cursor: grab;
    height: 32px;
    padding: 0;
    width: 32px;
}

.hatc-drag-handle:active {
    cursor: grabbing;
}

.hatc-drag-handle.dragging {
    background: #dcecff;
    box-shadow: 0 4px 12px rgba(38, 50, 56, 0.24);
    color: #006dcc;
    cursor: grabbing;
    opacity: 0.92;
}

.hatc-selected-files tbody tr.drag-enter > td {
    background: #e8f2ff;
    border-top: 2px solid #1683e5;
}

.hatc-selected-image-col {
    width: 128px;
}

.hatc-selected-name-col {
    width: 260px;
}

.hatc-selected-action-col {
    text-align: center;
    width: 48px;
}

.hatc-selected-cover-col {
    text-align: center;
    width: 72px;
}

.hatc-selected-preview {
    background: #eceff1;
    border: 0;
    border-radius: 4px;
    display: block;
    height: 76px;
    overflow: hidden;
    padding: 0;
    width: 110px;
}

.hatc-selected-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hatc-selected-info {
    min-width: 0;
}

.hatc-selected-info strong {
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-selected-info small {
    color: #78909c;
    display: block;
    margin-top: 5px;
}

.hatc-selected-files textarea {
    min-height: 76px;
    resize: vertical;
}

.hatc-existing-album .hatc-selected-files table {
    min-width: 900px;
}

.hatc-edit-selection {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hatc-row-removed td {
    background: #fff4f4;
    color: #8a9297;
}

.hatc-row-removed .hatc-selected-preview,
.hatc-row-removed .hatc-selected-info {
    opacity: 0.48;
}

.hatc-preview-modal .modal-body {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.hatc-preview-modal .modal-body > img {
    background: #15191c;
    height: min(68vh, 720px);
    object-fit: contain;
    width: 100%;
}

.hatc-preview-modal dl {
    font-size: 13px;
    margin: 0;
}

.hatc-preview-modal dt {
    color: #607d8b;
    font-size: 11px;
    text-transform: uppercase;
}

.hatc-preview-modal dd {
    border-bottom: 1px solid #edf0f2;
    margin: 3px 0 12px;
    overflow-wrap: anywhere;
    padding-bottom: 8px;
}

.hatc-manager-dialog {
    margin: 12px auto;
    max-width: 1240px !important;
    width: calc(100% - 24px);
}

.hatc-manager-modal .modal-body {
    background: #f3f5f6;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 12px;
}

.hatc-gallery-loading {
    align-items: center;
    color: #607d8b;
    display: flex;
    font-size: 30px;
    justify-content: center;
    min-height: 440px;
}

.hatc-manager-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.hatc-manager-item {
    background: #fff;
    border: 1px solid #d7dde2;
    border-radius: 6px;
    min-width: 0;
    position: relative;
}

.hatc-manager-item.selected {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px #dc3545;
}

.hatc-manager-image {
    aspect-ratio: 4 / 3;
    background: #e4e8eb;
    border: 0;
    border-radius: 6px 6px 0 0;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.hatc-manager-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 160ms ease;
    width: 100%;
}

.hatc-manager-image:hover img,
.hatc-manager-image:focus img {
    transform: scale(1.025);
}

.hatc-manager-index,
.hatc-manager-cover {
    background: rgba(17, 23, 26, 0.78);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    padding: 4px 7px;
    position: absolute;
    top: 7px;
}

.hatc-manager-index {
    left: 7px;
}

.hatc-manager-cover {
    color: #ffc107;
    right: 7px;
}

.hatc-manager-check {
    align-items: center;
    background: #fff;
    border: 1px solid #ccd3d9;
    border-radius: 4px;
    display: flex;
    height: 28px;
    justify-content: center;
    left: 7px;
    margin: 0;
    position: absolute;
    top: 42px;
    width: 28px;
}

.hatc-manager-item-footer {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    min-height: 44px;
    padding: 6px 7px 6px 9px;
}

.hatc-manager-item-footer > span {
    color: #455a64;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hatc-manager-empty {
    align-items: center;
    color: #78909c;
    display: flex;
    justify-content: center;
    min-height: 220px;
}

.hatc-gallery-selection {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-right: auto;
}

.lg-backdrop,
.lg-outer {
    z-index: 1100 !important;
}

.lg-sub-html .hatc-lg-caption {
    margin: 0 auto;
    max-width: 980px;
    text-align: left;
}

.lg-sub-html .hatc-lg-caption h4 {
    font-size: 15px;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.lg-sub-html .hatc-lg-description {
    align-items: flex-start;
    display: grid;
    gap: 8px;
    grid-template-columns: 92px minmax(0, 1fr);
    margin: 4px 0;
}

.lg-sub-html .hatc-lg-description > strong {
    font-size: 12px;
}

.lg-sub-html .hatc-lg-description .hatc-preserve-lines {
    font-size: 13px;
    line-height: 1.45;
}

.lg-sub-html .hatc-lg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.lg-sub-html .hatc-lg-meta span {
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .hatc-page {
        padding: 8px;
    }

    .hatc-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .hatc-actions > .btn-primary {
        margin-left: auto;
    }

    .hatc-album-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hatc-photo-info {
        grid-template-columns: 1fr;
    }

    .hatc-manager-dialog {
        margin: 6px auto;
        width: calc(100% - 12px);
    }

    .hatc-manager-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hatc-manager-modal .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hatc-gallery-selection {
        justify-content: space-between;
        margin-right: 0;
    }

    .hatc-editor-dialog {
        margin: 8px auto;
        width: calc(100% - 16px);
    }

    #modal-hinh-anh-thi-cong .modal-body {
        max-height: calc(100vh - 140px);
        padding: 14px;
    }

    .hatc-preview-modal .modal-body {
        grid-template-columns: 1fr;
    }

    .hatc-preview-modal .modal-body > img {
        height: 50vh;
    }

    .hatc-pager {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .hatc-album-images,
    .hatc-manager-grid {
        grid-template-columns: 1fr;
    }

}

/* Source: css/project-list.css */
.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%;
    }
}

/* Source: css/project-information.css */
.project-info-page {
    background: #f3f5f7;
    min-height: calc(100vh - 110px);
    padding: 16px 20px 24px;
}

.project-info-surface {
    background: #fff;
    border: 1px solid #dce1e6;
    border-radius: 4px;
    min-width: 0;
    padding: 20px;
}

.project-info-loading {
    align-items: center;
    color: #67727c;
    display: flex;
    gap: 9px;
    justify-content: center;
    min-height: 260px;
}

.project-info-required {
    flex-direction: column;
    text-align: center;
}

.project-info-required > i {
    color: #0b67b2;
    font-size: 34px;
}

.project-info-required > .btn {
    align-items: center;
    display: inline-flex;
    min-height: 38px;
}

.project-info-overview {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.project-info-image-column {
    min-width: 0;
}

.project-info-image-frame {
    align-items: center;
    background: #eef1f4;
    border: 1px solid #dce1e6;
    border-radius: 4px;
    display: flex;
    height: 180px;
    justify-content: center;
    overflow: hidden;
    width: 230px;
}

.project-info-image-frame img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-info-image-button {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    height: 38px;
    margin-top: 12px;
}

.project-info-identity-grid,
.project-info-grid {
    display: grid;
    gap: 16px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.project-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.project-info-field,
.project-info-field-wide {
    min-width: 0;
}

.project-info-field-wide {
    grid-column: 1 / -1;
}

.project-info-field label {
    color: #222b33;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 0 7px;
}

.project-info-field .form-control {
    border-color: #cbd3da;
    border-radius: 4px;
    height: 38px;
    min-width: 0;
    padding: 7px 12px;
    width: 100%;
}

.project-info-field .form-control:disabled {
    background: #edf0f3;
    color: #4f5962;
}

.project-info-field .form-control:focus {
    border-color: #4c9ada;
    box-shadow: 0 0 0 2px rgba(19, 117, 196, 0.14);
}

.project-info-field .select2-container {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100% !important;
}

.project-info-field .select2-container .select2-selection--single {
    border-color: #cbd3da;
    border-radius: 4px;
    height: 38px !important;
}

.project-info-field .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
    overflow: hidden;
    padding: 6px 34px 6px 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-info-field .select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 5px;
}

.project-info-field .select2-container--disabled .select2-selection--single {
    background: #edf0f3;
}

.project-info-field .select2-container--focus .select2-selection--single {
    border-color: #4c9ada;
    box-shadow: 0 0 0 2px rgba(19, 117, 196, 0.14);
}

.project-info-date-wrap {
    position: relative;
}

.project-info-date-wrap .form-control {
    padding-right: 38px;
}

.project-info-date-wrap > i {
    color: #71808d;
    pointer-events: none;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
}

.project-info-actions {
    align-items: center;
    border-top: 1px solid #dce1e6;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 16px;
}

.project-info-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 7px;
    height: 38px;
}

@media (max-width: 991px) {
    .project-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .project-info-surface {
        padding: 14px;
    }

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

    .project-info-image-frame {
        aspect-ratio: 16 / 9;
        height: auto;
        max-width: 360px;
        width: 100%;
    }

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

    .project-info-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .project-info-actions .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Source: css/project-partner-management.css */
.partner-management {
    width: 100%;
    min-height: 240px;
    padding: 14px 16px 20px;
    color: #172b3a;
    font-size: 14px;
    letter-spacing: 0;
}

.partner-management *,
.partner-management *::before,
.partner-management *::after {
    box-sizing: border-box;
}

.pm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding-bottom: 12px;
}

.pm-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 520px;
    max-width: 620px;
}

.pm-search > .fa-search {
    position: absolute;
    left: 13px;
    z-index: 1;
    color: #647788;
    pointer-events: none;
}

.pm-search input {
    width: 100%;
    height: 38px;
    padding: 7px 40px 7px 38px;
    border: 1px solid #c8d3de;
    border-radius: 5px;
    background: #fff;
    color: #172b3a;
    font-size: 14px;
    line-height: 22px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pm-search input:focus {
    border-color: #2376b9;
    box-shadow: 0 0 0 3px rgba(35, 118, 185, .12);
}

.pm-search input::placeholder {
    color: #7b8b98;
    text-align: left;
}

.pm-search-clear {
    position: absolute;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #607384;
    cursor: pointer;
}

.pm-search-clear:hover {
    background: #edf2f6;
    color: #1f5f91;
}

.pm-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.pm-add-contractor {
    display: grid;
    grid-template-columns: minmax(320px, 1.5fr) minmax(260px, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #9cbcd2;
    border-radius: 6px;
    background: #f3f8fb;
}

.pm-add-contractor-field {
    min-width: 0;
}

.pm-add-contractor-field label {
    display: block;
    margin: 0 0 6px;
    color: #263f51;
    font-size: 13px;
    font-weight: 600;
}

.pm-add-contractor-field .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.pm-add-contractor-field .select2-container .select2-selection--single {
    height: 36px;
    border-color: #b9c7d2;
    border-radius: 4px;
}

.pm-add-contractor-field .select2-selection__rendered {
    padding-left: 10px;
    padding-right: 32px;
    line-height: 34px;
    text-align: left;
}

.pm-add-contractor-field .select2-selection__arrow {
    height: 34px;
}

.pm-add-contractor-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 36px;
    color: #607484;
    font-size: 13px;
}

.pm-add-contractor-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pm-add-contractor-contact .fa {
    color: #2a709f;
}

.pm-add-contractor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.partner-management .pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
}

.partner-management .pm-btn-primary {
    border: 1px solid #0f6faf;
    background: #0f6faf;
    color: #fff;
}

.partner-management .pm-btn-primary:hover,
.partner-management .pm-btn-primary:focus {
    border-color: #0b5b91;
    background: #0b5b91;
    color: #fff;
}

.partner-management .pm-btn-secondary {
    border: 1px solid #aebdca;
    background: #fff;
    color: #29475d;
}

.partner-management .pm-btn-secondary:hover,
.partner-management .pm-btn-secondary:focus {
    border-color: #6e879a;
    background: #f4f7f9;
    color: #18384f;
}

.partner-management .pm-btn-light {
    border: 1px solid #cbd5dd;
    background: #f6f8fa;
    color: #344d60;
}

.pm-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 43px;
    padding: 8px 12px;
    border: 1px solid #d5dfe7;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #f7f9fb;
}

.pm-summary-item {
    display: flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
}

.pm-summary-label {
    color: #617484;
    font-size: 13px;
}

.pm-summary-item strong,
.pm-summary-result strong {
    color: #173b55;
    font-size: 15px;
}

.pm-summary-divider {
    width: 1px;
    height: 22px;
    background: #d6dfe6;
}

.pm-summary-result {
    margin-left: auto;
    color: #617484;
    font-size: 13px;
    white-space: nowrap;
}

.pm-text-success {
    color: #137654 !important;
}

.pm-text-muted {
    color: #687985 !important;
}

.pm-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d5dfe7;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

.pm-table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.pm-table th {
    height: 42px;
    padding: 9px 11px;
    border-right: 1px solid #d8e1e8;
    border-bottom: 1px solid #bdcad5;
    background: #e8eef3;
    color: #213b4e;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    text-align: left;
    vertical-align: middle;
}

.pm-table th:last-child,
.pm-table td:last-child {
    border-right: 0;
}

.pm-table td {
    height: 50px;
    padding: 7px 11px;
    border-right: 1px solid #e0e6eb;
    border-bottom: 1px solid #dde5eb;
    color: #243b4b;
    font-size: 13px;
    line-height: 20px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.pm-table tbody tr:last-child td {
    border-bottom: 0;
}

.pm-table tbody tr:hover:not(.pm-row-editing) td {
    background: #f7fafc;
}

.pm-table .pm-row-editing td {
    background: #fffbea;
}

.pm-col-index {
    width: 54px;
    text-align: center !important;
}

.pm-col-contractor {
    width: 24%;
}

.pm-col-password {
    width: 18%;
}

.pm-col-email {
    width: 20%;
}

.pm-col-status {
    width: 132px;
}

.pm-col-actions {
    width: 104px;
    text-align: center !important;
}

.pm-index {
    color: #617484 !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pm-cell-primary,
.pm-person-name {
    color: #173b55;
    font-weight: 600;
}

.pm-cell-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.pm-cell-button:hover,
.pm-cell-button:focus {
    color: #0f6faf;
    text-decoration: underline;
    outline: none;
}

.pm-login-name {
    color: #315066;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.pm-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #285a7d;
    text-decoration: none;
}

.pm-contact-link:hover {
    color: #0f6faf;
    text-decoration: underline;
}

.pm-contact-link .fa {
    color: #6f8392;
}

.pm-muted {
    color: #7a8995;
    font-style: italic;
}

.partner-management .pm-input,
.partner-management .pm-field-edit .form-control {
    height: 34px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #b9c7d2;
    border-radius: 4px;
    color: #1e3444;
    font-size: 13px;
    line-height: 20px;
}

.partner-management .pm-input:focus,
.partner-management .pm-field-edit .form-control:focus {
    border-color: #2376b9;
    box-shadow: 0 0 0 2px rgba(35, 118, 185, .11);
}

.partner-management .pm-select-contractor + .select2,
.partner-management .pm-field-edit .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.partner-management .pm-field-edit .select2-container .select2-selection--single {
    height: 34px;
    border-color: #b9c7d2;
    border-radius: 4px;
}

.partner-management .pm-field-edit .select2-selection__rendered {
    padding-left: 9px;
    padding-right: 30px;
    line-height: 32px;
    text-align: left;
}

.partner-management .pm-field-edit .select2-selection__arrow {
    height: 32px;
}

.pm-password {
    flex-wrap: nowrap;
}

.partner-management .pm-password-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    padding: 0;
    border: 1px solid #b9c7d2;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #f1f5f7;
    color: #476174;
}

.partner-management .pm-password-button:hover,
.partner-management .pm-password-button:focus {
    background: #e5edf2;
    color: #0f6faf;
}

.pm-status-cell {
    white-space: nowrap;
}

.pm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pm-status .fa-circle {
    font-size: 7px;
}

.pm-status-active {
    background: #e4f3ec;
    color: #11704e;
}

.pm-status-inactive {
    background: #eef1f3;
    color: #63727d;
}

.pm-status-empty {
    background: #fff4dc;
    color: #8a5a00;
}

.pm-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pm-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.pm-icon-edit {
    border-color: #b7cfdf;
    background: #eef6fb;
    color: #176b9e;
}

.pm-icon-add {
    border-color: #a9d3bf;
    background: #e8f6ef;
    color: #137654;
}

.pm-icon-delete {
    border-color: #e4b9bd;
    background: #fff0f1;
    color: #b9333b;
}

.pm-icon-save {
    border-color: #add4c1;
    background: #e8f6ef;
    color: #137654;
}

.pm-icon-cancel {
    border-color: #ccd5dc;
    background: #f3f5f7;
    color: #5c6d78;
}

.pm-icon-button:hover,
.pm-icon-button:focus {
    filter: brightness(.95);
    outline: none;
}

.pm-icon-button:disabled {
    border-color: #d5dde3;
    background: #eef1f3;
    color: #9aa7b0;
    cursor: not-allowed;
    filter: none;
}

.pm-empty {
    height: 180px !important;
    padding: 28px !important;
    color: #607484 !important;
    text-align: center;
}

.pm-empty > .fa {
    display: block;
    margin-bottom: 10px;
    color: #8ea1af;
    font-size: 30px;
}

.pm-empty strong,
.pm-empty span {
    display: block;
}

.pm-empty strong {
    margin-bottom: 3px;
    color: #385468;
    font-size: 14px;
}

.pm-contractor-table-wrap {
    background: #f1f5f7;
}

.pm-contractor-row td {
    height: 56px;
    border-top: 1px solid #9eb3c3;
    border-bottom: 1px solid #b8c8d3;
    background: #e5edf2 !important;
}

.pm-contractor-row:first-child td {
    border-top: 0;
}

.pm-contractor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-contractor-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #1a6fa8;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.pm-contractor-info strong {
    display: block;
    color: #173b55;
    font-size: 14px;
}

.pm-contractor-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
    color: #5d7282;
    font-size: 12px;
}

.pm-contractor-contact span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pm-account-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid #b7c8d4;
    border-radius: 4px;
    background: #fff;
    color: #36576d;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pm-no-account-row td {
    height: 48px;
    padding-left: 54px;
    background: #fbfcfd;
    color: #6a7c89;
}

.pm-no-account-row td > span {
    margin-right: 10px;
    font-style: italic;
}

.pm-no-account-row button {
    padding: 3px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #126c9f;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pm-no-account-row button:hover {
    background: #eaf3f8;
}

.pm-group-spacer td {
    height: 8px;
    padding: 0;
    border: 0;
    background: #f1f5f7;
}

.pm-modal .pm-modal-dialog {
    width: calc(100% - 32px);
    max-width: 820px;
    min-width: 0 !important;
    margin: 42px auto;
}

.pm-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 18px 50px rgba(17, 39, 55, .28);
}

.pm-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #d4dee6;
    background: #f5f8fa;
}

.pm-modal-header .modal-title {
    margin: 0;
    color: #173b55;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.pm-modal-subtitle {
    display: block;
    margin-top: 2px;
    color: #657887;
    font-size: 13px;
}

.pm-modal .pm-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: -4px -6px 0 12px;
    padding: 0;
    border-radius: 4px;
    color: #536b7d;
    font-size: 25px;
    line-height: 1;
    opacity: 1;
}

.pm-modal .pm-modal-close:hover {
    background: #e6edf2;
    color: #173b55;
}

.pm-modal-body {
    padding: 20px;
}

.pm-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 18px;
}

.pm-form-group {
    min-width: 0;
}

.pm-form-group label {
    display: block;
    margin: 0 0 6px;
    color: #263f51;
    font-size: 13px;
    font-weight: 600;
}

.pm-form-group .form-control {
    width: 100%;
    height: 38px;
    border: 1px solid #bac8d3;
    border-radius: 4px;
    color: #203746;
    font-size: 14px;
}

.pm-form-group .form-control:focus {
    border-color: #2376b9;
    box-shadow: 0 0 0 3px rgba(35, 118, 185, .11);
}

.pm-required {
    color: #c43e46;
}

.pm-account-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #d7e0e6;
    border-radius: 5px;
    background: #f8fafb;
}

.pm-account-state strong,
.pm-account-state span {
    display: block;
}

.pm-account-state strong {
    color: #263f51;
    font-size: 13px;
}

.pm-account-state span {
    margin-top: 2px;
    color: #687b89;
    font-size: 12px;
}

.pm-switch {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.pm-switch input {
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pm-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: #9ba9b3;
    transition: background-color .18s ease;
}

.pm-switch-slider::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .24);
    content: "";
    transition: transform .18s ease;
}

.pm-switch input:checked + .pm-switch-slider {
    background: #16805b;
}

.pm-switch input:checked + .pm-switch-slider::before {
    transform: translateX(18px);
}

.pm-switch input:focus + .pm-switch-slider {
    box-shadow: 0 0 0 3px rgba(35, 118, 185, .16);
}

.pm-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #d4dee6;
    background: #f8fafb;
}

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

    .pm-search {
        flex-basis: auto;
        max-width: none;
    }

    .pm-toolbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .pm-summary {
        flex-wrap: wrap;
    }

    .pm-summary-result {
        width: 100%;
        margin-left: 0;
    }

    .pm-add-contractor {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .pm-add-contractor-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .partner-management {
        padding: 10px;
    }

    .pm-toolbar-actions .pm-btn {
        flex: 1 1 auto;
    }

    .pm-summary-divider {
        display: none;
    }

    .pm-summary-item {
        width: calc(50% - 7px);
        justify-content: space-between;
    }

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

    .pm-modal .pm-modal-dialog {
        width: calc(100% - 16px);
        margin: 20px auto;
    }

    .pm-account-state {
        align-items: flex-start;
    }
}
