html, body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

#components-reconnect-modal.app-reconnect-indicator {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    display: none;
    max-width: calc(100vw - 2rem);
    pointer-events: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block;
}

.app-reconnect-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: min(20rem, calc(100vw - 2rem));
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    color: rgb(15 23 42);
    padding: 0.85rem 0.95rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.app-reconnect-spinner {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(37, 99, 235, 0.22);
    border-top-color: rgb(37 99 235);
    border-radius: 999px;
    animation: app-reconnect-spin 780ms linear infinite;
}

.app-reconnect-card strong,
.app-reconnect-card span {
    display: block;
}

.app-reconnect-card strong {
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
}

.app-reconnect-card span {
    margin-top: 0.15rem;
    color: rgb(100 116 139);
    font-size: 0.72rem;
    font-weight: 750;
}

.app-reconnect-title,
.app-reconnect-text {
    display: none !important;
}

#components-reconnect-modal.components-reconnect-show .app-reconnect-title--show,
#components-reconnect-modal.components-reconnect-show .app-reconnect-text--show,
#components-reconnect-modal.components-reconnect-failed .app-reconnect-title--failed,
#components-reconnect-modal.components-reconnect-failed .app-reconnect-text--failed,
#components-reconnect-modal.components-reconnect-rejected .app-reconnect-title--rejected,
#components-reconnect-modal.components-reconnect-rejected .app-reconnect-text--rejected {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-failed .app-reconnect-spinner,
#components-reconnect-modal.components-reconnect-rejected .app-reconnect-spinner {
    border-color: rgba(239, 68, 68, 0.22);
    border-top-color: rgb(220 38 38);
}

.dark #components-reconnect-modal .app-reconnect-card {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(15, 23, 42, 0.92);
    color: white;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.dark #components-reconnect-modal .app-reconnect-card span {
    color: rgb(203 213 225);
}

@media (max-width: 640px) {
    #components-reconnect-modal.app-reconnect-indicator {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }

    .app-reconnect-card {
        width: 100%;
        min-width: 0;
    }
}

@keyframes app-reconnect-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-page--win11 {
    background:
        radial-gradient(circle at 76% 18%, rgba(56, 189, 248, 0.34), transparent 30%),
        radial-gradient(circle at 24% 78%, rgba(37, 99, 235, 0.24), transparent 34%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(14, 165, 233, 0.16)),
        #b9d1e2 url("/login-win11-background.jpg") center center / cover no-repeat;
    box-shadow:
        inset 0 0 120px rgba(37, 99, 235, 0.22),
        inset 0 -80px 140px rgba(14, 165, 233, 0.18);
}

.login-form-card--blue-glow {
    background:
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.34), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(37, 99, 235, 0.23), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 240, 255, 0.90));
    box-shadow:
        0 28px 68px rgba(37, 99, 235, 0.25),
        0 12px 28px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 48px rgba(96, 165, 250, 0.18);
}

@keyframes login-fade-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-slide-in {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes login-title-reveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-title-line {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes login-ambient-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(16px, -12px, 0) scale(1.04);
    }
}

.login-page .login-ambient {
    animation: login-ambient-drift 12s ease-in-out infinite;
}

.login-page .login-ambient--two {
    animation-delay: -3s;
}

.login-page .login-ambient--three {
    animation-delay: -6s;
}

.login-page .login-ambient--four {
    animation-delay: -9s;
}

.login-page .login-reveal,
.login-page .login-welcome-copy,
.login-page .login-stat-card,
.login-page .login-form-heading,
.login-page .login-field,
.login-page .login-submit,
.login-page .login-form-meta {
    animation: login-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-page .login-welcome-title {
    animation: login-title-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
    display: inline-block;
    position: relative;
}

.login-page .login-welcome-title::after {
    background: linear-gradient(90deg, #0d6efd, rgba(13, 110, 253, 0.08));
    border-radius: 999px;
    bottom: -0.7rem;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    transform-origin: left;
    width: 58%;
    animation: login-title-line 800ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both;
}

.login-page .login-welcome-copy {
    animation-delay: 500ms;
}

.login-page .login-stat-card {
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.login-page .login-stat-card:nth-child(1) {
    animation-delay: 680ms;
}

.login-page .login-stat-card:nth-child(2) {
    animation-delay: 790ms;
}

.login-page .login-stat-card:nth-child(3) {
    animation-delay: 900ms;
}

.login-page .login-stat-card:hover {
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.12);
    transform: translateY(-5px);
}

.login-page .login-form-card {
    animation: login-slide-in 850ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(29rem, 58vh, 34rem);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.login-page .login-form-card:focus-within {
    box-shadow: 0 28px 64px rgba(13, 110, 253, 0.16);
    transform: translateY(-2px);
}

.login-page .login-form-heading {
    animation-delay: 480ms;
}

.login-page .login-field:nth-child(1) {
    animation-delay: 600ms;
}

.login-page .login-field:nth-child(2) {
    animation-delay: 720ms;
}

.login-page .login-submit {
    animation-delay: 840ms;
    overflow: hidden;
    position: relative;
}

.login-page .login-form-meta {
    animation-delay: 960ms;
}

.login-page .login-submit::after {
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.38), transparent 75%);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.login-page .login-submit:hover::after {
    transform: translateX(120%);
}

@media (max-width: 640px) {
    .login-page .login-form-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

.reporting-center {
    animation: fade-up 420ms ease both;
}

.reporting-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
}

.reporting-heading h1 {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 1.75rem;
    font-weight: 900;
}

.dark .reporting-heading h1 {
    color: white;
}

.reporting-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reporting-card-body {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.dark .reporting-card-body {
    border-color: rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.12);
}

.reporting-module-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .reporting-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .reporting-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.reporting-module-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 9rem;
    width: 100%;
    gap: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem;
    text-align: left;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    appearance: none;
    cursor: pointer;
}

.reporting-module-card::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%, rgba(255, 255, 255, 0.2) 72%, transparent);
    content: "";
    opacity: 0.72;
}

.reporting-module-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    content: "";
}

.reporting-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.dark .reporting-module-card {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.18);
}

.dark .reporting-module-card::after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%, rgba(96, 165, 250, 0.12) 68%, transparent),
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.16), transparent 28%);
    opacity: 1;
}

.reporting-module-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgb(239 246 255);
    color: rgb(37 99 235);
}

.reporting-module-content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: grid;
    gap: 0.3rem;
}

.reporting-module-content strong {
    color: rgb(15 23 42);
    font-size: 1rem;
    font-weight: 900;
}

.reporting-module-content small {
    color: rgb(37 99 235);
    font-size: 0.72rem;
    font-weight: 800;
}

.reporting-module-content span {
    color: rgb(100 116 139);
    font-size: 0.85rem;
    line-height: 1.45;
}

.dark .reporting-module-content strong {
    color: white;
}

.dark .reporting-module-content span {
    color: rgb(203 213 225);
}

.reporting-module-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    border-radius: 0.5rem;
    background: rgb(241 245 249);
    color: rgb(51 65 85);
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 850;
}

.dark .reporting-module-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(226 232 240);
}

.reporting-accent-blue::before { background: rgb(37 99 235); }
.reporting-accent-emerald::before { background: rgb(16 185 129); }
.reporting-accent-sky::before { background: rgb(14 165 233); }
.reporting-accent-violet::before { background: rgb(124 58 237); }
.reporting-accent-amber::before { background: rgb(245 158 11); }
.reporting-accent-slate::before { background: rgb(71 85 105); }
.reporting-accent-indigo::before { background: rgb(79 70 229); }
.reporting-accent-rose::before { background: rgb(225 29 72); }
.reporting-accent-zinc::before { background: rgb(82 82 91); }

.reporting-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgb(219 234 254);
    border-radius: 0.75rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.82)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 38%);
    padding: 0.9rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.reporting-section-header--parameter {
    border-color: rgb(186 230 253);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.84)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 40%);
}

.dark .reporting-section-header {
    border-color: rgba(96, 165, 250, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.46)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 42%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.reporting-list-panel h2,
.reporting-parameter-panel h2,
.reporting-preview-panel h2 {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 1.05rem;
    font-weight: 900;
}

.reporting-list-panel p,
.reporting-parameter-panel p,
.reporting-preview-panel p {
    margin-top: 0.25rem;
    color: rgb(100 116 139);
    font-size: 0.86rem;
}

.dark .reporting-list-panel h2,
.dark .reporting-parameter-panel h2,
.dark .reporting-preview-panel h2 {
    color: white;
}

.dark .reporting-list-panel p,
.dark .reporting-parameter-panel p,
.dark .reporting-preview-panel p {
    color: rgb(148 163 184);
}

.reporting-report-groups {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.85rem;
}

.reporting-report-picker {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

@media (min-width: 768px) {
    .reporting-report-picker {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
        align-items: end;
    }
}

.reporting-report-picker label > span {
    margin-bottom: 0.35rem;
    display: block;
    color: rgb(71 85 105);
    font-size: 0.75rem;
    font-weight: 850;
}

.dark .reporting-report-picker label > span {
    color: rgb(203 213 225);
}

.reporting-report-summary {
    margin-top: 1.2rem;
    display: grid;
    min-height: 4.2rem;
    gap: 0.85rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgb(248 250 252), rgb(255 255 255) 72%, rgb(239 246 255));
    padding: 0.85rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .reporting-report-summary {
        grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem) minmax(13rem, 17rem) auto;
        align-items: center;
    }
}

.reporting-report-summary-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
}

.reporting-report-summary strong,
.reporting-report-summary small {
    display: block;
}

.reporting-report-summary strong {
    color: rgb(15 23 42);
    font-size: 0.95rem;
    font-weight: 950;
}

.reporting-report-summary small {
    margin-top: 0.12rem;
    color: rgb(100 116 139);
    font-size: 0.76rem;
    font-weight: 800;
}

.reporting-report-summary label > span {
    margin-bottom: 0.35rem;
    display: block;
    color: rgb(71 85 105);
    font-size: 0.72rem;
    font-weight: 850;
}

.reporting-report-summary em {
    flex: 0 0 auto;
    justify-self: start;
    border-radius: 999px;
    background: rgb(239 246 255);
    color: rgb(29 78 216);
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

@media (min-width: 768px) {
    .reporting-report-summary em {
        justify-self: end;
    }
}

.reporting-report-summary--standard .reporting-report-group-badge {
    background: rgb(37 99 235);
}

.reporting-report-summary--advanced .reporting-report-group-badge {
    background: rgb(124 58 237);
}

.reporting-report-summary--professional .reporting-report-group-badge {
    background: rgb(16 185 129);
}

.dark .reporting-report-summary {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(255, 255, 255, 0.055));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.dark .reporting-report-summary strong {
    color: white;
}

.dark .reporting-report-summary small {
    color: rgb(203 213 225);
}

.dark .reporting-report-summary label > span {
    color: rgb(203 213 225);
}

.dark .reporting-report-summary em {
    background: rgba(96, 165, 250, 0.16);
    color: rgb(191 219 254);
}

.reporting-report-group {
    overflow: hidden;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.reporting-report-group.is-expanded {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.dark .reporting-report-group {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.dark .reporting-report-group.is-expanded {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(255, 255, 255, 0.07);
}

.reporting-report-group-header {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: rgb(248 250 252);
    padding: 1rem;
    color: rgb(15 23 42);
    text-align: left;
    font-weight: 900;
    transition: background 160ms ease;
}

.reporting-report-group.is-expanded .reporting-report-group-header {
    background: linear-gradient(135deg, rgb(239 246 255), rgb(248 250 252));
}

.dark .reporting-report-group-header {
    background: rgba(15, 23, 42, 0.34);
    color: white;
}

.dark .reporting-report-group.is-expanded .reporting-report-group-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0.055));
}

.reporting-report-group-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
}

.reporting-report-group-title strong {
    display: block;
    color: rgb(15 23 42);
    font-size: 1rem;
    font-weight: 950;
}

.reporting-report-group-title small {
    display: block;
    margin-top: 0.12rem;
    color: rgb(100 116 139);
    font-size: 0.78rem;
    font-weight: 800;
}

.dark .reporting-report-group-title strong {
    color: white;
}

.dark .reporting-report-group-title small {
    color: rgb(203 213 225);
}

.reporting-report-group-badge {
    display: inline-flex;
    height: 2.35rem;
    min-width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
}

.reporting-report-group--standard .reporting-report-group-badge {
    background: rgb(37 99 235);
}

.reporting-report-group--advanced .reporting-report-group-badge {
    background: rgb(124 58 237);
}

.reporting-report-group--professional .reporting-report-group-badge {
    background: rgb(16 185 129);
}

.reporting-report-group-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    color: rgb(71 85 105);
    font-size: 0.78rem;
    font-weight: 850;
}

.dark .reporting-report-group-meta {
    color: rgb(203 213 225);
}

.reporting-report-group-chevron {
    height: 0.6rem;
    width: 0.6rem;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.reporting-report-group.is-expanded .reporting-report-group-chevron {
    transform: rotate(225deg);
}

.reporting-report-list {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.72);
}

@media (min-width: 1280px) {
    .reporting-report-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dark .reporting-report-list {
    background: rgba(2, 6, 23, 0.18);
}

.reporting-group-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgb(203 213 225);
    border-radius: 0.5rem;
    color: rgb(100 116 139);
    padding: 0.85rem;
    font-size: 0.82rem;
    font-weight: 750;
}

.dark .reporting-group-empty {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgb(148 163 184);
}

.reporting-report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    background: white;
    padding: 0.85rem;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease;
}

.reporting-report-row:hover {
    transform: translateX(3px);
    border-color: rgb(59 130 246);
}

.reporting-report-row.is-disabled,
.reporting-report-row:disabled {
    cursor: not-allowed;
    border-color: rgb(226 232 240);
    background: rgb(248 250 252);
    opacity: 0.68;
    transform: none;
}

.reporting-report-row.is-disabled:hover,
.reporting-report-row:disabled:hover {
    border-color: rgb(226 232 240);
    transform: none;
}

.reporting-report-row strong {
    display: block;
    color: rgb(15 23 42);
    font-size: 0.92rem;
    font-weight: 850;
}

.reporting-report-row small,
.reporting-report-row > span:last-child {
    color: rgb(100 116 139);
    font-size: 0.75rem;
    font-weight: 750;
}

.reporting-report-action-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.reporting-report-action-badge--ready {
    color: rgb(22 101 52);
}

.reporting-report-action-badge--disabled {
    color: rgb(185 28 28);
}

.dark .reporting-report-action-badge--ready {
    color: rgb(134 239 172);
}

.dark .reporting-report-action-badge--disabled {
    color: rgb(252 165 165);
}

.dark .reporting-report-row {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
}

.dark .reporting-report-row.is-disabled,
.dark .reporting-report-row:disabled {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.34);
    opacity: 0.55;
}

.dark .reporting-report-row strong {
    color: white;
}

.reporting-workspace {
    display: grid;
    gap: 1rem;
}

.reporting-parameter-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.reporting-filter-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.2rem;
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
    color: rgb(29 78 216);
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.reporting-filter-toggle-button:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.13);
}

.reporting-filter-toggle-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.reporting-filter-toggle-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.reporting-filter-toggle-chevron {
    width: 0.48rem;
    height: 0.48rem;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 220ms ease;
}

.reporting-filter-toggle-button[aria-expanded="true"] .reporting-filter-toggle-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.reporting-filter-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.42);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.reporting-filter-modal {
    display: flex;
    width: min(64rem, 100%);
    max-height: min(44rem, calc(100vh - 2.5rem));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 0.95rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92)),
        white;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    animation: reporting-modal-in 180ms ease-out both;
}

.reporting-filter-modal-header,
.reporting-filter-modal-footer {
    flex: 0 0 auto;
    border-color: rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
}

.reporting-filter-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1rem 1.1rem;
}

.reporting-filter-modal-header h3 {
    margin: 0;
    color: rgb(15 23 42);
    font-size: 1rem;
    font-weight: 950;
}

.reporting-filter-modal-header p {
    margin: 0.18rem 0 0;
    color: rgb(100 116 139);
    font-size: 0.78rem;
    font-weight: 750;
}

.reporting-filter-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 999px;
    background: white;
    color: rgb(71 85 105);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.reporting-filter-modal-close:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgb(254 242 242);
    color: rgb(185 28 28);
    transform: translateY(-1px);
}

.reporting-filter-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0 1.1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.reporting-filter-modal-body .reporting-filter-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-top: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0.9));
    padding-top: 0.85rem;
}

.reporting-filter-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.85rem 1.1rem;
}

.reporting-filter-tabs {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-bottom: 1px solid rgb(226 232 240);
    padding-bottom: 0.65rem;
}

.reporting-filter-tab {
    position: relative;
    min-height: 2.25rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    background: rgb(248 250 252);
    color: rgb(71 85 105);
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 850;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.reporting-filter-tab:hover {
    transform: translateY(-1px);
}

.reporting-filter-tab.is-active {
    border-color: rgb(37 99 235);
    background: rgb(239 246 255);
    color: rgb(29 78 216);
    box-shadow: inset 0 -2px 0 rgb(37 99 235);
}

.reporting-filter-tab--customer.is-active {
    border-color: rgb(14 165 233);
    color: rgb(3 105 161);
    box-shadow: inset 0 -2px 0 rgb(14 165 233);
}

.reporting-filter-tab--item.is-active {
    border-color: rgb(22 163 74);
    color: rgb(21 128 61);
    box-shadow: inset 0 -2px 0 rgb(22 163 74);
}

.reporting-filter-tab--other.is-active {
    border-color: rgb(124 58 237);
    color: rgb(109 40 217);
    box-shadow: inset 0 -2px 0 rgb(124 58 237);
}

.reporting-filter-tab-panel {
    border: 1px solid rgb(226 232 240);
    border-radius: 0.65rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.76), rgba(255, 255, 255, 0.96));
    padding: 0 0.85rem 0.9rem;
}

.reporting-check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    background: white;
    padding: 0.55rem 0.7rem;
    color: rgb(71 85 105);
    font-size: 0.82rem;
    font-weight: 800;
}

.reporting-check-row input {
    height: 1rem;
    width: 1rem;
    accent-color: rgb(37 99 235);
}

.dark .reporting-filter-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .reporting-filter-toggle-button {
    border-color: rgba(96, 165, 250, 0.24);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.06));
    color: rgb(191 219 254);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.dark .reporting-filter-toggle-button:hover {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.dark .reporting-filter-modal-backdrop {
    background: rgba(2, 6, 23, 0.62);
}

.dark .reporting-filter-modal {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9)),
        rgb(15 23 42);
    box-shadow: 0 34px 88px rgba(0, 0, 0, 0.42);
}

.dark .reporting-filter-modal-header,
.dark .reporting-filter-modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.78);
}

.dark .reporting-filter-modal-header h3 {
    color: white;
}

.dark .reporting-filter-modal-header p {
    color: rgb(203 213 225);
}

.dark .reporting-filter-modal-close {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgb(226 232 240);
}

.dark .reporting-filter-modal-close:hover {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(239, 68, 68, 0.16);
    color: rgb(254 202 202);
}

.dark .reporting-filter-modal-body .reporting-filter-tabs {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
}

.dark .reporting-filter-tab {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgb(203 213 225);
}

.dark .reporting-filter-tab.is-active {
    background: rgba(37, 99, 235, 0.18);
    color: rgb(191 219 254);
}

.dark .reporting-filter-tab-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.34));
}

.dark .reporting-check-row {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgb(203 213 225);
}

.reporting-form-grid {
    margin-top: 1.15rem;
    display: grid;
    gap: 0.8rem;
}

@keyframes reporting-modal-in {
    from {
        opacity: 0;
        transform: translateY(0.6rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 768px) {
    .reporting-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .reporting-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.reporting-form-grid label > span {
    margin-bottom: 0.35rem;
    display: block;
    color: rgb(71 85 105);
    font-size: 0.75rem;
    font-weight: 800;
}

.dark .reporting-form-grid label > span {
    color: rgb(203 213 225);
}

.reporting-command-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.reporting-primary-button,
.reporting-command-button,
.reporting-ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    border-radius: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 850;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.reporting-primary-button {
    background: rgb(37 99 235);
    color: white;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.reporting-primary-button:hover,
.reporting-command-button:hover,
.reporting-ghost-button:hover {
    transform: translateY(-1px);
}

.reporting-command-button,
.reporting-ghost-button {
    border: 1px solid rgb(226 232 240);
    background: white;
    color: rgb(51 65 85);
}

.dark .reporting-command-button,
.dark .reporting-ghost-button {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgb(226 232 240);
}

.reporting-action-icon {
    display: inline-flex;
    height: 1rem;
    width: 1rem;
}

.reporting-action-icon--print {
    color: rgb(71 85 105);
}

.reporting-action-icon--fullscreen,
.reporting-action-icon--word {
    color: rgb(37 99 235);
}

.reporting-action-icon--pdf {
    color: rgb(220 38 38);
}

.reporting-action-icon--excel {
    color: rgb(22 163 74);
}

.dark .reporting-action-icon--print {
    color: rgb(203 213 225);
}

.dark .reporting-action-icon--fullscreen,
.dark .reporting-action-icon--word {
    color: rgb(96 165 250);
}

.dark .reporting-action-icon--pdf {
    color: rgb(248 113 113);
}

.dark .reporting-action-icon--excel {
    color: rgb(74 222 128);
}

.reporting-primary-button:disabled,
.reporting-command-button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

.reporting-preview-shell {
    margin-top: 1rem;
    min-height: 30rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.5rem;
    background: rgb(248 250 252);
}

.reporting-preview-shell:fullscreen {
    border-radius: 0;
    border: 0;
    background: white;
    padding: 0;
}

.dark .reporting-preview-shell {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.reporting-preview-shell iframe {
    display: block;
    min-height: 42rem;
    width: 100%;
    border: 0;
    background: white;
}

@media (max-width: 768px) {
    .reporting-preview-panel {
        min-width: 0;
    }

    .reporting-preview-shell {
        max-width: 100%;
        min-height: 26rem;
        overflow-x: auto;
        overflow-y: auto;
    }

    .reporting-preview-shell iframe {
        min-width: 58rem;
        min-height: 38rem;
    }
}

.reporting-preview-shell:fullscreen iframe {
    min-height: 100vh;
    height: 100vh;
}

@media (max-width: 640px) {
    .reporting-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .reporting-report-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .reporting-parameter-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .reporting-filter-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .reporting-filter-modal {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 1rem 1rem 0 0;
    }

    .reporting-filter-modal-header {
        padding: 0.9rem 0.9rem 0.8rem;
    }

    .reporting-filter-modal-body {
        padding: 0 0.9rem 0.9rem;
    }

    .reporting-filter-modal-body .reporting-filter-tabs {
        flex-wrap: nowrap;
        gap: 0.4rem;
        margin-inline: -0.9rem;
        overflow-x: auto;
        padding-inline: 0.9rem;
        scrollbar-width: thin;
    }

    .reporting-filter-modal-body .reporting-filter-tab {
        flex: 0 0 auto;
        min-width: 6.8rem;
        text-align: center;
    }

    .reporting-filter-modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0.75rem 0.9rem;
    }

    .reporting-filter-modal-footer .reporting-command-button,
    .reporting-filter-modal-footer .reporting-primary-button {
        width: 100%;
        justify-content: center;
    }
}

:root {
    --app-bg: #f1f5f9;
    --app-surface: rgba(255, 255, 255, 0.9);
    --app-surface-solid: #ffffff;
    --app-border: rgba(203, 213, 225, 0.85);
    --app-text: #0f172a;
    --app-muted: #64748b;
    --app-hover: #e2e8f0;
    --app-card: rgba(255, 255, 255, 0.82);
    --app-card-strong: rgba(255, 255, 255, 0.92);
    --app-control: #ffffff;
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
    --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46));
    --glass-border: rgba(255, 255, 255, 0.78);
    --glass-shadow: 0 20px 52px rgba(37, 99, 235, 0.12), 0 8px 22px rgba(15, 23, 42, 0.08);
    --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root.dark,
[data-theme="dark"] {
    --app-bg: #020617;
    --app-surface: rgba(15, 23, 42, 0.86);
    --app-surface-solid: #0f172a;
    --app-border: rgba(255, 255, 255, 0.12);
    --app-text: #f8fafc;
    --app-muted: #94a3b8;
    --app-hover: rgba(255, 255, 255, 0.08);
    --app-card: rgba(15, 23, 42, 0.72);
    --app-card-strong: rgba(15, 23, 42, 0.88);
    --app-control: rgba(15, 23, 42, 0.78);
    --glass-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.52));
    --glass-bg-strong: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 20px 52px rgba(2, 6, 23, 0.32), 0 8px 22px rgba(15, 23, 42, 0.24);
    --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.app-shell {
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, 0.16), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(20, 184, 166, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 42%),
        var(--app-bg);
    color: var(--app-text);
}

.app-topbar {
    background: var(--app-surface) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

.app-topbar-actions {
    margin-left: auto;
}

.mobile-nav-fab,
.mobile-nav-backdrop,
.mobile-nav-drawer {
    display: none;
}

@media (max-width: 767px) {
    .app-topbar > div {
        gap: 0.65rem;
    }

    .desktop-top-nav {
        display: none !important;
    }

    .app-topbar-actions {
        justify-content: flex-end;
        margin-left: auto;
    }

    .mobile-nav-fab {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 70;
        display: inline-flex;
        height: 3.15rem;
        width: 3.15rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.92);
        box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
        color: white;
        backdrop-filter: blur(14px) saturate(1.18);
    }

    .mobile-nav-fab span {
        display: block;
        height: 2px;
        width: 1.25rem;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(4px);
    }

    .mobile-nav-drawer {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 90;
        display: flex;
        width: min(21rem, calc(100vw - 2.25rem));
        flex-direction: column;
        border-left: 1px solid rgba(226, 232, 240, 0.9);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: -24px 0 48px rgba(15, 23, 42, 0.22);
        padding: 1rem;
        animation: mobile-drawer-in 180ms ease both;
    }

    .dark .mobile-nav-drawer {
        border-left-color: rgba(255, 255, 255, 0.12);
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
            rgba(15, 23, 42, 0.94);
        box-shadow: -24px 0 48px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(20px) saturate(1.18);
    }

    .mobile-nav-drawer-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid rgb(226 232 240);
        padding-bottom: 1rem;
    }

    .dark .mobile-nav-drawer-header {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .mobile-nav-drawer-header p {
        margin: 0;
        color: rgb(37 99 235);
        font-size: 0.72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .mobile-nav-drawer-header h2 {
        margin: 0.15rem 0 0;
        color: rgb(15 23 42);
        font-size: 1.35rem;
        font-weight: 950;
    }

    .dark .mobile-nav-drawer-header h2 {
        color: white;
    }

    .mobile-nav-drawer-header button {
        display: inline-flex;
        height: 2.25rem;
        width: 2.25rem;
        align-items: center;
        justify-content: center;
        border: 1px solid rgb(226 232 240);
        border-radius: 0.5rem;
        background: white;
        color: rgb(51 65 85);
        font-size: 1.5rem;
        line-height: 1;
    }

    .dark .mobile-nav-drawer-header button {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        color: rgb(226 232 240);
    }

    .mobile-nav-list {
        display: grid;
        gap: 0.65rem;
        padding-top: 1rem;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border: 1px solid rgb(226 232 240);
        border-radius: 0.65rem;
        background: rgb(248 250 252);
        color: rgb(51 65 85);
        padding: 0.85rem;
        font-weight: 850;
        text-decoration: none;
        transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
    }

    .mobile-nav-link:hover {
        transform: translateX(-2px);
        border-color: rgb(59 130 246);
        background: rgb(239 246 255);
    }

    .mobile-nav-link.active {
        border-color: rgb(37 99 235);
        background: rgb(37 99 235);
        color: white;
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    }

    .dark .mobile-nav-link {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.065);
        color: rgb(226 232 240);
    }

    .dark .mobile-nav-link:hover {
        border-color: rgba(96, 165, 250, 0.46);
        background: rgba(96, 165, 250, 0.12);
    }

    .dark .mobile-nav-link.active {
        border-color: rgb(96 165 250);
        background: rgb(96 165 250);
        color: rgb(2 6 23);
    }
}

@media (min-width: 768px) {
    .desktop-top-nav {
        display: flex !important;
    }
}

@keyframes mobile-drawer-in {
    from {
        opacity: 0;
        transform: translateX(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.app-logo-box {
    background: var(--app-surface-solid);
    color: var(--app-text);
    ring-color: var(--app-border);
}

.app-brand-name,
.app-user-name {
    color: var(--app-text);
}

.app-user-label {
    color: var(--app-muted);
}

.app-logout-button {
    background: var(--app-control);
    border-color: var(--app-border);
    color: var(--app-text);
}

.app-logout-button:hover {
    background: rgba(254, 242, 242, 0.92);
    border-color: rgba(252, 165, 165, 0.8);
    color: #b91c1c;
}

.dark .app-logout-button:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
}

.app-user-menu {
    position: relative;
}

.app-user-menu-button {
    align-items: center;
    background: var(--app-control);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    color: var(--app-text);
    display: inline-flex;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.32rem 0.62rem 0.32rem 0.36rem;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.app-user-menu-button:hover {
    background: var(--app-hover);
    transform: translateY(-1px);
}

.app-user-avatar {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #16a34a);
    border-radius: 0.62rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 900;
    height: 1.78rem;
    justify-content: center;
    width: 1.78rem;
}

.app-user-menu-text {
    display: grid;
    line-height: 1.05;
    min-width: 0;
    text-align: left;
}

.app-user-menu-text span {
    color: var(--app-muted);
    font-size: 0.62rem;
    font-weight: 800;
}

.app-user-menu-text strong {
    font-size: 0.78rem;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu-chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    height: 0.42rem;
    margin-left: 0.1rem;
    opacity: 0.58;
    transform: rotate(45deg) translateY(-1px);
    width: 0.42rem;
}

.app-user-menu-dropdown {
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    border-radius: 0.8rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    min-width: 13rem;
    padding: 0.55rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 70;
}

.app-user-menu-summary {
    border-bottom: 1px solid var(--app-border);
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.45rem;
    padding: 0.35rem 0.45rem 0.6rem;
}

.app-user-menu-summary span {
    color: var(--app-muted);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-user-menu-summary strong {
    color: var(--app-text);
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu-logout {
    background: color-mix(in srgb, #ef4444 10%, transparent);
    border: 1px solid color-mix(in srgb, #ef4444 24%, var(--app-border));
    border-radius: 0.6rem;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 900;
    min-height: 2.2rem;
    width: 100%;
}

.app-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(15, 23, 42, 0.34);
    padding: 5.25rem 1rem 1rem;
    backdrop-filter: blur(8px);
}

.app-confirm-dialog {
    width: min(26rem, 100%);
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    background: var(--app-surface-solid);
    color: var(--app-text);
    padding: 1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
    animation: app-confirm-in 160ms ease-out both;
}

.app-confirm-kicker {
    margin: 0;
    color: rgb(37 99 235);
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-confirm-dialog h2 {
    margin: 0.2rem 0 0;
    color: var(--app-text);
    font-size: 1.2rem;
    font-weight: 950;
}

.app-confirm-message {
    margin: 0.4rem 0 0;
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}

.app-confirm-button {
    min-height: 2.25rem;
    border-radius: 0.55rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 900;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.app-confirm-button:hover {
    transform: translateY(-1px);
}

.app-confirm-button--secondary {
    border: 1px solid var(--app-border);
    background: var(--app-control);
    color: var(--app-text);
}

.app-confirm-button--primary {
    border: 1px solid rgb(37 99 235);
    background: rgb(37 99 235);
    color: white;
}

.app-confirm-button--primary:hover {
    background: rgb(29 78 216);
}

.dark .app-confirm-backdrop {
    background: rgba(2, 6, 23, 0.62);
}

@media (max-width: 640px) {
    .app-confirm-backdrop {
        align-items: flex-end;
        padding: 1rem;
    }

    .app-confirm-dialog {
        width: 100%;
    }

    .app-confirm-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .app-confirm-button {
        width: 100%;
    }
}

@keyframes app-confirm-in {
    from {
        opacity: 0;
        transform: translateY(-0.35rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fb-theme-switch {
    align-items: center;
    background: #e5e7eb;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: inline-flex;
    height: 2.25rem;
    justify-content: space-between;
    padding: 0 0.25rem;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    width: 4.5rem;
}

.fb-theme-switch__icon {
    align-items: center;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    position: relative;
    width: 1.75rem;
    z-index: 2;
}

.fb-theme-switch__icon svg {
    height: 1rem;
    width: 1rem;
}

.fb-theme-switch__icon--light {
    color: #f59e0b;
}

.fb-theme-switch__icon--dark {
    color: #64748b;
}

.fb-theme-switch__thumb {
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    height: 1.75rem;
    left: 0.25rem;
    position: absolute;
    top: 0.2rem;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), background-color 180ms ease;
    width: 1.75rem;
    z-index: 1;
}

.dark .fb-theme-switch,
.fb-theme-switch.is-dark {
    background: #1d4ed8;
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: inset 0 1px 3px rgba(2, 6, 23, 0.42), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.dark .fb-theme-switch__thumb,
.fb-theme-switch.is-dark .fb-theme-switch__thumb {
    background: #0f172a;
    transform: translateX(2.25rem);
}

.dark .fb-theme-switch__icon--light,
.fb-theme-switch.is-dark .fb-theme-switch__icon--light {
    color: rgba(255, 255, 255, 0.58);
}

.dark .fb-theme-switch__icon--dark,
.fb-theme-switch.is-dark .fb-theme-switch__icon--dark {
    color: #bfdbfe;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.font700 {
    font-weight: 700;
}

.font600 {
    font-weight: 600;
}

.font800 {
    font-weight: 800;
}

.filter-control {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 0.5rem;
    color: #0f172a;
    font-size: 0.925rem;
    font-weight: 600;
    outline: none;
    padding: 0.72rem 0.85rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    width: 100%;
}

.filter-control-sm {
    font-size: 0.8rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.6rem;
}

.filter-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.dark .filter-control {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.dashboard-hero {
    position: relative;
}

.glass-panel,
.glass-card {
    backdrop-filter: blur(18px) saturate(1.2);
    color: var(--app-text);
    transform-style: preserve-3d;
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .glass-card {
    background-color: var(--app-card) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

[data-theme="dark"] .glass-panel,
[data-theme="dark"] .glass-card {
    background-color: var(--app-card) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

[data-theme="light"] .chart-stage {
    background-color: rgba(241, 245, 249, 0.76) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

[data-theme="dark"] .chart-stage {
    background-color: rgba(2, 6, 23, 0.36) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text) !important;
}

.dark .glass-card {
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.glass-card {
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.chart-3d-scene {
    perspective: 900px;
}

.chart-tilt {
    animation: glass-tilt 7s ease-in-out infinite alternate;
}

.chart-stage {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    overflow: hidden;
    position: relative;
}

.chart-stage::before {
    animation: stage-shine 3.8s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
    content: "";
    height: 160%;
    left: -45%;
    position: absolute;
    top: -30%;
    transform: rotate(16deg);
    width: 36%;
}

.dark .chart-stage::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.icon-shell {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 0.65rem;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.65rem;
    justify-content: center;
    padding: 0.65rem;
    width: 2.65rem;
}

.icon-shell svg {
    height: 1.25rem;
    width: 1.25rem;
}

.icon-shell-sm {
    border-radius: 0.55rem;
    height: 2.15rem;
    padding: 0.5rem;
    width: 2.15rem;
}

.icon-shell-sm svg {
    height: 1rem;
    width: 1rem;
}

.dark .icon-shell {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.dashboard-hero::before {
    animation: soft-sweep 8s ease-in-out infinite alternate;
    background: linear-gradient(120deg, rgba(20, 184, 166, 0.14), rgba(14, 165, 233, 0.10), rgba(245, 158, 11, 0.10));
    content: "";
    inset: 0;
    position: absolute;
}

.chart-bar,
.dashboard-column {
    animation: bar-rise 900ms cubic-bezier(.2, .8, .2, 1) both, chart-pulse 2.9s ease-in-out infinite;
    border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
    box-shadow: 0 16px 24px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    min-height: 1.25rem;
    transform-origin: bottom;
    width: 100%;
}

.animate-progress {
    animation: progress-fill 900ms cubic-bezier(.2, .8, .2, 1) both;
    transform-origin: left;
}

.metric-card {
    animation: fade-up 520ms ease both;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-square {
    aspect-ratio: 1.35 / 1;
    min-height: 8.4rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric-square:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    transform: translateY(-3px);
}

.metric-card:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
    transform: translateY(-4px) rotateX(1.2deg) rotateY(-1.2deg);
}

.activity-row {
    animation: slide-in 540ms ease both;
}

.activity-board {
    border: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
    border-radius: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.activity-column {
    background: color-mix(in srgb, var(--app-surface-solid) 48%, transparent);
    min-width: 0;
}

.activity-column + .activity-column {
    border-left: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
}

.activity-column h2 {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    padding: 0.85rem 1rem;
}

.activity-column-list {
    display: grid;
}

.activity-column-row {
    color: color-mix(in srgb, var(--app-text) 86%, var(--app-muted));
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 2.65rem;
    padding: 0.8rem 1rem;
}

.activity-column-row + .activity-column-row {
    border-top: 1px solid color-mix(in srgb, var(--app-border) 54%, transparent);
}

.fb-loading {
    animation: fade-up 360ms ease both;
}

.fb-skeleton {
    animation: skeleton-shimmer 1.25s ease-in-out infinite;
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
    background-size: 240% 100%;
}

.dark .fb-skeleton {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(71, 85, 105, 0.55), rgba(30, 41, 59, 0.9));
    background-size: 240% 100%;
}

.pie-chart {
    animation: pie-pop 650ms cubic-bezier(.2, .8, .2, 1) both;
    aspect-ratio: 1;
    background: conic-gradient(#10b981 0 46%, #f59e0b 46% 70%, #3b82f6 70% 88%, #ef4444 88% 100%);
    border-radius: 999px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14), inset 0 0 0 16px rgba(255, 255, 255, 0.62);
    position: relative;
    transition: transform 220ms ease, filter 220ms ease;
}

.pie-chart::after {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    content: "";
    inset: 28%;
    position: absolute;
}

.dark .pie-chart::after {
    background: rgba(15, 23, 42, 0.92);
}

.pie-chart:hover,
.pie-chart:focus {
    filter: saturate(1.15);
    transform: scale(1.045) rotate(3deg);
}

.pie-tooltip {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 0.65rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    left: 50%;
    min-width: 11.5rem;
    opacity: 0;
    padding: 0.85rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -44%) scale(0.95);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 3;
}

.dark .pie-tooltip {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.pie-chart:hover .pie-tooltip,
.pie-chart:focus .pie-tooltip {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1);
}

.recent-activity-panel {
    min-height: 28rem;
}

.recent-activity-list {
    display: grid;
    gap: 0.72rem;
}

.recent-activity-row {
    align-items: flex-start;
    background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    padding: 0.82rem;
}

.recent-activity-dot {
    border-radius: 999px;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
    flex: 0 0 auto;
    height: 0.75rem;
    margin-top: 0.35rem;
    width: 0.75rem;
}

.recent-activity-dot--sales {
    background: #10b981;
    color: #10b981;
}

.recent-activity-dot--goods {
    background: #f59e0b;
    color: #f59e0b;
}

.recent-activity-dot--receive {
    background: #0ea5e9;
    color: #0ea5e9;
}

.recent-activity-dot--payment {
    background: #ef4444;
    color: #ef4444;
}

.recent-activity-dot--default {
    background: #64748b;
    color: #64748b;
}

.recent-activity-content {
    min-width: 0;
    width: 100%;
}

.recent-activity-title-row {
    align-items: baseline;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
}

.recent-activity-title-row strong {
    color: var(--app-text);
    font-size: 0.85rem;
    font-weight: 900;
    min-width: 0;
}

.recent-activity-title-row span {
    color: var(--app-muted);
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 800;
}

.recent-activity-description {
    color: var(--app-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.35rem 0.55rem;
    margin-top: 0.28rem;
    min-width: 0;
}

.recent-activity-description span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-activity-description span + span::before {
    content: "•";
    margin-right: 0.55rem;
}

.recent-activity-amount {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 900;
    margin-top: 0.35rem;
}

.dark .recent-activity-amount {
    color: #93c5fd;
}

.recent-activity-pagination {
    margin-top: 1rem;
}

.reminders-panel {
    min-height: 28rem;
}

.reminder-category {
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    overflow: hidden;
}

.reminder-category-button {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 84%, transparent);
    border: 0;
    color: var(--app-text);
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    text-align: left;
    width: 100%;
}

.reminder-category-button:hover {
    background: color-mix(in srgb, #2563eb 7%, var(--app-surface-solid));
}

.reminder-category-icon {
    align-items: center;
    background: #2563eb;
    border-radius: 0.55rem;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.reminder-category-text {
    display: grid;
    flex: 1;
    gap: 0.12rem;
    min-width: 0;
}

.reminder-category-text strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.reminder-category-text small {
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.reminder-count {
    background: #f97316;
    border-radius: 999px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.24rem 0.58rem;
}

.reminder-empty-state {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 1rem;
}

.reminder-table-wrap {
    max-height: 18rem;
    overflow: auto;
}

.reminder-table {
    border-collapse: collapse;
    font-size: 0.72rem;
    min-width: 42rem;
    width: 100%;
}

.reminder-table th {
    background: color-mix(in srgb, #2563eb 9%, var(--app-surface-solid));
    color: var(--app-text);
    font-size: 0.66rem;
    font-weight: 900;
    padding: 0.62rem;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.reminder-table td {
    border-top: 1px solid var(--app-border);
    color: var(--app-text);
    font-weight: 800;
    padding: 0.58rem 0.62rem;
    vertical-align: top;
}

.reminder-table td:nth-child(2) {
    color: var(--app-muted);
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pie-legend-row {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    min-height: 2.25rem;
    padding: 0.42rem 0.65rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.pie-legend-row > span:first-child {
    flex: 0 0 auto;
}

.pie-legend-row > div {
    min-width: 0;
}

.pie-legend-row > div > div:first-child {
    min-width: 0;
}

.pie-legend-row > div > div:last-child {
    flex: 0 0 auto;
    min-width: 4.1rem;
}

.pie-legend-label,
.pie-legend-value {
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
}

.pie-legend-label {
    color: color-mix(in srgb, var(--app-text) 82%, var(--app-muted));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pie-legend-value {
    margin-left: auto;
    white-space: nowrap;
}

.pie-legend-row .mt-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pie-legend-row:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateX(3px);
}

.dashboard-filter-bar {
    overflow: hidden;
}

.filter-panel-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.filter-panel-header h2 {
    color: var(--app-text);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.filter-panel-header p {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0.18rem 0 0;
}

.filter-toggle-button {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 68%, transparent);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: var(--app-text);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.5rem;
    min-height: 2.15rem;
    padding: 0 0.85rem;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-toggle-button:hover {
    background: color-mix(in srgb, #60a5fa 14%, var(--app-surface-solid));
    border-color: color-mix(in srgb, #60a5fa 40%, var(--app-border));
    transform: translateY(-1px);
}

.filter-toggle-chevron {
    border-color: currentColor;
    border-style: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    height: 0.45rem;
    margin-top: -0.16rem;
    transform: rotate(45deg);
    transition: transform 220ms ease;
    width: 0.45rem;
}

.filter-toggle-button[aria-expanded="true"] .filter-toggle-chevron {
    margin-top: 0.18rem;
    transform: rotate(225deg);
}

.filter-panel-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease;
}

.filter-panel-content.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
}

.filter-panel-body {
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
    transition: padding-top 260ms cubic-bezier(.2, .8, .2, 1);
}

.filter-panel-content.is-expanded .filter-panel-body {
    padding-top: 0.75rem;
}

.sales-dashboard-board {
    background:
        radial-gradient(circle at 8% 8%, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 255, 0.62));
    backdrop-filter: blur(20px) saturate(1.25);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    color: var(--app-text);
    padding: 1rem;
}

.dark .sales-dashboard-board {
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 70, 229, 0.35), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 63, 0.94));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.sales-dashboard-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.sales-dashboard-heading h1 {
    color: var(--app-text);
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.sales-dashboard-heading > p {
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
}

.sales-dashboard-kicker {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
}

.dark .sales-dashboard-kicker {
    color: #93c5fd;
}

.sales-dashboard-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0.9rem;
}

.dashboard-metric-tile {
    animation: fade-up 520ms ease both;
    backdrop-filter: blur(18px) saturate(1.25);
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: var(--glass-inner), var(--glass-shadow);
    min-height: 6.15rem;
    overflow: hidden;
    padding: 0.85rem;
    position: relative;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-metric-tile::before {
    animation: glass-card-shine 4.5s ease-in-out infinite;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.42) 48%, transparent 72%);
    content: "";
    inset: -60% auto -60% -45%;
    pointer-events: none;
    position: absolute;
    transform: rotate(12deg);
    width: 38%;
}

.dashboard-metric-tile > * {
    position: relative;
    z-index: 1;
}

.dashboard-metric-tile:hover {
    border-color: color-mix(in srgb, #60a5fa 40%, var(--app-border));
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.44);
    transform: translateY(-3px) rotateX(1.2deg);
}

.metric-badge-stack {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.32rem;
    justify-content: flex-end;
}

.metric-badge-stack span {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    line-height: 1.15;
    white-space: nowrap;
}

.dashboard-metric-tile p {
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0.75rem 0 0.15rem;
    text-transform: uppercase;
}

.dashboard-metric-tile strong {
    color: var(--app-text);
    display: block;
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    font-weight: 800;
    line-height: 1;
}

.sales-dashboard-chart-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 0.82fr) minmax(14rem, 0.68fr);
    min-width: 0;
}

.dashboard-panel {
    backdrop-filter: blur(20px) saturate(1.3);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    box-shadow: var(--glass-inner), var(--glass-shadow);
    min-width: 0;
    overflow: hidden;
    padding: 1rem;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-panel::before {
    animation: panel-glass-glow 6.5s ease-in-out infinite;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(96, 165, 250, 0.20), transparent 28%);
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0.75;
    pointer-events: none;
    position: absolute;
}

.dashboard-panel > * {
    position: relative;
    z-index: 1;
}

.dashboard-panel:hover {
    border-color: color-mix(in srgb, #60a5fa 34%, var(--app-border));
    box-shadow: var(--glass-inner), 0 26px 62px rgba(37, 99, 235, 0.18), 0 14px 28px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.dashboard-panel h2 {
    color: var(--app-text);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.dashboard-panel p {
    color: var(--app-muted);
    font-size: 0.78rem;
    margin: 0.25rem 0 0;
}

.dashboard-panel--main {
    height: 36rem;
    max-height: 36rem;
}

.dashboard-panel--bars {
    display: flex;
    flex-direction: column;
    height: 36rem;
    max-height: 36rem;
}

.product-rank-list {
    display: grid;
    flex: 1 1 auto;
    gap: 0.72rem;
    margin-top: 1.1rem;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    position: relative;
    z-index: 5;
}

.product-rank-list::-webkit-scrollbar {
    width: 0.45rem;
}

.product-rank-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--app-muted) 35%, transparent);
    border-radius: 999px;
}

.product-rank-row {
    appearance: none;
    align-items: center;
    backdrop-filter: blur(14px) saturate(1.18);
    background: color-mix(in srgb, var(--app-surface-solid) 42%, transparent);
    border: 1px solid color-mix(in srgb, var(--app-border) 70%, transparent);
    border-radius: 0.65rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(4.4rem, 0.75fr) minmax(5rem, 1fr) 2.5rem;
    padding: 0.55rem;
    position: relative;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.product-rank-row.is-selected {
    background: color-mix(in srgb, #2563eb 12%, var(--app-surface-solid));
    border-color: color-mix(in srgb, #2563eb 32%, var(--app-border));
    z-index: 30;
}

.product-rank-row span,
.product-rank-row strong {
    color: var(--app-text);
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-rank-row strong {
    color: var(--app-muted);
    text-align: right;
}

.product-rank-track {
    background: color-mix(in srgb, var(--app-muted) 18%, transparent);
    border-radius: 999px;
    height: 0.55rem;
    overflow: hidden;
}

.sales-rank-hint {
    align-items: center;
    background: color-mix(in srgb, #2563eb 15%, var(--app-surface-solid));
    border: 1px solid color-mix(in srgb, #2563eb 18%, var(--app-border));
    border-radius: 0.6rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 0.15rem;
    padding: 0.55rem 0.65rem;
}

.sales-rank-hint div {
    display: grid;
    gap: 0.15rem;
}

.sales-rank-hint span {
    color: var(--app-muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sales-rank-hint strong {
    color: var(--app-text);
    font-size: 0.86rem;
}

.top-products-panel {
    --top-selling-panel-height: calc(18.5rem + (10 * 2.15rem) + 8.5rem);
    display: flex;
    flex-direction: column;
    height: var(--top-selling-panel-height);
    max-height: var(--top-selling-panel-height);
    min-height: var(--top-selling-panel-height);
}

.item-group-spider-panel {
    --top-selling-panel-height: calc(18.5rem + (10 * 2.15rem) + 8.5rem);
    display: flex;
    flex-direction: column;
    height: var(--top-selling-panel-height);
    max-height: var(--top-selling-panel-height);
    min-height: var(--top-selling-panel-height);
}

.top-selling-grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.top-selling-grid > .dashboard-panel {
    min-width: 0;
}

@media (min-width: 1024px) {
    .top-selling-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    }
}

.item-group-spider-wrap {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.35rem;
    scrollbar-color: color-mix(in srgb, var(--app-muted) 40%, transparent) transparent;
    scrollbar-width: thin;
}

.item-group-spider-wrap::-webkit-scrollbar {
    height: 0.45rem;
}

.item-group-spider-wrap::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--app-muted) 36%, transparent);
    border-radius: 999px;
}

.spider-chart-shell {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 44%),
        color-mix(in srgb, var(--app-surface-solid) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--app-border) 76%, transparent);
    border-radius: 0.85rem;
    display: flex;
    justify-content: center;
    min-width: 28rem;
    min-height: 18.5rem;
    overflow: hidden;
    padding: 0.75rem;
}

.spider-chart-svg {
    display: block;
    height: min(20rem, 72vw);
    max-height: 21rem;
    max-width: 100%;
    overflow: visible;
    width: min(22rem, 100%);
}

.spider-grid {
    fill: none;
    stroke: color-mix(in srgb, var(--app-muted) 24%, transparent);
    stroke-dasharray: 5 7;
    stroke-width: 1;
}

.spider-axis {
    stroke: color-mix(in srgb, var(--app-muted) 18%, transparent);
    stroke-width: 1;
}

.spider-area {
    fill: rgba(37, 99, 235, 0.18);
    stroke: none;
}

.spider-line {
    fill: none;
    stroke: #2563eb;
    stroke-linejoin: round;
    stroke-width: 3;
    filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.22));
}

.spider-point {
    fill: #16a34a;
    stroke: var(--app-surface-solid);
    stroke-width: 2.5;
}

.spider-label {
    fill: var(--app-muted);
    font-size: 10px;
    font-weight: 900;
    text-anchor: middle;
}

.item-group-legend {
    display: grid;
    gap: 0.45rem;
    min-width: 28rem;
    overflow: visible;
    padding-right: 0.2rem;
}

.item-group-legend-row {
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 66%, transparent);
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    min-height: 2.15rem;
    padding: 0.34rem 0;
}

.item-group-legend-row span {
    color: var(--app-text);
    font-size: 0.74rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-group-legend-row strong {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.top-products-list {
    display: grid;
    gap: 0.55rem;
    flex: 1 1 auto;
    margin-top: 1rem;
    min-height: 0;
    overflow: auto;
    padding-bottom: 0.35rem;
    scrollbar-color: color-mix(in srgb, var(--app-muted) 40%, transparent) transparent;
    scrollbar-width: thin;
}

.top-products-list::-webkit-scrollbar {
    height: 0.45rem;
    width: 0.45rem;
}

.top-products-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--app-muted) 36%, transparent);
    border-radius: 999px;
}

.top-product-row {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 70%, transparent);
    display: grid;
    gap: 0.45rem;
    min-width: 36rem;
    padding: 0.45rem 0;
}

.top-product-main {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.top-product-main strong {
    color: var(--app-text);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-product-main span,
.top-product-qty {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.top-product-track {
    background: color-mix(in srgb, var(--app-border) 62%, transparent);
    border-radius: 999px;
    height: 0.5rem;
    overflow: hidden;
}

.top-product-track > div {
    background: linear-gradient(90deg, #22c55e, #2563eb);
    border-radius: inherit;
    height: 100%;
    min-width: 0.4rem;
}

.top-product-qty {
    justify-self: end;
}

.empty-ranking-state {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 82%, transparent);
    border: 1px dashed color-mix(in srgb, var(--app-muted) 35%, transparent);
    border-radius: 0.75rem;
    color: #475569;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    justify-content: center;
    min-height: 8rem;
    padding: 1rem;
    text-align: center;
}

.dark .empty-ranking-state {
    color: #cbd5e1;
}

.product-rank-track > div {
    animation: progress-fill 780ms cubic-bezier(.2, .8, .2, 1) both;
    background: linear-gradient(90deg, #60a5fa, #7c3aed);
    border-radius: inherit;
    height: 100%;
    transform-origin: left;
}

.dashboard-donut-card {
    display: flex;
    flex-direction: column;
    height: 36rem;
    max-height: 36rem;
    min-height: 36rem;
}

.dashboard-donut-card .pie-chart {
    margin: 0.85rem auto 0;
    max-width: 12.4rem;
    width: min(100%, 12.4rem);
}

.sales-report-board {
    background:
        radial-gradient(circle at 8% 8%, rgba(20, 184, 166, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(240, 253, 250, 0.58));
    backdrop-filter: blur(20px) saturate(1.25);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    color: var(--app-text);
    padding: 1rem;
}

.dark .sales-report-board {
    background:
        radial-gradient(circle at 12% 0%, rgba(20, 184, 166, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94));
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.sales-report-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.sales-report-heading h1 {
    color: var(--app-text);
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.sales-report-heading-meta {
    align-items: end;
    color: var(--app-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.25rem;
    text-align: right;
}

.sales-report-heading-meta strong {
    color: var(--app-text);
    font-size: 0.95rem;
}

.sales-report-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0.9rem;
}

.sales-report-table-panel {
    min-height: 32rem;
}

.sales-report-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.sales-report-table-toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.sales-report-search {
    flex: 1 1 18rem;
    max-width: 30rem;
}

.sales-report-page-size {
    flex: 0 0 7rem;
}

.sales-report-search span,
.sales-report-page-size span {
    color: var(--app-muted);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.sales-report-table {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--app-text);
    min-width: 64rem;
    width: 100%;
}

.sales-report-table th,
.sales-report-table td {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    font-size: 0.78rem;
    padding: 0.8rem 0.75rem;
    vertical-align: middle;
}

.sales-report-table th {
    background: color-mix(in srgb, var(--app-surface-solid) 64%, transparent);
    color: var(--app-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.sales-report-sort-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    font: inherit;
    gap: 0.35rem;
    justify-content: flex-start;
    letter-spacing: inherit;
    padding: 0;
    text-align: inherit;
    text-transform: inherit;
    width: 100%;
}

.sales-report-sort-button:hover {
    color: #2563eb;
}

.sales-report-sort-button--right {
    justify-content: flex-end;
}

.sales-report-table td {
    font-weight: 700;
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-report-table tbody tr {
    transition: background-color 150ms ease, transform 150ms ease;
}

.sales-report-table tbody tr:hover {
    background: color-mix(in srgb, #60a5fa 9%, transparent);
}

.sales-report-mud-table {
    background: transparent !important;
    color: var(--app-text) !important;
    min-width: 78rem;
}

.sales-report-mud-table .mud-table-container {
    background: transparent !important;
    overflow: visible;
}

.sales-report-mud-table .mud-table-root,
.sales-report-mud-table table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

.sales-report-mud-table .mud-table-head .mud-table-cell {
    background:
        linear-gradient(180deg, color-mix(in srgb, #f8fafc 92%, transparent), color-mix(in srgb, #eef6ff 86%, transparent));
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    color: var(--app-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.72rem 0.75rem;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.dark .sales-report-mud-table .mud-table-head .mud-table-cell {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.86));
}

.sales-report-mud-table .mud-table-body > tr > .mud-table-cell {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    color: var(--app-text);
    font-size: 0.78rem;
    font-weight: 700;
    max-width: 14rem;
    overflow: hidden;
    padding: 0.5rem 0.75rem;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.sales-report-mud-table .mud-table-body > tr:not(.sales-report-detail-row) > .mud-table-cell {
    height: 2.85rem;
}

.sales-report-data-grid .mud-table-body > tr:has(.sales-report-detail-collapsed) {
    display: none;
}

.sales-report-data-grid .mud-table-body > tr:has(.sales-report-detail-cell) > .mud-table-cell {
    height: auto;
    max-width: none;
    overflow: visible;
    padding: 0;
    white-space: normal;
}

.sales-report-mud-table .mud-table-row:hover {
    background: color-mix(in srgb, #60a5fa 9%, transparent) !important;
}

.sales-report-mud-table .mud-table-body > tr:nth-child(odd):not(.sales-report-detail-row) {
    background: color-mix(in srgb, var(--app-surface-solid) 58%, transparent);
}

.sales-report-mud-table .mud-table-body > tr:nth-child(even):not(.sales-report-detail-row) {
    background: color-mix(in srgb, #f8fafc 72%, transparent);
}

.dark .sales-report-mud-table .mud-table-body > tr:nth-child(odd):not(.sales-report-detail-row) {
    background: rgba(255, 255, 255, 0.035);
}

.dark .sales-report-mud-table .mud-table-body > tr:nth-child(even):not(.sales-report-detail-row) {
    background: rgba(15, 23, 42, 0.22);
}

.sales-report-mud-table .mud-icon-button {
    color: #2563eb;
}

.sales-report-expand-button {
    height: 1.8rem !important;
    padding: 0.15rem !important;
    width: 1.8rem !important;
}

.dark .sales-report-mud-table .mud-icon-button {
    color: #93c5fd;
}

.sales-report-expand-column,
.sales-report-expand-cell {
    width: 3.15rem;
    min-width: 3.15rem;
    text-align: center;
}

.sales-report-number-column,
.sales-report-number-cell {
    width: 3.75rem;
    min-width: 3.75rem;
    text-align: right;
}

.sales-report-invoice-column {
    width: 9rem;
    min-width: 9rem;
}

.sales-report-date-column {
    width: 7rem;
    min-width: 7rem;
}

.sales-report-company-column {
    width: 12rem;
    min-width: 12rem;
}

.sales-report-sales-column {
    width: 13rem;
    min-width: 13rem;
}

.sales-report-money-column {
    width: 10rem;
    min-width: 10rem;
}

.sales-report-status-column {
    width: 7rem;
    min-width: 7rem;
    text-align: center;
}

.sales-report-number-cell,
.sales-report-detail-number-cell {
    color: var(--app-muted) !important;
    font-weight: 900 !important;
}

.sales-report-detail-row:hover {
    background: transparent !important;
}

.sales-report-detail-cell {
    background:
        linear-gradient(135deg, color-mix(in srgb, #eff6ff 70%, transparent), color-mix(in srgb, #ffffff 88%, transparent));
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    display: block;
    max-width: none !important;
    overflow: visible !important;
    padding: 0.85rem 1rem 1rem !important;
    white-space: normal !important;
    width: 100%;
}

.dark .sales-report-detail-cell {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.035));
}

.sales-report-detail-panel {
    border: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--app-surface-solid) 86%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    width: 100%;
}

.sales-report-detail-header {
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 70%, transparent);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
}

.sales-report-detail-header strong {
    color: var(--app-text);
    font-size: 0.82rem;
    font-weight: 900;
}

.sales-report-detail-header span,
.sales-report-detail-state {
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.sales-report-detail-state {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    padding: 0.8rem 0.85rem;
}

.sales-report-detail-state--quiet {
    min-height: 0;
    padding: 0;
}

.sales-report-detail-state--warning {
    color: #b45309;
}

.dark .sales-report-detail-state--warning {
    color: #fde68a;
}

.sales-report-detail-table-wrap {
    overflow-x: auto;
}

.sales-report-detail-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 68rem;
    table-layout: fixed;
    width: 100%;
}

.sales-report-detail-table th,
.sales-report-detail-table td {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 66%, transparent);
    color: var(--app-text);
    font-size: 0.73rem;
    padding: 0.6rem 0.7rem;
    vertical-align: middle;
}

.sales-report-detail-table th {
    background:
        linear-gradient(180deg, color-mix(in srgb, #dbeafe 82%, transparent), color-mix(in srgb, #eff6ff 88%, transparent));
    color: var(--app-muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .sales-report-detail-table th {
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0.055));
}

.sales-report-detail-table td {
    font-weight: 750;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-report-detail-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.92);
}

.sales-report-detail-table tbody tr:nth-child(even) {
    background: rgb(248 250 252);
}

.sales-report-detail-table tbody tr:hover {
    background: color-mix(in srgb, #60a5fa 11%, transparent);
}

.dark .sales-report-detail-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.035);
}

.dark .sales-report-detail-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.3);
}

.sales-report-detail-number-column,
.sales-report-detail-number-cell {
    width: 3.5rem;
    min-width: 3.5rem;
    text-align: right;
}

.sales-report-detail-table th:nth-child(2),
.sales-report-detail-table td:nth-child(2) {
    width: 12rem;
}

.sales-report-detail-table th:nth-child(3),
.sales-report-detail-table td:nth-child(3) {
    width: 21rem;
}

.sales-report-detail-table th:nth-child(4),
.sales-report-detail-table td:nth-child(4) {
    width: 7rem;
}

.sales-report-detail-table th:nth-child(5),
.sales-report-detail-table td:nth-child(5) {
    width: 5rem;
}

.sales-report-detail-table th:nth-child(6),
.sales-report-detail-table td:nth-child(6),
.sales-report-detail-table th:nth-child(7),
.sales-report-detail-table td:nth-child(7),
.sales-report-detail-table th:nth-child(8),
.sales-report-detail-table td:nth-child(8) {
    width: 9rem;
}

.sales-report-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    min-height: 1.45rem;
    padding: 0 0.58rem;
}

.sales-report-status--paid {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.sales-report-status--partial {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.sales-report-status--unpaid {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.sales-report-status--overdue {
    background: rgba(239, 68, 68, 0.13);
    color: #b91c1c;
}

.dark .sales-report-status--paid {
    color: #a7f3d0;
}

.dark .sales-report-status--partial {
    color: #fde68a;
}

.dark .sales-report-status--unpaid {
    color: #bfdbfe;
}

.dark .sales-report-status--overdue {
    color: #fecaca;
}

.sales-report-pagination {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.85rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.sales-report-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.sales-report-page-button {
    background: var(--app-control);
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    color: var(--app-text);
    font-size: 0.75rem;
    font-weight: 800;
    min-height: 2.1rem;
    padding: 0.35rem 0.7rem;
    transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.sales-report-page-button:not(:disabled):hover {
    background: var(--app-hover);
    transform: translateY(-1px);
}

.sales-report-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pie-legend-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .dashboard-donut-card {
        height: auto;
        max-height: none;
        min-height: 36rem;
        overflow: visible;
    }

    .dashboard-donut-card .pie-chart {
        margin-top: 0.55rem;
        max-width: 10.75rem;
        width: min(100%, 10.75rem);
    }

    .dashboard-donut-card .pie-legend-list {
        gap: 0.38rem;
        margin-top: 0.6rem;
    }

    .dashboard-donut-card .pie-legend-row {
        min-height: 2.05rem;
        padding: 0.38rem 0.55rem;
    }

    .dashboard-donut-card .pie-legend-row > div > div:last-child {
        min-width: 3.35rem;
    }

    .dashboard-donut-card .pie-legend-label {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .dashboard-donut-card .pie-legend-row .mt-1 {
        overflow: visible;
        text-overflow: clip;
    }
}

.year-nav-button {
    background: var(--app-control);
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    color: var(--app-text);
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.year-nav-button:not(:disabled):hover {
    background: var(--app-hover);
    transform: translateY(-1px);
}

.year-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.year-pill {
    align-items: center;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.20);
    border-radius: 0.5rem;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
}

.dark .year-pill {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.22);
    color: #bfdbfe;
}

.financial-legend-item {
    align-items: center;
    color: var(--app-muted);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    gap: 0.45rem;
}

.financial-dot {
    border-radius: 999px;
    display: inline-flex;
    height: 0.65rem;
    width: 0.65rem;
}

.financial-dot--sales {
    background: #2563eb;
}

.financial-dot--purchase {
    background: #d97706;
}

.financial-dot--receive {
    background: #16a34a;
}

.financial-dot--payment {
    background: #dc2626;
}

.financial-chart-shell {
    min-height: 22.8rem;
    position: relative;
}

.financial-axis-title {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.financial-chart-frame {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 5.35rem minmax(0, 1fr);
}

.financial-y-axis {
    color: var(--app-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 800;
    height: 15.7rem;
    justify-content: space-between;
    margin-top: 0.9rem;
    text-align: right;
}

.financial-scroll-area {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.financial-plot {
    align-items: stretch;
    animation: chart-glass-breathe 5.2s ease-in-out infinite;
    backdrop-filter: blur(16px) saturate(1.25);
    background-color: transparent;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    display: grid;
    gap: 0.38rem;
    grid-template-columns: repeat(var(--financial-month-count, 12), minmax(0, 1fr));
    min-height: 17.9rem;
    min-width: 0;
    padding: 0.9rem 0.75rem 0.7rem;
    position: relative;
}

.financial-plot::before {
    background-image: linear-gradient(to bottom, rgba(148, 163, 184, 0.25) 1px, transparent 1px);
    background-size: 100% 25%;
    content: "";
    height: 15.7rem;
    inset: 0.9rem 0.75rem auto;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.financial-plot > * {
    position: relative;
    z-index: 1;
}

.financial-month-group {
    display: grid;
    grid-template-rows: 15.7rem 1.45rem;
    min-width: 0;
}

.financial-bars {
    align-items: end;
    display: grid;
    gap: 0.12rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 15.7rem;
}

.financial-bar {
    animation: financial-bar-rise 720ms cubic-bezier(.2, .8, .2, 1) both;
    border-radius: 0.45rem 0.45rem 0.18rem 0.18rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    min-height: 0;
    outline: none;
    position: relative;
    transform-origin: bottom;
    transition: filter 160ms ease, transform 160ms ease;
}

.financial-bar::after {
    animation: bar-glint 2.8s ease-in-out infinite;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 52%);
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0.34;
    pointer-events: none;
    position: absolute;
}

.financial-bar:hover,
.financial-bar:focus {
    filter: saturate(1.16) brightness(1.05);
    transform: translateY(-3px);
    z-index: 4;
}

.financial-bar--sales {
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.financial-bar--purchase {
    background: linear-gradient(180deg, #fdba74, #f97316);
}

.financial-bar--receive {
    background: linear-gradient(180deg, #86efac, #16a34a);
}

.financial-bar--payment {
    background: linear-gradient(180deg, #fca5a5, #dc2626);
}

.financial-tooltip {
    background: var(--app-surface-solid);
    border: 1px solid var(--app-border);
    border-radius: 0.65rem;
    bottom: calc(100% + 0.65rem);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    color: var(--app-text);
    left: 50%;
    min-width: 12rem;
    opacity: 0;
    padding: 0.75rem;
    pointer-events: none;
    position: absolute;
    transform: translateX(-50%) translateY(0.4rem) scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 8;
}

.financial-bar:hover .financial-tooltip,
.financial-bar:focus .financial-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.financial-month-group:first-child .financial-tooltip {
    left: 0;
    transform: translateX(0) translateY(0.4rem) scale(0.96);
}

.financial-month-group:first-child .financial-bar:hover .financial-tooltip,
.financial-month-group:first-child .financial-bar:focus .financial-tooltip {
    transform: translateX(0) translateY(0) scale(1);
}

.financial-month-group:last-child .financial-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(0.4rem) scale(0.96);
}

.financial-month-group:last-child .financial-bar:hover .financial-tooltip,
.financial-month-group:last-child .financial-bar:focus .financial-tooltip {
    transform: translateX(0) translateY(0) scale(1);
}

.financial-month-label {
    align-items: end;
    color: var(--app-muted);
    display: flex;
    font-size: clamp(0.52rem, 0.7vw, 0.72rem);
    font-weight: 800;
    justify-content: center;
    padding-top: 0.5rem;
}

.financial-loading-overlay {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 76%, transparent);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    inset: 2.25rem 0 0 5.35rem;
    justify-content: center;
    position: absolute;
    z-index: 10;
}

.chart-empty-state {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 72%, transparent);
    border: 1px dashed color-mix(in srgb, var(--app-muted) 32%, transparent);
    border-radius: 0.75rem;
    color: var(--app-muted);
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    inset: 2.25rem 0 0 5.35rem;
    justify-content: center;
    padding: 1rem;
    position: absolute;
    text-align: center;
    z-index: 9;
}

.chart-empty-state--line {
    inset: 2.1rem 0 0;
}

.line-chart-panel {
    display: flex;
    flex-direction: column;
    height: 34rem;
    overflow: hidden;
}

.dashboard-trend-grid {
    align-items: stretch;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 2fr) minmax(22rem, 1fr);
}

.line-chart-shell {
    flex: 1 1 auto;
    min-height: 22rem;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.customer-rank-panel {
    display: flex;
    flex-direction: column;
    height: 34rem;
    min-height: 34rem;
}

.customer-rank-table-wrap {
    flex: 1 1 auto;
    margin-top: 1rem;
    min-height: 0;
    overflow: auto;
}

.customer-rank-table {
    border-collapse: separate;
    border-spacing: 0;
    color: var(--app-text);
    min-width: 37rem;
    width: 100%;
}

.customer-rank-table th,
.customer-rank-table td {
    border-bottom: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    font-size: 0.72rem;
    padding: 0.62rem 0.55rem;
    vertical-align: top;
}

.customer-rank-table th {
    background: color-mix(in srgb, var(--app-surface-solid) 64%, transparent);
    color: var(--app-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.customer-rank-table td {
    font-weight: 800;
}

.customer-rank-table td:first-child {
    max-width: 11rem;
}

.customer-rank-table td:first-child strong,
.customer-rank-table td:first-child span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-rank-table td:first-child strong {
    color: var(--app-text);
    font-size: 0.73rem;
}

.customer-rank-table td:first-child span {
    color: var(--app-muted);
    font-size: 0.67rem;
    margin-top: 0.18rem;
}

.customer-rank-table tbody tr {
    transition: background-color 150ms ease;
}

.customer-rank-table tbody tr:hover {
    background: color-mix(in srgb, #60a5fa 9%, transparent);
}

.customer-rank-pagination {
    align-items: center;
    border-top: 1px solid color-mix(in srgb, var(--app-border) 72%, transparent);
    color: var(--app-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.customer-rank-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.customer-rank-page-button {
    background: var(--app-control);
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    color: var(--app-text);
    font-size: 0.7rem;
    font-weight: 800;
    min-height: 1.95rem;
    padding: 0.3rem 0.62rem;
    transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.customer-rank-page-button:not(:disabled):hover {
    background: var(--app-hover);
    transform: translateY(-1px);
}

.customer-rank-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.line-chart-axis-title {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.line-chart-svg {
    animation: chart-glass-breathe 5.4s ease-in-out infinite;
    backdrop-filter: blur(18px) saturate(1.25);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 48%),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    box-shadow: var(--glass-inner), var(--glass-shadow);
    display: block;
    min-height: 21rem;
    min-width: 48rem;
    overflow: visible;
    width: 100%;
}

.line-chart-grid-line {
    stroke: color-mix(in srgb, var(--app-muted) 24%, transparent);
    stroke-dasharray: 6 9;
    stroke-width: 1;
}

.line-chart-y-label-svg,
.line-chart-month-label-svg {
    color: var(--app-muted);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.line-chart-y-label-svg {
    text-align: right;
}

.line-chart-month-label-svg {
    text-align: center;
}

.line-chart-line {
    animation: line-draw 1.15s cubic-bezier(.2, .8, .2, 1) both;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.line-chart-line--sales {
    filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.22));
    stroke: #2563eb;
}

.line-chart-line--receipt {
    animation-delay: 140ms;
    filter: drop-shadow(0 8px 12px rgba(22, 163, 74, 0.22));
    stroke: #16a34a;
}

.line-chart-line--purchase {
    filter: drop-shadow(0 8px 12px rgba(217, 119, 6, 0.22));
    stroke: #d97706;
}

.line-chart-line--payment {
    animation-delay: 140ms;
    filter: drop-shadow(0 8px 12px rgba(220, 38, 38, 0.22));
    stroke: #dc2626;
}

.line-chart-point {
    animation: point-pop 520ms cubic-bezier(.2, .8, .2, 1) both;
    cursor: pointer;
    stroke: var(--app-surface-solid);
    stroke-width: 3;
    transition: filter 160ms ease, r 160ms ease, transform 160ms ease;
}

.line-chart-point:hover {
    filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.22));
    r: 8;
}

.line-chart-point--sales {
    fill: #2563eb;
}

.line-chart-point--receipt {
    fill: #16a34a;
}

.line-chart-point--purchase {
    fill: #d97706;
}

.line-chart-point--payment {
    fill: #dc2626;
}

.line-chart-loading-overlay {
    align-items: center;
    background: color-mix(in srgb, var(--app-surface-solid) 76%, transparent);
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    inset: 1.8rem 0 0;
    justify-content: center;
    position: absolute;
    z-index: 10;
}

.province-sales-map-panel {
    --province-accent: #2563eb;
    --province-accent-warm: #f97316;
    --province-bar-track: rgba(37, 99, 235, 0.1);
    --province-border: rgba(37, 99, 235, 0.16);
    --province-muted: #64748b;
    --province-panel: linear-gradient(135deg, #ffffff 0%, #f3f8ff 52%, #eef6ff 100%);
    --province-ring-center: #ffffff;
    --province-ring-rest: rgba(37, 99, 235, 0.14);
    --province-text: #0f172a;
    background: var(--province-panel) !important;
    border-color: var(--province-border) !important;
    color: var(--province-text);
    overflow: hidden;
}

:where(.dark, [data-theme="dark"]) .province-sales-map-panel {
    --province-accent: #69d8ff;
    --province-accent-warm: #ffb26b;
    --province-bar-track: rgba(255, 255, 255, 0.12);
    --province-border: rgba(129, 164, 255, 0.24);
    --province-muted: rgba(255, 255, 255, 0.72);
    --province-panel: linear-gradient(135deg, #172757 0%, #24356d 48%, #1d285f 100%);
    --province-ring-center: #253974;
    --province-ring-rest: rgba(102, 125, 213, 0.42);
    --province-text: #eef5ff;
}

.province-map-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.province-map-kicker {
    color: var(--province-accent-warm) !important;
    font-size: 0.68rem !important;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.province-map-header h2 {
    color: var(--province-text) !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

.province-map-header span {
    color: var(--province-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.province-map-flag {
    border: 1px solid var(--province-border);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
    display: grid;
    height: 2.1rem;
    width: 4.4rem;
}

.province-map-flag span:first-child {
    background: #ef4444;
}

.province-map-flag span:last-child {
    background: #ffffff;
}

.province-map-infographic {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: minmax(8rem, 0.22fr) minmax(0, 1fr);
    min-height: 17rem;
    position: relative;
}

.province-map-bars {
    align-self: stretch;
    background: color-mix(in srgb, var(--province-text) 4%, transparent);
    border: 1px solid var(--province-border);
    border-radius: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 14rem;
    padding: 0.85rem;
}

.province-map-legend-title {
    align-items: center;
    color: var(--province-text);
    display: flex;
    font-size: 0.7rem;
    font-weight: 900;
    gap: 0.45rem;
    line-height: 1.25;
}

.province-map-legend-title span {
    background: var(--province-accent-warm);
    border-radius: 999px;
    height: 0.48rem;
    flex: 0 0 auto;
    width: 0.48rem;
}

.province-map-legend-title strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.province-map-legend-title small {
    color: var(--province-muted);
    display: block;
    font-size: 0.56rem;
    font-weight: 800;
    margin-top: 0.15rem;
}

.province-map-bar-chart {
    display: grid;
    flex: 1;
    gap: 0.6rem;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    grid-template-rows: 1rem 9.4rem 1.25rem;
    min-height: 11.9rem;
}

.province-map-bar-axis {
    border-right: 1px solid color-mix(in srgb, var(--province-text) 24%, transparent);
    color: var(--province-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.55rem;
    font-weight: 800;
    grid-column: 1;
    grid-row: 2;
    justify-content: space-between;
    padding-right: 0.45rem;
    text-align: right;
}

.province-map-bar-list {
    align-items: stretch;
    display: grid;
    gap: 0.65rem;
    grid-column: 2;
    grid-row: 1 / 4;
    grid-template-columns: repeat(4, minmax(1.7rem, 1fr));
}

.province-map-bar-item {
    align-items: center;
    display: grid;
    gap: 0.35rem;
    grid-template-rows: 1rem 9.4rem 1.25rem;
    justify-items: center;
    min-width: 0;
}

.province-map-bar-value {
    align-self: end;
    color: var(--province-text);
    font-size: 0.56rem;
    font-weight: 900;
    grid-row: 1;
    line-height: 1;
    max-width: 3.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.province-map-bar-track {
    align-items: end;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--province-text) 10%, transparent) 1px, transparent 1px) 0 0 / 100% 25%,
        var(--province-bar-track);
    border: 1px solid color-mix(in srgb, var(--province-text) 10%, transparent);
    border-radius: 999px;
    display: flex;
    grid-row: 2;
    height: 9.4rem;
    justify-content: center;
    padding: 0.18rem;
    width: 1.8rem;
}

.province-map-bar {
    background: linear-gradient(180deg, #ff9f4a 0%, #f94c9b 52%, #2563eb 100%);
    border-radius: 999px 999px 0.25rem 0.25rem;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
    min-height: 0.7rem;
    width: 100%;
}

.province-map-bar-item span {
    align-self: start;
    color: var(--province-muted);
    font-size: 0.55rem;
    font-weight: 900;
    grid-row: 3;
    max-width: 3.6rem;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.province-map-main {
    border: 1px solid var(--province-border);
    border-radius: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-height: 22rem;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.province-leaflet-map {
    background: #172757;
    height: 100%;
    min-height: 22rem;
    width: 100%;
}

.province-leaflet-map .leaflet-tile {
    filter: saturate(1.08) contrast(1.02);
}

.province-leaflet-map .leaflet-control-attribution,
.province-leaflet-map .leaflet-control-zoom a {
    color: #1e293b;
    font-size: 0.62rem;
}

.province-map-tooltip {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 0.22rem 0.5rem;
    text-transform: uppercase;
}

.province-map-tooltip::before {
    display: none;
}

.province-map-label-marker {
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
    color: #ffffff;
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
    min-width: 6.6rem;
    padding: 0.24rem 0.55rem;
    pointer-events: auto;
    white-space: nowrap;
}

.province-map-label-marker span {
    align-items: center;
    background: #f97316;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.58rem;
    font-weight: 900;
    height: 1.15rem;
    justify-content: center;
    width: 1.15rem;
}

.province-map-label-marker strong {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    max-width: 4.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.province-map-empty-state {
    background: rgba(23, 39, 87, 0.72);
    color: rgba(255, 255, 255, 0.84) !important;
    inset: 0;
    position: absolute;
    z-index: 2;
}

.province-map-loading-overlay {
    align-items: center;
    background: rgba(23, 39, 87, 0.72);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 3;
}

.province-map-rank-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.85rem;
}

.province-map-rank-card {
    align-items: center;
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.province-map-rank-number {
    color: var(--province-text);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.province-map-ring {
    align-items: center;
    background:
        radial-gradient(circle at center, var(--province-ring-center) 0 57%, transparent 58%),
        conic-gradient(#ff4f9a calc(var(--rank-percent) * 1%), var(--province-ring-rest) 0);
    border-radius: 999px;
    box-shadow: inset 0 0 0 0.55rem rgba(93, 119, 205, 0.18);
    display: flex;
    height: 5.75rem;
    justify-content: center;
    width: 5.75rem;
}

.province-map-ring span {
    color: var(--province-text);
    font-size: 1.35rem;
    font-weight: 300;
}

.province-map-rank-card strong {
    color: var(--province-text);
    font-size: 0.75rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
}

.province-map-rank-card p {
    color: var(--province-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 800;
}

@media (max-width: 820px) {
    .province-map-infographic {
        grid-template-columns: 1fr;
    }

    .province-map-bars {
        min-height: 11rem;
    }

    .province-map-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.animate-fade-up {
    animation: fade-up 520ms ease both;
}

.animate-fade-up-delay {
    animation: fade-up 620ms ease 100ms both;
}

.animate-fade-up-delay-2 {
    animation: fade-up 720ms ease 200ms both;
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 7s ease-in-out infinite;
}

@keyframes bar-rise {
    from {
        opacity: 0;
        transform: scaleY(0.12);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes chart-pulse {
    0%, 100% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.28) brightness(1.08);
    }
}

@keyframes glass-tilt {
    from {
        transform: rotateX(0.8deg) rotateY(-2.2deg) translateY(0);
    }
    to {
        transform: rotateX(-1deg) rotateY(2.2deg) translateY(-4px);
    }
}

@keyframes stage-shine {
    0% {
        transform: translateX(0) rotate(16deg);
    }
    58%, 100% {
        transform: translateX(420%) rotate(16deg);
    }
}

@keyframes progress-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes soft-sweep {
    from {
        opacity: 0.75;
        transform: translateX(-2%);
    }
    to {
        opacity: 1;
        transform: translateX(2%);
    }
}

@keyframes skeleton-shimmer {
    from {
        background-position: 120% 0;
    }
    to {
        background-position: -120% 0;
    }
}

@keyframes pie-pop {
    from {
        opacity: 0;
        transform: scale(0.88) rotate(-12deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes financial-bar-rise {
    from {
        opacity: 0;
        transform: scaleY(0.08);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes glass-card-shine {
    0%, 58% {
        opacity: 0;
        transform: translateX(0) rotate(12deg);
    }
    70% {
        opacity: 0.78;
    }
    100% {
        opacity: 0;
        transform: translateX(420%) rotate(12deg);
    }
}

@keyframes chart-glass-breathe {
    0%, 100% {
        filter: saturate(1) brightness(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 20px 52px rgba(15, 23, 42, 0.1);
    }
    50% {
        filter: saturate(1.12) brightness(1.03);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 26px 68px rgba(37, 99, 235, 0.14);
    }
}

@keyframes bar-glint {
    0%, 100% {
        opacity: 0.16;
        transform: translateY(8%);
    }
    50% {
        opacity: 0.48;
        transform: translateY(-8%);
    }
}

@keyframes line-draw {
    from {
        opacity: 0.45;
        stroke-dasharray: 1400;
        stroke-dashoffset: 1400;
    }
    to {
        opacity: 1;
        stroke-dasharray: 1400;
        stroke-dashoffset: 0;
    }
}

@keyframes point-pop {
    from {
        opacity: 0;
        transform: scale(0.62);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes panel-glass-glow {
    0%, 100% {
        opacity: 0.62;
        transform: translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.92;
        transform: translate3d(1.5%, -1.5%, 0);
    }
}

@media (max-width: 640px) {
    .app-topbar-actions {
        gap: 0.45rem !important;
    }

    .app-user-menu-text span,
    .app-user-menu-chevron {
        display: none;
    }

    .app-user-menu-text strong {
        max-width: 5.6rem;
    }

    .app-user-menu-button {
        gap: 0.42rem;
        padding-right: 0.45rem;
    }

    .app-user-menu-dropdown {
        min-width: min(13rem, calc(100vw - 1.5rem));
    }

    .financial-chart-frame {
        grid-template-columns: 3.4rem minmax(0, 1fr);
    }

    .financial-y-axis {
        font-size: 0.66rem;
        height: 18.4rem;
        margin-top: 0.85rem;
    }

    .financial-chart-shell {
        min-height: 25.5rem;
    }

    .financial-scroll-area {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 0.65rem;
    }

    .financial-plot {
        gap: 0.55rem;
        grid-template-columns: repeat(var(--financial-month-count, 12), minmax(4.7rem, 1fr));
        min-height: 20.9rem;
        min-width: max(56rem, calc(var(--financial-month-count, 12) * 4.9rem));
        padding: 0.85rem 0.85rem 0.8rem;
    }

    .financial-plot::before {
        height: 18.4rem;
        inset: 0.85rem 0.85rem auto;
    }

    .financial-month-group {
        grid-template-rows: 18.4rem 1.6rem;
        min-width: 4.7rem;
    }

    .financial-bars {
        gap: 0.18rem;
        height: 18.4rem;
    }

    .financial-bar {
        border-radius: 0.5rem 0.5rem 0.18rem 0.18rem;
        min-width: 0.55rem;
    }

    .financial-month-label {
        font-size: 0.72rem;
    }

    .financial-loading-overlay {
        left: 3.8rem;
    }

    .line-chart-panel {
        min-height: 32rem;
    }

    .line-chart-shell {
        min-height: 25.5rem;
        overflow-x: hidden;
        overflow-y: visible;
        padding-bottom: 0;
    }

    .line-chart-svg {
        height: 25rem;
        min-height: 25rem;
        min-width: 0;
        width: 100%;
    }

    .line-chart-y-label-svg,
    .line-chart-month-label-svg {
        font-size: 23px;
    }

    .line-chart-line {
        stroke-width: 6;
    }

    .line-chart-point {
        stroke-width: 4;
    }

    .line-chart-loading-overlay,
    .chart-empty-state--line {
        min-width: 0;
    }
}

@media (max-width: 1180px) {
    .sales-dashboard-chart-grid {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr);
    }

    .dashboard-panel--main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .sales-dashboard-heading {
        align-items: start;
        flex-direction: column;
    }

    .sales-dashboard-metrics,
    .sales-dashboard-chart-grid,
    .dashboard-trend-grid,
    .sales-report-metrics {
        grid-template-columns: 1fr;
    }

    .sales-report-heading {
        align-items: start;
        flex-direction: column;
    }

    .sales-report-heading-meta {
        align-items: start;
        text-align: left;
    }

    .dashboard-panel--main,
    .dashboard-panel--bars,
    .item-group-spider-panel,
    .top-products-panel,
    .dashboard-donut-card,
    .line-chart-panel,
    .customer-rank-panel {
        height: auto;
        max-height: none;
        min-height: auto;
    }

    .dashboard-panel--bars {
        height: 36rem;
        max-height: 36rem;
        min-height: 36rem;
    }

    .item-group-spider-panel,
    .top-products-panel {
        height: var(--top-selling-panel-height);
        max-height: var(--top-selling-panel-height);
        min-height: var(--top-selling-panel-height);
    }

    .activity-board {
        grid-template-columns: 1fr;
    }

    .activity-column + .activity-column {
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--app-border) 78%, transparent);
    }
}

@media (max-width: 640px) {
    .sales-dashboard-board,
    .sales-report-board {
        padding: 0.75rem;
    }

    .sales-dashboard-metrics,
    .sales-report-metrics {
        gap: 0.6rem;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
