@font-face {
    font-family: "Roboto Slab";
    src: url("../fonts/RobotoSlab-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto Slab", serif;
    background: linear-gradient(to right, #F7FAFF, #EEF4FF);
    color: #24446B;
}

.container {
    width: calc(100% - 6cm);
    margin: 0 auto;
}

/* HEADER */

.header {
    padding: 52px 0 24px;
}

.header-inner {
    background: #FFFFFF;
    border: 1px solid #D9E5F5;
    border-radius: 22px;
    padding: 14px 20px 14px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 24px rgba(47, 128, 237, 0.03);
}

.logo {
    display: flex;
    align-items: center;
}

.logo {
    cursor: pointer;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo span {
    margin-left: 10px;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    color: #24446B;
}

.right-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a {
    color: #24446B;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.nav a.active {
    background: #CFE0FA;
    color: #31547D;
    border-radius: 13px;
    padding: 3px 9px 5px;
}

.btn {
    border: none;
    background: #2F80ED;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 9px 18px 11px;
    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

/* PAGE */

.transactions-page {
    padding-bottom: 60px;
}

.transactions-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid #D2E1F7;
    border-radius: 22px;
    padding: 20px 18px 8px;
}

/* TOP CONTROLS */

.top-controls {
    display: grid;
    grid-template-columns: 255px minmax(260px, 1fr) 180px 155px 165px 130px;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.date-filter,
.filter-btn,
.settings-btn,
.page-size,
.pagination button,
.action-btn {
    font-family: "Roboto Slab", serif;
}

.date-filter {
    height: 46px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 8px;
    color: #24446B;
    font-size: 16px;
    font-weight: 900;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.date-filter img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.search-box {
    height: 46px;
    background: #FFFFFF;
    border: 1px solid #D2E1F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding-left: 16px;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    font-weight: 700;
    color: #24446B;
    background: transparent;
}

.search-box input::placeholder {
    color: #8EA1BB;
}

.search-icon {
    width: 45px;
    text-align: center;
    color: #24446B;
    font-size: 28px;
    line-height: 1;
    transform: rotate(-15deg);
}

.top-controls select {
    height: 46px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 8px;
    color: #24446B;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 900;
    padding: 0 12px;
    cursor: pointer;
}

.filter-btn {
    position: relative;
    height: 46px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 8px;
    color: #24446B;
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #2F80ED;
    background: #EAF2FF;
    color: #1C5DAA;
}

.filter-btn img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.filter-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2F80ED;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* ACTION ROW */

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 0 18px;
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #24446B;
    font-size: 16px;
    font-weight: 900;
    margin-right: 2px;
}

.selected-info input {
    width: 17px;
    height: 17px;
    accent-color: #31547D;
}

.action-btn {
    height: 44px;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 900;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-btn img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.delete-action {
    border: 1px solid #FF5A52;
    color: #EE3F37;
}

.group-action {
    border: 1px solid #2F80ED;
    color: #0965E8;
}

.category-action {
    border: 1px solid #00A88A;
    color: #008F77;
}

.more-action {
    border: 1px solid #B79B4C;
    color: #7A6534;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.more-action span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    height: 24px;
    transform: translateY(-1px);
}

.settings-btn {
    margin-left: auto;
    height: 44px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 8px;
    color: #24446B;
    font-size: 15px;
    font-weight: 900;
    padding: 0 11px 0 17px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.settings-btn img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

/* TABLE */

.table-wrapper {
    border: 1px solid #D2E1F7;
    border-radius: 9px;
    overflow: visible;
    background: #FFFFFF;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 18px;
}

thead {
    background: #F3F7FD;
    border-bottom: 2px solid #D2E1F7;
}

th {
    height: 59px;
    color: #24446B;
    font-size: 18px;
    font-weight: 900;
    text-align: left;
    border-bottom: 2px solid #D2E1F7;
    border-right: 1px solid #D2E1F7;
    padding: 0 16px;
    white-space: nowrap;
}

th:last-child {
    border-right: none;
}

td {
    height: 54px;
    color: #24446B;
    font-size: 16px;
    font-weight: 400;
    border-bottom: 1px solid #D2E1F7;
    border-right: 1px solid #D2E1F7;
    padding: 0 16px;
    vertical-align: middle;
    white-space: nowrap;
}

td:last-child {
    border-right: none;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #FAFCFF;
}

.checkbox-col {
    width: 44px;
}

.row-actions-col {
    width: 54px;
    min-width: 54px;
    text-align: center;
}

.transaction-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #2F80ED;
}

.loading-row {
    text-align: center;
    height: 160px;
    font-size: 18px;
    color: #6D829F;
}

/* ROW MENU */

.row-menu-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    color: #24446B;
    border-radius: 10px;
    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.row-menu-btn:hover,
.row-menu-btn.active {
    border-color: #2F80ED;
    background: #EAF2FF;
    color: #1C5DAA;
}

.row-menu {
    position: fixed;
    z-index: 1200;
    width: 230px;
    background: #FFFFFF;
    border: 1px solid #D2E1F7;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(36, 68, 107, 0.22);
    padding: 8px;
}

.row-menu[hidden] {
    display: none;
}

.row-menu-item {
    width: 100%;
    min-height: 38px;
    border: none;
    background: transparent;
    color: #24446B;
    border-radius: 10px;
    padding: 0 12px;
    font-family: "Roboto Slab", serif;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.row-menu-item:hover {
    background: #EAF2FF;
    color: #1C5DAA;
}

.row-menu-item:disabled {
    opacity: 0.45;
    cursor: default;
}

.row-menu-item:disabled:hover {
    background: transparent;
    color: #24446B;
}

.row-menu-danger {
    color: #EE3F37;
}

.row-menu-danger:hover {
    background: #FFECEC;
    color: #D64242;
}

.row-menu-divider {
    height: 1px;
    background: #DDE8F6;
    margin: 7px 4px;
}

/* AMOUNTS */

.amount-income {
    color: #00A85A;
    font-weight: 700;
}

.amount-expense {
    color: #FF2F2F;
    font-weight: 700;
}

/* TAGS */

.category-tag,
.scope-tag,
.tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 4px 10px 5px;
    font-size: 15px;
    font-weight: 500;
    max-width: 100%;
}

.category-tag {
    background: transparent;
    color: #24446B;
    padding: 0;
}

.scope-tag {
    background: transparent;
    color: #24446B;
    padding: 0;
}

.tag-item {
    background: #E6F3EA;
    color: #1C9A55;
    margin-right: 6px;
}

.tag-item:nth-child(2n) {
    background: #E9F0FF;
    color: #0965E8;
}

.comment-cell {
    color: #24446B;
}

/* BOTTOM */

.bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.page-size {
    height: 36px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 7px;
    color: #24446B;
    font-size: 14px;
    font-weight: 900;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
}

/* PAGINATION */

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination button,
.page-number {
    min-width: 34px;
    height: 34px;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    color: #24446B;
    border-radius: 7px;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

.page-number.active {
    border-color: #96C0F8;
    background: #E9F2FF;
    color: #1C5DAA;
}

.page-dots {
    min-width: 24px;
    height: 34px;
    color: #5A7190;
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.total-info {
    margin-left: 4px;
    color: #5A7190;
    font-size: 14px;
    font-weight: 900;
}

/* MODALS */

.settings-modal-overlay,
.select-modal-overlay,
.app-modal-overlay,
.tag-modal-overlay,
.filters-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 68, 107, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-modal-overlay[hidden],
.select-modal-overlay[hidden],
.app-modal-overlay[hidden],
.tag-modal-overlay[hidden],
.filters-modal-overlay[hidden] {
    display: none;
}

.settings-modal,
.select-modal,
.app-modal,
.tag-modal,
.filters-modal {
    background: #FFFFFF;
    border: 1px solid #D2E1F7;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(36, 68, 107, 0.22);
    color: #24446B;
}

.settings-modal {
    width: 480px;
    max-height: 84vh;
    overflow: hidden;
}

.settings-modal-header,
.select-modal-header,
.app-modal-header,
.tag-modal-header,
.filters-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 12px;
}

.settings-modal-header h2,
.select-modal-header h2,
.app-modal-header h2,
.tag-modal-header h2,
.filters-modal-header h2 {
    font-size: 26px;
    font-weight: 900;
}

.settings-close-btn,
.select-close-btn,
.app-modal-close,
.tag-close-btn,
.filters-close-btn {
    border: none;
    background: transparent;
    color: #7B90AB;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
}

.settings-tabs {
    display: flex;
    gap: 12px;
    padding: 0 24px 16px;
    border-bottom: 1px solid #D2E1F7;
}

.settings-tab {
    border: none;
    background: transparent;
    color: #557196;
    border-radius: 16px;
    padding: 8px 16px;
    font-family: "Roboto Slab", serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.settings-tab.active {
    background: #DCEBFF;
    color: #2F80ED;
}

.settings-hint {
    padding: 14px 24px 0;
    color: #8AA0BC;
    font-size: 13px;
    font-weight: 700;
}

.settings-error {
    margin: 14px 24px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FFECEC;
    color: #D64242;
    font-size: 14px;
    font-weight: 800;
}

.settings-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px 24px;
}

.settings-item {
    min-height: 53px;
    border-bottom: 1px solid #DDE8F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-item-name {
    font-size: 16px;
    font-weight: 700;
}

.settings-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-icon-btn {
    border: none;
    background: transparent;
    color: #24446B;
    font-size: 18px;
    cursor: pointer;
}

.delete-reference-btn {
    color: #FF3030;
}

.settings-edit-input,
.settings-create-input,
.select-modal-select,
.app-modal-input,
.date-modal-fields input,
.filters-field input,
.filters-field select {
    height: 36px;
    border: 1px solid #D2E1F7;
    border-radius: 12px;
    padding: 0 12px;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 700;
    color: #24446B;
    outline: none;
    background: #FFFFFF;
}

.settings-edit-input {
    flex: 1;
}

.settings-empty {
    text-align: center;
    color: #8AA0BC;
    font-size: 16px;
    font-weight: 800;
    padding: 36px 0;
}

.settings-create-form {
    display: flex;
    gap: 10px;
    padding: 16px 24px 24px;
    border-top: 1px solid #D2E1F7;
}

.settings-create-input {
    flex: 1;
}

.settings-create-btn,
.select-apply-btn,
.app-modal-primary,
.tag-apply-btn,
.filters-apply-btn {
    border: none;
    background: #2F80ED;
    color: white;
    border-radius: 16px;
    padding: 0 22px;
    min-height: 40px;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.select-modal {
    width: 420px;
    padding-bottom: 24px;
}

.select-modal-select {
    width: calc(100% - 48px);
    margin: 10px 24px 20px;
}

.select-modal-actions,
.app-modal-actions,
.tag-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.select-cancel-btn,
.app-modal-cancel,
.app-modal-secondary,
.tag-cancel-btn,
.filters-reset-btn {
    border: 1px solid #D2E1F7;
    background: #EEF5FF;
    color: #557196;
    border-radius: 14px;
    padding: 10px 20px;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.app-modal {
    width: 430px;
}

.app-modal-text {
    padding: 0 24px 18px;
    color: #557196;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.app-modal-input {
    width: calc(100% - 48px);
    margin: 0 24px 22px;
}

.date-modal {
    width: 500px;
}

.date-modal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 24px 22px;
}

.date-modal-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #24446B;
    font-size: 15px;
    font-weight: 900;
}

.actions-modal {
    width: 430px;
}

.actions-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px 24px;
}

.actions-modal-item {
    min-height: 44px;
    border: 1px solid #D2E1F7;
    background: #F7FAFF;
    border-radius: 14px;
    color: #24446B;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-align: left;
    padding: 0 16px;
}

.actions-modal-item:hover {
    background: #EAF2FF;
}

/* TAG MODAL */

.tag-modal {
    width: 460px;
    max-height: 80vh;
    overflow: hidden;
}

.tag-modal-text {
    padding: 0 24px 14px;
    color: #557196;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.tag-modal-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 24px 20px;
}

.tag-modal-empty {
    padding: 34px 0;
    text-align: center;
    color: #8AA0BC;
    font-size: 16px;
    font-weight: 800;
}

.tag-choice {
    min-height: 48px;
    border-bottom: 1px solid #DDE8F6;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #24446B;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.tag-choice input {
    width: 18px;
    height: 18px;
    accent-color: #2F80ED;
}

/* FILTERS MODAL */

.filters-modal {
    width: 720px;
    max-height: 84vh;
    overflow: hidden;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 24px 0;
}

.filters-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.filters-field span,
.filters-tags legend {
    color: #557196;
    font-size: 14px;
    font-weight: 900;
}

.filters-field input,
.filters-field select {
    width: 100%;
    height: 42px;
}

.filters-checkbox {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #24446B;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    padding-top: 22px;
}

.filters-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #2F80ED;
}

.filters-tags {
    margin: 18px 24px 0;
    border: none;
}

.filters-tags-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.filters-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #D2E1F7;
    background: #F7FAFF;
    color: #24446B;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.filters-tag-option input {
    width: 16px;
    height: 16px;
    accent-color: #2F80ED;
}

.filters-tag-option:has(input:checked) {
    background: #E9F2FF;
    border-color: #2F80ED;
    color: #0965E8;
}

.filters-empty {
    color: #8AA0BC;
    font-size: 14px;
    font-weight: 800;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px 24px;
    margin-top: 18px;
    border-top: 1px solid #D2E1F7;
}

/* RESPONSIVE */

@media (max-width: 1300px) {
    .container {
        width: 95%;
    }

    .top-controls {
        grid-template-columns: 255px minmax(260px, 1fr) 180px 155px 165px 130px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .filters-modal {
        width: 92vw;
    }
}

/* EDIT TRANSACTION MODAL */

.edit-transaction-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 68, 107, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

.edit-transaction-modal-overlay[hidden] {
    display: none;
}

.edit-transaction-modal {
    width: 540px;
    max-height: 88vh;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #D2E1F7;
    border-radius: 20px;
    box-shadow: 0 24px 56px rgba(36, 68, 107, 0.24);
    color: #24446B;
    display: flex;
    flex-direction: column;
}

.edit-transaction-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 14px;
}

.edit-transaction-modal-header h2 {
    font-size: 26px;
    font-weight: 900;
}

.edit-transaction-close-btn {
    border: none;
    background: transparent;
    color: #7B90AB;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.edit-transaction-body {
    overflow-y: auto;
    padding: 0 24px 20px;
}

.edit-kind-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px;
    background: #E8EEF9;
    border-radius: 18px;
}

.edit-kind-btn {
    flex: 1;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 12px 18px;
    background: transparent;
    color: #5F7492;
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.edit-kind-expense.active {
    background: #FF5A52;
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(255, 90, 82, 0.22);
}

.edit-kind-income.active {
    background: #23A566;
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(35, 165, 102, 0.22);
}

.edit-form-row {
    display: grid;
    gap: 14px;
}

.edit-form-row.two-columns {
    grid-template-columns: 1fr 130px;
}

.edit-form-field,
.edit-tags-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    border: none;
    min-width: 0;
}

.edit-form-field span,
.edit-tags-field legend {
    color: #355273;
    font-size: 15px;
    font-weight: 900;
}

.edit-form-field input,
.edit-form-field select,
.edit-form-field textarea {
    width: 100%;
    border: 1px solid #D2E1F7;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 12px 14px;
    color: #24446B;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 800;
    outline: none;
}

.edit-form-field input:focus,
.edit-form-field select:focus,
.edit-form-field textarea:focus {
    border-color: #2F80ED;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.edit-form-field textarea {
    resize: vertical;
    min-height: 82px;
}

.edit-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edit-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #D2E1F7;
    background: #F7FAFF;
    color: #355273;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.edit-tag-option input {
    accent-color: #2F80ED;
}

.edit-tag-option:has(input:checked) {
    background: #E9F2FF;
    border-color: #2F80ED;
    color: #0965E8;
}

.edit-tags-empty {
    color: #8AA0BC;
    font-size: 14px;
    font-weight: 800;
}

.edit-transaction-error {
    margin: 0 0 14px;
    padding: 11px 13px;
    background: #FFECEC;
    color: #D64242;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
}

.edit-transaction-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px 24px;
    border-top: 1px solid #D2E1F7;
}

.edit-cancel-btn,
.edit-save-btn {
    border: none;
    border-radius: 16px;
    min-height: 42px;
    padding: 0 22px;
    font-family: "Roboto Slab", serif;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.edit-cancel-btn {
    background: #EEF5FF;
    color: #557196;
    border: 1px solid #D2E1F7;
}

.edit-save-btn {
    background: #2F80ED;
    color: #FFFFFF;
}

.edit-save-btn:disabled {
    opacity: 0.65;
    cursor: default;
}
