:root {
    --brand: #2499a4;
    --brand-dark: #167c82;
    --brand-soft: #e9f7f6;
    --ink: #183b3e;
    --text: #34565a;
    --muted: #7c9295;
    --line: #e4eeee;
    --surface: #fff;
    --background: #f5f9f9;
    --sidebar-width: 248px;
    --shadow: 0 12px 35px rgba(24, 59, 62, 0.07);
    --radius: 16px;
    --font: "DM Sans", sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: var(--font);
    font-size: 16px;
}

/* Settings */
.settings-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
    gap: 18px;
}
.settings-guide-intro,
.settings-template-card,
.settings-status-card,
.settings-note {
    padding: 22px;
}
.settings-guide-intro h2,
.settings-template-card h2,
.settings-note h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 17px;
}
.settings-steps {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.settings-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    position: relative;
    padding-bottom: 19px;
}
.settings-steps li:not(:last-child)::before {
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 16px;
    width: 1px;
    background: #cfe7e5;
    content: '';
}
.settings-steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #167c82;
    background: #e4f6f4;
    font-size: 11px;
    font-weight: 800;
}
.settings-steps strong { color: var(--ink); font-size: 12px; }
.settings-steps p,
.settings-template-card p,
.settings-template-card small,
.settings-status-grid p,
.settings-note li {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}
.settings-steps p { margin: 4px 0 0; }
.settings-template-card { align-content: start; display: grid; gap: 14px; }
.settings-meta-badge { justify-self: start; padding: 5px 8px; border-radius: 6px; color: #356ac3; background: #edf3ff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.settings-template-card dl { display: grid; gap: 9px; margin: 0; }
.settings-template-card dl div { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: #f7fafa; }
.settings-template-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.settings-template-card dd { margin: 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.settings-template-card p,
.settings-template-card small { margin: 0; }
.settings-template-card small { font-size: 9px; }
.settings-status-card { margin-top: 18px; }
.settings-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.settings-status-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfd; }
.settings-status-grid p { margin: 8px 0 0; }
.settings-notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.settings-note ul { display: grid; gap: 8px; margin: 15px 0 0; padding-left: 18px; }
.settings-note code,
.settings-template-card code { padding: 2px 5px; border-radius: 4px; color: #176e73; background: #eaf6f5; font-size: 10px; }
@media (max-width: 900px) {
    .settings-guide-grid,
    .settings-notes-grid { grid-template-columns: 1fr; }
    .settings-status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .settings-status-grid { grid-template-columns: 1fr; }
}
html.modal-open,
body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}
html.page-loading,
body.page-loading {
    overflow: hidden;
    overscroll-behavior: none;
}
.page-loader {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    background: rgba(235, 246, 245, 0.82);
    backdrop-filter: blur(5px);
    transition: opacity 0.18s ease, visibility 0.18s ease;
}
.page-loader.is-visible {
    visibility: visible;
    opacity: 1;
}
.page-loader-card {
    display: grid;
    place-items: center;
    width: min(300px, 100%);
    padding: 28px 24px;
    border: 1px solid #d8eeee;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(23, 56, 59, 0.18);
    text-align: center;
}
.page-loader-spinner {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border: 4px solid #dcefee;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}
.page-loader-card strong {
    color: var(--ink);
    font-size: 15px;
}
.page-loader-card > span:last-child {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}
@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .page-loader-spinner {
        transition: none;
        animation-duration: 1.8s;
    }
}
button,
input {
    font: inherit;
}
button,
a {
    transition: 0.2s ease;
}
a {
    color: inherit;
    text-decoration: none;
}
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 25px 16px 18px;
    border-right: 1px solid var(--line);
    background: #fff;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.brand-logo {
    display: block;
    width: 150px;
    height: auto;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-dark), #39afb1);
    box-shadow: 0 8px 18px #2499a440;
}
.main-nav {
    margin-top: 32px;
}
.nav-label {
    margin: 22px 10px 9px;
    color: #a0b0b2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    margin: 3px 0;
    padding: 0 12px;
    border-radius: 10px;
    color: #71898c;
    font-size: 14px;
    font-weight: 600;
}
.nav-item .icon {
    width: 18px;
}
.nav-item:hover {
    color: var(--brand-dark);
    background: #f4f9f9;
}
.nav-item.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.nav-item.active:before {
    position: absolute;
    left: -16px;
    width: 3px;
    height: 20px;
    border-radius: 0 4px 4px 0;
    background: var(--brand);
    content: "";
}
.nav-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 10px;
    color: var(--brand-dark);
    background: #d9f1ef;
    font-size: 11px;
}
.topbar-user > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.topbar-user strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topbar-user span:not(.avatar) {
    color: var(--muted);
    font-size: 10px;
}
.avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #267f86, #65bfc0);
    box-shadow: 0 2px 8px #17383b24;
    font-size: 12px;
    font-weight: 700;
}
.avatar.small {
    width: 32px;
    height: 32px;
}
.avatar.tiny {
    width: 27px;
    height: 27px;
    border: 0;
    font-size: 10px;
}
.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}
.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: #ffffffed;
    backdrop-filter: blur(12px);
}
.topbar-actions,
.topbar-user {
    display: flex;
    align-items: center;
}
.topbar-actions {
    gap: 18px;
    margin-left: auto;
}
.icon-button,
.dots {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #789093;
    background: transparent;
    cursor: pointer;
}
.icon-button {
    width: 35px;
    height: 35px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}
.notification-button {
    position: relative;
}
.notification-button span {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
    border: 1px solid white;
    border-radius: 50%;
    background: #f29554;
}
.topbar-divider {
    width: 1px;
    height: 25px;
    background: var(--line);
}
.topbar-user {
    gap: 9px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}
.topbar-user-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
    width: 90px;
    text-align: left;
}
.topbar-user > .icon {
    width: 14px;
    transition: transform 0.2s ease;
}
.user-menu {
    position: relative;
}
.user-menu.open .topbar-user > .icon {
    transform: rotate(180deg);
}
.user-options {
    position: absolute;
    top: calc(100% + 17px);
    right: 0;
    width: 275px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    box-shadow: 0 18px 45px rgba(24, 59, 62, 0.16);
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.user-menu.open .user-options {
    visibility: visible;
    opacity: 1;
    transform: none;
}
.user-options-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}
.user-options-heading > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}
.user-options-heading strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-options-heading small,
.user-options-links small {
    color: var(--muted);
    font-size: 10px;
}
.user-options-links {
    padding: 6px 0;
}
.user-options-links a,
.user-options-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 9px;
}
.user-options-links a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.user-options-links .icon,
.user-options-logout .icon {
    width: 17px;
}
.user-options-links a > span {
    display: grid;
    gap: 2px;
}
.user-options-links strong {
    color: var(--ink);
    font-size: 12px;
}
.user-options-logout {
    border-top: 1px solid var(--line);
    border-radius: 0 0 9px 9px;
    color: #c75d55;
    font-size: 12px;
    font-weight: 700;
}
.user-options-logout:hover {
    background: #fff2f1;
}
.menu-button {
    display: none;
}
.page-content {
    max-width: 1500px;
    margin: auto;
    padding: 31px 34px 45px;
}
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}
.eyebrow {
    margin: 0 0 7px;
    color: var(--brand);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: 25px;
    letter-spacing: -0.9px;
}
.page-heading h1 span {
    font-size: 19px;
}
.page-heading p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.heading-actions {
    display: flex;
    gap: 9px;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.button .icon {
    width: 14px;
}
.button.primary {
    color: #fff;
    background: linear-gradient(115deg, var(--brand-dark), var(--brand));
    box-shadow: 0 7px 17px #2499a42c;
}
.button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 21px #2499a43f;
}
.button.secondary {
    border-color: var(--line);
    color: #71898c;
    background: #fff;
}
.button.secondary:hover {
    border-color: #b8dada;
    color: var(--brand-dark);
}
.button.compact {
    height: 32px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}
.stat-card,
.card {
    border: 1px solid #e6eeee;
    background: #fff;
    box-shadow: 0 4px 18px rgba(31, 76, 79, 0.035);
}
.stat-card {
    padding: 18px;
    border-radius: 14px;
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-icon,
.activity-icon {
    display: grid;
    place-items: center;
    border-radius: 10px;
}
.stat-icon {
    width: 34px;
    height: 34px;
}
.stat-icon .icon {
    width: 16px;
}
.teal {
    color: #16868b;
    background: #e4f6f4;
}
.blue {
    color: #477bc1;
    background: #eaf1fb;
}
.purple {
    color: #8b67b7;
    background: #f2ecf9;
}
.orange {
    color: #d48243;
    background: #fdf1e7;
}
.dots .icon {
    width: 16px;
}
.stat-card > p {
    margin: 17px 0 5px;
    color: var(--muted);
    font-size: 11px;
}
.stat-card > strong {
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -1px;
}
.stat-trend {
    margin-top: 10px;
    color: #9aacaf;
    font-size: 10px;
}
.stat-trend span {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    font-weight: 700;
}
.stat-trend .icon {
    width: 10px;
}
.positive {
    color: #219477;
}
.negative {
    color: #dc7652;
}
.negative .icon {
    transform: rotate(180deg);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 18px;
    margin-bottom: 18px;
}
.card {
    border-radius: var(--radius);
}
.chart-card,
.activity-card {
    min-height: 370px;
    padding: 20px;
}
.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.card-header h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 14px;
}
.card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}
.card-header a {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 700;
}
.select-button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 29px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #789093;
    background: #fff;
    font-size: 10px;
}
.select-button .icon {
    width: 11px;
}
.stat-client-brand select {
    max-width: 105px;
    height: 30px;
    padding: 0 25px 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #f8fbfb;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.stat-client-brand select:focus {
    border-color: #83c8c6;
    box-shadow: 0 0 0 3px #2499a414;
}
.chart-range-filter {
    margin: 0;
}
.chart-range-filter label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.chart-range-filter select {
    cursor: pointer;
}
.chart-summary {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 25px;
}
.chart-summary > div {
    display: grid;
    gap: 4px;
}
.chart-summary span {
    color: var(--muted);
    font-size: 10px;
}
.chart-summary strong {
    color: var(--ink);
    font-size: 23px;
    letter-spacing: -1px;
}
.trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    padding: 3px 6px;
    border-radius: 10px;
    background: #e8f7f2;
    font-size: 10px !important;
    font-weight: 700;
}
.trend .icon {
    width: 9px;
}
.chart-summary .trend.positive {
    color: #219477;
}
.chart-summary .trend.negative {
    color: #c65e3b;
    background: #fdf0eb;
}
.chart {
    position: relative;
    height: 215px;
    margin-top: 12px;
}
.chart-lines {
    position: absolute;
    inset: 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chart-lines span {
    border-top: 1px dashed #e7eeee;
}
.chart svg {
    position: absolute;
    inset: 0 0 20px;
    width: 100%;
    height: calc(100% - 20px);
    overflow: visible;
}
.chart .area {
    fill: url(#chartFill);
}
.chart .line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
}
.chart circle {
    fill: #fff;
    stroke: var(--brand);
    stroke-width: 2;
}
.chart-labels {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    color: #9badb0;
    font-size: 10px;
}
.activity-list {
    margin-top: 16px;
}
.activity-empty {
    margin: 45px 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}
.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid #edf2f2;
}
.activity-item:last-child {
    border: 0;
}
.activity-icon {
    width: 30px;
    height: 30px;
}
.activity-icon .icon {
    width: 14px;
}
.activity-item > div {
    display: grid;
    gap: 4px;
}
.activity-item strong {
    color: var(--ink);
    font-size: 11px;
}
.activity-item p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}
.activity-item time {
    color: #a0b0b2;
    font-size: 9px;
}
.recent-payments-card {
    padding: 20px;
}
.table-wrap {
    overflow-x: auto;
    margin: 15px -20px -20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
th {
    padding: 9px 20px;
    color: #98a9ab;
    background: #f8fafa;
    font-size: 9px;
    letter-spacing: 0.6px;
    text-align: left;
    text-transform: uppercase;
}
td {
    padding: 12px 20px;
    border-top: 1px solid #edf2f2;
    color: #7d9295;
    font-size: 10px;
}
td > strong,
.client-cell strong {
    color: var(--ink);
    font-size: 11px;
}
.client-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-client-names {
    display: grid;
    gap: 6px;
}
.client-cell .payment-client-paid {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
}
.status i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.status.progress {
    color: #3579b3;
    background: #eaf3fb;
}
.status.pending {
    color: #c47a3f;
    background: #fdf1e7;
}
.status.completed {
    color: #21876e;
    background: #e7f5ef;
}
.sidebar-overlay {
    display: none;
}
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .activity-card {
        min-height: auto;
    }
    .activity-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 12px 0 35px #17383b22;
        transition: transform 0.25s;
    }
    .sidebar-open .sidebar {
        transform: none;
    }
    .sidebar-open .sidebar-overlay {
        position: fixed;
        z-index: 15;
        inset: 0;
        display: block;
        background: #17383b55;
    }
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    .menu-button {
        display: grid;
    }
    .topbar {
        padding: 0 18px;
    }
    .topbar-user-copy,
    .topbar-user > .icon,
    .topbar-divider {
        display: none;
    }
    .page-content {
        padding: 25px 18px 40px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 20px;
    }
    .heading-actions .secondary {
        display: none;
    }
}
@media (max-width: 560px) {
    .topbar {
        height: 62px;
    }
    .page-heading {
        display: block;
    }
    .heading-actions {
        margin-top: 18px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-card > strong {
        font-size: 20px;
    }
    .stat-trend {
        line-height: 1.5;
    }
    .activity-list {
        display: block;
    }
    .chart-card,
    .activity-card,
    .recent-payments-card {
        padding: 16px;
    }
    .chart-summary {
        margin-top: 20px;
    }
    .table-wrap {
        margin: 15px -16px -16px;
    }
    .card-header {
        gap: 15px;
    }
    .recent-payments-card .card-header p {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
/* Profile */
.profile-page {
    min-height: 100vh;
    background: #f5f9f9;
}
.profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 max(24px, calc((100vw - 1100px) / 2));
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.profile-topbar > a:first-child {
    display: flex;
    align-items: center;
    height: 100%;
}
.profile-topbar img {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 58px;
    object-fit: contain;
}
.profile-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    width: min(1100px, calc(100% - 48px));
    margin: 46px auto;
}
.profile-sidebar {
    padding: 12px 0;
}
.profile-sidebar h1 {
    margin: 0;
    color: var(--ink);
    font-size: 27px;
}
.profile-sidebar > p:not(.eyebrow) {
    margin: 9px 0 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.profile-sidebar nav {
    display: grid;
    gap: 4px;
}
.profile-sidebar nav a {
    padding: 12px 14px;
    border-radius: 9px;
    color: #71898c;
    font-size: 13px;
    font-weight: 600;
}
.profile-sidebar nav a:hover,
.profile-sidebar nav a.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.profile-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.profile-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.profile-card-heading .avatar {
    width: 42px;
    height: 42px;
}
.profile-card-heading h2 {
    margin: 0 0 3px;
    color: var(--ink);
    font-size: 16px;
}
.profile-card-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.profile-card .alert {
    overflow: hidden;
    max-height: 160px;
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid #f0c9c5;
    border-radius: 9px;
    color: #a34e47;
    background: #fff5f4;
    font-size: 12px;
}
.profile-card .alert ul {
    margin: 0;
    padding-left: 16px;
}
.profile-card .alert.success {
    border-color: #b8e1d4;
    color: #24775f;
    background: #eefaf6;
    animation: alert-fade-out 0.35s ease 4s forwards;
}
@keyframes alert-fade-out {
    to {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-4px);
    }
}
.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.profile-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}
.profile-form input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font-size: 13px;
}
.profile-form input:focus {
    border-color: #83c8c6;
    background: #fff;
    box-shadow: 0 0 0 3px #2499a414;
}
.profile-form small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}
.password-form {
    grid-template-columns: 1fr;
    max-width: 500px;
}
.profile-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 8px;
}
@media (max-width: 720px) {
    .profile-topbar {
        padding: 0 18px;
    }
    .profile-topbar .button {
        font-size: 0;
    }
    .profile-topbar .button::after {
        font-size: 11px;
        content: "← Volver";
    }
    .profile-shell {
        grid-template-columns: 1fr;
        gap: 18px;
        width: min(100% - 28px, 560px);
        margin: 24px auto;
    }
    .profile-sidebar {
        padding: 0;
    }
    .profile-sidebar > p:not(.eyebrow) {
        margin-bottom: 15px;
    }
    .profile-sidebar nav {
        grid-template-columns: 1fr 1fr;
    }
    .profile-card {
        padding: 20px;
    }
    .profile-form {
        grid-template-columns: 1fr;
    }
}
/* Clients */
.clients-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 38px auto 60px;
}
.clients-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.clients-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
}
.clients-heading p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.clients-heading nav {
    display: flex;
    gap: 8px;
}
.clients-alert {
    overflow: hidden;
    max-height: 120px;
    margin-bottom: 16px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 12px;
}
.clients-alert.error {
    border-color: #f0c9c5;
    color: #a34e47;
    background: #fff5f4;
}
.clients-alert.success {
    border-color: #b8e1d4;
    color: #24775f;
    background: #eefaf6;
    animation: alert-fade-out 0.35s ease 4s forwards;
}
.clients-card {
    overflow: visible;
    padding: 20px;
}
.clients-search {
    display: flex;
    gap: 8px;
}
.clients-search input,
.clients-search select {
    width: min(100%, 420px);
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font-size: 12px;
}
.clients-empty {
    padding: 45px 20px;
    text-align: center;
}
.client-results {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.client-result {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}
.client-result[open] {
    position: relative;
    z-index: 2;
    border-color: #b9dcda;
    box-shadow: 0 8px 22px #17383b0d;
}
.client-result summary {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    list-style: none;
    cursor: pointer;
}
.client-result summary::-webkit-details-marker {
    display: none;
}
.client-result-name {
    display: grid;
    gap: 3px;
}
.client-result-name strong,
.client-details strong {
    color: var(--ink);
    font-size: 12px;
}
.client-result-name small,
.client-entry-count {
    color: var(--muted);
    font-size: 11px;
}
.client-entry-count {
    padding: 5px 9px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-weight: 600;
}
.client-result-chevron {
    color: var(--brand-dark);
    font-size: 20px;
    transition: transform 0.2s ease;
}
.client-result[open] .client-result-chevron {
    transform: rotate(180deg);
}
.client-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 14px;
    padding: 18px 0 20px;
    border-top: 1px solid var(--line);
}
.client-details > div {
    display: grid;
    gap: 5px;
}
.client-details > div.wide {
    grid-column: span 3;
}
.client-details span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.client-entries {
    display: grid;
    gap: 8px;
    padding: 0 14px 18px;
}
.client-entry,
.client-entry-head {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 115px minmax(120px, .8fr) 105px 110px auto;
    gap: 14px;
    align-items: center;
}
.client-entry-head {
    padding: 0 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.client-entry {
    position: relative;
    padding: 12px;
    border-radius: 9px;
    background: #f7fafa;
    color: var(--text);
    font-size: 11px;
}
.client-entry strong {
    color: var(--ink);
}
.client-company-button {
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.client-company-button:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}
.client-entry .status {
    width: fit-content;
}
.client-entry-options {
    position: relative;
    z-index: 3;
}
.client-entry-options[open] {
    z-index: 10;
}
.client-entry-options summary {
    display: grid;
    place-items: center;
    width: 31px;
    height: 30px;
    border: 1px solid #b9dcda;
    border-radius: 7px;
    color: var(--brand-dark);
    background: #fff;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}
.client-entry-options summary::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
    content: "";
}
.client-entry-options summary::-webkit-details-marker {
    display: none;
}
.client-entry-options > div {
    position: absolute;
    z-index: 5;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    width: 160px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform-origin: top right;
}
.client-entry-options[open] > div {
    animation: options-reveal 0.18s ease-out both;
}
.client-entry-options a {
    padding: 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
}
.client-entry-options a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.client-modal {
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 24px 70px #17383b38;
}
.client-modal[open] {
    animation: modal-show 0.2s ease-out both;
}
.client-modal.modal-closing {
    animation: modal-hide 0.18s ease-in both;
}
.client-modal.modal-closing::backdrop {
    animation: backdrop-hide 0.18s ease-in both;
}
.client-modal::backdrop {
    background: #17383b70;
    backdrop-filter: blur(2px);
}
dialog[open] {
    animation: modal-show 0.2s ease-out both;
}
dialog[open]::backdrop {
    animation: backdrop-show 0.2s ease-out both;
}
dialog.modal-closing {
    pointer-events: none;
    animation: modal-hide 0.18s ease-in both;
}
dialog.modal-closing::backdrop {
    animation: backdrop-hide 0.18s ease-in both;
}
.client-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}
.client-modal-heading h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 20px;
}
.client-modal-heading p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.client-modal-heading button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}
.client-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}
.client-modal-grid > div {
    display: grid;
    gap: 5px;
}
.client-modal-grid .wide {
    grid-column: 1 / -1;
}
.client-modal-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.client-modal-grid strong {
    color: var(--ink);
    font-size: 12px;
}
.client-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: #fbfdfd;
}
@keyframes client-reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes options-reveal {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.client-modal-tabs {
    display: flex;
    gap: 6px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
}
.client-modal-tabs button {
    padding: 11px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.client-modal-tabs button.active {
    border-bottom-color: var(--brand);
    color: var(--brand-dark);
}
.client-modal-tabs button span {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    margin-left: 4px;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: 9px;
}
.client-modal [data-client-modal-panel][hidden] {
    display: none;
}
.client-modal-beneficiaries {
    min-height: 220px;
    padding: 24px;
}
.modal-beneficiary-list {
    display: grid;
    gap: 10px;
}
.modal-beneficiary-list article {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfd;
}
.modal-beneficiary-list article > div {
    display: grid;
    gap: 4px;
}
.modal-beneficiary-list span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}
.modal-beneficiary-list strong {
    color: var(--ink);
    font-size: 12px;
}
@keyframes modal-show {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes backdrop-show {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes modal-hide {
    to {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}
@keyframes backdrop-hide {
    to {
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    dialog[open],
    dialog[open]::backdrop,
    dialog.modal-closing,
    dialog.modal-closing::backdrop {
        animation: none;
    }
}
.client-form {
    display: grid;
    gap: 26px;
    padding: 28px;
}
.client-form-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.client-form-tabs button {
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.client-form-tabs button.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.client-form-tabs button.disabled {
    opacity: 0.42;
}
.client-form [hidden] {
    display: none;
}
.beneficiaries-panel {
    min-width: 0;
}
.beneficiaries-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.beneficiaries-heading h2 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 15px;
}
.beneficiaries-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}
.beneficiaries-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}
.beneficiaries-table {
    min-width: 980px;
}
.beneficiary-header,
.beneficiary-row {
    display: grid;
    grid-template-columns: 105px 160px minmax(220px, 1fr) 160px 155px 170px;
    gap: 10px;
    align-items: end;
}
.beneficiary-header {
    padding: 0 4px 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.beneficiary-row {
    padding: 10px 4px;
    border-top: 1px solid var(--line);
}
.beneficiary-row label {
    gap: 5px;
}
.beneficiary-row label > span {
    display: none;
}
.beneficiary-actions {
    display: flex;
    gap: 6px;
    height: 40px;
    align-items: center;
}
.beneficiary-actions button {
    flex: 1;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-dark);
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.beneficiary-actions [data-add-beneficiary] {
    border-color: #9bd4d1;
    background: var(--brand-soft);
}
.beneficiary-actions [data-remove-beneficiary] {
    color: #a84141;
}
.client-form select:disabled {
    color: #9babad;
    background: #f0f4f4;
    cursor: not-allowed;
}
.client-form input[readonly] {
    color: #587073;
    background: #f0f4f4;
    cursor: default;
}
.status-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
}
.status-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.status-switch > span {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 12px;
    background: #d8e3e3;
    cursor: pointer;
    transition: background 0.2s ease;
}
.status-switch > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px #17383b30;
    content: "";
    transition: transform 0.2s ease;
}
.status-switch input:checked + span {
    background: var(--brand);
}
.status-switch input:checked + span::after {
    transform: translateX(18px);
}
.status-switch input:focus-visible + span {
    outline: 3px solid #2499a42c;
    outline-offset: 2px;
}
.status-switch strong {
    color: var(--ink);
    font-size: 11px;
}
.client-form fieldset {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
}
.client-form legend {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}
.client-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}
.client-form label.wide {
    grid-column: span 2;
}
.client-form input,
.client-form select {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font-size: 12px;
}
.client-form input:focus,
.client-form select:focus {
    border-color: #83c8c6;
    background: #fff;
    box-shadow: 0 0 0 3px #2499a414;
}
.client-phone-validation {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}
.client-phone-validation.valid {
    color: #21876e;
}
.client-phone-validation.invalid {
    color: #b54848;
}
.client-phone-sync-hint {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
}
.client-form input[name="celular"]:has(+ .client-phone-validation.valid) {
    border-color: #64b69e;
}
.client-form input[name="celular"]:has(+ .client-phone-validation.invalid) {
    border-color: #d88787;
}
.client-modal-grid .client-phone-validation {
    margin-top: 6px;
}
@media (max-width: 760px) {
    .clients-shell {
        width: min(100% - 28px, 560px);
        margin-top: 24px;
    }
    .clients-heading {
        display: block;
    }
    .clients-heading nav {
        margin-top: 18px;
    }
    .client-form {
        padding: 20px;
    }
    .client-form fieldset {
        grid-template-columns: 1fr;
    }
    .client-result summary {
        grid-template-columns: auto 1fr auto;
    }
    .client-details {
        grid-template-columns: 1fr 1fr;
    }
    .client-details > div.wide {
        grid-column: span 2;
    }
    .client-entry-head {
        display: none;
    }
    .client-entry {
        grid-template-columns: 1fr auto;
    }
    .client-entry > span:not(.status) {
        grid-column: 1 / -1;
    }
    .client-entry-options {
        grid-column: 1 / -1;
        justify-self: end;
    }
    .client-modal-grid {
        grid-template-columns: 1fr 1fr;
    }
    .modal-beneficiary-list article {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .client-form label.wide {
        grid-column: auto;
    }
}
.advisors-card { padding: 20px; }
.advisors-card .table-wrap { margin-top: 16px; }
.advisor-email { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.advisor-form { max-width: 900px; }
.advisors-page .page-heading nav { display: flex; align-items: center; gap: 10px; }
.users-admin-page .page-heading nav { display: flex; align-items: center; gap: 10px; }
.users-admin-card { padding: 20px; }
.users-admin-card .table-wrap { margin-top: 16px; }
.user-admin-form { max-width: 920px; }
.user-role-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #176e73; background: #e9f7f6; font-size: 9px; font-weight: 800; }
.user-admin-form label small { color: var(--muted); font-size: 9px; }
.user-permissions-fieldset .wide { grid-column: 1 / -1; }
.user-permissions-note { grid-column: 1 / -1; margin: 0; padding: 13px; border-radius: 9px; color: var(--muted); background: #f7fafa; font-size: 11px; }
.permissions-grid { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); gap: 18px; }
.permission-user-picker,
.permission-form,
.permissions-empty { padding: 22px; }
.permission-user-picker { align-content: start; display: grid; gap: 16px; }
.permission-user-picker h2 { margin: 0; color: var(--ink); font-size: 16px; }
.permission-user-picker label { display: grid; gap: 7px; color: var(--text); font-size: 10px; font-weight: 700; }
.permission-user-picker select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfdfd; }
.permission-user-picker p,
.permissions-empty p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.permission-select-all { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 10px; font-weight: 700; }
.user-admin-form .permission-select-all {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    padding: 7px 11px;
    border: 1px solid #cfe7e5;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    cursor: pointer;
}
.user-admin-form .permission-select-all input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    accent-color: var(--brand);
}
.permission-options { display: grid; gap: 10px; margin-top: 18px; }
.permission-options > label { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfd; cursor: pointer; }
.permission-options > label:has(input:checked) { border-color: #9bd3ce; background: #eef9f7; box-shadow: inset 3px 0 0 var(--brand); }
.permission-options input { width: 16px; height: 16px; accent-color: var(--brand); }
.permission-options span { display: grid; gap: 4px; }
.permission-options strong { color: var(--ink); font-size: 11px; }
.permission-options small { color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width:760px){.permissions-grid{grid-template-columns:1fr;}}
.report-filter-form,
.report-results { padding: 22px; }
.report-filter-form fieldset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.report-filter-form legend { padding: 0 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.report-filter-form label { display: grid; gap: 6px; color: var(--text); font-size: 10px; font-weight: 700; }
.report-filter-form label.wide { grid-column: span 2; }
.report-filter-form input,
.report-filter-form select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fbfdfd; font: inherit; font-size: 11px; }
.report-filter-form input:focus,
.report-filter-form select:focus { border-color: #83c8c6; box-shadow: 0 0 0 3px #2499a414; }
.report-advanced-filters[hidden] { display: none; }
.report-results { margin-top: 18px; }
.report-table-wrap { max-height: 65vh; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }
.report-table-wrap table { min-width: max-content; }
.report-table-wrap th { position: sticky; z-index: 2; top: 0; min-width: 120px; background: #eef8f7; }
.report-table-wrap td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .report-filter-form fieldset { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .report-filter-form fieldset { grid-template-columns: 1fr; } .report-filter-form label.wide { grid-column: auto; } }

/* Login */
body.login-page {
    color: var(--ink);
    background: #f6faf9;
}
.login-page .login-shell {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    min-height: 100vh;
}
.login-page .welcome-panel {
    position: relative;
    overflow: hidden;
    padding: 46px 7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    background: linear-gradient(145deg, #126d75 0%, #2499a4 60%, #4bb5b8 100%);
}
.login-page .welcome-panel:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#fff4 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.22;
}
.login-page .brand,
.login-page .mobile-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.login-page .brand {
    padding: 0;
    color: white;
}
.login-page .login-brand {
    justify-content: flex-start;
}
.login-page .login-logo {
    display: block;
    width: min(210px, 72vw);
    height: auto;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(7, 88, 97, 0.22);
}
.login-page .mobile-brand .login-logo {
    width: min(190px, 72vw);
    padding: 10px 14px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(24, 59, 62, 0.08);
}
.login-page .brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: white;
    color: var(--brand);
    box-shadow: 0 8px 24px #07586155;
    font-weight: 700;
}
.login-page .welcome-copy,
.login-page .copyright {
    position: relative;
    z-index: 1;
}
.login-page .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c6f4ef;
    margin-bottom: 17px;
}
.login-page .eyebrow.dark {
    color: var(--brand);
}
.login-page h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -3.5px;
}
.login-page h1 em {
    font-style: normal;
    color: #a5e9e4;
}
.login-page .welcome-copy > p {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.7;
    color: #def6f3;
    margin: 25px 0 38px;
}
.login-page .feature-row {
    display: flex;
    gap: 28px;
    padding-top: 25px;
    border-top: 1px solid #ffffff38;
    font-size: 13px;
    color: #d9f4f1;
}
.login-page .feature-row span {
    display: grid;
    gap: 6px;
}
.login-page .feature-row b {
    font-size: 12px;
    color: #8de0da;
}
.login-page .copyright {
    font-size: 13px;
    color: #c4e9e6;
}
.login-page .orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #ffffff20;
    animation: float 8s ease-in-out infinite;
}
.login-page .orb-one {
    width: 340px;
    height: 340px;
    right: -130px;
    top: -100px;
}
.login-page .orb-two {
    width: 180px;
    height: 180px;
    right: 15%;
    bottom: -85px;
    animation-delay: -3s;
}
.login-page .form-panel {
    display: grid;
    place-items: center;
    padding: 45px;
    background: #fff;
}
.login-page .form-wrap {
    width: min(420px, 100%);
    animation: arrive 0.7s ease-out;
}
.login-page .mobile-brand {
    display: none;
    color: var(--ink);
    margin-bottom: 60px;
}
.login-page .form-wrap h2 {
    font-size: 38px;
    letter-spacing: -1.5px;
    margin: 0 0 10px;
}
.login-page .intro {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 35px;
}
.login-page .alert {
    padding: 13px 15px;
    margin-bottom: 20px;
    border: 1px solid #e8baba;
    border-radius: 10px;
    background: #fff5f5;
    color: #9a3f3f;
    font-size: 15px;
}
.login-page form {
    display: grid;
    gap: 11px;
}
.login-page label {
    font-size: 14px;
    font-weight: 600;
}
.login-page .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.login-page .label-row a,
.login-page .help a {
    font-size: 13px;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}
.login-page .input-group {
    position: relative;
}
.login-page .input-group > svg,
.login-page .toggle-password svg {
    position: absolute;
    width: 18px;
    fill: none;
    stroke: #819799;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-page .input-group > svg {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.login-page input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 45px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfd;
    color: var(--ink);
    outline: none;
    transition: 0.2s;
}
.login-page input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px #2499a414;
    background: white;
}
.login-page .toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 52px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.login-page .toggle-password svg {
    position: static;
}
.login-page .submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 54px;
    margin-top: 17px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, var(--brand-dark), var(--brand));
    color: white;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 25px #2499a433;
    transition: 0.25s;
}
.login-page .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px #2499a44d;
}
.login-page .help {
    text-align: center;
    margin-top: 32px;
    color: var(--muted);
    font-size: 13px;
}
@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes float {
    50% {
        transform: translateY(20px) rotate(8deg);
    }
}
@media (max-width: 850px) {
    .login-page .login-shell {
        display: block;
    }
    .login-page .welcome-panel {
        display: none;
    }
    .login-page .form-panel {
        min-height: 100vh;
        padding: 30px;
    }
    .login-page .mobile-brand {
        display: flex;
    }
    .login-page .form-wrap h2 {
        font-size: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *:before,
    .login-page *:after {
        animation: none !important;
        transition: none !important;
    }
}

/* Payments */

.payments-page-content {
    max-width: 1320px;
}
.payment-top-search {
    width: min(420px, 100%);
}
.payments-filter {
    display: grid;
    grid-template-columns: 190px minmax(240px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
}
.payments-filter label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}
.payments-filter input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font-size: 12px;
}
.payments-filter input:focus {
    border-color: #83c8c6;
    background: #fff;
    box-shadow: 0 0 0 3px #2499a414;
}
.payment-client-search-field,
.payment-client-list-summary {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d8eeee;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4fbfb, #ffffff);
}
.payment-client-search-field {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto;
    align-items: end;
}
.payment-client-list-summary {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
}
.payment-client-search-field p,
.payment-client-list-summary p {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.payment-client-search-field small,
.payment-client-list-summary small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.payment-client-search-field label {
    display: grid;
    gap: 7px;
}
.payment-client-search-field input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
}
.payment-client-search-field input:focus {
    border-color: #83c8c6;
    box-shadow: 0 0 0 3px #2499a414;
}
.receipt-link {
    color: var(--brand-dark);
    font-weight: 800;
}
.receipt-link:hover {
    text-decoration: underline;
}
.payments-shell {
    width: min(1240px, calc(100% - 48px));
}
.payments-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.payment-form {
    margin-bottom: 18px;
}
.payment-upload input[type="file"] {
    height: auto;
    min-height: 42px;
    padding: 7px;
    cursor: pointer;
}
.payment-upload input[type="file"]::file-selector-button {
    height: 30px;
    margin-right: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(115deg, var(--brand-dark), var(--brand));
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.payment-upload input[type="file"]::file-selector-button:hover {
    filter: brightness(1.04);
}
.payment-receipt-preview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 3px 0 0;
    padding: 9px;
    border: 1px solid #d8eeee;
    border-radius: 10px;
    background: #f4fbfb;
}
.payment-receipt-preview[hidden] {
    display: none;
}
.payment-receipt-preview img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
    object-fit: contain;
}
.payment-receipt-preview img:focus-visible {
    outline: 3px solid #2499a42c;
    outline-offset: 2px;
}
.payment-receipt-preview figcaption {
    display: grid;
    min-width: 0;
    gap: 3px;
}
.payment-receipt-preview strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.payment-receipt-preview small {
    color: var(--muted);
    font-size: 10px;
}
.payment-receipt-error {
    color: #b54848;
    font-size: 10px;
    font-weight: 700;
}
.payment-receipt-modal {
    width: min(1000px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
}
.payment-receipt-modal-body {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 20px;
    background: #eef5f5;
}
.payment-receipt-modal-body img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px #17383b1f;
    object-fit: contain;
}
.payment-field-hint {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}
.payment-client-list {
    display: grid;
    gap: 9px;
}
.payment-client-list > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.payment-client {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 150px 150px auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfd;
    cursor: pointer;
}
.payment-client:hover {
    border-color: #b8dada;
    background: #fff;
}
.payment-client.has-amount-error {
    border-color: #e3a49e;
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(211, 101, 88, 0.08);
}
.payment-client.has-amount-error .payment-client-amount input {
    border-color: #d86f63;
}
.payment-validation-alert {
    margin: 0;
}
.payment-client input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}
.payment-client span {
    display: grid;
    gap: 3px;
}
.payment-client strong {
    color: var(--ink);
    font-size: 12px;
}
.payment-client small {
    color: var(--muted);
    font-size: 11px;
}

.payment-client-money {
    display: grid;
    gap: 5px;
}
.payment-client-money small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.payment-client-money input {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.payment-client-money input:focus {
    border-color: #83c8c6;
    box-shadow: 0 0 0 3px #2499a414;
}
.payment-client em {
    padding: 5px 8px;
    border-radius: 12px;
    color: #c47a3f;
    background: #fdf1e7;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.payment-client.is-paid {
    opacity: 0.66;
    cursor: not-allowed;
}
.payment-client.is-paid em {
    color: #21876e;
    background: #e7f5ef;
}
.payment-history {
    padding: 20px;
}
@media (max-width: 760px) {
    .payments-filter,
    .payment-client-search-field,
    .payment-client-list-summary {
        grid-template-columns: 1fr;
    }
    .payments-stats {
        grid-template-columns: 1fr;
    }
    .payment-client {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .payment-client-money,
    .payment-client em {
        grid-column: 2;
        width: min(100%, 180px);
    }
    .payment-client em {
        width: fit-content;
    }
}
.payment-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.payment-tabs button {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.payment-tabs button.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.button.danger {
    border-color: #f0c9c5;
    color: #fff;
    background: linear-gradient(115deg, #b84f47, #dc7652);
    box-shadow: 0 7px 17px rgba(220, 118, 82, 0.18);
}
.button.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 21px rgba(220, 118, 82, 0.28);
}
.payment-delete-body {
    padding: 24px;
}
.payment-delete-body label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}
.payment-delete-body textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font: inherit;
    font-size: 12px;
}
.payment-delete-body textarea:focus {
    border-color: #83c8c6;
    background: #fff;
    box-shadow: 0 0 0 3px #2499a414;
}
.clients-page-content .clients-shell {
    width: 100%;
    margin: 0 auto;
}
.whatsapp-page {
    display: grid;
    gap: 18px;
}
.whatsapp-configuration-warning {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #efd4a8;
    border-radius: 11px;
    color: #8b642e;
    background: #fff9ed;
    font-size: 11px;
}
.whatsapp-configuration-warning strong {
    color: #73501f;
    font-size: 12px;
}
.clients-search select {
    width: min(100%, 190px);
}
.whatsapp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.whatsapp-period-filter label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}
.whatsapp-period-filter input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fbfdfd;
    font: inherit;
    font-size: 12px;
}
.whatsapp-period-filter input:focus {
    border-color: #83c8c6;
    box-shadow: 0 0 0 3px #2499a414;
}
.whatsapp-view-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.whatsapp-view-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}
.whatsapp-view-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}
.whatsapp-view-tabs button.active {
    color: #fff;
    background: var(--brand);
}
.whatsapp-view-tabs button span {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    color: inherit;
    background: #17383b14;
    text-align: center;
    font-size: 9px;
}
.whatsapp-view-tabs button.active span {
    background: #ffffff2b;
}
.whatsapp-client-search {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(240px, 400px) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px;
    border: 1px solid #d8eeee;
    border-radius: 11px;
    background: linear-gradient(135deg, #f4fbfb, #fff);
}
.whatsapp-client-search > div {
    display: grid;
    gap: 3px;
}
.whatsapp-client-search strong {
    color: var(--ink);
    font-size: 12px;
}
.whatsapp-client-search small,
.whatsapp-client-search > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}
.whatsapp-client-search input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 11px;
}
.whatsapp-client-search input:focus {
    border-color: #83c8c6;
    box-shadow: 0 0 0 3px #2499a414;
}
.whatsapp-client-search > span {
    align-self: center;
    white-space: nowrap;
}
.whatsapp-page [data-whatsapp-panel][hidden] {
    display: none !important;
}
.whatsapp-pending-card {
    padding: 20px;
}
.whatsapp-history-card {
    padding: 20px;
}
.whatsapp-history-card .client-cell > span:last-child {
    display: grid;
    gap: 2px;
}
.whatsapp-history-card .client-cell small {
    color: var(--muted);
    font-size: 9px;
}
.whatsapp-period-filter {
    display: flex;
    align-items: end;
    gap: 8px;
}
.whatsapp-period-filter input {
    height: 34px;
    padding: 0 8px;
}
.whatsapp-pending-card .client-cell > span:last-child {
    display: grid;
    gap: 2px;
}
.whatsapp-pending-card .client-cell small {
    color: var(--muted);
    font-size: 9px;
}
.whatsapp-client-avatar {
    padding: 0;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.whatsapp-client-avatar:hover,
.whatsapp-client-avatar:focus-visible {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 0 0 3px #2499a426, 0 3px 10px #17383b2b;
    outline: 0;
}
.whatsapp-client-modal {
    width: min(680px, calc(100% - 32px));
}
.whatsapp-client-modal [data-whatsapp-client-detail="message"] {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.whatsapp-resend-modal {
    width: min(520px, calc(100% - 32px));
}
.whatsapp-resend-modal-body {
    padding: 2px 24px 22px;
}
.whatsapp-resend-modal-body p {
    margin: 0;
    padding: 14px;
    border: 1px solid #efd4a8;
    border-radius: 10px;
    color: #73501f;
    background: #fff9ed;
    font-size: 12px;
    line-height: 1.55;
}
.whatsapp-send-check,
.whatsapp-resend-check,
.whatsapp-select-visible input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
}
.whatsapp-select-visible {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: inherit;
    font-size: 9px;
    font-weight: 800;
}
.whatsapp-select-visible input:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.whatsapp-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 12px;
    color: #71898c;
    background: #eef3f3;
    font-size: 9px;
    font-weight: 800;
}
.whatsapp-status.submitted,
.whatsapp-status.sent {
    color: #3579b3;
    background: #eaf3fb;
}
.whatsapp-status.delivered,
.whatsapp-status.read {
    color: #21876e;
    background: #e7f5ef;
}
.whatsapp-status.failed {
    color: #b54848;
    background: #fff0ef;
}
.whatsapp-error-detail,
.whatsapp-missing {
    display: block;
    margin-top: 4px;
    color: #b54848;
    font-size: 9px;
}
.whatsapp-error-detail {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.whatsapp-error-detail:hover,
.whatsapp-error-detail:focus-visible {
    color: #8f3030;
}
.whatsapp-error-modal {
    width: min(560px, calc(100% - 32px));
}
.whatsapp-error-modal-body {
    display: grid;
    gap: 14px;
    padding: 4px 24px 22px;
}
.whatsapp-error-modal-body > div {
    display: grid;
    gap: 5px;
}
.whatsapp-error-modal-body span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.whatsapp-error-modal-body strong {
    color: #b54848;
}
.whatsapp-error-modal-body p {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    color: var(--text);
    background: #fff5f4;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.whatsapp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 18px;
}
.whatsapp-actions > span {
    margin-right: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.whatsapp-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
@media (max-width: 760px) {
    .whatsapp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .whatsapp-pending-card .card-header,
    .whatsapp-view-toolbar,
    .whatsapp-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .whatsapp-period-filter {
        align-items: stretch;
    }
    .whatsapp-view-tabs,
    .whatsapp-view-tabs button {
        width: 100%;
    }
    .whatsapp-view-tabs button {
        justify-content: center;
    }
    .whatsapp-client-search {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .whatsapp-client-search > span {
        justify-self: start;
    }
    .whatsapp-actions > span {
        margin-right: 0;
    }
}
