/* Saral Reminder 2026 design system
   Shared by the public website, authentication screens and application portal. */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope/Manrope-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope/Manrope-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope/Manrope-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope/Manrope-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --sr-primary: #0f9f79;
    --sr-primary-dark: #08765b;
    --sr-primary-soft: #e9fbf5;
    --sr-accent: #f59e0b;
    --sr-info: #0ea5e9;
    --sr-danger: #ef476f;
    --sr-navy: #10223f;
    --sr-ink: #17233c;
    --sr-muted: #667085;
    --sr-border: #e4e9f1;
    --sr-surface: #ffffff;
    --sr-canvas: #f5f7fb;
    --sr-sidebar: #0b1830;
    --sr-radius-sm: 10px;
    --sr-radius: 16px;
    --sr-radius-lg: 24px;
    --sr-shadow-sm: 0 8px 24px rgba(16, 34, 63, .06);
    --sr-shadow: 0 20px 55px rgba(16, 34, 63, .12);
    --sr-transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--sr-ink);
    background: var(--sr-canvas);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--sr-primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--sr-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--sr-navy);
    transition: top var(--sr-transition);
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.sr-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--sr-navy);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.35px;
}

.sr-brand:hover {
    color: var(--sr-navy);
}

.sr-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #19bc91, #0a7f63);
    box-shadow: 0 8px 20px rgba(15, 159, 121, .25);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.sr-brand-copy small {
    display: block;
    margin-top: -3px;
    color: var(--sr-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 11px;
    font-weight: 700;
    transition: transform var(--sr-transition), box-shadow var(--sr-transition), background var(--sr-transition), border-color var(--sr-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--sr-primary);
    background: var(--sr-primary);
    box-shadow: 0 9px 20px rgba(15, 159, 121, .17);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--sr-primary-dark) !important;
    background: var(--sr-primary-dark) !important;
}

.btn-outline-primary {
    color: var(--sr-primary-dark);
    border-color: #b8e4d7;
    background: #fff;
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: var(--sr-primary);
    background: var(--sr-primary);
}

.btn-secondary {
    color: var(--sr-ink);
    border-color: var(--sr-border);
    background: #fff;
}

.btn-danger {
    border-color: var(--sr-danger);
    background: var(--sr-danger);
}

.btn-block {
    width: 100%;
}

.sr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: var(--sr-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sr-kicker::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sr-primary);
    content: "";
    box-shadow: 0 0 0 5px rgba(15, 159, 121, .1);
}

/* Public website */
.public-portal {
    min-height: 100vh;
    background: #fbfcfe;
}

.public-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    border-bottom: 1px solid rgba(228, 233, 241, .8);
    background: rgba(255, 255, 255, .91);
    backdrop-filter: blur(18px);
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.public-nav > a {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.public-nav > a:hover {
    color: var(--sr-primary-dark);
}

.public-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-actions .btn {
    min-height: 40px;
    padding: 8px 17px;
    font-size: 13px;
}

.public-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--sr-border);
    border-radius: 11px;
    color: var(--sr-navy);
    background: #fff;
}

.public-main {
    min-height: calc(100vh - 150px);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 92px 0 74px;
    background:
        radial-gradient(circle at 9% 16%, rgba(15, 159, 121, .11), transparent 29%),
        radial-gradient(circle at 93% 5%, rgba(14, 165, 233, .09), transparent 27%),
        #fbfcfe;
}

.hero-section::after {
    position: absolute;
    right: -120px;
    bottom: -190px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(15, 159, 121, .12);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 55px rgba(15, 159, 121, .025), 0 0 0 115px rgba(15, 159, 121, .018);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    margin: 0 0 22px;
    color: var(--sr-navy);
    font-size: clamp(39px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.8px;
}

.hero-title span {
    position: relative;
    color: var(--sr-primary-dark);
    white-space: nowrap;
}

.hero-title span::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    z-index: -1;
    height: 11px;
    border-radius: 10px;
    background: #c9f2e6;
    content: "";
}

.hero-lead {
    max-width: 590px;
    margin-bottom: 28px;
    color: #536078;
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 23px;
}

.hero-actions .btn {
    min-height: 52px;
    padding: 12px 22px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--sr-muted);
    font-size: 12px;
    font-weight: 700;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-trust i {
    color: var(--sr-primary);
}

.product-preview {
    position: relative;
    z-index: 2;
    max-width: 535px;
    margin-left: auto;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 28px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 35px 80px rgba(16, 34, 63, .16);
    backdrop-filter: blur(16px);
    transform: rotate(1deg);
    width: 100%;
    min-width: 0;
}

.preview-window {
    overflow: hidden;
    border: 1px solid #dde5ef;
    border-radius: 19px;
    background: #f7f9fc;
    min-width: 0;
}

.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #e9edf3;
    background: #fff;
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d8e4;
}

.preview-brand {
    color: var(--sr-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
}

.preview-body {
    display: grid;
    grid-template-columns: 84px 1fr;
    min-height: 345px;
}

.preview-sidebar {
    padding: 18px 12px;
    background: var(--sr-navy);
}

.preview-side-logo {
    width: 27px;
    height: 27px;
    margin-bottom: 29px;
    border-radius: 8px;
    background: var(--sr-primary);
}

.preview-side-line {
    height: 8px;
    margin-bottom: 14px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .12);
}

.preview-side-line.active {
    background: rgba(48, 211, 166, .7);
}

.preview-content {
    padding: 22px;
    min-width: 0;
}

.preview-greeting {
    width: 42%;
    height: 13px;
    margin-bottom: 20px;
    border-radius: 7px;
    background: #b8c2d2;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 17px;
}

.preview-stat {
    min-height: 76px;
    padding: 11px;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    background: #fff;
}

.preview-stat i {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 12px;
    border-radius: 7px;
    background: #d5f5eb;
}

.preview-stat strong {
    display: block;
    width: 45%;
    height: 10px;
    border-radius: 5px;
    background: var(--sr-navy);
}

.preview-table {
    padding: 16px;
    border: 1px solid #e7ebf1;
    border-radius: 13px;
    background: #fff;
}

.preview-table-title {
    width: 36%;
    height: 9px;
    margin-bottom: 15px;
    border-radius: 5px;
    background: #9faabc;
}

.preview-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #edf0f4;
}

.preview-row i {
    height: 7px;
    border-radius: 6px;
    background: #dbe1e9;
}

.preview-float {
    position: absolute;
    right: -17px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid #d6eee6;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--sr-shadow);
    color: var(--sr-navy);
    font-size: 12px;
    font-weight: 700;
}

.preview-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--sr-primary);
}

.section-space {
    padding: 92px 0;
}

.section-soft {
    background: #f2f6f8;
}

.section-heading {
    max-width: 670px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 14px;
    color: var(--sr-navy);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.6px;
}

.section-heading p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 245px;
    padding: 28px;
    border: 1px solid var(--sr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
    transition: transform var(--sr-transition), box-shadow var(--sr-transition), border-color var(--sr-transition);
}

.feature-card:hover {
    border-color: #c7e9df;
    box-shadow: var(--sr-shadow);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 23px;
    border-radius: 14px;
    color: var(--sr-primary-dark);
    background: var(--sr-primary-soft);
    font-size: 19px;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
    color: #0879a5;
    background: #e9f8fe;
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
    color: #b36b00;
    background: #fff6df;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--sr-navy);
    font-size: 18px;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 13px;
    line-height: 1.75;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: workflow;
}

.workflow-item {
    position: relative;
    padding: 26px 22px 20px 78px;
    counter-increment: workflow;
}

.workflow-item::before {
    position: absolute;
    top: 23px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #fff;
    background: var(--sr-navy);
    content: counter(workflow, decimal-leading-zero);
    font-size: 12px;
    font-weight: 800;
}

.workflow-item h3 {
    color: var(--sr-navy);
    font-size: 17px;
    font-weight: 800;
}

.workflow-item p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 13px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: stretch;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--sr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
}

.price-card.popular {
    border-color: #75d8bd;
    box-shadow: 0 18px 48px rgba(15, 159, 121, .13);
    transform: translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -13px;
    right: 21px;
    padding: 5px 11px;
    border-radius: 99px;
    color: #fff;
    background: var(--sr-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.price-label {
    color: var(--sr-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-value {
    margin: 14px 0 2px;
    color: var(--sr-navy);
    font-size: 39px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.price-value small {
    color: var(--sr-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.price-saving {
    min-height: 25px;
    margin-bottom: 18px;
    color: var(--sr-primary-dark);
    font-size: 11px;
    font-weight: 700;
}

.price-features {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0;
    color: #526077;
    font-size: 12px;
}

.price-features i {
    margin-top: 3px;
    color: var(--sr-primary);
}

.price-card .btn {
    width: 100%;
    margin-top: auto;
}

.trial-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 50px;
    border-radius: 26px;
    color: #fff;
    background: var(--sr-navy);
    box-shadow: 0 26px 65px rgba(16, 34, 63, .2);
}

.trial-banner::after {
    position: absolute;
    right: -65px;
    bottom: -140px;
    width: 330px;
    height: 330px;
    border: 45px solid rgba(47, 209, 164, .08);
    border-radius: 50%;
    content: "";
}

.trial-banner h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.5vw, 39px);
    font-weight: 800;
    letter-spacing: -1.1px;
}

.trial-banner p {
    max-width: 620px;
    margin: 0;
    color: #b9c6d9;
}

.trial-banner .btn {
    position: relative;
    z-index: 2;
    min-width: 175px;
    border-color: #fff;
    color: var(--sr-navy);
    background: #fff;
}

.faq-wrap {
    max-width: 820px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--sr-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 4px;
    border: 0;
    color: var(--sr-navy);
    background: transparent;
    text-align: left;
    font-weight: 800;
}

.faq-question i {
    color: var(--sr-primary);
    transition: transform var(--sr-transition);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 40px 20px 4px;
    color: var(--sr-muted);
    font-size: 13px;
}

.public-footer {
    padding: 42px 0 28px;
    border-top: 1px solid var(--sr-border);
    background: #fff;
}

.public-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    padding-bottom: 28px;
}

.public-footer-note {
    max-width: 390px;
    margin: 12px 0 0;
    color: var(--sr-muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--sr-muted);
    font-size: 12px;
    font-weight: 700;
}

.public-footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid #edf0f4;
    color: #98a2b3;
    font-size: 11px;
}

/* Authentication and checkout */
.auth-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 154px);
    padding: 55px 0;
    background:
        radial-gradient(circle at 0 100%, rgba(15, 159, 121, .09), transparent 32%),
        radial-gradient(circle at 100% 0, rgba(14, 165, 233, .07), transparent 31%);
}

.auth-shell {
    overflow: hidden;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    max-width: 1040px;
    margin: auto;
    border: 1px solid var(--sr-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--sr-shadow);
    width: 100%;
    min-width: 0;
}

.auth-aside {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 48px;
    color: #fff;
    background: var(--sr-navy);
    min-width: 0;
}

.auth-aside::after {
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 55px solid rgba(47, 209, 164, .1);
    border-radius: 50%;
    content: "";
}

.auth-aside .sr-kicker {
    color: #58dbb6;
}

.auth-aside h2 {
    max-width: 360px;
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
}

.auth-aside > p {
    max-width: 355px;
    color: #b9c6d9;
    font-size: 13px;
}

.auth-benefits {
    position: relative;
    z-index: 2;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
    color: #dce6f3;
    font-size: 13px;
    font-weight: 600;
}

.auth-benefits i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    color: #54dcb7;
    background: rgba(84, 220, 183, .1);
}

.auth-trial-card {
    position: absolute;
    right: 35px;
    bottom: 39px;
    left: 35px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
}

.auth-trial-card strong,
.auth-trial-card span {
    display: block;
}

.auth-trial-card strong {
    font-size: 13px;
}

.auth-trial-card span {
    color: #b9c6d9;
    font-size: 11px;
}

.auth-trial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: var(--sr-navy);
    background: #54dcb7;
}

.auth-card {
    align-self: center;
    padding: 48px 58px;
    min-width: 0;
}

.auth-card-wide {
    padding-top: 38px;
    padding-bottom: 38px;
}

.auth-eyebrow {
    color: var(--sr-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 6px 0 8px;
    color: var(--sr-navy);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.auth-subtitle {
    margin-bottom: 27px;
    color: var(--sr-muted);
    font-size: 13px;
}

.sr-field {
    position: relative;
    margin-bottom: 17px;
}

.sr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sr-field label,
.form-label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.sr-field .form-control,
.sr-field .form-select,
.modal .form-control,
.modal .form-select,
.portal-form .form-control,
.portal-form .form-select {
    width: 100%;
    min-height: 47px;
    padding: 10px 13px;
    border: 1px solid #d9e0e9;
    border-radius: 11px;
    color: var(--sr-ink);
    background-color: #fff;
    box-shadow: none;
    font-size: 13px;
    transition: border-color var(--sr-transition), box-shadow var(--sr-transition), background var(--sr-transition);
}

.sr-field .form-control:hover,
.sr-field .form-select:hover,
.modal .form-control:hover,
.portal-form .form-control:hover {
    border-color: #b7c2d1;
}

.sr-field .form-control:focus,
.sr-field .form-select:focus,
.modal .form-control:focus,
.modal .form-select:focus,
.portal-form .form-control:focus,
.portal-form .form-select:focus {
    border-color: var(--sr-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 159, 121, .1);
}

.sr-field .form-control::placeholder {
    color: #a6afbd;
}

.field-with-icon .form-control {
    padding-left: 42px;
}

.field-icon {
    position: absolute;
    bottom: 14px;
    left: 15px;
    color: #8b96a7;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    color: #7c8799;
    background: transparent;
}

.password-toggle:hover {
    color: var(--sr-primary-dark);
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #8b96a7;
    font-size: 10px;
}

.password-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.password-meter i {
    height: 3px;
    border-radius: 4px;
    background: #e5e9ef;
}

.password-meter[data-strength="1"] i:nth-child(-n+1) { background: var(--sr-danger); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: var(--sr-accent); }
.password-meter[data-strength="3"] i:nth-child(-n+3) { background: #78b93f; }
.password-meter[data-strength="4"] i:nth-child(-n+4) { background: var(--sr-primary); }

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 21px;
    color: var(--sr-muted);
    font-size: 11px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--sr-primary);
}

.auth-link,
.AspButton {
    padding: 0;
    border: 0;
    color: var(--sr-primary-dark);
    background: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.auth-link:hover,
.AspButton:hover {
    color: var(--sr-primary);
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--sr-muted);
    text-align: center;
    font-size: 12px;
}

.auth-switch .AspButton {
    margin-left: 4px;
    font-size: 12px;
}

.form-disclaimer {
    margin: 12px 0 0;
    color: #8b96a7;
    text-align: center;
    font-size: 10px;
}

.checkout-section {
    padding: 58px 0 78px;
    background: #f5f8fa;
}

.checkout-header {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.checkout-header h1 {
    color: var(--sr-navy);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.1px;
}

.checkout-header p {
    color: var(--sr-muted);
}

.checkout-shell {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    max-width: 980px;
    margin: auto;
}

.checkout-card,
.checkout-summary {
    padding: 30px;
    border: 1px solid var(--sr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
}

.checkout-card h2,
.checkout-summary h2 {
    margin-bottom: 5px;
    color: var(--sr-navy);
    font-size: 18px;
    font-weight: 800;
}

.checkout-card > p,
.checkout-summary > p {
    margin-bottom: 24px;
    color: var(--sr-muted);
    font-size: 12px;
}

.secure-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    color: #476154;
    background: var(--sr-primary-soft);
    font-size: 11px;
}

.secure-note i {
    margin-top: 2px;
    color: var(--sr-primary-dark);
}

.summary-plan {
    padding: 18px;
    border: 1px solid #d9eee8;
    border-radius: 14px;
    background: #f7fffc;
}

.summary-plan-row,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.summary-plan-row span {
    color: var(--sr-muted);
    font-size: 12px;
}

.summary-plan-row strong {
    color: var(--sr-navy);
    font-size: 14px;
}

.summary-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--sr-border);
}

.summary-total strong {
    color: var(--sr-navy);
    font-size: 22px;
}

.summary-list {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    display: flex;
    gap: 9px;
    margin: 11px 0;
    color: #58667a;
    font-size: 12px;
}

.summary-list i {
    margin-top: 3px;
    color: var(--sr-primary);
}

/* Application portal */
.app-portal {
    min-height: 100vh;
    background: var(--sr-canvas);
}

.portal-shell {
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    z-index: 1040;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 258px;
    color: #dbe5f3;
    background: var(--sr-sidebar);
    box-shadow: 14px 0 35px rgba(11, 24, 48, .08);
    transition: width var(--sr-transition), transform var(--sr-transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar-brand:hover {
    color: #fff;
}

.sidebar-brand .sr-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.sidebar-brand .sr-brand-copy {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 800;
}

.sidebar-brand .sr-brand-copy small {
    color: #8291a9;
}

.workspace-card {
    margin: 18px 17px 10px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.workspace-label {
    display: block;
    margin-bottom: 4px;
    color: #8291a9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.workspace-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.workspace-name i {
    color: #45d2ac;
    font-size: 9px;
}

.workspace-valid {
    display: block;
    margin-top: 5px;
    color: #93a4bc;
    font-size: 9px;
    font-weight: 600;
}

.portal-nav {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 10px 13px 25px;
    list-style: none;
}

.portal-nav-section {
    display: block;
    padding: 17px 13px 8px;
    color: #6f7e96;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.portal-nav-item {
    margin: 3px 0;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 9px 13px;
    border-radius: 10px;
    color: #aebbd0;
    font-size: 12px;
    font-weight: 700;
}

.portal-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055);
}

.portal-nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(31, 190, 145, .21), rgba(31, 190, 145, .07));
    box-shadow: inset 3px 0 #2fd1a4;
}

.portal-nav-link i {
    width: 20px;
    color: #7f8ea6;
    text-align: center;
    font-size: 15px;
}

.portal-nav-link.active i,
.portal-nav-link:hover i {
    color: #4dd9b3;
}

.nav-chip {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 99px;
    color: #4dd9b3;
    background: rgba(77, 217, 179, .1);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.sidebar-support {
    margin: 0 17px 19px;
    padding: 15px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(15, 159, 121, .18), rgba(14, 165, 233, .08));
}

.sidebar-support strong {
    display: block;
    color: #fff;
    font-size: 11px;
}

.sidebar-support span {
    display: block;
    margin: 4px 0 10px;
    color: #93a4bc;
    font-size: 9px;
}

.sidebar-support a {
    color: #54dcb7;
    font-size: 10px;
    font-weight: 800;
}

.portal-main {
    min-height: 100vh;
    margin-left: 258px;
    transition: margin-left var(--sr-transition);
}

.portal-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 0 32px;
    border-bottom: 1px solid rgba(228, 233, 241, .9);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions,
.profile-button {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 14px;
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    color: var(--sr-navy);
    background: #fff;
}

.portal-breadcrumb span {
    display: block;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-breadcrumb strong {
    display: block;
    color: var(--sr-navy);
    font-size: 14px;
    font-weight: 800;
}

.topbar-actions {
    gap: 10px;
}

.topbar-quick-action {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 11px;
}

.profile-button {
    gap: 10px;
    padding: 5px 7px 5px 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--sr-ink);
    background: transparent;
}

.profile-button:hover,
.profile-button:focus {
    border-color: var(--sr-border);
    background: #f8fafc;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #1fbe91, #0a7f63);
    font-size: 12px;
    font-weight: 800;
}

.profile-copy {
    min-width: 100px;
    text-align: left;
}

.profile-copy strong,
.profile-copy span {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: var(--sr-navy);
    font-size: 11px;
}

.profile-copy span {
    color: #98a2b3;
    font-size: 9px;
}

.profile-menu {
    min-width: 205px;
    padding: 8px;
    border: 1px solid var(--sr-border);
    border-radius: 13px;
    box-shadow: var(--sr-shadow);
}

.profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border-radius: 9px;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
}

.profile-menu .dropdown-item:hover {
    color: var(--sr-primary-dark);
    background: var(--sr-primary-soft);
}

.profile-menu .AspButton {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
}

.portal-content {
    max-width: 1600px;
    margin: auto;
    padding: 28px 32px 38px;
}

.portal-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.portal-welcome h1 {
    margin: 0 0 4px;
    color: var(--sr-navy);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.portal-welcome p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 12px;
}

.portal-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #cfeadf;
    border-radius: 99px;
    color: var(--sr-primary-dark);
    background: var(--sr-primary-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.admin-shell .portal-role-badge {
    border-color: #cfe6f5;
    color: #0879a5;
    background: #e9f8fe;
}

.admin-shell {
    --sr-primary: #2563eb;
    --sr-primary-dark: #1d4ed8;
    --sr-primary-soft: #eff6ff;
}

.admin-shell .portal-sidebar {
    background: linear-gradient(180deg, #0a1730 0%, #111d3d 58%, #172554 100%);
}

.admin-shell .portal-nav-link.active {
    background: linear-gradient(90deg, rgba(96, 165, 250, .22), rgba(99, 102, 241, .08));
    box-shadow: inset 3px 0 #60a5fa;
}

.admin-shell .portal-nav-link.active i,
.admin-shell .portal-nav-link:hover i,
.admin-shell .sidebar-support a {
    color: #7dd3fc;
}

.portal-content > * {
    animation: sr-content-in 360ms cubic-bezier(.2, .75, .25, 1) both;
}

.portal-content > *:nth-child(2) { animation-delay: 45ms; }
.portal-content > *:nth-child(3) { animation-delay: 80ms; }
.portal-content > *:nth-child(4) { animation-delay: 115ms; }

@keyframes sr-content-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 32px;
    border-top: 1px solid var(--sr-border);
    color: #98a2b3;
    background: #fff;
    font-size: 10px;
}

.portal-footer a {
    color: #7f8a9b;
    font-weight: 700;
}

.sidebar-overlay {
    display: none;
}

/* Portal page components */
.card,
.portal-card {
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius);
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
}

.card .card-body,
.portal-card-body {
    padding: 23px;
}

.card-title,
.portal-card-title {
    margin: 0;
    color: var(--sr-navy) !important;
    font-size: 15px;
    font-weight: 800 !important;
}

.card-subtitle,
.portal-card-subtitle {
    margin: 5px 0 0;
    color: var(--sr-muted);
    font-size: 11px;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.page-title-block h2 {
    margin: 0 0 4px;
    color: var(--sr-navy);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.55px;
}

.page-title-block p {
    margin: 0;
    color: var(--sr-muted);
    font-size: 11px;
}

.page-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--sr-primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.toolbar-actions .btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 11px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    padding: 28px;
    border: 0;
    border-radius: 19px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 40%, rgba(68, 215, 175, .2), transparent 29%),
        linear-gradient(135deg, #102440 0%, #15365b 100%);
    box-shadow: 0 22px 45px rgba(16, 34, 63, .16);
}

.dashboard-hero::after {
    position: absolute;
    right: -65px;
    bottom: -125px;
    width: 300px;
    height: 300px;
    border: 38px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    content: "";
}

.dashboard-hero .hero-small {
    color: #70e2c3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    max-width: 430px;
    margin: 9px 0 9px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.6px;
}

.dashboard-hero p {
    max-width: 430px;
    margin: 0;
    color: #bac8da;
    font-size: 11px;
}

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 9px;
    color: #dfe8f4;
    background: rgba(255, 255, 255, .06);
    font-size: 10px;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.reminder-stat {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 103px;
    padding: 17px;
    border: 1px solid var(--sr-border);
    border-radius: 15px;
    color: var(--sr-ink);
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
    transition: transform var(--sr-transition), border-color var(--sr-transition), box-shadow var(--sr-transition);
}

.reminder-stat:hover {
    color: var(--sr-ink);
    border-color: #bfe4d9;
    box-shadow: 0 13px 30px rgba(16, 34, 63, .1);
    transform: translateY(-2px);
}

.reminder-stat::after {
    position: absolute;
    z-index: 0;
    top: -18px;
    right: -17px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--stat-soft, #e9fbf5);
    content: "";
    pointer-events: none;
}

.stat-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--stat-color, var(--sr-primary-dark));
    background: var(--stat-soft, var(--sr-primary-soft));
    font-size: 14px;
}

.stat-value {
    min-width: 38px;
    color: var(--sr-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

.stat-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 13px;
    color: var(--sr-muted);
    font-size: 10px;
    font-weight: 700;
}

.stat-blue { --stat-color: #0879a5; --stat-soft: #e8f7fd; }
.stat-amber { --stat-color: #b36b00; --stat-soft: #fff5dc; }
.stat-rose { --stat-color: #c33359; --stat-soft: #fff0f4; }
.stat-purple { --stat-color: #7447b9; --stat-soft: #f2ecff; }

.data-card {
    margin-top: 20px;
    overflow: hidden;
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--sr-border);
}

.data-card-header h3 {
    margin: 0;
    color: var(--sr-navy);
    font-size: 15px;
    font-weight: 800;
}

.data-card-header p {
    margin: 3px 0 0;
    color: var(--sr-muted);
    font-size: 10px;
}

.data-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search-control {
    position: relative;
    min-width: 245px;
}

.search-control .form-control {
    min-height: 40px;
    padding: 8px 42px 8px 36px;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    font-size: 11px;
}

.search-control > i {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    color: #98a2b3;
}

.search-control .btn {
    position: absolute;
    z-index: 3;
    top: 4px;
    right: 4px;
    width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
}

.filter-control.form-select,
.dropdowns.form-select {
    min-width: 155px;
    min-height: 40px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    color: #475467;
    background-color: #fff;
    font-size: 11px;
}

.result-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #cce9e0;
    border-radius: 99px;
    color: var(--sr-primary-dark);
    background: #effbf7;
    font-size: 10px;
    font-weight: 800;
}

.renewal-filter-panel {
    padding: 17px 22px 15px;
    border-bottom: 1px solid var(--sr-border);
    background: #fbfcfe;
}

.renewal-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.renewal-filter-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--sr-navy);
    font-size: 11px;
}

.renewal-filter-heading > div > i {
    color: var(--sr-primary);
}

.renewal-filter-heading > div > span {
    color: var(--sr-muted);
    font-size: 9px;
    font-weight: 600;
}

.filter-reset {
    color: #667085;
    font-size: 9px;
    font-weight: 800;
}

.filter-reset:hover {
    color: var(--sr-primary-dark);
}

.renewal-filter-grid {
    display: grid;
    grid-template-columns: minmax(165px, .9fr) minmax(165px, .9fr) minmax(245px, 1.35fr) minmax(205px, 1fr);
    gap: 11px;
    align-items: end;
}

.filter-field label {
    display: block;
    margin: 0 0 6px;
    color: #475467;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .25px;
}

.filter-field .form-control,
.filter-field .form-select {
    width: 100%;
    min-height: 40px;
    border-color: var(--sr-border);
    border-radius: 10px;
    color: #344054;
    background-color: #fff;
    font-size: 10px;
}

.filter-search-field .search-control {
    width: 100%;
    min-width: 0;
}

.custom-date-fields {
    display: none;
    grid-template-columns: minmax(170px, 220px) minmax(170px, 220px) auto;
    gap: 11px;
    align-items: end;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed #d8e0e9;
}

.custom-date-fields.is-visible {
    display: grid;
}

.custom-date-fields .btn {
    min-height: 40px;
    font-size: 10px;
}

.filter-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
    color: #667085;
    font-size: 9px;
    font-weight: 700;
}

.filter-feedback > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-feedback i {
    color: var(--sr-primary);
}

.filter-error {
    color: #c33359;
    font-weight: 800;
}

.due-service {
    color: var(--sr-navy);
    font-weight: 800;
}

.renewal-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 99px;
    color: #18775e;
    background: #eaf9f4;
    font-size: 9px;
    font-weight: 800;
}

.renewal-status.is-overdue {
    color: #b42318;
    background: #fff0ed;
}

.renewal-status.is-today {
    color: #9a5b00;
    background: #fff5db;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portal-table,
.dataTable,
.table-responsive > table {
    width: 100% !important;
    margin: 0;
    border-collapse: separate !important;
    border-spacing: 0;
    color: #475467;
    font-size: 11px;
}

.portal-table th,
.dataTable th,
.table-responsive > table th {
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sr-border) !important;
    color: #667085 !important;
    background: #f8fafc !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .55px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-table td,
.dataTable td,
.table-responsive > table td {
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f4 !important;
    background: #fff !important;
    vertical-align: middle;
    white-space: nowrap;
}

.portal-table tr:hover td,
.dataTable tr:hover td,
.table-responsive > table tr:hover td {
    background: #f7fbfa !important;
}

.portal-table tr:last-child td,
.dataTable tr:last-child td,
.table-responsive > table tr:last-child td {
    border-bottom: 0 !important;
}

.dataTable a,
.table-responsive > table a {
    color: var(--sr-primary-dark);
    font-weight: 800;
}

.dataTable tr[style*="background-color:#7DA0FA"] td,
.dataTable tr[style*="background-color: rgb(125, 160, 250)"] td,
.dataTable .selected-row td {
    color: var(--sr-navy) !important;
    background: #e5f7f1 !important;
}

.dataTable .page-item,
.table-responsive .page-item {
    padding: 12px !important;
    border: 0 !important;
    background: #fff !important;
}

.record-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 15px 20px;
    border-top: 1px solid var(--sr-border);
    background: #fbfcfd;
}

.record-actions .btn,
.custom {
    width: auto;
    min-width: 92px;
    min-height: 39px;
    margin: 0;
    padding: 8px 13px;
    font-size: 10px;
}

.record-actions .btn-icon,
.record-actions .custom1 {
    width: 39px;
    min-width: 39px;
    min-height: 39px;
    padding: 0;
}

.empty-help {
    padding: 14px 20px;
    border-top: 1px solid var(--sr-border);
    color: #8c97a7;
    background: #fff;
    font-size: 10px;
}

.modal-backdrop.show {
    opacity: .52;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(11, 24, 48, .26);
}

.modal-header {
    padding: 19px 22px;
    border-bottom: 1px solid var(--sr-border);
}

.modal-title {
    color: var(--sr-navy);
    font-size: 16px;
    font-weight: 800;
}

.modal-body {
    padding: 22px;
    color: #526077;
    font-size: 12px;
}

.modal-footer {
    gap: 8px;
    padding: 15px 22px;
    border-top: 1px solid var(--sr-border);
    background: #fbfcfd;
}

.modal-dialog.modal-lg {
    max-width: 780px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.modal-section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sr-border);
    color: var(--sr-navy);
    font-size: 11px;
    font-weight: 800;
}

.modal-section-title i {
    color: var(--sr-primary);
}

.settings-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
}

.settings-aside,
.settings-card {
    padding: 25px;
}

.settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 15px;
    color: var(--sr-primary-dark);
    background: var(--sr-primary-soft);
    font-size: 20px;
}

.settings-aside h2,
.settings-card h2 {
    color: var(--sr-navy);
    font-size: 18px;
    font-weight: 800;
}

.settings-aside p,
.settings-card > p {
    color: var(--sr-muted);
    font-size: 11px;
}

.security-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.security-list li {
    display: flex;
    gap: 9px;
    margin: 12px 0;
    color: #526077;
    font-size: 10px;
}

.security-list i {
    margin-top: 3px;
    color: var(--sr-primary);
}

.settings-form {
    max-width: 520px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.admin-summary-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
    transition: transform var(--sr-transition), border-color var(--sr-transition), box-shadow var(--sr-transition);
}

.admin-summary-card:hover {
    border-color: #cdd9e9;
    box-shadow: 0 14px 34px rgba(16, 34, 63, .09);
    transform: translateY(-2px);
}

.admin-summary-card .admin-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #0879a5;
    background: #e9f8fe;
    font-size: 15px;
    line-height: 1;
    text-transform: none;
}

.admin-summary-card .admin-summary-icon i {
    display: block;
    font-size: 15px;
    line-height: 1;
}

.admin-summary-card strong,
.admin-summary-card span {
    display: block;
}

.admin-summary-card.summary-green .admin-summary-icon { color: #08765b; background: #e9fbf5; }
.admin-summary-card.summary-amber .admin-summary-icon { color: #a86200; background: #fff5dc; }
.admin-summary-card.summary-red .admin-summary-icon { color: #c33359; background: #fff0f4; }
.admin-summary-card.summary-navy .admin-summary-icon { color: #3154a4; background: #eef3ff; }

.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #f4d58b;
    border-radius: 13px;
    color: #704600;
    background: #fff9e9;
    font-size: 10px;
}

.security-notice > i {
    font-size: 18px;
}

.security-notice strong,
.security-notice span {
    display: block;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) minmax(180px, .85fr) minmax(190px, .9fr) auto;
    gap: 11px;
    align-items: end;
    padding: 16px 22px;
    border-bottom: 1px solid var(--sr-border);
    background: #fbfcfe;
}

.admin-filter-search .search-control {
    width: 100%;
    min-width: 0;
}

.admin-filter-reset {
    min-height: 40px;
    font-size: 10px;
}

.order-filter-bar {
    display: grid;
    grid-template-columns: minmax(245px, 1.35fr) repeat(3, minmax(150px, .75fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 16px 22px;
    border-bottom: 1px solid var(--sr-border);
    background: #fbfcfe;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 800;
}

.payment-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.payment-status.is-success { color: #08765b; background: #e9fbf5; }
.payment-status.is-pending { color: #965b00; background: #fff5dc; }
.payment-status.is-failed { color: #b42318; background: #fff0ed; }
.order-plan { color: var(--sr-navy); font-weight: 800; }

.customer-cell,
.customer-cell strong,
.customer-cell small {
    display: block;
}

.customer-cell strong {
    color: var(--sr-navy);
    font-size: 10px;
}

.customer-cell small {
    margin-top: 2px;
    color: var(--sr-muted);
    font-size: 8px;
}

.account-status,
.security-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 99px;
    color: #18775e;
    background: #eaf9f4;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.account-status > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.account-status.is-overdue,
.account-status.is-disabled {
    color: #b42318;
    background: #fff0ed;
}

.account-status.is-warning,
.security-state.is-pending {
    color: #965b00;
    background: #fff5db;
}

.security-state {
    color: #475467;
    background: #f2f4f7;
}

.customer-manager-modal .modal-body {
    padding: 20px;
    background: #f8fafc;
}

.modal-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--sr-primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.customer-account-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--sr-border);
    border-radius: 12px;
    background: var(--sr-border);
}

.customer-account-strip > span {
    min-height: 64px;
    padding: 12px 14px;
    background: #fff;
}

.customer-account-strip small,
.customer-account-strip strong {
    display: block;
}

.customer-account-strip small {
    margin-bottom: 5px;
    color: #98a2b3;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.customer-account-strip strong {
    color: var(--sr-navy);
    font-size: 11px;
}

.admin-action-message {
    display: none;
}

.admin-action-message.is-visible {
    display: block;
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid #bde5d9;
    border-radius: 10px;
    color: #08765b;
    background: #effbf7;
    font-size: 9px;
    font-weight: 700;
}

.admin-action-message.is-error {
    border-color: #f5c4cd;
    color: #b42318;
    background: #fff2f4;
}

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

.admin-action-card {
    position: relative;
    padding: 17px;
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color var(--sr-transition), box-shadow var(--sr-transition), transform var(--sr-transition);
}

.admin-action-card:hover {
    border-color: #cdd9e9;
    box-shadow: var(--sr-shadow-sm);
    transform: translateY(-1px);
}

.admin-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #3154a4;
    background: #eef3ff;
    font-size: 13px;
}

.admin-action-icon.icon-access { color: #c33359; background: #fff0f4; }
.admin-action-icon.icon-validity { color: #08765b; background: #e9fbf5; }
.admin-action-icon.icon-password { color: #7447b9; background: #f2ecff; }
.admin-action-icon.icon-notes { color: #a86200; background: #fff5dc; }

.admin-action-heading h3 {
    margin: 0;
    color: var(--sr-navy);
    font-size: 12px;
    font-weight: 800;
}

.admin-action-heading p {
    min-height: 32px;
    margin: 3px 0 13px;
    color: var(--sr-muted);
    font-size: 9px;
}

.admin-action-card .btn {
    min-height: 38px;
    font-size: 9px;
}

.custom-validity-field {
    display: none;
}

.custom-validity-field.is-visible {
    display: block;
}

.password-action-row {
    display: flex;
    gap: 7px;
    margin: 8px 0;
}

.password-action-row .btn {
    flex: 1;
}

.modal-security-note {
    margin-right: auto;
    color: var(--sr-muted);
    font-size: 8px;
}

/* Reports */
.report-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 15px 17px;
}

.report-control-bar > div,
.report-control-inputs {
    display: flex;
    align-items: center;
    gap: 11px;
}

.report-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--sr-primary-dark);
    background: var(--sr-primary-soft);
}

.report-control-bar strong,
.report-control-bar small {
    display: block;
}

.report-control-bar strong { color: var(--sr-navy); font-size: 10px; }
.report-control-bar small { color: var(--sr-muted); font-size: 8px; }
.report-control-inputs .form-select { min-width: 175px; min-height: 39px; border-color: var(--sr-border); font-size: 9px; }

.compact-heading {
    margin: 23px 0 12px;
}

.compact-heading .section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--sr-primary);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.compact-heading h2 {
    margin: 0;
    color: var(--sr-navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

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

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

.report-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 91px;
    padding: 15px;
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--sr-shadow-sm);
    transition: transform var(--sr-transition), box-shadow var(--sr-transition);
}

.report-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 34, 63, .09); }

.report-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 14px;
}

.icon-indigo { color: #3154a4; background: #eef3ff; }
.icon-green { color: #08765b; background: #e9fbf5; }
.icon-red { color: #c33359; background: #fff0f4; }
.icon-amber { color: #a86200; background: #fff5dc; }
.icon-sky { color: #0879a5; background: #e9f8fe; }
.icon-purple { color: #7447b9; background: #f2ecff; }

.report-kpi small,
.report-kpi strong,
.report-kpi em { display: block; }
.report-kpi small { color: var(--sr-muted); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.report-kpi strong { margin: 1px 0; color: var(--sr-navy); font-size: 19px; line-height: 1.2; }
.report-kpi em { color: #98a2b3; font-size: 7px; font-style: normal; }

.report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
    gap: 14px;
    margin-top: 14px;
}

.report-service-card,
.report-focus-card { padding: 19px; }

.report-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.report-card-heading small,
.report-card-heading strong { display: block; }
.report-card-heading small { color: var(--sr-muted); font-size: 8px; text-transform: uppercase; }
.report-card-heading strong { color: var(--sr-navy); font-size: 13px; }
.report-card-heading > i { color: var(--sr-primary); font-size: 17px; }

.service-report-row + .service-report-row { margin-top: 11px; }
.service-report-row > div { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.service-report-row strong { color: #475467; font-size: 9px; }
.service-report-row > div > span:last-child { margin-left: auto; color: var(--sr-navy); font-size: 9px; font-weight: 800; }
.service-dot { width: 7px; height: 7px; border-radius: 50%; background: #3154a4; }
.service-progress { display: block; overflow: hidden; height: 5px; border-radius: 99px; background: #eef1f5; }
.service-progress i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #3154a4; transition: width 500ms ease; }
.service-color-1 { background: #0f9f79 !important; }
.service-color-2 { background: #0ea5e9 !important; }
.service-color-3 { background: #f59e0b !important; }
.service-color-4 { background: #8b5cf6 !important; }
.service-color-5 { background: #2563eb !important; }
.service-color-6 { background: #ef476f !important; }

.report-focus-card {
    overflow: hidden;
    color: #dce8fb;
    background: linear-gradient(145deg, #102b51, #14213d 60%, #1e3a8a);
}
.report-focus-icon { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; margin-bottom: 18px; border-radius: 12px; color: #7dd3fc; background: rgba(255,255,255,.09); }
.report-focus-card .section-kicker { color: #7dd3fc; }
.report-focus-card h2 { margin: 3px 0 8px; color: #fff; font-size: 17px; font-weight: 800; }
.report-focus-card p { margin: 0 0 17px; color: #b8c7dc; font-size: 9px; }
.report-focus-card .btn { font-size: 9px; }
.report-schedule-card { margin-top: 14px; }
.audit-card { margin-top: 18px; }
.audit-action { color: var(--sr-primary-dark); font-size: 8px; font-weight: 800; }

.admin-summary-card strong {
    color: var(--sr-navy);
    font-size: 18px;
    font-weight: 800;
}

.admin-summary-card span {
    color: var(--sr-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-summary-card span.admin-summary-icon {
    display: inline-flex;
    color: #0879a5;
    font-size: 15px;
    line-height: 1;
    text-transform: none;
}

.ui-datepicker {
    z-index: 1080 !important;
    width: 260px;
    padding: 10px;
    border: 1px solid var(--sr-border) !important;
    border-radius: 13px;
    box-shadow: var(--sr-shadow);
    font-family: "Manrope", Arial, sans-serif;
}

.ui-datepicker .ui-datepicker-header {
    border: 0;
    border-radius: 9px;
    color: var(--sr-navy);
    background: var(--sr-primary-soft);
}

.ui-datepicker td a {
    border: 0 !important;
    border-radius: 7px;
    background: transparent !important;
    text-align: center;
}

.ui-datepicker td a:hover,
.ui-datepicker td .ui-state-active {
    color: #fff !important;
    background: var(--sr-primary) !important;
}

.toast-region {
    position: fixed;
    z-index: 1090;
    top: 90px;
    right: 20px;
}

@media (max-width: 1199.98px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card.popular {
        transform: none;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-sidebar {
        width: 235px;
    }

    .portal-main {
        margin-left: 235px;
    }

    .portal-content,
    .portal-topbar {
        padding-right: 23px;
        padding-left: 23px;
    }

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

    .admin-summary-grid-4,
    .report-kpi-grid,
    .report-kpi-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .public-nav {
        position: fixed;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 20px 19px;
        border-bottom: 1px solid var(--sr-border);
        background: #fff;
        box-shadow: var(--sr-shadow-sm);
    }

    .public-nav.open {
        display: flex;
    }

    .public-nav > a {
        padding: 10px 4px;
    }

    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .public-actions .btn-outline-primary {
        display: none;
    }

    .hero-section {
        padding-top: 65px;
    }

    .product-preview {
        margin: 55px auto 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 660px;
    }

    .auth-aside {
        min-height: auto;
        padding: 37px 42px;
    }

    .auth-benefits {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 20px;
        margin-top: 24px;
    }

    .auth-trial-card {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        max-width: 360px;
        margin-top: 24px;
    }

    .checkout-shell {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .portal-sidebar {
        width: 258px;
        transform: translateX(-105%);
    }

    .sidebar-open .portal-sidebar {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 1035;
        inset: 0;
        display: block;
        visibility: hidden;
        background: rgba(5, 13, 27, .55);
        opacity: 0;
        transition: opacity var(--sr-transition), visibility var(--sr-transition);
    }

    .sidebar-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

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

    .report-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .public-header-inner {
        min-height: 66px;
    }

    .public-nav {
        top: 66px;
    }

    .sr-brand {
        font-size: 15px;
    }

    .sr-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .public-actions .btn-primary {
        display: none;
    }

    .hero-section {
        padding: 54px 0 50px;
        text-align: center;
    }

    .hero-copy {
        margin: auto;
    }

    .hero-title {
        letter-spacing: -1.7px;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .product-preview {
        margin-top: 42px;
        padding: 9px;
        transform: none;
    }

    .preview-body {
        grid-template-columns: 62px 1fr;
        min-height: 285px;
    }

    .preview-content {
        padding: 16px 12px;
    }

    .preview-float {
        right: 7px;
        bottom: 19px;
    }

    .section-space {
        padding: 66px 0;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .trial-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 28px;
    }

    .public-footer-top,
    .public-footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .auth-section {
        padding: 30px 12px;
    }

    .auth-shell {
        border-radius: 19px;
    }

    .auth-aside {
        padding: 31px 25px;
    }

    .auth-aside h2 {
        font-size: 25px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .auth-card-wide {
        padding: 34px 25px;
    }

    .sr-field-row,
    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-section-title {
        margin-bottom: 14px;
    }

    .checkout-section {
        padding: 40px 12px 58px;
    }

    .checkout-card,
    .checkout-summary {
        padding: 23px;
    }

    .portal-topbar {
        min-height: 68px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .topbar-quick-action,
    .profile-copy {
        display: none;
    }

    .portal-content {
        padding: 21px 15px 30px;
    }

    .portal-welcome {
        align-items: center;
    }

    .portal-welcome h1 {
        font-size: 21px;
    }

    .portal-welcome p {
        max-width: 230px;
    }

    .dashboard-stats,
    .admin-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .data-card-header,
    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .renewal-filter-panel {
        padding-right: 15px;
        padding-left: 15px;
    }

    .renewal-filter-grid,
    .custom-date-fields.is-visible {
        grid-template-columns: 1fr;
    }

    .renewal-filter-heading,
    .filter-feedback {
        align-items: flex-start;
    }

    .renewal-filter-heading > div {
        flex-wrap: wrap;
    }

    .data-toolbar {
        align-items: stretch;
    }

    .search-control {
        flex: 1;
        min-width: 0;
    }

    .filter-control.form-select,
    .dropdowns.form-select {
        min-width: 135px;
    }

    .record-actions {
        justify-content: stretch;
    }

    .record-actions .btn {
        flex: 1;
    }

    .portal-footer {
        flex-direction: column;
        padding-right: 15px;
        padding-left: 15px;
    }

    .admin-filter-bar,
    .order-filter-bar,
    .customer-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar,
    .order-filter-bar {
        padding-right: 15px;
        padding-left: 15px;
    }

    .customer-account-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-control-bar,
    .report-control-inputs {
        align-items: stretch;
        flex-direction: column;
    }

    .report-control-inputs .form-select {
        width: 100%;
    }

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

@media (max-width: 479.98px) {
    .hero-actions .btn {
        width: 100%;
    }

    .preview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-stat:last-child {
        display: none;
    }

    .dashboard-stats,
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .customer-account-strip,
    .report-kpi-grid,
    .report-kpi-grid-6 {
        grid-template-columns: 1fr;
    }

    .data-toolbar {
        flex-direction: column;
    }

    .filter-control.form-select,
    .dropdowns.form-select {
        width: 100%;
    }

    .portal-role-badge {
        display: none;
    }
}

/* Keep the desktop shell deterministic after resizing or using the mobile drawer. */
@media (min-width: 992px) {
    .portal-sidebar {
        transform: none !important;
    }

    .portal-main {
        margin-left: 235px;
    }

    .sidebar-toggle,
    .sidebar-overlay {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .portal-sidebar {
        width: 258px;
    }

    .portal-main {
        margin-left: 258px;
    }
}

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