@import url("/fonts.css");
:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        sans-serif;
    color: #203d39;
    background: #f4f6f2;
    font-synthesis: none;
    --green: #136b54;
    --muted: #6c7f77;
    --line: #dfe6df;
    --paper: #fff;
    --soft: #e9efdf;
    --red: #b34740;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}
a {
    color: var(--green);
}
button,
.button {
    border: 0;
    border-radius: 9px;
    padding: 11px 17px;
    font-weight: 650;
    cursor: pointer;
    background: var(--green);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.secondary {
    color: #294d42;
    background: #eaf0e7;
}
.danger {
    background: #f9e8e6;
    color: #a43c35;
}
.ghost {
    background: transparent;
    color: inherit;
    border: 1px solid var(--line);
}
.small {
    font-size: 12px;
    padding: 6px 10px;
}
input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fcfdfa;
    border: 1px solid #cfdacf;
    border-radius: 8px;
    color: #173f34;
    min-height: 44px;
}
input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--green);
}
input[type="file"] {
    padding: 8px;
}
textarea {
    min-height: 90px;
}
label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}
form {
    display: grid;
    gap: 17px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.field-wide {
    grid-column: 1/-1;
}
.check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.muted,
small {
    color: var(--muted);
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}
h2 {
    font-size: 19px;
    letter-spacing: -0.4px;
}
h3 {
    font-size: 15px;
}
p {
    line-height: 1.6;
}
small {
    font-size: 12px;
}
header.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1px;
}
.brandmark {
    background: #cee9a1;
    color: #194837;
    width: 33px;
    height: 35px;
    display: grid;
    place-content: center;
    border-radius: 12px 3px 12px 3px;
    font-size: 25px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 235px;
    background: #123e38;
    color: #f5fff5;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: auto;
}
.sidebar .brand {
    padding: 0 10px 28px;
}
.nav-caption {
    font-size: 9px;
    color: #8fb5a5;
    font-weight: 700;
    letter-spacing: 1.7px;
    padding: 19px 14px 8px;
}
.nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nav button {
    font-size: 12px;
    padding: 10px 13px;
    justify-content: flex-start;
    color: #b9d0c4;
    font-weight: 500;
    background: none;
    border-radius: 7px;
    text-align: left;
}
.nav button.active {
    color: #e9ffda;
    background: #2b574a;
}
.nav button:hover {
    background: #244e43;
}
.nav-icon {
    width: 20px;
    font-size: 16px;
}
.sidebar-footer {
    margin-top: auto;
    padding: 25px 10px 0;
    font-size: 11px;
    color: #9dbcae;
}
.workspace {
    margin-left: 235px;
    min-height: 100vh;
}
.topbar {
    height: 77px;
    border-bottom: 1px solid var(--line);
    background: #ffffffb3;
    padding: 0 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.topbar .status {
    color: #5b7c64;
}
.topbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5ecd8;
    display: grid;
    place-content: center;
    font-weight: 700;
    color: #506740;
}
main {
    padding: 35px 38px 55px;
    max-width: 1550px;
    margin: auto;
}
.page-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 27px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #678371;
    font-weight: 750;
    margin: 0 0 11px;
}
.page-head p {
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 0;
}
.page-head h1 {
    margin: 0;
}
.head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.period {
    width: 158px;
    min-height: 40px;
    font-size: 12px;
    background: #fff;
}
.kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 25px;
}
.kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 22px;
    min-height: 141px;
}
.kpi.primary {
    background: #164f40;
    color: white;
    border-color: #164f40;
}
.kpi p {
    font-size: 12px;
    margin-bottom: 18px;
    color: var(--muted);
}
.kpi.primary p,
.kpi.primary small {
    color: #bdd4b6;
}
.kpi strong {
    display: block;
    font-size: 25px;
    letter-spacing: -0.8px;
    margin-bottom: 9px;
    font-weight: 600;
}
.kpi small {
    font-size: 10px;
}
.row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 23px;
    margin-bottom: 23px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 25px;
    margin-bottom: 22px;
    min-width: 0;
}
.row .panel {
    margin-bottom: 0;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}
.panel-head h2 {
    margin: 0;
    font-size: 15px;
}
.badge {
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 5px;
    display: inline-block;
    background: #edf2e7;
    color: #527044;
    font-weight: 600;
}
.badge.confirmed,
.badge.active {
    background: #e6f3e8;
    color: #26754d;
}
.badge.pending,
.badge.suspended {
    background: #fff2da;
    color: #9e701b;
}
.badge.not_included {
    background: #eef0ee;
    color: #728077;
}
.info {
    padding: 14px 17px;
    border-radius: 9px;
    background: #edf2e7;
    color: #526c4d;
    font-size: 12px;
    line-height: 1.7;
    margin: 16px 0;
}
.error {
    background: #fff0ed;
    color: #9d3f37;
    padding: 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.empty {
    text-align: center;
    padding: 35px 15px;
    color: var(--muted);
    font-size: 13px;
}
.empty strong {
    display: block;
    font-size: 17px;
    color: #426253;
    margin-bottom: 9px;
}
.table-scroll {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
}
th {
    font-weight: 500;
    color: #809082;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 15px 10px;
    border-bottom: 1px solid #eef1eb;
    vertical-align: middle;
}
td strong {
    font-weight: 600;
}
.amount {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.income {
    color: #178354;
}
.expense {
    color: #9b5043;
}
.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
tr:last-child td {
    border-bottom: 0;
}
.filters {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filters label {
    flex: 1;
    min-width: 120px;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 18px;
}
.chart {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 15px;
    padding: 12px 10px 25px;
    border-bottom: 1px solid var(--line);
}
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 9px;
    font-size: 10px;
    color: var(--muted);
}
.chart-bars {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 5px;
}
.chart-bars meter {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    height: 150px;
    width: 20px;
    accent-color: #166c54;
}
.chart-bars meter.exp {
    accent-color: #b6c993;
}
.legend {
    display: flex;
    gap: 20px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 17px;
}
.legend span:before {
    content: "●";
    color: #166c54;
    padding-right: 5px;
}
.legend span:last-child:before {
    color: #b6c993;
}
.category-line {
    margin-bottom: 20px;
}
.category-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 9px;
}
progress {
    width: 100%;
    height: 7px;
    accent-color: #6a9359;
    display: block;
    border: 0;
}
.list-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eef1eb;
    font-size: 12px;
    gap: 15px;
}
.list-line strong {
    display: block;
    margin-bottom: 5px;
}
.list-line:last-child {
    border: 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 20px;
}
.grid .panel {
    margin: 0;
}
.plan-price {
    font-size: 30px;
    font-weight: 650;
    margin: 20px 0;
}
.plan-list {
    padding-left: 18px;
    line-height: 2.3;
    font-size: 12px;
    color: #647662;
}
.module-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.module-number {
    background: #edf2df;
    padding: 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-story {
    padding: 65px 9%;
    background: #123e38;
    color: #f6fced;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-story h1 {
    font-size: 58px;
    font-weight: 500;
    letter-spacing: -2px;
    max-width: 540px;
    margin: 60px 0 25px;
}
.auth-story h1 em {
    font-style: normal;
    color: #c7e6a0;
}
.auth-story p {
    max-width: 400px;
    font-size: 16px;
    color: #bdd0bc;
}
.auth-story .outline {
    border: 1px solid #527367;
    border-radius: 14px;
    padding: 23px;
    margin: 25px 0;
    max-width: 400px;
}
.auth-story small {
    color: #b0c3ac;
}
.auth-form {
    max-width: 470px;
    width: 100%;
    padding: 55px 36px;
    margin: auto;
}
.auth-form h2 {
    font-size: 28px;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    font-size: 12px;
}
.auth-form .button,
form > button {
    width: 100%;
}
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}
.landing-plans {
    padding: 30px;
    max-width: 1300px;
    margin: auto;
}
.landing-plans h2 {
    text-align: center;
    margin-bottom: 30px;
}
dialog {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 20px 100px #153d3333;
    width: 620px;
    max-width: 94vw;
    max-height: 90vh;
    padding: 27px;
    color: #203d39;
}
dialog::backdrop {
    background: #102f2b88;
    backdrop-filter: blur(3px);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.modal-head h2 {
    margin: 0;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 11px;
    background: #f6f8f2;
    border-radius: 8px;
    padding: 13px;
    max-height: 55vh;
    overflow: auto;
}
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    max-width: 380px;
    padding: 15px 20px;
    background: #143f33;
    color: white;
    border-radius: 11px;
    box-shadow: 0 5px 20px #123e3822;
    display: none;
    font-size: 13px;
}
#toast.visible {
    display: block;
}
.loading {
    padding: 80px;
    text-align: center;
    color: #678371;
}
.mobile-toggle {
    display: none;
}
.report-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.report-summary div {
    flex: 1;
    padding: 20px;
    background: #f3f6ee;
    border-radius: 10px;
}
.report-summary strong {
    display: block;
    font-size: 22px;
    margin-top: 10px;
}
.legal {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    line-height: 1.9;
}
.legal h1 {
    margin-top: 30px;
}
.calendar {
    display: grid;
    gap: 10px;
}
.calendar-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.date-tile {
    background: #eaf0e1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
}
.help-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}
footer.app-footer {
    margin: 30px 0 0;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    color: #7d8d7c;
}
.highlight {
    background: #e3eecf;
    border: 1px solid #c4d8a7;
}
.notice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.state-message {
    margin-bottom: 20px;
}
.nowrap {
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }
    .row {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 205px;
    }
    .workspace {
        margin-left: 205px;
    }
    main {
        padding: 28px;
    }
    .topbar {
        padding: 0 28px;
    }
}
@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        width: 235px;
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 100px #123e3833;
    }
    .workspace {
        margin-left: 0;
    }
    .mobile-toggle {
        display: inline-flex;
        padding: 8px;
    }
    .topbar {
        height: 63px;
        padding: 0 18px;
    }
    .topbar .status {
        display: none;
    }
    main {
        padding: 24px 17px;
    }
    .page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .page-head h1 {
        font-size: 26px;
    }
    .head-actions {
        width: 100%;
        justify-content: space-between;
    }
    .kpis {
        gap: 10px;
    }
    .kpi {
        padding: 17px;
        min-height: 130px;
    }
    .kpi strong {
        font-size: 22px;
    }
    .panel {
        padding: 18px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-story {
        padding: 30px;
        min-height: 340px;
    }
    .auth-story h1 {
        font-size: 38px;
        margin: 35px 0 18px;
    }
    .auth-story .outline {
        display: none;
    }
    .auth-story p {
        font-size: 14px;
    }
    .auth-form {
        padding: 35px 25px;
    }
    .calendar-item {
        grid-template-columns: 55px 1fr;
    }
    .calendar-item .actions {
        grid-column: 1/-1;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .topbar-actions {
        gap: 8px;
    }
    .topbar-actions .username {
        display: none;
    }
    .filters {
        gap: 8px;
    }
    dialog {
        padding: 20px;
    }
    .app-footer {
        gap: 15px;
    }
    #toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    .plan-price {
        font-size: 26px;
    }
}
.chart-col {
    min-width: 0;
}
.workspace {
    min-width: 0;
}
.chart-bars meter {
    width: 14px;
}
@media (max-width: 760px) {
    .chart {
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }
    .panel-head > * {
        min-width: 0;
    }
    .period {
        max-width: 46%;
    }
}
meter::-webkit-meter-optimum-value {
    background: #166c54;
}
meter.exp::-webkit-meter-optimum-value {
    background: #b6c993;
}
meter::-moz-meter-bar {
    background: #166c54;
}
meter.exp::-moz-meter-bar {
    background: #b6c993;
}
.head-actions {
    flex-wrap: wrap;
}
