<style>

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #172033;
    --text-soft: #667085;
    --border: #e4e7ec;

    --primary: #2563eb;
    --primary-soft: #eff6ff;

    --green: #047857;
    --green-soft: #ecfdf3;

    --orange: #c2410c;
    --orange-soft: #fff7ed;

    --red: #dc2626;
    --red-soft: #fef2f2;

    --shadow: 0 2px 8px rgba(16,24,40,.05);
}

body.dark {

    --bg: #111827;
    --surface: #1f2937;
    --surface-soft: #182230;

    --text: #f3f4f6;
    --text-soft: #9ca3af;
    --border: #374151;

    --primary: #60a5fa;
    --primary-soft: #1e3a5f;

    --green: #34d399;
    --green-soft: #12372c;

    --orange: #fb923c;
    --orange-soft: #3b2415;

    --red: #f87171;
    --red-soft: #3b1919;

    --shadow: 0 2px 10px rgba(0,0,0,.2);
}


* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);

    transition:
        background .2s,
        color .2s;
}


/* =========================
   HEADER
   ========================= */

header {

    height: 70px;

    background: var(--surface);

    border-bottom:
        1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
}


.logo {

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 21px;
    font-weight: 700;

    color: var(--text);
}


.logo-icon {

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: var(--primary);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
}


.header-actions {

    display: flex;
    gap: 10px;
}


.icon-button {

    width: 40px;
    height: 40px;

    border-radius: 9px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 18px;
}


.icon-button:hover {

    background: var(--surface-soft);
}


/* =========================
   NAV
   ========================= */

nav {

    background: var(--surface);

    border-bottom:
        1px solid var(--border);

    padding: 0 32px;

    display: flex;
    gap: 5px;
}


nav button {

    border: 0;

    background: transparent;

    color: var(--text-soft);

    padding: 15px 17px;

    cursor: pointer;

    border-bottom:
        3px solid transparent;
}


nav button.active {

    color: var(--primary);

    border-bottom-color:
        var(--primary);

    font-weight: 600;
}


/* =========================
   MAIN
   ========================= */

main {

    max-width: 1450px;

    margin: auto;

    padding: 30px;
}


.page-title {

    margin-bottom: 25px;
}


.page-title h1 {

    margin: 0 0 5px;

    font-size: 28px;
}


.page-title p {

    margin: 0;

    color: var(--text-soft);
}


/* =========================
   SUMMARY
   ========================= */

.summary {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 22px;
}


.summary-card {

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 21px;

    box-shadow: var(--shadow);
}


.summary-title {

    font-size: 13px;

    color: var(--text-soft);

    margin-bottom: 8px;
}


.summary-value {

    font-size: 28px;

    font-weight: 700;

    margin-bottom: 6px;
}


.summary-description {

    color: var(--text-soft);

    font-size: 12px;
}


.bank {
    color: var(--text);
}

.waiting {
    color: var(--orange);
}

.forecast {
    color: var(--green);
}


/* =========================
   CONTENT
   ========================= */

.content {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 20px;
}


.operations-card {

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow: var(--shadow);
}


.operations-header {

    padding: 20px 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.operations-header h2 {

    margin: 0;

    font-size: 19px;
}


/* =========================
   BUTTONS
   ========================= */

.button {

    border: 0;

    border-radius: 8px;

    padding: 10px 15px;

    cursor: pointer;

    font-weight: 600;
}


.button-primary {

    background: var(--primary);

    color: white;
}


.button-secondary {

    background: var(--surface-soft);

    color: var(--text);

    border:
        1px solid var(--border);
}


/* =========================
   FILTERS
   ========================= */

.filters {

    padding:
        0 22px 16px;

    display: flex;

    gap: 8px;

    border-bottom:
        1px solid var(--border);
}


.filter {

    border:
        1px solid var(--border);

    background: var(--surface);

    color: var(--text-soft);

    border-radius: 7px;

    padding: 7px 12px;

    cursor: pointer;
}


.filter.active {

    background:
        var(--primary-soft);

    color: var(--primary);

    border-color:
        var(--primary);

    font-weight: 600;
}


/* =========================
   MONTH
   ========================= */

.month {

    border-bottom:
        1px solid var(--border);
}


.month:last-child {

    border-bottom: 0;
}


.month-header {

    width: 100%;

    border: 0;

    background: var(--surface);

    color: var(--text);

    padding: 17px 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    cursor: pointer;

    text-align: left;
}


.month-header:hover {

    background: var(--surface-soft);
}


.month-title {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 700;

    font-size: 15px;
}


.month-arrow {

    color: var(--text-soft);

    transition: transform .2s;
}


.month.closed .month-arrow {

    transform: rotate(-90deg);
}


.month-summary {

    color: var(--text-soft);

    font-size: 12px;

    font-weight: 400;
}


/* =========================
   TABLE
   ========================= */

.month-content {

    overflow-x: auto;
}


table {

    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}


th {

    background: var(--surface-soft);

    color: var(--text-soft);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .03em;

    text-align: left;

    padding: 11px 20px;
}


td {

    padding: 14px 20px;

    border-top:
        1px solid var(--border);

    font-size: 14px;
}


tr:hover {

    background: var(--surface-soft);
}


.date {

    color: var(--text-soft);

    white-space: nowrap;
}


.object {

    font-weight: 600;
}


.object-type {

    color: var(--text-soft);

    font-size: 11px;

    margin-top: 3px;
}


.debit {

    color: var(--red);

    font-weight: 600;
}


.credit {

    color: var(--green);

    font-weight: 600;
}


.balance {

    white-space: nowrap;

    font-weight: 600;
}


/* =========================
   STATUS
   ========================= */

.status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;

    white-space: nowrap;
}


.status-pointed {

    background:
        var(--green-soft);

    color: var(--green);
}


.status-pending {

    background:
        var(--orange-soft);

    color: var(--orange);
}


/* =========================
   BANK VERIFIED
   ========================= */

.bank-marker {

    display: block;

    margin-top: 5px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 600;
}


/* =========================
   ACTIONS
   ========================= */

.actions {

    display: flex;

    gap: 5px;
}


.small-button {

    border:
        1px solid var(--border);

    background: var(--surface);

    color: var(--text-soft);

    border-radius: 6px;

    padding: 6px 8px;

    cursor: pointer;

    font-size: 12px;
}


.small-button:hover {

    color: var(--primary);

    border-color:
        var(--primary);
}


/* =========================
   SIDEBAR
   ========================= */

.sidebar {

    display: flex;

    flex-direction: column;

    gap: 18px;
}


.side-card {

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 20px;

    box-shadow: var(--shadow);
}


.side-card h3 {

    margin: 0 0 16px;

    font-size: 16px;
}


.bank-info {

    background:
        var(--primary-soft);

    border-radius: 10px;

    padding: 14px;
}


.bank-info-label {

    font-size: 11px;

    color: var(--text-soft);
}


.bank-info-value {

    font-size: 22px;

    font-weight: 700;

    margin: 4px 0;
}


.bank-info-date {

    font-size: 11px;

    color: var(--text-soft);
}


.quick-action {

    width: 100%;

    padding: 12px 0;

    border: 0;

    border-top:
        1px solid var(--border);

    background: transparent;

    color: var(--text);

    text-align: left;

    cursor: pointer;
}


.quick-action:first-of-type {

    border-top: 0;
}


/* =========================
   MODAL
   ========================= */

.overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,.45);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 100;
}


.overlay.visible {

    display: flex;
}


.modal {

    width: 100%;

    max-width: 480px;

    background: var(--surface);

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}


.modal h2 {

    margin-top: 0;
}


.form-group {

    margin-bottom: 15px;
}


.form-group label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 6px;
}


input,
select {

    width: 100%;

    padding: 11px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text);

    font-size: 14px;
}


.modal-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 1000px) {

    .content {

        grid-template-columns: 1fr;
    }

    .sidebar {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    header {

        height: 60px;

        padding: 0 15px;
    }

    .logo {

        font-size: 18px;
    }

    nav {

        padding: 0 10px;

        overflow-x: auto;
    }

    nav button {

        white-space: nowrap;
    }

    main {

        padding: 20px 12px;
    }

    .summary {

        grid-template-columns: 1fr;
    }

    .operations-header {

        align-items: flex-start;

        flex-direction: column;
    }

    .operations-header .button {

        width: 100%;
    }

    .sidebar {

        display: block;
    }

    .side-card {

        margin-bottom: 18px;
    }
}


@media (max-width: 430px) {

    .summary-value {

        font-size: 24px;
    }

    .page-title h1 {

        font-size: 23px;
    }

    .filters {

        overflow-x: auto;
    }

    .filter {

        white-space: nowrap;
    }
}

</style>