.wallet-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 48px);
    gap: clamp(20px, 4vw, 36px);
    color: #fff;
    box-sizing: border-box;
}

.wallet-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    width: 100%;
    max-width: 1280px;
}

.wallet-detail-block {
    background-color: #292929;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 32px);
    width: 100%;
    max-width: 640px;
    flex: 1 1 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    box-sizing: border-box;
}

.wallet-detail-block .title {
    font-size: 24px;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
    color: #c89c00;
}

.wallet-detail-block .balance {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wallet-actions .btn-small {
    margin: 0;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: #c89c00;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wallet-actions .btn-red {
    background-color: #c89c00;
}

.wallet-actions .btn-link {
    background-color: #c89c00;
    color: #000000;
    text-decoration: underline;
    font-size: 0.9rem;
}

.filter-container-inline {
    background-color: #292929;
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 60px auto;
    width: 100%;
    box-sizing: border-box;
}

.filter-title {
    text-align: center;
    color: #c89c00;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.filter-row-inline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 8px;
    width: 100%;
}

.filter-input-tiny {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 200px;
    padding: 4px 6px;
    font-size: 0.75rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #fff;
    height: 30px;
    box-sizing: border-box;
}

.filter-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-container {
    background-color: #292929;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 28px);
    width: 100%;
    max-width: 640px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.filter-container .filter-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-container .btn-filter,
.filter-container .btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    background-color: #c89c00;
    color: #000;
    min-width: 120px;
    max-width: 150px;
}

.filter-container .btn-reset:hover {
    background-color: #c89c00;
}

.date-range-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 130px;
    flex: 1;
}

.date-filter-group label {
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #ccc;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-input {
    padding: 6px 10px;
    font-size: 0.9rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #fff;
    min-width: 130px;
}

.filter-input::placeholder {
    color: #aaa;
}

.dds-container .section-title {
    margin-top: 8px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wallet-page-container .dds-container .wallet-table {
    min-width: 640px;
}

.wallet-table th, .wallet-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #444;
    color: #fff;
}

.wallet-table th {
    background-color: #c89c00;
    color: #000;
}

.wallet-table tbody tr:nth-child(even) {
    background-color: #383838;
}

.wallet-table tbody tr:nth-child(odd) {
    background-color: #292929;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.text-center {
    text-align: center;
}

.dds-container .section-title, .activity-create .section-title, .article-create .section-title, .activity-container .section-title, .filter-container .section-title, .article-container .section-title {
    margin-top: 8px;
    text-align: center;
}

.wallet-bottom-block tbody tr:nth-child(odd) {
    background-color: #292929;
}

.wallet-bottom-block tbody tr:nth-child(even) {
    background-color: #383838;
}

.filter-form {
    background-color: #292929;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    max-width: 400px;
    width: 100%;
}

.filter-form input[type="date"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #585858;
    background-color: #292929;
    color: #fff;
}

.wallet-bottom-block {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.dds-container {
    background-color: #292929;
    width: min(100%, 1200px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 24px);
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
    .wallet-page-container {
        padding: 20px;
        gap: 24px;
    }

    .wallet-top-row {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .wallet-detail-block,
    .filter-container,
    .activity-create,
    .article-create {
        max-width: 100%;
        padding: 20px;
    }

    .wallet-page-container .dds-container {
        width: 100%;
    }

    .wallet-page-container .dds-container .wallet-table {
        min-width: 640px;
    }
}

.wallet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wallet-container h2 {
    color: #c89c00;
}

.wallet-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.wallet-tab {
    padding: 8px 18px;
    border-radius: 999px;
    background-color: #2e2e2e;
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wallet-tab:hover,
.wallet-tab:focus {
    background-color: #3a3a3a;
    color: #fff;
}

.wallet-tab--active {
    background-color: #c89c00;
    color: #1b1b1b;
}

.wallet-tab--active:hover,
.wallet-tab--active:focus {
    color: #1b1b1b;
    background-color: #c89c00;
}

.wallet-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.wallet-status--active {
    background-color: rgba(20, 175, 92, 0.2);
    color: #4caf50;
}

.wallet-status--deleted {
    background-color: rgba(230, 57, 70, 0.2);
    color: #ff6b6b;
}

.table-wallet {
    width: 200px;
    border-collapse: collapse;
    background-color: #292929;
    margin-bottom: 20px;
}

.table-wallet th {
    border: 1px solid #555;
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

.table-wallet tr {
    text-align: center;
    white-space: nowrap;
    padding: 10px;
    color: #ccc;
    font-size: 14px;
}

.table-wallet td {
    text-align: center;
    white-space: nowrap;
    padding: 10px;
    color: #ccc;
    font-size: 14px;
    border: 1px solid #555;
}

.table-wallet .table-row:hover {
    background-color: #585858;
    cursor: pointer;
}

.table-wallet tbody tr:nth-child(odd) {
    background-color: #292929;
}

.table-wallet tbody tr:nth-child(even) {
    background-color: #383838;
}

.transaction-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.transaction-form-container .section-title {
    color: #c89c00;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.transaction-form {
    background-color: #292929;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.wallet-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wallet-create-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
}

.wallet-create-container .section-title {
    color: #c89c00;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.wallet-create-form {
    background-color: #292929;
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .wallet-page-container {
        padding: 16px;
        gap: 20px;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input {
        width: 100%;
        box-sizing: border-box;
    }

    .filter-row .btn-filter,
    .filter-row .btn-reset {
        width: auto;
        align-self: center;
    }

    .dds-container {
        padding: 16px;
    }

    .wallet-create-container {
        padding: 20px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .wallet-create-form {
        padding: 16px 12px;
    }

    .activity-create,
    .article-create {
        width: 100%;
        padding: 20px 16px;
    }

    .transaction-form-container {
        padding: 20px 16px;
    }
}

.activity-container, .article-container {
    background-color: #292929;
    width: min(100%, 720px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

.activity-create, .article-create {
    background-color: #292929;
    width: min(100%, 450px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

.activity-type-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-type-list li {
    margin: 0;
}

.activity-type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background-color: #383838;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.activity-type-item:hover,
.activity-type-item:focus {
    background-color: #454545;
    transform: translateY(-1px);
}

.activity-type-item:focus-visible {
    outline: 2px solid #c89c00;
    outline-offset: 2px;
}

.activity-name {
    font-size: 16px;
    font-weight: bold;
    flex: 1 1 auto;
    min-width: 0;
}

.activity-chevron {
    color: #c89c00;
    font-size: 18px;
    font-weight: bold;
}

.activity-type-empty {
    padding: 12px 14px;
    background-color: #383838;
    border-radius: 6px;
    color: #ccc;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .activity-type-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-chevron {
        align-self: flex-end;
    }
}

.centered-container {
    text-align: center;
    margin-bottom: 20px;
}

.centered-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.centered-container-top {
    text-align: center;
    margin-top: 20px;
}

.wallet-detail-block .badge {
    display: inline-block;
    background: #555;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    margin: 8px auto;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.wallet-actions .badge {
    align-self: center;
}

.wallet-detail-block .restore-form {
    margin-top: 8px;
}

.wallet-detail-block .restore-form input[type="text"] {
    padding: 6px 8px;
    margin-right: 8px;
}

.wallet-detail-block .restore-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.wallet-detail-block .restore-form label {
    margin: 0 6px 0 0;
}

.wallet-detail-block .restore-form input[type="text"] {
    padding: 8px 10px;
    margin: 0;
    min-width: 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #222;
}

.wallet-detail-block .restore-form .btn-small {
    padding: 8px 12px;
}

.wallet-detail-block .restore-form input[type="text"] {
    width: 100%;
}

@media (max-width: 540px) {
    .wallet-detail-block .restore-form {
        flex-direction: column;
        align-items: stretch;
    }

    .wallet-detail-block .restore-form label {
        margin: 0 0 6px 0;
    }

    .wallet-detail-block .restore-form input[type="text"] {
        min-width: 0;
        margin: 0;
    }

    .wallet-detail-block .restore-form .btn-small {
        width: 100%;
        text-align: center;
    }
}

.table-wallet .table-row {
    cursor: pointer;
}

.table-wallet .table-row:focus-visible {
    outline: 2px solid #c89c00;
    outline-offset: -2px;
}
