:root {
    --green: #169B62;
    --green-dark: #11784C;
    --green-deep: #0E4E37;
    --green-soft: #EAF7F0;
    --black: #17211E;
    --white: #FFFFFF;
    --surface: #EEF4F0;
    --surface-alt: #F8FCF9;
    --surface-muted: #F2F7F4;
    --border: #D7E2DB;
    --border-strong: #C1D1C7;
    --text-muted: #64746F;
    --danger: #B42318;
    --danger-bg: #FEECEA;
    --info: #1B5FA7;
    --info-bg: rgba(27, 95, 167, 0.10);
    --warning: #8C640F;
    --warning-bg: rgba(140, 100, 15, 0.12);
    --shadow-soft: 0 20px 60px rgba(14, 78, 55, 0.08);
    --shadow-card: 0 18px 40px rgba(18, 47, 35, 0.08);
    --radius-2xl: 32px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.import-review-stage {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(10px, 2vw, 28px);
}

.import-review-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(47, 180, 123, 0.22), transparent 34%),
        linear-gradient(145deg, rgba(9, 41, 29, 0.78), rgba(13, 62, 43, 0.88));
    backdrop-filter: blur(12px);
}

.import-review-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(1480px, 100%);
    height: min(94vh, 940px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 30px;
    background: rgba(248, 252, 249, 0.98);
    box-shadow: 0 34px 90px rgba(1, 27, 17, 0.34);
}

.import-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(22, 155, 98, 0.10);
    background: rgba(255, 255, 255, 0.96);
}

.import-review-header h2 {
    margin: 3px 0 7px;
    color: var(--black);
}

.import-review-header p:last-child {
    max-width: 780px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.import-review-bulk-actions,
.import-review-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.import-review-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 0.55fr)) minmax(240px, 1.5fr);
    gap: 10px;
    padding: 13px 28px;
    border-bottom: 1px solid rgba(22, 155, 98, 0.10);
    background: rgba(237, 247, 241, 0.82);
}

.import-review-summary article,
.import-review-file-meta {
    min-width: 0;
    padding: 10px 13px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.74);
}

.import-review-messages {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
}

.import-review-messages .message-box {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.82rem;
}

.import-review-resume-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.import-review-resume-banner p {
    margin: 5px 0 0;
}

.import-review-summary span,
.import-review-summary strong {
    display: block;
}

.import-review-summary span {
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 800;
}

.import-review-summary strong {
    margin-top: 3px;
    color: var(--green-deep);
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.import-review-file-meta strong {
    font-size: 0.85rem;
}

.import-review-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 0 18px 18px;
}

.import-review-table-head,
.import-review-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.15fr) minmax(180px, 1.05fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(190px, auto);
    gap: 12px;
    align-items: center;
}

.import-review-table-head {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -18px;
    padding: 13px 32px;
    border-bottom: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(241, 248, 244, 0.97);
    color: var(--green-deep);
    font-size: 0.76rem;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.import-review-rows {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.import-review-row {
    padding: 14px;
    border: 1px solid rgba(22, 155, 98, 0.11);
    border-inline-start: 4px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.90);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.import-review-row:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.24);
}

.import-review-row.is-decided {
    border-inline-start-color: var(--green);
}

.import-review-row.is-new-restaurant {
    background: linear-gradient(135deg, rgba(235, 248, 241, 0.96), rgba(255, 255, 255, 0.94));
}

.import-review-restaurant {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.import-review-row-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 11px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 900;
}

.import-review-restaurant div,
.import-review-field,
.import-review-value {
    min-width: 0;
}

.import-review-restaurant strong,
.import-review-restaurant small {
    display: block;
    overflow-wrap: anywhere;
}

.import-review-restaurant strong {
    color: var(--black);
}

.import-review-restaurant small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.import-review-field > span {
    color: var(--black);
    font-weight: 850;
}

.import-review-value {
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(242, 246, 244, 0.92);
    overflow-wrap: anywhere;
}

.import-review-value small,
.import-review-value span {
    display: block;
}

.import-review-value small {
    display: none;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.import-review-value span {
    color: var(--black);
    font-weight: 750;
}

.import-review-value.is-old span {
    color: #7c4541;
    text-decoration-color: rgba(180, 35, 24, 0.32);
}

.import-review-value.is-new {
    background: rgba(226, 246, 236, 0.78);
}

.import-review-value.is-new span {
    color: var(--green-deep);
}

.import-review-decision {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.decision-option {
    position: relative;
    cursor: pointer;
}

.decision-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.decision-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(22, 155, 98, 0.15);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    transition: all 0.16s ease;
}

.decision-option.is-approve input:checked + span {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 155, 98, 0.18);
}

.decision-option.is-reject input:checked + span {
    border-color: #c7362c;
    background: #c7362c;
    color: #fff;
    box-shadow: 0 8px 18px rgba(199, 54, 44, 0.16);
}

.import-review-details {
    margin-top: 7px;
}

.import-review-details summary {
    cursor: pointer;
    color: var(--green-deep);
    font-size: 0.74rem;
    font-weight: 850;
}

.import-review-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 7px;
    width: min(540px, 62vw);
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    border-radius: 13px;
    background: #fff;
}

.import-review-details-grid div {
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.import-review-details-grid span,
.import-review-details-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.import-review-details-grid span {
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 800;
}

.import-review-details-grid strong {
    margin-top: 2px;
    color: var(--black);
    font-size: 0.76rem;
}

.import-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 28px;
    border-top: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 30px rgba(19, 71, 49, 0.06);
}

.import-review-progress {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.import-review-progress strong {
    color: var(--green-deep);
    font-size: 1.1rem;
}

.import-review-progress span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 1050px) {
    .import-review-dialog {
        height: 96vh;
        border-radius: 24px;
    }

    .import-review-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .import-review-file-meta {
        grid-column: 1 / -1;
    }

    .import-review-table-head {
        display: none;
    }

    .import-review-scroll {
        padding-top: 14px;
    }

    .import-review-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .import-review-restaurant,
    .import-review-field {
        grid-column: span 1;
    }

    .import-review-value small {
        display: block;
    }

    .import-review-decision {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .decision-option {
        flex: 1;
    }

    .decision-option span {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .import-review-resume-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .import-review-stage {
        padding: 0;
    }

    .import-review-dialog {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .import-review-header,
    .import-review-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .import-review-bulk-actions,
    .import-review-footer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .import-review-bulk-actions button,
    .import-review-footer-actions button {
        width: 100%;
    }

    .import-review-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 16px;
    }

    .import-review-scroll {
        padding: 10px;
    }

    .import-review-row {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .import-review-restaurant,
    .import-review-field,
    .import-review-decision {
        grid-column: auto;
    }

    .import-review-details-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .import-review-progress {
        justify-content: center;
    }
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
    color: var(--black);
    text-align: start;
    background:
        radial-gradient(circle at top left, rgba(22, 155, 98, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(17, 120, 76, 0.12), transparent 22%),
        linear-gradient(180deg, #FBFDFB 0%, var(--surface) 52%, #EDF5F0 100%);
}

body[data-lang="ar"] {
    font-family: "Cairo", "Segoe UI", Arial, sans-serif;
}

body[data-lang="he"] {
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
    z-index: 0;
}

.ambient-a {
    top: -110px;
    left: -70px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(22, 155, 98, 0.18) 0%, rgba(22, 155, 98, 0) 72%);
}

.ambient-b {
    top: 180px;
    right: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 78, 55, 0.10) 0%, rgba(14, 78, 55, 0) 70%);
}

.ambient-c {
    bottom: -120px;
    left: 35%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(22, 155, 98, 0.10) 0%, rgba(22, 155, 98, 0) 72%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 34px));
    margin: 0 auto;
    padding: 24px 0 44px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 22px;
    padding: 18px 22px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 252, 249, 0.78));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-home {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    max-width: 100%;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-mark {
    width: 128px;
    height: 48px;
    flex: 0 0 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.brand-block h1,
.hero-card h2,
.dashboard-toolbar h2,
.dashboard-hero h2,
.form-header h3,
.panel-header h3 {
    margin: 0;
}

.brand-copy h1 {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    line-height: 1.2;
}

.eyebrow {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.title-note {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.admin-badge,
.dashboard-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(22, 155, 98, 0.10);
    color: var(--green-deep);
    font-weight: 800;
    white-space: nowrap;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 100%;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    background: rgba(255, 255, 255, 0.72);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 10px 24px rgba(18, 47, 35, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lang-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.22);
    background: var(--white);
}

.lang-chip.is-active {
    color: var(--green-deep);
    border-color: rgba(22, 155, 98, 0.22);
    background: var(--green-soft);
    box-shadow: 0 14px 26px rgba(22, 155, 98, 0.12);
}

.lang-chip img {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(22, 155, 98, 0.12);
}

.content-shell {
    display: grid;
    gap: 24px;
}

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-navigation-shell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 120, 76, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(26, 67, 50, 0.05);
}

.dashboard-nav-group {
    display: grid;
    gap: 8px;
}

.dashboard-nav-group.is-management {
    justify-items: end;
}

.dashboard-nav-label {
    padding-inline: 5px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 120, 76, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--black);
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.24);
    background: var(--white);
}

.nav-link.is-active {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 14px 24px rgba(22, 155, 98, 0.20);
}

.workflow-tracker {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(17, 120, 76, 0.11);
    border-radius: 26px;
    background:
        radial-gradient(circle at 5% 0%, rgba(74, 187, 134, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92));
    box-shadow: 0 18px 42px rgba(26, 67, 50, 0.07);
}

.workflow-tracker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.workflow-tracker-head h2 {
    margin: 3px 0 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.workflow-next-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px 8px 14px;
    border: 1px solid rgba(22, 155, 98, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.workflow-next-action span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.workflow-next-action a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--green-deep);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.workflow-progress {
    height: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(17, 120, 76, 0.10);
}

.workflow-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    transition: width 0.35s ease;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.workflow-step a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "number copy"
        "number status";
    align-items: center;
    gap: 5px 11px;
    min-height: 116px;
    padding: 15px;
    border: 1px solid rgba(17, 120, 76, 0.10);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--black);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.workflow-step a:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 155, 98, 0.24);
}

.workflow-step-number {
    grid-area: number;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(17, 120, 76, 0.08);
    color: var(--green-deep);
    font-weight: 950;
}

.workflow-step-copy {
    grid-area: copy;
    min-width: 0;
}

.workflow-step-copy strong,
.workflow-step-copy small {
    display: block;
}

.workflow-step-copy strong {
    font-size: 0.92rem;
}

.workflow-step-copy small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.workflow-step-status {
    grid-area: status;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.workflow-step.is-complete .workflow-step-number {
    background: var(--green-deep);
    color: var(--white);
}

.workflow-step.is-current a {
    border-color: rgba(22, 155, 98, 0.32);
    background: var(--white);
    box-shadow: 0 14px 28px rgba(22, 155, 98, 0.11);
}

.workflow-step.is-current .workflow-step-status {
    color: var(--green-deep);
}

.workflow-step.is-locked a {
    opacity: 0.58;
}

.workflow-step.is-route-active a {
    box-shadow: inset 0 3px 0 var(--green), 0 14px 28px rgba(22, 155, 98, 0.09);
}

#workflow-import,
#workflow-reports {
    scroll-margin-top: 24px;
}

.page-stage,
.hero-grid,
.auth-shell,
.portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    gap: 22px;
}

.auth-shell {
    align-items: start;
}

.center-shell {
    display: flex;
    justify-content: center;
}

.hero-card,
.form-card,
.panel-card,
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-card);
}

.hero-card::before,
.form-card::before,
.panel-card::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-card,
.form-card,
.panel-card {
    padding: 30px;
}

.narrow-card {
    width: min(560px, 100%);
}

.hero-card.hero-spotlight {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
    color: var(--white);
}

.hero-card.hero-spotlight::before {
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 44%);
}

.hero-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-card {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 10px;
    min-height: 0;
    padding-block: 26px;
}

.auth-logo-wrap {
    width: min(290px, 100%);
    height: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 2px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.auth-card h2 {
    max-width: 14ch;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.auth-card .hero-text {
    max-width: 40ch;
}

.pill,
.panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-weight: 800;
    font-size: 0.84rem;
}

.pill-inverse {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-inline-note {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 700;
}

.panel-chip.subtle {
    background: rgba(23, 33, 30, 0.06);
    color: var(--black);
}

.hero-text,
.helper-text {
    margin: 0;
    line-height: 1.86;
    color: inherit;
}

.hero-card .hero-text {
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
}

.hero-text.small {
    color: var(--text-muted);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.feature-list.single-column {
    grid-template-columns: 1fr;
}

.feature-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

.form-card .feature-item,
.panel-card .feature-item {
    background: var(--surface-muted);
    border-color: rgba(22, 155, 98, 0.08);
}

.feature-item strong {
    font-size: 0.98rem;
}

.feature-item span {
    color: inherit;
    opacity: 0.88;
}

.hero-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.micro-card {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.micro-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-card,
.setup-card,
.panel-card,
.stat-card,
.dashboard-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 249, 0.92));
}

.login-card::before,
.setup-card::before,
.panel-card::before,
.stat-card::before,
.dashboard-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

.form-header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-header p,
.panel-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.compact-card {
    max-width: 540px;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.field-label {
    font-weight: 700;
    color: var(--black);
}

.text-input {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 16px;
    font: inherit;
    color: var(--black);
    text-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.text-input::placeholder {
    color: #93A39A;
}

.text-input:focus {
    outline: none;
    border-color: rgba(22, 155, 98, 0.54);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(22, 155, 98, 0.14);
}

.primary-button,
.secondary-button,
.ghost-button,
.link-button {
    min-height: 52px;
    border-radius: 16px;
    border: none;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.link-button:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: 0 16px 28px rgba(22, 155, 98, 0.22);
}

.primary-button:hover {
    box-shadow: 0 18px 34px rgba(22, 155, 98, 0.28);
}

.secondary-button {
    color: var(--green-deep);
    background: var(--white);
    border: 1px solid rgba(17, 120, 76, 0.18);
}

.secondary-button:hover,
.ghost-button:hover {
    border-color: rgba(22, 155, 98, 0.32);
    background: var(--surface-alt);
}

.ghost-button {
    padding: 0 16px;
    color: var(--black);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 226, 219, 0), rgba(215, 226, 219, 1), rgba(215, 226, 219, 0));
}

.subdued-block {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.login-step {
    display: grid;
    gap: 14px;
}

.login-step.is-hidden {
    display: none;
}

.login-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    border-radius: 18px;
    background: rgba(236, 249, 242, 0.78);
}

.login-method-tab {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.login-method-tab.is-active {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(22, 155, 98, 0.22);
}

.login-method-panel {
    display: grid;
    gap: 8px;
}

.login-method-panel.is-hidden {
    display: none;
}

.compact-helper {
    margin-top: -2px;
}

.otp-ready-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 4px;
    border-radius: 18px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(22, 155, 98, 0.07);
}

.otp-ready-card strong {
    display: block;
    margin-bottom: 3px;
}

.otp-ready-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.login-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: -2px;
}

.login-secondary-actions form {
    display: inline;
    margin: 0;
}

.text-link-button {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green-deep);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.text-link-button:hover {
    color: var(--green);
}

.text-link-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.message-box {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.74;
}

.message-box a,
.helper-text a {
    color: inherit;
    font-weight: 800;
}

.success-box {
    background: rgba(22, 155, 98, 0.10);
    border-color: rgba(22, 155, 98, 0.12);
    color: var(--green-deep);
}

.info-box {
    background: var(--info-bg);
    border-color: rgba(27, 95, 167, 0.12);
    color: var(--info);
}

.error-box {
    background: var(--danger-bg);
    border-color: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.debug-box {
    background: var(--warning-bg);
    border-color: rgba(140, 100, 15, 0.10);
    color: var(--warning);
}

.warning-box {
    background: var(--warning-bg);
    border-color: rgba(140, 100, 15, 0.14);
    color: var(--warning);
}

.monthly-replace-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.monthly-replace-confirm p {
    margin: 4px 0 0;
}

.monthly-replace-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
}

.dashboard-toolbar,
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

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

.wrap-actions {
    flex-wrap: wrap;
}

.install-form {
    margin-top: 14px;
}

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

.stats-grid-fluid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 244, 0.96));
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.stat-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.stat-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--green-deep);
    font-size: 2.2rem;
    line-height: 1;
}

.stat-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.74;
}

.monthly-statistics-card {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.monthly-statistics-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.monthly-statistics-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monthly-statistics-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(22, 155, 98, 0.10);
    color: var(--green-deep);
    font-size: 0.95rem;
    font-weight: 900;
}

.monthly-statistics-head h3 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.monthly-statistics-list {
    overflow: hidden;
    padding: 14px 22px;
    border: 1px solid rgba(41, 151, 104, 0.14);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 248, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.monthly-statistics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(41, 151, 104, 0.14);
}

.monthly-statistics-row:nth-last-child(2),
.monthly-statistics-row:last-child {
    border-bottom: 0;
}

.monthly-statistics-row.is-highlight {
    margin-top: 4px;
    border-top: 2px solid rgba(41, 151, 104, 0.34);
    border-bottom: 0;
    font-weight: 900;
}

.monthly-statistics-label {
    color: var(--text-muted);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.45;
}

.monthly-statistics-value {
    display: grid;
    gap: 3px;
    min-width: 150px;
    color: var(--green-deep);
    text-align: end;
}

.monthly-statistics-value strong {
    color: inherit;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.25;
}

.monthly-statistics-value small {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

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

.dashboard-actions {
    margin-top: 18px;
}

.records-page {
    scroll-margin-top: 24px;
}

.records-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.records-hint {
    margin: 10px 0 0;
}

.reports-filter-card {
    display: grid;
    gap: 18px;
}

.reports-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.reports-filter-field {
    display: grid;
    gap: 8px;
}

.reports-filter-field span {
    font-weight: 800;
    color: var(--green-deep);
}

.reports-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reports-selected-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.whatsapp-method-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.compact-select {
    min-height: 42px;
    min-width: 150px;
    padding-block: 8px;
    border-radius: 14px;
}

.whatsapp-sequence-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(22, 155, 98, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(236, 249, 242, 0.92), rgba(255, 255, 255, 0.84));
}

.whatsapp-sequence-status {
    display: grid;
    gap: 4px;
}

.whatsapp-sequence-status span {
    color: var(--green-deep);
    font-weight: 900;
}

.whatsapp-sequence-status strong {
    color: var(--black);
}

.whatsapp-sequence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-month-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
}

.reports-month-pill {
    min-width: 172px;
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    color: var(--black);
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(20, 54, 37, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.reports-month-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 155, 98, 0.22);
    background: var(--green-soft);
}

.reports-month-pill.is-active {
    background: linear-gradient(135deg, var(--green-main), var(--green-deep));
    color: var(--white);
    border-color: transparent;
}

.reports-month-pill span {
    font-size: 0.86rem;
    color: inherit;
    opacity: 0.78;
}

.reports-invoice-export-card {
    display: grid;
    gap: 18px;
}

.reports-invoice-export-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

.reports-export-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.reports-export-header strong {
    color: var(--green-deep);
    font-size: 1rem;
}

.reports-export-header span {
    color: var(--text-muted);
    font-weight: 700;
}

.reports-export-months {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reports-export-month-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    color: var(--green-deep);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.reports-export-month-option:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.22);
    background: var(--green-soft);
}

.reports-export-month-option.is-selected {
    border-color: rgba(22, 155, 98, 0.28);
    background: var(--green-soft);
    color: var(--green-deep);
    box-shadow: 0 14px 28px rgba(22, 155, 98, 0.12);
}

.reports-export-month-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-main);
}

.reports-month-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.reports-month-summary-grid article {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 248, 0.92));
}

.reports-month-summary-grid span {
    color: var(--text-muted);
    font-weight: 800;
}

.reports-month-summary-grid strong {
    color: var(--green-deep);
    font-size: 1.05rem;
    word-break: break-word;
}

.records-import-card {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(22, 155, 98, 0.08);
    background: var(--surface-muted);
}

.records-import-card h3 {
    margin: 0 0 6px;
}

.records-import-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.records-upload-form {
    align-items: flex-end;
}

.dashboard-import-card {
    padding: 22px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.66);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 244, 0.94));
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.dashboard-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.dashboard-upload-form-single {
    width: 100%;
}

.dashboard-upload-shell {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(234, 247, 240, 0.74));
}

.dashboard-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-upload-label {
    font-size: 1rem;
}

.dashboard-file-wrap {
    min-width: 0;
}

.dashboard-file-input {
    min-height: 72px;
    padding: 12px 14px;
    border-style: dashed;
    border-width: 1.5px;
    border-color: rgba(22, 155, 98, 0.26);
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-file-input:hover {
    border-color: rgba(22, 155, 98, 0.40);
    background: var(--white);
}

.dashboard-file-input::file-selector-button {
    margin-inline-end: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 14px;
    background: rgba(22, 155, 98, 0.12);
    color: var(--green-deep);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.dashboard-file-input::file-selector-button:hover {
    background: rgba(22, 155, 98, 0.18);
    transform: translateY(-1px);
}

.dashboard-upload-button {
    min-width: 230px;
    padding-inline: 22px;
    align-self: stretch;
}

.monthly-preview-card {
    padding-bottom: 22px;
}

.monthly-preview-header {
    align-items: center;
}

.dashboard-preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-preview-note {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.dashboard-preview-note span {
    display: inline-block;
    margin-inline: 8px;
    color: var(--border-strong);
    font-size: 0;
}

.dashboard-preview-note span::before {
    content: "\2022";
    font-size: 1rem;
}

.monthly-preview-wrap {
    margin-top: 18px;
    max-height: 640px;
    overflow: auto;
}

.monthly-waiver-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.monthly-waiver-header,
.monthly-waiver-cell {
    text-align: center;
    white-space: nowrap;
}

.monthly-waiver-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(41, 151, 104, 0.18);
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.monthly-waiver-toggle:hover {
    border-color: rgba(22, 155, 98, 0.36);
    box-shadow: 0 12px 24px rgba(20, 80, 54, 0.10);
}

.monthly-waiver-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.monthly-waiver-toggle span {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid rgba(52, 79, 70, 0.24);
    background: var(--white);
}

.monthly-waiver-toggle input:checked + span {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.monthly-waiver-toggle input:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.file-input-wrap {
    display: grid;
    gap: 8px;
    min-width: min(360px, 100%);
    flex: 1 1 320px;
}

.file-input {
    padding-block: 12px;
}

.two-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.three-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.clean-list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--black);
    line-height: 2;
}

.table-preview {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.records-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 960px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: start;
    vertical-align: middle;
    border-bottom: 1px solid rgba(215, 226, 219, 0.85);
}

.data-table thead th {
    background: var(--surface-muted);
    color: var(--green-deep);
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.data-table tbody tr {
    transition: background 0.18s ease;
}

.data-table tbody tr:hover {
    background: rgba(22, 155, 98, 0.05);
}

.table-clickable-row {
    cursor: pointer;
}

.monthly-products-row {
    cursor: pointer;
}

.monthly-products-row:hover td {
    background: rgba(19, 150, 94, 0.08);
}

.monthly-products-trigger {
    color: var(--green-deep);
    font-weight: 700;
}

.monthly-products-trigger:hover {
    text-decoration: underline;
}

.monthly-preview-action-link {
    display: inline-flex;
}

.table-preview-icon-cell {
    width: 72px;
    text-align: center;
}

.monthly-preview-icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(22, 155, 98, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(18, 47, 35, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.monthly-preview-icon-link:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.28);
    background: var(--green-soft);
}

.monthly-preview-icon-link img {
    width: 20px;
    height: 20px;
    display: block;
}

.monthly-batch-tools {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(234, 247, 240, 0.72));
}

.monthly-batch-actions,
.monthly-batch-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.monthly-batch-progress {
    display: grid;
    gap: 10px;
}

.monthly-batch-progress[hidden] {
    display: none;
}

.monthly-batch-progress-head {
    color: var(--green-deep);
    font-weight: 800;
}

.monthly-batch-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 33, 30, 0.08);
}

.monthly-batch-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    box-shadow: 0 8px 18px rgba(22, 155, 98, 0.18);
    transition: width 0.25s ease;
}

.monthly-batch-status {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.monthly-batch-status.is-success {
    color: var(--green-deep);
    font-weight: 800;
}

.monthly-batch-status.is-error {
    color: var(--danger);
    font-weight: 800;
}

.monthly-batch-status.is-warning {
    color: var(--warning);
    font-weight: 800;
}

.monthly-stop-button {
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.monthly-stop-button[hidden] {
    display: none;
}

.monthly-batch-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(13, 28, 23, 0.42);
    backdrop-filter: blur(8px);
}

.monthly-batch-modal[hidden] {
    display: none;
}

.monthly-batch-modal-card {
    position: relative;
    width: min(720px, 100%);
    max-height: min(82vh, 760px);
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(22, 155, 98, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 249, 0.96));
    box-shadow: 0 28px 90px rgba(13, 28, 23, 0.24);
}

.monthly-batch-modal-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
}

.monthly-batch-modal h3 {
    margin: 14px 0 8px;
    color: var(--black);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.monthly-batch-modal p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.7;
}

.monthly-batch-modal-errors {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(180, 35, 24, 0.14);
    background: rgba(180, 35, 24, 0.055);
}

.monthly-batch-modal-errors strong {
    color: var(--danger);
}

.monthly-batch-modal-errors ul {
    display: grid;
    gap: 8px;
    max-height: 260px;
    margin: 0;
    padding-inline-start: 20px;
    overflow: auto;
    color: var(--danger);
    font-weight: 800;
    line-height: 1.6;
}

.monthly-batch-modal-card > .primary-button {
    margin-top: 18px;
}

.monthly-batch-modal.is-warning .monthly-batch-modal-close {
    background: rgba(170, 120, 24, 0.12);
    color: var(--warning);
}

.monthly-batch-modal.is-warning .monthly-batch-modal-errors {
    border-color: rgba(170, 120, 24, 0.16);
    background: rgba(170, 120, 24, 0.06);
}

.monthly-batch-modal.is-warning .monthly-batch-modal-errors strong,
.monthly-batch-modal.is-warning .monthly-batch-modal-errors ul {
    color: var(--warning);
}

.monthly-batch-frame {
    position: fixed;
    top: 0;
    left: -200vw;
    width: 1240px;
    height: 1600px;
    border: 0;
    opacity: 0.01;
    pointer-events: none;
}

.monthly-batch-render-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 900px;
    min-height: 1600px;
    z-index: -1000;
    overflow: visible;
    pointer-events: none;
}

.monthly-batch-render-root[lang="ar"],
.monthly-batch-render-root[data-lang="ar"] {
    font-family: "Cairo", "Segoe UI", Arial, sans-serif;
}

.monthly-batch-render-root[lang="he"],
.monthly-batch-render-root[data-lang="he"] {
    font-family: "Heebo", "Segoe UI", Arial, sans-serif;
}

.monthly-batch-render-root[lang="en"],
.monthly-batch-render-root[data-lang="en"] {
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

.monthly-batch-render-root[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.monthly-batch-render-root[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.monthly-batch-render-root .monthly-report-sheet {
    width: 900px !important;
    max-width: none;
    margin: 0;
    font-family: inherit;
    transform: none !important;
}

.monthly-batch-render-root .monthly-report-sheet * {
    font-family: inherit;
}

.monthly-batch-render-root .report-formula-box code {
    font-family: "Cascadia Code", "Consolas", monospace;
}

.monthly-batch-render-root .monthly-report-sheet,
.monthly-batch-render-root .monthly-report-meta-card,
.monthly-batch-render-root .monthly-summary-card,
.monthly-batch-render-root .monthly-report-panel,
.monthly-batch-render-root .readonly-card,
.monthly-batch-render-root .report-formula-card,
.monthly-batch-render-root .report-formula-box,
.monthly-batch-render-root .report-formula-result-box {
    box-shadow: none;
}

.monthly-report-sheet.is-pdf-render {
    width: 760px !important;
    max-width: 760px !important;
    margin: 0 !important;
    padding: 14px !important;
    gap: 8px !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.monthly-report-sheet.is-pdf-render *,
.monthly-report-sheet.is-pdf-render {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.monthly-report-sheet.is-pdf-render .monthly-report-header,
.monthly-report-sheet.is-pdf-render .monthly-report-panel-head {
    gap: 10px;
    align-items: center;
}

.monthly-report-sheet.is-pdf-render .monthly-report-brand {
    gap: 10px;
}

.monthly-report-sheet.is-pdf-render .monthly-report-brand > div,
.monthly-report-sheet.is-pdf-render .monthly-report-panel-head > div {
    min-width: 0;
}

.monthly-report-sheet.is-pdf-render .monthly-report-brand img {
    width: 62px;
    flex: 0 0 auto;
}

.monthly-report-sheet.is-pdf-render .eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.monthly-report-sheet.is-pdf-render h2 {
    font-size: 1rem;
    line-height: 1.15;
}

.monthly-report-sheet.is-pdf-render h3 {
    font-size: 0.82rem;
    line-height: 1.2;
}

.monthly-report-sheet.is-pdf-render .hero-text.small {
    font-size: 0.64rem;
    line-height: 1.35;
}

.monthly-report-sheet.is-pdf-render .monthly-report-meta {
    flex: 0 0 132px;
    min-width: 132px;
    gap: 6px;
}

.monthly-report-sheet.is-pdf-render .monthly-report-meta-card {
    padding: 7px 9px;
    border-radius: 12px;
}

.monthly-report-sheet.is-pdf-render .monthly-report-meta-card span,
.monthly-report-sheet.is-pdf-render .monthly-summary-card span {
    font-size: 0.58rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.monthly-report-sheet.is-pdf-render .monthly-report-meta-card strong,
.monthly-report-sheet.is-pdf-render .monthly-summary-card strong {
    font-size: 0.72rem;
    line-height: 1.2;
}

.monthly-report-sheet.is-pdf-render .monthly-report-panel {
    padding: 9px;
    gap: 7px;
    border-radius: 14px;
}

.monthly-report-sheet.is-pdf-render .monthly-report-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.monthly-report-sheet.is-pdf-render .readonly-card {
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 11px;
}

.monthly-report-sheet.is-pdf-render .stat-label {
    font-size: 0.55rem;
    line-height: 1.2;
}

.monthly-report-sheet.is-pdf-render .readonly-card strong {
    font-size: 0.64rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.monthly-report-sheet.is-pdf-render .dashboard-hero-badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 0.58rem;
    gap: 5px;
    white-space: nowrap;
}

.monthly-report-sheet.is-pdf-render .report-date-range {
    flex-wrap: nowrap;
    gap: 3px;
}

.monthly-report-sheet.is-pdf-render .report-section-heading {
    gap: 7px;
}

.monthly-report-sheet.is-pdf-render .panel-chip {
    min-width: 22px;
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.62rem;
}

.monthly-report-sheet.is-pdf-render .report-executive-grid.report-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.monthly-report-sheet.is-pdf-render .report-data-card {
    min-height: 58px;
    padding: 7px 8px;
    border-radius: 12px;
    gap: 4px;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-box {
    padding: 4px 9px;
    border-radius: 12px;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-row,
.monthly-report-sheet.is-pdf-render .report-sales-amount-total {
    padding: 4px 0;
    gap: 8px;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-row span,
.monthly-report-sheet.is-pdf-render .report-sales-amount-total span {
    font-size: 0.62rem;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-row strong,
.monthly-report-sheet.is-pdf-render .report-sales-amount-total strong {
    flex: 0 0 auto;
    font-size: 0.68rem;
    line-height: 1.2;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-row.is-waived strong {
    text-decoration-thickness: 1px;
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-row.tone-negative strong {
    color: var(--danger);
}

.monthly-report-sheet.is-pdf-render .report-sales-amount-total {
    margin-top: 2px;
}

.monthly-report-sheet.is-pdf-render .report-settlement-banner,
.monthly-report-sheet.is-pdf-render .report-support-box {
    padding: 7px 9px;
    border-radius: 12px;
    font-size: 0.62rem;
    line-height: 1.35;
}

.report-page-shell {
    gap: 18px;
}

.report-actions {
    margin-bottom: 4px;
}

.report-save-status {
    margin-bottom: 10px;
}

.monthly-report-sheet {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(22, 155, 98, 0.14);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(16, 58, 40, 0.12);
    padding: 28px;
    display: grid;
    gap: 18px;
}

.monthly-report-header,
.monthly-report-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.monthly-report-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.monthly-report-brand img {
    width: 108px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.monthly-report-meta {
    display: grid;
    gap: 12px;
    min-width: 220px;
}

.monthly-report-meta-card,
.monthly-summary-card,
.report-note-box {
    border: 1px solid rgba(22, 155, 98, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(245, 251, 247, 0.95), rgba(255, 255, 255, 0.98));
}

.monthly-report-meta-card {
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.monthly-report-meta-card span,
.monthly-summary-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.monthly-report-meta-card strong,
.monthly-summary-card strong {
    color: var(--green-deep);
    font-size: 1.05rem;
}

.monthly-report-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(244, 250, 246, 0.72);
    border: 1px solid rgba(22, 155, 98, 0.08);
}

.monthly-report-info-grid,
.monthly-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.monthly-summary-card {
    padding: 18px;
    display: grid;
    gap: 6px;
}

.report-table-wrap {
    margin-top: 0;
}

.report-financial-table {
    min-width: 0;
}

.monthly-report-sheet .data-table {
    min-width: 0;
}

.report-emphasis-row td {
    background: rgba(22, 155, 98, 0.11);
    font-weight: 800;
    color: var(--green-deep);
}

.report-note-box {
    padding: 18px 20px;
    line-height: 1.9;
    color: var(--black);
}

.report-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-section-heading h3,
.report-formula-title {
    margin: 0;
}

.report-date-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.report-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-executive-grid.report-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.report-cards-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-data-card {
    min-height: 110px;
    justify-content: center;
}

.report-executive-grid .report-data-card {
    min-height: 92px;
    padding: 14px 12px;
}

.report-data-card.tone-negative strong {
    color: var(--danger);
}

.report-sales-amount-box {
    display: grid;
    gap: 0;
    padding: 8px 18px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(245, 251, 247, 0.95), rgba(255, 255, 255, 0.98));
}

.report-sales-amount-row,
.report-sales-amount-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
}

.report-sales-amount-row + .report-sales-amount-row {
    border-top: 1px solid rgba(22, 155, 98, 0.12);
}

.report-sales-amount-row span,
.report-sales-amount-total span {
    color: var(--text-muted);
    font-weight: 700;
}

.report-sales-amount-row strong,
.report-sales-amount-total strong {
    color: var(--green-deep);
    font-size: 1.02rem;
}

.report-sales-amount-row.is-waived strong {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--danger);
}

.report-sales-amount-row.is-subtotal {
    margin-top: 2px;
    border-top: 2px solid rgba(22, 155, 98, 0.24);
    font-weight: 900;
}

.report-sales-amount-row.tone-negative strong,
.report-sales-amount-row.is-waived.tone-negative strong {
    color: var(--danger);
}

.report-sales-amount-row.tone-positive strong,
.report-sales-amount-row.is-waived.tone-positive strong {
    color: var(--green-deep);
}

.report-sales-amount-total {
    margin-top: 4px;
    border-top: 2px solid rgba(22, 155, 98, 0.34);
    font-weight: 900;
}

.report-sales-amount-total span,
.report-sales-amount-total strong {
    color: var(--black);
    font-size: 1.12rem;
}

.report-sales-amount-total.tone-negative span,
.report-sales-amount-total.tone-negative strong {
    color: var(--danger);
}

.report-sales-amount-total.tone-positive span,
.report-sales-amount-total.tone-positive strong {
    color: var(--green-deep);
}

.report-settlement-banner,
.report-support-box {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: linear-gradient(180deg, rgba(245, 251, 247, 0.95), rgba(255, 255, 255, 0.98));
    font-weight: 800;
    line-height: 1.8;
}

.report-settlement-banner.tone-positive {
    color: var(--green-deep);
    background: rgba(22, 155, 98, 0.10);
}

.report-settlement-banner.tone-negative {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: rgba(180, 35, 24, 0.12);
}

.report-settlement-banner.tone-neutral {
    color: var(--black);
}

.report-financial-row.tone-positive td:last-child {
    color: var(--green-deep);
    font-weight: 800;
}

.report-financial-row.tone-negative td:last-child {
    color: var(--danger);
    font-weight: 800;
}

.report-formula-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-formula-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: linear-gradient(180deg, rgba(245, 251, 247, 0.95), rgba(255, 255, 255, 0.98));
}

.report-formula-box,
.report-formula-result-box {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(23, 33, 30, 0.05);
}

.report-formula-result-box {
    background: rgba(22, 155, 98, 0.09);
}

.report-formula-label {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.report-formula-box code {
    color: var(--black);
    white-space: normal;
    line-height: 1.8;
    font-family: "Cascadia Code", "Consolas", monospace;
}

.report-formula-result-box strong {
    color: var(--green-deep);
    font-size: 1.08rem;
}

.no-print {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

@media print {
    body {
        background: #ffffff;
    }

    .ambient,
    .topbar,
    .dashboard-navigation-shell,
    .dashboard-nav,
    .workflow-tracker,
    .report-actions,
    .report-save-status {
        display: none !important;
    }

    .page-shell,
    .content-shell,
    .dashboard-shell,
    .monthly-report-sheet {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: #ffffff;
    }

    .monthly-report-panel,
    .monthly-report-meta-card,
    .monthly-summary-card,
    .report-formula-card,
    .report-formula-box,
    .report-formula-result-box,
    .report-note-box,
    .readonly-card {
        break-inside: avoid;
        box-shadow: none;
    }

    .records-table-wrap {
        overflow: visible;
    }

    .data-table {
        min-width: 0;
    }
}

.table-primary-cell {
    display: grid;
    gap: 4px;
}

.table-primary-cell strong {
    font-size: 0.95rem;
}

.table-primary-cell small {
    color: var(--text-muted);
}

.table-actions-cell {
    white-space: nowrap;
}

.table-number {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.preview-row,
.empty-state {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(22, 155, 98, 0.08);
    background: var(--surface-muted);
}

.preview-row {
    display: grid;
    gap: 4px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.preview-row:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 155, 98, 0.18);
    background: var(--green-soft);
}

.preview-row strong {
    color: var(--green-deep);
}

.preview-row small,
.empty-state {
    color: var(--text-muted);
}

.select-input {
    display: block;
    width: 100%;
    height: 54px;
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    padding: 0 16px;
    font: inherit;
    color: var(--black);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    line-height: 54px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.select-input:focus {
    outline: none;
    border-color: rgba(22, 155, 98, 0.54);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(22, 155, 98, 0.14);
}

.select-input-compact {
    min-width: 180px;
    min-height: 46px;
}

.select-input-large {
    height: 60px;
    min-height: 60px;
    padding-inline: 16px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 60px;
}

.compact-button {
    min-height: 46px;
    padding: 0 16px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkbox-card:hover {
    border-color: rgba(22, 155, 98, 0.24);
    background: var(--white);
}

.checkbox-card-copy {
    display: grid;
    gap: 4px;
}

.checkbox-card-copy strong {
    color: var(--black);
    font-size: 1rem;
}

.checkbox-card-copy small {
    color: var(--text-muted);
}

.checkbox-input-large {
    width: 22px;
    height: 22px;
    accent-color: var(--green);
    cursor: pointer;
    flex: 0 0 22px;
}

.user-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(22, 155, 98, 0.08);
    background: var(--surface-muted);
}

.user-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.user-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(22, 155, 98, 0.18), rgba(17, 120, 76, 0.10));
    color: var(--green-deep);
    font-size: 0.95rem;
    font-weight: 900;
}

.user-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.user-main strong {
    font-size: 1rem;
}

.user-main small {
    color: var(--text-muted);
    line-height: 1.65;
}

.user-meta-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-left: 58px;
}

.user-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-content: center;
}

.user-side-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.user-note {
    max-width: 260px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(23, 33, 30, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-note {
    max-width: 100%;
}

.profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-profile-box,
.bank-profile-box {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: linear-gradient(180deg, rgba(236, 249, 242, 0.82), rgba(255, 255, 255, 0.92));
}

.bank-directory-fields {
    display: grid;
    gap: 14px;
}

.bank-lookup-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.bank-lookup-row .field-label {
    min-height: 54px;
    display: flex;
    align-items: center;
    margin: 0;
}

.bank-lookup-control {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lookup-help {
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
}

.lookup-help.lookup-error {
    color: #b42318;
}

.bank-lookup-control .text-input.lookup-invalid {
    border-color: rgba(180, 35, 24, 0.58);
    background: rgba(255, 244, 242, 0.94);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.10);
}

.lookup-results {
    display: grid;
    max-height: 230px;
    overflow: auto;
    border: 1px solid rgba(22, 155, 98, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(18, 47, 35, 0.10);
}

.lookup-results[hidden] {
    display: none;
}

.lookup-result-item {
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid rgba(22, 155, 98, 0.08);
    background: transparent;
    color: var(--green-deep);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
}

.lookup-result-item:last-child {
    border-bottom: 0;
}

.lookup-result-item:hover,
.lookup-result-item:focus {
    outline: none;
    background: var(--green-soft);
}

.bank-lookup-control .text-input:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    background: rgba(242, 247, 244, 0.88);
}

.textarea-input {
    min-height: 96px;
    padding-block: 14px;
    resize: vertical;
    line-height: 1.55;
}

.fee-schedule-box {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 249, 242, 0.74));
}

.fee-summary-grid,
.fee-schedule-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.fee-summary-grid .readonly-card {
    display: grid;
    grid-template-rows: 58px auto;
    align-content: start;
    gap: 10px;
    min-height: 146px;
}

.fee-summary-grid .stat-label {
    display: flex;
    align-items: flex-end;
    min-height: 58px;
    line-height: 1.18;
}

.fee-schedule-list {
    display: grid;
    gap: 10px;
}

.fee-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
}

.fee-schedule-row.is-current {
    border-color: rgba(22, 155, 98, 0.3);
    background: var(--green-soft);
}

.fee-schedule-delete-form {
    margin: 0;
}

.fee-profile-schedule-option {
    align-items: flex-start;
    background: rgba(236, 249, 242, 0.58);
}

.restaurant-profile-form .three-field-grid > div,
.restaurant-profile-form .two-field-grid > div {
    display: flex;
    flex-direction: column;
}

.restaurant-profile-form .three-field-grid .field-label,
.restaurant-profile-form .two-field-grid .field-label {
    display: flex;
    align-items: flex-end;
    min-height: 42px;
    line-height: 1.16;
}

.compact-header {
    margin-bottom: 0;
}

.portal-toggle-card {
    align-items: flex-start;
}

.portal-link-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
}

.portal-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.portal-link-card small {
    color: var(--text-muted);
    line-height: 1.65;
}

.restaurant-portal-shell {
    max-width: 980px;
    margin-inline: auto;
}

.portal-reports-card {
    display: grid;
    gap: 16px;
}

.portal-report-list {
    display: grid;
    gap: 12px;
}

.portal-report-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 247, 0.94));
}

.portal-report-card strong {
    display: block;
    color: var(--green-deep);
}

.portal-report-card small {
    color: var(--text-muted);
    word-break: break-word;
}

.portal-report-invoice {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 155, 98, 0.12);
}

.portal-invoice-approved {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 155, 98, 0.12);
}

.portal-invoice-approved strong,
.portal-invoice-approved small {
    display: block;
}

.portal-otp-card {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin-inline: auto;
}

.portal-otp-card h3 {
    margin: 0;
    color: var(--black);
}

.portal-otp-card p {
    margin: 0;
    color: var(--text-muted);
}

.portal-otp-form {
    display: grid;
    gap: 12px;
}

.portal-otp-resend {
    margin-top: -6px;
}

.text-action-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--green-deep);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.reports-phone-warning {
    display: grid;
    gap: 10px;
}

.reports-phone-warning-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-phone-warning-links a {
    color: var(--green-deep);
    font-weight: 800;
}

.portal-invoice-approved strong {
    margin-top: 4px;
    color: var(--green-deep);
}

.portal-invoice-approved small {
    margin-top: 4px;
    color: var(--green-dark);
    font-weight: 800;
}

.portal-invoice-head,
.portal-invoice-actions,
.portal-invoice-last {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-invoice-head strong {
    display: block;
    color: var(--black);
    font-size: 1rem;
}

.portal-invoice-head small,
.portal-invoice-ocr-status {
    color: var(--text-muted);
}

.portal-invoice-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(17, 120, 76, 0.08);
    color: var(--green-deep);
}

.portal-invoice-status.is-review {
    background: rgba(183, 114, 0, 0.10);
    color: #8A5A00;
}

.portal-invoice-status.is-bad {
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.portal-invoice-summary,
.portal-invoice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.portal-invoice-last {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(235, 247, 240, 0.52);
}

.portal-invoice-last span,
.portal-invoice-last small {
    color: var(--text-muted);
}

.portal-invoice-form {
    display: grid;
    gap: 12px;
}

.portal-invoice-field {
    display: grid;
    gap: 8px;
    color: var(--black);
    font-weight: 800;
}

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

.portal-file-input {
    min-height: 58px;
    padding: 14px 16px;
}

.portal-invoice-field .text-input.invoice-field-mismatch {
    border-color: rgba(190, 34, 23, 0.72);
    background: rgba(190, 34, 23, 0.06);
    color: var(--danger);
    box-shadow: 0 0 0 4px rgba(190, 34, 23, 0.08);
}

.portal-invoice-actions {
    justify-content: flex-start;
}

.portal-invoice-actions .compact-button {
    min-height: 44px;
    padding-inline: 18px;
}

.portal-invoice-read-source {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(22, 155, 98, 0.16);
    border-radius: 999px;
    background: rgba(22, 155, 98, 0.08);
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 900;
}

.portal-invoice-read-source.is-ocr {
    border-color: rgba(73, 96, 111, 0.16);
    background: rgba(73, 96, 111, 0.08);
    color: var(--text-muted);
}

.portal-invoice-read-source[hidden] {
    display: none;
}

.readonly-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(22, 155, 98, 0.08);
    background: var(--surface-muted);
}

.readonly-card strong {
    display: block;
    color: var(--green-deep);
    font-size: 1rem;
}

.danger-zone {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(180, 35, 24, 0.10);
}

.danger-form {
    margin-top: 12px;
}

.danger-button {
    min-height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #CF3D2A, #A61C00);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(166, 28, 0, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.danger-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(166, 28, 0, 0.28);
}

.inline-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.role-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.role-badge {
    background: rgba(22, 155, 98, 0.10);
    color: var(--green-deep);
}

.status-badge.is-active {
    background: rgba(22, 155, 98, 0.12);
    color: var(--green-deep);
}

.status-badge.is-inactive {
    background: rgba(180, 35, 24, 0.10);
    color: var(--danger);
}

.masav-page {
    gap: 20px;
}

.masav-settings-card {
    display: grid;
    gap: 18px;
}

.sms-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.sms-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.sms-sender-card {
    margin-bottom: 18px;
}

.sms-sender-form {
    grid-template-columns: minmax(260px, 520px) auto;
    justify-content: start;
}

.sms-log-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
}

.sms-log-table .sms-log-date { width: 142px; }
.sms-log-table .sms-log-phone { width: 165px; }
.sms-log-table .sms-log-sender { width: 110px; }
.sms-log-table .sms-log-type { width: 125px; }
.sms-log-table .sms-log-status { width: 105px; }
.sms-log-table .sms-log-provider { width: 260px; }

.sms-log-table th,
.sms-log-table td {
    vertical-align: middle;
}

.sms-log-date-cell,
.sms-log-phone-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sms-log-message-cell {
    min-width: 220px;
    overflow-wrap: anywhere;
}

.sms-log-provider-cell {
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.sms-message-field {
    grid-column: 1 / -1;
}

.sms-message-field textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
}

@media (max-width: 760px) {
    .sms-management-grid,
    .sms-form,
    .sms-sender-form {
        grid-template-columns: 1fr;
    }
}

.masav-settings-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

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

.masav-summary-grid .panel-card {
    min-height: 124px;
    padding: 20px;
    border-top: 4px solid var(--green-dark);
}

.masav-summary-grid span {
    display: block;
    color: var(--text-muted);
    font-weight: 800;
    line-height: 1.45;
}

.masav-summary-grid strong {
    display: block;
    margin-top: 14px;
    color: var(--green-deep);
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.05;
}

.masav-transfer-card {
    display: grid;
    gap: 18px;
}

.masav-actions-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(236, 249, 242, 0.70);
}

.masav-actions-row .reports-filter-field {
    min-width: min(260px, 100%);
}

.masav-table {
    min-width: 1180px;
}

.masav-table td small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.masav-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
    cursor: pointer;
}

.masav-table input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.masav-table .status-badge {
    max-width: 280px;
    white-space: normal;
    line-height: 1.45;
}

.masav-print-report {
    display: none;
}

@media print {
    @page masav-print {
        size: A4 portrait;
        margin: 9mm;
    }

    body {
        background: #fff;
    }

    .no-print,
    .dashboard-navigation-shell,
    .dashboard-nav,
    .workflow-tracker,
    .topbar,
    .message-box,
    .masav-settings-card,
    .reports-filter-card,
    .masav-summary-grid,
    .masav-transfer-card,
    .masav-page > .records-toolbar {
        display: none !important;
    }

    .page-shell,
    .dashboard-shell,
    .panel-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: #fff;
        border: 0;
    }

    .masav-page {
        page: masav-print;
        display: block;
        width: 100%;
        max-width: none;
        color: #15231e;
        direction: inherit;
    }

    .masav-print-report {
        display: block;
        width: 100%;
        font-size: 10px;
        line-height: 1.35;
        color: #15231e;
    }

    .masav-print-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 10px;
        border-bottom: 2px solid #15543b;
        margin-bottom: 8px;
    }

    .masav-print-header p,
    .masav-print-header span,
    .masav-print-summary span {
        display: block;
        margin: 0;
        color: #66756f;
        font-size: 9px;
        font-weight: 800;
    }

    .masav-print-header h1 {
        margin: 3px 0 4px;
        color: #15231e;
        font-size: 21px;
        line-height: 1.15;
    }

    .masav-print-summary {
        min-width: 150px;
        padding: 8px 10px;
        border: 1px solid #d7e2db;
        border-radius: 10px;
        text-align: center;
        background: #f5fbf8;
    }

    .masav-print-summary strong {
        display: block;
        color: #15543b;
        font-size: 16px;
        line-height: 1.2;
    }

    .masav-print-meta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 8px;
    }

    .masav-print-meta span {
        padding: 6px 8px;
        border: 1px solid #d7e2db;
        border-radius: 9px;
        background: #fbfdfc;
        color: #15543b;
        font-weight: 800;
    }

    .masav-print-list {
        display: grid;
        gap: 6px;
    }

    .masav-print-section {
        display: grid;
        gap: 6px;
        margin-top: 10px;
        break-inside: auto;
    }

    .masav-print-section + .masav-print-section {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        break-before: page;
        page-break-before: always;
    }

    .masav-print-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 6px 10px;
        border-radius: 10px;
        background: #edf8f2;
        color: #15543b;
        break-after: avoid;
    }

    .masav-print-section-title h2 {
        margin: 0;
        color: inherit;
        font-size: 14px;
        line-height: 1.2;
    }

    .masav-print-section-title span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 24px;
        padding: 0 8px;
        border-radius: 999px;
        background: #fff;
        color: #15543b;
        font-weight: 900;
    }

    .masav-print-section.tone-blocked .masav-print-section-title {
        background: #fff4f2;
        color: #b42318;
    }

    .masav-print-section.tone-blocked .masav-print-section-title span {
        color: #b42318;
    }

    .masav-print-section.tone-positive .masav-print-section-title {
        background: #f4f8f6;
        color: #15231e;
    }

    .masav-print-row {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #d7e2db;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }

    .masav-print-row.has-issues {
        border-color: #f2c8c3;
    }

    .masav-print-row-head {
        display: grid;
        grid-template-columns: 28px 1fr auto;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        background: #f5fbf8;
        border-bottom: 1px solid #d7e2db;
    }

    .masav-print-row-head span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: #e8f6ef;
        color: #15543b;
        font-weight: 900;
    }

    .masav-print-row-head strong {
        color: #15231e;
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .masav-print-row-head em {
        color: #15543b;
        font-size: 12px;
        font-style: normal;
        font-weight: 900;
        white-space: nowrap;
    }

    .masav-print-row-grid {
        display: grid;
        grid-template-columns: 1.3fr 0.85fr 0.52fr 0.52fr 0.85fr 1.35fr;
        gap: 0;
    }

    .masav-print-row-grid div {
        min-width: 0;
        padding: 6px 8px;
        border-inline-start: 1px solid #edf3ef;
    }

    .masav-print-row-grid div:first-child {
        border-inline-start: 0;
    }

    .masav-print-row-grid span {
        display: block;
        margin-bottom: 2px;
        color: #66756f;
        font-size: 8px;
        font-weight: 800;
        line-height: 1.2;
    }

    .masav-print-row-grid strong {
        display: block;
        color: #15543b;
        font-size: 9.5px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .masav-print-row.has-issues .masav-print-row-grid div:last-child strong {
        color: #b42318;
    }

    .records-table-wrap {
        overflow: visible;
    }

    .data-table {
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .page-stage,
    .hero-grid,
    .auth-shell,
    .portal-shell,
    .stats-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .topbar,
    .dashboard-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 24px 28px;
    }

    .auth-logo-wrap {
        width: min(240px, 100%);
        height: 96px;
    }

    .language-switcher {
        justify-content: flex-start;
        width: 100%;
    }

    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .user-row {
        grid-template-columns: 1fr;
    }

    .user-actions {
        justify-items: stretch;
    }

    .inline-form {
        width: 100%;
    }

    .inline-form .select-input,
    .inline-form .ghost-button,
    .inline-form .secondary-button {
        width: 100%;
    }

    .two-field-grid,
    .three-field-grid,
    .profile-readonly-grid,
    .fee-summary-grid,
    .fee-schedule-form,
    .fee-schedule-row {
        grid-template-columns: 1fr;
    }

    .records-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .reports-filter-form,
    .reports-invoice-export-form,
    .reports-month-summary-grid,
    .masav-settings-form,
    .masav-summary-grid {
        grid-template-columns: 1fr;
    }

    .portal-link-row,
    .portal-report-card,
    .portal-invoice-summary,
    .portal-invoice-grid,
    .bank-lookup-row {
        grid-template-columns: 1fr;
    }

    .portal-invoice-approved {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-invoice-approved .link-button {
        width: 100%;
    }

    .bank-lookup-row .field-label {
        min-height: 0;
    }

    .reports-filter-actions,
    .reports-filter-actions .primary-button,
    .reports-filter-actions .secondary-button,
    .reports-selected-header-actions,
    .reports-selected-header-actions .primary-button,
    .reports-invoice-export-form .primary-button {
        width: 100%;
    }

    .records-upload-form {
        width: 100%;
    }

    .dashboard-upload-form {
        grid-template-columns: 1fr;
    }

    .dashboard-upload-button {
        width: 100%;
    }

    .monthly-preview-header {
        align-items: flex-start;
    }

    .user-meta-strip {
        align-items: stretch;
    }

    .report-cards-grid,
    .report-cards-grid-compact,
    .report-formula-grid {
        grid-template-columns: 1fr;
    }

    .report-executive-grid.report-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 18px, 100%);
        padding-top: 18px;
    }

    .topbar,
    .hero-card,
    .form-card,
    .panel-card,
    .stat-card,
    .dashboard-hero {
        border-radius: 22px;
    }

    .topbar,
    .hero-card,
    .form-card,
    .panel-card,
    .dashboard-hero {
        padding: 20px;
    }

    .monthly-statistics-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .monthly-statistics-value {
        min-width: 0;
        text-align: start;
    }

    .brand-mark {
        width: 108px;
        height: 40px;
        flex-basis: 108px;
        padding: 0;
    }

    .hero-footer {
        grid-template-columns: 1fr;
    }

    .lang-chip {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        padding-inline: 8px;
    }

    .auth-card {
        padding: 22px 20px;
        gap: 8px;
    }

    .auth-logo-wrap {
        width: min(210px, 100%);
        height: 82px;
    }

    .auth-card h2 {
        max-width: none;
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .lang-chip span {
        font-size: 0.74rem;
    }
}
.invoice-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.invoice-summary-grid .panel-card {
    min-height: 126px;
    display: grid;
    align-content: center;
    gap: 10px;
}

.invoice-summary-grid span {
    color: var(--text-muted);
    font-weight: 800;
}

.invoice-summary-grid strong {
    color: var(--green-deep);
    font-size: 1.9rem;
}

.invoice-review-list {
    margin-top: 18px;
}

.invoice-review-table small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    line-height: 1.45;
}

.invoice-review-form {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.invoice-review-note {
    min-height: 44px;
    padding-block: 8px;
}

.invoice-review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge.is-review {
    color: var(--warning);
    background: var(--warning-bg);
}

.table-inline-link {
    display: inline-block;
    margin-top: 7px;
    color: var(--green-deep);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-invoice-not-required {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: var(--surface-muted);
    color: var(--green-deep);
    font-weight: 850;
}

@media (max-width: 860px) {
    .dashboard-navigation-shell,
    .workflow-tracker-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-nav-group.is-management {
        justify-items: start;
    }

    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-next-action {
        justify-content: space-between;
    }

    .invoice-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .dashboard-navigation-shell,
    .workflow-tracker {
        padding: 16px;
        border-radius: 20px;
    }

    .dashboard-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .nav-link {
        min-width: 0;
        padding-inline: 10px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-step a {
        min-height: 96px;
    }

    .workflow-next-action {
        align-items: stretch;
        flex-direction: column;
        border-radius: 16px;
        padding: 11px;
    }

    .workflow-next-action a {
        justify-content: center;
    }

    .invoice-summary-grid {
        grid-template-columns: 1fr;
    }

    .invoice-review-form {
        min-width: 220px;
    }
}
.four-field-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nav-alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-inline-start: 7px;
    padding: 0 7px;
    border-radius: 999px;
    background: #c7362c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(199, 54, 44, 0.22);
}

.nav-link.is-active .nav-alert-count {
    background: #fff;
    color: #b42318;
}

.alerts-page {
    display: grid;
    gap: 22px;
}

.alerts-overview-card,
.alerts-list-card {
    overflow: visible;
}

.alerts-total-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(199, 54, 44, 0.12);
    border-radius: 16px;
    background: rgba(255, 243, 241, 0.92);
    color: #9f2d25;
    white-space: nowrap;
}

.alerts-total-pill strong {
    font-size: 1.45rem;
    line-height: 1;
}

.alerts-total-pill span {
    font-weight: 800;
}

.alerts-summary-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.alert-summary-card {
    min-width: 0;
    min-height: 138px;
    padding: 17px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    border-top: 4px solid rgba(22, 155, 98, 0.36);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.90));
}

.alert-summary-card.is-total {
    border-top-color: #c7362c;
}

.alert-summary-card.is-restaurants {
    border-top-color: #e09b35;
}

.alert-summary-card span,
.alert-summary-card small {
    display: block;
    color: var(--text-muted);
    line-height: 1.45;
}

.alert-summary-card span {
    min-height: 42px;
    font-size: 0.84rem;
    font-weight: 850;
}

.alert-summary-card strong {
    display: block;
    margin: 7px 0;
    color: var(--green-deep);
    font-size: 1.7rem;
    line-height: 1;
}

.alert-summary-card.is-total strong {
    color: #b42318;
}

.alert-summary-card small {
    font-size: 0.72rem;
}

.alerts-list-heading {
    align-items: center;
}

.alerts-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(22, 155, 98, 0.10);
    border-radius: 20px;
    background: var(--surface-muted);
}

.alerts-filter-field {
    display: grid;
    gap: 7px;
}

.alerts-filter-field > span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.alerts-table {
    min-width: 1040px;
}

.alerts-table td {
    height: 76px;
}

.alert-field-name {
    color: var(--black);
}

.alert-category-chip,
.alert-priority-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.alert-category-chip {
    background: rgba(22, 155, 98, 0.09);
    color: var(--green-deep);
}

.alert-category-chip.is-financial {
    background: rgba(224, 155, 53, 0.13);
    color: #8b5b12;
}

.alert-category-chip.is-bank {
    background: rgba(39, 105, 171, 0.10);
    color: #265f96;
}

.alert-category-chip.is-portal {
    background: rgba(98, 83, 170, 0.10);
    color: #5a4c9f;
}

.alert-priority-chip.is-required {
    background: rgba(199, 54, 44, 0.10);
    color: #b42318;
}

.alert-priority-chip.is-review {
    background: rgba(224, 155, 53, 0.13);
    color: #8b5b12;
}

.alert-reason {
    display: block;
    max-width: 260px;
    margin-top: 7px;
    color: var(--text-muted);
    line-height: 1.45;
}

.alerts-filter-empty {
    margin-top: 18px;
}

.alerts-clear-state {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    text-align: center;
}

.alerts-clear-state strong {
    color: var(--green-deep);
    font-size: 1.08rem;
}

.alerts-clear-state span {
    color: var(--text-muted);
}

@media (max-width: 1280px) {
    .alerts-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .four-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .alerts-filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .alerts-summary-grid,
    .four-field-grid {
        grid-template-columns: 1fr;
    }

    .alert-summary-card {
        min-height: 116px;
    }

    .alerts-total-pill {
        width: 100%;
        justify-content: space-between;
    }
}


/* Restaurant profile workspace */
.restaurant-profile-page {
    --profile-line: rgba(26, 118, 79, 0.14);
    --profile-surface: rgba(248, 252, 250, 0.94);
}

.restaurant-profile-hero {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(51, 181, 124, 0.15), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 241, 0.96));
}

.restaurant-profile-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 42px solid rgba(21, 143, 91, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.restaurant-profile-hero > * {
    position: relative;
    z-index: 1;
}

.restaurant-profile-hero-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.restaurant-profile-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}

.restaurant-profile-hero-facts {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.profile-hero-fact {
    display: grid;
    gap: 2px;
    min-width: 116px;
    padding: 9px 13px;
    border: 1px solid rgba(21, 143, 91, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.profile-hero-fact small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.profile-hero-fact strong {
    color: var(--green-deep);
    font-size: 0.9rem;
}

.restaurant-profile-hero .dashboard-hero-badge {
    flex: 0 0 auto;
    max-width: min(320px, 100%);
    border: 1px solid rgba(21, 143, 91, 0.13);
    background: rgba(255, 255, 255, 0.78);
}

.restaurant-profile-toolbar {
    justify-content: flex-end;
    padding: 10px;
    border: 1px solid rgba(21, 143, 91, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(23, 70, 49, 0.06);
}

.restaurant-profile-section-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    overflow: visible;
}

.profile-section-nav-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.profile-section-nav-copy > div {
    display: grid;
    gap: 3px;
}

.profile-section-nav-copy strong {
    color: var(--black);
    font-size: 0.98rem;
}

.profile-section-nav-copy small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.profile-section-nav-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 38px;
    padding-inline: 10px;
    border-radius: 13px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.profile-section-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-section-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--green-deep);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-section-nav-links a:hover,
.profile-section-nav-links a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(21, 143, 91, 0.32);
    background: var(--green-soft);
    outline: none;
}

.restaurant-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 18px;
    align-items: start;
}

.restaurant-profile-editor,
.restaurant-profile-sidebar {
    overflow: visible;
}

.restaurant-profile-editor {
    padding: clamp(20px, 2.4vw, 32px);
}

.restaurant-profile-editor > .panel-header {
    padding: 0 2px 18px;
    border-bottom: 1px solid var(--profile-line);
}

.restaurant-profile-editor > .panel-header h3,
.restaurant-profile-sidebar > .panel-header h3 {
    margin-bottom: 5px;
}

.restaurant-profile-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.profile-section-card {
    scroll-margin-top: 22px;
    display: grid;
    gap: 18px;
    padding: clamp(18px, 2.2vw, 24px);
    border: 1px solid var(--profile-line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 248, 0.95));
    box-shadow: 0 12px 30px rgba(22, 66, 48, 0.045);
}

.profile-section-heading,
.profile-section-card > .compact-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--profile-line);
}

.profile-section-heading > span,
.profile-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(21, 143, 91, 0.18);
}

.profile-section-heading > div,
.profile-section-title-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.profile-section-heading h3,
.profile-section-title-copy h3 {
    margin: 0;
    color: var(--black);
    font-size: 1.08rem;
}

.profile-section-heading p,
.profile-section-title-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.restaurant-profile-form .profile-section-card > .field-label {
    margin-bottom: -10px;
}

.restaurant-profile-form .profile-section-card .two-field-grid,
.restaurant-profile-form .profile-section-card .three-field-grid,
.restaurant-profile-form .profile-section-card .four-field-grid {
    gap: 14px;
}

.restaurant-profile-form .portal-profile-box,
.restaurant-profile-form .bank-profile-box {
    background:
        linear-gradient(180deg, rgba(252, 255, 253, 0.98), rgba(238, 249, 243, 0.88));
}

.restaurant-profile-form .bank-directory-fields {
    padding: 16px;
    border: 1px solid rgba(21, 143, 91, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.restaurant-profile-form .checkbox-card {
    margin: 0;
    border-color: rgba(21, 143, 91, 0.14);
    border-radius: 17px;
}

.restaurant-profile-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(21, 143, 91, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(234, 249, 241, 0.96), rgba(255, 255, 255, 0.98));
}

.restaurant-profile-save-bar small {
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1.55;
}

.restaurant-profile-save-bar .primary-button {
    flex: 0 0 auto;
    min-width: 210px;
}

.restaurant-profile-editor .fee-schedule-box {
    margin-top: 20px;
    padding: clamp(18px, 2.2vw, 24px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 249, 242, 0.88));
}

.restaurant-profile-sidebar {
    display: grid;
    gap: 18px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 245, 0.96));
}

.restaurant-profile-sidebar .profile-readonly-grid {
    gap: 10px;
}

.restaurant-profile-sidebar .readonly-card {
    min-height: 102px;
    padding: 15px;
    border-radius: 17px;
}

.restaurant-profile-sidebar .table-preview {
    gap: 0;
    margin-top: 0;
    overflow: hidden;
    border: 1px solid var(--profile-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

.restaurant-profile-sidebar .preview-row {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(21, 143, 91, 0.09);
    background: transparent;
}

.restaurant-profile-sidebar .preview-row:last-child {
    border-bottom: 0;
}

.restaurant-profile-sidebar .preview-row strong {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.restaurant-profile-sidebar .preview-row small {
    overflow-wrap: anywhere;
    color: var(--green-deep);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .restaurant-profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .restaurant-profile-form .four-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .restaurant-profile-section-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-section-nav-links {
        justify-content: flex-start;
        width: 100%;
    }

    .restaurant-profile-layout {
        grid-template-columns: 1fr;
    }

    .restaurant-profile-sidebar .table-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .restaurant-profile-sidebar .preview-row:nth-last-child(2) {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    .restaurant-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .restaurant-profile-hero .dashboard-hero-badge {
        width: 100%;
    }

    .restaurant-profile-toolbar,
    .restaurant-profile-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .restaurant-profile-toolbar > *,
    .restaurant-profile-save-bar .primary-button {
        width: 100%;
    }

    .profile-section-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-section-nav-links a {
        justify-content: center;
        text-align: center;
    }

    .restaurant-profile-form .four-field-grid,
    .restaurant-profile-form .three-field-grid,
    .restaurant-profile-sidebar .table-preview {
        grid-template-columns: 1fr;
    }

    .restaurant-profile-sidebar .preview-row:nth-last-child(2) {
        border-bottom: 1px solid rgba(21, 143, 91, 0.09);
    }
}

@media (max-width: 480px) {
    .restaurant-profile-hero-facts,
    .profile-section-nav-links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .profile-hero-fact {
        width: 100%;
    }

    .profile-section-nav-copy {
        min-width: 0;
    }

    .restaurant-profile-editor,
    .restaurant-profile-sidebar {
        padding: 16px;
    }

    .profile-section-card {
        padding: 16px;
        border-radius: 18px;
    }
}

.profile-links-card,
.profile-links-result-card {
    border-color: rgba(22, 155, 98, 0.14);
}

.profile-links-form {
    display: grid;
    gap: 20px;
}

.profile-links-controls,
.profile-link-result-item,
.profile-update-form-head,
.profile-update-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-links-control-buttons,
.profile-link-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.profile-links-table-wrap {
    border-radius: 22px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.profile-links-table {
    min-width: 1060px;
}

.profile-links-table th,
.profile-links-table td {
    vertical-align: middle;
    padding-block: 12px;
}

.profile-link-check-column {
    width: 54px;
    text-align: center;
}

.profile-link-check-column input {
    width: 19px;
    height: 19px;
    accent-color: var(--green);
}

.profile-link-row:hover {
    background: rgba(236, 249, 242, 0.62);
}

.profile-link-alert-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding-inline: 10px;
    border-radius: 999px;
    color: var(--green-deep);
    background: rgba(22, 155, 98, 0.1);
    font-weight: 900;
}

.profile-link-alert-breakdown {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.profile-link-url-cell {
    min-width: 280px;
}

.profile-link-url-input {
    min-height: 42px;
    font-size: 0.86rem;
}

.profile-link-url-input::placeholder,
.profile-link-empty {
    color: rgba(104, 122, 113, 0.72);
}

.profile-link-date {
    color: var(--green-deep);
    font-weight: 800;
    white-space: nowrap;
}

.profile-link-action-button {
    min-width: 110px;
    justify-content: center;
}

.profile-update-shell {
    width: min(980px, 100%);
    margin-inline: auto;
}

.profile-update-hero {
    min-height: auto;
}

.profile-update-state,
.profile-update-form {
    display: grid;
    gap: 22px;
    padding: clamp(20px, 4vw, 34px);
}

.profile-update-state {
    text-align: center;
}

.profile-update-state h3,
.profile-update-form h3,
.profile-update-section h4 {
    margin: 0;
    color: var(--black);
}

.profile-update-form-head {
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(22, 155, 98, 0.12);
}

.profile-update-form-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-weight: 700;
}

.profile-update-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(22, 155, 98, 0.12);
    border-radius: 24px;
    background: rgba(248, 252, 249, 0.74);
}

.profile-update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-update-field {
    display: grid;
    gap: 8px;
}

.profile-update-field span {
    color: var(--black);
    font-weight: 800;
}

.profile-update-field b,
.profile-update-error {
    color: var(--danger);
}

.profile-update-field small {
    color: var(--text-muted);
    font-weight: 700;
}

.profile-update-wide {
    grid-column: 1 / -1;
}

.profile-update-invalid,
.profile-update-field .text-input:invalid {
    border-color: rgba(180, 35, 24, 0.42);
    background: rgba(254, 236, 234, 0.28);
}

.profile-update-actions {
    padding-top: 4px;
}

.profile-update-actions small {
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 760px) {
    .whatsapp-method-field,
    .whatsapp-sequence-panel {
        width: 100%;
    }

    .whatsapp-method-field {
        justify-content: space-between;
    }

    .whatsapp-sequence-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .whatsapp-sequence-actions > * {
        flex: 1;
        justify-content: center;
    }

    .profile-links-controls,
    .profile-link-result-item,
    .profile-update-form-head,
    .profile-update-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-links-control-buttons,
    .profile-link-actions {
        width: 100%;
    }

    .profile-links-control-buttons > *,
    .profile-link-actions > *,
    .profile-update-actions .primary-button {
        flex: 1;
        justify-content: center;
    }

    .profile-update-grid {
        grid-template-columns: 1fr;
    }
}
