:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17211b;
    background: #f3f5f2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f3f5f2; }
button { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: #17251d; color: white; padding: 28px 18px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.role { margin-top: 6px; margin-bottom: 30px; color: #b5c5b9; font-size: 12px; letter-spacing: .18em; }
nav { display: grid; gap: 6px; }
.nav-item { border: 0; border-radius: 10px; padding: 12px 14px; text-align: left; color: #dce5df; background: transparent; cursor: pointer; }
.nav-item:hover, .nav-item.active { background: #2b3d31; color: white; }
.content { padding: 34px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { color: #6a756d; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 4px 0 0; font-size: 34px; letter-spacing: -0.04em; }
.badge { border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 800; }
.badge.loading { background: #e8ece8; color: #647068; }
.badge.ok { background: #d9eee0; color: #1d6438; }
.badge.error { background: #f7dddd; color: #9b3030; }
.view { display: none; }
.view.active { display: block; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.card, .panel { background: white; border: 1px solid #e3e8e4; border-radius: 16px; box-shadow: 0 8px 30px rgba(31, 50, 39, .05); }
.card { padding: 22px; }
.card-label { color: #778079; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.card-value { margin-top: 12px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.card-note { margin-top: 6px; color: #758078; font-size: 13px; }
.panel { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.panel h2 { margin: 0 0 6px; font-size: 17px; }
.panel p { margin: 0; color: #748078; }
.primary-button { border: 0; border-radius: 10px; background: #244b33; color: white; padding: 10px 14px; cursor: pointer; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #edf0ed; text-align: left; white-space: nowrap; }
th { color: #748078; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.muted { text-align: center; color: #7a847d; padding: 30px; }
.error-text { color: #9b3030; padding: 24px 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.status-dot.on { background: #3f9b5f; }
.status-dot.off { background: #b65353; }
.placeholder { min-height: 260px; display: grid; align-content: center; justify-items: center; text-align: center; }
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { padding: 18px; }
    nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content { padding: 22px 16px; }
    .cards { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
}

/* ====================== Користувачі ============================================ */
.users-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.toolbar-actions { display: flex; align-items: end; gap: 10px; }
.search-box { display: grid; gap: 6px; min-width: 260px; color: #6f7a72; font-size: 12px; font-weight: 700; }
.search-box input { width: 100%; border: 1px solid #dce3dd; border-radius: 10px; padding: 10px 12px; outline: none; background: #fff; color: #17211b; }
.search-box input:focus { border-color: #6d8e78; box-shadow: 0 0 0 3px rgba(36, 75, 51, .08); }
.users-layout { display: grid; grid-template-columns: minmax(620px, 1.45fr) minmax(360px, .8fr); gap: 16px; align-items: start; }
.users-list-panel { padding: 0; overflow: hidden; }
.users-table-wrap { margin-top: 0; }
.clickable-row { cursor: pointer; transition: background .12s ease; }
.clickable-row:hover { background: #f6f8f6; }
.selected-row { background: #edf4ef; }
.mini-state { display: inline-block; min-width: 34px; text-align: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.state-on { color: #1d6438; }
.state-off { color: #9b3030; }
.state-na { color: #7d8680; }
.mini-state.state-on { background: #d9eee0; }
.mini-state.state-off { background: #f7dddd; }
.mini-state.state-na { background: #e9ece9; }
.user-details-panel { position: sticky; top: 24px; max-height: calc(100vh - 70px); overflow: auto; }
.empty-details { min-height: 230px; display: grid; align-content: center; justify-items: center; text-align: center; color: #758078; }
.empty-details-title { color: #17211b; font-weight: 800; margin-bottom: 6px; }
.details-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #edf0ed; }
.details-head h2 { margin: 3px 0 0; font-size: 24px; }
.profile-status { border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 800; }
.profile-status.active { background: #d9eee0; color: #1d6438; }
.profile-status.inactive { background: #f7dddd; color: #9b3030; }
.details-section { padding: 16px 0; border-bottom: 1px solid #edf0ed; }
.details-section:last-child { border-bottom: 0; padding-bottom: 0; }
.details-section h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #778079; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; font-size: 13px; }
.detail-row span { color: #758078; }
.detail-row strong { text-align: right; overflow-wrap: anywhere; }
.details-muted { color: #7a847d; font-size: 13px; }
.detail-table-wrap { overflow-x: auto; }
.detail-table { font-size: 12px; }
.detail-table th, .detail-table td { padding: 8px 7px; }
@media (max-width: 1200px) {
    .users-layout { grid-template-columns: 1fr; }
    .user-details-panel { position: static; max-height: none; }
}
@media (max-width: 760px) {
    .users-toolbar { align-items: stretch; flex-direction: column; }
    .toolbar-actions { align-items: stretch; flex-direction: column; }
    .search-box { min-width: 0; }
}


/* ====================== Редагування користувача ================================ */
.user-editor { display: grid; gap: 14px; }
.editor-card { border: 1px solid #e3e8e4; border-radius: 12px; padding: 14px; background: #fafbfa; }
.editor-card h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #68746c; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.editor-field { display: grid; gap: 6px; font-size: 12px; color: #6f7a72; }
.editor-field select { width: 100%; border: 1px solid #d9e0da; border-radius: 9px; background: #fff; color: #17211b; padding: 8px 10px; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.secondary-button { border: 1px solid #b8c5bc; border-radius: 9px; background: #fff; color: #244b33; padding: 9px 12px; cursor: pointer; }
.danger-button { border: 1px solid #e0bcbc; border-radius: 9px; background: #fff4f4; color: #963636; padding: 9px 12px; cursor: pointer; }
.primary-button:disabled, .secondary-button:disabled, .danger-button:disabled { opacity: .45; cursor: not-allowed; }
.editor-message { display: none; border-radius: 9px; padding: 10px 12px; font-size: 12px; line-height: 1.4; }
.editor-message.show { display: block; }
.editor-message.ok { background: #e3f2e8; color: #1d6438; }
.editor-message.error { background: #f9e3e3; color: #923333; }
.editor-note { color: #79837c; font-size: 12px; line-height: 1.45; }
@media (max-width: 560px) { .editor-grid { grid-template-columns: 1fr; } }


/* ====================== Повноширинна картка користувача ======================= */
.user-profile-page { width: 100%; max-width: none; position: static; max-height: none; overflow: visible; padding: 24px; }
.profile-back-row { display: flex; justify-content: flex-start; margin-bottom: 18px; }
.user-profile-page .details-head { padding-bottom: 20px; }
.user-profile-page .details-section { padding: 20px 0; }
.user-profile-page .user-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.user-profile-page .editor-card { height: 100%; }
.user-profile-page .detail-table { width: 100%; }
@media (max-width: 900px) { .user-profile-page .user-editor { grid-template-columns: 1fr; } }

/* ====================== WEB5: оптимізація профілю USER для 100% масштабу ====================== */
.user-profile-page[hidden] { display: none; }
.user-profile-page {
    width: 100%;
    max-width: none;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.user-profile-page .profile-back-row,
.user-profile-page .details-head,
.user-profile-page .user-editor { grid-column: 1 / -1; }
.user-profile-page .profile-back-row { margin: 0 0 2px; }
.user-profile-page .details-head {
    padding: 0 0 14px;
    margin: 0;
}
.user-profile-page .details-head h2 { font-size: 30px; }
.user-profile-page .eyebrow { font-size: 13px; }
.user-profile-page .profile-status { font-size: 12px; padding: 7px 11px; }
.user-profile-page .details-section {
    padding: 10px 12px;
    margin: 0;
    border: 1px solid #e3e8e4;
    border-radius: 12px;
    background: #fafbfa;
    min-height: 0;
}
.user-profile-page .details-section:nth-of-type(5) { grid-column: 1 / -1; }
.user-profile-page .details-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.2;
}
.user-profile-page .detail-row {
    gap: 14px;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.25;
}
.user-profile-page .detail-row span { font-size: 15px; }
.user-profile-page .detail-row strong { font-size: 15px; }
.user-profile-page .details-muted { font-size: 15px; }
.user-profile-page .detail-table { font-size: 14px; }
.user-profile-page .detail-table th,
.user-profile-page .detail-table td { padding: 9px 10px; }
.user-profile-page .detail-table th { font-size: 13px; }
.user-profile-page .user-editor {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1.56fr);
    gap: 14px;
    align-items: start;
}
.user-profile-page .editor-card {
    padding: 16px;
    min-height: 0;
}
.user-profile-page .editor-card h4 { font-size: 15px; margin-bottom: 12px; }
.user-profile-page .editor-grid { gap: 10px 12px; }
.user-profile-page .editor-field { gap: 6px; font-size: 14px; }
.user-profile-page .editor-field span { font-size: 14px; }
.user-profile-page .editor-field select {
    min-height: 34px;
    padding: 9px 10px;
    font-size: 15px;
}
.user-profile-page .editor-note,
.user-profile-page .editor-message { font-size: 14px; }
.user-profile-page .primary-button,
.user-profile-page .secondary-button,
.user-profile-page .danger-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 15px;
}

/* Загальна читабельність сторінки користувачів при масштабі браузера 100%. */
#usersView .users-toolbar h2 { font-size: 22px; }
#usersView .users-toolbar p { font-size: 15px; }
#usersView .search-box { font-size: 14px; }
#usersView .search-box input { font-size: 15px; }
#usersView table { font-size: 15px; }
#usersView th { font-size: 13px; }
#usersView th,
#usersView td { padding: 12px 12px; }

@media (max-width: 1500px) {
    .user-profile-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-profile-page .details-section:nth-of-type(5) { grid-column: 1 / -1; }
    .user-profile-page .user-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-profile-page .user-editor .editor-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
    .user-profile-page { grid-template-columns: 1fr; padding: 16px; }
    .user-profile-page .details-section:nth-of-type(5) { grid-column: auto; }
    .user-profile-page .user-editor { grid-template-columns: 1fr; }
    .user-profile-page .user-editor .editor-card:last-child { grid-column: auto; }
}

/* ====================== WEB6: Картка користувача за погодженим макетом ====================== */
.user-profile-page {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.profile-back-row {
    margin: 0 0 14px;
}

.back-button {
    min-height: 40px;
    padding: 9px 14px;
    font-weight: 700;
}

.profile-hero,
.profile-section,
.profile-edit-section,
.summary-card {
    background: #ffffff;
    border: 1px solid #dfe6e1;
    box-shadow: 0 8px 28px rgba(31, 50, 39, 0.045);
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dff2e5;
    color: #1f6a3b;
    font-size: 23px;
    font-weight: 800;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-name-row h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.profile-subtitle {
    margin-top: 4px;
    color: #6e7a72;
    font-size: 14px;
}

.profile-updated {
    display: grid;
    gap: 4px;
    text-align: right;
    color: #77817a;
    font-size: 12px;
}

.profile-updated strong {
    color: #223128;
    font-size: 14px;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 24px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

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

.summary-card {
    border-radius: 14px;
    padding: 16px 17px;
    min-width: 0;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.summary-title h3,
.section-heading-row h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.015em;
    color: #1e2b23;
}

.summary-icon,
.section-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #edf6f0;
    color: #256340;
    font-weight: 800;
    flex: 0 0 auto;
}

.summary-row,
.summary-card .detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 14px;
}

.summary-row span,
.summary-card .detail-row span {
    color: #67746c;
}

.summary-row strong,
.summary-card .detail-row strong {
    color: #17211b;
    text-align: right;
    font-weight: 700;
}

.summary-card .detail-row strong.state-on,
.summary-card .detail-row strong.state-off,
.summary-card .detail-row strong.state-na {
    min-width: 44px;
    border-radius: 999px;
    padding: 4px 8px;
    text-align: center;
    font-size: 11px;
}

.summary-card .detail-row strong.state-on {
    background: #d9eee0;
}

.summary-card .detail-row strong.state-off {
    background: #f7dddd;
}

.summary-card .detail-row strong.state-na {
    background: #e9ece9;
}

.profile-section,
.profile-edit-section {
    border-radius: 16px;
    padding: 17px 18px;
    margin-bottom: 14px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.section-heading-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading-row p {
    margin: 3px 0 0;
    color: #7a857d;
    font-size: 12px;
}

.detail-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7ebe8;
    border-radius: 11px;
}

.accounts-table {
    margin: 0;
    font-size: 13px;
}

.accounts-table th {
    background: #f6f8f6;
    font-size: 11px;
    padding: 10px 12px;
}

.accounts-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.account-key,
.account-history {
    margin-top: 2px;
    color: #8a938d;
    font-size: 10px;
}

.profile-edit-section {
    padding-bottom: 18px;
}

.edit-warning {
    max-width: 520px;
    border-radius: 10px;
    background: #edf7f0;
    color: #3e6d50;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.4;
}

.user-editor.user-editor-dashboard {
    display: grid;
    grid-template-columns: minmax(250px, 0.95fr) minmax(270px, 1fr) minmax(420px, 1.55fr);
    gap: 12px;
    align-items: stretch;
}

.user-editor-dashboard > .editor-message {
    grid-column: 1 / -1;
}

.editor-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    border-radius: 12px;
    padding: 15px;
    background: #fbfcfb;
}

.editor-card h4 {
    margin: 0 0 2px;
    color: #1e2b23;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.editor-card h5 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #34463a;
}

.editor-field {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: #68766d;
}

.editor-field select {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 14px;
}

.editor-actions {
    margin-top: auto;
    padding-top: 3px;
}

.editor-actions-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.editor-actions .primary-button,
.editor-actions .secondary-button {
    min-height: 42px;
    font-weight: 700;
}

.wide-button {
    width: 100%;
}

.editor-note {
    font-size: 11px;
    line-height: 1.35;
}

.permission-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.permission-columns > div + div {
    border-left: 1px solid #e3e8e4;
    padding-left: 14px;
}

.permission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.permission-grid .editor-field {
    grid-template-columns: minmax(110px, 1fr) minmax(112px, 0.9fr);
    align-items: center;
}

.permission-grid .editor-field select {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
}

@media (max-width: 1500px) {
    .profile-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-editor.user-editor-dashboard {
        grid-template-columns: 1fr 1fr;
    }
    .editor-permissions-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .profile-summary-grid,
    .user-editor.user-editor-dashboard {
        grid-template-columns: 1fr;
    }
    .editor-permissions-card {
        grid-column: auto;
    }
    .profile-hero {
        grid-template-columns: auto 1fr;
    }
    .profile-updated {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 80px;
    }
}

@media (max-width: 720px) {
    .profile-summary-grid,
    .permission-columns,
    .editor-actions-split {
        grid-template-columns: 1fr;
    }
    .permission-columns > div + div {
        border-left: 0;
        border-top: 1px solid #e3e8e4;
        padding-left: 0;
        padding-top: 12px;
    }
    .section-heading-row {
        align-items: stretch;
        flex-direction: column;
    }
    .profile-updated {
        padding-left: 0;
    }
}

/* ====================== WEB7: FIX layout user profile full width ====================== */
.user-details-panel.user-profile-page {
    display: block;
    width: 100%;
    max-width: 100%;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.user-profile-page > * {
    width: 100%;
}

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

.user-profile-page .profile-section,
.user-profile-page .profile-edit-section {
    width: 100%;
    margin-bottom: 14px;
}

.user-profile-page .profile-edit-section {
    margin-bottom: 0;
}

.user-profile-page .user-editor.user-editor-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr) minmax(420px, 1.55fr);
    gap: 12px;
    align-items: stretch;
}

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

    .user-profile-page .user-editor.user-editor-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .user-profile-page .editor-permissions-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1050px) {
    .user-profile-page .profile-summary-grid,
    .user-profile-page .user-editor.user-editor-dashboard {
        grid-template-columns: 1fr;
    }

    .user-profile-page .editor-permissions-card {
        grid-column: auto;
    }
}

/* ====================== WEB8: AUTO COMPACT 100% ====================== */

@media (max-height: 950px) and (min-width: 901px) {

    .sidebar {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .role {
        margin-bottom: 20px;
    }

    nav {
        gap: 3px;
    }

    .nav-item {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .content {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .topbar {
        margin-bottom: 18px;
    }

    h1 {
        font-size: 30px;
    }

    .users-toolbar {
        margin-bottom: 12px;
    }

    .user-profile-page .profile-back-row {
        margin-bottom: 8px;
    }

    .profile-hero {
        padding: 13px 16px;
        margin-bottom: 10px;
    }

    .profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .profile-name-row h2 {
        font-size: 25px;
    }

    .profile-summary-grid {
        gap: 9px;
        margin-bottom: 10px;
    }

    .summary-card {
        padding: 12px 14px;
    }

    .summary-title {
        margin-bottom: 8px;
    }

    .summary-row,
    .summary-card .detail-row {
        padding: 3px 0;
        line-height: 1.2;
    }

    .profile-section,
    .profile-edit-section {
        padding: 13px 15px;
        margin-bottom: 10px;
    }

    .section-heading-row {
        margin-bottom: 9px;
    }

    .accounts-table th,
    .accounts-table td {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

@media (max-height: 820px) and (min-width: 901px) {

    .sidebar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .role {
        margin-bottom: 14px;
    }

    .nav-item {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .content {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .topbar {
        margin-bottom: 12px;
    }

    .profile-hero {
        padding: 10px 14px;
        margin-bottom: 8px;
    }

    .profile-summary-grid {
        gap: 8px;
        margin-bottom: 8px;
    }

    .summary-card {
        padding: 10px 12px;
    }
}


/* ====================== WEB9: PDF MOCKUP 100% ====================== */

/*
    Компактна картка користувача.
    Ціль: desktop 100% zoom, уся основна картка в межах одного екрана.
*/

@media (min-width: 1200px) {

    /* ----------------------------------------------------------
       1. Коли відкрита конкретна картка — список/пошук ховаємо
       ---------------------------------------------------------- */

    #usersView.profile-open .users-toolbar {
        display: none;
    }


    /* ----------------------------------------------------------
       2. Загальна робоча область
       ---------------------------------------------------------- */

    body.user-profile-open .content {
        padding-top: 14px;
        padding-right: 24px;
        padding-bottom: 14px;
        padding-left: 24px;
    }

    body.user-profile-open .topbar {
        margin-bottom: 10px;
        min-height: 54px;
    }

    body.user-profile-open .topbar h1 {
        margin-top: 1px;
        font-size: 29px;
        line-height: 1.05;
    }

    body.user-profile-open .topbar .eyebrow {
        font-size: 10px;
    }

    body.user-profile-open .badge {
        padding: 7px 11px;
        font-size: 10px;
    }


    /* ----------------------------------------------------------
       3. Основний контейнер профілю
       ---------------------------------------------------------- */

    .user-details-panel.user-profile-page {
        display: block;
        width: 100%;
        max-width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }


    /* ----------------------------------------------------------
       4. Кнопка Назад
       ---------------------------------------------------------- */

    .user-profile-page .profile-back-row {
        margin: 0 0 7px 0;
    }

    .user-profile-page .back-button {
        min-height: 32px;
        padding: 5px 11px;
        font-size: 12px;
        border-radius: 7px;
    }


    /* ----------------------------------------------------------
       5. Шапка користувача
       ---------------------------------------------------------- */

    .user-profile-page .profile-hero {
        min-height: 58px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;

        padding: 8px 14px;
        margin: 0 0 8px 0;

        border-radius: 11px;
    }

    .user-profile-page .profile-avatar {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .user-profile-page .profile-name-row {
        gap: 8px;
    }

    .user-profile-page .profile-name-row h2 {
        margin: 0;
        font-size: 22px;
        line-height: 1;
    }

    .user-profile-page .profile-subtitle {
        margin-top: 3px;
        font-size: 11px;
    }

    .user-profile-page .profile-status {
        min-width: 52px;
        min-height: 21px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .user-profile-page .profile-updated {
        gap: 2px;
        font-size: 9px;
        line-height: 1.15;
    }

    .user-profile-page .profile-updated strong {
        font-size: 11px;
    }


    /* ----------------------------------------------------------
       6. Чотири верхні картки
       ---------------------------------------------------------- */

    .user-profile-page .profile-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 9px;

        margin: 0 0 8px 0;
    }

    .user-profile-page .summary-card {
        min-width: 0;
        height: 158px;

        padding: 10px 12px;

        border-radius: 10px;
    }

    .user-profile-page .summary-title {
        gap: 7px;
        margin-bottom: 7px;
    }

    .user-profile-page .summary-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 12px;
    }

    .user-profile-page .summary-title h3 {
        font-size: 13px;
        line-height: 1.1;
    }

    .user-profile-page .summary-row,
    .user-profile-page .summary-card .detail-row {
        gap: 8px;

        padding: 2px 0;

        font-size: 11px;
        line-height: 1.2;
    }

    .user-profile-page .summary-row span,
    .user-profile-page .summary-row strong,
    .user-profile-page .summary-card .detail-row span,
    .user-profile-page .summary-card .detail-row strong {
        font-size: 11px;
    }

    .user-profile-page .summary-card .detail-row strong.state-on,
    .user-profile-page .summary-card .detail-row strong.state-off,
    .user-profile-page .summary-card .detail-row strong.state-na {
        min-width: 34px;

        padding: 2px 6px;

        font-size: 8px;
    }


    /* ----------------------------------------------------------
       7. Акаунти — компактний горизонтальний блок
       ---------------------------------------------------------- */

    .user-profile-page .accounts-section {
        padding: 8px 12px;
        margin: 0 0 8px 0;

        border-radius: 10px;
    }

    .user-profile-page .accounts-section .section-heading-row {
        margin-bottom: 4px;
    }

    .user-profile-page .accounts-section .section-icon {
        width: 24px;
        height: 24px;
    }

    .user-profile-page .accounts-section h3 {
        font-size: 12px;
    }

    .user-profile-page .accounts-section .section-heading-row p {
        margin-top: 1px;
        font-size: 9px;
    }

    .user-profile-page .accounts-section .details-muted {
        padding: 1px 0;
        font-size: 10px;
    }

    .user-profile-page .accounts-section .detail-table-wrap {
        max-height: 86px;
        overflow: auto;
    }

    .user-profile-page .accounts-table {
        font-size: 10px;
    }

    .user-profile-page .accounts-table th,
    .user-profile-page .accounts-table td {
        padding: 4px 8px;
    }

    .user-profile-page .accounts-table th {
        font-size: 9px;
    }


    /* ----------------------------------------------------------
       8. Редагування
       ---------------------------------------------------------- */

    .user-profile-page .profile-edit-section {
        padding: 9px 12px 11px 12px;
        margin: 0;

        border-radius: 10px;
    }

    .user-profile-page .profile-edit-section > .section-heading-row {
        margin-bottom: 7px;
    }

    .user-profile-page .profile-edit-section .section-icon {
        width: 24px;
        height: 24px;
    }

    .user-profile-page .profile-edit-section h3 {
        font-size: 12px;
    }

    .user-profile-page .profile-edit-section .section-heading-row p {
        margin-top: 1px;
        font-size: 9px;
    }

    .user-profile-page .edit-warning {
        max-width: 460px;

        padding: 6px 9px;

        font-size: 9px;
        line-height: 1.25;
    }


    /* ----------------------------------------------------------
       9. Три колонки редагування як у PDF
       ---------------------------------------------------------- */

    .user-profile-page .user-editor.user-editor-dashboard {
        display: grid;

        grid-template-columns:
            minmax(220px, 0.82fr)
            minmax(235px, 0.88fr)
            minmax(430px, 1.65fr);

        gap: 9px;

        align-items: stretch;
    }

    .user-profile-page .editor-card {
        min-width: 0;

        padding: 9px 10px;

        gap: 6px;

        border-radius: 9px;
    }

    .user-profile-page .editor-card h4 {
        margin: 0 0 2px 0;
        font-size: 11px;
    }

    .user-profile-page .editor-card h5 {
        margin: 0 0 5px 0;
        font-size: 10px;
    }


    /* ----------------------------------------------------------
       10. Поля редагування
       ---------------------------------------------------------- */

    .user-profile-page .editor-field {
        gap: 3px;

        font-size: 9px;
        line-height: 1.15;
    }

    .user-profile-page .editor-field span {
        font-size: 9px;
    }

    .user-profile-page .editor-field select {
        min-height: 30px;

        padding: 4px 7px;

        border-radius: 6px;

        font-size: 10px;
    }


    /* ----------------------------------------------------------
       11. Telegram + WEB дозволи
       ---------------------------------------------------------- */

    .user-profile-page .permission-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .user-profile-page .permission-columns > div + div {
        padding-left: 10px;
    }

    .user-profile-page .permission-grid {
        gap: 3px;
    }

    .user-profile-page .permission-grid .editor-field {
        grid-template-columns: minmax(92px, 1fr) 72px;

        gap: 5px;

        align-items: center;
    }

    .user-profile-page .permission-grid .editor-field select {
        min-height: 27px;

        padding: 2px 5px;

        font-size: 9px;
    }


    /* ----------------------------------------------------------
       12. Кнопки
       ---------------------------------------------------------- */

    .user-profile-page .editor-actions {
        padding-top: 1px;
        margin-top: auto;
        gap: 5px;
    }

    .user-profile-page .editor-actions .primary-button,
    .user-profile-page .editor-actions .secondary-button {
        min-height: 31px;

        padding: 5px 8px;

        border-radius: 7px;

        font-size: 9px;
    }

    .user-profile-page .editor-note {
        font-size: 8px;
        line-height: 1.2;
    }

    .user-profile-page .editor-message {
        padding: 5px 8px;

        font-size: 9px;
    }
}


/* ====================== WEB9: нижчі desktop-екрани ====================== */

@media (min-width: 1200px) and (max-height: 850px) {

    body.user-profile-open .content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.user-profile-open .topbar {
        margin-bottom: 7px;
        min-height: 48px;
    }

    .user-profile-page .profile-back-row {
        margin-bottom: 5px;
    }

    .user-profile-page .profile-hero {
        min-height: 52px;
        padding-top: 6px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .user-profile-page .profile-summary-grid {
        gap: 7px;
        margin-bottom: 6px;
    }

    .user-profile-page .summary-card {
        height: 150px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .user-profile-page .accounts-section {
        padding-top: 6px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .user-profile-page .profile-edit-section {
        padding-top: 7px;
        padding-bottom: 8px;
    }

    .user-profile-page .editor-card {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}


/* ====================== WEB10: USERS LIST ONE SCREEN ====================== */

/* 1. Прихована картка користувача не займає місця взагалі. */
#userDetailsPanel[hidden] {
    display: none !important;
}

/* 2. У режимі списку картка користувача повністю відсутня. */
#usersView:not(.profile-open) #userDetailsPanel {
    display: none !important;
}

/* 3. Компактний список користувачів для desktop 100%. */
@media (min-width: 901px) {

    #usersView:not(.profile-open) .users-toolbar {
        min-height: 66px;
        padding: 10px 16px;
        margin-bottom: 8px;
        align-items: center;
    }

    #usersView:not(.profile-open) .users-toolbar h2 {
        margin: 0 0 2px;
        font-size: 17px;
        line-height: 1.1;
    }

    #usersView:not(.profile-open) .users-toolbar p {
        margin: 0;
        font-size: 11px;
        line-height: 1.2;
    }

    #usersView:not(.profile-open) .toolbar-actions {
        gap: 8px;
        align-items: end;
    }

    #usersView:not(.profile-open) .search-box {
        min-width: 250px;
        gap: 3px;
        font-size: 10px;
    }

    #usersView:not(.profile-open) .search-box input {
        height: 32px;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    #usersView:not(.profile-open) #usersRefreshButton {
        min-height: 32px;
        padding: 5px 12px;
        font-size: 11px;
        border-radius: 8px;
    }

    #usersView:not(.profile-open) .users-list-panel {
        padding: 0;
        margin: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    #usersView:not(.profile-open) .users-table-wrap {
        margin: 0;
        overflow: visible;
    }

    #usersView:not(.profile-open) table {
        font-size: 12px;
        line-height: 1.1;
    }

    #usersView:not(.profile-open) th {
        height: 30px;
        padding: 5px 10px;
        font-size: 9px;
        line-height: 1;
    }

    #usersView:not(.profile-open) td {
        height: 34px;
        padding: 5px 10px;
        font-size: 11px;
        line-height: 1.1;
    }

    #usersView:not(.profile-open) .mini-state {
        min-width: 34px;
        padding: 2px 6px;
        font-size: 8px;
    }

    #usersView:not(.profile-open) .status-dot {
        width: 6px;
        height: 6px;
        margin-right: 5px;
    }
}

/* 4. Додаткове ущільнення для екранів меншої висоти. */
@media (min-width: 901px) and (max-height: 900px) {

    #usersView:not(.profile-open) .users-toolbar {
        min-height: 58px;
        padding-top: 7px;
        padding-bottom: 7px;
        margin-bottom: 6px;
    }

    #usersView:not(.profile-open) th {
        height: 27px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    #usersView:not(.profile-open) td {
        height: 31px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}


/* ====================== WEB11 APPROVED USER CARD ====================== */

/* Верхній рядок картки користувача. */
body.user-profile-open .topbar {
    min-height: 42px;
    margin-bottom: 8px;
}

body.user-profile-open .topbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.user-profile-open #pageTitle {
    display: none;
}

body.user-profile-open .topbar .eyebrow {
    font-size: 11px;
    margin: 0;
}

body.user-profile-open .topbar-back-button {
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 8px;
}

body.user-profile-open .profile-back-row {
    display: none;
}

/* Загальний контейнер. */
.user-details-panel.user-profile-page {
    display: block;
    width: 100%;
    max-width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
}

/* Коротка шапка користувача. */
.user-profile-page .profile-hero {
    min-height: 62px;
    padding: 9px 15px;
    margin-bottom: 9px;
    border-radius: 11px;
}

.user-profile-page .profile-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.user-profile-page .profile-name-row h2 {
    font-size: 22px;
}

.user-profile-page .profile-subtitle {
    margin-top: 2px;
    font-size: 11px;
}

/* Чотири картки стану. */
.user-profile-page .profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 9px;
}

.user-profile-page .summary-card {
    min-width: 0;
    padding: 10px 13px;
    border-radius: 10px;
}

.user-profile-page .summary-title {
    margin-bottom: 7px;
}

.user-profile-page .summary-title h3 {
    font-size: 14px;
}

.user-profile-page .summary-row,
.user-profile-page .summary-card .detail-row {
    padding: 2px 0;
    font-size: 11px;
    line-height: 1.2;
}

/* Акаунти. */
.user-profile-page .accounts-section {
    padding: 8px 12px;
    margin-bottom: 9px;
    border-radius: 10px;
}

.user-profile-page .accounts-section .section-heading-row {
    margin-bottom: 5px;
}

.user-profile-page .accounts-section .detail-table-wrap {
    max-height: 92px;
    overflow-y: auto;
}

.user-profile-page .accounts-table th,
.user-profile-page .accounts-table td {
    padding: 5px 10px;
}

/* Редагування. */
.user-profile-page .profile-edit-section {
    padding: 9px 12px 10px;
    margin: 0;
    border-radius: 10px;
}

.user-profile-page .profile-edit-section > .section-heading-row {
    margin-bottom: 7px;
}

.user-profile-page .edit-warning {
    padding: 6px 10px;
    font-size: 9px;
}

/* Чотири колонки, як на погодженому макеті. */
.user-profile-page .user-editor.user-editor-dashboard {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.9fr)
        minmax(240px, 1fr)
        minmax(390px, 1.55fr)
        minmax(235px, 1fr);
    gap: 9px;
    align-items: stretch;
}

.user-profile-page .editor-card {
    min-width: 0;
    padding: 10px;
    gap: 6px;
    border-radius: 9px;
}

.user-profile-page .editor-card h4 {
    margin: 0 0 3px;
    font-size: 11px;
}

.user-profile-page .editor-card h5 {
    margin: 0 0 5px;
    font-size: 10px;
}

/* Select та input однакового вигляду. */
.user-profile-page .editor-field {
    gap: 3px;
    font-size: 9px;
}

.user-profile-page .editor-field span {
    font-size: 9px;
}

.user-profile-page .editor-field select,
.user-profile-page .editor-field input {
    width: 100%;
    min-height: 31px;
    padding: 5px 8px;
    border: 1px solid #d9e0da;
    border-radius: 7px;
    background: #fff;
    color: #17211b;
    font-size: 10px;
}

.user-profile-page .editor-field input[readonly] {
    background: #eef1ee;
    color: #657168;
}

/* Telegram + WEB у дві колонки. */
.user-profile-page .permission-columns {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.user-profile-page .permission-columns > div + div {
    padding-left: 10px;
}

.user-profile-page .permission-grid {
    gap: 3px;
}

.user-profile-page .permission-grid .editor-field {
    grid-template-columns: minmax(95px, 1fr) 74px;
    gap: 5px;
}

.user-profile-page .permission-grid .editor-field select {
    min-height: 28px;
    padding: 3px 5px;
    font-size: 9px;
}

/* Нижні кнопки всіх чотирьох карток. */
.user-profile-page .editor-actions {
    margin-top: auto;
    padding-top: 2px;
    gap: 5px;
}

.user-profile-page .editor-actions .primary-button,
.user-profile-page .editor-actions .secondary-button {
    min-height: 33px;
    padding: 5px 8px;
    font-size: 9px;
}

.user-profile-page .editor-note {
    font-size: 8px;
    line-height: 1.2;
}

/* Екран нижчої висоти — ще компактніше. */
@media (min-width: 1200px) and (max-height: 900px) {
    body.user-profile-open .content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.user-profile-open .topbar {
        min-height: 35px;
        margin-bottom: 6px;
    }

    .user-profile-page .profile-hero {
        min-height: 54px;
        padding-top: 6px;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .user-profile-page .profile-summary-grid {
        gap: 7px;
        margin-bottom: 6px;
    }

    .user-profile-page .summary-card {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .user-profile-page .accounts-section {
        margin-bottom: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .user-profile-page .profile-edit-section {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .user-profile-page .editor-card {
        padding-top: 7px;
        padding-bottom: 7px;
    }
}

/* На меншій ширині переходимо на 2+2, щоб нічого не ламалось. */
@media (max-width: 1450px) {
    .user-profile-page .user-editor.user-editor-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ====================== WEB12 APPROVED USERS LIST ====================== */

/* Список користувачів — ліва навігація залишається без змін. */
body.users-list-open .content {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Один компактний верхній рядок. */
body.users-list-open .topbar {
    min-height: 48px;
    margin-bottom: 9px;
    align-items: center;
    gap: 12px;
}

/* Великий напис "Користувачі" прибираємо. */
body.users-list-open #pageTitle {
    display: none;
}

/* ADMIN PANEL залишається. */
body.users-list-open .topbar .eyebrow {
    margin: 0;
    font-size: 11px;
    line-height: 1;
}

/* Пошук + Оновити в одному рядку. */
body.users-list-open .topbar-users-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.users-list-open .topbar-users-actions .search-box {
    display: block;
    min-width: 330px;
}

body.users-list-open .topbar-users-actions .search-box > span {
    display: none;
}

body.users-list-open .topbar-users-actions .search-box input {
    height: 38px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 13px;
}

body.users-list-open .topbar-users-actions #usersRefreshButton {
    min-height: 38px;
    padding: 7px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

body.users-list-open .topbar .badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 10px;
}

/* Старий другий блок "Користувачі" повністю ховаємо. */
body.users-list-open #usersView .users-toolbar {
    display: none !important;
}

/* Картка користувача під таблицею не показується. */
body.users-list-open #userDetailsPanel {
    display: none !important;
}

/* Таблиця. */
body.users-list-open .users-list-panel {
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 13px;
}

body.users-list-open .users-table-wrap {
    margin: 0;
    overflow: visible;
}

body.users-list-open .users-table-wrap table {
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
}

body.users-list-open .users-table-wrap th,
body.users-list-open .users-table-wrap td {
    height: 40px;
    padding: 6px 12px;
    line-height: 1.1;
    vertical-align: middle;
}

body.users-list-open .users-table-wrap th {
    height: 36px;
    font-size: 9px;
    letter-spacing: .055em;
}

body.users-list-open .users-table-wrap th:nth-child(1),
body.users-list-open .users-table-wrap td:nth-child(1) {
    width: 6%;
}

body.users-list-open .users-table-wrap th:nth-child(2),
body.users-list-open .users-table-wrap td:nth-child(2) {
    width: 15%;
}

body.users-list-open .users-table-wrap th:nth-child(3),
body.users-list-open .users-table-wrap td:nth-child(3) {
    width: 10%;
}

body.users-list-open .users-table-wrap th:nth-child(4),
body.users-list-open .users-table-wrap td:nth-child(4) {
    width: 14%;
}

body.users-list-open .users-table-wrap th:nth-child(5),
body.users-list-open .users-table-wrap td:nth-child(5) {
    width: 13%;
}

body.users-list-open .users-table-wrap th:nth-child(6),
body.users-list-open .users-table-wrap td:nth-child(6) {
    width: 13%;
}

body.users-list-open .users-table-wrap th:nth-child(7),
body.users-list-open .users-table-wrap td:nth-child(7) {
    width: 10%;
}

body.users-list-open .users-table-wrap th:nth-child(8),
body.users-list-open .users-table-wrap td:nth-child(8) {
    width: 19%;
}

body.users-list-open .mini-state {
    min-width: 36px;
    padding: 3px 7px;
    font-size: 8px;
}

body.users-list-open .status-dot {
    width: 7px;
    height: 7px;
    margin-right: 6px;
}

/* Активувати / деактивувати. */
.user-action-cell {
    text-align: center;
}

.user-action-button {
    width: 100%;
    max-width: 156px;
    min-height: 30px;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.user-action-button.deactivate {
    border: 1px solid #d95858;
    color: #b93535;
}

.user-action-button.activate {
    border: 1px solid #3f9460;
    color: #267044;
}

.user-action-button:hover {
    background: #f7faf8;
}

.user-action-empty {
    color: #849087;
}

/* Footer таблиці. */
.users-list-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid #e7ebe8;
    background: #fff;
    color: #657168;
    font-size: 11px;
}

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

.users-pagination label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.users-pagination select {
    min-height: 32px;
    padding: 4px 26px 4px 9px;
    border: 1px solid #d9e0da;
    border-radius: 8px;
    background: #fff;
    color: #17211b;
}

.pager-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #31533e;
    cursor: pointer;
    font-size: 20px;
}

.pager-button:disabled {
    opacity: .35;
    cursor: default;
}

.pager-current {
    min-width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #dff2e5;
    color: #1f6a3b;
    font-weight: 800;
}

/* У картці одного користувача пошук не показуємо. */
body.user-profile-open .topbar-users-actions {
    display: none !important;
}

/* Екран меншої висоти — автоматичне ущільнення. */
@media (min-width: 1100px) and (max-height: 900px) {

    body.users-list-open .content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.users-list-open .topbar {
        min-height: 42px;
        margin-bottom: 7px;
    }

    body.users-list-open .users-table-wrap th,
    body.users-list-open .users-table-wrap td {
        height: 34px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .users-list-footer {
        min-height: 42px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* === HOME DASHBOARD V2 BEGIN === */

.home-compatibility-state {
    display: none !important;
}

.home-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.home-dashboard-open .home-header-actions {
    display: flex;
}

body.home-dashboard-open .topbar-users-actions {
    display: none !important;
}

body.home-dashboard-open .content {
    padding: 18px 28px 24px;
}

body.home-dashboard-open .topbar {
    min-height: 42px;
    margin-bottom: 10px;
    gap: 12px;
}

body.home-dashboard-open #pageTitle {
    display: none;
}

body.home-dashboard-open .topbar .eyebrow {
    margin: 0;
    font-size: 10px;
    line-height: 1;
}

body.home-dashboard-open #connectionBadge {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 10px;
}

.home-search-box {
    width: 300px;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #d8e0da;
    border-radius: 8px;
    background: #ffffff;
    color: #77827a;
}

.home-search-icon {
    font-size: 16px;
    line-height: 1;
}

.home-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17211b;
    font: inherit;
    font-size: 12px;
}

body.home-dashboard-open #refreshButton {
    min-height: 34px;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.home-balance-section {
    margin-bottom: 12px;
}

.home-section-title,
.home-panel-head h2 {
    margin: 0;
    color: #17211b;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .015em;
}

.home-section-title {
    margin-bottom: 9px;
}

.home-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-balance-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e0e6e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(31, 50, 39, .035);
    overflow: hidden;
}

.home-balance-icon {
    width: 34px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 850;
}

.home-balance-card[data-currency="UAH"] {
    background: linear-gradient(135deg, #fffdf9 0%, #fffaf3 100%);
}

.home-balance-card[data-currency="USD"] {
    background: linear-gradient(135deg, #fbfffc 0%, #f4fbf6 100%);
}

.home-balance-card[data-currency="EUR"] {
    background: linear-gradient(135deg, #fbfdff 0%, #f5f9ff 100%);
}

.home-balance-card[data-currency="PLN"] {
    background: linear-gradient(135deg, #fefcff 0%, #faf6ff 100%);
}

.home-balance-card[data-currency="UAH"] .home-balance-icon {
    background: #f6e4bf;
    color: #9c661a;
}

.home-balance-card[data-currency="USD"] .home-balance-icon {
    background: #d5efdc;
    color: #16743d;
}

.home-balance-card[data-currency="EUR"] .home-balance-icon {
    background: #dce9f8;
    color: #2568b1;
}

.home-balance-card[data-currency="PLN"] .home-balance-icon {
    background: #ecdff7;
    color: #7845a3;
}

.home-balance-code {
    color: #5f6c63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
}

.home-balance-value {
    margin-top: 4px;
    color: #111a14;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.home-balance-note {
    margin-top: 6px;
    color: #7a867e;
    font-size: 11px;
}

.home-balance-chart {
    width: 42px;
    height: 28px;
    opacity: .72;
}

.home-balance-chart path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-balance-card[data-currency="UAH"] .home-balance-chart {
    color: #d58b1e;
}

.home-balance-card[data-currency="USD"] .home-balance-chart {
    color: #2f9a59;
}

.home-balance-card[data-currency="EUR"] .home-balance-chart {
    color: #3a78c2;
}

.home-balance-card[data-currency="PLN"] .home-balance-chart {
    color: #8251ad;
}

.home-panel {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e0e6e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(31, 50, 39, .035);
}

.home-panel-head {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #edf1ee;
}

.home-table-wrap {
    width: 100%;
    overflow: auto;
}

#homeActiveAccounts {
    max-height: 330px;
}

#homeInactiveAccounts {
    max-height: 190px;
}

#homeRecentOperations {
    max-height: 300px;
}

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

.home-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 12px;
    border-bottom: 1px solid #e6ebe7;
    background: #f4f7f5;
    color: #5f6a63;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.home-table td {
    height: 34px;
    padding: 7px 12px;
    border-bottom: 1px solid #edf1ee;
    color: #354139;
    white-space: nowrap;
}

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

.home-table tbody tr:hover {
    background: #f8faf8;
}

.home-table strong {
    color: #17211b;
    font-weight: 800;
}

.home-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.home-account-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    vertical-align: 1px;
}

.home-account-dot.active {
    background: #35a255;
}

.home-account-dot.inactive {
    background: #a4aca6;
}

.home-open-button {
    min-height: 25px;
    padding: 3px 10px;
    border: 1px solid #d6e6da;
    border-radius: 8px;
    background: #eaf6ed;
    color: #24603c;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.home-open-button:hover {
    background: #dff0e4;
}

.home-operation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.home-operation-badge.income {
    background: #ddf2e4;
    color: #247345;
}

.home-operation-badge.expense {
    background: #fbe2e2;
    color: #a53a3a;
}

.home-operation-badge.transfer {
    background: #e0ebf8;
    color: #326da9;
}

.home-operation-badge.exchange {
    background: #eee2f8;
    color: #7550a0;
}

.home-operation-badge.reversal,
.home-operation-badge.other {
    background: #e9ecea;
    color: #667169;
}

.home-purpose {
    max-width: 440px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-loading,
.home-empty,
.home-error {
    padding: 22px;
    text-align: center;
    color: #7a857e;
}

.home-loading {
    grid-column: 1 / -1;
    border: 1px solid #e0e6e1;
    border-radius: 12px;
    background: #ffffff;
}

.home-error {
    color: #9b3030;
}

@media (max-width: 1250px) {
    .home-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-search-box {
        width: 250px;
    }
}

@media (max-width: 820px) {
    body.home-dashboard-open .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    body.home-dashboard-open .home-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .home-search-box {
        width: 100%;
    }

    .home-balance-grid {
        grid-template-columns: 1fr;
    }
}

/* === HOME DASHBOARD V2 END === */


/* HOME BALANCE ONLY */
#homeActiveAccounts { max-height: none !important; }



/* HOME BALANCE ALIGNMENT FIX BEGIN */

/* Таблиця балансу акаунтів: фіксуємо ширини і вирівнюємо валюти. */
#homeActiveAccounts .home-table {
    table-layout: fixed;
    width: 100%;
}

/* Акаунт */
#homeActiveAccounts .home-table th:nth-child(1),
#homeActiveAccounts .home-table td:nth-child(1) {
    width: 24%;
}

/* Валютні колонки */
#homeActiveAccounts .home-table th:nth-child(2),
#homeActiveAccounts .home-table td:nth-child(2),
#homeActiveAccounts .home-table th:nth-child(3),
#homeActiveAccounts .home-table td:nth-child(3),
#homeActiveAccounts .home-table th:nth-child(4),
#homeActiveAccounts .home-table td:nth-child(4),
#homeActiveAccounts .home-table th:nth-child(5),
#homeActiveAccounts .home-table td:nth-child(5) {
    width: 15%;
}

/* Дія */
#homeActiveAccounts .home-table th:nth-child(6),
#homeActiveAccounts .home-table td:nth-child(6) {
    width: 16%;
}

/* Заголовки валют і суми вирівнюємо однаково вправо. */
#homeActiveAccounts .home-table th.home-money,
#homeActiveAccounts .home-table td.home-money {
    text-align: right;
}

/* Кнопку дії лишаємо ліворуч для читабельності. */
#homeActiveAccounts .home-table th:last-child,
#homeActiveAccounts .home-table td:last-child {
    text-align: left;
}

/* HOME BALANCE ALIGNMENT FIX END */\n\n                                                                 // [023]
/* HOME BALANCE COLUMN LAYOUT V2 BEGIN */                                                                  // [024]

#homeActiveAccounts .home-table {                                               // [025]
    table-layout: fixed;                                                        // [026]
    width: 100%;                                                                // [027]
}                                                                               // [028]

#homeActiveAccounts .home-table th:nth-child(1),                                // [029]
#homeActiveAccounts .home-table td:nth-child(1) {                               // [030]
    width: 20%;                                                                 // [031]
    text-align: left;                                                           // [032]
}                                                                               // [033]

#homeActiveAccounts .home-table th:nth-child(2),                                // [034]
#homeActiveAccounts .home-table td:nth-child(2),                                // [035]
#homeActiveAccounts .home-table th:nth-child(3),                                // [036]
#homeActiveAccounts .home-table td:nth-child(3),                                // [037]
#homeActiveAccounts .home-table th:nth-child(4),                                // [038]
#homeActiveAccounts .home-table td:nth-child(4),                                // [039]
#homeActiveAccounts .home-table th:nth-child(5),                                // [040]
#homeActiveAccounts .home-table td:nth-child(5) {                               // [041]
    width: 14%;                                                                 // [042]
    text-align: right;                                                          // [043]
    padding-left: 8px;                                                          // [044]
    padding-right: 8px;                                                         // [045]
}                                                                               // [046]

#homeActiveAccounts .home-table th:nth-child(6),                                // [047]
#homeActiveAccounts .home-table td:nth-child(6) {                               // [048]
    width: 24%;                                                                 // [049]
    text-align: right;                                                          // [050]
    padding-right: 26px;                                                        // [051]
}                                                                               // [052]

#homeActiveAccounts .home-open-button {                                         // [053]
    margin-left: auto;                                                          // [054]
}                                                                               // [055]

/* HOME BALANCE COLUMN LAYOUT V2 END */                                                                    // [056]
\n

                                                                /* [023] */
/* HOME BALANCE COLUMN LAYOUT V3 BEGIN */                                                                    /* [024] */

body.home-dashboard-open #homeActiveAccounts .home-table {                        /* [025] */
    width: 100% !important;                                                       /* [026] */
    table-layout: fixed !important;                                               /* [027] */
}                                                                                 /* [028] */

body.home-dashboard-open #homeActiveAccounts .home-table th,                      /* [029] */
body.home-dashboard-open #homeActiveAccounts .home-table td {                     /* [030] */
    box-sizing: border-box !important;                                            /* [031] */
    white-space: nowrap !important;                                               /* [032] */
}                                                                                 /* [033] */

body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(1),         /* [034] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(1) {        /* [035] */
    width: 20% !important;                                                        /* [036] */
    text-align: left !important;                                                  /* [037] */
    padding-left: 14px !important;                                                /* [038] */
    padding-right: 8px !important;                                               /* [039] */
}                                                                                 /* [040] */

body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(2),         /* [041] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(2),         /* [042] */
body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(3),         /* [043] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(3),         /* [044] */
body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(4),         /* [045] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(4),         /* [046] */
body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(5),         /* [047] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(5) {        /* [048] */
    width: 12% !important;                                                        /* [049] */
    text-align: right !important;                                                 /* [050] */
    padding-left: 6px !important;                                                 /* [051] */
    padding-right: 10px !important;                                              /* [052] */
}                                                                                 /* [053] */

body.home-dashboard-open #homeActiveAccounts .home-table th:nth-child(6),         /* [054] */
body.home-dashboard-open #homeActiveAccounts .home-table td:nth-child(6) {        /* [055] */
    width: 32% !important;                                                        /* [056] */
    text-align: right !important;                                                 /* [057] */
    padding-left: 8px !important;                                                 /* [058] */
    padding-right: 22px !important;                                              /* [059] */
}                                                                                 /* [060] */

body.home-dashboard-open #homeActiveAccounts .home-open-button {                  /* [061] */
    display: inline-flex !important;                                              /* [062] */
    margin-left: auto !important;                                                 /* [063] */
    margin-right: 0 !important;                                                   /* [064] */
}                                                                                 /* [065] */

/* HOME BALANCE COLUMN LAYOUT V3 END */                                                                      /* [066] */


/* ====================== OPERATIONS V1: сторінка «Операції» ====================== */
.operations-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
body.operations-page-open .operations-header-actions {
    display: flex;
}
body.operations-page-open .home-header-actions,
body.operations-page-open .topbar-users-actions {
    display: none !important;
}
body.operations-page-open .content {
    padding-top: 18px;
    padding-right: 24px;
    padding-bottom: 20px;
    padding-left: 24px;
}
body.operations-page-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
}
body.operations-page-open #pageTitle {
    font-size: 30px;
}
.operations-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 14px;
    align-items: start;
}
.operations-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.operations-create-panel,
.operations-filter-panel,
.operations-table-panel,
.operation-details-panel {
    padding: 14px;
    border-radius: 12px;
}
.operations-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.operations-section-head h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.operation-create-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.operation-create-button {
    min-height: 42px;
    border-radius: 9px;
    border: 1px solid #d9e2db;
    background: #f8faf8;
    color: #244b33;
    font-weight: 800;
    cursor: pointer;
}
.operation-create-button:hover {
    filter: brightness(.985);
    transform: translateY(-1px);
}
.operation-income {
    background: #e8f5ec;
    border-color: #cce5d4;
    color: #1d6438;
}
.operation-expense {
    background: #fff1f1;
    border-color: #efd1d1;
    color: #9b3030;
}
.operation-transfer {
    background: #eef4f0;
    border-color: #d3e0d7;
    color: #315b40;
}
.operation-exchange {
    background: #f2f0f6;
    border-color: #ddd7e8;
    color: #5e4e78;
}
.operations-action-notice {
    margin-top: 10px;
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.4;
}
.operations-action-notice.info {
    background: #eef3ef;
    color: #4d5f53;
}
.operations-action-notice.error {
    background: #f9e3e3;
    color: #923333;
}
.operations-filter-grid {
    display: grid;
    grid-template-columns: 180px 180px minmax(220px, 320px) 150px minmax(240px, 320px); /* [OPV6-CSS001] */
    gap: 10px;
    align-items: end;
}
.operations-currency-field {
    max-width: 150px; /* [OPV6-CSS002] */
}
.operations-purpose-field {
    max-width: 320px; /* [OPV6-CSS003] */
}
.operations-field {
    display: grid;
    gap: 5px;
    color: #68766d;
    font-size: 11px;
    font-weight: 700;
}
.operations-field input,
.operations-field select,
.operations-page-size select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #dce3dd;
    border-radius: 8px;
    background: #fff;
    color: #17211b;
    padding: 7px 9px;
    outline: none;
}
.operations-field input:focus,
.operations-field select:focus,
.operations-page-size select:focus {
    border-color: #6d8e78;
    box-shadow: 0 0 0 3px rgba(36, 75, 51, .08);
}
.operations-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.operations-filter-actions .primary-button,
.operations-filter-actions .secondary-button {
    min-height: 36px;
    padding: 7px 13px;
}
.operations-table-panel {
    padding: 0;
    overflow: hidden;
}
.operations-table-toolbar {
    min-height: 44px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0ed;
    font-size: 13px;
}
.operations-page-size {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #748078;
    font-size: 11px;
}
.operations-page-size select {
    width: 74px;
    min-height: 32px;
    padding: 5px 7px;
}
.operations-table-wrap {
    margin-top: 0;
    max-height: calc(100vh - 405px);
    overflow: auto;
}
.operations-table {
    min-width: 1160px;
    font-size: 11px;
}
.operations-table th,
.operations-table td {
    padding: 7px 8px;
    line-height: 1.25;
}
.operations-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafbfa;
    font-size: 9px;
    letter-spacing: .03em;
}
.operations-wrap-cell {
    min-width: 120px;
    max-width: 190px;
    white-space: normal;
}
.operations-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.operations-money.positive,
.operation-detail-row strong.positive {
    color: #2c7a43;
}
.operations-money.negative,
.operation-detail-row strong.negative {
    color: #a23c3c;
}
.operation-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}
.operation-type-income {
    background: #e3f2e8;
    color: #1d6438;
}
.operation-type-expense {
    background: #f9e3e3;
    color: #923333;
}
.operation-type-transfer {
    background: #e8efeb;
    color: #315b40;
}
.operation-type-exchange {
    background: #eeeaf5;
    color: #5e4e78;
}
.operation-type-reversal {
    background: #f1ece8;
    color: #76543e;
}
.operation-receipt-cell {
    text-align: center;
}
.operation-receipt-mark {
    color: #315b40;
    font-weight: 900;
}
.operations-pagination {
    min-height: 46px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0ed;
}
.operations-pager-buttons {
    display: flex;
    gap: 5px;
}
.pager-button {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid #d9e0da;
    border-radius: 8px;
    background: #fff;
    color: #244b33;
    cursor: pointer;
}
.pager-button.active {
    background: #244b33;
    border-color: #244b33;
    color: #fff;
}
.pager-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.operations-range {
    color: #7a847d;
    font-size: 11px;
}
.operation-details-panel {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 80px);
    overflow: auto;
}
.operation-details-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0ed;
}
.operation-details-head h2 {
    margin: 3px 0 0;
    font-size: 22px;
}
.operation-close-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #68766d;
    cursor: pointer;
    font-size: 20px;
}
.operation-close-button:hover {
    background: #f0f3f0;
}
.operation-detail-type {
    padding: 10px 0 2px;
}
.operation-detail-section {
    padding: 11px 0;
    border-bottom: 1px solid #edf0ed;
}
.operation-detail-section h3 {
    margin: 0 0 8px;
    color: #748078;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.operation-detail-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
    font-size: 11px;
}
.operation-detail-row span {
    color: #758078;
}
.operation-detail-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}
.operation-detail-muted {
    color: #7a847d;
    font-size: 10px;
    line-height: 1.35;
}
.operation-receipt-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    font-size: 10px;
}
.operation-receipt-icon {
    width: 32px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe5df;
    border-radius: 6px;
    background: #f8faf8;
    color: #315b40;
}
.operation-audit-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 7px;
    padding: 5px 0;
    font-size: 10px;
}
.operation-audit-dot {
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: #5b8067;
}
.operation-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
}
.operation-detail-actions .secondary-button {
    grid-column: 1 / -1;
}
.operation-detail-table-wrap {
    overflow-x: auto;
}
.operation-detail-table {
    width: 100%;
    font-size: 10px;
}
.operation-detail-table th,
.operation-detail-table td {
    padding: 5px;
}
@media (max-width: 1280px) {
    .operations-layout {
        grid-template-columns: 1fr;
    }
    .operation-details-panel {
        position: static;
        max-height: none;
    }
    .operations-table-wrap {
        max-height: none;
    }
}
@media (max-width: 900px) {
    .operation-create-grid,
    .operations-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    body.operations-page-open .content {
        padding: 16px;
    }
}
@media (max-width: 620px) {
    .operation-create-grid,
    .operations-filter-grid {
        grid-template-columns: 1fr;
    }
    .operations-table-toolbar,
    .operations-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}


/* ====================== CREATE OPERATION MODAL ====================== */ /* [OPC-CSS001] */
body.operations-modal-open { /* [OPC-CSS002] */
    overflow: hidden; /* [OPC-CSS003] */
} /* [OPC-CSS004] */
.operations-create-modal-layer { /* [OPC-CSS005] */
    position: fixed; /* [OPC-CSS006] */
    inset: 0; /* [OPC-CSS007] */
    z-index: 1200; /* [OPC-CSS008] */
    display: grid; /* [OPC-CSS009] */
    place-items: center; /* [OPC-CSS010] */
    padding: 24px; /* [OPC-CSS011] */
    background: rgba(16, 34, 23, .42); /* [OPC-CSS012] */
    backdrop-filter: blur(2px); /* [OPC-CSS013] */
} /* [OPC-CSS014] */
.operations-create-modal-layer[hidden] { /* [OPC-CSS015] */
    display: none; /* [OPC-CSS016] */
} /* [OPC-CSS017] */
.operations-create-modal { /* [OPC-CSS018] */
    width: min(760px, 96vw); /* [OPC-CSS019] */
    max-height: 92vh; /* [OPC-CSS020] */
    overflow: auto; /* [OPC-CSS021] */
    border: 1px solid #dce3dd; /* [OPC-CSS022] */
    border-radius: 14px; /* [OPC-CSS023] */
    background: #ffffff; /* [OPC-CSS024] */
    box-shadow: 0 24px 70px rgba(20, 41, 29, .22); /* [OPC-CSS025] */
    padding: 18px; /* [OPC-CSS026] */
} /* [OPC-CSS027] */
.operations-create-modal-head { /* [OPC-CSS028] */
    display: flex; /* [OPC-CSS029] */
    align-items: flex-start; /* [OPC-CSS030] */
    justify-content: space-between; /* [OPC-CSS031] */
    gap: 16px; /* [OPC-CSS032] */
    padding-bottom: 12px; /* [OPC-CSS033] */
    border-bottom: 1px solid #edf0ed; /* [OPC-CSS034] */
} /* [OPC-CSS035] */
.operations-create-modal-head h2 { /* [OPC-CSS036] */
    margin: 3px 0 0; /* [OPC-CSS037] */
    font-size: 23px; /* [OPC-CSS038] */
} /* [OPC-CSS039] */
.operations-create-error { /* [OPC-CSS040] */
    margin-top: 12px; /* [OPC-CSS041] */
    padding: 10px 12px; /* [OPC-CSS042] */
    border: 1px solid #efcccc; /* [OPC-CSS043] */
    border-radius: 9px; /* [OPC-CSS044] */
    background: #fae5e5; /* [OPC-CSS045] */
    color: #8f3030; /* [OPC-CSS046] */
    font-size: 12px; /* [OPC-CSS047] */
    line-height: 1.4; /* [OPC-CSS048] */
} /* [OPC-CSS049] */
.operations-create-account-row { /* [OPC-CSS050] */
    display: grid; /* [OPC-CSS051] */
    grid-template-columns: minmax(260px, 1fr) auto; /* [OPC-CSS052] */
    gap: 12px; /* [OPC-CSS053] */
    align-items: end; /* [OPC-CSS054] */
    padding: 14px 0 4px; /* [OPC-CSS055] */
} /* [OPC-CSS056] */
.operations-create-owner { /* [OPC-CSS057] */
    min-height: 36px; /* [OPC-CSS058] */
    display: flex; /* [OPC-CSS059] */
    align-items: center; /* [OPC-CSS060] */
    color: #6f7b73; /* [OPC-CSS061] */
    font-size: 11px; /* [OPC-CSS062] */
} /* [OPC-CSS063] */
.operations-create-body { /* [OPC-CSS064] */
    padding-top: 10px; /* [OPC-CSS065] */
} /* [OPC-CSS066] */
.operations-create-form { /* [OPC-CSS067] */
    display: grid; /* [OPC-CSS068] */
    gap: 14px; /* [OPC-CSS069] */
} /* [OPC-CSS070] */
.operations-create-grid-form { /* [OPC-CSS071] */
    display: grid; /* [OPC-CSS072] */
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* [OPC-CSS073] */
    gap: 12px; /* [OPC-CSS074] */
} /* [OPC-CSS075] */
.operations-create-grid-form .operations-field textarea { /* [OPC-CSS076] */
    width: 100%; /* [OPC-CSS077] */
    resize: vertical; /* [OPC-CSS078] */
    min-height: 72px; /* [OPC-CSS079] */
    border: 1px solid #dce3dd; /* [OPC-CSS080] */
    border-radius: 8px; /* [OPC-CSS081] */
    background: #fff; /* [OPC-CSS082] */
    color: #17211b; /* [OPC-CSS083] */
    padding: 9px; /* [OPC-CSS084] */
    font: inherit; /* [OPC-CSS085] */
    outline: none; /* [OPC-CSS086] */
} /* [OPC-CSS087] */
.operations-create-grid-form .operations-field textarea:focus { /* [OPC-CSS088] */
    border-color: #6d8e78; /* [OPC-CSS089] */
    box-shadow: 0 0 0 3px rgba(36, 75, 51, .08); /* [OPC-CSS090] */
} /* [OPC-CSS091] */
.operations-create-wide { /* [OPC-CSS092] */
    grid-column: 1 / -1; /* [OPC-CSS093] */
} /* [OPC-CSS094] */
.operations-create-hint { /* [OPC-CSS095] */
    margin-top: -4px; /* [OPC-CSS096] */
    color: #78837b; /* [OPC-CSS097] */
    font-size: 10px; /* [OPC-CSS098] */
    line-height: 1.35; /* [OPC-CSS099] */
} /* [OPC-CSS100] */
.operations-create-calc { /* [OPC-CSS101] */
    padding: 11px 12px; /* [OPC-CSS102] */
    border: 1px solid #d9e2db; /* [OPC-CSS103] */
    border-radius: 9px; /* [OPC-CSS104] */
    background: #f3f7f4; /* [OPC-CSS105] */
    color: #244b33; /* [OPC-CSS106] */
    font-size: 12px; /* [OPC-CSS107] */
    font-weight: 800; /* [OPC-CSS108] */
} /* [OPC-CSS109] */
.required-mark { /* [OPC-CSS110] */
    color: #a13c3c; /* [OPC-CSS111] */
} /* [OPC-CSS112] */
.operations-create-actions { /* [OPC-CSS113] */
    display: flex; /* [OPC-CSS114] */
    justify-content: flex-end; /* [OPC-CSS115] */
    gap: 8px; /* [OPC-CSS116] */
    padding-top: 13px; /* [OPC-CSS117] */
    border-top: 1px solid #edf0ed; /* [OPC-CSS118] */
} /* [OPC-CSS119] */
.operations-create-actions .primary-button, /* [OPC-CSS120] */
.operations-create-actions .secondary-button { /* [OPC-CSS121] */
    min-height: 38px; /* [OPC-CSS122] */
    padding: 8px 16px; /* [OPC-CSS123] */
} /* [OPC-CSS124] */
@media (max-width: 680px) { /* [OPC-CSS125] */
    .operations-create-modal-layer { /* [OPC-CSS126] */
        padding: 10px; /* [OPC-CSS127] */
    } /* [OPC-CSS128] */
    .operations-create-modal { /* [OPC-CSS129] */
        width: 100%; /* [OPC-CSS130] */
        padding: 14px; /* [OPC-CSS131] */
    } /* [OPC-CSS132] */
    .operations-create-account-row, /* [OPC-CSS133] */
    .operations-create-grid-form { /* [OPC-CSS134] */
        grid-template-columns: 1fr; /* [OPC-CSS135] */
    } /* [OPC-CSS136] */
    .operations-create-wide { /* [OPC-CSS137] */
        grid-column: auto; /* [OPC-CSS138] */
    } /* [OPC-CSS139] */
    .operations-create-actions { /* [OPC-CSS140] */
        flex-direction: column-reverse; /* [OPC-CSS141] */
    } /* [OPC-CSS142] */
} /* [OPC-CSS143] */


/* ====================== [OPERATIONS V3] Vertical infinite scroll ====================== */
/* Таблиця має власний вертикальний скрол; заголовок залишається sticky. */
.operations-table-wrap {
    max-height: calc(100vh - 405px);
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

/* Нижній статус замість нумерованої пагінації. */
.operations-scroll-status {
    min-height: 38px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #edf0ed;
    color: #7a847d;
    font-size: 11px;
}

/* ====================== [OPERATIONS V4] Окремий екран «Рух коштів» ====================== */
.operations-control-screen[hidden],
.operations-history-screen[hidden] {
    display: none !important;
}

.operations-control-stack {
    display: grid;
    gap: 14px;
}

.operations-history-screen {
    display: grid;
    gap: 14px;
}

.operations-history-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
}

.operations-history-title-block h2 {
    margin: 2px 0 4px;
    font-size: 22px;
}

.operations-history-summary {
    color: #758078;
    font-size: 13px;
    line-height: 1.4;
}

.operations-history-header .operations-action-notice {
    grid-column: 1 / -1;
    margin-top: 0;
}

.operations-back-button {
    white-space: nowrap;
}

.operations-history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 14px;
    align-items: start;
}

.operations-history-table-panel {
    min-width: 0;
}

.operations-history-details-panel {
    position: sticky;
    top: 18px;
    max-height: calc(100vh - 130px);
    overflow: auto;
}

body.operations-history-open .operations-table-wrap {
    max-height: calc(100vh - 245px);
}

body.operations-history-open .content {
    padding-bottom: 12px;
}

@media (max-width: 1180px) {
    .operations-history-layout {
        grid-template-columns: 1fr;
    }

    .operations-history-details-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .operations-history-header {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .operations-back-button {
        width: 100%;
    }
}

/* ====================== REPORTS V2: сторінка «Звіти» ====================== */
.reports-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
body.reports-page-open .reports-header-actions {
    display: flex;
}
body.reports-page-open .home-header-actions,
body.reports-page-open .operations-header-actions,
body.reports-page-open .topbar-users-actions {
    display: none !important;
}
body.reports-page-open .content {
    padding-top: 18px;
    padding-right: 24px;
    padding-bottom: 20px;
    padding-left: 24px;
}
body.reports-page-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
}
body.reports-page-open #pageTitle {
    font-size: 30px;
}
.reports-page {
    display: grid;
    gap: 12px;
}
.reports-filter-panel,
.reports-main-panel,
.reports-currency-panel,
.reports-reversal-panel {
    padding: 14px;
    border-radius: 12px;
}
.reports-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
.reports-panel-head h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.reports-status,
.reports-loading {
    color: #748078;
    font-size: 11px;
}
.reports-filter-grid {
    display: grid;
    grid-template-columns: 180px 180px minmax(260px, 360px) 160px;
    gap: 10px;
    align-items: end;
}
.reports-field {
    display: grid;
    gap: 5px;
    color: #68766d;
    font-size: 11px;
    font-weight: 700;
}
.reports-field input,
.reports-field select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #dce3dd;
    border-radius: 8px;
    background: #fff;
    color: #17211b;
    padding: 7px 9px;
    outline: none;
}
.reports-field input:focus,
.reports-field select:focus {
    border-color: #6d8e78;
    box-shadow: 0 0 0 3px rgba(36, 75, 51, .08);
}
.reports-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.reports-filter-actions .primary-button,
.reports-filter-actions .secondary-button {
    min-height: 36px;
    padding: 7px 13px;
}
.reports-main-head {
    align-items: flex-start;
}
.reports-type-tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.reports-type-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #cfd8d1;
    border-radius: 8px;
    background: #fff;
    color: #31513d;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}
.reports-type-button:hover {
    background: #f5f8f6;
}
.reports-type-button.active {
    background: #244b33;
    border-color: #244b33;
    color: #fff;
}
.reports-table-wrap {
    overflow: auto;
    border: 1px solid #edf0ed;
    border-radius: 9px;
    max-height: 355px;
}
.reports-summary-wrap {
    max-height: 260px;
}
.reports-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 11px;
}
.reports-table th,
.reports-table td {
    height: 34px;
    padding: 7px 9px;
    border-bottom: 1px solid #edf0ed;
    white-space: nowrap;
    line-height: 1.2;
}
.reports-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafbfa;
    color: #657168;
    font-size: 9px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.reports-table tbody tr:hover td {
    background: #fbfcfb;
}
.reports-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.reports-number.positive {
    color: #2c7a43;
}
.reports-number.negative {
    color: #a23c3c;
}
.reports-control-cell {
    text-align: center;
}
.reports-control-ok {
    display: inline-flex;
    min-width: 34px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f5ec;
    color: #1d6438;
    font-size: 10px;
    font-weight: 800;
}
.reports-control-error {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1f1;
    color: #9b3030;
    font-size: 10px;
    font-weight: 800;
}
.reports-reversal-panel {
    border-color: #eadfd1;
    background: #fffdf9;
}
.reports-error-box {
    padding: 14px;
}
@media (max-width: 1180px) {
    .reports-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reports-main-head {
        flex-direction: column;
    }
    .reports-type-tabs {
        justify-content: flex-start;
    }
}
@media (max-width: 760px) {
    body.reports-page-open .content {
        padding: 16px;
    }
    .reports-filter-grid {
        grid-template-columns: 1fr;
    }
    .reports-header-actions {
        gap: 6px;
    }
    .reports-header-actions .primary-button,
    .reports-header-actions .secondary-button {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* ====================== REPORTS V2 END ====================== */

/* ====================== DIRECTORIES V1: сторінка «Довідники» ====================== */
.directories-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
body.directories-page-open .directories-header-actions {
    display: flex;
}
body.directories-page-open .home-header-actions,
body.directories-page-open .operations-header-actions,
body.directories-page-open .reports-header-actions,
body.directories-page-open .topbar-users-actions {
    display: none !important;
}
body.directories-page-open .content {
    padding-top: 18px;
    padding-right: 24px;
    padding-bottom: 20px;
    padding-left: 24px;
}
body.directories-page-open .topbar {
    min-height: 44px;
    margin-bottom: 0;
}
body.directories-page-open #pageTitle {
    font-size: 30px;
}
.directories-global-search {
    width: min(310px, 24vw);
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d9e1dc;
    border-radius: 10px;
    background: #fff;
    color: #728078;
}
.directories-global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17211b;
    font-size: 14px;
}
.directories-page {
    display: grid;
    gap: 14px;
}
.directories-subtitle {
    margin: -2px 0 2px;
    color: #738078;
    font-size: 14px;
}
.directories-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.directory-summary-card {
    min-width: 0;
    min-height: 112px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e1e7e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(31, 50, 39, .045);
}
.directory-summary-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f1f5f2;
    color: #254b34;
    font-size: 18px;
    font-weight: 800;
}
.directory-summary-card > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.directory-summary-card span:not(.directory-summary-icon) {
    color: #35443a;
    font-size: 13px;
    font-weight: 700;
}
.directory-summary-card strong {
    margin-top: 1px;
    color: #0f1712;
    font-size: 25px;
    line-height: 1.05;
}
.directory-summary-card small {
    margin-top: 4px;
    color: #88928c;
    font-size: 11px;
}
.directories-workspace {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.directories-sidebar-stack,
.directories-main-stack {
    min-width: 0;
    display: grid;
    gap: 12px;
}
.directories-section-panel,
.directories-quick-panel,
.directories-table-panel,
.directories-details-panel {
    padding: 14px;
    border-radius: 12px;
}
.directories-section-panel h2,
.directories-quick-panel h2 {
    margin: 0 0 10px;
    color: #18231c;
    font-size: 15px;
}
.directories-section-list,
.directories-quick-list {
    display: grid;
    gap: 7px;
}
.directories-section-list button,
.directories-quick-list button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid #dde4df;
    border-radius: 9px;
    background: #fff;
    color: #26352b;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.directories-section-list button:hover,
.directories-quick-list button:hover {
    background: #f6f9f7;
    border-color: #cdd8d0;
}
.directories-section-list button.active,
.directories-section-list button.active-related {
    background: #dff0e4;
    border-color: #d4e9da;
    color: #173c27;
}
.directories-section-list button.active {
    box-shadow: inset 3px 0 0 #2b7045;
}
.directories-section-list button span,
.directories-quick-list button span {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    color: #315d42;
    font-weight: 800;
}
.directories-panel-head {
    min-height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 11px;
}
.directories-panel-head h2 {
    margin: 0;
    color: #162019;
    font-size: 18px;
    letter-spacing: -.02em;
}
.directories-panel-head p {
    margin: 3px 0 0;
    color: #7b867f;
    font-size: 12px;
}
.directories-loading {
    color: #748078;
    font-size: 11px;
}
.directories-toolbar {
    display: grid;
    grid-template-columns: 175px 175px minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}
.directories-field {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #6f7a72;
    font-size: 11px;
    font-weight: 700;
}
.directories-field input,
.directories-field select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e1dc;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #17211b;
    font-size: 13px;
}
.directories-field input:focus,
.directories-field select:focus {
    border-color: #779684;
    box-shadow: 0 0 0 3px rgba(36, 75, 51, .07);
}
.directories-name-search {
    min-width: 210px;
}
.directories-context-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.directories-context-actions .primary-button,
.directories-context-actions .secondary-button,
.directories-details-actions .primary-button,
.directories-details-actions .secondary-button,
.directories-details-actions .danger-button {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}
.directories-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #e3e8e5;
    border-radius: 10px;
}
.directories-table {
    width: 100%;
    min-width: 890px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.directories-table th,
.directories-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #edf0ee;
    vertical-align: middle;
    white-space: nowrap;
}
.directories-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7f5;
    color: #5f6b63;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: none;
}
.directories-table tbody tr:last-child td {
    border-bottom: 0;
}
.directories-table tbody tr {
    cursor: pointer;
    transition: background .12s ease;
}
.directories-table tbody tr:hover td {
    background: #f7faf8;
}
.directories-table tbody tr.selected td {
    background: #e8f3eb;
}
.directories-table td strong {
    display: block;
    color: #1c2921;
    font-weight: 700;
}
.directories-table td small {
    display: block;
    margin-top: 2px;
    color: #8a948e;
    font-size: 10px;
}
.directories-open-button {
    min-height: 31px;
    padding: 5px 10px;
    border: 1px solid #ccd7d0;
    border-radius: 7px;
    background: #fff;
    color: #2b4433;
    cursor: pointer;
    font-size: 12px;
}
.directories-open-button:hover {
    background: #f3f7f4;
}
.directories-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.directories-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aa39e;
}
.directories-status.active {
    color: #22643c;
}
.directories-status.active i {
    background: #24844b;
}
.directories-status.inactive {
    color: #9a4747;
}
.directories-status.inactive i {
    background: #b65353;
}
.directories-direction {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}
.directories-direction.income {
    background: #dff1e5;
    color: #21703d;
}
.directories-direction.expense {
    background: #f8dddd;
    color: #ab3e3e;
}
.directories-direction.transfer {
    background: #deedf9;
    color: #2e6f9e;
}
.directories-direction.exchange {
    background: #eee5f6;
    color: #6d4b8d;
}
.directories-badge-cell {
    white-space: normal !important;
}
.directories-table-footer {
    margin-top: 8px;
    color: #7a857e;
    font-size: 11px;
}
.directories-details-panel {
    min-height: 165px;
}
.directories-details-head {
    align-items: center;
}
.directories-details-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.directories-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 38px;
    row-gap: 0;
    padding: 10px 12px;
    border: 1px solid #e7ebe8;
    border-radius: 10px;
    background: #fff;
}
.directories-detail-row {
    min-width: 0;
    min-height: 31px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #f0f2f1;
    font-size: 12px;
}
.directories-detail-row:nth-last-child(-n+2) {
    border-bottom: 0;
}
.directories-detail-row span:first-child {
    color: #738078;
}
.directories-detail-row strong {
    max-width: 66%;
    color: #1c2921;
    text-align: right;
    overflow-wrap: anywhere;
}
body.directories-modal-open {
    overflow: hidden;
}
.directories-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 24, 16, .46);
}
.directories-modal-layer[hidden] {
    display: none;
}
.directories-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #dbe3dd;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(11, 24, 16, .22);
}
.directories-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e9edea;
}
.directories-modal-head h2 {
    margin: 3px 0 0;
    font-size: 21px;
}
.directories-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #d9e1dc;
    border-radius: 9px;
    background: #fff;
    color: #59675e;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.directories-modal-form {
    margin-top: 14px;
}
.directories-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.directories-wide {
    grid-column: 1 / -1;
}
.directories-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid #dfe5e1;
    border-radius: 9px;
    background: #fafbfa;
}
.directories-check {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34443a;
    font-size: 12px;
    font-weight: 500;
}
.directories-check input {
    width: auto;
    min-height: 0;
    margin: 0;
}
.directories-field small {
    color: #879089;
    font-size: 10px;
    font-weight: 500;
}
.directories-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #e9edea;
}
.directories-modal-message {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
}
.directories-modal-message.error {
    background: #f8e3e3;
    color: #913737;
}
.directories-modal-message.ok {
    background: #e3f2e8;
    color: #1d6438;
}
@media (max-width: 1320px) {
    .directories-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .directories-toolbar {
        grid-template-columns: 150px 150px minmax(220px, 1fr);
    }
    .directories-context-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
@media (max-width: 980px) {
    .directories-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .directories-global-search {
        width: 100%;
    }
    .directories-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .directories-workspace {
        grid-template-columns: 1fr;
    }
    .directories-section-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .directories-quick-panel {
        display: none;
    }
    .directories-details-grid {
        grid-template-columns: 1fr;
    }
    .directories-detail-row:nth-last-child(-n+2) {
        border-bottom: 1px solid #f0f2f1;
    }
    .directories-detail-row:last-child {
        border-bottom: 0;
    }
}
@media (max-width: 680px) {
    body.directories-page-open .content {
        padding: 16px 12px;
    }
    .directories-summary-grid,
    .directories-section-list,
    .directories-toolbar,
    .directories-form-grid,
    .directories-check-grid {
        grid-template-columns: 1fr;
    }
    .directories-wide,
    .directories-context-actions {
        grid-column: auto;
    }
    .directories-details-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .directories-details-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
/* ====================== DIRECTORIES V1 END ======================================= */

/* ====================== DIRECTORIES DETAIL MODAL V1.1 ====================== */ /* [DIR-MOD-CSS001] */
/* Нижня постійна картка більше не займає місце — деталі відкриваються у modal. */ /* [DIR-MOD-CSS002] */
.directories-details-panel { display: none !important; }                              /* [DIR-MOD-CSS003] */
.directories-modal-detail { display: grid; gap: 12px; }                              /* [DIR-MOD-CSS004] */
.directories-modal-detail .directories-details-grid {                                /* [DIR-MOD-CSS005] */
    grid-template-columns: repeat(2, minmax(0, 1fr));                                /* [DIR-MOD-CSS006] */
    padding: 12px 14px;                                                              /* [DIR-MOD-CSS007] */
    background: #fbfcfb;                                                             /* [DIR-MOD-CSS008] */
}                                                                                    /* [DIR-MOD-CSS009] */
.directories-modal-detail-actions { align-items: center; }                           /* [DIR-MOD-CSS010] */
.directories-modal-detail-actions .secondary-button:last-child { margin-left: auto; } /* [DIR-MOD-CSS011] */
@media (max-width: 680px) {                                                          /* [DIR-MOD-CSS012] */
    .directories-modal-detail .directories-details-grid { grid-template-columns: 1fr; } /* [DIR-MOD-CSS013] */
    .directories-modal-detail .directories-detail-row { border-bottom: 1px solid #f0f2f1; } /* [DIR-MOD-CSS014] */
    .directories-modal-detail-actions { flex-wrap: wrap; }                          /* [DIR-MOD-CSS015] */
}                                                                                    /* [DIR-MOD-CSS016] */

/* ====================== DIRECTORIES CATEGORY CARDS V2 ====================== */ /* [DCR-CSS001] */
body.directories-category-cards-mode .directories-summary-grid { display: none; }    /* [DCR-CSS002] */
body.directories-category-cards-mode .directories-table-panel { overflow: visible; } /* [DCR-CSS003] */
body.directories-category-cards-mode .directories-table-wrap {                     /* [DCR-CSS004] */
    overflow: visible;                                                               /* [DCR-CSS005] */
    border: 0;                                                                        /* [DCR-CSS006] */
    background: transparent;                                                         /* [DCR-CSS007] */
}                                                                                   /* [DCR-CSS008] */
body.directories-category-cards-mode .directories-toolbar {                         /* [DCR-CSS009] */
    grid-template-columns: 175px minmax(240px, 1fr) auto;                            /* [DCR-CSS010] */
}                                                                                   /* [DCR-CSS011] */
body.directories-category-cards-mode #directoriesTypeField { display: none !important; } /* [DCR-CSS012] */
body.directories-category-cards-mode .directories-quick-panel { display: none; }     /* [DCR-CSS013] */
.directories-category-account-filter {                                               /* [DCR-CSS014] */
    display: flex;                                                                    /* [DCR-CSS015] */
    align-items: center;                                                              /* [DCR-CSS016] */
    gap: 7px;                                                                         /* [DCR-CSS017] */
    overflow-x: auto;                                                                 /* [DCR-CSS018] */
    padding: 2px 0 10px;                                                             /* [DCR-CSS019] */
    scrollbar-width: thin;                                                           /* [DCR-CSS020] */
}                                                                                   /* [DCR-CSS021] */
.directories-category-filter-label {                                                 /* [DCR-CSS022] */
    flex: 0 0 auto;                                                                   /* [DCR-CSS023] */
    color: #26352b;                                                                   /* [DCR-CSS024] */
    font-size: 12px;                                                                  /* [DCR-CSS025] */
    font-weight: 800;                                                                 /* [DCR-CSS026] */
}                                                                                   /* [DCR-CSS027] */
.directories-category-account-filter button {                                        /* [DCR-CSS028] */
    flex: 0 0 auto;                                                                   /* [DCR-CSS029] */
    min-height: 34px;                                                                 /* [DCR-CSS030] */
    padding: 7px 12px;                                                                /* [DCR-CSS031] */
    border: 1px solid #dce4df;                                                        /* [DCR-CSS032] */
    border-radius: 999px;                                                             /* [DCR-CSS033] */
    background: #f7f9f8;                                                             /* [DCR-CSS034] */
    color: #33443a;                                                                   /* [DCR-CSS035] */
    font-size: 12px;                                                                  /* [DCR-CSS036] */
    cursor: pointer;                                                                  /* [DCR-CSS037] */
}                                                                                   /* [DCR-CSS038] */
.directories-category-account-filter button.active {                                 /* [DCR-CSS039] */
    border-color: #236b43;                                                           /* [DCR-CSS040] */
    background: #24794b;                                                             /* [DCR-CSS041] */
    color: #fff;                                                                      /* [DCR-CSS042] */
}                                                                                   /* [DCR-CSS043] */
.directories-category-grid {                                                          /* [DCR-CSS044] */
    display: grid;                                                                    /* [DCR-CSS045] */
    grid-template-columns: repeat(3, minmax(230px, 1fr));                            /* [DCR-CSS046] */
    gap: 12px;                                                                        /* [DCR-CSS047] */
    align-items: start;                                                               /* [DCR-CSS048] */
}                                                                                   /* [DCR-CSS049] */
.directories-category-card,                                                          /* [DCR-CSS050] */
.directories-category-add-card {                                                     /* [DCR-CSS051] */
    min-width: 0;                                                                     /* [DCR-CSS052] */
    border: 1px solid #dde5e0;                                                       /* [DCR-CSS053] */
    border-radius: 13px;                                                             /* [DCR-CSS054] */
    background: #fff;                                                                 /* [DCR-CSS055] */
    box-shadow: 0 6px 20px rgba(31, 50, 39, .045);                                  /* [DCR-CSS056] */
    overflow: hidden;                                                                 /* [DCR-CSS057] */
}                                                                                   /* [DCR-CSS058] */
.directories-category-card.inactive { opacity: .62; }                               /* [DCR-CSS059] */
.directories-category-card-head {                                                    /* [DCR-CSS060] */
    display: grid;                                                                    /* [DCR-CSS061] */
    grid-template-columns: minmax(0, 1fr) auto 30px;                                 /* [DCR-CSS062] */
    gap: 7px;                                                                         /* [DCR-CSS063] */
    align-items: center;                                                              /* [DCR-CSS064] */
    padding: 10px 10px 9px;                                                          /* [DCR-CSS065] */
}                                                                                   /* [DCR-CSS066] */
.directories-category-card.income .directories-category-card-head { background: #edf8f1; } /* [DCR-CSS067] */
.directories-category-card.expense .directories-category-card-head { background: #fff0f0; } /* [DCR-CSS068] */
.directories-category-card.transfer .directories-category-card-head,                /* [DCR-CSS069] */
.directories-category-card.exchange .directories-category-card-head { background: #edf5ff; } /* [DCR-CSS070] */
.directories-category-card-main {                                                    /* [DCR-CSS071] */
    min-width: 0;                                                                     /* [DCR-CSS072] */
    display: flex;                                                                    /* [DCR-CSS073] */
    align-items: center;                                                              /* [DCR-CSS074] */
    gap: 9px;                                                                         /* [DCR-CSS075] */
    padding: 0;                                                                       /* [DCR-CSS076] */
    border: 0;                                                                        /* [DCR-CSS077] */
    background: transparent;                                                         /* [DCR-CSS078] */
    color: inherit;                                                                   /* [DCR-CSS079] */
    text-align: left;                                                                 /* [DCR-CSS080] */
    cursor: pointer;                                                                  /* [DCR-CSS081] */
}                                                                                   /* [DCR-CSS082] */
.directories-category-op-icon {                                                      /* [DCR-CSS083] */
    width: 34px;                                                                      /* [DCR-CSS084] */
    height: 34px;                                                                     /* [DCR-CSS085] */
    flex: 0 0 34px;                                                                   /* [DCR-CSS086] */
    display: grid;                                                                    /* [DCR-CSS087] */
    place-items: center;                                                              /* [DCR-CSS088] */
    border-radius: 50%;                                                               /* [DCR-CSS089] */
    background: #e9efeb;                                                             /* [DCR-CSS090] */
    color: #536159;                                                                   /* [DCR-CSS091] */
    font-size: 18px;                                                                  /* [DCR-CSS092] */
    font-weight: 900;                                                                 /* [DCR-CSS093] */
}                                                                                   /* [DCR-CSS094] */
.directories-category-card.income .directories-category-op-icon { background: #d9f0e1; color: #167341; } /* [DCR-CSS095] */
.directories-category-card.expense .directories-category-op-icon { background: #ffdede; color: #c93434; } /* [DCR-CSS096] */
.directories-category-card.transfer .directories-category-op-icon,                  /* [DCR-CSS097] */
.directories-category-card.exchange .directories-category-op-icon { background: #dcecff; color: #246bb8; } /* [DCR-CSS098] */
.directories-category-title-wrap {                                                   /* [DCR-CSS099] */
    min-width: 0;                                                                     /* [DCR-CSS100] */
    display: grid;                                                                    /* [DCR-CSS101] */
    gap: 2px;                                                                         /* [DCR-CSS102] */
}                                                                                   /* [DCR-CSS103] */
.directories-category-title-wrap strong {                                            /* [DCR-CSS104] */
    overflow: hidden;                                                                 /* [DCR-CSS105] */
    color: #162219;                                                                   /* [DCR-CSS106] */
    font-size: 14px;                                                                  /* [DCR-CSS107] */
    text-overflow: ellipsis;                                                         /* [DCR-CSS108] */
    white-space: nowrap;                                                              /* [DCR-CSS109] */
}                                                                                   /* [DCR-CSS110] */
.directories-category-title-wrap small { color: #77827b; font-size: 10px; }         /* [DCR-CSS111] */
.directories-category-account-count { color: #425148; font-size: 12px; font-weight: 800; } /* [DCR-CSS112] */
.directories-category-menu {                                                         /* [DCR-CSS113] */
    width: 30px;                                                                      /* [DCR-CSS114] */
    height: 30px;                                                                     /* [DCR-CSS115] */
    border: 0;                                                                        /* [DCR-CSS116] */
    border-radius: 7px;                                                               /* [DCR-CSS117] */
    background: transparent;                                                         /* [DCR-CSS118] */
    color: #536159;                                                                   /* [DCR-CSS119] */
    cursor: pointer;                                                                  /* [DCR-CSS120] */
    font-size: 18px;                                                                  /* [DCR-CSS121] */
}                                                                                   /* [DCR-CSS122] */
.directories-category-menu:hover { background: rgba(0,0,0,.04); }                   /* [DCR-CSS123] */
.directories-category-expand,                                                        /* [DCR-CSS124] */
.directories-category-accounts {                                                     /* [DCR-CSS125] */
    width: 100%;                                                                      /* [DCR-CSS126] */
    display: flex;                                                                    /* [DCR-CSS127] */
    align-items: center;                                                              /* [DCR-CSS128] */
    justify-content: space-between;                                                   /* [DCR-CSS129] */
    gap: 8px;                                                                         /* [DCR-CSS130] */
    padding: 9px 12px;                                                                /* [DCR-CSS131] */
    border: 0;                                                                        /* [DCR-CSS132] */
    border-top: 1px solid #edf1ee;                                                   /* [DCR-CSS133] */
    background: #fff;                                                                 /* [DCR-CSS134] */
    color: #33443a;                                                                   /* [DCR-CSS135] */
    text-align: left;                                                                 /* [DCR-CSS136] */
    font-size: 12px;                                                                  /* [DCR-CSS137] */
    cursor: pointer;                                                                  /* [DCR-CSS138] */
}                                                                                   /* [DCR-CSS139] */
.directories-category-accounts { color: #536159; font-size: 11px; }                 /* [DCR-CSS140] */
.directories-category-subpanel {                                                     /* [DCR-CSS141] */
    padding: 0 10px 9px;                                                             /* [DCR-CSS142] */
    border-top: 1px solid #edf1ee;                                                   /* [DCR-CSS143] */
    background: #fbfcfb;                                                             /* [DCR-CSS144] */
}                                                                                   /* [DCR-CSS145] */
.directories-category-subpanel ul {                                                  /* [DCR-CSS146] */
    max-height: 220px;                                                                /* [DCR-CSS147] */
    overflow-y: auto;                                                                 /* [DCR-CSS148] */
    margin: 0;                                                                        /* [DCR-CSS149] */
    padding: 6px 0;                                                                   /* [DCR-CSS150] */
    list-style: none;                                                                 /* [DCR-CSS151] */
}                                                                                   /* [DCR-CSS152] */
.directories-category-subpanel li {                                                  /* [DCR-CSS153] */
    min-height: 31px;                                                                 /* [DCR-CSS154] */
    display: flex;                                                                    /* [DCR-CSS155] */
    align-items: center;                                                              /* [DCR-CSS156] */
    padding: 5px 7px;                                                                 /* [DCR-CSS157] */
    border-bottom: 1px solid #eef1ef;                                                /* [DCR-CSS158] */
    color: #26352b;                                                                   /* [DCR-CSS159] */
    font-size: 12px;                                                                  /* [DCR-CSS160] */
}                                                                                   /* [DCR-CSS161] */
.directories-category-subpanel li::before { content: '•'; margin-right: 8px; color: #2d7950; } /* [DCR-CSS162] */
.directories-category-subpanel li.inactive { opacity: .48; }                        /* [DCR-CSS163] */
.directories-category-add-sub {                                                      /* [DCR-CSS164] */
    width: 100%;                                                                      /* [DCR-CSS165] */
    min-height: 34px;                                                                 /* [DCR-CSS166] */
    border: 1px solid #bcd8c7;                                                       /* [DCR-CSS167] */
    border-radius: 8px;                                                               /* [DCR-CSS168] */
    background: #edf8f1;                                                             /* [DCR-CSS169] */
    color: #216b40;                                                                   /* [DCR-CSS170] */
    font-size: 12px;                                                                  /* [DCR-CSS171] */
    font-weight: 700;                                                                 /* [DCR-CSS172] */
    cursor: pointer;                                                                  /* [DCR-CSS173] */
}                                                                                   /* [DCR-CSS174] */
.directories-category-add-card {                                                     /* [DCR-CSS175] */
    min-height: 140px;                                                                /* [DCR-CSS176] */
    display: grid;                                                                    /* [DCR-CSS177] */
    place-items: center;                                                              /* [DCR-CSS178] */
    align-content: center;                                                            /* [DCR-CSS179] */
    gap: 5px;                                                                         /* [DCR-CSS180] */
    border-style: dashed;                                                             /* [DCR-CSS181] */
    color: #5c6961;                                                                   /* [DCR-CSS182] */
    cursor: pointer;                                                                  /* [DCR-CSS183] */
}                                                                                   /* [DCR-CSS184] */
.directories-category-add-card span { font-size: 30px; color: #7e8c84; }            /* [DCR-CSS185] */
.directories-category-add-card strong { color: #243229; font-size: 14px; }          /* [DCR-CSS186] */
.directories-category-add-card small { color: #87918b; font-size: 10px; }           /* [DCR-CSS187] */
.directories-category-add-card:hover { background: #f8faf8; }                       /* [DCR-CSS188] */
.directories-category-form-hero,                                                     /* [DCR-CSS189] */
.directories-category-manage-hero {                                                  /* [DCR-CSS190] */
    display: flex;                                                                    /* [DCR-CSS191] */
    align-items: center;                                                              /* [DCR-CSS192] */
    gap: 12px;                                                                        /* [DCR-CSS193] */
    margin-bottom: 15px;                                                              /* [DCR-CSS194] */
}                                                                                   /* [DCR-CSS195] */
.directories-category-form-hero > span,                                              /* [DCR-CSS196] */
.directories-category-manage-icon {                                                  /* [DCR-CSS197] */
    width: 48px;                                                                      /* [DCR-CSS198] */
    height: 48px;                                                                     /* [DCR-CSS199] */
    flex: 0 0 48px;                                                                   /* [DCR-CSS200] */
    display: grid;                                                                    /* [DCR-CSS201] */
    place-items: center;                                                              /* [DCR-CSS202] */
    border-radius: 12px;                                                              /* [DCR-CSS203] */
    background: #e4f4ea;                                                             /* [DCR-CSS204] */
    color: #15703d;                                                                   /* [DCR-CSS205] */
    font-size: 25px;                                                                  /* [DCR-CSS206] */
    font-weight: 800;                                                                 /* [DCR-CSS207] */
}                                                                                   /* [DCR-CSS208] */
.directories-category-form-hero div,                                                 /* [DCR-CSS209] */
.directories-category-manage-hero div { display: grid; gap: 2px; }                  /* [DCR-CSS210] */
.directories-category-form-hero strong,                                              /* [DCR-CSS211] */
.directories-category-manage-hero strong { color: #17211b; font-size: 19px; }       /* [DCR-CSS212] */
.directories-category-form-hero small,                                               /* [DCR-CSS213] */
.directories-category-manage-hero small { color: #7c8780; font-size: 12px; }        /* [DCR-CSS214] */
.directories-category-manage-status {                                                /* [DCR-CSS215] */
    margin-left: auto;                                                                /* [DCR-CSS216] */
    padding: 6px 10px;                                                                /* [DCR-CSS217] */
    border-radius: 999px;                                                             /* [DCR-CSS218] */
    background: #e5f5eb;                                                             /* [DCR-CSS219] */
    color: #237043;                                                                   /* [DCR-CSS220] */
    font-size: 11px;                                                                  /* [DCR-CSS221] */
    font-weight: 800;                                                                 /* [DCR-CSS222] */
}                                                                                   /* [DCR-CSS223] */
.directories-category-manage-tabs {                                                  /* [DCR-CSS224] */
    display: flex;                                                                    /* [DCR-CSS225] */
    gap: 18px;                                                                         /* [DCR-CSS226] */
    margin: 0 0 14px;                                                                 /* [DCR-CSS227] */
    border-bottom: 1px solid #e8ece9;                                                 /* [DCR-CSS228] */
    color: #758078;                                                                   /* [DCR-CSS229] */
    font-size: 11px;                                                                  /* [DCR-CSS230] */
}                                                                                   /* [DCR-CSS231] */
.directories-category-manage-tabs span { padding: 0 0 9px; }                        /* [DCR-CSS232] */
.directories-category-manage-tabs span.active { border-bottom: 2px solid #267448; color: #205f3c; font-weight: 800; } /* [DCR-CSS233] */
.directories-category-account-options {                                             /* [DCR-CSS234] */
    max-height: 210px;                                                               /* [DCR-CSS235] */
    overflow-y: auto;                                                                 /* [DCR-CSS236] */
    display: grid;                                                                    /* [DCR-CSS237] */
    grid-template-columns: repeat(2, minmax(0, 1fr));                                /* [DCR-CSS238] */
    gap: 7px;                                                                         /* [DCR-CSS239] */
    padding: 8px;                                                                     /* [DCR-CSS240] */
    border: 1px solid #dce4df;                                                       /* [DCR-CSS241] */
    border-radius: 9px;                                                               /* [DCR-CSS242] */
    background: #fbfcfb;                                                             /* [DCR-CSS243] */
}                                                                                   /* [DCR-CSS244] */
.directories-category-account-option {                                              /* [DCR-CSS245] */
    display: flex;                                                                    /* [DCR-CSS246] */
    align-items: center;                                                              /* [DCR-CSS247] */
    gap: 8px;                                                                         /* [DCR-CSS248] */
    padding: 7px 8px;                                                                 /* [DCR-CSS249] */
    border: 1px solid #edf0ee;                                                       /* [DCR-CSS250] */
    border-radius: 8px;                                                               /* [DCR-CSS251] */
    background: #fff;                                                                 /* [DCR-CSS252] */
    cursor: pointer;                                                                  /* [DCR-CSS253] */
}                                                                                   /* [DCR-CSS254] */
.directories-category-account-option span { min-width: 0; display: grid; gap: 1px; } /* [DCR-CSS255] */
.directories-category-account-option strong { overflow: hidden; color: #26352b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } /* [DCR-CSS256] */
.directories-category-account-option small { color: #89928d; font-size: 9px; }      /* [DCR-CSS257] */
.directories-category-form-note { margin-top: 3px; color: #8a948e; font-size: 10px; font-weight: 500; line-height: 1.4; } /* [DCR-CSS258] */
.directories-category-account-chips {                                               /* [DCR-CSS259] */
    display: flex;                                                                    /* [DCR-CSS260] */
    flex-wrap: wrap;                                                                  /* [DCR-CSS261] */
    gap: 6px;                                                                         /* [DCR-CSS262] */
    min-height: 38px;                                                                 /* [DCR-CSS263] */
    align-items: center;                                                              /* [DCR-CSS264] */
    padding: 7px 8px;                                                                 /* [DCR-CSS265] */
    border: 1px solid #dce4df;                                                       /* [DCR-CSS266] */
    border-radius: 9px;                                                               /* [DCR-CSS267] */
    background: #fbfcfb;                                                             /* [DCR-CSS268] */
}                                                                                   /* [DCR-CSS269] */
.directories-category-account-chip {                                                /* [DCR-CSS270] */
    padding: 5px 8px;                                                                 /* [DCR-CSS271] */
    border-radius: 7px;                                                               /* [DCR-CSS272] */
    background: #edf1ee;                                                             /* [DCR-CSS273] */
    color: #33443a;                                                                   /* [DCR-CSS274] */
    font-size: 10px;                                                                  /* [DCR-CSS275] */
    font-weight: 700;                                                                 /* [DCR-CSS276] */
}                                                                                   /* [DCR-CSS277] */
.directories-category-empty { color: #87918b; font-size: 11px; }                    /* [DCR-CSS278] */
.directories-category-active-switch {                                               /* [DCR-CSS279] */
    min-height: 42px;                                                                 /* [DCR-CSS280] */
    display: grid;                                                                    /* [DCR-CSS281] */
    grid-template-columns: auto auto 1fr;                                             /* [DCR-CSS282] */
    gap: 8px;                                                                         /* [DCR-CSS283] */
    align-items: center;                                                              /* [DCR-CSS284] */
    color: #26352b;                                                                   /* [DCR-CSS285] */
    font-size: 12px;                                                                  /* [DCR-CSS286] */
}                                                                                   /* [DCR-CSS287] */
.directories-category-active-switch input { display: none; }                        /* [DCR-CSS288] */
.directories-category-active-switch > span {                                        /* [DCR-CSS289] */
    width: 38px;                                                                      /* [DCR-CSS290] */
    height: 22px;                                                                     /* [DCR-CSS291] */
    position: relative;                                                               /* [DCR-CSS292] */
    border-radius: 999px;                                                             /* [DCR-CSS293] */
    background: #c9d1cc;                                                             /* [DCR-CSS294] */
}                                                                                   /* [DCR-CSS295] */
.directories-category-active-switch > span::after {                                 /* [DCR-CSS296] */
    content: '';                                                                       /* [DCR-CSS297] */
    width: 16px;                                                                      /* [DCR-CSS298] */
    height: 16px;                                                                     /* [DCR-CSS299] */
    position: absolute;                                                               /* [DCR-CSS300] */
    top: 3px;                                                                         /* [DCR-CSS301] */
    left: 3px;                                                                        /* [DCR-CSS302] */
    border-radius: 50%;                                                               /* [DCR-CSS303] */
    background: #fff;                                                                 /* [DCR-CSS304] */
    transition: transform .15s ease;                                                  /* [DCR-CSS305] */
}                                                                                   /* [DCR-CSS306] */
.directories-category-active-switch input:checked + span { background: #1f8a4d; }   /* [DCR-CSS307] */
.directories-category-active-switch input:checked + span::after { transform: translateX(16px); } /* [DCR-CSS308] */
.directories-category-active-switch small { grid-column: 3; color: #89928d; font-size: 10px; font-weight: 500; } /* [DCR-CSS309] */
.directories-category-manage-actions { align-items: center; }                       /* [DCR-CSS310] */
.directories-modal-actions-spacer { flex: 1; }                                      /* [DCR-CSS311] */
body.directories-category-cards-mode .directories-modal { width: min(760px, calc(100vw - 32px)); } /* [DCR-CSS312] */
@media (max-width: 1280px) {                                                        /* [DCR-CSS313] */
    .directories-category-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); } /* [DCR-CSS314] */
}                                                                                   /* [DCR-CSS315] */
@media (max-width: 900px) {                                                         /* [DCR-CSS316] */
    .directories-category-grid { grid-template-columns: 1fr; }                      /* [DCR-CSS317] */
    .directories-category-account-options { grid-template-columns: 1fr; }           /* [DCR-CSS318] */
    body.directories-category-cards-mode .directories-toolbar { grid-template-columns: 1fr; } /* [DCR-CSS319] */
}                                                                                   /* [DCR-CSS320] */

/* ====================== TELEGRAM PAGE V1 ====================================== */
.telegram-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
body.telegram-page-open .telegram-header-actions {
    display: flex;
}
body.telegram-page-open .home-header-actions,
body.telegram-page-open .operations-header-actions,
body.telegram-page-open .reports-header-actions,
body.telegram-page-open .directories-header-actions,
body.telegram-page-open .topbar-users-actions {
    display: none !important;
}
body.telegram-page-open .content {
    padding: 18px 24px 20px;
}
body.telegram-page-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
    gap: 12px;
}
body.telegram-page-open #pageTitle {
    font-size: 30px;
}
.telegram-global-search {
    width: min(310px, 24vw);
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #dce3dd;
    border-radius: 10px;
    background: #ffffff;
    color: #647068;
}
.telegram-global-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17211b;
    font-size: 13px;
}
.telegram-page {
    display: none;
}
.telegram-page.active {
    display: grid;
    gap: 12px;
}
.telegram-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.telegram-summary-card {
    min-height: 104px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #dfe6e1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 50, 39, .04);
    overflow: hidden;
}
.telegram-summary-card.status { background: linear-gradient(135deg, #ffffff 0%, #f3fbf6 100%); }
.telegram-summary-card.users { background: linear-gradient(135deg, #ffffff 0%, #fff8ee 100%); }
.telegram-summary-card.commands { background: linear-gradient(135deg, #ffffff 0%, #f3f7fd 100%); }
.telegram-summary-card.sessions { background: linear-gradient(135deg, #ffffff 0%, #fbf5ff 100%); }
.telegram-summary-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
}
.status .telegram-summary-icon { background: #dff2e6; color: #16884b; }
.users .telegram-summary-icon { background: #fff0d7; color: #ae6500; }
.commands .telegram-summary-icon { background: #e3eefc; color: #2576cc; }
.sessions .telegram-summary-icon { background: #efe2fa; color: #8a48bd; }
.telegram-summary-copy { min-width: 0; }
.telegram-summary-label {
    color: #5e6b63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.telegram-summary-value {
    margin-top: 2px;
    color: #0f1d15;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.04em;
}
.telegram-summary-note {
    margin-top: 7px;
    color: #6d776f;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.telegram-main-grid {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(620px, 1.25fr);
    gap: 12px;
    align-items: stretch;
}
.telegram-panel {
    padding: 0;
    overflow: hidden;
}
.telegram-panel-head {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid #e8ece9;
}
.telegram-panel-head h2 {
    margin: 0;
    color: #142119;
    font-size: 17px;
    line-height: 1.2;
}
.telegram-panel-head span {
    color: #778079;
    font-size: 12px;
}
.telegram-commands-list {
    display: grid;
    gap: 6px;
    padding: 10px 16px 14px;
}
.telegram-command-row {
    min-height: 38px;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    align-items: center;
    border: 1px solid #e4e9e5;
    border-radius: 9px;
    overflow: hidden;
    background: #fbfcfb;
}
.telegram-command-row code {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #e4f3e9;
    color: #116637;
    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
}
.telegram-command-row span {
    padding: 0 16px;
    color: #4f5a53;
    font-size: 13px;
}
.telegram-functions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 14px 14px;
}
.telegram-function-card {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e2e9e4;
    border-radius: 11px;
    background: #f6faf7;
}
.telegram-function-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}
.telegram-function-card strong {
    display: block;
    color: #142119;
    font-size: 14px;
}
.telegram-function-card span:not(.telegram-function-icon) {
    display: block;
    margin-top: 4px;
    color: #6c766f;
    font-size: 11px;
    line-height: 1.25;
}
.tone-income .telegram-function-icon,
.tone-balance .telegram-function-icon { background: #dff2e6; color: #16884b; }
.tone-expense .telegram-function-icon { background: #fde4e7; color: #cc3550; }
.tone-transfer .telegram-function-icon,
.tone-recent .telegram-function-icon { background: #e3eefc; color: #2576cc; }
.tone-exchange .telegram-function-icon { background: #efe2fa; color: #8a48bd; }
.tone-reversal .telegram-function-icon { background: #fff0d7; color: #b56a08; }
.telegram-activity-panel {
    padding: 0;
    overflow: hidden;
}
.telegram-activity-wrap {
    overflow-x: auto;
}
.telegram-activity-table {
    margin: 0;
    font-size: 13px;
}
.telegram-activity-table th,
.telegram-activity-table td {
    padding: 10px 16px;
}
.telegram-activity-table th:nth-child(1) { width: 18%; }
.telegram-activity-table th:nth-child(2) { width: 22%; }
.telegram-activity-table th:nth-child(3) { width: 48%; }
.telegram-activity-table th:nth-child(4) { width: 12%; }
.telegram-activity-empty-row td {
    padding: 0;
}
.telegram-activity-empty {
    min-height: 96px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 18px;
    text-align: center;
    color: #6e7971;
}
.telegram-activity-empty strong {
    color: #344239;
    font-size: 13px;
}
.telegram-activity-empty span {
    font-size: 12px;
}
.telegram-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #778079;
    font-size: 13px;
}
.telegram-telemetry-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #eef1ef;
    color: #6f7772;
    font-size: 10px;
    font-weight: 800;
}
@media (max-width: 1450px) {
    .telegram-functions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .telegram-main-grid { grid-template-columns: minmax(390px, .9fr) minmax(540px, 1.1fr); }
}
@media (max-width: 1180px) {
    .telegram-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .telegram-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .telegram-header-actions { width: 100%; }
    .telegram-global-search { width: 100%; }
    .telegram-summary-grid { grid-template-columns: 1fr; }
    .telegram-functions-grid { grid-template-columns: 1fr 1fr; }
    .telegram-command-row { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .telegram-functions-grid { grid-template-columns: 1fr; }
    .telegram-command-row { grid-template-columns: 1fr; }
    .telegram-command-row code,
    .telegram-command-row span { min-height: 36px; }
}
/* ====================== TELEGRAM PAGE V1 END ================================== */

/* ====================== TELEGRAM TELEMETRY V2 ================================ */
.telegram-summary-card.status.telemetry-online {
    border-color: #bfe3cd;
}
.telegram-summary-card.status.telemetry-offline {
    border-color: #ead4d4;
}
.telegram-summary-card.status.telemetry-online .telegram-summary-value {
    color: #146f40;
}
.telegram-summary-card.status.telemetry-offline .telegram-summary-value {
    color: #a84242;
}
.telegram-telemetry-badge.telemetry-online {
    background: #e2f4e8;
    color: #146f40;
}
.telegram-telemetry-badge.telemetry-offline {
    background: #f8e7e7;
    color: #a84242;
}
.telegram-telemetry-badge.telemetry-waiting {
    background: #eef1ef;
    color: #6f7772;
}
.telegram-activity-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e4f3e9;
    color: #146f40;
    font-size: 10px;
    font-weight: 850;
}
.telegram-activity-status.offline {
    background: #f8e7e7;
    color: #a84242;
}
.telegram-activity-status.online {
    background: #e3eefc;
    color: #2469ac;
}
/* ====================== TELEGRAM TELEMETRY V2 END ============================ */



/* ====================== SYSTEM STATUS PAGE ==================================== */
.system-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
body.system-page-open .system-header-actions {
    display: flex;
}
body.system-page-open .home-header-actions,
body.system-page-open .operations-header-actions,
body.system-page-open .reports-header-actions,
body.system-page-open .directories-header-actions,
body.system-page-open .telegram-header-actions,
body.system-page-open .topbar-users-actions {
    display: none !important;
}
body.system-page-open .content {
    padding: 18px 24px 20px;
}
body.system-page-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
    gap: 12px;
}
body.system-page-open #pageTitle {
    font-size: 30px;
}
.system-status-page {
    gap: 14px;
}

.system-status-page.active {
    display: grid;
}
.system-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #dce7de;
    background: #f7fbf8;
}
.system-banner.is-loading {
    opacity: .92;
}
.system-banner.is-ok {
    background: linear-gradient(180deg, #f4fbf5 0%, #f7fbf8 100%);
    border-color: #cfe2d2;
}
.system-banner.is-warning {
    background: linear-gradient(180deg, #fff9ef 0%, #fffdfa 100%);
    border-color: #edd8b1;
}
.system-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #11823b;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}
.system-banner.is-warning .system-banner-icon {
    background: #c68a19;
}
.system-banner-copy {
    display: grid;
    gap: 4px;
}
.system-banner-copy strong {
    font-size: 18px;
    line-height: 1.2;
}
.system-banner-copy span,
.system-banner-meta {
    color: #5f6e64;
    font-size: 14px;
}
.system-service-grid,
.system-metrics-grid,
.system-config-grid {
    display: grid;
    gap: 12px;
}
.system-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.system-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.system-config-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.system-service-card,
.system-metric-card,
.system-config-item {
    border: 1px solid #dfe6e1;
    border-radius: 16px;
    background: #fff;
}
.system-service-card {
    padding: 16px 16px 14px;
}
.system-service-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.system-service-head h3 {
    margin: 0 0 6px;
    font-size: 16px;
}
.system-service-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef5ef;
    color: #1f6d36;
    font-size: 24px;
    font-weight: 900;
}
.system-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.system-badge.ok {
    background: #daf0df;
    color: #1c7c3a;
}
.system-badge.error {
    background: #f9e4d6;
    color: #a65d10;
}
.system-service-body {
    display: grid;
    gap: 10px;
}
.system-service-row,
.system-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.system-service-row span,
.system-config-item span {
    color: #68756d;
    font-size: 14px;
}
.system-service-row strong,
.system-config-item strong {
    font-size: 14px;
    text-align: right;
}
.system-section {
    padding: 16px 18px 18px;
}
.system-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.system-section-head h2 {
    margin: 0;
    font-size: 16px;
}
.system-inline-link {
    color: #2d76d2;
    font-size: 14px;
    text-decoration: none;
}
.system-metric-card {
    padding: 18px 18px 16px;
}
.system-metric-title {
    color: #68756d;
    font-size: 14px;
    margin-bottom: 8px;
}
.system-metric-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}
.system-metric-note {
    color: #1b8d42;
    font-size: 13px;
    font-weight: 700;
}
.system-metric-card.tone-warn .system-metric-note {
    color: #a65d10;
}
.system-dual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}
.system-table-wrap {
    overflow-x: auto;
}
.system-table {
    width: 100%;
    border-collapse: collapse;
}
.system-table th,
.system-table td {
    padding: 11px 8px;
    border-bottom: 1px solid #edf1ee;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}
.system-table th {
    color: #69746d;
    font-size: 12px;
    font-weight: 800;
}
.system-level {
    display: inline-flex;
    min-width: 54px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.system-level.info {
    background: #dceafc;
    color: #2f75d3;
}
.system-level.warn {
    background: #fae8bf;
    color: #9c6a0c;
}
.system-config-item {
    padding: 14px 16px;
}
@media (max-width: 1380px) {
    .system-service-grid,
    .system-metrics-grid,
    .system-config-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 960px) {
    .system-banner {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .system-dual-grid,
    .system-service-grid,
    .system-metrics-grid,
    .system-config-grid {
        grid-template-columns: 1fr;
    }
    .system-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ====================== UNIFIED PAGE LAYOUT V1 ====================== */
/* Єдина геометрія сторінок. Дизайн і внутрішній вміст не змінюються. */

/* 1. Головна */
body.home-dashboard-open .content {
    padding: 18px 24px 20px;
}

body.home-dashboard-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
    gap: 12px;
}

/* 2. Користувачі */
body.users-list-open .content {
    padding: 18px 24px 20px;
}

body.users-list-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
    gap: 12px;
}

/* 3. Довідники */
body.directories-page-open .content {
    padding: 18px 24px 20px;
}

body.directories-page-open .topbar {
    min-height: 44px;
    margin-bottom: 12px;
    gap: 12px;
}

/* 4. Єдиний розмір заголовка сторінок, де він відображається */
body.operations-page-open #pageTitle,
body.reports-page-open #pageTitle,
body.directories-page-open #pageTitle,
body.telegram-page-open #pageTitle,
body.system-page-open #pageTitle {
    font-size: 30px;
}

/* ====================== UNIFIED PAGE HEADERS V1 ====================== */
/* Єдина компактна шапка. Внутрішній дизайн сторінок не змінюється. */

/* 1. Однакова геометрія верхньої панелі. */
body.home-dashboard-open .topbar,
body.operations-page-open .topbar,
body.reports-page-open .topbar,
body.users-list-open .topbar,
body.directories-page-open .topbar,
body.telegram-page-open .topbar,
body.system-page-open .topbar {
    min-height: 44px;
    margin-bottom: 8px;
    gap: 12px;
    align-items: center;
}

/* 2. ADMIN PANEL однакового розміру. */
body.home-dashboard-open .topbar .eyebrow,
body.operations-page-open .topbar .eyebrow,
body.reports-page-open .topbar .eyebrow,
body.users-list-open .topbar .eyebrow,
body.directories-page-open .topbar .eyebrow,
body.telegram-page-open .topbar .eyebrow,
body.system-page-open .topbar .eyebrow {
    margin: 0;
    font-size: 10px;
    line-height: 1;
}

/* 3. Назва сторінки завжди показується та має один розмір. */
body.home-dashboard-open #pageTitle,
body.operations-page-open #pageTitle,
body.reports-page-open #pageTitle,
body.users-list-open #pageTitle,
body.directories-page-open #pageTitle,
body.telegram-page-open #pageTitle,
body.system-page-open #pageTitle {
    display: block;
    margin: 3px 0 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ====================== SYSTEM STATUS 100% COMPACT V1 ====================== */
/* Оптимізація тільки геометрії сторінки «Стан системи» для 100% zoom. */

/* 1. Загальна щільність сторінки. */
body.system-page-open #systemView.system-status-page {
    gap: 8px;
}

/* 2. Верхній статус системи. */
body.system-page-open .system-banner {
    min-height: 44px;
    padding: 8px 12px;
    gap: 10px;
}

body.system-page-open .system-banner-icon {
    width: 36px;
    height: 36px;
}

body.system-page-open .system-banner-copy {
    gap: 2px;
}

body.system-page-open .system-banner-copy strong {
    line-height: 1.1;
}

body.system-page-open .system-banner-copy span,
body.system-page-open .system-banner-meta {
    line-height: 1.15;
}

/* 3. Чотири картки сервісів. */
body.system-page-open .system-service-grid {
    gap: 8px;
}

body.system-page-open .system-service-card {
    padding: 10px 12px;
}

body.system-page-open .system-service-head {
    gap: 8px;
    margin-bottom: 6px;
}

body.system-page-open .system-service-icon {
    width: 34px;
    height: 34px;
}

body.system-page-open .system-service-body {
    gap: 4px;
}

body.system-page-open .system-service-row {
    min-height: 20px;
    padding: 1px 0;
}

/* 4. Загальні секції. */
body.system-page-open .system-section {
    padding: 10px 12px;
}

body.system-page-open .system-section-head {
    min-height: 26px;
    margin-bottom: 6px;
}

body.system-page-open .system-section-head h2 {
    margin: 0;
    line-height: 1.1;
}

/* 5. Ключові показники. */
body.system-page-open .system-metrics-grid {
    gap: 8px;
}

body.system-page-open .system-metric-card {
    min-height: 58px;
    padding: 8px 10px;
}

/* 6. Журнал системи + остання активність. */
body.system-page-open .system-dual-grid {
    gap: 8px;
}

body.system-page-open .system-table th,
body.system-page-open .system-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.15;
}

/* 7. Конфігурація. */
body.system-page-open .system-config-grid {
    gap: 6px 8px;
}

body.system-page-open .system-config-item {
    min-height: 30px;
    padding: 5px 8px;
}

/* 8. Прибираємо зайвий вертикальний простір самої сторінки. */
body.system-page-open .content {
    padding-top: 12px;
    padding-bottom: 12px;
}

body.system-page-open .topbar {
    min-height: 40px;
    margin-bottom: 6px;
}

/* ====================== REPORTS CLEANUP V1 ====================== */
/* Прибрано зайві візуальні блоки. Розрахунки та JS не змінюються. */

body.reports-page-open .reports-currency-panel {
    display: none !important;
}

body.reports-page-open #reportsReversalPanel {
    display: none !important;
}

/* ====================== DIRECTORIES 100% COMPACT V1 ====================== */
/* Оптимізація геометрії «Довідників» для 100% zoom. */

/* 1. Компактна робоча область. */
body.directories-page-open .content {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* 2. Зменшуємо вертикальні проміжки сторінки. */
body.directories-page-open .directories-page {
    gap: 8px;
}

/* 3. Робоча область. */
body.directories-page-open .directories-workspace {
    gap: 8px;
}

/* 4. Основні панелі. */
body.directories-page-open .directories-section-panel,
body.directories-page-open .directories-quick-panel,
body.directories-page-open .directories-table-panel,
body.directories-page-open .directories-details-panel {
    padding: 10px;
}

/* 5. Панель фільтрів. */
body.directories-page-open .directories-toolbar {
    gap: 8px;
    margin-bottom: 7px;
}

/* 6. Сітка категорій. */
body.directories-page-open .directories-category-grid {
    gap: 8px;
}

/* 7. Табличний режим: таблиця використовує доступну висоту екрана. */
body.directories-page-open:not(.directories-category-cards-mode) .directories-table-wrap {
    max-height: calc(100vh - 245px);
    overflow-x: auto;
    overflow-y: auto;
}

/* 8. Компактні рядки таблиці без зміни шрифту. */
body.directories-page-open .directories-table th,
body.directories-page-open .directories-table td {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* 9. Верхня панель залишається в єдиному стандарті сайту. */
body.directories-page-open .topbar {
    min-height: 44px;
    margin-bottom: 8px;
}

/* ====================== DIRECTORIES ACCOUNTS SUMMARY V1 ====================== */
/* Верхні показники довідників показуються тільки у розділі «Акаунти». */

/* 1. В інших розділах блок повністю прибирається. */
body.directories-page-open .directories-summary-grid {
    display: none !important;
}

/* 2. В «Акаунти» блок повертається. */
body.directories-page-open.directories-accounts-mode .directories-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

/* 3. Компактні картки. */
body.directories-page-open.directories-accounts-mode .directory-summary-card {
    min-height: 72px;
    padding: 8px 10px;
    gap: 8px;
    align-items: center;
}

/* 4. Компактні іконки. */
body.directories-page-open.directories-accounts-mode .directory-summary-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

/* 5. Зменшуємо вертикальні проміжки всередині картки. */
body.directories-page-open.directories-accounts-mode .directory-summary-card > div {
    gap: 1px;
}

/* 6. Основне число залишається добре читабельним. */
body.directories-page-open.directories-accounts-mode .directory-summary-value {
    line-height: 1;
}

/* 7. Після приховування summary не залишаємо порожнього місця. */
body.directories-page-open:not(.directories-accounts-mode) .directories-page {
    gap: 8px;
}


/* ====================== [HOME: transaction count] ========================= */
.home-transaction-count-card {
    grid-template-columns: minmax(0, 1fr);
}

.home-transaction-count-card .home-balance-code {
    white-space: nowrap;
}


/* ====================== HOME: 5 balance cards ============================== */
@media (min-width: 1251px) {
    .home-balance-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }
}

/* HOME BALANCE FONT SIZE V1 BEGIN */                                           /* [HBF001] */

/* Збільшений шрифт таблиці «Баланс на акаунтах». */                            /* [HBF002] */
body.home-dashboard-open #homeActiveAccounts .home-table {                      /* [HBF003] */
    font-size: 16px !important;                                                 /* [HBF004] */
}                                                                               /* [HBF005] */

/* Заголовки колонок UAH / USD / EUR / PLN. */                                  /* [HBF006] */
body.home-dashboard-open #homeActiveAccounts .home-table th {                   /* [HBF007] */
    font-size: 14px !important;                                                 /* [HBF008] */
    font-weight: 800 !important;                                                /* [HBF009] */
}                                                                               /* [HBF010] */

/* Назви акаунтів робимо виразнішими. */                                        /* [HBF011] */
body.home-dashboard-open #homeActiveAccounts .home-table td:first-child {       /* [HBF012] */
    font-size: 16px !important;                                                 /* [HBF013] */
    font-weight: 700 !important;                                                /* [HBF014] */
}                                                                               /* [HBF015] */

/* Кнопка «Відкрити». */                                                        /* [HBF016] */
body.home-dashboard-open #homeActiveAccounts .home-table button {               /* [HBF017] */
    font-size: 14px !important;                                                 /* [HBF018] */
}                                                                               /* [HBF019] */

/* HOME BALANCE FONT SIZE V1 END */                                             /* [HBF020] */



/* ====================== AUTH: Sidebar logout ==================================== */
.sidebar { display: flex; flex-direction: column; min-height: 100vh; }                  /* [ASC001] */
.sidebar nav { flex: 0 0 auto; }                                                          /* [ASC002] */
.sidebar-session-status { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.045); color: #dce5df; } /* [ASC003] */
.sidebar-session-status__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #aebcb2; } /* [ASC004] */
.sidebar-session-status__time { min-width: 52px; text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: #ffffff; } /* [ASC005] */
.sidebar-session-status.warning .sidebar-session-status__time { color: #ffd27a; }          /* [ASC006] */
.sidebar-logout { margin-top: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; text-align: left; color: #f0f5f1; background: rgba(255,255,255,.06); cursor: pointer; } /* [ASC007] */
.sidebar-logout:hover { background: #2b3d31; color: white; }                              /* [ASC008] */
.sidebar-logout:disabled { cursor: default; opacity: .55; }                               /* [ASC009] */
@media (max-width: 900px) {                                                              /* [ASC010] */
    .sidebar { min-height: auto; }                                                       /* [ASC011] */
    .sidebar-session-status { margin-top: 12px; }                                        /* [ASC012] */
    .sidebar-logout { margin-top: 8px; }                                                 /* [ASC013] */
}                                                                                        /* [ASC014] */

/* ====================== THEME: Day / Night ======================================= */ /* [THEME-CSS001] */
.theme-toggle { min-height: 38px; border: 1px solid #b8c5bc; border-radius: 10px; background: #ffffff; color: #244b33; padding: 8px 12px; cursor: pointer; font-weight: 800; white-space: nowrap; } /* [THEME-CSS002] */
.theme-toggle:hover { background: #f4f7f4; }                                             /* [THEME-CSS003] */
.theme-toggle-auth { position: fixed; top: 20px; right: 20px; z-index: 10020; box-shadow: 0 8px 24px rgba(0,0,0,.12); } /* [THEME-CSS004] */
html[data-theme="dark"] { color-scheme: dark; background: #0f151c; }                    /* [THEME-CSS005] */
html[data-theme="dark"] body { background: #0f151c; color: #e7edf1; }                  /* [THEME-CSS006] */
html[data-theme="dark"] .content { background: #0f151c; color: #e7edf1; }              /* [THEME-CSS007] */
html[data-theme="dark"] .topbar { color: #eef3f5; }                                     /* [THEME-CSS008] */
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .muted, html[data-theme="dark"] .card-label, html[data-theme="dark"] .card-note, html[data-theme="dark"] .panel p, html[data-theme="dark"] th { color: #9eabb4 !important; } /* [THEME-CSS009] */
html[data-theme="dark"] .card, html[data-theme="dark"] .panel, html[data-theme="dark"] .home-panel, html[data-theme="dark"] .home-balance-card, html[data-theme="dark"] .summary-card, html[data-theme="dark"] .editor-card, html[data-theme="dark"] .profile-hero, html[data-theme="dark"] .profile-section, html[data-theme="dark"] .profile-edit-section, html[data-theme="dark"] .system-service-card, html[data-theme="dark"] .system-metric-card, html[data-theme="dark"] .directories-card, html[data-theme="dark"] .telegram-card { background: #171e28 !important; border-color: #2b3743 !important; color: #e7edf1; box-shadow: 0 8px 30px rgba(0,0,0,.16); } /* [THEME-CSS010] */
html[data-theme="dark"] .home-table-wrap, html[data-theme="dark"] .users-table-wrap, html[data-theme="dark"] .system-table-wrap, html[data-theme="dark"] .operations-table-wrap, html[data-theme="dark"] .reports-table-wrap, html[data-theme="dark"] .directories-table-wrap { background: #171e28 !important; border-color: #2b3743 !important; } /* [THEME-CSS011] */
html[data-theme="dark"] table, html[data-theme="dark"] tbody, html[data-theme="dark"] tr, html[data-theme="dark"] td { color: #dce5ea; border-color: #2b3743 !important; } /* [THEME-CSS012] */
html[data-theme="dark"] .clickable-row:hover, html[data-theme="dark"] tr:hover { background: #1d2732; } /* [THEME-CSS013] */
html[data-theme="dark"] .selected-row { background: #203229 !important; }               /* [THEME-CSS014] */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea, html[data-theme="dark"] .home-search-box, html[data-theme="dark"] .directories-global-search, html[data-theme="dark"] .telegram-global-search { background: #111923 !important; border-color: #33414e !important; color: #eef3f5 !important; } /* [THEME-CSS015] */
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #81909b; } /* [THEME-CSS016] */
html[data-theme="dark"] .secondary-button, html[data-theme="dark"] .theme-toggle { background: #18232d; border-color: #40505d; color: #dce7df; } /* [THEME-CSS017] */
html[data-theme="dark"] .secondary-button:hover, html[data-theme="dark"] .theme-toggle:hover { background: #22313d; } /* [THEME-CSS018] */
html[data-theme="dark"] .danger-button { background: #352225; border-color: #714348; color: #ffb8bd; } /* [THEME-CSS019] */
html[data-theme="dark"] .badge.loading { background: #27313a; color: #b3bec6; }         /* [THEME-CSS020] */
html[data-theme="dark"] .details-section, html[data-theme="dark"] .editor-card { background: #151d26 !important; border-color: #2b3743 !important; } /* [THEME-CSS021] */
html[data-theme="dark"] .detail-row span, html[data-theme="dark"] .details-muted, html[data-theme="dark"] .editor-field, html[data-theme="dark"] .editor-note { color: #98a6af !important; } /* [THEME-CSS022] */
html[data-theme="dark"] .system-banner { background: #171e28 !important; border-color: #2b3743 !important; color: #e7edf1; } /* [THEME-CSS023] */
html[data-theme="dark"] .system-service-row, html[data-theme="dark"] .system-config-item { border-color: #2b3743 !important; } /* [THEME-CSS024] */
html[data-theme="dark"] .system-service-row span, html[data-theme="dark"] .system-config-item span, html[data-theme="dark"] .system-metric-title, html[data-theme="dark"] .system-metric-note, html[data-theme="dark"] .system-banner-meta { color: #9eabb4 !important; } /* [THEME-CSS025] */
html[data-theme="dark"] .operations-control-screen, html[data-theme="dark"] .operations-history-screen, html[data-theme="dark"] .reports-control-screen, html[data-theme="dark"] .reports-history-screen, html[data-theme="dark"] .directories-page, html[data-theme="dark"] .telegram-page, html[data-theme="dark"] .system-status-page { color: #e7edf1; } /* [THEME-CSS026] */
html[data-theme="dark"] .modal-layer, html[data-theme="dark"] [class*="modal-layer"] { background: rgba(0,0,0,.68) !important; } /* [THEME-CSS027] */
html[data-theme="dark"] [class*="modal"] [class*="content"], html[data-theme="dark"] [class*="dialog"], html[data-theme="dark"] [class*="drawer"] { background: #171e28 !important; border-color: #2b3743 !important; color: #e7edf1; } /* [THEME-CSS028] */
html[data-theme="dark"] a { color: #7eb8ff; }                                           /* [THEME-CSS029] */
@media (max-width: 900px) { .theme-toggle-auth { top: 12px; right: 12px; } }             /* [THEME-CSS030] */

/* ====================== THEME: Dark contrast fix V2 ================================ */ /* [THEME-DARK-V2-001] */
/* Підсилює читабельність нічної теми без зміни світлої теми. */                         /* [THEME-DARK-V2-002] */
html[data-theme="dark"] .content h1,                                                       /* [THEME-DARK-V2-003] */
html[data-theme="dark"] .content h2,                                                       /* [THEME-DARK-V2-004] */
html[data-theme="dark"] .content h3,                                                       /* [THEME-DARK-V2-005] */
html[data-theme="dark"] .content h4,                                                       /* [THEME-DARK-V2-006] */
html[data-theme="dark"] .content strong {                                                 /* [THEME-DARK-V2-007] */
    color: #f3f7f5 !important;                                                            /* [THEME-DARK-V2-008] */
}                                                                                         /* [THEME-DARK-V2-009] */

html[data-theme="dark"] .home-section-title,                                              /* [THEME-DARK-V2-010] */
html[data-theme="dark"] .home-panel-head h2,                                              /* [THEME-DARK-V2-011] */
html[data-theme="dark"] .home-balance-value,                                              /* [THEME-DARK-V2-012] */
html[data-theme="dark"] .home-table strong {                                              /* [THEME-DARK-V2-013] */
    color: #f5f8f6 !important;                                                            /* [THEME-DARK-V2-014] */
}                                                                                         /* [THEME-DARK-V2-015] */

html[data-theme="dark"] .home-balance-code {                                              /* [THEME-DARK-V2-016] */
    color: #b9c5cc !important;                                                            /* [THEME-DARK-V2-017] */
}                                                                                         /* [THEME-DARK-V2-018] */

html[data-theme="dark"] .home-balance-note {                                              /* [THEME-DARK-V2-019] */
    color: #9faeb7 !important;                                                            /* [THEME-DARK-V2-020] */
}                                                                                         /* [THEME-DARK-V2-021] */

html[data-theme="dark"] .home-table td {                                                  /* [THEME-DARK-V2-022] */
    color: #dce5ea !important;                                                            /* [THEME-DARK-V2-023] */
}                                                                                         /* [THEME-DARK-V2-024] */

html[data-theme="dark"] .home-table td:first-child {                                      /* [THEME-DARK-V2-025] */
    color: #f0f5f2 !important;                                                            /* [THEME-DARK-V2-026] */
}                                                                                         /* [THEME-DARK-V2-027] */

html[data-theme="dark"] table thead th,                                                   /* [THEME-DARK-V2-028] */
html[data-theme="dark"] .home-table th {                                                  /* [THEME-DARK-V2-029] */
    background: #202a35 !important;                                                       /* [THEME-DARK-V2-030] */
    color: #c7d2d9 !important;                                                            /* [THEME-DARK-V2-031] */
    border-color: #33414e !important;                                                     /* [THEME-DARK-V2-032] */
}                                                                                         /* [THEME-DARK-V2-033] */

html[data-theme="dark"] .home-table tbody tr:hover,                                       /* [THEME-DARK-V2-034] */
html[data-theme="dark"] table tbody tr:hover {                                            /* [THEME-DARK-V2-035] */
    background: #202a35 !important;                                                       /* [THEME-DARK-V2-036] */
}                                                                                         /* [THEME-DARK-V2-037] */

html[data-theme="dark"] .home-open-button {                                               /* [THEME-DARK-V2-038] */
    background: #21382b !important;                                                       /* [THEME-DARK-V2-039] */
    border-color: #3c694d !important;                                                     /* [THEME-DARK-V2-040] */
    color: #dff5e5 !important;                                                            /* [THEME-DARK-V2-041] */
}                                                                                         /* [THEME-DARK-V2-042] */

html[data-theme="dark"] .home-open-button:hover {                                         /* [THEME-DARK-V2-043] */
    background: #2a4937 !important;                                                       /* [THEME-DARK-V2-044] */
    color: #ffffff !important;                                                            /* [THEME-DARK-V2-045] */
}                                                                                         /* [THEME-DARK-V2-046] */

html[data-theme="dark"] .home-panel-head {                                                /* [THEME-DARK-V2-047] */
    border-color: #33414e !important;                                                     /* [THEME-DARK-V2-048] */
}                                                                                         /* [THEME-DARK-V2-049] */

html[data-theme="dark"] .home-balance-card[data-currency="UAH"],                         /* [THEME-DARK-V2-050] */
html[data-theme="dark"] .home-balance-card[data-currency="USD"],                         /* [THEME-DARK-V2-051] */
html[data-theme="dark"] .home-balance-card[data-currency="EUR"],                         /* [THEME-DARK-V2-052] */
html[data-theme="dark"] .home-balance-card[data-currency="PLN"] {                        /* [THEME-DARK-V2-053] */
    background: #171e28 !important;                                                       /* [THEME-DARK-V2-054] */
}                                                                                         /* [THEME-DARK-V2-055] */

html[data-theme="dark"] .users-table td,                                                 /* [THEME-DARK-V2-056] */
html[data-theme="dark"] .operations-table td,                                            /* [THEME-DARK-V2-057] */
html[data-theme="dark"] .reports-table td,                                               /* [THEME-DARK-V2-058] */
html[data-theme="dark"] .directories-table td,                                           /* [THEME-DARK-V2-059] */
html[data-theme="dark"] .system-table td {                                                /* [THEME-DARK-V2-060] */
    color: #dce5ea !important;                                                            /* [THEME-DARK-V2-061] */
}                                                                                         /* [THEME-DARK-V2-062] */

html[data-theme="dark"] .summary-title h3,                                                /* [THEME-DARK-V2-063] */
html[data-theme="dark"] .section-heading-row h3,                                         /* [THEME-DARK-V2-064] */
html[data-theme="dark"] .system-section-head h2,                                         /* [THEME-DARK-V2-065] */
html[data-theme="dark"] .directories-section-title,                                      /* [THEME-DARK-V2-066] */
html[data-theme="dark"] .telegram-section-title {                                         /* [THEME-DARK-V2-067] */
    color: #f3f7f5 !important;                                                            /* [THEME-DARK-V2-068] */
}                                                                                         /* [THEME-DARK-V2-069] */

html[data-theme="dark"] .summary-row span,                                                /* [THEME-DARK-V2-070] */
html[data-theme="dark"] .system-service-row span,                                         /* [THEME-DARK-V2-071] */
html[data-theme="dark"] .system-config-item span {                                         /* [THEME-DARK-V2-072] */
    color: #aebac2 !important;                                                            /* [THEME-DARK-V2-073] */
}                                                                                         /* [THEME-DARK-V2-074] */

html[data-theme="dark"] .topbar #pageTitle {                                              /* [THEME-DARK-V2-075] */
    color: #f5f8f6 !important;                                                            /* [THEME-DARK-V2-076] */
}                                                                                         /* [THEME-DARK-V2-077] */

html[data-theme="dark"] .topbar .eyebrow {                                                /* [THEME-DARK-V2-078] */
    color: #9fb0ba !important;                                                            /* [THEME-DARK-V2-079] */
}                                                                                         /* [THEME-DARK-V2-080] */


/* ====================== REPORTS FULLSCREEN V2 ============================ */ /* [RFS-C201] */

.reports-main-head {                                                            /* [RFS-C202] */
    gap: 10px;                                                                  /* [RFS-C203] */
}                                                                               /* [RFS-C204] */

.reports-fullscreen-button {                                                    /* [RFS-C205] */
    display: inline-flex;                                                       /* [RFS-C206] */
    align-items: center;                                                        /* [RFS-C207] */
    justify-content: center;                                                    /* [RFS-C208] */
    width: 38px;                                                                /* [RFS-C209] */
    height: 38px;                                                               /* [RFS-C210] */
    flex: 0 0 38px;                                                             /* [RFS-C211] */
    margin-left: 2px;                                                           /* [RFS-C212] */
    border: 1px solid #b8c5bc;                                                  /* [RFS-C213] */
    border-radius: 8px;                                                         /* [RFS-C214] */
    background: #ffffff;                                                        /* [RFS-C215] */
    color: #1f4d32;                                                             /* [RFS-C216] */
    cursor: pointer;                                                            /* [RFS-C217] */
    font-size: 21px;                                                            /* [RFS-C218] */
    font-weight: 800;                                                           /* [RFS-C219] */
    line-height: 1;                                                             /* [RFS-C220] */
}                                                                               /* [RFS-C221] */

.reports-fullscreen-button:hover {                                              /* [RFS-C222] */
    background: #eef5ef;                                                        /* [RFS-C223] */
}                                                                               /* [RFS-C224] */

body.reports-fullscreen-open {                                                  /* [RFS-C225] */
    overflow: hidden !important;                                                /* [RFS-C226] */
}                                                                               /* [RFS-C227] */

.reports-main-panel.reports-fullscreen {                                        /* [RFS-C228] */
    position: fixed !important;                                                 /* [RFS-C229] */
    inset: 0 !important;                                                        /* [RFS-C230] */
    z-index: 20000 !important;                                                  /* [RFS-C231] */
    display: flex !important;                                                   /* [RFS-C232] */
    flex-direction: column !important;                                          /* [RFS-C233] */
    width: 100vw !important;                                                    /* [RFS-C234] */
    height: 100vh !important;                                                   /* [RFS-C235] */
    max-width: none !important;                                                 /* [RFS-C236] */
    max-height: none !important;                                                /* [RFS-C237] */
    margin: 0 !important;                                                       /* [RFS-C238] */
    padding: 18px !important;                                                   /* [RFS-C239] */
    box-sizing: border-box !important;                                          /* [RFS-C240] */
    border-radius: 0 !important;                                                 /* [RFS-C241] */
    background: #ffffff !important;                                             /* [RFS-C242] */
}                                                                               /* [RFS-C243] */

.reports-main-panel.reports-fullscreen .reports-main-head {                     /* [RFS-C244] */
    flex: 0 0 auto !important;                                                  /* [RFS-C245] */
}                                                                               /* [RFS-C246] */

.reports-main-panel.reports-fullscreen .reports-table-wrap {                    /* [RFS-C247] */
    flex: 1 1 auto !important;                                                  /* [RFS-C248] */
    min-height: 0 !important;                                                   /* [RFS-C249] */
    height: auto !important;                                                    /* [RFS-C250] */
    max-height: none !important;                                                /* [RFS-C251] */
    overflow: auto !important;                                                  /* [RFS-C252] */
}                                                                               /* [RFS-C253] */

.reports-main-panel.reports-fullscreen .reports-table {                         /* [RFS-C254] */
    width: 100% !important;                                                     /* [RFS-C255] */
    min-width: 1100px;                                                          /* [RFS-C256] */
}                                                                               /* [RFS-C257] */

html[data-theme="dark"] .reports-fullscreen-button {                            /* [RFS-C258] */
    border-color: #40505d;                                                      /* [RFS-C259] */
    background: #1b2732;                                                        /* [RFS-C260] */
    color: #f3f7f8;                                                             /* [RFS-C261] */
}                                                                               /* [RFS-C262] */

html[data-theme="dark"] .reports-fullscreen-button:hover {                      /* [RFS-C263] */
    background: #263643;                                                        /* [RFS-C264] */
}                                                                               /* [RFS-C265] */

html[data-theme="dark"] .reports-main-panel.reports-fullscreen {                /* [RFS-C266] */
    background: #171e28 !important;                                             /* [RFS-C267] */
    border-color: #2c3945 !important;                                           /* [RFS-C268] */
}                                                                               /* [RFS-C269] */


/* ====================== OPERATIONS FULLSCREEN V1 ========================= */ /* [OFS-C001] */

.operations-fullscreen-button {                                                 /* [OFS-C002] */
    display: inline-flex;                                                       /* [OFS-C003] */
    align-items: center;                                                        /* [OFS-C004] */
    justify-content: center;                                                    /* [OFS-C005] */
    width: 38px;                                                                /* [OFS-C006] */
    height: 38px;                                                               /* [OFS-C007] */
    flex: 0 0 38px;                                                             /* [OFS-C008] */
    margin-left: auto;                                                          /* [OFS-C009] */
    border: 1px solid #b8c5bc;                                                  /* [OFS-C010] */
    border-radius: 8px;                                                         /* [OFS-C011] */
    background: #ffffff;                                                        /* [OFS-C012] */
    color: #1f4d32;                                                             /* [OFS-C013] */
    cursor: pointer;                                                            /* [OFS-C014] */
    font-size: 21px;                                                            /* [OFS-C015] */
    font-weight: 800;                                                           /* [OFS-C016] */
    line-height: 1;                                                             /* [OFS-C017] */
}                                                                               /* [OFS-C018] */

.operations-fullscreen-button:hover {                                           /* [OFS-C019] */
    background: #eef5ef;                                                        /* [OFS-C020] */
}                                                                               /* [OFS-C021] */

body.operations-fullscreen-open {                                               /* [OFS-C022] */
    overflow: hidden !important;                                                /* [OFS-C023] */
}                                                                               /* [OFS-C024] */

body.operations-fullscreen-open .operations-history-details-panel {             /* [OFS-C025] */
    display: none !important;                                                   /* [OFS-C026] */
}                                                                               /* [OFS-C027] */

.operations-history-table-panel.operations-fullscreen {                         /* [OFS-C028] */
    position: fixed !important;                                                 /* [OFS-C029] */
    inset: 0 !important;                                                        /* [OFS-C030] */
    z-index: 20000 !important;                                                  /* [OFS-C031] */
    display: flex !important;                                                   /* [OFS-C032] */
    flex-direction: column !important;                                          /* [OFS-C033] */
    width: 100vw !important;                                                    /* [OFS-C034] */
    height: 100vh !important;                                                   /* [OFS-C035] */
    max-width: none !important;                                                 /* [OFS-C036] */
    max-height: none !important;                                                /* [OFS-C037] */
    margin: 0 !important;                                                       /* [OFS-C038] */
    padding: 16px !important;                                                   /* [OFS-C039] */
    box-sizing: border-box !important;                                          /* [OFS-C040] */
    border-radius: 0 !important;                                                 /* [OFS-C041] */
    background: #ffffff !important;                                             /* [OFS-C042] */
}                                                                               /* [OFS-C043] */

.operations-history-table-panel.operations-fullscreen .operations-table-toolbar { /* [OFS-C044] */
    flex: 0 0 auto !important;                                                  /* [OFS-C045] */
}                                                                               /* [OFS-C046] */

.operations-history-table-panel.operations-fullscreen .operations-table-wrap {  /* [OFS-C047] */
    flex: 1 1 auto !important;                                                  /* [OFS-C048] */
    min-height: 0 !important;                                                   /* [OFS-C049] */
    height: auto !important;                                                    /* [OFS-C050] */
    max-height: none !important;                                                /* [OFS-C051] */
    overflow: auto !important;                                                  /* [OFS-C052] */
}                                                                               /* [OFS-C053] */

.operations-history-table-panel.operations-fullscreen .operations-table {       /* [OFS-C054] */
    width: 100% !important;                                                     /* [OFS-C055] */
    min-width: 1160px;                                                          /* [OFS-C056] */
}                                                                               /* [OFS-C057] */

.operations-history-table-panel.operations-fullscreen .operations-scroll-status { /* [OFS-C058] */
    flex: 0 0 auto;                                                             /* [OFS-C059] */
}                                                                               /* [OFS-C060] */

html[data-theme="dark"] .operations-fullscreen-button {                         /* [OFS-C061] */
    border-color: #40505d;                                                      /* [OFS-C062] */
    background: #1b2732;                                                        /* [OFS-C063] */
    color: #f3f7f8;                                                             /* [OFS-C064] */
}                                                                               /* [OFS-C065] */

html[data-theme="dark"] .operations-fullscreen-button:hover {                   /* [OFS-C066] */
    background: #263643;                                                        /* [OFS-C067] */
}                                                                               /* [OFS-C068] */

html[data-theme="dark"] .operations-history-table-panel.operations-fullscreen { /* [OFS-C069] */
    background: #171e28 !important;                                             /* [OFS-C070] */
    border-color: #2c3945 !important;                                           /* [OFS-C071] */
}                                                                               /* [OFS-C072] */


/* ====================== OPERATIONS EDIT V1 ================================= */ /* [OED-C001] */
.operations-edit-fixed {                                                                /* [OED-C002] */
    margin: -2px 0 14px;                                                               /* [OED-C003] */
    padding: 10px 12px;                                                                /* [OED-C004] */
    border-radius: 9px;                                                                 /* [OED-C005] */
    background: #eef5ef;                                                               /* [OED-C006] */
    color: #536258;                                                                    /* [OED-C007] */
    font-size: 13px;                                                                   /* [OED-C008] */
}                                                                                      /* [OED-C009] */
html[data-theme="dark"] .operations-edit-fixed {                                      /* [OED-C010] */
    background: #202d27;                                                               /* [OED-C011] */
    color: #bdc9c1;                                                                    /* [OED-C012] */
}                                                                                      /* [OED-C013] */


/* ====================== OPERATIONS DELETE V1 =============================== */ /* [ODL-C001] */
.operations-delete-modal {                                                              /* [ODL-C002] */
    max-width: 640px;                                                                   /* [ODL-C003] */
}                                                                                      /* [ODL-C004] */
.operations-delete-warning {                                                            /* [ODL-C005] */
    margin: 2px 0 14px;                                                                /* [ODL-C006] */
    padding: 12px 14px;                                                                /* [ODL-C007] */
    border: 1px solid #efc5c5;                                                         /* [ODL-C008] */
    border-radius: 9px;                                                                 /* [ODL-C009] */
    background: #fff4f4;                                                               /* [ODL-C010] */
    color: #9b3030;                                                                    /* [ODL-C011] */
    line-height: 1.45;                                                                  /* [ODL-C012] */
}                                                                                      /* [ODL-C013] */
.operations-delete-target {                                                             /* [ODL-C014] */
    margin-bottom: 14px;                                                               /* [ODL-C015] */
    padding: 11px 13px;                                                                /* [ODL-C016] */
    border-radius: 9px;                                                                 /* [ODL-C017] */
    background: #eef3ef;                                                               /* [ODL-C018] */
    color: #34473a;                                                                    /* [ODL-C019] */
}                                                                                      /* [ODL-C020] */
.operations-delete-target span {                                                        /* [ODL-C021] */
    color: #6d786f;                                                                    /* [ODL-C022] */
}                                                                                      /* [ODL-C023] */
html[data-theme="dark"] .operations-delete-warning {                                  /* [ODL-C024] */
    border-color: #704343;                                                             /* [ODL-C025] */
    background: #322326;                                                               /* [ODL-C026] */
    color: #ffbaba;                                                                    /* [ODL-C027] */
}                                                                                      /* [ODL-C028] */
html[data-theme="dark"] .operations-delete-target {                                   /* [ODL-C029] */
    background: #202d27;                                                               /* [ODL-C030] */
    color: #e2eae5;                                                                    /* [ODL-C031] */
}                                                                                      /* [ODL-C032] */
html[data-theme="dark"] .operations-delete-target span {                              /* [ODL-C033] */
    color: #aebbb2;                                                                    /* [ODL-C034] */
}                                                                                      /* [ODL-C035] */


/* ====================== ATLAS RECEIPTS 2FILES PREVIEW V1 ==================== */ /* [RCW-C001] */
.operation-receipt-view { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; border-radius: 8px; } /* [RCW-C002] */
.operation-receipt-view:hover { background: #f2f7f3; }                              /* [RCW-C003] */
.operation-receipt-content { min-width: 0; }                                        /* [RCW-C004] */
.operation-receipt-open-label { margin-top: 3px; color: #245b38; font-size: 10px; font-weight: 800; } /* [RCW-C005] */
.operations-receipt-preview-layer { position: fixed; inset: 0; z-index: 26000; display: grid; place-items: center; padding: 24px; background: rgba(18, 28, 22, .64); } /* [RCW-C006] */
.operations-receipt-preview-layer[hidden] { display: none !important; }             /* [RCW-C007] */
.operations-receipt-preview-modal { width: min(1100px, 94vw); max-height: 92vh; overflow: hidden; border: 1px solid #dfe6e0; border-radius: 16px; background: #ffffff; box-shadow: 0 24px 70px rgba(0, 0, 0, .24); } /* [RCW-C008] */
.operations-receipt-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #e5ebe6; } /* [RCW-C009] */
.operations-receipt-preview-head h2 { margin: 2px 0 0; font-size: 18px; }            /* [RCW-C010] */
.operations-receipt-preview-body { display: grid; place-items: center; max-height: calc(92vh - 74px); overflow: auto; padding: 16px; background: #f5f7f5; } /* [RCW-C011] */
.operations-receipt-preview-image { display: block; max-width: 100%; height: auto; object-fit: contain; } /* [RCW-C012] */
html[data-theme="dark"] .operation-receipt-view:hover { background: #1f2e27; }      /* [RCW-C013] */
html[data-theme="dark"] .operation-receipt-open-label { color: #9fd4ae; }           /* [RCW-C014] */
html[data-theme="dark"] .operations-receipt-preview-modal { border-color: #34443a; background: #18231d; color: #edf5ef; } /* [RCW-C015] */
html[data-theme="dark"] .operations-receipt-preview-head { border-bottom-color: #34443a; } /* [RCW-C016] */
html[data-theme="dark"] .operations-receipt-preview-body { background: #111a15; }   /* [RCW-C017] */

/* ====================== [OPERATIONS RECENT 20] Основний екран ====================== */ /* [OPR20-CSS001] */
.operations-recent-layout {                                                          /* [OPR20-CSS002] */
    display: grid;                                                                    /* [OPR20-CSS003] */
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);                      /* [OPR20-CSS004] */
    gap: 14px;                                                                        /* [OPR20-CSS005] */
    align-items: start;                                                               /* [OPR20-CSS006] */
    margin-top: 14px;                                                                 /* [OPR20-CSS007] */
}                                                                                     /* [OPR20-CSS008] */
.operations-recent-table-panel {                                                      /* [OPR20-CSS009] */
    min-width: 0;                                                                      /* [OPR20-CSS010] */
}                                                                                     /* [OPR20-CSS011] */
.operations-recent-toolbar {                                                          /* [OPR20-CSS012] */
    min-height: 42px;                                                                  /* [OPR20-CSS013] */
}                                                                                     /* [OPR20-CSS014] */
.operations-recent-table-wrap {                                                       /* [OPR20-CSS015] */
    min-height: 320px;                                                                 /* [OPR20-CSS016] */
    max-height: calc(100vh - 360px);                                                   /* [OPR20-CSS017] */
}                                                                                     /* [OPR20-CSS018] */
.operations-recent-details-panel {                                                    /* [OPR20-CSS019] */
    position: sticky;                                                                  /* [OPR20-CSS020] */
    top: 18px;                                                                         /* [OPR20-CSS021] */
    max-height: calc(100vh - 105px);                                                   /* [OPR20-CSS022] */
    overflow: auto;                                                                    /* [OPR20-CSS023] */
}                                                                                     /* [OPR20-CSS024] */
@media (max-width: 1180px) {                                                          /* [OPR20-CSS025] */
    .operations-recent-layout {                                                       /* [OPR20-CSS026] */
        grid-template-columns: 1fr;                                                    /* [OPR20-CSS027] */
    }                                                                                 /* [OPR20-CSS028] */
    .operations-recent-details-panel {                                                /* [OPR20-CSS029] */
        position: static;                                                              /* [OPR20-CSS030] */
        max-height: none;                                                              /* [OPR20-CSS031] */
    }                                                                                 /* [OPR20-CSS032] */
    .operations-recent-table-wrap {                                                   /* [OPR20-CSS033] */
        min-height: 0;                                                                 /* [OPR20-CSS034] */
        max-height: none;                                                              /* [OPR20-CSS035] */
    }                                                                                 /* [OPR20-CSS036] */
}                                                                                     /* [OPR20-CSS037] */

/* ====================== USER CREATE V1 ========================================= */ /* [USER-CREATE-CSS001] */
body.users-list-open .topbar-users-actions #usersCreateButton {                      /* [USER-CREATE-CSS002] */
    min-height: 38px;                                                                 /* [USER-CREATE-CSS003] */
    padding: 7px 16px;                                                                /* [USER-CREATE-CSS004] */
    border-radius: 9px;                                                               /* [USER-CREATE-CSS005] */
    font-size: 12px;                                                                  /* [USER-CREATE-CSS006] */
    font-weight: 800;                                                                 /* [USER-CREATE-CSS007] */
    white-space: nowrap;                                                              /* [USER-CREATE-CSS008] */
}                                                                                     /* [USER-CREATE-CSS009] */

body.user-create-modal-open { overflow: hidden; }                                     /* [USER-CREATE-CSS010] */

.user-create-modal-layer {                                                            /* [USER-CREATE-CSS011] */
    position: fixed;                                                                  /* [USER-CREATE-CSS012] */
    inset: 0;                                                                         /* [USER-CREATE-CSS013] */
    z-index: 1600;                                                                    /* [USER-CREATE-CSS014] */
    display: flex;                                                                    /* [USER-CREATE-CSS015] */
    justify-content: flex-end;                                                        /* [USER-CREATE-CSS016] */
    align-items: stretch;                                                             /* [USER-CREATE-CSS017] */
    padding: 14px;                                                                    /* [USER-CREATE-CSS018] */
    background: rgba(13, 32, 22, .24);                                                /* [USER-CREATE-CSS019] */
    backdrop-filter: blur(2px);                                                       /* [USER-CREATE-CSS020] */
}                                                                                     /* [USER-CREATE-CSS021] */

.user-create-modal-layer[hidden] { display: none !important; }                        /* [USER-CREATE-CSS022] */

.user-create-modal {                                                                  /* [USER-CREATE-CSS023] */
    width: min(500px, calc(100vw - 28px));                                            /* [USER-CREATE-CSS024] */
    height: 100%;                                                                     /* [USER-CREATE-CSS025] */
    overflow-y: auto;                                                                 /* [USER-CREATE-CSS026] */
    border: 1px solid #dfe6e1;                                                       /* [USER-CREATE-CSS027] */
    border-radius: 16px;                                                              /* [USER-CREATE-CSS028] */
    background: #fff;                                                                 /* [USER-CREATE-CSS029] */
    box-shadow: 0 18px 55px rgba(22, 46, 31, .18);                                   /* [USER-CREATE-CSS030] */
}                                                                                     /* [USER-CREATE-CSS031] */

.user-create-modal-head {                                                             /* [USER-CREATE-CSS032] */
    position: sticky;                                                                 /* [USER-CREATE-CSS033] */
    top: 0;                                                                           /* [USER-CREATE-CSS034] */
    z-index: 2;                                                                       /* [USER-CREATE-CSS035] */
    display: flex;                                                                    /* [USER-CREATE-CSS036] */
    align-items: flex-start;                                                          /* [USER-CREATE-CSS037] */
    justify-content: space-between;                                                   /* [USER-CREATE-CSS038] */
    gap: 16px;                                                                        /* [USER-CREATE-CSS039] */
    padding: 20px 22px 16px;                                                         /* [USER-CREATE-CSS040] */
    border-bottom: 1px solid #edf0ee;                                                /* [USER-CREATE-CSS041] */
    background: rgba(255, 255, 255, .97);                                            /* [USER-CREATE-CSS042] */
}                                                                                     /* [USER-CREATE-CSS043] */

.user-create-modal-head h2 { margin: 0; font-size: 23px; color: #17211b; }            /* [USER-CREATE-CSS044] */
.user-create-modal-head p { margin: 5px 0 0; color: #7a847d; font-size: 12px; }        /* [USER-CREATE-CSS045] */
.user-create-modal-close {                                                            /* [USER-CREATE-CSS046] */
    width: 34px;                                                                       /* [USER-CREATE-CSS047] */
    height: 34px;                                                                      /* [USER-CREATE-CSS048] */
    border: 0;                                                                         /* [USER-CREATE-CSS049] */
    border-radius: 9px;                                                                /* [USER-CREATE-CSS050] */
    background: transparent;                                                          /* [USER-CREATE-CSS051] */
    color: #516057;                                                                    /* [USER-CREATE-CSS052] */
    font-size: 26px;                                                                   /* [USER-CREATE-CSS053] */
    line-height: 1;                                                                    /* [USER-CREATE-CSS054] */
    cursor: pointer;                                                                   /* [USER-CREATE-CSS055] */
}                                                                                     /* [USER-CREATE-CSS056] */
.user-create-modal-close:hover { background: #f3f6f4; }                               /* [USER-CREATE-CSS057] */

.user-create-form { display: grid; gap: 18px; padding: 20px 22px 22px; }              /* [USER-CREATE-CSS058] */
.user-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }        /* [USER-CREATE-CSS059] */
.user-create-field { display: grid; gap: 7px; }                                       /* [USER-CREATE-CSS060] */
.user-create-field > span { font-size: 12px; font-weight: 700; color: #35443a; }       /* [USER-CREATE-CSS061] */
.user-create-field b { color: #c64a4a; }                                              /* [USER-CREATE-CSS062] */
.user-create-field input,                                                             /* [USER-CREATE-CSS063] */
.user-create-field select {                                                           /* [USER-CREATE-CSS064] */
    width: 100%;                                                                       /* [USER-CREATE-CSS065] */
    min-height: 40px;                                                                  /* [USER-CREATE-CSS066] */
    border: 1px solid #d8dfda;                                                        /* [USER-CREATE-CSS067] */
    border-radius: 9px;                                                                /* [USER-CREATE-CSS068] */
    background: #fff;                                                                  /* [USER-CREATE-CSS069] */
    color: #1b2820;                                                                    /* [USER-CREATE-CSS070] */
    padding: 8px 11px;                                                                 /* [USER-CREATE-CSS071] */
    font: inherit;                                                                     /* [USER-CREATE-CSS072] */
    font-size: 13px;                                                                   /* [USER-CREATE-CSS073] */
}                                                                                     /* [USER-CREATE-CSS074] */
.user-create-field input:focus, .user-create-field select:focus {                     /* [USER-CREATE-CSS075] */
    outline: 2px solid rgba(36, 75, 51, .14);                                         /* [USER-CREATE-CSS076] */
    border-color: #6f927b;                                                            /* [USER-CREATE-CSS077] */
}                                                                                     /* [USER-CREATE-CSS078] */

.user-create-access-section { display: grid; gap: 11px; }                             /* [USER-CREATE-CSS079] */
.user-create-access-section h3 { margin: 4px 0 1px; font-size: 12px; color: #68736c; text-transform: uppercase; letter-spacing: .06em; } /* [USER-CREATE-CSS080] */
.user-create-access-section.disabled { opacity: .46; }                                /* [USER-CREATE-CSS081] */
.user-create-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; } /* [USER-CREATE-CSS082] */
.user-create-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; font-size: 12px; color: #29372e; } /* [USER-CREATE-CSS083] */
.user-create-toggle input { position: absolute; opacity: 0; pointer-events: none; }     /* [USER-CREATE-CSS084] */
.user-create-toggle i {                                                               /* [USER-CREATE-CSS085] */
    position: relative;                                                               /* [USER-CREATE-CSS086] */
    flex: 0 0 auto;                                                                    /* [USER-CREATE-CSS087] */
    width: 42px;                                                                       /* [USER-CREATE-CSS088] */
    height: 24px;                                                                      /* [USER-CREATE-CSS089] */
    border-radius: 999px;                                                              /* [USER-CREATE-CSS090] */
    background: #cbd1cd;                                                               /* [USER-CREATE-CSS091] */
    transition: .15s ease;                                                             /* [USER-CREATE-CSS092] */
    cursor: pointer;                                                                   /* [USER-CREATE-CSS093] */
}                                                                                     /* [USER-CREATE-CSS094] */
.user-create-toggle i::after {                                                        /* [USER-CREATE-CSS095] */
    content: '';                                                                       /* [USER-CREATE-CSS096] */
    position: absolute;                                                               /* [USER-CREATE-CSS097] */
    top: 3px;                                                                          /* [USER-CREATE-CSS098] */
    left: 3px;                                                                         /* [USER-CREATE-CSS099] */
    width: 18px;                                                                       /* [USER-CREATE-CSS100] */
    height: 18px;                                                                      /* [USER-CREATE-CSS101] */
    border-radius: 50%;                                                                /* [USER-CREATE-CSS102] */
    background: #fff;                                                                  /* [USER-CREATE-CSS103] */
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);                                         /* [USER-CREATE-CSS104] */
    transition: .15s ease;                                                             /* [USER-CREATE-CSS105] */
}                                                                                     /* [USER-CREATE-CSS106] */
.user-create-toggle input:checked + i { background: #1e6b43; }                        /* [USER-CREATE-CSS107] */
.user-create-toggle input:checked + i::after { transform: translateX(18px); }          /* [USER-CREATE-CSS108] */
.user-create-toggle input:focus-visible + i { outline: 2px solid #8db49c; outline-offset: 2px; } /* [USER-CREATE-CSS109] */
.user-create-history-field { max-width: 230px; margin-top: 4px; }                      /* [USER-CREATE-CSS110] */

.user-create-message { padding: 10px 12px; border-radius: 8px; font-size: 12px; }      /* [USER-CREATE-CSS111] */
.user-create-message.error { background: #fff1f1; color: #a53636; border: 1px solid #efcaca; } /* [USER-CREATE-CSS112] */
.user-create-message.ok { background: #edf8f1; color: #23643e; border: 1px solid #c5e2cf; } /* [USER-CREATE-CSS113] */
.user-create-note { color: #7a857e; font-size: 11px; line-height: 1.45; }              /* [USER-CREATE-CSS114] */
.user-create-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 2px; } /* [USER-CREATE-CSS115] */
.user-create-actions .primary-button, .user-create-actions .secondary-button { min-height: 42px; font-weight: 800; } /* [USER-CREATE-CSS116] */

@media (max-width: 760px) {                                                           /* [USER-CREATE-CSS117] */
    .user-create-modal-layer { padding: 0; }                                          /* [USER-CREATE-CSS118] */
    .user-create-modal { width: 100%; border-radius: 0; border: 0; }                   /* [USER-CREATE-CSS119] */
    .user-create-grid, .user-create-toggle-grid { grid-template-columns: 1fr; }        /* [USER-CREATE-CSS120] */
}                                                                                     /* [USER-CREATE-CSS121] */
