.changes-page {
    padding-bottom: 54px;
}

.changes-summary-card,
.changes-filter-panel,
.changes-table-panel {
    border: 1px solid var(--border);
    background:
        linear-gradient(
            145deg,
            rgba(18, 48, 56, 0.87),
            rgba(14, 38, 45, 0.78)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.015),
        0 18px 44px rgba(0, 0, 0, 0.09);
}

.changes-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.changes-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 105px;
    padding: 18px 20px;
    border-radius: 14px;
}

.changes-summary-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #E8ECD9;
    background: rgba(135, 143, 87, 0.25);
}

.changes-summary-card__icon svg {
    width: 27px;
    height: 27px;
}

.changes-summary-card > div {
    display: grid;
    gap: 5px;
}

.changes-summary-card span {
    color: #B8C1BE;
    font-size: 12px;
}

.changes-summary-card strong {
    font-family: var(--outfit);
    font-size: 31px;
    line-height: 1;
}

.changes-filter-panel {
    margin-bottom: 14px;
    padding: 17px 18px 14px;
    border-radius: 14px;
}

.changes-filter-panel__heading {
    margin-bottom: 13px;
}

.changes-filter-panel__heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-family: var(--outfit);
    font-size: 17px;
}

.changes-filter-panel__heading svg {
    width: 20px;
    height: 20px;
}

.changes-filters {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(150px, 1fr))
        minmax(230px, 1.4fr);
    gap: 10px 12px;
}

.changes-select-field {
    display: grid;
    gap: 5px;
    min-height: 56px;
    padding: 8px 12px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: rgba(6, 23, 28, 0.48);
}

.changes-select-field span {
    color: #9BA5A2;
    font-size: 10px;
}

.changes-select-field select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--textwhite);
    background: transparent;
}

.changes-select-field option,
.changes-page-size option {
    color: #FFFFFF;
    background: #102B31;
}

.changes-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: rgba(6, 23, 28, 0.48);
}

.changes-search-field:focus-within,
.changes-select-field:focus-within {
    border-color: rgba(164, 176, 93, 0.55);
    box-shadow: 0 0 0 3px rgba(135, 143, 87, 0.08);
}

.changes-search-field svg {
    flex: 0 0 auto;
    color: #A9B1AE;
}

.changes-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--textwhite);
    background: transparent;
}

.changes-search-field input::placeholder {
    color: #87928F;
}

.changes-reset-button {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    min-height: 34px;
    padding: 2px;
    border: 0;
    color: #A5B45B;
    background: transparent;
    cursor: pointer;
}

.changes-reset-button svg {
    width: 17px;
    height: 17px;
}

.changes-table-panel {
    overflow: hidden;
    border-radius: 14px;
}

.changes-table-scroll {
    overflow-x: auto;
}

.changes-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.changes-table th,
.changes-table td {
    padding: 11px 18px;
    border-bottom: 1px solid rgba(168, 189, 192, 0.13);
    text-align: left;
    vertical-align: middle;
}

.changes-table th {
    height: 47px;
    color: #B8C1BE;
    background: rgba(8, 29, 35, 0.25);
    font-size: 11px;
    font-weight: 500;
}

.changes-table td {
    color: #DCE2DE;
    font-size: 12px;
}

.changes-table tbody tr:hover {
    background: rgba(135, 143, 87, 0.055);
}

.changes-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.changes-table td:first-child strong {
    color: #F2F5EF;
    font-weight: 500;
}

.change-unit-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
}

.change-unit-icon svg {
    width: 16px;
    height: 16px;
}

.change-unit-icon--available {
    color: #A8D846;
    background: rgba(117, 157, 36, 0.11);
}

.change-unit-icon--reserved {
    color: #F0B72C;
    background: rgba(197, 139, 0, 0.11);
}

.change-unit-icon--sold {
    color: #FB6658;
    background: rgba(190, 60, 48, 0.11);
}

.change-transition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.change-transition svg {
    width: 15px;
    height: 15px;
    color: #83908C;
}

.change-transition span {
    color: #A4AFAB;
}

.change-transition strong {
    color: #EFF2ED;
    font-weight: 500;
}

.changes-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 54px 20px;
    color: #A3AEAA;
    text-align: center;
}

.changes-empty-state[hidden] {
    display: none;
}

.changes-empty-state svg {
    width: 33px;
    height: 33px;
    color: #8F9C5A;
}

.changes-empty-state strong {
    color: #E4E8E2;
    font-size: 15px;
}

.changes-empty-state span {
    font-size: 12px;
}

.changes-table-footer {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 61px;
    padding: 9px 18px;
    border-top: 1px solid rgba(168, 189, 192, 0.13);
}

.changes-table-footer p {
    margin: 0;
    color: #A7B0AD;
    font-size: 11.5px;
}

.changes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.changes-page-button {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: #E1E6E1;
    background: rgba(7, 24, 29, 0.38);
    cursor: pointer;
}

.changes-page-button.is-active {
    color: #FFFFFF;
    border-color: rgba(164, 176, 93, 0.38);
    background: linear-gradient(145deg, #9DAA55, #727C3E);
}

.changes-page-button:disabled {
    opacity: 0.38;
}

.changes-page-size {
    justify-self: end;
}

.changes-page-size select {
    min-width: 139px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--textwhite);
    background: rgba(7, 24, 29, 0.38);
}

@media (max-width: 1150px) {
    .changes-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .changes-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .changes-table-footer {
        grid-template-columns: 1fr auto;
    }

    .changes-pagination {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .changes-table-footer p {
        grid-column: 1;
        grid-row: 2;
    }

    .changes-page-size {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 640px) {
    .changes-summary-grid,
    .changes-filters {
        grid-template-columns: 1fr;
    }

    .changes-search-field {
        grid-column: auto;
    }

    .changes-table-scroll {
        overflow: visible;
    }

    .changes-table {
        display: block;
        min-width: 0;
        padding: 10px;
    }

    .changes-table thead {
        display: none;
    }

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

    .changes-table tbody {
        display: grid;
        gap: 10px;
    }

    .changes-table tbody tr {
        padding: 8px 13px 12px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: rgba(7, 25, 30, 0.30);
    }

    .changes-table td,
    .changes-table td:first-child {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 39px;
        padding: 7px 1px;
        border-bottom: 1px solid rgba(168, 189, 192, 0.1);
    }

    .changes-table td::before {
        content: attr(data-label);
        color: #939E9B;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.45px;
    }

    .changes-table td:last-child {
        border-bottom: 0;
    }

    .changes-table-footer {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 13px;
    }

    .changes-pagination,
    .changes-table-footer p,
    .changes-page-size {
        grid-column: 1;
        grid-row: auto;
    }

    .changes-page-size {
        justify-self: stretch;
    }

    .changes-page-size select {
        width: 100%;
    }
}
