* {
    box-sizing: border-box;
}

:root {
    --soni-blue: #344D9C;
    --soni-orange: #E17A47;
    --deep-navy: #1E2B5E;
    --warm-coral: #F4A261;
    --soft-cream: #FDF8F3;
    --cool-grey: #6B7280;
    --light-grey: #F3F4F6;
    --light-blue: #E8EEF7;
    --light-orange: #FCE8E0;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--soft-cream);
    color: var(--deep-navy);
}

.dashboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cash-delivery-page .dashboard-header {
    padding-right: 190px;
}

.cash-delivery-panel {
    overflow: hidden;
    border: 1px solid #eee1d9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(30 43 94 / 6%);
}

.cash-delivery-refresh {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-bottom: 1px solid #f0e8e2;
    color: #667085;
    font-size: 13px;
}

.cash-delivery-refresh > span {
    font-weight: 700;
}

.cash-delivery-refresh strong {
    color: var(--deep-navy);
}

.cash-delivery-refresh small {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}

.cash-delivery-refresh-status.is-completed {
    background: #e9f5ef;
    color: #21764e;
}

.cash-delivery-refresh-status.is-failed {
    background: #fff0ed;
    color: #b54735;
}

.cash-delivery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid #f0e8e2;
}

.cash-delivery-tabs {
    display: flex;
    gap: 8px;
}

.cash-delivery-tabs a {
    padding: 10px 15px;
    border-radius: 999px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cash-delivery-tabs a.active {
    background: #e8eef7;
    color: var(--soni-blue);
}

.cash-delivery-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cash-delivery-search input {
    width: min(340px, 34vw);
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dedfe4;
    border-radius: 10px;
    color: var(--deep-navy);
    font: inherit;
}

.cash-delivery-search button,
.cash-delivery-mark-form button,
.cash-delivery-decline-form button {
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: var(--soni-blue);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cash-delivery-search a {
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cash-delivery-table-wrap {
    overflow-x: auto;
}

.cash-delivery-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cash-delivery-table th {
    padding: 14px 16px;
    background: #fbf8f6;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cash-delivery-table td {
    padding: 15px 16px;
    border-top: 1px solid #f1ece8;
    color: #344054;
    font-size: 13px;
    vertical-align: middle;
}

.cash-delivery-table td strong {
    color: var(--deep-navy);
}

.cash-delivery-table td small {
    display: block;
    margin-top: 4px;
    color: #7b8494;
    font-size: 11px;
}

.cash-delivery-amount {
    white-space: nowrap;
}

.cash-delivery-mark-form {
    margin: 0;
}

.cash-delivery-mark-form button {
    background: #e9f5ef;
    color: #21764e;
    white-space: nowrap;
}

.cash-delivery-decline-form,
.cash-delivery-mark-form {
    margin: 0;
}

.cash-delivery-decline-form button {
    border: 1px solid #ead3c5;
    background: #fff8f3;
    color: #a64f2a;
}

.cash-delivery-flash {
    margin: 0 0 16px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #eaf6ef;
    color: #21764e;
    font-weight: 700;
}

.cash-delivery-flash.error {
    background: #fff0ed;
    color: #b54735;
}

.cash-delivery-empty {
    padding: 76px 22px;
    text-align: center;
}

.cash-delivery-empty > span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #e9f5ef;
    color: #21764e;
    font-size: 23px;
    font-weight: 800;
}

.cash-delivery-empty h2 {
    margin: 14px 0 6px;
    color: var(--deep-navy);
    font-size: 19px;
}

.cash-delivery-empty p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 14px;
}

.cash-delivery-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid #f0e8e2;
    color: #667085;
    font-size: 13px;
}

.cash-delivery-pagination > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cash-delivery-pagination a {
    color: var(--soni-blue);
    font-weight: 700;
    text-decoration: none;
}

.cash-delivery-pagination a.disabled {
    opacity: .4;
    pointer-events: none;
}

@media (max-width: 760px) {
    .cash-delivery-page .dashboard-header {
        padding-right: 0;
        padding-top: 76px;
    }

    .cash-delivery-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
    }

    .cash-delivery-refresh {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 14px 15px;
    }

    .cash-delivery-search {
        flex-wrap: wrap;
    }

    .cash-delivery-search input {
        flex: 1 1 180px;
        width: auto;
    }

    .cash-delivery-table,
    .cash-delivery-table tbody,
    .cash-delivery-table tr,
    .cash-delivery-table td {
        display: block;
        width: 100%;
    }

    .cash-delivery-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .cash-delivery-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 14px;
        padding: 8px 15px;
        border-top: 1px solid #f1ece8;
    }

    .cash-delivery-table td {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px 0;
        border: 0;
        overflow-wrap: anywhere;
    }

    .cash-delivery-mark-form button,
    .cash-delivery-decline-form button {
        width: 100%;
        min-height: 44px;
        padding: 7px 9px;
        white-space: normal;
    }

    .cash-delivery-table td::before {
        content: attr(data-label);
        color: #7b8494;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .cash-delivery-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 15px;
    }

    .cash-delivery-pagination > div {
        width: 100%;
        justify-content: space-between;
    }
}

.dashboard-header {
    position: relative;
    margin-bottom: 28px;
    padding-right: 176px;
}

.dashboard-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    color: var(--deep-navy);
}

.dashboard-header p {
    margin: 0;
    color: var(--cool-grey);
}

.dashboard-header > a {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--soni-blue);
    font-weight: 600;
    text-decoration: none;
}

.dashboard-header > a:hover {
    color: var(--soni-orange);
}

.dashboard-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.account-name-label {
    display: inline-flex;
    align-items: center;
    max-width: min(280px, 34vw);
    min-height: 42px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid #E8D8CF;
    border-radius: 999px;
    background: rgb(255 255 255 / 78%);
    color: var(--deep-navy);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-name-link {
    gap: 9px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.account-name-link small {
    flex: 0 0 auto;
    color: var(--cool-grey);
    font-size: 11px;
    font-weight: 700;
}

.account-name-link > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-name-link:hover,
.account-name-link:focus-visible {
    border-color: var(--soni-orange);
    background: #fff;
    color: var(--soni-blue);
}

.account-name-link:focus-visible {
    outline: 3px solid rgb(225 122 71 / 38%);
    outline-offset: 3px;
}

.logout-form {
    margin: 0;
}

.settings-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #E8D8CF;
    border-radius: 50%;
    background: rgb(255 255 255 / 78%);
    color: var(--deep-navy);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.settings-icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-icon-button:hover {
    transform: translateY(-1px) rotate(12deg);
    border-color: var(--soni-orange);
    background: #fff;
    color: var(--soni-blue);
}

.settings-icon-button:focus-visible {
    outline: 3px solid rgb(225 122 71 / 38%);
    outline-offset: 3px;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #E8D8CF;
    border-radius: 999px;
    background: rgb(255 255 255 / 78%);
    color: var(--deep-navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.logout-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logout-button:hover {
    background: #fff;
    border-color: var(--soni-orange);
    transform: translateY(-1px);
}

.logout-button:focus-visible,
.login-submit:focus-visible {
    outline: 3px solid rgb(225 122 71 / 38%);
    outline-offset: 3px;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 12% 14%, rgb(232 238 247 / 90%), transparent 34%),
        radial-gradient(ellipse at 88% 84%, rgb(252 232 224 / 82%), transparent 36%),
        var(--soft-cream);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-panel {
    width: min(100%, 460px);
    padding: clamp(28px, 7vw, 48px);
    border: 1px solid rgb(255 255 255 / 90%);
    border-radius: 24px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 24px 70px rgb(30 43 94 / 13%), 0 3px 10px rgb(30 43 94 / 4%);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
}

.login-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--soni-blue), var(--deep-navy));
    box-shadow: 0 7px 16px rgb(52 77 156 / 24%);
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-brand-name {
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.login-brand-name span {
    color: var(--cool-grey);
    font-weight: 600;
}

.login-heading {
    margin-bottom: 28px;
}

.login-eyebrow {
    margin: 0 0 10px;
    color: var(--soni-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.login-heading h1 {
    margin: 0 0 9px;
    color: var(--deep-navy);
    font-size: clamp(28px, 6vw, 34px);
    letter-spacing: -1px;
}

.login-intro {
    margin: 0;
    color: var(--cool-grey);
    font-size: 15px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 11px;
}

.login-form label {
    margin-top: 5px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.login-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #DCE2EB;
    border-radius: 11px;
    background: #FCFDFE;
    color: var(--deep-navy);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input::placeholder {
    color: #9AA3B2;
}

.login-input:focus {
    outline: none;
    border-color: var(--soni-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgb(52 77 156 / 11%);
}

.login-submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, var(--soni-blue), #263C85);
    box-shadow: 0 8px 18px rgb(52 77 156 / 22%);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.login-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.login-submit:hover {
    background: linear-gradient(110deg, #293F8D, var(--deep-navy));
    box-shadow: 0 11px 22px rgb(30 43 94 / 25%);
    transform: translateY(-1px);
}

.login-submit:hover svg {
    transform: translateX(3px);
}

.login-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #F4D0CC;
    border-radius: 10px;
    background: #FFF5F3;
    color: var(--error);
    font-size: 13px;
    line-height: 1.45;
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 0;
    padding-top: 19px;
    border-top: 1px solid #EEF0F4;
    color: var(--cool-grey);
    font-size: 12px;
}

.login-footer-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--soni-orange);
}

@media (max-width: 560px) {
    .dashboard-header {
        padding-right: 0;
    }

    .dashboard-header-actions {
        position: static;
        margin-top: 18px;
        flex-wrap: wrap;
    }

    .account-name-label {
        max-width: min(280px, calc(100vw - 48px));
    }
}

.settings-intro {
    margin: 0 0 24px;
    color: var(--cool-grey);
    line-height: 1.55;
}

.settings-list {
    display: grid;
    gap: 12px;
    max-width: 760px;
}

.settings-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(30 43 94 / 5%);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.settings-list-item:hover {
    transform: translateY(-1px);
    border-color: #D7DFEF;
    box-shadow: 0 8px 22px rgb(30 43 94 / 9%);
}

.settings-list-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 25px;
    font-weight: 700;
}

.settings-list-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.settings-list-copy strong {
    color: var(--deep-navy);
    font-size: 15px;
}

.settings-list-copy span {
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.45;
}

.settings-list-arrow {
    margin-left: auto;
    color: var(--cool-grey);
    font-size: 20px;
}

.server-storage-page {
    max-width: 1160px;
}

.server-storage-updated {
    margin: 4px 0 18px;
    color: var(--cool-grey);
    font-size: 13px;
}

.server-storage-updated strong {
    color: var(--deep-navy);
}

.server-storage-grid {
    margin-top: 18px;
}

.server-storage-meter {
    display: block;
    width: 100%;
    height: 12px;
    margin-top: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: var(--light-blue);
    accent-color: var(--soni-blue);
}

.server-storage-meter::-webkit-progress-bar {
    border-radius: 999px;
    background: var(--light-blue);
}

.server-storage-meter::-webkit-progress-value {
    border-radius: 999px;
    background: var(--soni-blue);
}

.server-storage-meter::-moz-progress-bar {
    border-radius: 999px;
    background: var(--soni-blue);
}

.server-storage-table {
    min-width: 720px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.settings-stat {
    min-height: 130px;
    padding: 19px;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(30 43 94 / 5%);
}

.settings-stat-label {
    display: block;
    margin-bottom: 10px;
    color: var(--cool-grey);
    font-size: 13px;
    font-weight: 600;
}

.settings-stat-value {
    display: block;
    color: var(--deep-navy);
    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
}

.settings-stat-detail {
    display: block;
    margin-top: 8px;
    color: var(--cool-grey);
    font-size: 12px;
    line-height: 1.4;
}

.settings-section {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(30 43 94 / 5%);
}

.settings-section-heading {
    padding: 19px 20px 15px;
}

.settings-section-heading h2 {
    margin: 0 0 5px;
    color: var(--deep-navy);
    font-size: 18px;
}

.settings-section-heading p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.5;
}

.settings-table-wrap {
    overflow-x: auto;
}

.settings-log-scroll {
    max-height: 430px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.settings-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 15px;
    background: #F7F8FB;
    color: var(--cool-grey);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.settings-search {
    display: grid;
    gap: 8px;
    padding: 0 20px 14px;
}

.settings-search label {
    color: var(--deep-navy);
    font-size: 12px;
    font-weight: 700;
}

.settings-search > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.settings-search input {
    width: min(100%, 420px);
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #DCE2EB;
    border-radius: 9px;
    background: #FCFDFE;
    color: var(--deep-navy);
    font: inherit;
    font-size: 13px;
}

.settings-search button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: var(--soni-blue);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.settings-search button:hover {
    background: var(--deep-navy);
}

.settings-search a {
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.settings-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px 16px;
    color: var(--cool-grey);
    font-size: 12px;
}

.settings-pagination > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-page-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #E1E5ED;
    border-radius: 8px;
    color: var(--soni-blue);
    font-weight: 700;
    text-decoration: none;
}

.settings-page-link:hover {
    background: var(--light-blue);
}

.settings-page-link.is-disabled {
    color: #9AA3B2;
    cursor: default;
}

.settings-page-number {
    white-space: nowrap;
}

.settings-table td {
    padding: 13px 15px;
    border-top: 1px solid #EEF0F4;
    color: var(--deep-navy);
    vertical-align: top;
}

.settings-table td small {
    display: block;
    margin-top: 4px;
    color: var(--cool-grey);
    line-height: 1.4;
}

.settings-table .settings-error {
    max-width: 340px;
    color: #B42318;
    overflow-wrap: anywhere;
}

.settings-empty {
    padding: 20px;
    color: var(--cool-grey);
    font-size: 14px;
}

.settings-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--light-grey);
    color: #4B5563;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.settings-status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.settings-status-completed,
.settings-status-empty {
    background: #EAF7F1;
    color: #137A53;
}

.settings-status-failed {
    background: #FFF0EE;
    color: #B42318;
}

.settings-status-running {
    background: #FFF6E5;
    color: #9A6700;
}

.settings-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 20px 20px;
}

.settings-schedule-item {
    padding: 15px;
    border-radius: 12px;
    background: #F7F8FB;
}

.settings-schedule-item strong,
.settings-schedule-item span {
    display: block;
}

.settings-schedule-item strong {
    margin-bottom: 6px;
    color: var(--deep-navy);
    font-size: 13px;
}

.settings-schedule-item span {
    color: var(--cool-grey);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-schedule {
        grid-template-columns: 1fr;
    }

    .settings-search > div {
        flex-wrap: wrap;
    }

    .settings-search input {
        width: 100%;
        flex-basis: 100%;
    }

    .settings-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(30, 43, 94, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 43, 94, 0.10);
}

.dashboard-icon {
    width: 48px;
    height: 48px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 24px;
}

.dashboard-card h2 {
    margin: auto 0 6px;
    font-size: 18px;
    color: var(--deep-navy);
}

.dashboard-card p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 14px;
}

.notification-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--soni-orange);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.reward-list {
    display: grid;
    gap: 14px;
}

.reward-list .dashboard-card {
    min-height: auto;
}

.reward-list .dashboard-card h2 {
    margin-top: 0;
}

.dashboard-card button {
    margin-top: 16px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--soni-blue);
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.dashboard-card button:hover {
    background: var(--deep-navy);
}

.holiday-manager-access {
    margin-top: 12px;
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
}

.holiday-manager {
    padding-bottom: 56px;
}

.holiday-manager-header-actions {
    position: absolute;
    top: 52px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.holiday-manager-header-actions form {
    margin: 0;
}

.holiday-manager-unlocked {
    color: var(--cool-grey);
    font-size: 12px;
    font-weight: 700;
}

.holiday-access-panel {
    max-width: 460px;
    margin: 56px auto;
    padding: 38px;
    border: 1px solid var(--light-grey);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(30 43 94 / 9%);
    text-align: center;
}

.holiday-access-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 17px;
    background: var(--light-blue);
    font-size: 26px;
}

.holiday-access-panel h2 {
    margin: 4px 0 8px;
    color: var(--deep-navy);
}

.holiday-access-panel > p:not(.holiday-eyebrow) {
    margin: 0 auto 22px;
    color: var(--cool-grey);
    line-height: 1.5;
}

.holiday-eyebrow {
    margin: 0 0 6px;
    color: var(--soni-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.holiday-form {
    display: grid;
    gap: 14px;
}

.holiday-user-active {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--deep-navy);
    font-size: 14px;
    font-weight: 700;
}

.holiday-user-active input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--soni-blue);
}

.user-feature-access {
    grid-column: 1 / -1;
    margin: 0;
    padding: 17px;
    border: 1px solid #E5E8F0;
    border-radius: 14px;
    background: #FBFCFF;
}

.user-feature-access legend {
    padding: 0 7px;
    color: var(--deep-navy);
    font-size: 15px;
    font-weight: 800;
}

.user-feature-access > p {
    margin: 0 0 13px;
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.5;
}

.user-feature-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 9px;
}

.user-feature-access-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #E7EAF1;
    border-radius: 10px;
    background: #fff;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.user-feature-access-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--soni-blue);
}

.account-password-panel {
    max-width: 680px;
}

.account-password-form {
    max-width: 480px;
}

.account-password-form .holiday-form-submit {
    margin-top: 4px;
}

.holiday-unlock-form {
    text-align: left;
}

.holiday-unlock-form .reward-filter-submit {
    width: 100%;
}

.holiday-notice,
.holiday-error {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.holiday-notice {
    border: 1px solid #B7E4D2;
    background: #ECFDF5;
    color: #087A55;
}

.holiday-error {
    border: 1px solid #F4D0CC;
    background: #FFF5F3;
    color: #B42318;
}

.holiday-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    border-bottom: 1px solid #E7E8ED;
}

.holiday-tab {
    padding: 12px 17px;
    border-bottom: 3px solid transparent;
    color: var(--cool-grey);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.holiday-tab:hover,
.holiday-tab.is-active {
    border-bottom-color: var(--soni-orange);
    color: var(--deep-navy);
}

.holiday-panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(30 43 94 / 5%);
}

.holiday-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.holiday-section-heading h2 {
    margin: 0 0 5px;
    color: var(--deep-navy);
    font-size: 20px;
}

.holiday-section-heading p:not(.holiday-eyebrow) {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.5;
}

.holiday-entry-form {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    align-items: end;
}

.holiday-notes-field {
    grid-column: span 2;
}

.holiday-form-submit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.holiday-form-help {
    grid-column: 1 / -1;
    color: var(--cool-grey);
    font-size: 13px;
}

.holiday-secondary-button,
.table-action-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #D7DFEF;
    border-radius: 8px;
    background: #fff;
    color: var(--soni-blue);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.holiday-secondary-button:hover,
.table-action-button:hover {
    background: var(--light-blue);
}

.email-template-page,
.email-templates-page {
    max-width: 1320px;
}

.email-template-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

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

.email-template-type-card {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid #D7DFEF;
    border-radius: 12px;
    background: #fff;
    color: var(--deep-navy);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.email-template-type-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(30, 43, 94, .09);
    transform: translateY(-1px);
}

.email-template-type-card strong {
    font-size: 17px;
}

.email-template-type-card span {
    color: #586174;
    font-size: 14px;
    line-height: 1.55;
}

.email-template-picker label {
    grid-column: 1 / -1;
    margin-bottom: -4px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.email-template-picker select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #D7DFEF;
    border-radius: 9px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
    font-size: 14px;
}

.email-template-search-wrap {
    position: relative;
    grid-column: 1 / -1;
    min-width: 0;
}

.email-template-picker input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #D7DFEF;
    border-radius: 9px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
    font-size: 14px;
}

.email-template-search-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #D7DFEF;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(30, 43, 94, .16);
}

.email-template-search-results[hidden] {
    display: none;
}

.email-template-search-result {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--deep-navy);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.email-template-search-result:hover,
.email-template-search-result:focus-visible,
.email-template-search-result[aria-selected="true"] {
    outline: none;
    background: #F1F5FC;
}

.email-template-search-empty {
    padding: 11px 12px;
    color: #586174;
    font-size: 13px;
}

.email-template-picker .holiday-secondary-button {
    min-height: 44px;
    justify-content: center;
    white-space: nowrap;
}

.email-template-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: start;
    gap: 18px;
}

.email-template-workspace > .holiday-panel {
    min-width: 0;
}

.email-template-form label,
.email-template-send-form label {
    display: grid;
    gap: 7px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.email-template-form input,
.email-template-form textarea,
.email-template-send-form input,
.email-template-send-form textarea,
.email-template-send-form select {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #D7DFEF;
    border-radius: 9px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.email-template-form textarea,
.email-template-send-form textarea {
    resize: vertical;
}

.email-template-artwork-editor {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 14px;
    border: 1px solid #E5E8F0;
    border-radius: 12px;
    background: #FAFBFD;
}

.email-template-artwork-preview {
    display: grid;
    min-height: 180px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #E5E8F0;
    border-radius: 9px;
    background: #FDF8F3;
}

.email-template-artwork-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.email-template-artwork-empty {
    display: grid;
    min-height: 140px;
    padding: 20px;
    place-items: center;
    border: 1px dashed #C8D1E1;
    border-radius: 9px;
    background: #F8FAFD;
    color: var(--cool-grey);
    text-align: center;
}

.email-template-artwork-empty-large {
    min-height: 220px;
}

.email-template-artwork-controls {
    display: grid;
    gap: 12px;
}

.email-template-artwork-controls input[type="file"] {
    padding: 9px;
    font-size: 13px;
}

.email-template-form .email-template-remove-artwork {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.email-template-remove-artwork input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 0;
}

.email-template-send-form .reward-filter-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.email-template-send-help {
    margin: -4px 0 0;
    color: var(--cool-grey);
    font-size: 12px;
    line-height: 1.5;
}

.email-template-send-summary {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid #E5E8F0;
    border-radius: 10px;
    background: #F8FAFD;
    color: var(--deep-navy);
    overflow-wrap: anywhere;
}

.email-template-send-summary span {
    color: var(--cool-grey);
    font-size: 12px;
}

.email-template-delete-form {
    margin-top: 16px;
}

.email-template-delete {
    color: #B42318;
    border-color: #F1C8C4;
}

.email-template-broadcast-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #E8B871;
    border-radius: 10px;
    background: #FFF8EB;
    color: var(--deep-navy);
    cursor: pointer;
}

.email-template-broadcast-toggle > input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--soni-blue);
}

.email-template-broadcast-toggle span {
    display: grid;
    gap: 4px;
}

.email-template-broadcast-toggle small {
    color: #586174;
    font-weight: 400;
    line-height: 1.45;
}

.email-template-confirm-password {
    display: grid;
    gap: 7px;
    margin: 0 0 12px;
    color: var(--deep-navy);
    font-size: 14px;
    font-weight: 700;
}

.email-template-confirm-password input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #D7DFEF;
    border-radius: 8px;
    font: inherit;
}

.email-template-confirm-password-error {
    color: #B42318 !important;
    font-size: 13px;
}

.email-template-broadcasts-panel small {
    color: var(--cool-grey);
}

.email-template-preview-frame {
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    background: #F3F4F6;
}

.email-template-preview-frame > table {
    max-width: 100%;
    margin: 0 auto;
}

.email-template-status {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
}

.email-template-status-sent {
    color: #087A55;
}

.email-template-status-failed {
    color: #B42318;
}

.email-template-status-broadcast {
    color: var(--soni-blue);
}

.email-template-broadcast-progress {
    color: var(--cool-grey);
    font-weight: 700;
    white-space: nowrap;
}

.email-template-history-table td {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .email-template-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .email-template-picker {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-template-picker select {
        grid-column: 1 / -1;
    }

    .email-template-picker .holiday-secondary-button {
        width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .email-template-type-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-template-artwork-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .email-template-artwork-preview {
        min-height: 110px;
    }

    .email-template-artwork-preview img {
        max-height: 220px;
    }

    .email-template-preview-frame {
        padding: 8px;
    }

    .email-template-preview-frame img {
        max-width: 100%;
        height: auto;
    }
}

.holiday-section-heading .holiday-secondary-button {
    white-space: nowrap;
}

.holiday-month-nav,
.holiday-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.holiday-row-actions form {
    margin: 0;
}

.table-action-button.is-danger {
    border-color: #F4D0CC;
    color: #B42318;
}

.table-action-button.is-danger:hover {
    background: #FFF5F3;
}

.table-action-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.holiday-filter,
.holiday-year-filter {
    display: flex;
    align-items: end;
    gap: 12px;
    margin: 0 0 16px;
}

.holiday-filter .reward-filter-field {
    min-width: 180px;
}

.holiday-year-filter {
    margin: 0;
}

.holiday-calendar-heading {
    align-items: center;
}

.holiday-table-scroll {
    overflow-x: auto;
}

.holiday-table {
    min-width: 760px;
}

.holiday-employee-table {
    min-width: 980px;
}

.holiday-profile-page {
    max-width: 1160px;
}

.employee-profile-hero {
    display: flex;
    align-items: center;
    gap: 22px;
}

.employee-profile-avatar {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 36px;
    font-weight: 800;
}

.employee-profile-avatar-form {
    display: contents;
}

.employee-profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.employee-profile-avatar-upload {
    position: relative;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.employee-profile-avatar-upload:focus-visible,
.employee-profile-photo-input:focus-visible + .employee-profile-avatar-upload {
    outline: 3px solid var(--soni-orange);
    outline-offset: 3px;
}

.employee-profile-avatar-preview {
    padding: 0;
    border: 0;
    cursor: zoom-in;
}

.employee-photo-dialog {
    position: relative;
    width: min(90vw, 620px);
    max-width: 90vw;
    max-height: 90vh;
    padding: 14px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 70px rgb(0 0 0 / 30%);
}

.employee-photo-dialog::backdrop {
    background: rgb(12 24 55 / 72%);
}

.employee-photo-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 28px);
    margin: auto;
    object-fit: contain;
    border-radius: 10px;
}

.employee-photo-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--deep-navy);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.employee-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-profile-hero-copy {
    min-width: 0;
    flex: 1;
}

.employee-profile-hero-copy h2 {
    margin: 2px 0 5px;
    color: var(--deep-navy);
    font-size: 25px;
}

.employee-profile-hero-copy p:not(.holiday-eyebrow) {
    margin: 0 0 10px;
    color: var(--cool-grey);
}

.employee-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.employee-profile-details > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background: #FCFCFD;
}

.employee-profile-details dt {
    margin-bottom: 5px;
    color: var(--cool-grey);
    font-size: 12px;
    font-weight: 700;
}

.employee-profile-details dd {
    margin: 0;
    color: var(--deep-navy);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.employee-profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.employee-profile-form .holiday-form-submit,
.employee-profile-upload-form .holiday-form-help,
.employee-profile-note-form label {
    grid-column: 1 / -1;
}

.employee-profile-upload-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    margin-bottom: 20px;
}

.employee-profile-upload-form input[type="file"] {
    min-height: 42px;
    padding: 8px;
    border: 1px solid #D7DFEF;
    border-radius: 8px;
    background: #fff;
}

.employee-profile-file-table {
    min-width: 760px;
}

.employee-profile-photo-remove {
    margin: 0;
}

.employee-profile-notes {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.employee-profile-notes article {
    padding: 15px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background: #FCFCFD;
}

.employee-profile-notes article > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--deep-navy);
    font-size: 13px;
}

.employee-profile-notes time {
    color: var(--cool-grey);
}

.employee-profile-notes p {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.holiday-employee-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.holiday-employee-form .holiday-workdays,
.holiday-employee-form .holiday-form-submit {
    grid-column: 1 / -1;
}

.holiday-table-note,
.holiday-overlap {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.holiday-table-note {
    color: var(--cool-grey);
}

.holiday-overlap {
    color: #9A6700;
    font-weight: 700;
}

.holiday-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.holiday-status-taken,
.holiday-status-active {
    background: #EAF7F1;
    color: #137A53;
}

.holiday-status-cancelled,
.holiday-status-archived {
    background: var(--light-grey);
    color: var(--cool-grey);
}

.holiday-negative-balance {
    color: #B42318;
}

.holiday-workdays {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
}

.holiday-workdays legend {
    padding: 0 5px;
    color: var(--cool-grey);
    font-size: 12px;
    font-weight: 700;
}

.holiday-workdays label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--deep-navy);
    font-size: 13px;
}

.holiday-text-link {
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.holiday-empty-inline {
    margin: 4px 0 0;
    color: var(--cool-grey);
    font-size: 14px;
}

.holiday-empty {
    border: 0;
    background: #FCFDFE;
}

.holiday-warning {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
    padding: 15px 17px;
    border: 1px solid #E8B44A;
    border-radius: 12px;
    background: #FFF9E9;
    color: #684A00;
    font-size: 14px;
    line-height: 1.5;
}

.holiday-alternative-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
}

.holiday-alternative-actions form {
    margin: 0;
}

.holiday-calendar-scroll {
    overflow-x: auto;
    margin: 0 0 18px;
}

.holiday-month-calendar {
    display: grid;
    min-width: 760px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #E4E8F0;
    border-left: 1px solid #E4E8F0;
}

.holiday-calendar-weekday {
    padding: 9px 10px;
    background: #F6F8FC;
    color: var(--cool-grey);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.holiday-calendar-weekday,
.holiday-calendar-day {
    border-right: 1px solid #E4E8F0;
    border-bottom: 1px solid #E4E8F0;
}

.holiday-calendar-day {
    min-width: 0;
    min-height: 116px;
    padding: 8px;
    background: #fff;
}

.holiday-calendar-day.is-outside-month {
    background: #F8F9FB;
}

.holiday-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--soni-orange);
}

.holiday-calendar-day-number {
    display: block;
    margin-bottom: 6px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 800;
}

.holiday-calendar-event {
    display: block;
    overflow: hidden;
    margin: 4px 0;
    padding: 5px 6px;
    border-left: 3px solid var(--soni-blue);
    border-radius: 5px;
    background: #EEF3FF;
    color: var(--deep-navy);
    font-size: 10px;
    line-height: 1.35;
}

.holiday-calendar-event strong,
.holiday-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.holiday-calendar-event-taken {
    border-left-color: #16815A;
    background: #EAF7F1;
}

.holiday-calendar-event-cancelled {
    border-left-color: #8A909D;
    background: #F0F1F3;
    color: #646B78;
    text-decoration: line-through;
}

.holiday-calendar-event .holiday-calendar-overlap {
    color: #9A6700;
    font-weight: 800;
}

.holiday-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--cool-grey);
    font-size: 13px;
}

.holiday-page-size,
.holiday-page-size label,
.holiday-page-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.holiday-page-size {
    margin: 0;
}

.holiday-page-size select {
    min-height: 38px;
    margin-left: 5px;
    padding: 6px 9px;
    border: 1px solid #D7DFEF;
    border-radius: 8px;
    background: #fff;
    color: var(--deep-navy);
}

@media (max-width: 900px) {
    .holiday-entry-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .holiday-manager-header-actions {
        position: static;
        margin-top: 16px;
    }

    .holiday-panel {
        padding: 16px;
    }

    .employee-profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .employee-profile-edit-toggle {
        margin-left: 0;
    }

    .employee-profile-details,
    .employee-profile-form,
    .employee-profile-upload-form {
        grid-template-columns: 1fr;
    }

    .employee-profile-form .holiday-form-submit,
    .employee-profile-upload-form .holiday-form-help,
    .employee-profile-note-form label {
        grid-column: auto;
    }

    .holiday-entry-form,
    .holiday-adjustment-form,
    .holiday-employee-form {
        grid-template-columns: 1fr;
    }

    .holiday-notes-field,
    .holiday-workdays {
        grid-column: auto;
    }

    .holiday-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .holiday-month-nav,
    .holiday-filter {
        width: 100%;
    }

    .holiday-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .holiday-page-size,
    .holiday-page-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .holiday-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .holiday-filter .reward-filter-field {
        min-width: 0;
    }

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

.reward-customer-card {
    cursor: pointer;
}

.reward-view {
    margin-top: 14px;
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
}

.customer-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.summary-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(30, 43, 94, 0.05);
}

.summary-card span {
    display: block;
    color: var(--cool-grey);
    font-size: 13px;
    margin-bottom: 8px;
}

.summary-card strong {
    color: var(--soni-blue);
    font-size: 28px;
}

.dashboard-section {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0 0 5px;
    color: var(--deep-navy);
}

.section-heading p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 14px;
}

.transaction-list, .reward-history {
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 14px;
    overflow: hidden;
}

.transaction-row, .history-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--light-grey);
}

.transaction-row:last-child, .history-row:last-child {
    border-bottom: 0;
}

.transaction-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
}

.transaction-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-main strong {
    font-size: 14px;
}

.transaction-main span, .transaction-amount span, .history-row span {
    color: var(--cool-grey);
    font-size: 12px;
}

.transaction-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-row > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-outstanding {
    background: var(--light-orange);
    color: var(--soni-orange);
}

@media (max-width: 700px) {
    .customer-summary {
        grid-template-columns: 1fr;
    }

    .transaction-row {
        align-items: flex-start;
    }

    .transaction-amount {
        min-width: 90px;
    }
} 

.reward-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 43, 94, 0.05);
}

.reward-table-wrapper.holiday-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.reward-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 2px 12px;
    border-bottom: 1px solid #E7E8ED;
}

.reward-tab {
    display: inline-flex;
    min-height: 46px;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px 11px 0 0;
    color: var(--cool-grey);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.reward-tab:hover {
    background: #fff;
    color: var(--soni-blue);
}

.reward-tab.is-active {
    border-color: #E7E8ED;
    border-bottom-color: #fff;
    background: #fff;
    color: var(--deep-navy);
    box-shadow: 0 3px 10px rgb(30 43 94 / 5%);
}

.reward-tab-count {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--light-blue);
    color: var(--soni-blue);
    font-size: 11px;
    font-weight: 800;
}

.milestone-table-wrapper {
    overflow-x: auto;
}

.milestone-table-wrapper .reward-table {
    min-width: 1300px;
}

.reward-list-table-wrapper,
.reward-history-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reward-20-table-wrapper .reward-table {
    min-width: 1080px;
}

.reward-history-table-wrapper .reward-table {
    min-width: 1450px;
}

.reward-history-contact-notes {
    min-width: 130px;
}

.reward-history-contact-notes summary {
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.reward-history-contact-notes .contact-notes-timeline {
    width: 300px;
    max-height: 320px;
    margin-top: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.milestone-table-wrapper .table-status {
    white-space: nowrap;
}

.email-feedback {
    margin: 12px 0;
    padding: 12px 15px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    font-size: 13px;
}

.email-feedback.is-success {
    border-color: #B7E4D2;
    background: #ECFDF5;
    color: #087A55;
}

.email-feedback.is-notice {
    border-color: #F4D7A1;
    background: #FFFAEB;
    color: #8A5A0A;
}

.status-email-pending {
    background: #FFF4D6;
    color: #8A5A0A;
}

.status-email-failed {
    background: #FEE2E2;
    color: #B42318;
}

.reward-tab.is-active .reward-tab-count {
    background: var(--soni-blue);
    color: #fff;
}

.milestone-views {
    display: flex;
    gap: 18px;
    margin: 14px 0 2px;
    border-bottom: 1px solid var(--light-grey);
}

.milestone-views a {
    padding: 9px 2px 11px;
    border-bottom: 2px solid transparent;
    color: var(--cool-grey);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.milestone-views a:hover,
.milestone-views a.is-active {
    border-bottom-color: var(--soni-orange);
    color: var(--deep-navy);
}

.milestone-notified-form {
    margin: 0;
}

.milestone-notified-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #B7E4D2;
    border-radius: 8px;
    background: #ECFDF5;
    color: #087A55;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.milestone-notified-button:hover {
    transform: translateY(-1px);
    border-color: #78C9A8;
    background: #D9F7E9;
}

.milestone-notified-button:focus-visible {
    outline: 3px solid rgb(16 185 129 / 28%);
    outline-offset: 2px;
}

.status-notified {
    background: #DCFCE7;
    color: #15803D;
}

.reward-qualification-status {
    margin-top: 7px;
}

.reward-qualification-status.all-paid {
    background: #DCFCE7;
    color: #15803D;
}

.reward-qualification-status.includes-dispatch {
    background: #FEF3C7;
    color: #9A6700;
}

.reward-qualification-status.qualification-refreshing {
    background: #EEF2F7;
    color: #667085;
}

.milestone-transactions-row > td {
    padding: 0 18px 12px !important;
    background: #F8FAFC;
}

.milestone-transactions-details {
    border: 1px solid #E4E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
}

.milestone-transactions-details > summary {
    padding: 11px 14px;
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.milestone-transactions-details[open] > summary {
    border-bottom: 1px solid #E4E8F0;
    background: #F8FAFC;
}

.milestone-transaction-list > p {
    margin: 16px;
    color: var(--cool-grey);
    font-size: 13px;
}

.lazy-cycle-transactions .lazy-transaction-placeholder {
    margin: 16px 18px;
    color: var(--cool-grey);
    font-size: 13px;
}

.lazy-transaction-placeholder button {
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--soni-blue);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.milestone-transaction-list .cycle-transaction-row {
    padding-right: 14px;
    padding-left: 14px;
}

.app-notification-control {
    display: grid;
    min-width: 150px;
    gap: 7px;
    color: var(--deep-navy);
    font-size: 12px;
}

.app-notification-current {
    display: grid;
    gap: 3px;
    font-weight: 700;
}

.app-notification-current.is-sent {
    color: #15803D;
}

.app-notification-current.is-not-sent {
    color: #667085;
}

.app-notification-current small {
    color: var(--cool-grey);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
}

.app-notification-form {
    margin: 0;
}

.app-notification-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--soni-blue);
    font: inherit;
    cursor: pointer;
}

.app-notification-switch-track {
    display: inline-flex;
    width: 36px;
    height: 20px;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: #98A2B3;
    transition: background .16s ease;
}

.app-notification-switch-track > span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgb(16 24 40 / 25%);
    transition: transform .16s ease;
}

.app-notification-switch.is-on .app-notification-switch-track {
    background: #16A36A;
}

.app-notification-switch.is-on .app-notification-switch-track > span {
    transform: translateX(16px);
}

.app-notification-switch-label {
    font-size: 11px;
    font-weight: 700;
}

.app-notification-switch:focus-visible,
.app-notification-audit > summary:focus-visible {
    outline: 3px solid rgb(52 77 156 / 28%);
    outline-offset: 2px;
    border-radius: 4px;
}

.app-notification-audit > summary {
    color: var(--soni-blue);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.app-notification-audit ul {
    display: grid;
    gap: 5px;
    margin: 6px 0 0;
    padding-left: 15px;
    color: var(--cool-grey);
    font-size: 10px;
    line-height: 1.4;
}

.reward-table td small {
    display: inline-block;
    margin-top: 5px;
    color: var(--cool-grey);
    font-size: 11px;
}

.reward-filters {
    display: grid;
    grid-template-columns: minmax(190px, 2fr) repeat(2, minmax(140px, 1fr)) minmax(125px, .7fr) auto;
    align-items: end;
    gap: 12px;
    margin: 20px 0 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 14px;
}

.reward-filters-20 {
    grid-template-columns: minmax(190px, 1.7fr) repeat(2, minmax(130px, 1fr)) minmax(145px, 1fr) minmax(125px, .7fr) auto;
}

.history-filters {
    grid-template-columns: minmax(180px, 1.6fr) minmax(130px, .9fr) repeat(2, minmax(130px, 1fr)) minmax(125px, .7fr) auto;
}

.reward-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: var(--cool-grey);
    font-size: 12px;
    font-weight: 700;
}

.reward-filter-field input,
.reward-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
    color: var(--deep-navy);
    font: inherit;
    font-weight: 400;
}

.reward-filter-field input:focus-visible,
.reward-filter-field select:focus-visible,
.reward-filter-submit:focus-visible,
.reward-filter-actions a:focus-visible,
.reward-pagination a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 2px;
}

.reward-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.reward-filter-submit {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--soni-blue);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.reward-filter-submit:hover {
    background: var(--deep-navy);
}

.reward-filter-actions a {
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.reward-result-count {
    margin: 0 0 12px;
    color: var(--cool-grey);
    font-size: 13px;
}

.reward-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-page,
.pagination-control {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    background: #ffffff;
    color: var(--soni-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-control {
    white-space: nowrap;
}

.pagination-page:hover,
.pagination-control:not(.is-disabled):hover {
    background: var(--light-blue);
}

.pagination-page.is-current {
    border-color: var(--soni-blue);
    background: var(--soni-blue);
    color: #ffffff;
}

.pagination-control.is-disabled {
    color: #9CA3AF;
    cursor: default;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reward-table {
    width: 100%;
    border-collapse: collapse;
}

.reward-table th {
    padding: 14px 18px;
    text-align: left;
    background: var(--light-blue);
    color: var(--deep-navy);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reward-table td {
    padding: 15px 18px;
    border-top: 1px solid var(--light-grey);
    color: var(--cool-grey);
    font-size: 14px;
}

.reward-table td strong {
    color: var(--deep-navy);
}

.reward-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #168653;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.reward-whatsapp-link:hover {
    color: #0d6840;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reward-whatsapp-link:focus-visible {
    border-radius: 5px;
    outline: 3px solid rgb(37 166 107 / 35%);
    outline-offset: 3px;
}

.table-action {
    text-align: right;
}

.table-action a, .reward-history-link a {
    color: var(--soni-blue);
    font-weight: 700;
    text-decoration: none;
}

.table-action a:hover, .reward-history-link a:hover {
    color: var(--soni-orange);
}

.table-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.reward-history-link {
    margin-top: 18px;
    text-align: right;
}

.empty-state {
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--deep-navy);
}

.empty-state p {
    margin: 0;
    color: var(--cool-grey);
}

@media (max-width: 700px) {
    .reward-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reward-search-field {
        grid-column: 1 / -1;
    }

    .reward-filter-actions {
        grid-column: 1 / -1;
    }

    .reward-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .reward-table:not(.holiday-table) th:nth-child(2),
    .reward-table:not(.holiday-table) td:nth-child(2) {
        display: none;
    }

    .reward-table th,
    .reward-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 420px) {
    .reward-filters {
        grid-template-columns: 1fr;
    }

    .reward-search-field,
    .reward-filter-actions {
        grid-column: auto;
    }

    .reward-pagination {
        gap: 8px;
    }

    .pagination-pages {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}

.current-reward-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-left: 5px solid var(--soni-orange);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(30, 43, 94, 0.06);
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--soni-orange);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.current-reward-card h2 {
    margin: 0 0 5px;
    color: var(--deep-navy);
}

.current-reward-card p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
}

.reward-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.reward-button {
    border: 0;
    padding: 11px 16px;
    border-radius: 9px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.reward-button.rewarded {
    background: var(--success);
}

.reward-button.not-rewarded {
    background: var(--error);
}

.reward-accordion {
    display: grid;
    gap: 8px;
}

.reward-cycle {
    background: #ffffff;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    overflow: hidden;
}

.reward-cycle-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 0;
    background: #ffffff;
    color: var(--deep-navy);
    text-align: left;
    cursor: pointer;
}

.reward-cycle-header:hover {
    background: var(--light-blue);
}

.chevron {
    width: 22px;
    font-size: 25px;
    line-height: 1;
    color: var(--soni-blue);
    transform: rotate(0deg);
    transition: transform .15s ease;
}

.reward-cycle.open .chevron {
    transform: rotate(90deg);
}

.cycle-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cycle-title small, .cycle-meta span:first-child {
    color: var(--cool-grey);
    font-size: 12px;
}

.cycle-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reward-cycle-content {
    display: none;
    border-top: 1px solid var(--light-grey);
}

.reward-cycle.open .reward-cycle-content {
    display: block;
}

.cycle-transaction-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--light-grey);
}

.cycle-transaction-row:last-child {
    border-bottom: 0;
}

.cycle-transaction-row > div:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cycle-transaction-row small {
    color: var(--cool-grey);
    font-size: 12px;
}

.cycle-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 43, 94, .45);
}

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

.confirm-box {
    width: min(420px, 100%);
    padding: 26px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(30, 43, 94, .2);
}

.confirm-box h2 {
    margin: 0 0 8px;
    color: var(--deep-navy);
}

.confirm-box p {
    margin: 0 0 22px;
    color: var(--cool-grey);
}

.monthly-voucher-value {
    padding: 12px 14px;
    border: 1px solid #dbe2ef;
    border-radius: 10px;
    background: #f6f8fc;
    color: var(--deep-navy) !important;
    font-weight: 700;
}

.monthly-voucher-value[hidden],
.monthly-voucher-code-field[hidden],
.monthly-voucher-error[hidden] {
    display: none;
}

.monthly-voucher-code-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 18px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.monthly-voucher-code-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd3e1;
    border-radius: 8px;
    color: var(--deep-navy);
    font: inherit;
}

.monthly-voucher-error {
    margin: -5px 0 16px !important;
    color: #a12e36 !important;
    font-size: 13px;
}

.monthly-top-ten-cancelled-volume {
    display: block;
    margin-top: 4px;
    color: #b4232d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.monthly-top-ten-transactions-row > td {
    padding: 0 12px 10px;
    background: #f7f8fb;
}

.monthly-top-ten-transactions summary {
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid #dbe2ef;
    border-radius: 999px;
    background: #fff;
    color: var(--deep-navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style-position: inside;
}

.monthly-top-ten-transactions-scroll {
    max-height: 320px;
    margin-top: 10px;
    overflow: auto;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    background: #fff;
}

.monthly-top-ten-transactions-scroll table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 12px;
}

.monthly-top-ten-transactions-scroll th,
.monthly-top-ten-transactions-scroll td {
    padding: 9px 11px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    white-space: nowrap;
}

.monthly-top-ten-transactions-scroll th {
    position: sticky;
    top: 0;
    background: #f7f8fb;
    color: var(--deep-navy);
    z-index: 1;
}

.monthly-top-ten-transaction-status {
    font-weight: 800;
}

.monthly-top-ten-transaction-status.is-paid {
    color: #18804b;
}

.monthly-top-ten-transaction-status.is-dispatch {
    color: #344d9c;
}

.monthly-top-ten-transaction-status.is-cancelled {
    color: #b4232d;
}

.monthly-top-ten-not-in-snapshot,
.monthly-top-ten-no-transactions {
    color: var(--cool-grey);
    font-size: 12px;
}

.payout-reference-field,
.history-payout-reference-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.payout-reference-field {
    margin: 0 0 20px;
}

.payout-reference-field[hidden] {
    display: none;
}

.payout-reference-field input,
.history-payout-reference-field input {
    width: 100%;
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid #ccd3e1;
    border-radius: 8px;
    color: var(--deep-navy);
    font: inherit;
}

.payout-number-edit,
.payout-number-audit {
    margin-top: 7px;
    font-size: 12px;
}

.payout-number-edit summary,
.payout-number-audit summary {
    color: var(--soni-blue);
    cursor: pointer;
    font-weight: 700;
}

.payout-number-edit form,
.payout-number-audit small {
    display: block;
    margin-top: 8px;
}

.payout-number-edit form .cycle-action-button {
    margin-top: 8px;
}

.monthly-top-ten-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 6px;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    background: #fff;
    width: fit-content;
}

.monthly-top-ten-tabs a {
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--cool-grey);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.monthly-top-ten-tabs a:hover,
.monthly-top-ten-tabs a.is-active {
    background: var(--deep-navy);
    color: #fff;
}

.monthly-top-ten-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid var(--light-grey);
    border-radius: 16px;
    background: #fff;
}

.monthly-top-ten-intro h2 {
    margin: 4px 0 6px;
    color: var(--deep-navy);
}

.monthly-top-ten-intro p {
    max-width: 760px;
    margin: 0;
    color: var(--cool-grey);
    line-height: 1.5;
}

.monthly-top-ten-eyebrow {
    color: var(--soni-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.monthly-top-ten-live {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf5ef;
    color: #247347;
    font-size: 12px;
    font-weight: 800;
}

.monthly-top-ten-month-picker {
    display: grid;
    flex: 0 0 210px;
    gap: 6px;
    color: var(--deep-navy);
    font-size: 12px;
    font-weight: 700;
}

.monthly-top-ten-month-picker select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd3e1;
    border-radius: 8px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
}

.monthly-top-ten-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--light-grey);
    border-radius: 14px;
    background: #fff;
}

.monthly-top-ten-dashboard {
    max-width: 1580px;
}

.monthly-top-ten-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 1360px;
}

.monthly-top-ten-table th,
.monthly-top-ten-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: top;
}

.monthly-top-ten-table th {
    background: #f7f8fb;
    color: var(--cool-grey);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.monthly-top-ten-table td {
    color: var(--deep-navy);
    font-size: 13px;
}

.monthly-top-ten-table tbody tr:last-child td {
    border-bottom: 0;
}

.monthly-top-ten-table td:last-child {
    min-width: 160px;
}

.monthly-top-ten-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.monthly-top-ten-toggle input {
    position: relative;
    width: 44px;
    height: 25px;
    margin: 2px 0 0;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #cbd3df;
    cursor: pointer;
    transition: background-color .18s ease;
}

.monthly-top-ten-toggle input::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(30, 43, 94, .2);
    content: "";
    transition: transform .18s ease;
}

.monthly-top-ten-toggle input:checked {
    background: #23834f;
}

.monthly-top-ten-toggle input:checked::before {
    transform: translateX(19px);
}

.monthly-top-ten-toggle input:focus-visible {
    outline: 3px solid rgba(52, 77, 156, .28);
    outline-offset: 2px;
}

.monthly-top-ten-table .monthly-top-ten-undo-button {
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 12px;
}

.monthly-top-ten-rank {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #edf0f8;
    color: var(--deep-navy);
    font-weight: 800;
}

.monthly-top-ten-status {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--cool-grey);
    font-weight: 700;
}

.monthly-top-ten-status.is-complete {
    color: #247347;
}

.monthly-top-ten-status small,
.monthly-top-ten-table td small {
    color: var(--cool-grey);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.monthly-top-ten-table form {
    margin: 6px 0 0;
}

.monthly-top-ten-audit {
    margin-top: 9px;
    font-size: 11px;
}

.monthly-top-ten-audit summary {
    color: var(--soni-blue);
    cursor: pointer;
    font-weight: 700;
}

.monthly-top-ten-audit small {
    display: block;
    margin-top: 6px;
}

@media (max-width: 700px) {
    .monthly-top-ten-intro {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .monthly-top-ten-month-picker {
        flex-basis: auto;
        width: 100%;
    }

    .monthly-top-ten-table {
        min-width: 1360px;
    }
}

.history-payout-reference-field {
    margin-bottom: 8px;
    font-size: 12px;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-actions form {
    margin: 0;
}

.confirm-actions button {
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.confirm-no {
    background: var(--light-grey);
    color: var(--deep-navy);
}

.confirm-yes {
    background: var(--soni-blue);
    color: #ffffff;
}

.confirm-actions button:focus-visible {
    outline: 3px solid rgb(30 43 94 / 25%);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .current-reward-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .reward-actions {
        width: 100%;
    }

    .reward-button {
        flex: 1;
    }

    .cycle-meta span:first-child {
        display: none;
    }
}

.status-rewarded {
    background: #d1fae5;
    color: #047857;
}

.status-not-rewarded {
    background: #fee2e2;
    color: #b91c1c;
}

/* Reward cycle redesign */
.reward-accordion {
    display: grid;
    gap: 14px;
}

.reward-cycle {
    background: #fff;
    border: 1px solid rgba(20, 43, 38, 0.10);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 43, 38, 0.05);
}

.reward-cycle-header {
    width: 100%;
    min-height: 78px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 14px;
    align-items: center;
    text-align: left;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.reward-cycle-header:hover {
    background: #fafcfb;
}

.chevron {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f5f3;
    color: #173f35;
    font-size: 25px;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reward-cycle.open .chevron {
    transform: rotate(90deg);
    background: #173f35;
    color: #fff;
}

.cycle-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cycle-title strong {
    font-size: 16px;
    color: #173f35;
}

.cycle-title small {
    font-size: 12px;
    color: #71807c;
}

.cycle-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cycle-meta > span:first-child {
    font-size: 12px;
    color: #71807c;
}

.reward-cycle-content {
    display: none;
    padding: 0 22px 22px;
    background: #fbfcfc;
}

.reward-cycle.open .reward-cycle-content {
    display: block;
}

.cycle-processed-details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 24px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(20, 43, 38, 0.08);
}

.cycle-processed-summary,
.cycle-payout-number,
.cycle-reward-email-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
    margin: 0;
}

.cycle-processed-summary > span,
.cycle-payout-number > span,
.cycle-reward-email-status > span {
    color: #71807c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cycle-processed-summary strong,
.cycle-payout-number strong,
.cycle-reward-email-status strong {
    color: #173f35;
    font-size: 13px;
}

.cycle-processed-summary small,
.cycle-reward-email-status small {
    color: #71807c;
    font-size: 12px;
}

.cycle-processed-details > .payout-number-edit,
.cycle-processed-details > .payout-number-audit {
    flex: 1 1 220px;
    max-width: 340px;
    margin-top: 0;
}

.cycle-processed-details .payout-number-edit form {
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    background: #fff;
}

.cycle-transaction-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 17px 4px;
    border-top: 1px solid rgba(20, 43, 38, 0.08);
}

.transaction-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4f1;
    color: #173f35;
    font-size: 12px;
    font-weight: 700;
}

.cycle-transaction-row > div:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cycle-transaction-row > div:nth-child(2) strong {
    font-size: 14px;
    color: #173f35;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.cycle-transaction-row > div:nth-child(2) small {
    font-size: 12px;
    line-height: 1.45;
    color: #7a8884;
}

.cycle-transaction-row .transaction-beneficiary-name {
    color: var(--deep-navy);
    font-size: 13px;
    font-weight: 700;
}

.cycle-amount {
    min-width: 90px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cycle-amount strong {
    font-size: 14px;
    color: #173f35;
}

.cycle-amount small {
    font-size: 11px;
    color: #7a8884;
}

@media (max-width: 700px) {
    .reward-cycle-header {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 16px;
    }

    .cycle-meta {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: -4px;
    }

    .reward-cycle-content {
        padding: 0 16px 16px;
    }

    .cycle-transaction-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 15px 2px;
    }

    .cycle-amount {
        grid-column: 2;
        text-align: left;
        flex-direction: row;
        gap: 6px;
        align-items: baseline;
    }

    .transaction-number {
        width: 32px;
        height: 32px;
    }
}

/* Final reward cycle UI */
.cycle-reward-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(20, 43, 38, 0.08);
}

.cycle-action-button {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.cycle-action-button:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.cycle-action-rewarded {
    background: var(--success);
    color: #fff;
}

.cycle-action-not-rewarded {
    background: #fff;
    color: var(--error);
    border: 1px solid var(--error);
}

.cycle-action-button span {
    font-size: 17px;
    margin-right: 6px;
}

.cycle-list-label {
    padding: 16px 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a8884;
}

.reward-contact-notes-cell {
    min-width: 150px;
}

.contact-notes-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #d8deec;
    border-radius: 10px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.contact-notes-trigger:hover {
    transform: translateY(-1px);
    border-color: var(--soni-blue);
    background: #f5f7fc;
}

.contact-notes-trigger.has-notes {
    border-color: #c8d4f0;
    background: #f1f5ff;
    color: #27458f;
}

.contact-notes-trigger-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 7px;
    background: #e7ecf8;
    font-size: 14px;
    line-height: 1;
}

.contact-notes-trigger.no-notes .contact-notes-trigger-icon {
    background: #eef1f5;
    color: #667085;
}

.contact-notes-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #dfe7fa;
    color: #27458f;
    font-size: 11px;
}

.contact-notes-modal[hidden] {
    display: none;
}

.contact-notes-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.contact-notes-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(19, 31, 67, .58);
    cursor: default;
}

.contact-notes-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    max-height: min(82vh, 780px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(13, 24, 55, .3);
    animation: contact-notes-enter .16s ease-out;
}

@keyframes contact-notes-enter {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-notes-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 23px 26px 19px;
    border-bottom: 1px solid #e8ebf2;
    background: linear-gradient(135deg, #f5f7fc 0%, #fff 80%);
}

.contact-notes-eyebrow {
    color: var(--soni-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-notes-dialog-header h2 {
    margin: 5px 0 3px;
    color: var(--deep-navy);
    font-size: 22px;
}

.contact-notes-dialog-header p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
}

.contact-notes-close {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #e0e4ec;
    border-radius: 10px;
    background: #fff;
    color: var(--deep-navy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-notes-dialog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 26px 25px;
}

.contact-notes-timeline {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-notes-timeline li {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.contact-note-dot {
    width: 10px;
    height: 10px;
    margin-top: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--soni-orange);
    box-shadow: 0 0 0 2px #f5d6c5;
}

.contact-note-card {
    padding: 13px 15px 11px;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
    background: #fbfcfe;
}

.contact-note-card p {
    margin: 0 0 8px;
    color: var(--deep-navy);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.contact-note-card small {
    color: var(--cool-grey);
    font-size: 11px;
}

.contact-note-card .contact-note-edited {
    display: block;
    margin-top: 3px;
    color: #8a6416;
}

.contact-note-actions,
.contact-note-edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.contact-note-actions > button,
.contact-note-actions form button,
.contact-note-edit-actions button:not(.contact-notes-save) {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #dfe4ed;
    border-radius: 8px;
    background: #fff;
    color: var(--deep-navy);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.contact-note-actions button:hover,
.contact-note-edit-actions button:hover {
    border-color: #aab6d4;
    background: #f5f7fc;
}

.contact-note-actions button.is-delete,
.contact-note-edit-actions button.is-delete {
    border-color: #f2c6c2;
    color: #a52b24;
}

.contact-note-delete-form {
    display: inline-flex;
    margin: 0;
}

.contact-note-edit-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.contact-note-edit-form[hidden] {
    display: none;
}

.contact-note-card.is-editing .contact-note-actions,
.contact-note-card.is-editing > p,
.contact-note-card.is-editing > small {
    display: none;
}

.contact-note-edit-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.contact-note-delete-confirm[hidden] {
    display: none;
}

.contact-note-delete-confirm {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-note-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 31, 67, .68);
}

.contact-note-delete-dialog {
    position: relative;
    width: min(390px, 100%);
    padding: 25px;
    border: 1px solid #fff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(13, 24, 55, .3);
    text-align: center;
}

.contact-note-delete-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 14px;
    background: #fff0ee;
    color: #b42318;
    font-size: 20px;
    font-weight: 800;
}

.contact-note-delete-dialog h2 {
    margin: 0 0 8px;
    color: var(--deep-navy);
    font-size: 18px;
}

.contact-note-delete-dialog p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.5;
}

.contact-note-delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.contact-note-delete-actions button {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #dfe4ed;
    border-radius: 9px;
    background: #fff;
    color: var(--deep-navy);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.contact-note-delete-actions button.is-delete {
    border-color: #a52b24;
    background: #a52b24;
    color: #fff;
}

.contact-notes-empty-state {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 27px 15px 22px;
    color: var(--cool-grey);
    text-align: center;
}

.contact-notes-empty-state > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 3px;
    place-items: center;
    border-radius: 14px;
    background: #f1f4fa;
    color: var(--soni-blue);
    font-size: 20px;
}

.contact-notes-empty-state strong {
    color: var(--deep-navy);
    font-size: 14px;
}

.contact-notes-empty-state p {
    margin: 0;
    font-size: 12px;
}

.contact-notes-compose {
    display: grid;
    gap: 9px;
    margin-top: 19px;
    padding: 16px;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    background: #f7f8fb;
}

.contact-notes-compose label,
.reward-contact-note-form label {
    color: var(--deep-navy);
    font-size: 12px;
    font-weight: 750;
}

.contact-notes-compose textarea,
.reward-contact-note-form textarea {
    width: 100%;
    min-height: 82px;
    padding: 11px 12px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
    color: var(--deep-navy);
    font: inherit;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.contact-notes-save {
    justify-self: end;
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 9px;
    background: var(--deep-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.contact-notes-save:hover {
    background: var(--soni-blue);
}

body.contact-notes-modal-open {
    overflow: hidden;
}

.reward-contact-panel {
    margin: 26px 0 5px;
    overflow: hidden;
    border: 1px solid #e3e7ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(30, 43, 94, .035);
}

.reward-contact-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 19px;
    border-bottom: 1px solid #eaedf3;
    background: #f8f9fc;
}

.reward-contact-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reward-contact-panel-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #e9eefb;
    color: var(--soni-blue);
    font-size: 18px;
}

.reward-contact-panel-title h3 {
    margin: 0 0 3px;
    color: var(--deep-navy);
    font-size: 15px;
}

.reward-contact-panel-title p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 12px;
}

.reward-contact-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9eefb;
    color: #27458f;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.reward-contact-panel-content {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 22px;
    padding: 18px;
}

.reward-contact-note-form {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 15px;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
    background: #fbfcfe;
}

.reward-contact-notes-empty {
    margin: 5px 0;
    color: var(--cool-grey);
    font-size: 13px;
}

.reward-contact-note-history .contact-notes-timeline {
    max-height: 330px;
    overflow-y: auto;
    padding: 2px 3px 2px 0;
}

@media (max-width: 700px) {
    .contact-notes-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .contact-notes-dialog {
        max-height: min(90vh, 780px);
        border-radius: 18px;
    }

    .contact-notes-dialog-header {
        padding: 18px 18px 15px;
    }

    .contact-notes-dialog-body {
        padding: 14px 18px 18px;
    }

    .reward-contact-panel-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 14px;
    }
}

.transaction-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-main strong {
    font-size: 14px;
    color: #173f35;
    overflow-wrap: anywhere;
}

.transaction-main small {
    font-size: 11px;
    line-height: 1.4;
    color: #7a8884;
}

.cycle-amount {
    min-width: 135px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.cycle-amount strong {
    font-size: 14px;
    color: #173f35;
}

.cycle-amount small {
    font-size: 11px;
    color: #7a8884;
}

.cycle-amount em {
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: #4d6b62;
}

@media (max-width: 700px) {
    .cycle-reward-actions {
        grid-template-columns: 1fr;
    }

    .cycle-transaction-row {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
    }

    .cycle-amount {
        grid-column: 2;
        min-width: 0;
        align-items: flex-start;
        padding-top: 3px;
    }
}

.customer-reengagement-sender-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
}

.customer-reengagement-sender-status.is-enabled {
    border-color: #B9E2CF;
    background: #F0FAF5;
    color: #276148;
}

.customer-reengagement-sender-status.is-disabled {
    border-color: #F1D7A5;
    background: #FFF9EB;
    color: #765412;
}

.customer-reengagement-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.customer-reengagement-metrics article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--light-grey);
    border-radius: 13px;
    background: #fff;
}

.customer-reengagement-metrics article span,
.customer-reengagement-metrics article small {
    color: var(--cool-grey);
    font-size: 12px;
}

.customer-reengagement-metrics article strong {
    color: var(--deep-navy);
    font-size: 25px;
}

.customer-reengagement-recent-count {
    grid-template-columns: minmax(240px, 380px);
}

.customer-reengagement-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    background: #fff;
}

.customer-reengagement-tabs a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--cool-grey);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.customer-reengagement-tabs a:hover,
.customer-reengagement-tabs a.is-active {
    background: var(--deep-navy);
    color: #fff;
}

.customer-reengagement-panel {
    padding: 20px;
    border: 1px solid var(--light-grey);
    border-radius: 15px;
    background: #fff;
}

.customer-reengagement-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.customer-reengagement-panel-heading h2 {
    margin: 0 0 5px;
    color: var(--deep-navy);
    font-size: 20px;
}

.customer-reengagement-panel-heading p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
    line-height: 1.5;
}

.customer-reengagement-export-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--deep-navy);
    border-radius: 8px;
    background: var(--deep-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.customer-reengagement-export-button:hover {
    background: var(--soni-blue);
    border-color: var(--soni-blue);
}

.customer-reengagement-search {
    display: grid;
    gap: 7px;
    max-width: 600px;
    margin-bottom: 15px;
    color: var(--deep-navy);
    font-size: 12px;
    font-weight: 700;
}

.customer-reengagement-search > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.customer-reengagement-search input,
.customer-reengagement-search select {
    min-width: 220px;
    flex: 1 1 260px;
    padding: 10px 12px;
    border: 1px solid #CCD3E1;
    border-radius: 8px;
    color: var(--deep-navy);
    font: inherit;
}

.customer-reengagement-search button,
.customer-reengagement-search a {
    padding: 10px 14px;
    border: 1px solid var(--deep-navy);
    border-radius: 8px;
    background: var(--deep-navy);
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.customer-reengagement-search a {
    border-color: var(--light-grey);
    background: #fff;
    color: var(--deep-navy);
}

.customer-reengagement-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--light-grey);
    border-radius: 11px;
    -webkit-overflow-scrolling: touch;
}

.customer-reengagement-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: left;
}

.customer-reengagement-table th,
.customer-reengagement-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: top;
}

.customer-reengagement-table th {
    background: #F7F8FB;
    color: var(--cool-grey);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.customer-reengagement-table td {
    color: var(--deep-navy);
    font-size: 13px;
}

.customer-reengagement-table td strong,
.customer-reengagement-table td small {
    display: block;
}

.customer-reengagement-table td small {
    margin-top: 4px;
    color: var(--cool-grey);
    font-size: 11px;
}

.customer-reengagement-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--cool-grey);
    font-size: 12px;
}

.customer-reengagement-pagination > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-reengagement-pagination a {
    color: var(--soni-blue);
    font-weight: 700;
    text-decoration: none;
}

.customer-reengagement-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.customer-reengagement-page-jump label {
    color: var(--cool-grey);
    white-space: nowrap;
}

.customer-reengagement-page-jump input {
    width: 68px;
    padding: 6px 8px;
    border: 1px solid var(--light-grey);
    border-radius: 7px;
    color: var(--deep-navy);
    font: inherit;
}

.customer-reengagement-page-jump button {
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--soni-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.customer-reengagement-history-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.customer-reengagement-history-summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--light-grey);
    border-radius: 9px;
    background: #F7F8FB;
    color: var(--cool-grey);
    font-size: 12px;
}

.customer-reengagement-history-summary strong {
    color: var(--deep-navy);
    font-size: 14px;
}

.customer-reengagement-history-table {
    min-width: 980px;
}

.customer-reengagement-history-details {
    min-width: 180px;
}

.customer-reengagement-history-details summary {
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.customer-reengagement-history-link {
    color: var(--soni-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.customer-reengagement-history-link:hover {
    text-decoration: underline;
}

.customer-reengagement-history-detail-list {
    display: grid;
    gap: 8px;
    min-width: 290px;
    max-height: 380px;
    margin-top: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.customer-reengagement-email-records {
    max-height: none;
    min-width: 0;
    margin-top: 0;
    overflow: visible;
}

.customer-reengagement-history-detail-list article {
    padding: 11px 12px;
    border: 1px solid var(--light-grey);
    border-radius: 9px;
    background: #F7F8FB;
}

.customer-reengagement-history-detail-list article > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.customer-reengagement-history-detail-list article > div strong {
    color: var(--deep-navy);
    font-size: 12px;
}

.customer-reengagement-history-detail-list article p {
    margin: 4px 0 0;
    color: var(--cool-grey);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.customer-reengagement-history-detail-list article p strong {
    color: var(--deep-navy);
}

.customer-reengagement-result {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.customer-reengagement-result-sent {
    background: #DDF4E8;
    color: #17633A;
}

.customer-reengagement-sent-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #17633A;
    font-weight: 700;
}

.customer-reengagement-sent-indicator > span {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #DDF4E8;
    color: #17633A;
    font-size: 12px;
    line-height: 1;
}

.customer-reengagement-not-sent-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9B2929;
    font-weight: 700;
}

.customer-reengagement-not-sent-indicator > span {
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #FCE4E4;
    color: #9B2929;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.customer-reengagement-result-failed {
    background: #FCE4E4;
    color: #9B2929;
}

.customer-reengagement-result-skipped {
    background: #FCE4E4;
    color: #9B2929;
}

.customer-reengagement-history-detail-list article p.customer-reengagement-error {
    color: #9B2929;
}

.customer-reengagement-empty {
    padding: 28px 16px;
    border: 1px dashed #CCD3E1;
    border-radius: 11px;
    text-align: center;
}

.customer-reengagement-empty h3 {
    margin: 0 0 7px;
    color: var(--deep-navy);
}

.customer-reengagement-empty p {
    margin: 0;
    color: var(--cool-grey);
    font-size: 13px;
}

.customer-reengagement-subject {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid var(--light-grey);
    border-radius: 9px;
    color: var(--deep-navy);
    font-size: 13px;
}

.customer-reengagement-email-preview {
    max-width: 680px;
    margin: 0 auto;
    overflow-x: auto;
    background: #E9EBEF;
}

.customer-reengagement-email-preview iframe {
    display: block;
    width: 100%;
    height: 760px;
    border: 0;
    background: #E9EBEF;
}

@media (max-width: 760px) {
    .customer-reengagement-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-reengagement-panel {
        padding: 14px;
    }

    .customer-reengagement-panel-heading {
        flex-direction: column;
    }

    .customer-reengagement-export-button {
        width: 100%;
    }

    .customer-reengagement-tabs {
        width: 100%;
    }

    .customer-reengagement-tabs a {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .customer-reengagement-metrics {
        grid-template-columns: 1fr;
    }
}

/* Responsive layout refresh shared by every dashboard feature. */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    background: var(--soft-cream);
}

.dashboard {
    width: min(100%, 1800px);
    max-width: 1800px;
    min-width: 0;
    padding: clamp(20px, 2.2vw, 38px) clamp(16px, 2.4vw, 42px) 48px;
}

.monthly-top-ten-dashboard,
.server-storage-page {
    max-width: 1800px;
}

.dashboard-header,
.dashboard-section,
.dashboard-grid,
.settings-grid,
.holiday-panel,
.settings-section,
.customer-reengagement-panel,
.monthly-top-ten-intro,
.cash-delivery-panel,
.reward-table-wrapper {
    min-width: 0;
}

.dashboard-header h1 {
    font-size: clamp(25px, 2.1vw, 34px);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.dashboard-header p,
.section-heading p,
.holiday-section-heading p,
.monthly-top-ten-intro p {
    line-height: 1.55;
}

.dashboard-card,
.summary-card,
.settings-stat,
.holiday-panel,
.settings-section,
.customer-reengagement-panel,
.monthly-top-ten-intro,
.cash-delivery-panel,
.reward-table-wrapper {
    border-color: var(--light-grey);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgb(30 43 94 / 5%);
}

.dashboard-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgb(30 43 94 / 9%);
}

.reward-table th,
.settings-table th,
.holiday-table th,
.cash-delivery-table th,
.customer-reengagement-table th,
.monthly-top-ten-table th {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
}

.reward-table td,
.settings-table td,
.holiday-table td,
.cash-delivery-table td,
.customer-reengagement-table td,
.monthly-top-ten-table td {
    line-height: 1.45;
}

.reward-filter-submit,
.table-action-button,
.holiday-secondary-button,
.cash-delivery-search button,
.cash-delivery-mark-form button,
.cash-delivery-decline-form button,
.customer-reengagement-search button,
.customer-reengagement-page-jump button,
.dashboard-card button,
.settings-search button,
.reward-button,
.cycle-action-button {
    min-height: 40px;
    border-radius: 9px;
    font-weight: 700;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.reward-filter-submit:hover,
.table-action-button:hover,
.holiday-secondary-button:hover,
.cash-delivery-search button:hover,
.cash-delivery-mark-form button:hover,
.cash-delivery-decline-form button:hover,
.customer-reengagement-search button:hover,
.customer-reengagement-page-jump button:hover,
.dashboard-card button:hover,
.settings-search button:hover,
.reward-button:hover,
.cycle-action-button:hover {
    transform: translateY(-1px);
}

.settings-table-wrap,
.reward-table-wrapper,
.cash-delivery-table-wrap,
.customer-reengagement-table-wrap,
.monthly-top-ten-table-wrap,
.holiday-table-scroll {
    max-width: 100%;
}

@media (min-width: 1500px) {
    .monthly-top-ten-table,
    .reward-history-table-wrapper .reward-table,
    .milestone-table-wrapper .reward-table,
    .customer-reengagement-history-table,
    .holiday-employee-table {
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .dashboard {
        padding: 20px 18px 36px;
    }

    .dashboard-header {
        padding-right: 0;
    }

    .cash-delivery-page .dashboard-header {
        padding: 0;
    }

    .reward-filters,
    .history-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .monthly-top-ten-table {
        min-width: 1200px;
    }
}

@media (max-width: 760px) {
    .dashboard {
        width: 100%;
        padding: 16px 13px 30px;
    }

    .dashboard-header {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
        padding: 0;
    }

    .dashboard-header > a {
        align-self: flex-start;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .dashboard-header h1 {
        max-width: 100%;
        margin-bottom: 7px;
        font-size: clamp(24px, 7vw, 30px);
    }

    .dashboard-header p {
        max-width: 100%;
        font-size: 13px;
    }

    .dashboard-header-actions {
        position: static;
        align-self: flex-end;
        justify-content: flex-end;
        max-width: 100%;
        margin-top: 13px;
        gap: 7px;
    }

    .account-name-label {
        max-width: min(54vw, 220px);
        min-height: 39px;
        padding: 0 11px;
        font-size: 12px;
    }

    .logout-button {
        min-height: 39px;
        padding: 0 11px;
        font-size: 12px;
    }

    .settings-icon-button {
        width: 39px;
        height: 39px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        gap: 12px;
    }

    .dashboard-card {
        min-height: 132px;
        padding: 16px;
    }

    .customer-summary,
    .settings-grid,
    .customer-reengagement-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .summary-card,
    .settings-stat,
    .customer-reengagement-metrics article {
        min-width: 0;
        padding: 14px;
    }

    .summary-card strong,
    .settings-stat-value {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .reward-tabs,
    .holiday-tabs,
    .customer-reengagement-tabs,
    .cash-delivery-tabs,
    .monthly-top-ten-tabs {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .reward-tab,
    .holiday-tab,
    .customer-reengagement-tabs a,
    .cash-delivery-tabs a,
    .monthly-top-ten-tabs a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 10px 13px;
        white-space: nowrap;
    }

    .holiday-panel,
    .customer-reengagement-panel,
    .settings-section,
    .monthly-top-ten-intro {
        padding: 15px;
    }

    .holiday-panel,
    .settings-section {
        margin-top: 15px;
    }

    .holiday-section-heading,
    .customer-reengagement-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .holiday-entry-form,
    .holiday-adjustment-form,
    .holiday-employee-form,
    .employee-profile-form,
    .employee-profile-upload-form,
    .reward-filters,
    .history-filters,
    .customer-reengagement-search,
    .monthly-top-ten-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .reward-search-field,
    .reward-filter-actions,
    .employee-profile-form .holiday-form-submit,
    .employee-profile-upload-form .holiday-form-help,
    .employee-profile-note-form label {
        grid-column: 1;
    }

    .reward-filter-field,
    .holiday-filter .reward-filter-field {
        min-width: 0;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }

    .reward-filter-field input,
    .reward-filter-field select,
    .holiday-form input,
    .holiday-form select,
    .holiday-form textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .reward-filter-actions,
    .reward-filter-submit,
    .customer-reengagement-export-button {
        width: 100%;
    }

    .customer-reengagement-search > div,
    .cash-delivery-search {
        width: 100%;
    }

    .customer-reengagement-search input,
    .customer-reengagement-search select,
    .cash-delivery-search input {
        min-width: 0;
        flex: 1 1 100%;
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .customer-reengagement-search button,
    .customer-reengagement-search a,
    .cash-delivery-search button {
        min-height: 42px;
    }

    .customer-reengagement-table-wrap,
    .monthly-top-ten-table-wrap,
    .reward-table-wrapper,
    .reward-table-wrapper.holiday-table-scroll,
    .holiday-table-scroll,
    .settings-table-wrap:not(.settings-log-scroll) {
        overflow: visible;
        border-radius: 12px;
    }

    .settings-log-scroll {
        max-height: 70vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    table.responsive-card-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
    }

    table.responsive-card-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    table.responsive-card-table > tbody {
        display: grid;
        gap: 11px;
        width: 100%;
    }

    table.responsive-card-table > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--light-grey);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 3px 11px rgb(30 43 94 / 5%);
    }

    table.responsive-card-table > tbody > tr > td {
        display: grid;
        grid-template-columns: minmax(94px, .72fr) minmax(0, 1.28fr);
        align-items: start;
        gap: 9px;
        min-width: 0;
        padding: 10px 12px;
        border: 0;
        border-top: 1px solid var(--light-grey);
        background: #fff;
        color: var(--deep-navy);
        font-size: 13px;
        text-align: left;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    table.responsive-card-table > tbody > tr > td:first-child {
        border-top: 0;
    }

    .reward-table:not(.holiday-table) th:nth-child(2),
    .reward-table:not(.holiday-table) td:nth-child(2) {
        display: grid;
    }

    table.responsive-card-table > tbody > tr > td::before {
        content: attr(data-label);
        color: var(--cool-grey);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .055em;
        line-height: 1.4;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    table.responsive-card-table > tbody > tr > td[colspan] {
        display: block;
    }

    table.responsive-card-table > tbody > tr > td[colspan]::before {
        content: none;
    }

    table.responsive-card-table td form,
    table.responsive-card-table td .holiday-row-actions,
    table.responsive-card-table td .holiday-alternative-actions {
        min-width: 0;
        max-width: 100%;
    }

    table.responsive-card-table td button,
    table.responsive-card-table td .table-action-button {
        min-height: 38px;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    table.responsive-card-table td .holiday-row-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }

    .monthly-top-ten-transactions-scroll {
        max-width: 100%;
        overflow: visible;
    }

    .monthly-top-ten-transactions-scroll table.responsive-card-table > tbody > tr > td {
        grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
        padding: 8px 9px;
        font-size: 12px;
    }

    .holiday-calendar-scroll {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .holiday-month-calendar {
        min-width: 0;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .holiday-calendar-weekday {
        padding: 7px 1px;
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    .holiday-calendar-day {
        min-height: 76px;
        padding: 4px 2px;
    }

    .holiday-calendar-day-number {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .holiday-calendar-event {
        margin: 3px 0;
        padding: 3px 2px;
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    .holiday-calendar-event strong,
    .holiday-calendar-event small {
        overflow: visible;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .holiday-pagination,
    .customer-reengagement-pagination,
    .cash-delivery-pagination,
    .reward-pagination {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .holiday-page-size,
    .holiday-page-links,
    .customer-reengagement-pagination > div,
    .cash-delivery-pagination > div,
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .customer-reengagement-page-jump {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .employee-profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .employee-profile-details,
    .employee-profile-form,
    .employee-profile-upload-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-profile-details > div,
    .employee-profile-notes article {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .monthly-top-ten-intro {
        align-items: stretch;
    }

    .monthly-top-ten-month-picker {
        flex-basis: auto;
        width: 100%;
    }

    .monthly-top-ten-month-picker select {
        min-height: 44px;
        font-size: 16px;
    }

    .settings-search {
        padding-right: 14px;
        padding-left: 14px;
    }

    .empty-state {
        padding: 28px 16px;
    }
}

@media (max-width: 420px) {
    .dashboard {
        padding-right: 10px;
        padding-left: 10px;
    }

    .customer-summary,
    .settings-grid,
    .customer-reengagement-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    table.responsive-card-table > tbody > tr > td {
        grid-template-columns: minmax(82px, .68fr) minmax(0, 1.32fr);
        gap: 7px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .dashboard-header-actions {
        width: 100%;
    }

    .account-name-label {
        max-width: calc(100vw - 150px);
    }

    .holiday-calendar-day {
        min-height: 66px;
    }
}
