* {
    box-sizing: border-box;
}

:root {
    --bg: #f1f7ef;
    --surface: rgba(250, 255, 250, 0.9);
    --surface-strong: #fbfff9;
    --surface-dark: #e4f1e7;
    --text: #0b2f1f;
    --muted: #5f7467;
    --line: rgba(29, 43, 32, 0.08);
    --line-strong: rgba(29, 43, 32, 0.12);
    --shadow: 0 18px 42px rgba(29, 43, 32, 0.07);
    --accent: #08713f;
    --accent-2: #0b5a35;
    --accent-3: #19c95d;
    --accent-4: #4af07a;
    --danger: #b7493a;
    --brand-green: #08713f;
    --brand-green-2: #19d85b;
    --brand-gold: #4af07a;
    --brand-orange: #0b5a35;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 12%, rgba(74, 240, 122, 0.18), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(8, 113, 63, 0.16), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(25, 216, 91, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfff9 0%, #f1f7ef 48%, #e6f1e7 100%);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 20%, rgba(223, 182, 80, 0.22), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(54, 166, 106, 0.2), transparent 20%),
        linear-gradient(180deg, rgba(252, 249, 243, 0.98), rgba(242, 236, 227, 0.98));
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-inner {
    position: relative;
    width: min(260px, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.page-loader-core {
    position: relative;
    z-index: 2;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 249, 0.95));
    box-shadow:
        0 24px 50px rgba(33, 132, 85, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-loader-core img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.page-loader-orbit {
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    border: 2px solid transparent;
}

.page-loader-orbit::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    transform: translateX(-50%);
}

.page-loader-orbit-one {
    border-top-color: rgba(33, 132, 85, 0.75);
    border-right-color: rgba(54, 166, 106, 0.4);
    animation: loader-spin 1.4s linear infinite;
}

.page-loader-orbit-one::before {
    background: linear-gradient(135deg, #1ea966, #6ad084);
    box-shadow: 0 0 0 6px rgba(54, 166, 106, 0.12);
}

.page-loader-orbit-two {
    inset: 34px;
    border-bottom-color: rgba(210, 110, 43, 0.78);
    border-left-color: rgba(223, 182, 80, 0.48);
    animation: loader-spin-reverse 1.9s linear infinite;
}

.page-loader-orbit-two::before {
    background: linear-gradient(135deg, #d26e2b, #f0bc52);
    box-shadow: 0 0 0 6px rgba(210, 110, 43, 0.12);
}

.page-loader-dots {
    position: absolute;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.page-loader-dots span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #218455, #dfb650);
    animation: loader-bounce 1.2s ease-in-out infinite;
}

.page-loader-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.page-loader-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

.page-loader p {
    position: absolute;
    bottom: -4px;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #28513f;
}

@keyframes loader-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes loader-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.92);
        opacity: 0.55;
    }

    40% {
        transform: translateY(-8px) scale(1);
        opacity: 1;
    }
}

a {
    color: inherit;
}

.auth-body,
.dashboard-body {
    min-height: 100vh;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    padding: 28px 0;
}

.auth-body {
    height: 100vh;
    overflow: hidden;
    background: #f7fcf6;
}

.auth-body::before,
.auth-body::after {
    display: none;
}

.auth-line-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, #dbeee2 0 1px, transparent 1px 96px),
        repeating-linear-gradient(0deg, #dbeee2 0 1px, transparent 1px 96px);
}

.auth-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bubbles .bubble {
    position: absolute;
    display: block;
    border-radius: 50%;
    box-shadow: none;
}

.auth-bubbles .bubble-sm {
    width: 24px;
    height: 24px;
}

.auth-bubbles .bubble-md {
    width: 54px;
    height: 54px;
}

.auth-bubbles .bubble-lg {
    width: 140px;
    height: 140px;
}

.auth-bubbles .bubble-xl {
    width: 190px;
    height: 190px;
}

.auth-bubbles .bubble-xxl {
    width: 250px;
    height: 250px;
}

.auth-bubbles .bubble-giant {
    width: 330px;
    height: 330px;
}

.auth-bubbles .bubble-green {
    background: #19d85b;
}

.auth-bubbles .bubble-green-soft {
    background: #d8fce6;
}

.auth-bubbles .bubble-gold {
    background: #f2bd44;
}

.auth-bubbles .bubble-blue {
    background: #48a6ff;
}

.auth-bubbles .bubble-blue-soft {
    background: #d8ecff;
}

.auth-bubbles .bubble-pink {
    background: #ff82a4;
}

.auth-bubbles .bubble-purple {
    background: #845cf6;
}

.auth-bubbles .bubble-a {
    left: -62px;
    top: 34px;
}

.auth-bubbles .bubble-b {
    right: -76px;
    top: 18px;
}

.auth-bubbles .bubble-c {
    right: -46px;
    bottom: 42px;
}

.auth-bubbles .bubble-d {
    left: -34px;
    bottom: 70px;
}

.auth-bubbles .bubble-e {
    left: 42%;
    bottom: -78px;
}

.auth-bubbles .bubble-f {
    left: 26%;
    top: 32%;
}

.auth-bubbles .bubble-g {
    right: 30%;
    top: 42%;
}

.auth-bubbles .bubble-h {
    left: 34%;
    bottom: 27%;
}

.auth-bubbles .bubble-i {
    right: 24%;
    bottom: 30%;
}

.auth-bubbles .bubble-j {
    right: 16%;
    top: 34%;
}

.auth-bubbles .bubble-k {
    left: 58%;
    bottom: 22%;
}

.auth-bubbles .bubble-l {
    right: 7%;
    bottom: 14%;
}

.auth-bubbles .bubble-m {
    left: -128px;
    bottom: -142px;
}

@keyframes auth-bg-breathe {
    0%,
    100% {
        filter: blur(0) saturate(1.05);
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        filter: blur(0) saturate(1.08);
        transform: translate3d(0, -8px, 0) scale(1.01);
    }
}

@keyframes auth-overlay-drift {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.86;
    }
}

.auth-hero,
.auth-card,
.sidebar,
.hero-banner,
.panel,
.stat-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: fit-content;
    position: relative;
    z-index: 1;
}

.auth-brand img {
    display: block;
    width: 94px;
    height: auto;
}

.auth-brand .eyebrow {
    margin-bottom: 4px;
    color: #b7793e;
}

.auth-brand strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #183524;
}

.auth-brand-centered {
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    justify-content: center;
    text-align: center;
    margin: 0 auto 14px;
}

.auth-brand-centered img {
    margin: 0;
}

.hero-copy {
    display: none;
}

.hero-points {
    display: none;
}

.hero-points div,
.banner-chip,
.mini-card,
.profile-card {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.58);
    border-radius: 20px;
    padding: 18px;
}

.hero-points strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.75rem;
    color: #163828;
}

.hero-points span {
    display: block;
    font-size: 0.83rem;
    line-height: 1.45;
}

.hero-points span,
.banner-chip span,
.mini-card span,
.mini-card small,
.profile-card span,
.panel-head p,
.card-head p {
    color: var(--muted);
}

.auth-card {
    position: relative;
    overflow: visible;
    min-height: 620px;
    padding: 32px 28px;
    border-radius: 42px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-illustrated-card {
    display: grid;
    place-items: center;
}

.auth-sheet {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    margin: 0 auto;
    padding: 34px 30px 26px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(237, 239, 248, 0.96), rgba(225, 228, 240, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 24px rgba(94, 98, 118, 0.12),
        0 34px 55px rgba(108, 112, 131, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    overflow: visible;
}

.auth-sheet::before {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(100% + 22px);
    width: 340px;
    height: calc(100% + 110px);
    background: linear-gradient(135deg, rgba(111, 116, 141, 0.16), rgba(111, 116, 141, 0.02));
    clip-path: polygon(0 0, 100% 64%, 100% 100%, 0 36%);
    z-index: -2;
    pointer-events: none;
}

.auth-sheet::after {
    content: "";
    position: absolute;
    top: 0;
    right: -22px;
    width: 22px;
    height: 100%;
    background: linear-gradient(180deg, rgba(211, 214, 227, 0.98), rgba(187, 190, 205, 0.98));
    box-shadow: 8px 0 14px rgba(96, 99, 118, 0.08);
    pointer-events: none;
    z-index: -1;
}

.auth-sheet > * {
    position: relative;
    z-index: 1;
}

.auth-sheet-left-plane {
    position: absolute;
    top: 0;
    left: -22px;
    width: 22px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 245, 250, 0.94));
    box-shadow: inset -1px 0 0 rgba(190, 193, 210, 0.44);
    pointer-events: none;
    z-index: -1;
}

.auth-avatar-badge {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #a939ff, #7618cc);
    box-shadow:
        0 14px 26px rgba(121, 31, 196, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.24);
    display: grid;
    place-items: center;
}

.auth-avatar-head {
    position: absolute;
    top: 24px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb11c, #ff9416);
}

.auth-avatar-body {
    position: absolute;
    top: 54px;
    width: 54px;
    height: 32px;
    border-radius: 18px 18px 12px 12px;
    background: linear-gradient(180deg, #ff9b1a, #ff7a1a);
}

.card-head .eyebrow {
    display: none;
}

.auth-login-kicker {
    margin: 0 0 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.68rem;
    font-weight: 800;
    color: #b98349;
}

.auth-login-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-align: center;
    color: #454852;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.auth-login-subtitle {
    margin: 12px auto 0;
    max-width: 28ch;
    text-align: center;
    font-size: 0.96rem;
    line-height: 1.6;
    color: #5d705f;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.auth-form label,
.mini-meta {
    display: grid;
    gap: 8px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, rgba(255, 243, 214, 0.4), rgba(255, 232, 178, 0.18));
    color: #8d6432;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-form span {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #55695a;
}

.auth-form input {
    width: 100%;
    padding: 17px 18px 17px 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.42);
    color: #3f434c;
    font-size: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 12px 22px rgba(93, 96, 117, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-form input::placeholder {
    color: rgba(89, 104, 92, 0.72);
}

.field select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fffdfa;
    color: var(--text);
    font-size: 1rem;
    appearance: none;
}

.auth-form input:focus {
    outline: none;
    border-color: rgba(241, 207, 145, 0.78);
    box-shadow: 0 0 0 4px rgba(255, 231, 173, 0.22), 0 12px 22px rgba(109, 84, 44, 0.14);
    transform: translateY(-1px);
}

.auth-input-wrap:focus-within .auth-input-icon {
    background: linear-gradient(180deg, rgba(255, 243, 214, 0.58), rgba(255, 232, 178, 0.26));
    color: #735020;
}

.auth-form button,
.logout-link,
.sidebar-nav a {
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-form button,
.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    min-height: 56px;
    padding: 15px 18px;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, #3f8d50, #2f7240);
    box-shadow: 0 16px 24px rgba(57, 116, 70, 0.2);
    margin-top: 6px;
    border-radius: 0;
}

.auth-form button:hover,
.logout-link:hover,
.sidebar-nav a:hover {
    transform: translateY(-2px);
}

.auth-form-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    color: #667868;
}

.panda-login-shell {
    width: min(560px, calc(100% - 28px));
}

.panda-login-card {
    min-height: 720px;
    padding: 20px 0;
    transform: translateY(-18px);
    perspective: 1200px;
}

.panda-login-stage {
    --panda-eye-x: 0px;
    --panda-eye-y: 0px;
    --panda-head-x: 0px;
    --panda-head-y: 0px;
    --panda-head-r: 0deg;
    width: min(410px, 100%);
    margin-top: 130px;
    padding: 62px 32px 34px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 249, 0.96));
    border: 1px solid #19d85b;
    box-shadow:
        0 0 0 1px #d8fce6,
        0 22px 48px rgba(0, 0, 0, 0.18),
        0 58px 118px rgba(0, 0, 0, 0.14),
        0 22px 46px rgba(31, 64, 43, 0.16),
        0 48px 90px rgba(20, 34, 27, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    transform: translateY(-4px);
    animation: login-stage-enter 0.72s cubic-bezier(0.16, 0.84, 0.24, 1) both, login-stage-float 6.4s ease-in-out 0.9s infinite;
}

@keyframes login-stage-enter {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(-4px) scale(1);
    }
}

@keyframes login-stage-float {
    0%,
    100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.panda-login-stage::before,
.panda-login-stage::after,
.panda-login-stage .auth-sheet-left-plane {
    display: none;
}

.panda-login-stage .auth-brand {
    margin-bottom: 12px;
    animation: login-content-in 0.56s ease both;
}

.panda-login-stage .auth-brand img {
    width: 76px;
}

.panda-login-stage .auth-login-title {
    color: #183524;
    font-size: 1.35rem;
}

.panda-login-stage .auth-form {
    margin-top: 18px;
    gap: 15px;
    animation: login-content-in 0.62s ease 0.12s both;
}

.panda-login-stage .auth-form span {
    color: #284534;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.panda-login-stage .auth-input-icon {
    background: rgba(237, 247, 240, 0.92);
    color: #0f8748;
    box-shadow: none;
}

.auth-input-lock {
    font-size: 0.86rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #718276;
    cursor: pointer;
    transform: translateY(-50%);
    line-height: 1;
}

.password-toggle.is-visible {
    background: rgba(237, 247, 240, 0.92);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 135, 72, 0.12);
}

.password-toggle img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
    opacity: 0.72;
}

.password-toggle .password-eye-closed {
    display: none;
}

.password-toggle.is-visible .password-eye-open {
    display: none;
}

.password-toggle.is-visible .password-eye-closed {
    display: block;
}

.panda-login-stage .auth-form .password-toggle {
    min-height: 28px;
    padding: 0;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    letter-spacing: 0;
    text-transform: none;
    filter: none;
    transition: none;
}

.panda-login-stage .auth-form .password-toggle:hover,
.panda-login-stage .auth-form .password-toggle.is-visible {
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: translateY(-50%);
}

.panda-login-stage .auth-form input {
    padding: 15px 46px 15px 54px;
    border-radius: 12px;
    border: 1px solid rgba(32, 86, 54, 0.13);
    background: #f8fbf7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panda-login-stage .auth-form input:focus {
    border-color: rgba(16, 135, 72, 0.54);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 135, 72, 0.1), 0 14px 28px rgba(25, 75, 46, 0.08);
    transform: translateY(-1px);
}

.panda-login-stage .auth-form button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #08713f 0%, #19b85a 48%, #f2bd44 100%);
    box-shadow:
        0 18px 34px rgba(8, 113, 63, 0.26),
        0 8px 18px rgba(242, 189, 68, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -3px 0 rgba(0, 0, 0, 0.12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-position 0.2s ease;
}

.panda-login-stage .auth-form button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 38px rgba(8, 113, 63, 0.3),
        0 10px 22px rgba(242, 189, 68, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -3px 0 rgba(0, 0, 0, 0.12);
    filter: saturate(1.1);
}

.panda-login-stage .auth-form .password-toggle,
.panda-login-stage .auth-form .password-toggle:hover,
.panda-login-stage .auth-form .password-toggle.is-visible {
    min-height: 28px;
    padding: 0;
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    letter-spacing: 0;
    text-transform: none;
    filter: none;
    transition: none;
    transform: translateY(-50%);
}

.panda-login-stage .auth-form-note {
    margin-top: 14px;
    font-size: 0.78rem;
    animation: login-content-in 0.62s ease 0.22s both;
}

body.login-folding .panda-art {
    animation: login-panda-fold-away 0.42s ease both;
}

body.login-folding .panda-login-stage {
    transform-origin: 50% 100%;
    animation: login-paper-fold-close 0.82s cubic-bezier(.2, .74, .18, 1) both;
}

@keyframes login-panda-fold-away {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(18px) scale(0.86);
    }
}

@keyframes login-paper-fold-close {
    0% {
        opacity: 1;
        transform: translateY(-4px) rotateX(0deg) scale(1);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    34% {
        opacity: 1;
        transform: translateY(2px) rotateX(16deg) scale(0.98);
        clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
    }

    68% {
        opacity: 0.88;
        transform: translateY(18px) rotateX(-58deg) scaleX(0.72) scaleY(0.46);
        clip-path: polygon(11% 0, 89% 0, 62% 100%, 38% 100%);
    }

    100% {
        opacity: 0;
        transform: translateY(36px) rotateX(-86deg) scaleX(0.28) scaleY(0.08);
        clip-path: polygon(42% 0, 58% 0, 51% 100%, 49% 100%);
    }
}

@keyframes login-content-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.panda-art {
    position: absolute;
    top: -146px;
    left: 50%;
    width: 300px;
    height: 205px;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
    animation: panda-soft-bob 4.8s ease-in-out 0.8s infinite;
}

@keyframes panda-soft-bob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.panda-head {
    position: absolute;
    top: 0;
    left: 50%;
    width: 190px;
    height: 166px;
    transform: translateX(calc(-50% + var(--panda-head-x))) translateY(var(--panda-head-y)) rotate(var(--panda-head-r));
    transform-origin: 50% 70%;
    transition: transform 0.14s ease;
}

.panda-ear {
    position: absolute;
    top: 10px;
    width: 56px;
    height: 62px;
    border-radius: 56px 56px 14px 14px;
    background: #203b2b;
    border: 4px solid #173022;
}

.panda-ear-left {
    left: 22px;
    transform: rotate(-38deg);
}

.panda-ear-right {
    right: 22px;
    transform: rotate(38deg);
}

.panda-face {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 154px;
    height: 136px;
    transform: translateX(-50%);
    border-radius: 76px 76px 58px 58px;
    background: #ffffff;
    border: 4px solid #173022;
    box-shadow: 0 18px 34px rgba(25, 54, 37, 0.16);
}

.panda-blush {
    position: absolute;
    top: 78px;
    width: 24px;
    height: 18px;
    border-radius: 50%;
    background: #f7a7ba;
    opacity: 0.8;
}

.panda-blush-left {
    left: 18px;
    transform: rotate(25deg);
}

.panda-blush-right {
    right: 18px;
    transform: rotate(-25deg);
}

.panda-eye {
    position: absolute;
    top: 42px;
    width: 36px;
    height: 42px;
    border-radius: 50%;
    background: #203b2b;
    transition: transform 0.38s ease, height 0.38s ease, top 0.38s ease;
}

.panda-eye-left {
    left: 26px;
    transform: rotate(-18deg);
}

.panda-eye-right {
    right: 26px;
    transform: rotate(18deg);
}

.panda-eye span {
    position: absolute;
    top: 11px;
    left: 11px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(var(--panda-eye-x), var(--panda-eye-y));
    transition: transform 0.12s ease, opacity 0.24s ease;
}

.panda-looking .panda-eye-left span {
    transform: translate(calc(var(--panda-eye-x) + 2px), calc(var(--panda-eye-y) + 4px));
}

.panda-looking .panda-eye-right span {
    transform: translate(calc(var(--panda-eye-x) - 2px), calc(var(--panda-eye-y) + 4px));
}

.panda-covered .panda-eye {
    top: 56px;
    height: 8px;
    transform: rotate(0deg);
}

.panda-covered .panda-eye span {
    opacity: 0;
}

.panda-nose {
    position: absolute;
    top: 82px;
    left: 50%;
    width: 17px;
    height: 17px;
    border-radius: 14px 0 14px 4px;
    background: #203b2b;
    transform: translateX(-50%) rotate(45deg);
}

.panda-nose::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 12px;
    width: 2px;
    height: 13px;
    background: #203b2b;
    transform: rotate(-45deg);
}

.panda-mouth {
    position: absolute;
    top: 98px;
    left: 50%;
    width: 42px;
    height: 24px;
    transform: translateX(-50%);
}

.panda-mouth-line {
    position: absolute;
    top: 3px;
    width: 19px;
    height: 15px;
    border-bottom: 4px solid #203b2b;
    border-radius: 0 0 18px 18px;
    transition: top 0.35s ease, width 0.35s ease, height 0.35s ease, border-radius 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.panda-mouth-left {
    left: 4px;
    transform: rotate(-8deg);
}

.panda-mouth-right {
    right: 4px;
    transform: rotate(8deg);
}

.panda-mouth-tongue {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 13px;
    height: 8px;
    border-radius: 0 0 12px 12px;
    background: #f596a8;
    opacity: 0;
    transform: translateX(-50%) scaleY(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease, top 0.25s ease;
}

.panda-hand {
    position: absolute;
    top: 145px;
    width: 48px;
    height: 58px;
    border-radius: 14px 14px 40px 40px;
    background: #203b2b;
    border: 4px solid #173022;
    transform-origin: top center;
    box-shadow: 0 10px 16px rgba(25, 54, 37, 0.12);
    transition: top 0.42s ease, left 0.42s ease, right 0.42s ease, width 0.42s ease, height 0.42s ease, border-radius 0.42s ease, transform 0.42s ease;
}

.panda-hand-left {
    left: 28px;
    transform: rotate(1deg);
}

.panda-hand-right {
    right: 28px;
    transform: rotate(-1deg);
}

.panda-covered .panda-hand-left {
    top: 64px;
    left: 78px;
    width: 70px;
    height: 84px;
    border-radius: 26px 26px 48px 48px;
    transform: rotate(-26deg);
}

.panda-covered .panda-hand-right {
    top: 64px;
    right: 78px;
    width: 70px;
    height: 84px;
    border-radius: 26px 26px 48px 48px;
    transform: rotate(26deg);
}

.panda-paw {
    position: absolute;
    width: 50px;
    height: 42px;
    border-radius: 34px 34px 18px 18px;
    background: #203b2b;
    border: 4px solid #173022;
}

.panda-paw-left {
    left: 96px;
}

.panda-paw-right {
    right: 96px;
}

.panda-paw::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 17px;
    width: 20px;
    height: 14px;
    border-radius: 14px 14px 8px 8px;
    background: #ffffff;
}

.panda-paw::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 13px 5px #ffffff, -13px 5px #ffffff;
}

.panda-feet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px;
    height: 56px;
    pointer-events: none;
    z-index: 2;
}

.panda-feet .panda-paw {
    top: 0;
    box-shadow: 0 16px 28px rgba(25, 54, 37, 0.16);
}

.panda-good .panda-head {
    filter: drop-shadow(0 8px 14px rgba(16, 135, 72, 0.08));
}

.panda-idle-good .panda-mouth-line,
.panda-good .panda-mouth-line {
    top: 4px;
    height: 14px;
    border-bottom-color: #203b2b;
}

.panda-idle-good .panda-mouth-left,
.panda-good .panda-mouth-left {
    transform: rotate(-8deg);
}

.panda-idle-good .panda-mouth-right,
.panda-good .panda-mouth-right {
    transform: rotate(8deg);
}

.panda-idle-happy .panda-mouth-line,
.panda-happy .panda-mouth-line {
    top: 1px;
    width: 21px;
    height: 19px;
    border-bottom-width: 4px;
    border-radius: 0 0 22px 22px;
}

.panda-idle-happy .panda-mouth-left,
.panda-happy .panda-mouth-left {
    transform: rotate(-14deg);
}

.panda-idle-happy .panda-mouth-right,
.panda-happy .panda-mouth-right {
    transform: rotate(14deg);
}

.panda-idle-happy .panda-mouth-tongue,
.panda-happy .panda-mouth-tongue {
    opacity: 0.95;
    top: 15px;
    transform: translateX(-50%) scaleY(1);
}

.panda-idle-sad .panda-mouth-line,
.panda-sad .panda-mouth-line {
    top: 12px;
    height: 12px;
    border-bottom: none;
    border-top: 4px solid #203b2b;
    border-radius: 18px 18px 0 0;
}

.panda-idle-sad .panda-mouth-left,
.panda-sad .panda-mouth-left {
    transform: rotate(8deg);
}

.panda-idle-sad .panda-mouth-right,
.panda-sad .panda-mouth-right {
    transform: rotate(-8deg);
}

.panda-idle-sad .panda-mouth-tongue,
.panda-sad .panda-mouth-tongue {
    opacity: 0;
}

.panda-happy .panda-head {
    animation: panda-happy-bob 0.64s ease both;
}

.panda-happy .panda-eye {
    height: 32px;
    top: 48px;
}

.panda-happy .panda-eye-left {
    transform: rotate(-28deg) scaleY(0.74);
}

.panda-happy .panda-eye-right {
    transform: rotate(28deg) scaleY(0.74);
}

.panda-happy .panda-blush {
    opacity: 1;
    transform: scale(1.18);
}

.panda-sad .panda-eye {
    top: 50px;
    height: 34px;
}

.panda-sad .panda-eye-left {
    transform: rotate(-8deg);
}

.panda-sad .panda-eye-right {
    transform: rotate(8deg);
}

.panda-sad .panda-blush {
    opacity: 0.55;
}

.panda-shake .panda-head {
    animation: panda-sad-shake 0.52s ease both;
}

@keyframes panda-happy-bob {
    0%, 100% {
        transform: translateX(calc(-50% + var(--panda-head-x))) translateY(var(--panda-head-y)) rotate(var(--panda-head-r));
    }

    35% {
        transform: translateX(calc(-50% + var(--panda-head-x))) translateY(calc(var(--panda-head-y) - 8px)) rotate(calc(var(--panda-head-r) - 3deg));
    }

    68% {
        transform: translateX(calc(-50% + var(--panda-head-x))) translateY(calc(var(--panda-head-y) + 3px)) rotate(calc(var(--panda-head-r) + 3deg));
    }
}

@keyframes panda-sad-shake {
    0%, 100% {
        transform: translateX(calc(-50% + var(--panda-head-x))) translateY(var(--panda-head-y)) rotate(var(--panda-head-r));
    }

    20% {
        transform: translateX(calc(-50% + var(--panda-head-x) - 6px)) translateY(var(--panda-head-y)) rotate(-4deg);
    }

    45% {
        transform: translateX(calc(-50% + var(--panda-head-x) + 6px)) translateY(var(--panda-head-y)) rotate(4deg);
    }

    70% {
        transform: translateX(calc(-50% + var(--panda-head-x) - 3px)) translateY(var(--panda-head-y)) rotate(-2deg);
    }
}


.alert {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.alert.error {
    background: rgba(133, 37, 24, 0.24);
    color: #ffe5df;
}

.alert.success {
    background: rgba(22, 92, 54, 0.26);
    color: #e8fff0;
}

body.auth-body .alert {
    margin-top: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

body.auth-body .alert.error {
    color: #d92d20;
}

body.auth-body .alert.success {
    color: #08713f;
}

.dashboard-layout {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0 28px;
}

.sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: start;
    gap: 16px;
    max-height: calc(100vh - 36px);
    padding: 14px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(223, 182, 80, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 249, 245, 0.97));
    color: #1d2b20;
    overflow: hidden;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    flex: 0 0 auto;
    box-shadow: none;
    background: transparent;
}

.brand-logo-full {
    max-width: 64px;
    margin: 0;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}

.brand-copy span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-copy strong {
    font-size: 0.86rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #204836;
}

.brand-mark {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217, 120, 50, 0.94), rgba(213, 162, 45, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
}

.brand-mark::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #fff9ec;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sidebar h1,
.hero-banner h2,
.panel-head h3,
.metric-block h4 {
    margin: 0;
}

.sidebar .eyebrow {
    color: #c17a1e;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    min-height: 0;
    align-content: start;
    grid-auto-rows: min-content;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar-nav-group {
    display: grid;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar-nav-group.active {
    background: transparent;
}

.sidebar-nav-parent {
    position: relative;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 7px 30px 7px 15px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #24392f;
    text-align: left;
    cursor: pointer;
}

.sidebar-nav-parent::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #5f6f67;
    transition: transform 0.18s ease, color 0.18s ease;
}

.sidebar-nav-parent[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
    color: #1c6e49;
}

.sidebar-nav-group.active .sidebar-nav-parent {
    color: #1c6e49;
    background: rgba(239, 245, 249, 0.72);
}

.sidebar-subnav {
    display: grid;
    gap: 4px;
    padding: 2px 0 4px 18px;
    margin-left: 12px;
    border-left: 2px solid rgba(33, 132, 85, 0.1);
}

.sidebar-subnav a {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    background: transparent;
}

.sidebar-subnav[hidden] {
    display: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 7px 10px 7px 15px;
    text-decoration: none;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #284133;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.sidebar-nav a.active {
    background: rgba(224, 240, 255, 0.9);
    color: #08713f;
}

.sidebar-subnav a.active {
    background: rgba(224, 240, 255, 0.92);
    color: #08713f;
    font-weight: 800;
}

.sidebar-nav a:hover {
    transform: translateY(-1px);
    background: rgba(239, 245, 249, 0.9);
}

.sidebar-nav-parent:hover {
    background: rgba(239, 245, 249, 0.9);
}

.profile-card {
    border-color: rgba(29, 43, 32, 0.08);
    background: rgba(255, 255, 255, 0.68);
}

.profile-label {
    margin: 0 0 8px;
    color: #66756d;
}

.profile-card strong,
.mini-card strong,
.stat-card strong {
    display: block;
}

.dashboard-main {
    min-width: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.app-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(244, 249, 245, 0.96));
}

.app-top-header-copy {
    display: grid;
    gap: 3px;
}

.app-top-header-eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.app-top-header-copy h1 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.app-top-header-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 72ch;
}

.app-top-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(237, 246, 241, 0.96));
    box-shadow: 0 10px 20px rgba(29, 43, 32, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.app-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #244232;
}

.app-user-chip {
    display: grid;
    gap: 1px;
    text-align: right;
}

.app-user-chip.stale-update {
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 232, 229, 0.96), rgba(255, 244, 240, 0.96));
    border: 1px solid rgba(183, 73, 58, 0.18);
    box-shadow: 0 10px 24px rgba(183, 73, 58, 0.08);
}

.app-user-chip span {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text);
}

.app-user-chip.stale-update span {
    color: #8c2f25;
}

.app-user-chip small {
    font-size: 0.71rem;
    color: var(--muted);
}

.app-user-chip.stale-update small {
    color: #b04a3f;
}

.app-sync-status {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-sync-status i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);
}

.app-sync-status.online {
    color: #067a46;
}

.app-sync-status.offline {
    color: #b8322b;
}

.app-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 242, 225, 0.96), rgba(237, 247, 240, 0.96));
    border: 1px solid rgba(29, 43, 32, 0.08);
    color: #214433;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.app-logout-button:hover {
    color: #b36a1d;
}

.premium-main {
    gap: 14px;
}

.premium-surface,
.premium-panel {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(247, 244, 238, 0.92));
    border-radius: 26px;
}

.overview-hero,
.page-hero {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
}

.overview-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    background:
        radial-gradient(circle at top right, rgba(245, 195, 109, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(246, 240, 229, 0.94));
}

.page-hero h2,
.overview-copy h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    max-width: 13ch;
}

.page-hero p:last-child,
.overview-copy p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.hero-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-link {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-2));
    color: white;
}

.hero-link.secondary,
.text-link {
    background: rgba(47, 122, 80, 0.08);
    color: var(--brand-green);
    border: 1px solid rgba(47, 122, 80, 0.12);
}

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

.hero-stat,
.kpi-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(29, 43, 32, 0.08);
}

.hero-stat.spotlight {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(31, 90, 59, 0.96), rgba(47, 122, 80, 0.96));
    color: white;
}

.hero-stat span,
.kpi-card span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-stat.spotlight span,
.hero-stat.spotlight small,
.hero-stat.spotlight strong {
    color: white;
}

.hero-stat strong,
.kpi-card strong {
    font-size: 1.12rem;
    line-height: 1.15;
}

.hero-stat small,
.kpi-card small {
    color: var(--muted);
    font-size: 0.72rem;
}

.overview-kpis,
.premium-grid {
    display: grid;
    gap: 14px;
}

.overview-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
    min-height: 102px;
}

.premium-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-grid.split-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.premium-panel {
    padding: 16px;
}

.mini-trend-list,
.customer-stack,
.stock-stack {
    display: grid;
    gap: 10px;
}

.mini-trend-item,
.customer-row,
.stock-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(29, 43, 32, 0.07);
}

.mini-trend-item strong,
.customer-row strong,
.stock-row strong {
    font-size: 0.82rem;
}

.mini-trend-item small,
.customer-row small,
.stock-row small,
.customer-row span,
.stock-row span {
    color: var(--muted);
    font-size: 0.72rem;
}

.customer-row-meta,
.stock-row-meta {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.dashboard-commerce-shell {
    align-items: start;
}
.commerce-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 16px;
}

.product-card-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.product-mini-card {
    display: grid;
    gap: 10px;
}

.product-thumb {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(85, 217, 193, 0.22), transparent 30%),
        linear-gradient(145deg, #eff3f1, #dfe7e2);
    border: 1px solid rgba(29, 43, 32, 0.08);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    mix-blend-mode: multiply;
}

.product-thumb span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 113, 63, 0.14), rgba(25, 216, 91, 0.16));
    color: #08713f;
    font-size: 1.1rem;
    font-weight: 900;
}

.product-mini-card strong {
    font-size: 0.9rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-mini-card small,
.product-mini-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

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

.focus-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(241, 245, 243, 0.9);
}

.focus-row strong {
    font-size: 0.88rem;
}

.focus-row small {
    color: var(--muted);
    font-size: 0.76rem;
}

.focus-row span {
    font-size: 0.92rem;
    font-weight: 800;
}

.compact-orders-panel .compact-table-light th {
    background: #f5f3ee;
}

.orders-page-shell {
    padding: 18px;
}

.orders-page-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.orders-page-top h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: -0.04em;
}

.orders-meta-chip {
    min-width: 180px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 90, 59, 0.1), rgba(217, 160, 40, 0.1));
    border: 1px solid rgba(31, 90, 59, 0.12);
}

.orders-meta-chip span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.orders-meta-chip strong {
    font-size: 1.05rem;
}

.status-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: #5c6670;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-tab span {
    color: #3974e8;
}

.status-tab.active {
    color: #2f64d8;
    border-bottom-color: #2f64d8;
}

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

.orders-search {
    flex: 1 1 280px;
}

.orders-search input {
    width: 100%;
    min-height: 49px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(29, 43, 32, 0.12);
    background: #fff;
    font-size: 0.82rem;
}

.orders-refresh-toolbar {
    justify-content: space-between;
    align-items: stretch;
}

.orders-refresh-button {
    min-width: 230px;
    box-shadow: 0 14px 24px rgba(8, 113, 63, 0.18);
}

.orders-refresh-action {
    display: grid;
    justify-items: start;
    gap: 7px;
}

.orders-refresh-action small {
    color: #5d6f63;
    font-size: 0.74rem;
    font-weight: 800;
}

.orders-refresh-action small span {
    color: #08713f;
}

.orders-refresh-button:disabled {
    cursor: wait;
    opacity: 0.78;
}

.orders-refresh-progress {
    flex: 1 1 420px;
    min-width: 280px;
    padding: 12px 14px;
    border: 1px solid rgba(8, 113, 63, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 249, 240, 0.88)),
        #ffffff;
    box-shadow:
        0 16px 30px rgba(18, 48, 34, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.orders-refresh-progress-head,
.orders-refresh-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-refresh-progress-head strong {
    color: #0b2f1f;
    font-size: 0.84rem;
}

.orders-refresh-progress-head span {
    color: #08713f;
    font-size: 0.82rem;
    font-weight: 900;
}

.orders-refresh-progress-track {
    height: 10px;
    margin: 10px 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(8, 113, 63, 0.1);
    box-shadow: inset 0 1px 2px rgba(8, 63, 38, 0.1);
}

.orders-refresh-progress-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #08713f, #19d85b 65%, #8df6a8);
    box-shadow: 0 0 16px rgba(25, 216, 91, 0.42);
    transition: width 0.26s ease;
}

.orders-refresh-progress-meta {
    color: #647267;
    font-size: 0.74rem;
    font-weight: 800;
}

.orders-refresh-progress-meta span:last-child {
    text-align: right;
}

.orders-refresh-message {
    margin-bottom: 14px;
    padding: 11px 14px;
    border: 1px solid rgba(8, 113, 63, 0.16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 113, 63, 0.1), rgba(25, 216, 91, 0.08));
    color: #075633;
    font-size: 0.82rem;
    font-weight: 800;
}

.order-table-panel {
    padding: 0;
    overflow: hidden;
}

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

.order-admin-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
}

.order-admin-table th:nth-child(3),
.order-admin-table td:nth-child(3) {
    width: 132px;
    min-width: 132px;
    white-space: nowrap;
    text-align: center;
}

.order-admin-table th:nth-child(7),
.order-admin-table td:nth-child(7) {
    width: 128px;
    min-width: 128px;
}

.order-admin-table th:nth-child(8),
.order-admin-table td:nth-child(8) {
    width: 126px;
    min-width: 126px;
}

.order-admin-table th:nth-child(9),
.order-admin-table td:nth-child(9) {
    width: 112px;
    min-width: 112px;
}

.order-admin-table th:nth-child(n+6),
.order-admin-table td:nth-child(n+6) {
    text-align: center;
}

.order-admin-table td:nth-child(n+6) {
    vertical-align: middle;
}

.order-admin-table td:nth-child(n+6) .row-action-button {
    margin-inline: auto;
}

.order-admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f3f1ee;
    color: #1f2b37;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 12px 12px;
    border-bottom: 1px solid #e3ddd5;
}

.order-admin-table tbody td {
    padding: 12px 12px;
    font-size: 0.82rem;
    border-bottom: 1px solid #ebe6dd;
    border-right: 1px solid #ebe6dd;
    vertical-align: middle;
    background: #fff;
}

.order-admin-table tbody tr:nth-child(even) td {
    background: #f3faf9;
}

.order-admin-table tbody td:first-child,
.order-admin-table thead th:first-child {
    border-left: 1px solid #ebe6dd;
}

.order-admin-table td small {
    color: var(--muted);
    font-size: 0.72rem;
}

.order-table-link {
    display: flex;
    align-items: center;
    width: calc(100% + 24px);
    min-height: calc(100% + 24px);
    margin: -12px;
    padding: 12px;
    color: #167a63;
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 3px;
}

.order-table-link:hover {
    color: #0f5d4b;
    text-decoration: underline;
}

.ship-to-stack {
    display: flex;
    align-items: center;
    min-height: 100%;
    line-height: 1.35;
}

.ship-to-stack small {
    color: #344054;
    font-size: 0.75rem;
    line-height: 1.4;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(241, 245, 249, 0.9);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 900;
}

.method-cash {
    color: #086b4c;
    border-color: rgba(5, 150, 105, 0.28);
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.96), rgba(167, 243, 208, 0.58));
}

.method-card {
    color: #2252b8;
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.58));
}

.method-unknown {
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.24);
    background: rgba(243, 244, 246, 0.9);
}

.row-action-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(38, 180, 148, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(68, 212, 177, 0.18), rgba(47, 122, 80, 0.08));
    color: #1d5f49;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.order-detail-dialog {
    width: min(760px, calc(100vw - 28px));
    padding: 0;
    border: none;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 242, 0.98));
    box-shadow: 0 26px 80px rgba(20, 27, 34, 0.22);
}

.order-detail-dialog::backdrop {
    background: rgba(19, 28, 36, 0.46);
    backdrop-filter: blur(4px);
}

.order-dialog-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 12px;
    border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

.order-dialog-head h3 {
    margin: 8px 0 0;
    font-size: 1.18rem;
}

.dialog-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.order-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 24px 24px;
}

.order-dialog-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.order-dialog-card span {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-dialog-card strong {
    font-size: 0.9rem;
    line-height: 1.55;
}

.order-dialog-card-wide {
    grid-column: span 2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid transparent;
    background: #fff4ea;
}

.status-pending {
    color: #e76820;
    border-color: rgba(231, 104, 32, 0.35);
    background: rgba(231, 104, 32, 0.08);
}

.status-payment-pending {
    color: #b77905;
    border-color: rgba(217, 119, 6, 0.32);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.5));
}

.status-payment-failed {
    color: #b42318;
    border-color: rgba(220, 38, 38, 0.32);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.96), rgba(254, 202, 202, 0.52));
}

.status-processing {
    color: #2674f0;
    border-color: rgba(38, 116, 240, 0.28);
    background: rgba(38, 116, 240, 0.08);
}

.status-delivered,
.status-completed {
    color: #0f8a5f;
    border-color: rgba(15, 138, 95, 0.28);
    background: rgba(15, 138, 95, 0.08);
}

.status-cancel,
.status-returned,
.status-issue {
    color: #b7493a;
    border-color: rgba(183, 73, 58, 0.28);
    background: rgba(183, 73, 58, 0.08);
}

.status-on-hold {
    color: #7b58c6;
    border-color: rgba(123, 88, 198, 0.26);
    background: rgba(123, 88, 198, 0.08);
}

.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    gap: 18px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(248, 244, 232, 0.92));
}

.hero-copy-block p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-banner h2 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-highlight-grid {
    display: grid;
    gap: 12px;
    align-content: stretch;
}

.report-hero .hero-banner h2,
.report-hero h2 {
    max-width: 14ch;
}

.banner-chip {
    display: grid;
    gap: 8px;
    align-content: start;
}

.banner-chip strong {
    font-size: 1.35rem;
}

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

.analytics-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.stat-card,
.panel {
    min-width: 0;
}

.stat-card {
    padding: 22px;
    border-radius: 24px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.stat-card strong {
    margin: 12px 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1;
}

.stat-card small {
    color: var(--muted);
}

.accent-red {
    border-top: 5px solid var(--accent);
}

.accent-gold {
    border-top: 5px solid var(--accent-4);
}

.accent-blue {
    border-top: 5px solid var(--accent-2);
}

.accent-green {
    border-top: 5px solid var(--accent-3);
}

.panel {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 252, 248, 0.94);
}

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

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) auto;
    gap: 14px;
    align-items: end;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.92rem;
    font-weight: 700;
}

.filter-button {
    height: 52px;
    padding: 0 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-2));
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.supplier-report-main {
    gap: 12px;
}

.premium-report-hero {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    background:
        radial-gradient(circle at top right, rgba(245, 195, 109, 0.16), transparent 32%),
        radial-gradient(circle at left bottom, rgba(71, 154, 106, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(241, 248, 243, 0.95));
    color: var(--text);
    border-color: rgba(29, 43, 32, 0.08);
}

.premium-report-hero .eyebrow,
.premium-report-hero p,
.premium-report-hero .context-pill,
.premium-report-hero .banner-chip span {
    color: var(--muted);
}

.report-hero-copy h2 {
    max-width: 13ch;
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.report-context {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.context-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
}

.report-highlight-grid {
    align-content: stretch;
}

.premium-chip {
    min-height: 100px;
    align-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(250, 247, 240, 0.88));
    border-color: rgba(29, 43, 32, 0.08);
}

.premium-chip strong {
    font-size: 1.12rem;
    line-height: 1.15;
}

.premium-filter-panel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 242, 0.92));
}

.filter-panel-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.premium-filter-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.7fr) auto;
    gap: 12px;
}

.premium-field span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.premium-field select {
    min-height: 44px;
    font-size: 0.82rem;
    border-color: rgba(23, 33, 43, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 236, 0.9));
}

.premium-button,
.ghost-button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.ghost-button {
    border: 1px solid rgba(47, 122, 80, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 122, 80, 0.12), rgba(217, 160, 40, 0.1));
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

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

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-stat {
    min-height: 112px;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 247, 0.96));
}

.premium-stat span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.premium-stat strong {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.2;
}

.premium-table-panel {
    padding: 16px;
}

.premium-table-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.report-summary-chips {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.table-summary-chip {
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 122, 80, 0.1), rgba(213, 162, 45, 0.08));
    border: 1px solid rgba(47, 122, 80, 0.12);
}

.table-summary-chip span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table-summary-chip strong {
    font-size: 0.95rem;
}

.print-report-title {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.print-report-title strong {
    color: var(--text);
}

.premium-table-wrap {
    margin-top: 6px;
    border-radius: 22px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    background: rgba(255, 255, 255, 0.62);
}

.compact-table {
    min-width: 720px;
}

.compact-table th,
.compact-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
}

.compact-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f4ef;
    font-size: 0.68rem;
}

.compact-table td:nth-child(1),
.compact-table td:nth-child(3),
.compact-table td:nth-child(4) {
    white-space: nowrap;
}

.compact-table tbody tr:hover {
    background: rgba(47, 122, 80, 0.05);
}

.top-customers-table th:nth-child(5),
.top-customers-table th:nth-child(6),
.top-customers-table td.is-center {
    text-align: center;
}

.top-customers-tabs {
    --top-customer-accent: #08713f;
    --top-customer-accent-soft: #d8fce6;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
}

.top-customers-tabs[data-active-type="online"] {
    --top-customer-accent: #08713f;
    --top-customer-accent-soft: #d8fce6;
}

.top-customers-tabs[data-active-type="trader"] {
    --top-customer-accent: #845cf6;
    --top-customer-accent-soft: #e7dcff;
}

.top-customers-tabs[data-active-type="all"] {
    --top-customer-accent: #f2bd44;
    --top-customer-accent-soft: #fff0bf;
}

.top-customers-tabs .status-tab {
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(23, 52, 40, 0.1);
    border-radius: 16px;
    background: #ffffff;
    color: #183524;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(18, 48, 34, 0.08);
}

.top-customers-tabs .status-tab span {
    margin-left: 6px;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 900;
    opacity: 1;
}

.top-customers-tabs .status-tab:hover {
    border-color: var(--top-customer-accent);
    background: linear-gradient(135deg, #ffffff, var(--top-customer-accent-soft));
    color: #10281c;
    transform: translateY(-2px);
}

.top-customers-tabs .status-tab.active {
    border-color: var(--top-customer-accent);
    background: linear-gradient(135deg, var(--top-customer-accent), var(--top-customer-accent-soft));
    color: #ffffff;
    box-shadow:
        0 18px 36px rgba(18, 48, 34, 0.16),
        0 0 0 4px var(--top-customer-accent-soft);
}

.top-customers-panel {
    position: relative;
    overflow: hidden;
}

.top-customers-panel::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: var(--top-customer-panel-accent);
}

.top-customers-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, var(--top-customer-panel-glow) 0 24%, transparent 58%),
        linear-gradient(180deg, var(--top-customer-panel-soft), transparent 42%);
}

.top-customers-panel > * {
    position: relative;
    z-index: 1;
}

.top-customers-panel-all {
    --top-customer-panel-accent: #f2bd44;
    --top-customer-panel-soft: #fff7d8;
    --top-customer-panel-glow: #fff0bf;
}

.top-customers-panel-online {
    --top-customer-panel-accent: #08713f;
    --top-customer-panel-soft: #e8fff0;
    --top-customer-panel-glow: #d8fce6;
}

.top-customers-panel-trader {
    --top-customer-panel-accent: #845cf6;
    --top-customer-panel-soft: #f1ebff;
    --top-customer-panel-glow: #e7dcff;
}

.commerce-main {
    gap: 18px;
}

.commerce-topbar {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(249, 251, 250, 0.9);
}

.commerce-title-wrap h2 {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1;
}

.commerce-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: white;
    font-size: 0.9rem;
}

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

.commerce-date-chip,
.commerce-icon-chip,
.sort-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(29, 43, 32, 0.08);
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
}

.report-topbar {
    background: rgba(249, 251, 250, 0.92);
}

.report-topbar-summary {
    display: grid;
    gap: 4px;
    justify-items: center;
    text-align: center;
}

.report-topbar-summary span {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-topbar-summary strong {
    font-size: 1rem;
}

.compact-page-hero {
    padding: 14px 18px;
}

.compact-page-hero p {
    margin: 0;
}

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

.health-kpi-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 247, 0.94));
    box-shadow: var(--shadow);
}

.health-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.health-kpi-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 1.55rem;
    line-height: 1;
}

.health-kpi-card small {
    color: var(--muted);
    font-size: 0.78rem;
}

.health-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 248, 0.96));
}

.commerce-icon-chip {
    width: 40px;
    padding: 0;
}

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

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

.dashboard-highlight-card {
    display: grid;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 24px;
    border: 1px solid rgba(83, 126, 189, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.96));
    box-shadow: 0 16px 34px rgba(68, 97, 135, 0.08);
}

.dashboard-highlight-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-highlight-head div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-highlight-icon {
    font-size: 1.25rem;
}

.dashboard-highlight-head strong {
    font-size: 0.98rem;
    color: #2cbea9;
    letter-spacing: -0.02em;
}

.dashboard-highlight-head small {
    color: #6b7a95;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-highlight-list,
.dashboard-highlight-metrics {
    display: grid;
    gap: 8px;
}

.dashboard-highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(91, 118, 161, 0.12);
}

.dashboard-highlight-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dashboard-highlight-row span {
    color: #2f3a52;
    font-size: 0.94rem;
    line-height: 1.45;
}

.dashboard-highlight-name.truncate-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dashboard-highlight-row strong {
    color: #4a5c7d;
    font-size: 0.95rem;
}

.dashboard-highlight-progress {
    display: grid;
    gap: 8px;
}

.dashboard-highlight-progress-wrap {
    position: relative;
    padding-top: 30px;
}

.dashboard-highlight-progress-percent {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #12c7e5, #24e4c6);
    box-shadow: 0 8px 18px rgba(36, 196, 192, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.86);
    z-index: 2;
}

.dashboard-highlight-progress-percent::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
    color: inherit;
    filter: brightness(0.95);
}

.dashboard-highlight-progress-percent-trader {
    background: linear-gradient(135deg, #ff8b24, #ffcc49);
    box-shadow: 0 10px 24px rgba(255, 164, 56, 0.24);
}

.dashboard-highlight-progress p {
    margin: 0;
    color: #6b7a95;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-highlight-progress-bar {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 162, 193, 0.22);
}

.dashboard-highlight-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #31c6b4, #55e0d0);
    background-size: 22px 22px;
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.14) 0,
            rgba(255, 255, 255, 0.14) 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ),
        linear-gradient(135deg, #1ba7ff, #25e6d2);
}

.dashboard-highlight-progress-bar-trader span {
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.16) 0,
            rgba(255, 255, 255, 0.16) 10px,
            rgba(255, 255, 255, 0.04) 10px,
            rgba(255, 255, 255, 0.04) 20px
        ),
        linear-gradient(135deg, #ff7d18, #ffc23f);
}

.dashboard-highlight-metrics {
    grid-template-columns: 1fr;
}

.dashboard-highlight-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(91, 118, 161, 0.12);
}

.dashboard-highlight-metrics div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.dashboard-highlight-metrics span {
    color: #6b7a95;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-highlight-metrics strong {
    color: #2f3a52;
    font-size: 0.95rem;
}

.commerce-stat-card,
.commerce-panel {
    border: 1px solid rgba(29, 43, 32, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.commerce-stat-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.stat-icon.mint { background: rgba(79, 214, 189, 0.16); color: #2a9b88; }
.stat-icon.blue { background: rgba(82, 154, 255, 0.14); color: #3273d4; }
.stat-icon.lime { background: rgba(177, 218, 93, 0.18); color: #679125; }
.stat-icon.sand { background: rgba(217, 160, 40, 0.14); color: #b57a09; }

.commerce-stat-card span {
    font-size: 0.8rem;
    font-weight: 700;
}

.commerce-stat-card small,
.commerce-stat-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.76rem;
}

.commerce-stat-card strong {
    margin-top: 8px;
    font-size: 1.9rem;
    line-height: 1;
}

.commerce-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 16px;
}

.commerce-panel {
    padding: 18px;
}

.panel-head-inline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.analytic-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 16px;
}

.analytic-metrics-row article {
    padding-right: 12px;
    border-right: 1px solid rgba(29, 43, 32, 0.08);
}

.analytic-metrics-row article:last-child {
    border-right: none;
}

.analytic-metrics-row span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
}

.analytic-metrics-row strong {
    display: block;
    margin-top: 8px;
    font-size: 1.45rem;
}

.chart-card {
    position: relative;
    height: 230px;
    padding: 18px 14px 36px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(82, 214, 189, 0.08), rgba(255, 255, 255, 0.92));
    overflow: hidden;
}

.chart-grid-lines {
    position: absolute;
    inset: 0 0 28px;
    background-image:
        linear-gradient(to top, rgba(29, 43, 32, 0.06) 1px, transparent 1px),
        linear-gradient(to right, rgba(29, 43, 32, 0.04) 1px, transparent 1px);
    background-size: 100% 25%, 14.28% 100%;
}

.chart-bars {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.chart-bar-col {
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 8px;
    height: 100%;
}

.chart-bar {
    width: 100%;
    border-radius: 18px 18px 10px 10px;
    background: linear-gradient(180deg, rgba(82, 214, 189, 0.9), rgba(82, 214, 189, 0.24));
    border: 1px solid rgba(82, 214, 189, 0.26);
}

.chart-bar-col span {
    font-size: 0.72rem;
    color: var(--muted);
}

.target-panel {
    display: grid;
    gap: 18px;
}

.target-ring {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    border-radius: 999px;
    background:
        radial-gradient(circle, white 49%, transparent 50%),
        conic-gradient(#55d9c1 0 var(--target-progress, 65%), #d9e3df var(--target-progress, 65%) 100%);
}

.target-ring-inner {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
}

.target-ring-inner strong {
    display: block;
    font-size: 1.75rem;
}

.target-ring-inner span {
    color: var(--muted);
    font-size: 0.8rem;
}

.target-stats {
    display: grid;
    gap: 12px;
}

.target-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.target-stats span {
    color: var(--muted);
    font-size: 0.8rem;
}

.target-stats strong {
    font-size: 1.2rem;
}

.analytics-main {
    gap: 18px;
}

.analytics-page.analytics-page-visitors .analytics-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 169, 0.28), transparent 26%),
        radial-gradient(circle at left bottom, rgba(78, 184, 162, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 249, 247, 0.98));
}

.analytics-page.analytics-page-traffic .analytics-hero {
    background:
        radial-gradient(circle at right 20%, rgba(122, 178, 255, 0.22), transparent 26%),
        radial-gradient(circle at left bottom, rgba(93, 163, 255, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.analytics-page.analytics-page-acquisition .analytics-hero {
    background:
        radial-gradient(circle at top right, rgba(244, 212, 135, 0.24), transparent 28%),
        radial-gradient(circle at left bottom, rgba(255, 173, 102, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 246, 236, 0.98));
}

.analytics-page.analytics-page-content .analytics-hero {
    background:
        radial-gradient(circle at top right, rgba(182, 141, 247, 0.18), transparent 25%),
        radial-gradient(circle at left bottom, rgba(133, 116, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(251, 249, 255, 0.98), rgba(246, 243, 255, 0.98));
}

.analytics-page.analytics-page-audience .analytics-hero {
    background:
        radial-gradient(circle at top right, rgba(130, 214, 184, 0.22), transparent 28%),
        radial-gradient(circle at left bottom, rgba(79, 174, 147, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(247, 253, 251, 0.98), rgba(240, 248, 245, 0.98));
}

.analytics-page.analytics-page-conversions .analytics-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 208, 143, 0.26), transparent 26%),
        radial-gradient(circle at left bottom, rgba(255, 150, 98, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(255, 244, 238, 0.98));
}

.analytics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background:
        radial-gradient(circle at top right, rgba(223, 182, 80, 0.18), transparent 28%),
        radial-gradient(circle at left bottom, rgba(45, 138, 104, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(244, 249, 246, 0.98));
}

.analytics-hero-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    letter-spacing: -0.04em;
}

.analytics-hero-copy p:last-child {
    margin: 12px 0 0;
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.6;
}

.analytics-hero-actions {
    display: grid;
    gap: 14px;
    justify-items: end;
}

.analytics-property-chip {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(29, 43, 32, 0.08);
    text-align: right;
}

.analytics-property-chip span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.analytics-property-chip strong {
    font-size: 1.15rem;
}

.analytics-range-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.analytics-range-chip {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.analytics-range-chip.active {
    background: linear-gradient(135deg, #215f3c, #36a66a);
    color: #fff;
    border-color: transparent;
}

.analytics-error-panel {
    padding: 22px;
    border-color: rgba(183, 73, 58, 0.16);
    background: linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(255, 252, 250, 0.98));
}

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.analytics-kpi-card,
.analytics-mini-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 247, 0.94));
    box-shadow: 0 18px 34px rgba(29, 43, 32, 0.06);
}

.analytics-kpi-card span,
.analytics-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-kpi-card strong,
.analytics-mini-card strong {
    display: block;
    margin: 12px 0 6px;
    font-size: 1.8rem;
    line-height: 1;
}

.analytics-kpi-card small,
.analytics-mini-card small,
.analytics-generated-note {
    color: var(--muted);
    font-size: 0.78rem;
}

.analytics-layout,
.analytics-bottom-grid,
.analytics-data-grid {
    display: grid;
    gap: 16px;
}

.analytics-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.analytics-bottom-grid,
.analytics-data-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.analytics-trend-panel,
.analytics-pages-panel,
.analytics-distribution-panel,
.analytics-side-panel {
    padding: 20px;
}

.analytics-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 260px;
    padding-top: 18px;
}

.analytics-bar-col {
    display: grid;
    gap: 10px;
    align-items: end;
}

.analytics-bar-meta {
    display: grid;
    gap: 2px;
    text-align: center;
}

.analytics-bar-meta strong {
    font-size: 0.8rem;
}

.analytics-bar-meta small,
.analytics-bar-col span {
    color: var(--muted);
    font-size: 0.72rem;
}

.analytics-bar-wrap {
    min-height: 176px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0 6px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(247, 249, 248, 0.72), rgba(238, 244, 240, 0.88));
}

.analytics-bar-fill {
    width: 100%;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, #2e8a5f, #67be81);
    box-shadow: 0 10px 18px rgba(46, 138, 95, 0.18);
}

.analytics-page.analytics-page-traffic .analytics-bar-fill {
    background: linear-gradient(180deg, #4f78ff, #7eb8ff);
    box-shadow: 0 10px 18px rgba(79, 120, 255, 0.18);
}

.analytics-page.analytics-page-acquisition .analytics-bar-fill {
    background: linear-gradient(180deg, #f0a547, #f6d27d);
    box-shadow: 0 10px 18px rgba(240, 165, 71, 0.18);
}

.analytics-page.analytics-page-content .analytics-bar-fill {
    background: linear-gradient(180deg, #7a67df, #b59cff);
    box-shadow: 0 10px 18px rgba(122, 103, 223, 0.18);
}

.analytics-page.analytics-page-conversions .analytics-bar-fill {
    background: linear-gradient(180deg, #ff7d57, #ffb178);
    box-shadow: 0 10px 18px rgba(255, 125, 87, 0.18);
}

.analytics-mini-grid,
.analytics-stack-list,
.analytics-page-list {
    display: grid;
    gap: 12px;
}

.analytics-page-row,
.analytics-stack-row {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(29, 43, 32, 0.08);
}

.analytics-page-row:first-child,
.analytics-stack-row:first-child {
    padding-top: 4px;
}

.analytics-page-row:last-child,
.analytics-stack-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.analytics-page-copy strong,
.analytics-stack-head strong {
    display: block;
    margin-bottom: 4px;
}

.analytics-page-copy span,
.analytics-page-stats span,
.analytics-stack-head span,
.analytics-stack-row small {
    color: var(--muted);
    font-size: 0.8rem;
}

.analytics-page-track,
.analytics-page-stats,
.analytics-stack-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.analytics-page-progress,
.analytics-stack-bar,
.analytics-inline-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(29, 43, 32, 0.08);
}

.analytics-page-progress span,
.analytics-stack-bar span,
.analytics-inline-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7aa3a, #2b7b56);
}

.analytics-inline-bar {
    min-width: 96px;
}

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

.analytics-ring-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 247, 0.96));
    text-align: center;
}

.analytics-ring {
    --ring-fill: 0%;
    width: 128px;
    height: 128px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 53%, transparent 54%),
        conic-gradient(#2d8a68 var(--ring-fill), rgba(45, 138, 104, 0.12) 0);
    display: grid;
    place-items: center;
}

.analytics-ring strong {
    font-size: 1.2rem;
    color: #234534;
}

.analytics-ring-card span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-ring-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.analytics-donut-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 247, 0.96));
}

.analytics-donut-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-donut-head strong {
    font-size: 0.96rem;
}

.analytics-donut-head span {
    color: var(--muted);
    font-size: 0.78rem;
}

.analytics-donut {
    --donut-fill: 0%;
    --donut-color: #4f78ff;
    width: 132px;
    height: 132px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 56%, transparent 57%),
        conic-gradient(var(--donut-color) var(--donut-fill), rgba(29, 43, 32, 0.1) 0);
}

.analytics-donut-list {
    display: grid;
    gap: 10px;
}

.analytics-donut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
}

.analytics-donut-row strong {
    font-size: 0.84rem;
}

.analytics-line-grid {
    display: grid;
    gap: 14px;
}

.analytics-line-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 247, 0.96));
}

.analytics-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.analytics-sparkline {
    width: 100%;
    height: 84px;
}

.analytics-sparkline path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-sparkline path.area {
    stroke: none;
    opacity: 0.16;
}

.analytics-page.analytics-page-content .analytics-sparkline path.line {
    stroke: #7a67df;
}

.analytics-page.analytics-page-conversions .analytics-sparkline path.line {
    stroke: #ff8f5c;
}

.analytics-page.analytics-page-audience .analytics-sparkline path.line {
    stroke: #2d8a68;
}
.all-products-main {
    gap: 14px;
    background: #f6f8f7;
    overflow-x: hidden;
}

.all-products-tabs,
.all-products-filter,
.all-products-table-panel {
    border: 1px solid rgba(20, 34, 28, 0.08);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(20, 34, 28, 0.06);
}

.all-products-select select,
.all-products-select input,
.all-products-search input {
    width: 100%;
    border: 1px solid rgba(34, 49, 42, 0.16);
    border-radius: 10px;
    background: #fff;
    color: #1f2a34;
    font: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.all-products-tabs {
    padding: 0 18px 8px;
}

.all-products-tab-list {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.all-products-tab {
    position: relative;
    padding: 10px 20px 10px 0;
    color: #111;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.all-products-tab + .all-products-tab {
    padding-left: 16px;
}

.all-products-tab + .all-products-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    background: #a6afbc;
    transform: translateY(-50%);
}

.all-products-tab.active {
    color: #2d68f2;
}

.all-products-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 20px;
    bottom: 2px;
    height: 3px;
    border-radius: 99px;
    background: #2d68f2;
}

.all-products-filter {
    padding: 14px 18px;
}

.all-products-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(145px, 0.85fr)) auto auto auto;
    align-items: end;
    gap: 10px;
}

.all-products-search,
.all-products-select {
    display: grid;
    gap: 7px;
}

.all-products-search span,
.all-products-select span {
    color: #6d7b73;
    font-size: 0.62rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.all-products-search input,
.all-products-select select,
.all-products-select input {
    min-height: 42px;
    padding: 0 12px;
    color: #627a95;
    font-size: 0.82rem;
}

.all-products-search input:focus,
.all-products-select select:focus,
.all-products-select input:focus {
    border-color: rgba(45, 104, 242, 0.55);
    box-shadow: 0 0 0 4px rgba(45, 104, 242, 0.1);
}

.all-products-filter-button,
.all-products-reset,
.all-products-pdf-button,
.all-products-stock-button {
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.all-products-filter-button {
    min-height: 42px;
    padding: 0 14px;
    background: #1976f8;
    color: #fff;
    box-shadow: 0 10px 18px rgba(25, 118, 248, 0.22);
    text-transform: uppercase;
}

.all-products-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    background: #edf3f0;
    color: #53645b;
}

.all-products-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: fit-content;
    min-width: 0;
    padding: 0 2px;
    margin: 0;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 10px;
    background: linear-gradient(135deg, #18a85d, #0b7a5b);
    color: #fff;
    box-shadow: 0 7px 13px rgba(15, 118, 110, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    font-size: 0.68rem;
    font-weight: 760;
    text-transform: uppercase;
}

.all-products-pdf-button:hover {
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.all-products-filter-form > .all-products-pdf-button {
    color: #fff !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    justify-self: start;
}

.all-products-filter-button:hover,
.all-products-reset:hover,
.all-products-pdf-button:hover,
.all-products-stock-button:hover {
    transform: translateY(-1px);
}

.all-products-table-panel {
    padding: 0;
    overflow: hidden;
}

#all-products-content {
    display: grid;
    gap: 14px;
}

#all-products-content.is-loading {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.all-products-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.all-products-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #24282d;
}

.all-products-table th,
.all-products-table td {
    padding: 8px 4px;
    border: 1px solid rgba(30, 42, 35, 0.07);
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.all-products-table th {
    background: #ebeeea;
    color: #1e293b;
    font-size: 0.62rem;
    font-weight: 780;
    text-align: center;
    white-space: nowrap;
}

.all-products-table td {
    font-size: 0.7rem;
    font-weight: 400 !important;
}

.all-products-table tbody,
.all-products-table tbody tr,
.all-products-table tbody td,
.all-products-table tbody strong,
.all-products-table tbody span,
.all-products-table tbody button {
    font-weight: 400 !important;
}

.all-products-table tbody tr:nth-child(even) {
    background: #f0f8f7;
}

.all-products-table tbody tr[data-product-href] {
    cursor: pointer;
}

.all-products-table tbody tr[data-product-href]:hover {
    background: #eaf5ef;
}

.all-products-row-muted {
    background: #fff4ef !important;
}

.all-products-row-empty-stock {
    --all-products-line-color: #d9362f;
    --all-products-line-bg: rgba(217, 54, 47, 0.08);
}

.all-products-check {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #cfd6d2;
    border-radius: 3px;
    background: #fff;
}

.all-products-center,
.all-products-date {
    text-align: center;
}

.all-products-id {
    color: #20242a;
    font-weight: 400;
}

.all-products-title {
    color: #20242a;
    font-weight: 400;
    line-height: 1.35;
}

.all-products-title > span {
    display: block;
}

.all-products-line-chart {
    position: relative;
    width: 100%;
    height: 20px;
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    margin-top: 4px;
    padding: 2px 3px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, var(--all-products-line-bg, rgba(25, 118, 248, 0.06)), rgba(56, 182, 106, 0.05));
}

.all-products-line-chart svg {
    position: absolute;
    inset: 2px 3px;
    width: calc(100% - 6px);
    height: calc(100% - 4px);
    overflow: visible;
}

.all-products-line-chart polyline {
    fill: none;
    stroke: var(--all-products-line-color, #1976f8);
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.all-products-line-chart i {
    display: block;
    min-width: 4px;
    min-height: 16px;
    position: relative;
    z-index: 1;
}

.all-products-categories {
    text-align: center;
    line-height: 1.35;
}

.all-products-thumb {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.all-products-thumb-placeholder {
    object-fit: contain;
    padding: 4px;
    border: 1px solid rgba(102, 112, 122, 0.16);
}

.all-products-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef2ed;
    color: #6d7b73;
    font-size: 0.54rem;
    font-weight: 400;
}

.all-products-date strong,
.all-products-date span {
    display: block;
}

.all-products-date strong {
    color: #20242a;
    font-weight: 400;
}

.all-products-date span {
    margin-top: 3px;
    color: #20242a;
    font-size: 0.68rem;
    font-weight: 400;
}

.product-analytics-table {
    border-collapse: separate;
    border-spacing: 0;
    background: #f8fbf7;
}

.product-analytics-table th {
    border-color: rgba(19, 84, 48, 0.12);
    background: linear-gradient(180deg, #e3f4ea 0%, #d9ecf4 100%);
    color: #123325;
    font-size: 0.66rem;
}

.product-analytics-table td {
    border-color: rgba(20, 96, 60, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.product-analytics-table tbody tr:nth-child(even) td {
    background: #f3faf6;
}

.product-analytics-table tbody tr:hover td {
    background: #eaf7f0;
}

.product-analytics-table .all-products-title > span {
    color: #173326;
    font-size: 0.74rem;
    font-weight: 650 !important;
}

.product-analytics-table .product-analytics-image-cell {
    padding: 3px;
}

.product-analytics-table .all-products-thumb {
    width: 100%;
    max-width: 76px;
    height: 54px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8faf8;
    border: 1px solid rgba(23, 117, 70, 0.16);
    box-shadow: 0 8px 18px rgba(15, 55, 35, 0.09);
}

.product-analytics-table .all-products-thumb-placeholder {
    object-fit: contain;
    padding: 6px;
}

.analytics-id-pill,
.analytics-money-pill,
.analytics-status-pill,
.analytics-rack-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 700 !important;
}

.analytics-id-pill {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    color: #20242a;
    font-weight: 500 !important;
}

.analytics-money-pill {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    color: #20242a;
    font-weight: 500 !important;
}

.analytics-status-pill.success {
    background: #e6f7ed;
    border-color: #b7e5c9;
    color: #12753c;
}

.analytics-status-pill.warning {
    background: #fff3d8;
    border-color: #f0cd7a;
    color: #915f00;
}

.analytics-status-pill.danger,
.analytics-status-pill.never {
    background: #ffe8e4;
    border-color: #f4b8ae;
    color: #b42318;
}

.analytics-rack-pill {
    background: #eef8f8;
    border-color: #bfe4e2;
    color: #116466;
}

.analytics-rack-pill.missing {
    background: #ffe8e4;
    border-color: #f4b8ae;
    color: #b42318;
}

.supplier-low-stock-page {
    display: grid;
    gap: 16px;
}

.supplier-low-stock-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.supplier-low-stock-summary span,
.supplier-low-stock-print {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid rgba(33, 132, 85, 0.12);
    border-radius: 999px;
    background: rgba(239, 247, 242, 0.82);
    color: #345445;
    font-size: 0.76rem;
    font-weight: 800;
}

.supplier-low-stock-print {
    border-color: rgba(25, 118, 248, 0.18);
    background: #1976f8;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(25, 118, 248, 0.18);
}

.supplier-low-stock-table th {
    white-space: nowrap;
}

.supplier-low-stock-table .all-products-title {
    min-width: 260px;
}

.supplier-low-stock-table .all-products-title small {
    display: block;
    margin-top: 4px;
    color: #708176;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.supplier-low-stock-thumb {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.analytics-category-text {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #20242a;
    line-height: 1.35;
    font-size: 0.68rem;
}

.all-products-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 68px;
    min-width: 0;
    min-height: 28px;
    padding: 0 6px;
    border: 1px solid rgba(79, 200, 45, 0.58);
    border-radius: 2px;
    background: rgba(246, 255, 240, 0.96);
    color: #2eaa17;
    font-size: 0.64rem;
    font-weight: 500;
}

.all-products-status.inactive {
    border-color: rgba(226, 103, 52, 0.44);
    background: rgba(255, 240, 232, 0.96);
    color: #b84b20;
}

.all-products-stock-button {
    width: 100%;
    max-width: 58px;
    min-height: 28px;
    padding: 0 4px;
    background: #347df4;
    color: #fff;
    box-shadow: 0 8px 14px rgba(52, 125, 244, 0.18);
    white-space: nowrap;
    font-size: 0.64rem;
}

.all-products-empty {
    padding: 34px !important;
    text-align: center;
    color: #758277;
    font-weight: 650;
}

.all-products-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(30, 42, 35, 0.08);
    background: rgba(249, 251, 250, 0.96);
}

.all-products-page-link,
.all-products-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(34, 49, 42, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #26342c;
    font-size: 0.74rem;
    font-weight: 650;
    text-decoration: none;
}

.all-products-page-link.active {
    border-color: #1976f8;
    background: #1976f8;
    color: #fff;
    box-shadow: 0 10px 18px rgba(25, 118, 248, 0.18);
}

.all-products-page-link.disabled {
    pointer-events: none;
    opacity: 0.45;
}

.all-products-page-dots {
    border-color: transparent;
    background: transparent;
    padding: 0 4px;
}

@media (max-width: 1200px) {
    .all-products-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .all-products-main {
        gap: 14px;
    }

    .all-products-tabs {
        padding: 0 14px 8px;
    }

    .all-products-tab {
        font-size: 0.78rem;
    }

    .all-products-filter {
        padding: 14px;
    }

    .all-products-filter-form {
        grid-template-columns: 1fr;
    }

    .all-products-pagination {
        justify-content: center;
        text-align: center;
    }

    .all-products-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .all-products-table-wrap {
        overflow-x: visible;
    }

    .all-products-table colgroup,
    .all-products-table thead {
        display: none;
    }

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

    .all-products-table tr {
        border: 1px solid rgba(30, 42, 35, 0.08);
        border-radius: 18px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 14px 28px rgba(20, 34, 28, 0.06);
    }

    .all-products-table td {
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: center;
        gap: 12px;
        padding: 9px 12px;
        border: 0;
        border-bottom: 1px solid rgba(30, 42, 35, 0.06);
        text-align: left;
    }

    .all-products-table td::before {
        content: attr(data-label);
        color: #708076;
        font-size: 0.64rem;
        font-weight: 650;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .all-products-table td:last-child {
        border-bottom: 0;
    }

    .all-products-center,
    .all-products-date,
    .all-products-categories {
        text-align: left;
    }
}

.product-detail-main {
    gap: 18px;
}

.product-detail-hero,
.product-detail-grid > article,
.product-detail-extra-charts .product-detail-chart-card,
.product-detail-kpis article,
.product-detail-empty {
    border: 1px solid rgba(20, 92, 57, 0.12);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 38px rgba(20, 54, 34, 0.07);
}

.product-detail-hero {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(236, 249, 241, 0.96), rgba(255, 255, 255, 0.98) 52%, rgba(238, 246, 255, 0.94)),
        #ffffff;
}

.product-detail-media {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(24, 111, 65, 0.13);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(29, 67, 45, 0.09);
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-media span {
    color: #708076;
    font-size: 0.75rem;
}

.product-detail-back {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(25, 118, 248, 0.16);
    border-radius: 999px;
    background: #eef5ff;
    color: #1976f8;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.product-detail-copy h2 {
    margin: 8px 0 12px;
    color: #1f2a34;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.15;
}

.product-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-detail-chip-row > span:not(.all-products-status) {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(24, 111, 65, 0.1);
    background: #eef8f2;
    color: #2d5c42;
    font-size: 0.72rem;
}

.product-detail-price {
    display: grid;
    gap: 4px;
    min-width: 160px;
    padding: 14px 16px;
    border: 1px solid rgba(237, 177, 58, 0.24);
    border-radius: 16px;
    background: #fff8e7;
    text-align: right;
}

.product-detail-price span,
.product-detail-kpis span {
    color: #708076;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-detail-price strong {
    color: #8b5a00;
    font-size: 1.72rem;
}

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

.product-detail-kpis article {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-radius: 14px;
}

.product-detail-kpis article:nth-child(1) {
    background: linear-gradient(135deg, #e8f7ee, #ffffff);
}

.product-detail-kpis article:nth-child(2) {
    background: linear-gradient(135deg, #fff4dd, #ffffff);
}

.product-detail-kpis article:nth-child(3) {
    background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.product-detail-kpis article:nth-child(4) {
    background: linear-gradient(135deg, #f2efff, #ffffff);
}

.product-detail-kpis strong {
    display: block;
    margin-top: 8px;
    color: #1f2a34;
    font-size: 1.32rem;
}

.product-detail-kpis small {
    display: block;
    margin-top: 5px;
    color: #6d7b73;
    font-size: 0.7rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
}

.product-detail-grid > article {
    padding: 20px;
    border-radius: 16px;
}

.product-detail-extra-charts {
    padding: 18px;
    border: 1px solid rgba(20, 92, 57, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.product-detail-extra-charts .product-detail-chart-card {
    padding: 20px;
    border-radius: 16px;
}

.product-detail-grid h3,
.product-detail-info-card h3,
.product-detail-chart-card h3 {
    margin: 0;
    color: #1f2a34;
    font-size: 1rem;
}

.product-detail-info-card dl {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0;
    margin: 16px 0 0;
    font-size: 0.78rem;
    overflow: hidden;
    border: 1px solid rgba(20, 92, 57, 0.08);
    border-radius: 12px;
}

.product-detail-info-card dt {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(20, 92, 57, 0.07);
    background: #f4faf6;
    color: #708076;
}

.product-detail-info-card dd {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(20, 92, 57, 0.07);
    color: #1f2a34;
    background: #ffffff;
}

.product-detail-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.product-detail-chart-head p {
    margin: 6px 0 0;
    color: #708076;
    font-size: 0.76rem;
}

.product-detail-chart-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.product-detail-chart-metrics span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1976f8;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-detail-chart-metrics span + span {
    background: #e8f7ee;
    color: #0b8f50;
}

.product-detail-chart-metrics span.total {
    background: rgba(25, 118, 248, 0.1);
    color: #1976f8;
}

.product-detail-chart-metrics span.online {
    background: rgba(8, 113, 63, 0.1);
    color: #08713f;
}

.product-detail-chart-metrics span.trader {
    background: rgba(217, 130, 24, 0.12);
    color: #b86a0d;
}

.product-detail-chart {
    height: 280px;
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    align-items: end;
    gap: 5px;
    padding: 18px 10px 8px;
    border: 1px solid rgba(30, 42, 35, 0.08);
    border-radius: 16px;
    background:
        repeating-linear-gradient(0deg, rgba(27, 62, 43, 0.06) 0, rgba(27, 62, 43, 0.06) 1px, transparent 1px, transparent 52px),
        linear-gradient(180deg, #fbfdfb, #f4f8f5);
}

.product-detail-extra-charts {
    display: grid;
    gap: 18px;
}

.product-detail-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    align-items: end;
    padding-bottom: 12px;
}

.product-detail-chart-scroll .product-detail-bar-wrap {
    min-width: 0;
}

.product-detail-chart-lifetime {
    height: 300px;
}

.product-detail-line-chart {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 10px 8px;
    border: 1px solid rgba(30, 42, 35, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 250, 247, 0.9)),
        #f6faf7;
}

.product-detail-line-chart svg {
    min-width: 100%;
    height: 270px;
    display: block;
}

.product-detail-line-chart-lifetime svg {
    height: 290px;
}

.product-detail-line {
    fill: none;
    stroke: #1976f8;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 6px 8px rgba(25, 118, 248, 0.16));
}

.product-detail-line.online {
    stroke: #08713f;
    filter: drop-shadow(0 6px 8px rgba(8, 113, 63, 0.16));
}

.product-detail-line.trader {
    stroke: #d98218;
    filter: drop-shadow(0 6px 8px rgba(217, 130, 24, 0.16));
}

.product-detail-line.lifetime {
    stroke: #0b8f50;
    filter: drop-shadow(0 6px 8px rgba(11, 143, 80, 0.16));
}

.product-detail-line.lifetime.trader {
    stroke: #d98218;
}

.product-detail-line-area {
    fill: rgba(25, 118, 248, 0.1);
}

.product-detail-line-area.online {
    fill: rgba(8, 113, 63, 0.1);
}

.product-detail-line-area.trader {
    fill: rgba(217, 130, 24, 0.08);
}

.product-detail-line-area.lifetime {
    fill: rgba(11, 143, 80, 0.1);
}

.product-detail-line-area.lifetime.trader {
    fill: rgba(217, 130, 24, 0.08);
}

.product-detail-grid-line {
    stroke: rgba(28, 54, 38, 0.1);
    stroke-width: 1;
}

.product-detail-grid-line.lifetime {
    stroke: rgba(11, 143, 80, 0.12);
}

.product-detail-candle {
    stroke: rgba(25, 118, 248, 0.22);
    stroke-width: 7;
    stroke-linecap: round;
}

.product-detail-candle.lifetime {
    stroke: rgba(11, 143, 80, 0.22);
}

.product-detail-candle-dot {
    fill: #ffffff;
    stroke: #1976f8;
    stroke-width: 3;
}

.product-detail-candle-dot.online {
    stroke: #08713f;
}

.product-detail-candle-dot.trader {
    stroke: #d98218;
}

.product-detail-candle-dot.lifetime {
    stroke: #0b8f50;
}

.product-detail-candle-dot.lifetime.trader {
    stroke: #d98218;
}

.product-detail-line-chart text {
    fill: #708076;
    font-size: 11px;
    font-weight: 800;
}

.product-detail-line-chart .product-detail-axis-label {
    fill: #8a978f;
    font-size: 10px;
    font-weight: 700;
}

.product-detail-line-chart .product-detail-point-label {
    fill: #1556b7;
    font-size: 10px;
    font-weight: 900;
}

.product-detail-line-chart .product-detail-point-label.online {
    fill: #08713f;
}

.product-detail-line-chart .product-detail-point-label.trader {
    fill: #b86a0d;
}

.product-detail-line-chart .product-detail-point-label.lifetime {
    fill: #0b7a45;
}

.product-detail-bar-wrap {
    height: 100%;
    display: grid;
    grid-template-rows: 18px minmax(0, 1fr) 18px;
    align-items: end;
    gap: 5px;
    text-align: center;
}

.product-detail-bar-value {
    color: #3c4d44;
    font-size: 0.58rem;
}

.product-detail-bar-wrap i {
    display: block;
    width: 100%;
    min-height: 3px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #3cae70, #1976f8);
    box-shadow: 0 6px 12px rgba(27, 103, 65, 0.14);
}

.product-detail-bar-pair {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.product-detail-bar-pair i {
    width: min(42%, 12px);
    flex: 0 0 min(42%, 12px);
}

.product-detail-bar-pair i.online {
    background: linear-gradient(180deg, #19d85b, #08713f);
}

.product-detail-bar-pair i.trader {
    background: linear-gradient(180deg, #f5c15d, #d98218);
}

.product-detail-bar-pair i.empty {
    background: #d9e4dd;
    box-shadow: none;
}

.product-detail-bar-wrap i.high {
    background: linear-gradient(180deg, #14b86f, #087a45);
}

.product-detail-bar-wrap i.mid {
    background: linear-gradient(180deg, #4ea7ff, #1c63d8);
}

.product-detail-bar-wrap i.low {
    background: linear-gradient(180deg, #f5c15d, #d98218);
}

.product-detail-bar-wrap i.empty {
    background: #d9e4dd;
    box-shadow: none;
}

.product-detail-bar-wrap small {
    color: #708076;
    font-size: 0.55rem;
}

.product-detail-empty {
    padding: 30px;
}

.product-detail-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    align-items: stretch;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(20, 92, 57, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(236, 249, 241, 0.95), rgba(255, 255, 255, 0.98) 50%, rgba(238, 246, 255, 0.94)),
        #ffffff;
    box-shadow: 0 18px 44px rgba(20, 54, 34, 0.075);
}

.product-detail-overview-main {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.product-detail-overview .product-detail-media {
    width: 150px;
    height: 150px;
    border-radius: 18px;
}

.product-detail-overview-side {
    display: grid;
    gap: 12px;
}

.product-detail-overview-side .product-detail-price {
    min-width: 0;
    text-align: left;
}

.product-detail-overview-side .product-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-detail-overview-side .product-detail-kpis article {
    padding: 12px;
}

.product-detail-overview-side .product-detail-kpis strong {
    font-size: 1.05rem;
}

.product-detail-body {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.product-detail-body > .product-detail-info-card {
    position: sticky;
    top: 14px;
    padding: 18px;
    border: 1px solid rgba(20, 92, 57, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 38px rgba(20, 54, 34, 0.06);
}

.product-detail-graphs {
    display: grid;
    gap: 18px;
}

.product-detail-graph-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 18px;
}

.product-detail-graph-card::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 5px;
    background: linear-gradient(90deg, #15884f, #1976f8);
}

.product-detail-graph-card-bars {
    background: linear-gradient(180deg, #ffffff, #f8fbf8);
}

.product-detail-graph-card-line {
    background: linear-gradient(180deg, #ffffff, #f7faff);
}

.product-detail-graph-card-lifetime {
    background: linear-gradient(180deg, #ffffff, #f6fbf8);
}

.product-detail-chart-type {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    align-items: center;
    margin-bottom: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef7f2;
    color: #167047;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-detail-graph-card-line .product-detail-chart-type {
    background: #eef5ff;
    color: #1d62c8;
}

.product-detail-graph-card-lifetime .product-detail-chart-type {
    background: #edf8f1;
    color: #0b7a45;
}

.product-detail-graph-card .product-detail-chart,
.product-detail-graph-card .product-detail-line-chart {
    border-radius: 14px;
}

.product-detail-graph-card-bars .product-detail-chart {
    height: 330px;
    padding-top: 24px;
}

.product-detail-graph-card-line .product-detail-line-chart svg {
    height: 310px;
}

.product-detail-graph-card-lifetime .product-detail-line-chart svg {
    height: 320px;
}

.product-detail-graph-card .product-detail-chart-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(20, 92, 57, 0.08);
}

@media (max-width: 900px) {
    .product-detail-overview,
    .product-detail-overview-main,
    .product-detail-body,
    .product-detail-hero,
    .product-detail-grid,
    .product-detail-kpis {
        grid-template-columns: 1fr;
    }

    .product-detail-body > .product-detail-info-card {
        position: static;
    }

    .product-detail-overview .product-detail-media {
        width: 120px;
        height: 120px;
    }

    .product-detail-price {
        text-align: left;
    }

    .product-detail-chart {
        overflow-x: auto;
        grid-template-columns: repeat(30, 18px);
    }
}
.cutting-room-main {
    gap: 14px;
}

.cutting-room-filter-panel,
.cutting-room-table-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(168, 186, 155, 0.18);
    box-shadow: 0 14px 32px rgba(72, 96, 64, 0.045);
}

.cutting-room-filter-panel {
    padding: 14px 16px;
}

.cutting-room-table-panel {
    padding: 16px;
}

.cutting-room-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cutting-room-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(156, 176, 145, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #294033;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(63, 83, 59, 0.045);
}

.cutting-room-tab.active {
    border-color: transparent;
    background: linear-gradient(135deg, #244834, #3e6d51);
    color: #fff;
}

.cutting-room-status-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.cutting-room-head-controls {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: min(100%, 360px);
}

.cutting-room-head-field {
    width: 150px;
    max-width: 150px;
    margin: 0;
}

.cutting-room-date-field {
    position: relative;
    cursor: pointer;
}

.cutting-room-head-field select,
.cutting-room-head-field input[type="date"] {
    width: 100%;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 13px;
    border-width: 1px;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cutting-room-head-field input[type="date"] {
    background: #eef6ff;
    border-color: rgba(68, 123, 178, 0.32);
    color: #1e527e;
    box-shadow: 0 6px 14px rgba(68, 123, 178, 0.075);
    appearance: none;
    -webkit-appearance: none;
}

.cutting-room-head-field input[type="date"]:hover,
.cutting-room-head-field input[type="date"]:focus {
    border-color: rgba(68, 123, 178, 0.52);
    box-shadow: 0 0 0 3px rgba(68, 123, 178, 0.1), 0 8px 18px rgba(68, 123, 178, 0.1);
    outline: none;
}

.cutting-room-date-field::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    background:
        linear-gradient(#1e527e, #1e527e) 0 4px / 100% 2px no-repeat,
        linear-gradient(#1e527e, #1e527e) 4px 0 / 2px 5px no-repeat,
        linear-gradient(#1e527e, #1e527e) 10px 0 / 2px 5px no-repeat,
        linear-gradient(#1e527e, #1e527e) 0 0 / 100% 100% no-repeat;
    border-radius: 3px;
    opacity: 0.78;
    mask: linear-gradient(#000 0 0);
}

.cutting-room-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    cursor: pointer;
}

.cutting-room-head-field select.cutting-room-tone-all {
    background: #f4f7f1;
    border-color: rgba(104, 126, 94, 0.3);
    color: #334337;
    box-shadow: 0 6px 14px rgba(92, 113, 84, 0.065);
}

.cutting-room-head-field select.cutting-room-tone-active,
.cutting-room-head-field select.cutting-room-tone-beef,
.cutting-room-head-field select.cutting-room-tone-first {
    background: #eaf7ef;
    border-color: rgba(53, 142, 83, 0.36);
    color: #1f6a3d;
    box-shadow: 0 6px 14px rgba(53, 142, 83, 0.08);
}

.cutting-room-head-field select.cutting-room-tone-inactive,
.cutting-room-head-field select.cutting-room-tone-without-beef,
.cutting-room-head-field select.cutting-room-tone-last {
    background: #fff1e8;
    border-color: rgba(216, 116, 43, 0.38);
    color: #9a4a12;
    box-shadow: 0 6px 14px rgba(216, 116, 43, 0.08);
}

.cutting-room-status-form .order-product-filter-actions {
    justify-content: flex-end;
}

.cutting-room-head-actions {
    gap: 7px;
    padding-top: 0;
}

.cutting-room-head-actions .filter-button,
.cutting-room-head-actions .ghost-button {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cutting-room-table-panel .panel-head-inline {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cutting-room-table-panel .panel-head h3 {
    margin: 0 0 3px;
    color: #203529;
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.cutting-room-table-panel .panel-head p {
    margin: 0;
    color: #71806f;
    font-size: 0.74rem;
    line-height: 1.35;
}

.cutting-room-table-panel .panel-head p strong {
    color: #293a2d;
    font-weight: 650;
}

.cutting-room-table-panel .panel-head-inline > div:first-child {
    flex: 0 1 36%;
    min-width: 0;
}

.cutting-room-table-panel .panel-head-inline > div:last-child {
    margin-left: auto;
    flex: 0 1 64%;
    min-width: 0;
}

.cutting-room-table-panel .table-wrap,
.cutting-room-table-panel .premium-table-wrap,
.cutting-room-print-panel {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.cutting-room-table-panel {
    overflow: hidden;
}

.cutting-room-page:has(.cutting-room-table-beef) .cutting-room-table-panel {
    background:
        radial-gradient(circle at top left, rgba(182, 63, 47, 0.07), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 247, 0.92));
    border-color: rgba(179, 72, 52, 0.16);
    box-shadow: 0 16px 36px rgba(90, 47, 36, 0.055);
}

.cutting-room-table-beef {
    border-collapse: separate;
    border-spacing: 0 5px;
}

.cutting-room-table-beef thead th {
    background: rgba(93, 49, 36, 0.08);
    color: #4b2b22;
    font-size: 0.66rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.cutting-room-table-beef tbody tr {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 7px 16px rgba(92, 51, 39, 0.045);
}

.cutting-room-table-beef tbody td {
    border-top: 1px solid rgba(157, 93, 72, 0.1);
    border-bottom: 1px solid rgba(157, 93, 72, 0.1);
}

.cutting-room-table-beef tbody td:first-child {
    border-left: 1px solid rgba(157, 93, 72, 0.1);
    border-radius: 10px 0 0 10px;
}

.cutting-room-table-beef tbody td:last-child {
    border-right: 1px solid rgba(157, 93, 72, 0.1);
    border-radius: 0 10px 10px 0;
}

.cutting-room-table-beef td[data-label="Today QTY"] {
    color: #9b341f;
    font-size: 0.84rem;
    font-weight: 750;
}

.cutting-room-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 11px;
    border: 1px solid rgba(166, 185, 158, 0.26);
    background: #fff;
}

.cutting-room-thumb-compact {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.cutting-room-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 40px;
    padding: 0 8px;
    border-radius: 11px;
    background: rgba(240, 245, 237, 0.9);
    color: #5f715f;
    font-size: 10px;
    font-weight: 650;
}

.cutting-room-thumb-fallback-compact {
    min-width: 40px;
    min-height: 44px;
    padding: 0 5px;
    font-size: 9px;
}

.cutting-room-print-title {
    display: none;
}

.cutting-room-print-summary {
    display: none;
}

.cutting-room-print-only-table {
    display: none;
}

.cutting-room-table td[data-label="Categories"] {
    min-width: 0;
}

.cutting-room-table {
    width: 100%;
    table-layout: fixed;
}

.cutting-room-table th,
.cutting-room-table td {
    min-width: 0;
    padding: 7px 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: middle;
    color: #26362c;
    font-size: 0.76rem;
    font-weight: 450;
    line-height: 1.28;
}

.cutting-room-table th {
    white-space: nowrap;
    color: #526152;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cutting-room-table td[data-label="Title"] {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.cutting-room-table td[data-label="Categories"] {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.cutting-room-table td[data-label="Date"] {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cutting-room-center {
    text-align: center;
}

.cutting-room-table td[data-label="Title"],
.cutting-room-table td[data-label="Categories"],
.cutting-room-table td[data-label="Date"] {
    text-align: left;
}

.cutting-room-thumb {
    display: inline-block;
}

.cutting-room-table .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 4px 8px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 650;
    white-space: nowrap;
}

.cutting-room-row-inactive td {
    background: rgba(198, 208, 184, 0.22);
}

.cutting-room-pill-active {
    background: rgba(72, 135, 88, 0.14);
    color: #245235;
    border: 1px solid rgba(72, 135, 88, 0.22);
}

.cutting-room-pill-inactive {
    background: rgba(190, 71, 22, 0.22);
    color: #7a2505;
    border: 1px solid rgba(190, 71, 22, 0.38);
}

@media (max-width: 900px) {
    .cutting-room-status-form {
        align-items: stretch;
    }

    .cutting-room-table-panel .panel-head-inline > div:first-child,
    .cutting-room-table-panel .panel-head-inline > div:last-child {
        flex-basis: 100%;
    }

    .cutting-room-status-form .field {
        min-width: min(100%, 260px);
    }

    .cutting-room-head-controls {
        justify-content: flex-start;
    }

    .cutting-room-head-field {
        width: min(100%, 180px);
        max-width: 100%;
    }

    .cutting-room-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 4mm 6mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .cutting-room-print-panel {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cutting-room-print-title {
        display: block !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        color: #17291c !important;
        font-size: 20px !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .cutting-room-print-summary {
        display: block !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        color: #213526 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    .dashboard-layout,
    .dashboard-main,
    .cutting-room-main,
    .cutting-room-table-panel,
    .table-wrap,
    .premium-table-wrap {
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .panel-head,
    .no-print,
    .sidebar,
    .app-top-header,
    .app-menu-toggle,
    .app-user-chip,
    .app-logout-button,
    .page-loader {
        display: none !important;
    }

    .cutting-room-main {
        background: #fff;
    }

    .cutting-room-table-panel,
    .cutting-room-print-panel {
        box-shadow: none;
        border: 0;
        background: #fff;
    }

    .cutting-room-table {
        width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        font-size: 9.5px !important;
    }

    .cutting-room-table th,
    .cutting-room-table td {
        padding: 8px 6px !important;
        vertical-align: middle !important;
        border: 1px solid #d7dece !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .cutting-room-table th {
        background: #eef4ea !important;
        color: #213526 !important;
    }

    .cutting-room-thumb {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }

    .cutting-room-thumb-fallback {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 4px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
    }

    .pill {
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        color: #213526 !important;
        font-weight: 700 !important;
    }

    .cutting-room-col-price {
        display: none !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-print-hide {
        display: none !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table {
        display: none !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-print-only-table {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 10.5px !important;
    }

    .cutting-room-print-only-table th,
    .cutting-room-print-only-table td {
        padding: 6px 5px !important;
        border: 1px solid #d7dece !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        background: #fff !important;
    }

    .cutting-room-print-only-table th {
        background: #eef4ea !important;
        color: #213526 !important;
        font-weight: 800 !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table {
        table-layout: fixed !important;
        font-size: 10.5px !important;
    }

    .cutting-room-print-panel-today-cutting col:nth-child(1) {
        width: 8% !important;
    }

    .cutting-room-print-panel-today-cutting col:nth-child(2) {
        width: 44% !important;
    }

    .cutting-room-print-panel-today-cutting col:nth-child(4) {
        width: 16% !important;
    }

    .cutting-room-print-panel-today-cutting col:nth-child(5) {
        width: 17% !important;
    }

    .cutting-room-print-panel-today-cutting col:nth-child(9) {
        width: 15% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th:nth-child(1),
    .cutting-room-print-panel-today-cutting .cutting-room-table td:nth-child(1) {
        width: 8% !important;
        max-width: 8% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th:nth-child(2),
    .cutting-room-print-panel-today-cutting .cutting-room-table td:nth-child(2) {
        width: 44% !important;
        max-width: 44% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th:nth-child(4),
    .cutting-room-print-panel-today-cutting .cutting-room-table td:nth-child(4) {
        width: 16% !important;
        max-width: 16% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th:nth-child(5),
    .cutting-room-print-panel-today-cutting .cutting-room-table td:nth-child(5) {
        width: 17% !important;
        max-width: 17% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th:nth-child(9),
    .cutting-room-print-panel-today-cutting .cutting-room-table td:nth-child(9) {
        width: 15% !important;
        max-width: 15% !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table th,
    .cutting-room-print-panel-today-cutting .cutting-room-table td {
        padding: 6px 5px !important;
        box-sizing: border-box !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-table tbody tr td {
        background: #fff !important;
    }

    .cutting-room-print-panel-today-cutting .cutting-room-row-inactive td {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cutting-room-print-panel-low-stock .cutting-room-table {
        font-size: 9.5px !important;
    }

    .cutting-room-print-panel-low-stock .cutting-room-table th,
    .cutting-room-print-panel-low-stock .cutting-room-table td {
        padding: 7px 5px !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-print-title {
        margin-bottom: 5px !important;
        font-size: 17px !important;
        letter-spacing: 0.01em !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-print-summary {
        margin-bottom: 5px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        font-size: 8.8px !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-table th,
    .cutting-room-print-panel-today-beef .cutting-room-table td {
        padding: 4px !important;
        border: 1px solid #d9dfd5 !important;
        line-height: 1.18 !important;
        box-shadow: none !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-table tbody tr {
        box-shadow: none !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-table th {
        background: #eef4ea !important;
        color: #213526 !important;
        font-size: 8px !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-thumb,
    .cutting-room-print-panel-today-beef .cutting-room-thumb-compact {
        width: 24px !important;
        height: 24px !important;
        border-radius: 5px !important;
        object-fit: cover !important;
    }

    .cutting-room-print-panel-today-beef .cutting-room-thumb-fallback,
    .cutting-room-print-panel-today-beef .cutting-room-thumb-fallback-compact {
        min-width: 24px !important;
        min-height: 24px !important;
        padding: 1px !important;
        border-radius: 5px !important;
        font-size: 6px !important;
        line-height: 1 !important;
    }

    .cutting-room-print-panel-today-beef col:nth-child(1) {
        width: 7% !important;
    }

    .cutting-room-print-panel-today-beef col:nth-child(2) {
        width: 7% !important;
    }

    .cutting-room-print-panel-today-beef col:nth-child(3) {
        width: 39% !important;
    }

    .cutting-room-print-panel-today-beef col:nth-child(4) {
        width: 11% !important;
    }

    .cutting-room-print-panel-today-beef col:nth-child(5),
    .cutting-room-print-panel-today-beef col:nth-child(6),
    .cutting-room-print-panel-today-beef col:nth-child(7) {
        width: 12% !important;
    }
}
.daily-order-main {
    display: grid;
    gap: 18px;
}

.daily-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 4px;
    font-size: 0.86rem;
    color: #52665c;
}

.daily-order-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(244, 250, 246, 0.92);
    border: 1px solid rgba(29, 43, 32, 0.08);
}

.daily-order-table td:nth-child(1),
.daily-order-table td:nth-child(3),
.daily-order-table td:nth-child(4) {
    white-space: nowrap;
}

.daily-order-main .premium-date-field {
    cursor: pointer;
}

.daily-order-main .premium-date-field input[type="date"] {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(29, 43, 32, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 250, 244, 0.98), rgba(238, 247, 241, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 10px 22px rgba(29, 43, 32, 0.06);
    color: #1f3529;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
}

.daily-order-main .premium-date-field:hover input[type="date"],
.daily-order-main .premium-date-field:focus-within input[type="date"] {
    border-color: rgba(31, 110, 67, 0.35);
    box-shadow:
        0 0 0 4px rgba(45, 167, 98, 0.12),
        0 12px 26px rgba(29, 43, 32, 0.08);
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body.printing-report {
        background: #f3f8f4 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.printing-report .sidebar,
    body.printing-report .app-top-header,
    body.printing-report .page-loader,
    body.printing-report .filter-panel-top,
    body.printing-report .premium-filter-grid,
    body.printing-report .app-logout-button {
        display: none !important;
    }

    body.printing-report .dashboard-layout,
    body.printing-report .dashboard-main,
    body.printing-report .daily-order-main {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    body.printing-report .filter-panel {
        box-shadow: none !important;
        border: 1px solid #dcebe0 !important;
        background: #ffffff !important;
        border-radius: 18px !important;
        padding: 0 0 12px !important;
        margin: 0 0 14px !important;
    }

    body.printing-report .daily-order-print-info {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    body.printing-report .daily-order-print-info span {
        background: linear-gradient(135deg, #ffffff, #eef8f1) !important;
        border: 1px solid #cfe4d5 !important;
        box-shadow: none !important;
        color: #1f3529 !important;
        font-weight: 700 !important;
    }

    body.printing-report .daily-order-print-panel {
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.printing-report .daily-order-print-panel .panel-head {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        padding: 14px 16px !important;
        border-radius: 18px !important;
        background: linear-gradient(135deg, #1f7a4d, #35b36f) !important;
        color: #ffffff !important;
    }

    body.printing-report .daily-order-print-panel .panel-head h3,
    body.printing-report .daily-order-print-panel .panel-head p {
        color: #ffffff !important;
        margin: 0 !important;
    }

    body.printing-report .daily-order-part-chip,
    body.printing-report .report-summary span {
        background: rgba(255, 255, 255, 0.18) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    body.printing-report .daily-order-print-panel .table-wrap {
        overflow: visible !important;
    }

    body.printing-report .daily-order-print-panel table {
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    body.printing-report .daily-order-print-panel thead th {
        background: linear-gradient(135deg, #215f3c, #2a8f58) !important;
        color: #ffffff !important;
        border-bottom: none !important;
    }

    body.printing-report .daily-order-print-panel tbody tr:nth-child(odd) {
        background: #f4fbf6 !important;
    }

    body.printing-report .daily-order-print-panel tbody tr:nth-child(even) {
        background: #ffffff !important;
    }

    body.printing-report .daily-order-print-panel th,
    body.printing-report .daily-order-print-panel td {
        border-bottom: 1px solid #dcebe0 !important;
    }
}


.daily-order-main .report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.92rem;
    color: #234634;
}

.daily-order-main .report-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(235, 248, 239, 0.98), rgba(246, 252, 248, 0.96));
    border: 1px solid rgba(56, 123, 85, 0.16);
    box-shadow: 0 10px 22px rgba(35, 70, 52, 0.07);
}

.daily-order-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 246, 0.96));
}

.daily-order-table thead th {
    background: linear-gradient(135deg, #1f7a4d, #2ea866);
    color: #fff;
    border-bottom: none;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.daily-order-table tbody tr:nth-child(odd) {
    background: rgba(243, 250, 245, 0.88);
}

.daily-order-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.96);
}

.daily-order-table tbody tr:hover {
    background: rgba(221, 242, 228, 0.95);
}

.daily-order-table th,
.daily-order-table td {
    border-bottom: 1px solid rgba(44, 93, 66, 0.08);
}

.daily-order-table td:nth-child(1),
.daily-order-table td:nth-child(3),
.daily-order-table td:nth-child(4),
.daily-order-table th:nth-child(1),
.daily-order-table th:nth-child(3),
.daily-order-table th:nth-child(4) {
    text-align: center;
}

.daily-order-table td:nth-child(5),
.daily-order-table th:nth-child(5) {
    min-width: 140px;
}


.daily-order-summary-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.others-cutting-main .panel-head-inline {
    align-items: flex-start;
    flex-wrap: wrap;
}

.others-cutting-main .panel-head-inline > div:first-child {
    flex: 1 1 100%;
}

.others-cutting-main .daily-order-summary-group {
    flex: 1 1 100%;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
}

.others-cutting-main #others-cutting-filter-form {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 14px;
    padding-top: 0;
}

.others-cutting-main #others-cutting-filter-form .premium-date-field {
    width: 280px;
}

.others-cutting-main #others-cutting-filter-form .filter-button {
    min-width: 190px;
}

.others-cutting-main .report-summary {
    flex: 0 0 auto;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    text-align: left;
    align-self: flex-end;
}

.others-cutting-main .report-summary span {
    padding-right: 12px;
    padding-left: 12px;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .others-cutting-main .daily-order-summary-group,
    .others-cutting-main #others-cutting-filter-form,
    .others-cutting-main .report-summary {
        flex-wrap: wrap;
    }

    .others-cutting-main #others-cutting-filter-form .premium-date-field {
        width: min(300px, 100%);
    }
}

.daily-order-part-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 122, 77, 0.14), rgba(82, 183, 117, 0.18));
    border: 1px solid rgba(30, 122, 77, 0.22);
    box-shadow: 0 10px 22px rgba(20, 60, 38, 0.08);
    color: #1d5f3b;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}


.daily-order-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: 14px;
    width: 100%;
}

.daily-order-action-bar .order-product-filter-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-right: auto;
}


@media (max-width: 820px) {
    .daily-order-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .daily-order-action-bar .order-product-filter-actions {
        justify-content: flex-start;
        margin-right: 0;
    }
}
.image-ready-hero {
    background:
        radial-gradient(circle at top right, rgba(54, 166, 106, 0.12), transparent 28%),
        radial-gradient(circle at left bottom, rgba(223, 182, 80, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(243, 249, 245, 0.95));
}

.image-ready-hero h2 {
    max-width: none;
    white-space: nowrap;
}

.image-ready-panel {
    padding: 18px;
}

.image-ready-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.image-ready-controls,
.image-ready-preview-card {
    padding: 22px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 248, 242, 0.94));
}

.image-ready-fields,
.image-ready-sliders {
    display: grid;
    gap: 14px;
}

.image-ready-type-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.image-ready-type-option {
    position: relative;
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(43, 123, 86, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 246, 0.9));
    cursor: pointer;
    display: grid;
    align-content: center;
    gap: 4px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.image-ready-type-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.image-ready-type-option span {
    color: #193d2d;
    font-size: 0.96rem;
    font-weight: 900;
}

.image-ready-type-option small {
    color: #4b705a;
    font-size: 0.74rem;
    font-weight: 800;
}

.image-ready-type-option.is-active {
    border-color: rgba(43, 181, 88, 0.52);
    background: linear-gradient(135deg, rgba(230, 250, 236, 0.98), rgba(249, 255, 246, 0.96));
    box-shadow: 0 14px 26px rgba(43, 123, 86, 0.1);
    transform: translateY(-1px);
}

.image-ready-upload-field {
    position: relative;
    min-height: 220px;
    padding: 12px;
    border: 1px dashed rgba(43, 123, 86, 0.3);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 250, 246, 0.92));
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
}

.image-ready-upload-field.is-selected {
    border-color: rgba(43, 123, 86, 0.55);
    background: linear-gradient(180deg, rgba(232, 249, 239, 0.96), rgba(244, 252, 247, 0.98));
    box-shadow: 0 14px 28px rgba(43, 123, 86, 0.08);
}

.image-ready-upload-field span {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1b6b4d;
}

.image-ready-upload-field strong {
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: #163a2a;
}

.image-ready-upload-field small {
    color: #2e6d50;
    font-size: 0.82rem;
    word-break: break-word;
    max-width: 24ch;
    font-weight: 700;
}

.image-ready-upload-field input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-ready-download-button {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #2c855c, #d89035);
    box-shadow: 0 12px 24px rgba(44, 133, 92, 0.18);
}

.image-ready-sliders {
    margin-top: 6px;
}

.image-ready-sliders small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.image-ready-sliders .field {
    min-width: 0;
}

.mode-ai.is-hidden,
.mode-beautify.is-hidden {
    display: none;
}

.image-ready-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.image-ready-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.image-ready-progress-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(29, 43, 32, 0.08);
    border: 1px solid rgba(29, 43, 32, 0.07);
}

.image-ready-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(43, 123, 86, 0.88), rgba(223, 182, 80, 0.92));
    transition: width 0.35s ease;
}

.image-ready-progress strong {
    font-size: 0.82rem;
    color: #1f6f53;
}

.image-ready-actions .is-hidden {
    display: none;
}

.image-ready-cleanup-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.image-preview-stage {
    margin-top: 6px;
}

.image-preview-board {
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    background:
        linear-gradient(45deg, #f8f1e7 25%, transparent 25%) -18px 0/36px 36px,
        linear-gradient(-45deg, #f8f1e7 25%, transparent 25%) -18px 0/36px 36px,
        linear-gradient(45deg, transparent 75%, #f8f1e7 75%) -18px 0/36px 36px,
        linear-gradient(-45deg, transparent 75%, #f8f1e7 75%) -18px 0/36px 36px,
        linear-gradient(180deg, #fffdfa, #f8f4ee);
}

.image-preview-board canvas {
    display: block;
    width: min(100%, 460px);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(29, 43, 32, 0.08);
    cursor: crosshair;
    transform-origin: center center;
    transition: transform 0.22s ease;
}

.image-preview-board:hover canvas {
    transform: scale(1.5);
}

.image-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-metrics .mini-card {
    min-height: 88px;
    background: rgba(255, 255, 255, 0.68);
}

.image-ready-preview-card .panel-head p,
.image-ready-controls .panel-head p {
    max-width: 48ch;
    line-height: 1.7;
}
.sender-config-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.sender-config-table th,
.sender-config-table td {
    white-space: normal;
    word-break: break-word;
}

.sender-config-table th:first-child,
.sender-config-table td:first-child {
    width: 28%;
}

.sender-config-table th:last-child,
.sender-config-table td:last-child {
    width: 72%;
}

.panel-head {
    margin-bottom: 16px;
}

.panel-head p {
    margin: 8px 0 0;
}

.trend-list,
.stack-list {
    display: grid;
    gap: 14px;
}

.trend-row,
.mini-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

.trend-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.report-visual-grid {
    margin-bottom: 18px;
}

.label-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 240, 0.92));
    border: 1px solid rgba(23, 33, 43, 0.08);
    box-shadow: 0 14px 24px rgba(26, 38, 31, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    opacity: 0.18;
}

.label-stat-orders::after {
    background: radial-gradient(circle, #54d7bf, transparent 68%);
}

.label-stat-labels::after {
    background: radial-gradient(circle, #69a9ff, transparent 68%);
}

.label-stat-boxes::after {
    background: radial-gradient(circle, #e6b457, transparent 68%);
}

.label-stat-template::after {
    background: radial-gradient(circle, #9bcd53, transparent 68%);
}

.label-stat-card .stat-icon {
    position: static;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

.label-stat-card .stat-icon svg {
    width: 18px;
    height: 18px;
}

.label-stat-inline {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.label-stat-card span {
    display: inline;
    margin-bottom: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #46564e;
}

.label-stat-card small {
    display: none;
}

.label-stat-card strong {
    margin-top: 0;
    margin-left: auto;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #17222b;
    white-space: nowrap;
}

.preview-tabs-panel {
    padding: 18px;
}

.preview-tab-row {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(247, 242, 234, 0.96), rgba(236, 245, 239, 0.94));
    border: 1px solid rgba(23, 33, 43, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.preview-tab {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    color: #4d5f56;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.preview-tab.active {
    background: linear-gradient(135deg, rgba(47, 122, 80, 0.18), rgba(217, 160, 40, 0.16));
    color: #17222b;
    box-shadow: 0 10px 20px rgba(24, 39, 28, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transform: translateY(-1px);
}

.preview-tab-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.preview-tab-label {
    color: inherit;
}

.preview-tab-count {
    font-size: 0.92rem;
    color: #17222b;
}

.preview-tab-panel {
    display: none;
}

.preview-tab-panel.active {
    display: block;
}

.preview-tab-panel[data-preview-panel="notes"] {
    padding-bottom: 600px;
}



.note-check-table {
    min-width: 980px;
}

.note-check-cell {
    line-height: 1.55;
    white-space: normal;
    vertical-align: top;
}

.note-muted {
    color: #8a968f;
    font-style: italic;
}

.note-row-highlight td {
    background: linear-gradient(135deg, rgba(255, 242, 215, 0.92), rgba(232, 247, 237, 0.9));
}

.note-row-highlight td:first-child {
    border-left: 4px solid #d4881f;
    padding-left: 10px;
}

.packaging-review-row td {
    background: rgba(245, 202, 68, 0.22);
}

.packaging-review-row td:first-child {
    border-left: 4px solid #d4a017;
    padding-left: 10px;
}

.address-check-table {
    min-width: 1080px;
}

.address-check-cell {
    line-height: 1.55;
    white-space: normal;
    vertical-align: top;
}

.cell-danger {
    background: rgba(230, 84, 84, 0.16);
    color: #9f2323;
    font-weight: 800;
}

.cell-warning {
    background: rgba(245, 202, 68, 0.22);
}

.view-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 122, 80, 0.14), rgba(217, 160, 40, 0.16));
    border: 1px solid rgba(47, 122, 80, 0.14);
    color: #185841;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
}

.view-link-button:hover {
    color: #b36a1d;
}

.order-link {
    color: #1f6f53;
    font-weight: 800;
    text-decoration: none;
}

.order-link-cell {
    padding: 0 !important;
}

.full-cell-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: 10px 12px;
}

.order-link:hover {
    color: #b36a1d;
    text-decoration: underline;
}

.report-analytics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 18px;
    margin-bottom: 18px;
}

.report-insight-card .trend-list {
    margin-top: 8px;
}

.label-workspace {
    padding: 18px;
}

.label-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
}

.label-input-card,
.label-info-card {
    padding: 24px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 24px;
}

.label-card-intro {
    margin-bottom: 20px;
    display: grid;
    gap: 10px;
}

.label-card-intro.compact {
    margin-bottom: 18px;
}

.label-card-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b36a1d;
}

.label-card-intro h3 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

.label-card-intro p:last-child {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--muted);
}

.label-form {
    display: grid;
    gap: 18px;
}

.label-form .premium-field span {
    margin-bottom: 8px;
    display: inline-block;
    font-size: 0.74rem;
}

.label-form input[type="date"] {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.premium-date-field {
    position: relative;
    cursor: pointer;
}

.premium-date-field .native-date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.formatted-date-display {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.label-textarea-field textarea {
    width: 100%;
    min-height: 210px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    resize: vertical;
}

.field-head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.field-head-inline > span {
    margin-bottom: 0 !important;
}

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

.inline-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.92), rgba(234, 244, 237, 0.9));
    border: 1px solid rgba(23, 33, 43, 0.08);
    color: #56665d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.inline-summary-chip strong {
    color: #17222b;
    font-size: 0.82rem;
}

.field-note {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--muted);
}

.label-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.label-alert {
    margin: 6px 0 0;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.65;
    font-weight: 700;
}

.label-alert.error {
    background: rgba(185, 75, 57, 0.09);
    border: 1px solid rgba(185, 75, 57, 0.18);
    color: #9a382a;
}

.label-alert.warning {
    background: rgba(217, 160, 40, 0.1);
    border: 1px solid rgba(217, 160, 40, 0.2);
    color: #8a6415;
}

.order-product-main {
    display: grid;
    gap: 18px;
}

.order-product-filter-head p {
    max-width: 720px;
}

.order-product-filter-form {
    display: grid;
    gap: 16px;
}

.order-product-filter-grid {
    display: grid;
    gap: 14px;
}

.order-product-filter-grid-shell {
    grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1fr) minmax(260px, 0.92fr);
    align-items: start;
    gap: 18px;
    padding: 8px 0 4px;
}

.order-product-filter-column,
.order-product-filter-middle {
    display: grid;
    gap: 18px;
}

.order-product-filter-column .premium-field,
.order-product-filter-middle .premium-field,
.order-product-category-field {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.order-product-filter-column .premium-field > span,
.order-product-filter-middle .premium-field > span,
.order-product-category-field > span {
    display: block;
    margin-bottom: 12px;
    color: #667564;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-product-filter-column input,
.order-product-filter-column select,
.order-product-filter-middle select {
    min-height: 74px;
    border-radius: 28px;
    border: 1px solid rgba(199, 207, 198, 0.85);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(224, 214, 194, 0.18);
    font-size: 17px;
    font-weight: 600;
    color: #24332d;
    padding: 0 22px;
}

.order-product-filter-column input:focus,
.order-product-filter-column select:focus,
.order-product-filter-middle select:focus {
    border-color: rgba(112, 145, 119, 0.42);
    box-shadow: 0 14px 30px rgba(194, 214, 193, 0.28);
}

.order-product-filter-column-right {
    align-self: stretch;
}

.order-product-category-field small {
    display: block;
    margin-top: 14px;
    color: #6d7b74;
    font-size: 13px;
    font-weight: 600;
}

.order-product-category-box {
    max-height: 390px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 28px;
    border: 1px solid rgba(207, 214, 207, 0.82);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(224, 214, 194, 0.18);
}

.order-product-category-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px;
    border-radius: 16px;
    transition: background 0.18s ease;
}

.order-product-category-option:hover {
    background: rgba(242, 246, 241, 0.92);
}

.order-product-category-option input {
    width: 18px;
    height: 18px;
    accent-color: #2f8f57;
    flex: 0 0 auto;
}

.order-product-category-option span {
    color: #25352d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.order-product-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.order-product-filter-actions .ghost-button,
.order-product-filter-actions .filter-button {
    min-height: 46px;
}

.order-product-table-panel {
    overflow: hidden;
}

.order-product-table td:nth-child(1),
.order-product-table td:nth-child(3),
.order-product-table td:nth-child(4) {
    white-space: nowrap;
}

.order-product-remark {
    min-width: 280px;
    white-space: normal;
    line-height: 1.55;
    color: #4d5f56;
}
.order-status-main {
    gap: 24px;
}

.order-status-hero,
.order-status-empty,
.order-status-summary,
.order-status-card,
.order-status-items {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(168, 186, 155, 0.2);
    box-shadow: 0 22px 48px rgba(64, 92, 70, 0.06);
}

.order-status-hero {
    padding: 52px 28px;
    text-align: center;
}

.order-status-eyebrow,
.order-status-label {
    margin: 0;
    color: #5f715f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-status-hero h1 {
    margin: 14px 0 10px;
    color: #203528;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.order-status-subtitle {
    max-width: 720px;
    margin: 0 auto 28px;
    color: #5b685d;
    font-size: 16px;
}

.order-status-search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-status-search-shell {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(169, 185, 160, 0.34);
    background: #fff;
    box-shadow: 0 14px 34px rgba(52, 78, 58, 0.08);
}

.order-status-search-shell input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #213526;
    font-size: 18px;
}

.order-status-search-button {
    min-width: 124px;
    border-radius: 999px;
}

.order-status-empty {
    padding: 28px;
    text-align: center;
}

.order-status-empty h3 {
    margin: 0 0 8px;
    color: #203528;
}

.order-status-empty p {
    margin: 0;
    color: #5b685d;
}

.order-status-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.order-status-items-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-status-items-head h3 {
    margin: 8px 0 0;
    color: #203528;
}

.order-status-showcase-card {
    padding: 22px;
    border-radius: 22px;
}

.order-status-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.order-status-card-head h2 {
    margin: 6px 0 0;
    color: #24352d;
    font-size: 1.2rem;
}

.order-status-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #52d7c3, #35c4b4);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 14px 28px rgba(53, 196, 180, 0.18);
}

.order-status-divider {
    height: 1px;
    margin: 16px 0 20px;
    background: rgba(210, 220, 218, 0.95);
}

.order-status-customer-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-status-avatar {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #73e17e, #36b85a);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.78);
}

.order-status-customer-copy strong {
    display: block;
    color: #48525f;
    font-size: 1rem;
}

.order-status-customer-copy span {
    display: block;
    margin-top: 4px;
    color: #7a8091;
    font-size: 0.9rem;
}

.order-status-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 16px;
}

.order-status-mini-stat {
    color: #7a8091;
    font-size: 0.92rem;
}

.order-status-mini-stat span {
    display: block;
    margin-bottom: 4px;
}

.order-status-mini-stat strong {
    color: #6c7383;
    font-size: 0.92rem;
    font-weight: 800;
}

.order-status-inline-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #4b5564;
    font-size: 0.95rem;
}

.order-status-inline-info span {
    color: #8a90a4;
    min-width: 44px;
}

.order-status-note-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: #ff4f43;
    font-weight: 700;
}

.order-status-note-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 1.4rem;
    line-height: 1;
}

.order-status-address-grid,
.order-status-order-grid {
    display: grid;
    gap: 16px;
}

.order-status-address-grid div,
.order-status-order-grid div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.order-status-address-grid span,
.order-status-order-grid span {
    color: #8a90a4;
    font-weight: 700;
    font-size: 0.95rem;
}

.order-status-address-grid strong,
.order-status-order-grid strong {
    color: #4a5564;
    font-size: 0.95rem;
    line-height: 1.5;
}

.order-status-address-block {
    grid-template-columns: 1fr !important;
    margin-top: 4px;
}

.order-status-order-no {
    margin-top: 6px;
    color: #2f3640;
    font-size: 1rem;
    font-weight: 800;
}

.order-status-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 54px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid rgba(122, 203, 74, 0.55);
    color: #37a11b;
    background: rgba(240, 255, 235, 0.72);
    font-size: 0.95rem;
    font-weight: 800;
}

.order-status-highlight {
    color: #2e67e5 !important;
    font-weight: 800;
}

.order-status-items {
    padding: 22px;
}

.order-status-items-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(239, 244, 235, 0.96);
    color: #31523f;
    font-weight: 700;
}

.order-status-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
}

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

.order-status-table th,
.order-status-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(210, 221, 204, 0.9);
    text-align: left;
    vertical-align: top;
}

.order-status-table th {
    color: #56675a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.order-status-table td {
    color: #223527;
    font-size: 14px;
}
.permissions-main {
    gap: 24px;
}

.permissions-page .premium-main {
    background:
        radial-gradient(circle at top right, rgba(228, 241, 226, 0.7), transparent 34%),
        linear-gradient(180deg, #f8fbf6 0%, #f2f7ef 100%);
}

.permissions-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: center;
    padding: 28px;
}

.permissions-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b7a63;
}

.permissions-hero h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.05;
}

.permissions-hero p {
    margin: 0;
    color: #667163;
}

.permissions-hero-stats,
.permissions-grid,
.permissions-module-grid {
    display: grid;
    gap: 18px;
}

.permissions-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(173, 190, 161, 0.22);
    box-shadow: 0 22px 40px rgba(74, 96, 66, 0.06);
    border-radius: 24px;
}

.permissions-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(152, 170, 139, 0.26);
    background: rgba(255, 255, 255, 0.86);
    color: #274032;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.permissions-tab-button.active {
    background: linear-gradient(135deg, #244834, #3e6d51);
    color: #fff;
    border-color: transparent;
}

.permissions-tab-panel {
    display: none;
}

.permissions-tab-panel.active {
    display: block;
}

.permissions-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-stat-card,
.permissions-fixed-card,
.permissions-role-item,
.permissions-module-card,
.permission-denied-panel {
    border: 1px solid rgba(152, 170, 139, 0.26);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 243, 0.95));
}

.permission-stat-card {
    padding: 18px;
}

.permission-stat-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f7b68;
}

.permission-stat-card strong {
    font-size: 32px;
    line-height: 1;
    color: #1f3428;
}

.permissions-grid {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
    margin-top: 8px;
}

.email-settings-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.permissions-role-panel,
.permissions-assign-panel,
.permissions-matrix-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(171, 188, 161, 0.18);
    box-shadow: 0 22px 45px rgba(64, 89, 54, 0.06);
}

.email-panel-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(172, 188, 164, 0.18);
}

.permissions-panel-head {
    margin-bottom: 4px;
}

.permissions-panel-head h3 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.12;
}

.permissions-panel-head p {
    margin: 8px 0 0;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.5;
}

.permissions-fixed-card {
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.permissions-fixed-card strong {
    display: block;
    font-size: 18px;
}

.permissions-fixed-card small,
.permissions-empty {
    margin: 0;
    color: #63715f;
}

.permissions-empty-state {
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(253, 254, 252, 0.98), rgba(243, 247, 239, 0.98));
    border: 1px dashed rgba(144, 166, 135, 0.4);
}

.permissions-empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: #203528;
}

.permissions-form,
.permissions-inline-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.permissions-form textarea {
    min-height: 110px;
    resize: vertical;
}

.permissions-create-card {
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(227, 242, 220, 0.75), transparent 32%),
        linear-gradient(180deg, rgba(253, 254, 251, 0.99), rgba(240, 247, 235, 0.99));
    border: 1px solid rgba(157, 180, 148, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 24px 40px rgba(64, 89, 54, 0.05);
}

.permissions-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.permissions-create-field {
    margin: 0;
}

.permissions-create-field span {
    display: inline-block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #597058;
}

.permissions-create-field input,
.permissions-create-field select,
.permissions-create-field textarea {
    border: 1px solid rgba(132, 162, 125, 0.18);
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(64, 89, 54, 0.04);
    min-height: 50px;
    padding: 0 14px;
}

.permissions-create-field input:focus,
.permissions-create-field select:focus,
.permissions-create-field textarea:focus {
    border-color: rgba(79, 129, 86, 0.42);
    box-shadow: 0 0 0 4px rgba(111, 159, 106, 0.14);
}

.permissions-create-field-wide textarea {
    min-height: 124px;
}

.permissions-form-actions,
.permission-denied-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.email-recipient-form {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(161, 180, 152, 0.18);
    background: linear-gradient(180deg, rgba(250, 252, 248, 0.98), rgba(244, 248, 241, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.email-recipient-form .permissions-create-grid {
    grid-template-columns: minmax(180px, 0.8fr) minmax(360px, 1.8fr);
    align-items: end;
}

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

.email-row-field {
    display: flex;
    align-items: center;
    min-height: 46px;
    width: 100%;
}

.email-row-static {
    color: #2a3f30;
    font-weight: 600;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.email-row-field input[disabled],
.email-row-field select[disabled] {
    display: none;
}

.compact-table tr.is-editing td {
    background: linear-gradient(180deg, rgba(235, 246, 231, 0.96), rgba(247, 251, 244, 0.96));
}

.compact-table tr.is-editing .email-row-field input,
.compact-table tr.is-editing .email-row-field select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(109, 149, 103, 0.28);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(61, 93, 52, 0.08);
}

.compact-table tr.is-editing .email-row-field input:focus,
.compact-table tr.is-editing .email-row-field select:focus {
    outline: none;
    border-color: rgba(71, 124, 78, 0.5);
    box-shadow: 0 0 0 4px rgba(103, 156, 112, 0.14);
}

.email-row-actions {
    align-items: center;
}

.email-recipient-inline-form input[type="email"] {
    min-width: 420px;
    border-radius: 14px;
}

.email-overview-list {
    gap: 16px;
}

.permissions-role-list,
.permissions-checkbox-list {
    display: grid;
    gap: 12px;
}

.permissions-page-list {
    display: grid;
    gap: 12px;
}

.permissions-page-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(160, 179, 151, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 242, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.email-settings-form {
    gap: 20px;
}

.email-settings-grid {
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(161, 180, 152, 0.18);
    background: linear-gradient(180deg, rgba(250, 252, 248, 0.98), rgba(244, 248, 241, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 14px 30px rgba(73, 99, 63, 0.05);
}

.email-settings-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
}

.email-send-now-form {
    display: inline-flex;
}

.email-conditional-field.is-hidden {
    display: none;
}

.email-settings-actions .premium-button {
    min-width: 148px;
    justify-content: center;
}

.permissions-page-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.permissions-page-card-head strong {
    color: #203528;
    font-size: 14px;
    line-height: 1.3;
}

.permissions-page-card-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(232, 241, 227, 0.92);
    color: #436349;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.permissions-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permissions-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(161, 180, 152, 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: #3a5341;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 12px;
}

.permissions-action-pill input {
    margin: 0;
}

.permissions-action-pill.active,
.permissions-action-pill:hover {
    border-color: rgba(82, 130, 89, 0.36);
    background: rgba(235, 245, 230, 0.98);
    box-shadow: 0 10px 24px rgba(66, 103, 74, 0.08);
}

.permissions-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.permissions-role-item-copy {
    min-width: 0;
}

.permissions-role-item strong {
    display: block;
    margin-bottom: 6px;
}

.permissions-role-item span {
    color: #63715f;
    font-size: 14px;
    line-height: 1.45;
}

.permissions-role-item.active,
.permissions-role-item:hover {
    border-color: rgba(74, 130, 87, 0.42);
    box-shadow: 0 16px 34px rgba(41, 84, 52, 0.08);
    transform: translateY(-1px);
}

.permissions-role-item.active {
    background:
        radial-gradient(circle at top right, rgba(213, 235, 205, 0.88), transparent 34%),
        linear-gradient(180deg, rgba(236, 246, 232, 0.98), rgba(248, 251, 245, 0.98));
    border-color: rgba(76, 130, 85, 0.52);
    box-shadow:
        inset 4px 0 0 #6aa16f,
        0 18px 36px rgba(63, 101, 70, 0.12);
}

.permissions-inline-link {
    white-space: nowrap;
}

.permissions-inline-role-form {
    display: none;
}

.permissions-role-table tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.permissions-role-row-editing {
    background: linear-gradient(180deg, rgba(236, 245, 231, 0.96), rgba(247, 251, 244, 0.98));
    box-shadow: inset 4px 0 0 #6e9f71;
}

.permissions-role-readonly {
    color: #203528;
    font-size: 14px;
    line-height: 1.5;
}

.permissions-role-description {
    color: #63715f;
}

.permissions-inline-input,
.permissions-inline-textarea {
    width: 100%;
    border: 1px solid rgba(99, 132, 103, 0.18);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1f3428;
    box-shadow: 0 10px 24px rgba(54, 92, 62, 0.04);
}

.permissions-inline-input:focus,
.permissions-inline-textarea:focus {
    outline: none;
    border-color: rgba(51, 108, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(90, 148, 103, 0.14);
}

.permissions-inline-textarea {
    min-height: 88px;
    resize: vertical;
}

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

.permissions-assign-row-form {
    margin: 0;
}

.permissions-select-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 251, 246, 0.98), rgba(237, 244, 233, 0.94));
    border: 1px solid rgba(120, 151, 122, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.permissions-select-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c7a68;
}

.permissions-select-shell select {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(99, 132, 103, 0.18);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #1f3428;
    box-shadow: 0 10px 24px rgba(54, 92, 62, 0.06);
}

.permissions-select-shell select:focus {
    outline: none;
    border-color: rgba(51, 108, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(90, 148, 103, 0.14);
}

.permissions-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(233, 240, 224, 0.92);
    color: #31513b;
}

.permissions-badge.system {
    background: rgba(255, 237, 209, 0.95);
    color: #8a5d20;
}

.permissions-badge.active {
    background: rgba(221, 239, 232, 0.95);
    color: #296150;
}

.permissions-user-table select {
    min-width: 180px;
}

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

.permissions-module-card {
    padding: 16px;
}

.permissions-module-card .panel-head h3 {
    font-size: 18px;
    line-height: 1.2;
}

.permissions-module-card .panel-head p {
    font-size: 12px;
}

.permissions-module-card .permissions-badge {
    font-size: 10px;
}

.permissions-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(152, 170, 139, 0.16);
}

.permissions-checkbox:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.permissions-checkbox input {
    margin-top: 3px;
}

.permissions-checkbox strong,
.permissions-checkbox small {
    display: block;
}

.permissions-checkbox small {
    margin-top: 4px;
    color: #6f7b68;
}

.permissions-matrix-wrap table {
    min-width: 520px;
}

.permissions-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.danger-button {
    color: #8f3030;
    border-color: rgba(143, 48, 48, 0.2);
}

.permission-denied-panel {
    max-width: 760px;
    margin: 40px auto;
    padding: 34px;
    text-align: center;
}

.permission-denied-panel h2 {
    margin: 0 0 10px;
    font-size: 34px;
}

.permission-denied-panel p {
    margin: 0 auto;
    max-width: 560px;
    color: #667163;
}

.permission-denied-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    background: rgba(255, 229, 229, 0.95);
    color: #a34343;
}
.label-alert.warning {
    background: rgba(217, 160, 40, 0.1);
    border: 1px solid rgba(217, 160, 40, 0.18);
    color: #8f5a00;
}

.trend-row span,
.trend-metric strong {
    color: var(--muted);
}

.trend-metric strong {
    color: var(--text);
}

.split-panel {
    display: grid;
    gap: 18px;
}

.metric-block {
    display: grid;
    gap: 12px;
}

.metric-block h4 {
    font-size: 0.98rem;
}

.meter-row {
    display: grid;
    gap: 8px;
}

.meter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
}

.meter-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 33, 43, 0.08);
}

.meter-fill {
    height: 100%;
    border-radius: inherit;
}

.meter-fill.warm {
    background: linear-gradient(90deg, #cb5a35, #e4a04e);
}

.meter-fill.cool {
    background: linear-gradient(90deg, #1f6b77, #3b96a1);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 16px;
}

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

.panel.wide {
    grid-row: span 2;
}

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

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(23, 33, 43, 0.08);
}

th {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

td small {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(209, 154, 32, 0.14);
    color: #8a6614;
    font-size: 0.82rem;
    font-weight: 800;
}

.pill.subtle {
    background: rgba(30, 107, 119, 0.12);
    color: #1e6b77;
}

.pill.danger {
    background: rgba(183, 73, 58, 0.12);
    color: var(--danger);
}

.mini-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.pagination-bar {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pagination-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-links a,
.pagination-current {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
    text-decoration: none;
}

.pagination-current {
    font-weight: 800;
}

@media (max-width: 1180px) {
    html {
        font-size: 15px;
    }

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

    .sidebar {
        position: static;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-nav a {
        justify-content: flex-start;
        text-align: left;
    }

    .sidebar-nav-group {
        grid-column: 1 / -1;
    }

    .sidebar-subnav {
        grid-template-columns: 1fr;
        margin-left: 0;
        padding-left: 12px;
    }

    .commerce-topbar,
    .commerce-stat-grid,
    .dashboard-highlight-grid,
    .commerce-analytics-grid,
    .commerce-bottom-grid,
    .product-card-row,
    .health-kpi-grid {
        grid-template-columns: 1fr;
    }

    .overview-hero,
    .overview-kpis,
    .premium-grid.two-up,
    .premium-grid.split-main {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .analytics-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .report-stats,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .order-product-filter-grid-shell {
        grid-template-columns: 1fr;
    }

    .order-product-category-box {
        max-height: 240px;
    }

    .premium-report-hero,
    .premium-filter-grid {
        grid-template-columns: 1fr;
    }

    .panel.wide {
        grid-row: auto;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 14.5px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .app-menu-toggle {
        display: inline-flex;
    }

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

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1200;
        width: min(320px, calc(100vw - 28px));
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 16px 14px 18px;
        border-radius: 0 24px 24px 0;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.24s ease;
        overflow: hidden;
    }

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

    .brand-block {
        position: sticky;
        top: 0;
        z-index: 2;
        justify-content: flex-start;
        padding: 4px 0 12px;
        background:
            linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 252, 247, 0.9) 78%, rgba(255, 252, 247, 0));
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
        overflow-y: auto;
        align-content: start;
        padding-right: 4px;
    }

    .dashboard-main {
        gap: 16px;
    }

    .profile-card {
        margin-top: auto;
    }

    .auth-brand img {
        width: 84px;
    }

    .auth-card {
        min-height: auto;
        padding: 24px 18px 28px;
    }

    .auth-sheet {
        width: min(390px, 100%);
        margin: 0 auto;
        padding: 24px 20px 20px;
        border-radius: 0;
    }

    .hero-points,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .commerce-topbar {
        grid-template-columns: 1fr;
    }

    .commerce-actions,
    .panel-head-inline {
        flex-wrap: wrap;
    }

    .sidebar-nav a,
    .sidebar-nav-parent {
        justify-content: flex-start;
        text-align: left;
    }

    .sidebar-subnav {
        grid-template-columns: 1fr;
        padding-left: 10px;
    }

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

    .analytic-metrics-row article {
        border-right: none;
        border-bottom: 1px solid rgba(29, 43, 32, 0.08);
        padding-bottom: 12px;
    }

    .analytic-metrics-row article:last-child {
        border-bottom: none;
    }

    .overview-kpis,
    .hero-matrix {
        grid-template-columns: 1fr;
    }

    .hero-stat.spotlight {
        grid-column: span 1;
    }

    .premium-table-head {
        grid-template-columns: 1fr;
    }

    .preview-tab-row {
        display: grid;
        width: 100%;
    }

    .image-ready-grid,
    .image-preview-metrics,
    .image-ready-cleanup-tools,
    .analytics-kpi-grid,
    .analytics-layout,
    .analytics-bottom-grid,
    .analytics-data-grid,
    .permissions-grid,
    .permissions-module-grid {
        grid-template-columns: 1fr;
    }

    .app-top-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .page-subtitle,
    .panel-subtitle,
    .hero-copy p {
        font-size: 0.95rem;
    }

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

    .analytics-hero-actions {
        justify-items: stretch;
    }

    .analytics-range-form {
        justify-content: flex-start;
    }

    .analytics-ring-grid,
    .analytics-donut-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    html {
        font-size: 14px;
    }

    body {
        background:
            linear-gradient(135deg, rgba(255, 246, 220, 0.12), rgba(79, 114, 86, 0.1)),
            linear-gradient(180deg, rgba(255, 241, 189, 0.18), rgba(238, 246, 235, 0.72));
    }

    body.auth-body {
        background: #eef4eb;
    }

    .auth-shell,
    .dashboard-layout {
        width: min(100%, calc(100% - 20px));
        padding: 10px 0;
    }

    .auth-hero,
    .auth-card,
    .sidebar,
    .premium-surface,
    .premium-panel,
    .hero-banner,
    .panel,
    .stat-card {
        padding: 18px;
        border-radius: 22px;
    }

    .auth-brand {
        gap: 12px;
        margin-bottom: 16px;
        padding: 0;
    }

    .auth-brand img {
        width: 78px;
    }

    .auth-brand-centered {
        width: 100%;
        gap: 10px;
    }

    .auth-login-kicker {
        margin-bottom: 10px;
    }

    .auth-login-title {
        font-size: 1.24rem;
    }

    .auth-login-subtitle {
        font-size: 0.9rem;
    }

    .auth-avatar-badge {
        width: 92px;
        height: 92px;
        margin-bottom: 16px;
    }

    .auth-sheet::before {
        left: calc(100% + 16px);
        width: 190px;
        height: calc(100% + 70px);
    }

    .auth-sheet::after {
        right: -16px;
        width: 16px;
    }

    .auth-sheet-left-plane {
        left: -16px;
        width: 16px;
    }

    .hero-points,
    .stats-grid,
    .mini-meta,
    .analytics-kpi-grid,
    .permissions-hero-stats {
        grid-template-columns: 1fr;
    }

    .commerce-stat-grid,
    .dashboard-highlight-grid,
    .product-card-row {
        grid-template-columns: 1fr;
    }

    .label-stat-card {
        padding: 11px 12px;
    }

    .label-stat-inline {
        gap: 6px;
    }

    .image-ready-controls,
    .image-ready-preview-card {
        padding: 18px;
    }

    .image-preview-board {
        min-height: 360px;
        padding: 12px;
    }

    .brand-logo-full {
        max-width: 76px;
    }

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

    .app-top-header {
        gap: 12px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle,
    .panel-subtitle,
    .premium-eyebrow,
    .hero-copy p,
    .stat-card p,
    .panel p,
    .premium-table-wrap th,
    .premium-table-wrap td {
        font-size: 0.9rem;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-nav a,
    .sidebar-nav-parent {
        justify-content: flex-start;
        text-align: left;
    }

    .analytics-page-track,
    .analytics-page-stats,
    .analytics-stack-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .analytics-ring {
        width: 112px;
        height: 112px;
    }

    .analytics-donut {
        width: 116px;
        height: 116px;
    }

    .permissions-hero {
        padding: 22px;
    }

    .permissions-tabs {
        flex-direction: column;
    }

    .permissions-hero h2,
    .permission-denied-panel h2 {
        font-size: 26px;
    }

    .permissions-form-actions,
    .permission-denied-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .permissions-create-grid {
        grid-template-columns: 1fr;
    }

    .permissions-row-actions {
        justify-content: flex-start;
    }

    .permissions-page-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .permissions-user-table select {
        min-width: 100%;
    }

    .app-top-header,
    .app-top-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-user-chip {
        text-align: left;
    }

    .mini-trend-item,
    .customer-row,
    .stock-row {
        flex-direction: column;
    }

    .orders-page-top,
    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-row-meta,
    .stock-row-meta {
        justify-items: start;
    }

    .filter-panel-top,
    .report-actions {
        width: 100%;
    }

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

    .sidebar-nav a {
        justify-content: center;
        text-align: center;
    }

    .sidebar-nav-parent {
        justify-content: flex-start;
        text-align: left;
    }

    .sidebar-subnav {
        grid-template-columns: 1fr;
        padding-left: 10px;
    }

    .mini-card-top,
    .trend-row {
        grid-template-columns: 1fr;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        min-width: 0;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tr {
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.52);
    }

    td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.76rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        font-weight: 800;
    }

    .compact-table,
    .compact-table thead,
    .compact-table tbody,
    .compact-table th,
    .compact-table td,
    .compact-table tr {
        display: block;
        min-width: 0;
    }

    .compact-table thead {
        display: none;
    }

    .compact-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .compact-table tr {
        padding: 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(23, 33, 43, 0.08);
    }

    .compact-table td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        padding: 6px 0;
        border-bottom: none;
        white-space: normal;
    }

    .sender-config-table tbody {
        padding: 0;
        gap: 10px;
    }

    .order-product-filter-actions {
        align-items: stretch;
    }

    .order-product-filter-highlights {
        margin-left: 0;
        width: 100%;
    }

    .order-product-filter-chip {
        flex: 1 1 100%;
    }

    .sender-config-table tr {
        padding: 12px 14px;
    }

    .sender-config-table td {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .note-check-table td {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .address-check-table td {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .address-check-table td:last-child {
        align-items: start;
    }

    .order-admin-table,
    .order-admin-table thead,
    .order-admin-table tbody,
    .order-admin-table th,
    .order-admin-table td,
    .order-admin-table tr {
        display: block;
        min-width: 0;
    }

    .order-admin-table thead {
        display: none;
    }

    .order-admin-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .order-admin-table tr {
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(29, 43, 32, 0.08);
    }

    .order-admin-table tbody td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border: none;
    }

    .order-table-link {
        min-height: calc(100% + 16px);
        margin: -8px -12px;
        padding: 8px 12px;
    }

    .order-admin-table th:nth-child(3),
    .order-admin-table td:nth-child(3),
    .order-admin-table th:nth-child(7),
    .order-admin-table td:nth-child(7),
    .order-admin-table th:nth-child(8),
    .order-admin-table td:nth-child(8),
    .order-admin-table th:nth-child(9),
    .order-admin-table td:nth-child(9) {
        width: auto;
        min-width: 0;
        white-space: normal;
    }

    .order-admin-table th:nth-child(n+6),
    .order-admin-table td:nth-child(n+6) {
        text-align: left;
    }

    .order-admin-table th:nth-child(3),
    .order-admin-table td:nth-child(3) {
        text-align: left;
    }

    .order-admin-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.72rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        font-weight: 800;
    }

    .order-detail-dialog {
        width: calc(100vw - 20px);
        border-radius: 20px;
    }

    .order-dialog-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .order-dialog-card-wide {
        grid-column: auto;
    }

    .report-analytics-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .order-status-result-grid {
        grid-template-columns: 1fr;
    }

    .order-status-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    html {
        font-size: 13.5px;
    }

    .order-status-hero {
        padding: 36px 18px;
    }

    .order-status-search-shell {
        padding: 10px 14px;
    }

    .order-status-search-shell input {
        font-size: 16px;
    }

    .order-status-summary,
    .order-status-card,
    .order-status-items,
    .order-status-empty {
        padding: 18px;
    }

    .order-status-mini-stats {
        grid-template-columns: 1fr;
    }

    .order-status-card-head,
    .order-status-items-head,
    .order-status-customer-panel {
        flex-direction: column;
    }

    .order-status-address-grid div,
    .order-status-order-grid div,
    .order-status-inline-info {
        grid-template-columns: 1fr;
    }

    .order-status-table th,
    .order-status-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .premium-surface,
    .premium-panel,
    .panel,
    .sidebar,
    .hero-banner,
    .stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .page-title {
        font-size: 1.18rem;
    }

    .page-subtitle,
    .panel-subtitle,
    .premium-table-wrap th,
    .premium-table-wrap td {
        font-size: 0.86rem;
    }
}

@media print {
    body {
        background: white;
    }

    body.printing-report .sidebar,
    body.printing-report .no-print,
    body.printing-report .logout-link,
    body.printing-report .report-topbar,
    body.printing-report .premium-report-hero,
    body.printing-report .premium-filter-panel,
    body.printing-report .report-stats {
        display: none !important;
    }

    body.printing-report .dashboard-layout {
        width: 100%;
        display: block;
        padding: 0;
    }

    body.printing-report .dashboard-main,
    body.printing-report .supplier-report-main {
        display: block;
    }

    body.printing-report .premium-table-panel {
        color: #111;
        background: white !important;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    body.printing-report .premium-table-head {
        margin-bottom: 10px;
    }

    body.printing-report .print-report-title {
        display: block;
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: #111;
    }

    body.printing-report .print-report-title strong {
        font-weight: 800;
        color: #111;
    }

    body.printing-report .table-summary-chip {
        border: none;
        background: white;
        padding: 0;
        min-width: 0;
    }

    body.printing-report .premium-table-wrap {
        border: none;
        background: white;
        margin-top: 0;
    }

    body.printing-report .compact-table {
        min-width: 0;
    }

    body.printing-report .compact-table th,
    body.printing-report .compact-table td {
        font-size: 11px;
        padding: 8px;
    }

    body.printing-report .compact-table th {
        background: white;
        border-bottom: 1px solid #ddd;
    }

    body.printing-report .compact-table td {
        border-bottom: 1px solid #e5e5e5;
    }
}

/* Laravel dashboard design repair layer */
body.dashboard-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 9% 10%, rgba(223, 182, 80, 0.16), transparent 24%),
        radial-gradient(circle at 88% 7%, rgba(54, 166, 106, 0.13), transparent 22%),
        linear-gradient(180deg, #fcf9f3 0%, #f5efe5 48%, #ede6dc 100%);
}

body.dashboard-page::before {
    content:
        "🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲 🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲"
        "  🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳 🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳"
        "  🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲 🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲"
        "  🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳 🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳"
        "  🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲 🍛 🥩 🍗 🥘 🍚 🧄 🧅 🥦 🌶️ 🍋 🥗 🍖 🍤 🥔 🍞 🍲"
        "  🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳 🍽️ 🥕 🍅 🫑 🧀 🍜 🍱 🍙 🍘 🥬 🥒 🍠 🍢 🥟 🫓 🍳";
    position: fixed;
    inset: -18vh -18vw;
    z-index: 0;
    display: block;
    overflow: hidden;
    color: rgba(33, 132, 85, 0.22);
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1.75;
    letter-spacing: 8px;
    word-spacing: 8px;
    white-space: normal;
    opacity: 0.28;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

body.dashboard-page::after {
    content: "";
    position: fixed;
    left: 252px;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    border-radius: 28px 0 0 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 244, 0.9)),
        radial-gradient(circle at 12% var(--page-open-y, 88px), rgba(8, 113, 63, 0.18), transparent 28%),
        radial-gradient(circle at 20% calc(var(--page-open-y, 88px) + 80px), rgba(24, 128, 82, 0.16), transparent 30%);
    box-shadow:
        0 34px 70px rgba(18, 48, 34, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform-origin: 0 var(--page-open-y, 88px);
    transform: translate3d(-58px, 0, 0) scaleX(0.035) scaleY(0.08);
    pointer-events: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform, opacity, border-radius, filter;
}

@media (max-width: 900px) {
    body.dashboard-page::after {
        left: 0;
        border-radius: 0;
    }
}

body.dashboard-page a {
    color: inherit;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 18px;
    padding: 0 14px 30px 0;
}

body.dashboard-page .topbar,
body.dashboard-page .app-sidebar,
body.dashboard-page .premium-panel,
body.dashboard-page .premium-surface,
body.dashboard-page .commerce-panel,
body.dashboard-page .commerce-stat-card,
body.dashboard-page .dashboard-highlight-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.dashboard-page .topbar,
body.dashboard-page .app-sidebar,
body.dashboard-page .premium-panel,
body.dashboard-page .premium-surface,
body.dashboard-page .commerce-panel,
body.dashboard-page .commerce-stat-card,
body.dashboard-page .dashboard-highlight-card,
body.dashboard-page .panel-card,
body.dashboard-page .content-card {
    box-shadow:
        0 28px 58px rgba(18, 48, 34, 0.14),
        0 10px 18px rgba(18, 48, 34, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -2px 0 rgba(18, 48, 34, 0.05);
    transform: translateZ(0);
}

body.dashboard-page .app-main {
    transform-origin: 0 var(--page-open-y, 88px);
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

body.dashboard-page.is-preparing-page-open .app-main {
    opacity: 0;
    transform: translate3d(-64px, 0, 0) scale3d(0.025, 0.12, 1);
}

body.dashboard-page .app-main.is-soft-opening {
    animation: mac-content-open 0.64s cubic-bezier(.16, .84, .24, 1) both;
}

@keyframes mac-content-open {
    0% {
        opacity: .08;
        transform: translate3d(-64px, 0, 0) scale3d(0.025, 0.12, 1);
    }

    24% {
        opacity: .58;
        transform: translate3d(-42px, 0, 0) scale3d(0.22, 0.52, 1);
    }

    54% {
        opacity: .94;
        transform: translate3d(-12px, 0, 0) scale3d(0.78, 0.92, 1);
    }

    82% {
        opacity: 1;
        transform: translate3d(2px, 0, 0) scale3d(1.012, 1.004, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.42s;
    animation-timing-function: cubic-bezier(.19, 1, .22, 1);
}

::view-transition-old(root) {
    opacity: .96;
    filter: blur(1px);
}

::view-transition-new(root) {
    filter: blur(0);
}

@keyframes mac-page-open {
    0% {
        opacity: 0;
        transform: translate3d(-18px, 0, 0) scaleX(0.92) scaleY(0.985);
        filter: blur(5px);
    }

    58% {
        opacity: 1;
        transform: translate3d(2px, 0, 0) scaleX(1.004) scaleY(1.002);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.dashboard-page .app-main {
        animation: none;
    }
}

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 6px;
    max-height: 100vh;
    min-width: 0;
    padding: 0 12px 12px 0;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(223, 182, 80, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(243, 249, 245, 0.86));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
}

.brand-lockup {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
    text-align: center;
}

.brand-lockup .brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex: 0 0 76px;
}

.brand-lockup strong,
.user-chip span {
    display: block;
    color: #204836;
    font-size: 0.94rem;
    line-height: 1.2;
}

.brand-lockup strong {
    display: none;
}

.brand-lockup small,
.user-chip small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.brand-lockup small {
    color: #204836;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.sidebar-menu-button,
.mobile-sidebar-fab {
    position: relative;
    overflow: hidden;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(24, 128, 82, 0.14);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 244, 0.86)),
        radial-gradient(circle at 25% 15%, rgba(74, 240, 122, 0.22), transparent 34%),
        radial-gradient(circle at 85% 85%, rgba(8, 113, 63, 0.2), transparent 38%);
    box-shadow:
        0 14px 26px rgba(18, 48, 34, 0.13),
        0 4px 8px rgba(18, 48, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 -2px 0 rgba(18, 48, 34, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sidebar-menu-button::before,
.mobile-sidebar-fab::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 52%);
    pointer-events: none;
}

.sidebar-menu-button span,
.mobile-sidebar-fab span {
    position: relative;
    z-index: 1;
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b5a35, #19d85b);
    box-shadow: 0 2px 5px rgba(8, 113, 63, 0.18);
    transition: transform 0.24s ease, opacity 0.2s ease, width 0.22s ease, background 0.22s ease;
}

.sidebar-menu-button {
    display: grid;
    grid-template-columns: repeat(2, 5px);
    grid-auto-rows: 5px;
    place-content: center;
    gap: 5px;
}

.sidebar-menu-button .sidebar-menu-dot {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b5a35, #19d85b);
    box-shadow: none;
    transform: none;
    opacity: 1;
    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-menu-button:hover .sidebar-menu-dot {
    width: 5px;
    transform: scale(1.12);
    background: linear-gradient(135deg, #19d85b, #08713f);
}

.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:first-child,
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:nth-child(2),
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:last-child {
    width: 5px;
    transform: none;
    opacity: 1;
}

.sidebar-menu-button span:nth-child(2),
.mobile-sidebar-fab span:nth-child(2) {
    width: 14px;
}

.sidebar-menu-button span:last-child,
.mobile-sidebar-fab span:last-child {
    width: 10px;
}

.sidebar-menu-button:hover,
.mobile-sidebar-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 18px 32px rgba(18, 48, 34, 0.18),
        0 7px 12px rgba(8, 113, 63, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -2px 0 rgba(18, 48, 34, 0.07);
}

.sidebar-menu-button:hover span,
.mobile-sidebar-fab:hover span {
    width: 20px;
    background: linear-gradient(90deg, #19d85b, #08713f);
}

.sidebar-menu-button[aria-expanded="true"],
.mobile-sidebar-fab[aria-expanded="true"] {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(234, 246, 240, 0.9)),
        radial-gradient(circle at 80% 18%, rgba(25, 216, 91, 0.22), transparent 36%);
    border-color: rgba(24, 128, 82, 0.18);
}

.sidebar-menu-button[aria-expanded="true"] span,
.mobile-sidebar-fab[aria-expanded="true"] span {
    background: linear-gradient(90deg, #0b5a35, #08713f);
    box-shadow: none;
}

.sidebar-menu-button[aria-expanded="true"] span:first-child,
.mobile-sidebar-fab[aria-expanded="true"] span:first-child {
    width: 10px;
    transform: translate(-4px, 3px) rotate(-34deg);
}

.sidebar-menu-button[aria-expanded="true"] span:nth-child(2),
.mobile-sidebar-fab[aria-expanded="true"] span:nth-child(2) {
    opacity: 1;
    width: 17px;
    transform: translateX(1px);
}

.sidebar-menu-button[aria-expanded="true"] span:last-child,
.mobile-sidebar-fab[aria-expanded="true"] span:last-child {
    width: 10px;
    transform: translate(-4px, -3px) rotate(34deg);
}

.sidebar-menu-button .sidebar-menu-dot,
.sidebar-menu-button:hover .sidebar-menu-dot,
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot,
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:first-child,
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:nth-child(2),
.sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:last-child {
    width: 5px;
    height: 5px;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.sidebar-menu-button:hover .sidebar-menu-dot {
    transform: scale(1.12);
}

.sidebar-nav {
    display: grid;
    gap: 3px;
    min-height: 0;
    align-content: start;
    grid-auto-rows: min-content;
    overflow-y: auto;
    padding: 0 4px 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-nav a,
.sidebar-group-label {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px 5px 14px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 251, 248, 0.66)),
        linear-gradient(90deg, rgba(8, 113, 63, 0.07), rgba(25, 216, 91, 0.06));
    color: #284133;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
    box-shadow:
        0 7px 14px rgba(18, 48, 34, 0.08),
        0 2px 3px rgba(18, 48, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(18, 48, 34, 0.05);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-nav a::before,
.sidebar-group-label::before {
    content: "";
    position: absolute;
    inset: 7px auto 7px 6px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #19d85b, #08713f);
    opacity: 0;
    transform: scaleY(0.2);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.sidebar-nav a::after,
.sidebar-group-label::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 255, 255, 0.55), transparent 24%),
        linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 42%, transparent 72%);
    opacity: 0;
    transform: translateX(-120%);
    transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.22s ease;
    z-index: -1;
}

.sidebar-nav a:hover,
.sidebar-group-label:hover {
    transform: translate(4px, -3px) scale(1.012);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 249, 0.94)),
        linear-gradient(90deg, rgba(8, 113, 63, 0.15), rgba(25, 216, 91, 0.12));
    color: #123829;
    box-shadow:
        0 18px 32px rgba(18, 48, 34, 0.16),
        0 7px 12px rgba(8, 113, 63, 0.12),
        -4px 0 0 rgba(25, 216, 91, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -2px 0 rgba(18, 48, 34, 0.06);
}

.sidebar-nav a:hover::after,
.sidebar-group-label:hover::after {
    opacity: 1;
    transform: translateX(120%);
}

.sidebar-nav a.active,
.sidebar-group.open > .sidebar-group-label,
.sidebar-group.is-open > .sidebar-group-label {
    background:
        linear-gradient(135deg, rgba(6, 71, 45, 0.98), rgba(8, 113, 63, 0.96) 62%, rgba(25, 216, 91, 0.86)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 18px 30px rgba(8, 113, 63, 0.24),
        0 7px 14px rgba(18, 48, 34, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.sidebar-nav a.active:hover,
.sidebar-group.open > .sidebar-group-label:hover,
.sidebar-group.is-open > .sidebar-group-label:hover {
    color: #ffffff;
}

.sidebar-nav a.active::before,
.sidebar-group.open > .sidebar-group-label::before,
.sidebar-group.is-open > .sidebar-group-label::before {
    opacity: 0;
    transform: scaleY(0.2);
    box-shadow: none;
}

.sidebar-group {
    display: grid;
    gap: 2px;
    transition: gap 0.24s ease;
}

.sidebar-group.open,
.sidebar-group.is-open {
    gap: 5px;
}

.sidebar-group-label {
    position: relative;
    padding-right: 26px;
    padding-left: 14px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #08713f;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.55)),
        linear-gradient(135deg, rgba(8, 113, 63, 0.22), rgba(25, 216, 91, 0.2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 5px 10px rgba(8, 113, 63, 0.12);
    transition: transform 0.24s ease, filter 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.nav-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-group-label:hover .nav-icon,
.sidebar-nav a.active .nav-icon,
.sidebar-group.open > .sidebar-group-label .nav-icon,
.sidebar-group.is-open > .sidebar-group-label .nav-icon {
    transform: translateY(-1px) scale(1.08);
    color: #ffffff;
    background: linear-gradient(135deg, #06472d, #08713f 55%, #19d85b);
    filter: drop-shadow(0 5px 7px rgba(8, 113, 63, 0.22));
}

.sidebar-caret {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.7;
    transition: transform 0.24s ease, opacity 0.22s ease;
}

.sidebar-group.open .sidebar-caret,
.sidebar-group.is-open .sidebar-caret {
    transform: translateY(-35%) rotate(225deg);
}

.sidebar-submenu {
    display: grid;
    gap: 3px;
    margin-left: 13px;
    padding: 0 0 1px 8px;
    border-left: 1px solid rgba(33, 132, 85, 0.14);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.34s ease, opacity 0.22s ease, transform 0.26s ease, padding 0.22s ease;
}

.sidebar-group.open .sidebar-submenu,
.sidebar-group.is-open .sidebar-submenu {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
}

.sidebar-submenu a {
    min-height: 41px;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 0.76rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(237, 252, 242, 0.64));
    transform: translateX(-8px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-submenu a:hover {
    color: #123829;
    background: linear-gradient(90deg, rgba(232, 247, 239, 0.98), rgba(221, 252, 232, 0.94));
    box-shadow:
        0 10px 18px rgba(18, 48, 34, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sidebar-submenu a.active {
    background: linear-gradient(135deg, #06472d, #08713f 70%, #19d85b);
    color: #ffffff;
}

.sidebar-group.open .sidebar-submenu a,
.sidebar-group.is-open .sidebar-submenu a {
    transform: translateX(0);
    opacity: 1;
}

.sidebar-group.open .sidebar-submenu a:nth-child(2),
.sidebar-group.is-open .sidebar-submenu a:nth-child(2) {
    transition-delay: 0.035s;
}

.sidebar-group.open .sidebar-submenu a:nth-child(3),
.sidebar-group.is-open .sidebar-submenu a:nth-child(3) {
    transition-delay: 0.07s;
}

.sidebar-group.open .sidebar-submenu a:nth-child(4),
.sidebar-group.is-open .sidebar-submenu a:nth-child(4) {
    transition-delay: 0.105s;
}

.sidebar-group.open .sidebar-submenu a:nth-child(n+5),
.sidebar-group.is-open .sidebar-submenu a:nth-child(n+5) {
    transition-delay: 0.14s;
}

.app-main {
    min-width: 0;
    display: grid;
    gap: 18px;
    align-content: start;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 252, 247, 0.97), rgba(244, 249, 245, 0.97));
    box-shadow: var(--shadow);
}

.topbar h1 {
    margin: 0;
    color: #1e3328;
    font-size: clamp(1.28rem, 1.9vw, 1.85rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.user-chip {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    text-align: right;
}

.sync-status {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.68rem !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(47, 122, 80, 0.08);
}

.sync-status i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(47, 122, 80, 0.12);
}

.sync-status.online {
    color: #067a46;
}

.user-chip form {
    margin: 0;
}

.user-chip button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 242, 225, 0.96), rgba(237, 247, 240, 0.96));
    color: #214433;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

/* Compact dashboard topbar */
body.dashboard-page .topbar {
    min-height: 58px;
    padding: 9px 12px;
    gap: 10px;
    border-radius: 18px;
}

body.dashboard-page .topbar .eyebrow {
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.08em;
}

body.dashboard-page .topbar h1 {
    margin-top: 3px;
    font-size: clamp(1rem, 1.45vw, 1.38rem);
    line-height: 1;
}

body.dashboard-page .user-chip {
    gap: 8px;
}

body.dashboard-page .user-chip span {
    font-size: 0.8rem;
    line-height: 1.15;
}

body.dashboard-page .user-chip small {
    font-size: 0.64rem;
    line-height: 1.2;
}

body.dashboard-page .sync-status {
    min-height: 25px;
    padding: 0 8px;
    gap: 5px;
    font-size: 0.58rem !important;
}

body.dashboard-page .sync-status i {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(47, 122, 80, 0.12);
}

body.dashboard-page .user-chip button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 0.68rem;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.64), transparent 28%),
        rgba(236, 244, 236, 0.52);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

body.is-loading-page .page-loader {
    opacity: 1;
    visibility: visible;
}

.page-loader-card {
    min-width: 132px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(8, 113, 63, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 240, 0.9)),
        #ffffff;
    box-shadow:
        0 28px 58px rgba(18, 48, 34, 0.18),
        0 10px 18px rgba(8, 113, 63, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(8px) scale(0.96);
    transition: transform 0.24s cubic-bezier(.19, 1, .22, 1);
}

body.is-loading-page .page-loader-card {
    transform: translateY(0) scale(1);
}

.page-loader-card strong {
    color: #0b2f1f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-loader-logo {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96), rgba(238, 249, 240, 0.84)),
        linear-gradient(145deg, rgba(8, 113, 63, 0.12), rgba(25, 216, 91, 0.1));
    box-shadow:
        0 16px 28px rgba(18, 48, 34, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.page-loader-logo::before,
.page-loader-logo::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 26px;
    border: 2px solid transparent;
    border-top-color: rgba(8, 113, 63, 0.76);
    border-right-color: rgba(25, 216, 91, 0.44);
    animation: page-loader-spin 1.05s linear infinite;
}

.page-loader-logo::after {
    inset: -13px;
    border-top-color: rgba(214, 161, 26, 0.72);
    border-right-color: transparent;
    border-bottom-color: rgba(8, 113, 63, 0.24);
    animation-duration: 1.55s;
    animation-direction: reverse;
}

.page-loader-logo img {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    object-fit: contain;
    animation: page-loader-logo-pulse 1.15s ease-in-out infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes page-loader-logo-pulse {
    0%, 100% {
        transform: scale(0.94);
        filter: saturate(0.96);
    }

    50% {
        transform: scale(1.03);
        filter: saturate(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .page-loader-card,
    .page-loader-logo,
    .page-loader-logo::before,
    .page-loader-logo::after,
    .page-loader-logo img {
        transition: none;
        animation: none;
    }
}

/* Compact sidebar brand header */
body.dashboard-page .brand-card {
    min-height: 52px;
    padding: 4px 2px 6px 0;
    align-items: center;
    justify-content: center;
}

body.dashboard-page .brand-lockup {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    text-align: left;
}

body.dashboard-page .brand-lockup .brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

body.dashboard-page .brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

body.dashboard-page .brand-copy strong {
    display: block;
    color: #0b2f1f;
    font-size: 0.88rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

body.dashboard-page .brand-copy small {
    display: block;
    color: #08713f;
    font-size: 0.62rem;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0;
}

body.dashboard-page .sidebar-menu-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 12px;
    grid-template-columns: repeat(2, 4px);
    grid-auto-rows: 4px;
    gap: 4px;
}

body.dashboard-page .sidebar-menu-button::before {
    inset: 3px;
    border-radius: 9px;
}

body.dashboard-page .sidebar-menu-button .sidebar-menu-dot,
body.dashboard-page .sidebar-menu-button:hover .sidebar-menu-dot,
body.dashboard-page .sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot,
body.dashboard-page .sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:first-child,
body.dashboard-page .sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:nth-child(2),
body.dashboard-page .sidebar-menu-button[aria-expanded="true"] .sidebar-menu-dot:last-child {
    width: 4px;
    height: 4px;
}

body.sidebar-collapsed .brand-card {
    min-height: 40px;
    padding-bottom: 4px;
}

.mobile-sidebar-fab,
.sidebar-backdrop {
    display: none;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 82px minmax(0, 1fr);
}

body.sidebar-collapsed .app-sidebar {
    padding: 0 10px 12px 0;
}

body.sidebar-collapsed .brand-card {
    justify-content: center;
    padding-inline: 0;
}

body.sidebar-collapsed .brand-lockup {
    display: none;
}

body.sidebar-collapsed .brand-lockup > div,
body.sidebar-collapsed .sidebar-nav a span:not(.nav-icon),
body.sidebar-collapsed .sidebar-group-label span:not(.nav-icon),
body.sidebar-collapsed .sidebar-caret,
body.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-group-label {
    justify-content: center;
    padding: 10px;
}

.commerce-dashboard,
.analytics-page,
.all-products-main,
.daily-order-main,
.order-product-main,
.cutting-room-main,
.image-ready-panel,
.supplier-report-main,
.orders-status-main,
.requests-page,
.email-settings-page,
.permissions-page,
.audit-log-page {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.panel-card,
.content-card,
.analytics-trend-panel,
.analytics-pages-panel,
.analytics-distribution-panel,
.analytics-side-panel,
.analytics-table-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 244, 238, 0.94));
    box-shadow: var(--shadow);
}

.panel-head {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
}

.panel-head h2,
.panel-head h3,
.analytics-panel-head h3 {
    margin: 0;
    color: #1f3529;
    letter-spacing: 0;
}

.panel-head h3,
.analytics-panel-head h3 {
    font-size: 1.05rem;
}

.panel-head p,
.analytics-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.premium-panel,
.premium-surface,
.commerce-panel,
.commerce-stat-card,
.dashboard-highlight-card {
    min-width: 0;
}

.table-wrap,
.premium-table-wrap,
.data-table-wrap,
.order-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}

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

.label-workspace {
    overflow: hidden;
}

.label-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.42fr) minmax(270px, 0.68fr);
}

.label-info-card {
    overflow: hidden;
}

.label-info-card .premium-table-wrap {
    margin-top: 0;
    border-radius: 18px;
    overflow: hidden;
}

.sender-config-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.sender-config-table th,
.sender-config-table td {
    padding: 9px 10px;
    font-size: 0.74rem;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sender-config-table th:first-child,
.sender-config-table td:first-child {
    width: 34%;
    white-space: nowrap;
}

.sender-config-table th:last-child,
.sender-config-table td:last-child {
    width: 66%;
}

.preview-tab-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.preview-tab {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(29, 43, 32, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
    color: #33463b;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.preview-tab.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #215f3c, #36a66a);
}

.preview-tab-count {
    min-width: 24px;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 218px minmax(0, 1fr);
        width: 100%;
        gap: 14px;
    }

    .dashboard-highlight-grid,
    .commerce-stat-grid,
    .analytics-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commerce-analytics-grid,
    .commerce-bottom-grid,
    .analytics-layout,
    .analytics-bottom-grid,
    .analytics-data-grid,
    .label-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body.dashboard-page.sidebar-mobile-open {
        overflow: hidden;
    }

    .app-shell {
        width: min(100%, calc(100% - 20px));
        display: block;
        padding-top: 72px;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1200;
        width: min(320px, calc(100vw - 28px));
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        padding: 16px 14px 18px;
        border-radius: 0 24px 24px 0;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.24s ease;
    }

    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }

    .mobile-sidebar-fab {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1100;
        display: inline-flex;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1150;
        display: block;
        background: rgba(17, 24, 39, 0.36);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

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

    body.dashboard-page .topbar {
        min-height: auto;
        padding: 10px 12px;
        gap: 8px;
    }

    .user-chip {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        text-align: left;
        flex-wrap: wrap;
    }

    body.dashboard-page .user-chip {
        gap: 7px;
    }
}

@media (max-width: 680px) {
    .app-shell {
        width: min(100%, calc(100% - 16px));
        padding-bottom: 18px;
    }

    .app-main,
    .commerce-dashboard,
    .analytics-page,
    .label-form {
        gap: 14px;
    }

    .topbar,
    .premium-panel,
    .premium-surface,
    .commerce-panel,
    .commerce-stat-card,
    .dashboard-highlight-card,
    .panel-card,
    .content-card {
        border-radius: 20px;
    }

    .dashboard-highlight-grid,
    .commerce-stat-grid,
    .analytics-kpi-grid,
    .health-kpi-grid,
    .product-card-row,
    .analytics-ring-grid,
    .analytics-donut-grid {
        grid-template-columns: 1fr;
    }

    .label-input-card,
    .label-info-card {
        padding: 18px;
    }

    .field-head-inline,
    .label-form-actions,
    .preview-tab-row {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-summary-chips {
        align-items: stretch;
    }

    .inline-summary-chip,
    .label-form-actions .filter-button,
    .label-form-actions .ghost-button,
    .preview-tab {
        width: 100%;
        justify-content: center;
    }

    .sender-config-table th:first-child,
    .sender-config-table td:first-child,
    .sender-config-table th:last-child,
    .sender-config-table td:last-child {
        width: auto;
        white-space: normal;
    }
}

/* Laravel dashboard stat card text repair */
.commerce-stat-card > div:not(.stat-icon) {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-right: 52px;
}

.commerce-stat-card > div:not(.stat-icon) span,
.commerce-stat-card > div:not(.stat-icon) small {
    display: block;
}

/* Laravel dashboard narrow metric repair */
.commerce-stat-card > strong {
    max-width: 100%;
    font-size: clamp(1.42rem, 2.05vw, 1.9rem);
    overflow-wrap: anywhere;
}

.commerce-dashboard .dashboard-highlight-card,
.commerce-dashboard .commerce-stat-card,
.commerce-dashboard .commerce-panel {
    position: relative;
    border: 1px solid rgba(23, 52, 40, 0.1);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.9)),
        radial-gradient(circle at 18% 0%, rgba(8, 113, 63, 0.08), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(24, 128, 82, 0.08), transparent 32%);
    box-shadow:
        0 24px 40px rgba(18, 48, 34, 0.12),
        0 7px 14px rgba(18, 48, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -2px 0 rgba(18, 48, 34, 0.05);
    transform: translateZ(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.commerce-dashboard .dashboard-highlight-card::before,
.commerce-dashboard .commerce-stat-card::before,
.commerce-dashboard .commerce-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 42%);
}

.commerce-dashboard .dashboard-highlight-card > *,
.commerce-dashboard .commerce-stat-card > *,
.commerce-dashboard .commerce-panel > * {
    position: relative;
    z-index: 1;
}

.commerce-dashboard .dashboard-highlight-card:hover,
.commerce-dashboard .commerce-stat-card:hover,
.commerce-dashboard .commerce-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(8, 113, 63, 0.16);
    box-shadow:
        0 30px 54px rgba(18, 48, 34, 0.16),
        0 10px 18px rgba(8, 113, 63, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -3px 0 rgba(18, 48, 34, 0.06);
}

.commerce-dashboard .stat-icon,
.commerce-dashboard .dashboard-highlight-icon {
    box-shadow:
        0 12px 18px rgba(18, 48, 34, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -2px 0 rgba(18, 48, 34, 0.08);
}

.commerce-dashboard .commerce-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.commerce-dashboard .commerce-stat-card {
    min-height: 136px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon copy"
        "value value"
        "meta meta";
    align-content: space-between;
    gap: 9px 10px;
    padding: 14px;
    overflow: hidden;
}

.commerce-dashboard .commerce-stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -42px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--stat-accent, #08713f) 13%, transparent);
    pointer-events: none;
}

.commerce-dashboard .commerce-stat-card .stat-icon {
    position: relative;
    top: auto;
    right: auto;
    grid-area: icon;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--stat-accent, #08713f) 88%, #ffffff 8%), color-mix(in srgb, var(--stat-accent, #08713f) 68%, #0b2f1f 20%));
    font-size: 1.12rem;
    line-height: 1;
}

.commerce-dashboard .commerce-stat-card .stat-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
    display: block;
}

.commerce-dashboard .commerce-stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.commerce-dashboard .commerce-stat-card .stat-copy {
    grid-area: copy;
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding-right: 0;
}

.commerce-dashboard .commerce-stat-card .stat-copy span {
    color: #0b2f1f;
    font-size: 0.78rem;
    line-height: 1.12;
    font-weight: 900;
}

.commerce-dashboard .commerce-stat-card .stat-copy small {
    color: #627568;
    font-size: 0.62rem;
    line-height: 1.2;
    font-weight: 750;
}

.commerce-dashboard .commerce-stat-card > strong {
    grid-area: value;
    margin: 0;
    color: #082718;
    font-size: clamp(1.38rem, 1.8vw, 2.05rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.commerce-dashboard .commerce-stat-card > em {
    grid-area: meta;
    width: fit-content;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: 999px;
    color: #52685a;
    background: color-mix(in srgb, var(--stat-accent, #08713f) 10%, #ffffff 86%);
    border: 1px solid color-mix(in srgb, var(--stat-accent, #08713f) 14%, transparent);
    font-size: 0.62rem;
    font-weight: 800;
}

.commerce-dashboard .commerce-stat-card > em b {
    color: var(--stat-accent, #08713f);
    font-weight: 950;
}

.commerce-dashboard .stat-card-points {
    --stat-accent: #d6a11a;
}

.commerce-dashboard .stat-card-orders {
    --stat-accent: #1976f8;
}

.commerce-dashboard .stat-card-customers {
    --stat-accent: #52a52f;
}

.commerce-dashboard .stat-card-products {
    --stat-accent: #0aa6a6;
}

.commerce-dashboard .stat-card-customers .stat-icon {
    background: linear-gradient(145deg, #2f8f1f, #7bcf32);
    color: #ffffff;
}

.commerce-dashboard .stat-card-products .stat-icon {
    background: linear-gradient(145deg, #087f84, #16d4c7);
    color: #ffffff;
}

.commerce-dashboard .stat-card-delivery {
    --stat-accent: #d98218;
}

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

@media (max-width: 680px) {
    .commerce-dashboard .commerce-stat-grid {
        grid-template-columns: 1fr;
    }
}

.commerce-dashboard .chart-card,
.commerce-dashboard .target-ring,
.commerce-dashboard .product-mini-card,
.commerce-dashboard .focus-row {
    border: 1px solid rgba(23, 52, 40, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 243, 0.86)),
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.08), transparent 35%);
    box-shadow:
        0 14px 24px rgba(18, 48, 34, 0.09),
        0 4px 8px rgba(18, 48, 34, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Dashboard sales analytics redesign */
.commerce-dashboard .commerce-analytics-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.commerce-dashboard .sales-analytic-panel,
.commerce-dashboard .target-panel {
    border-radius: 24px;
    padding: 20px;
    overflow: hidden;
}

.commerce-dashboard .sales-analytic-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 246, 0.94)),
        radial-gradient(circle at 8% 12%, rgba(22, 163, 74, 0.12), transparent 30%),
        radial-gradient(circle at 98% 0%, rgba(25, 118, 248, 0.08), transparent 30%);
}

.commerce-dashboard .target-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 247, 0.95)),
        radial-gradient(circle at 50% 25%, rgba(85, 217, 193, 0.16), transparent 36%);
}

.commerce-dashboard .panel-head h3 {
    color: #0b2f1f;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.commerce-dashboard .panel-head p {
    color: #64786d;
    font-size: 0.78rem;
    font-weight: 700;
}

.analytics-period-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(8, 113, 63, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0f7a4f;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.commerce-dashboard .analytic-metrics-row {
    gap: 10px;
    margin: 16px 0 14px;
}

.commerce-dashboard .analytic-metrics-row article {
    position: relative;
    min-height: 82px;
    padding: 12px 13px;
    border: 1px solid rgba(23, 52, 40, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 246, 0.82));
    box-shadow:
        0 10px 20px rgba(18, 48, 34, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    overflow: hidden;
}

.commerce-dashboard .analytic-metrics-row article::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
}

.commerce-dashboard .analytic-metrics-row .metric-delivered::after {
    background: rgba(25, 118, 248, 0.1);
}

.commerce-dashboard .analytic-metrics-row .metric-balance::after {
    background: rgba(245, 158, 11, 0.12);
}

.commerce-dashboard .analytic-metrics-row span {
    color: #617466;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.commerce-dashboard .analytic-metrics-row strong {
    position: relative;
    z-index: 1;
    margin-top: 9px;
    color: #082718;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.commerce-dashboard .chart-card {
    height: 238px;
    padding: 18px 15px 34px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 252, 249, 0.96)),
        radial-gradient(circle at 18% 14%, rgba(85, 217, 193, 0.15), transparent 34%);
    box-shadow:
        0 16px 30px rgba(18, 48, 34, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.commerce-dashboard .chart-card::before {
    content: "";
    position: absolute;
    inset: 16px 18px 42px;
    border-radius: 16px;
    border: 1px solid rgba(8, 113, 63, 0.06);
    pointer-events: none;
}

.commerce-dashboard .chart-grid-lines {
    inset: 15px 18px 41px;
    border-radius: 16px;
    background-image:
        linear-gradient(to top, rgba(18, 48, 34, 0.055) 1px, transparent 1px),
        linear-gradient(to right, rgba(18, 48, 34, 0.045) 1px, transparent 1px);
    background-size: 100% 25%, 14.28% 100%;
}

.commerce-dashboard .chart-bars {
    gap: 14px;
}

.commerce-dashboard .chart-bar-col {
    gap: 9px;
}

.commerce-dashboard .chart-bar {
    width: 78%;
    min-height: 5px;
    border-radius: 999px 999px 8px 8px;
    background:
        linear-gradient(180deg, #16c68b 0%, rgba(85, 217, 193, 0.78) 48%, rgba(85, 217, 193, 0.22) 100%);
    border: 1px solid rgba(15, 118, 110, 0.16);
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.13);
}

.commerce-dashboard .chart-bar-col span {
    color: #65766b;
    font-size: 0.7rem;
    font-weight: 850;
}

.target-ring-wrap {
    display: grid;
    place-items: center;
    padding: 6px 0 2px;
}

.commerce-dashboard .target-ring {
    position: relative;
    width: 214px;
    height: 214px;
    margin: 0 auto;
    border: 1px solid rgba(8, 113, 63, 0.08);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.97) 0 55%, transparent 56%),
        conic-gradient(#16c68b 0 var(--target-progress, 65%), #e2eee8 var(--target-progress, 65%) 100%);
    box-shadow:
        0 20px 34px rgba(18, 48, 34, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -12px 22px rgba(15, 118, 110, 0.04);
}

.commerce-dashboard .target-ring::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: inherit;
    border: 1px solid rgba(8, 113, 63, 0.07);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 248, 0.88));
}

.commerce-dashboard .target-ring-inner {
    position: relative;
    z-index: 1;
    align-content: center;
    gap: 8px;
}

.commerce-dashboard .target-ring-inner strong {
    color: #082718;
    font-size: 2rem;
    line-height: 1;
}

.commerce-dashboard .target-ring-inner span {
    color: #617466;
    font-size: 0.76rem;
    font-weight: 850;
}

.sales-clock {
    display: grid;
    place-items: center;
    padding: 2px 0 4px;
}

.sales-clock-face {
    position: relative;
    width: 242px;
    height: 242px;
    border-radius: 999px;
    border: 1px solid rgba(8, 113, 63, 0.1);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 43%, rgba(247, 252, 249, 0.92) 44% 58%, transparent 59%),
        radial-gradient(circle at center, rgba(22, 198, 139, 0.1), transparent 65%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(237, 249, 244, 0.84));
    box-shadow:
        0 20px 34px rgba(18, 48, 34, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -14px 26px rgba(15, 118, 110, 0.05);
}

.sales-clock-face::before,
.sales-clock-face::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: inherit;
    border: 1px solid rgba(8, 113, 63, 0.07);
    pointer-events: none;
}

.sales-clock-face::after {
    inset: 70px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.94));
    box-shadow: 0 10px 24px rgba(18, 48, 34, 0.08);
}

.sales-clock-tick {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 6px;
    height: calc(16px + (var(--value, 2) * 0.42px));
    margin-left: -3px;
    border-radius: 999px;
    background: rgba(201, 225, 215, 0.72);
    transform: rotate(calc(var(--hour) * 15deg)) translateY(-105px);
    transform-origin: 50% 100%;
}

.sales-clock-tick i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.sales-clock-tick.has-sales i {
    background: linear-gradient(180deg, #15c98a, #0f7a4f);
    box-shadow: 0 7px 12px rgba(15, 122, 79, 0.2);
}

.sales-clock-label {
    position: absolute;
    z-index: 4;
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #4f6759;
    font-size: 0.66rem;
    font-weight: 950;
    box-shadow: 0 6px 12px rgba(18, 48, 34, 0.08);
}

.sales-clock-label.h0 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.sales-clock-label.h6 {
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
}

.sales-clock-label.h12 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.sales-clock-label.h18 {
    top: 50%;
    left: 9px;
    transform: translateY(-50%);
}

.sales-clock-center {
    position: absolute;
    inset: 78px;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 999px;
    text-align: center;
}

.sales-clock-center span,
.sales-clock-center em {
    color: #617466;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
}

.sales-clock-center strong {
    color: #082718;
    font-size: clamp(1rem, 1.75vw, 1.38rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.commerce-dashboard .target-stats {
    gap: 10px;
}

.commerce-dashboard .target-stats div {
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid rgba(23, 52, 40, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.commerce-dashboard .target-stats span {
    color: #64786d;
    font-size: 0.72rem;
    font-weight: 850;
}

.commerce-dashboard .target-stats strong {
    color: #082718;
    font-size: 1.18rem;
    line-height: 1;
}

.dashboard-highlight-progress {
    min-width: 0;
    overflow: hidden;
    padding-inline: 8px;
    margin-inline: -8px;
}

/* Dashboard highlight redesign */
.commerce-dashboard .dashboard-highlight-grid {
    gap: 16px;
    align-items: stretch;
}

.commerce-dashboard .dashboard-highlight-card {
    min-height: 245px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    overflow: hidden;
}

.commerce-dashboard .dashboard-highlight-card:nth-child(1) {
    --highlight-accent: #12b886;
}

.commerce-dashboard .dashboard-highlight-card:nth-child(2) {
    --highlight-accent: #c47a18;
}

.commerce-dashboard .dashboard-highlight-card:nth-child(3) {
    --highlight-accent: #12bfc4;
}

.commerce-dashboard .dashboard-highlight-card:nth-child(4) {
    --highlight-accent: #f59e0b;
}

.commerce-dashboard .dashboard-highlight-card::after {
    content: "";
    position: absolute;
    top: -46px;
    right: -42px;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--highlight-accent, #08713f) 14%, transparent);
    pointer-events: none;
}

.commerce-dashboard .dashboard-highlight-head {
    align-items: center;
}

.commerce-dashboard .dashboard-highlight-head > div {
    min-width: 0;
}

.commerce-dashboard .dashboard-highlight-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--highlight-accent, #08713f) 12%, #ffffff 86%);
    color: var(--highlight-accent, #08713f);
    font-size: 1.05rem;
}

.commerce-dashboard .dashboard-highlight-head strong {
    color: var(--highlight-accent, #08713f);
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 950;
}

.commerce-dashboard .dashboard-highlight-head small {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #52685a;
    background: rgba(8, 113, 63, 0.07);
    font-size: 0.68rem;
    font-weight: 900;
}

.commerce-dashboard .dashboard-highlight-list {
    gap: 0;
    align-content: start;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(18, 48, 34, 0.06);
    background: rgba(255, 255, 255, 0.58);
}

.commerce-dashboard .dashboard-highlight-row {
    min-height: 38px;
    padding: 8px 11px;
    border-bottom: 1px solid rgba(18, 48, 34, 0.07);
}

.commerce-dashboard .dashboard-highlight-row span {
    min-width: 0;
    color: #223447;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commerce-dashboard .dashboard-highlight-row strong {
    min-width: 42px;
    color: #20344b;
    font-size: 0.85rem;
    font-weight: 950;
    text-align: right;
}

.commerce-dashboard .dashboard-highlight-progress {
    overflow: visible;
    padding: 0;
    margin: 0;
    gap: 13px;
}

.commerce-dashboard .dashboard-highlight-progress-wrap {
    padding-top: 38px;
}

.commerce-dashboard .dashboard-highlight-progress-percent {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0.72rem;
    background: linear-gradient(135deg, var(--highlight-accent, #12bfc4), color-mix(in srgb, var(--highlight-accent, #12bfc4) 58%, #ffffff 25%));
    box-shadow:
        0 12px 22px color-mix(in srgb, var(--highlight-accent, #08713f) 22%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.commerce-dashboard .dashboard-highlight-progress-percent::after {
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 6px;
}

.commerce-dashboard .dashboard-highlight-progress-bar {
    height: 16px;
    padding: 3px;
    background: rgba(40, 56, 47, 0.09);
    box-shadow: inset 0 1px 3px rgba(18, 48, 34, 0.1);
}

.commerce-dashboard .dashboard-highlight-progress-bar span {
    height: 100%;
    background-image: linear-gradient(90deg, #10b981, #55e0d0);
    box-shadow: 0 0 16px rgba(18, 191, 196, 0.28);
}

.commerce-dashboard .dashboard-highlight-progress-bar-trader span {
    background-image: linear-gradient(90deg, #f59e0b, #ffd15a);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.26);
}

.commerce-dashboard .dashboard-highlight-progress p {
    margin-top: 2px;
    color: #4f6475;
    font-size: 0.8rem;
    font-weight: 900;
}

.commerce-dashboard .dashboard-highlight-metrics {
    gap: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(18, 48, 34, 0.06);
    background: rgba(255, 255, 255, 0.58);
}

.commerce-dashboard .dashboard-highlight-metrics div {
    min-height: 45px;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(18, 48, 34, 0.07);
}

.commerce-dashboard .dashboard-highlight-metrics span {
    color: #617284;
    font-size: 0.78rem;
    font-weight: 900;
}

.commerce-dashboard .dashboard-highlight-metrics strong {
    color: #1c2d42;
    font-size: 0.86rem;
    font-weight: 950;
}

/* Professional RBAC page redesign */
.rbac-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.75fr);
    gap: 22px;
    align-items: stretch;
    padding: 26px;
    overflow: hidden;
    border-color: rgba(31, 64, 48, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 250, 248, 0.96) 54%, rgba(239, 246, 255, 0.92));
}

.rbac-hero > div:first-child {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
}

.rbac-hero h2 {
    margin: 0;
    color: #182d22;
    font-size: clamp(1.55rem, 2.3vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.rbac-hero p {
    margin: 0;
    max-width: 72ch;
    color: #58695e;
    font-size: 0.94rem;
    line-height: 1.65;
}

.rbac-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rbac-hero-metrics article {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 24px rgba(39, 61, 48, 0.05);
}

.rbac-hero-metrics span,
.rbac-selected-role span,
.rbac-create-form span,
.rbac-table th {
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rbac-hero-metrics span,
.rbac-selected-role span,
.rbac-create-form span {
    display: block;
    color: #667568;
}

.rbac-hero-metrics strong {
    display: block;
    margin-top: 9px;
    color: #162b20;
    font-size: 1.8rem;
    line-height: 1;
}

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

.rbac-tabs a {
    position: relative;
    min-width: 0;
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    align-content: center;
    padding: 16px 18px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: #203529;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(39, 61, 48, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbac-tabs a::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: transparent;
}

.rbac-tabs a:hover,
.rbac-tabs a.active {
    transform: translateY(-1px);
    border-color: rgba(8, 113, 63, 0.22);
    box-shadow: 0 18px 36px rgba(36, 74, 105, 0.08);
}

.rbac-tabs a.active {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.rbac-tabs a.active::before {
    background: linear-gradient(90deg, #08713f, #19d85b);
}

.rbac-tabs span,
.rbac-tabs strong,
.rbac-tabs small {
    min-width: 0;
}

.rbac-tabs span {
    color: #1f3529;
    font-size: 0.93rem;
    font-weight: 850;
    line-height: 1.25;
}

.rbac-tabs strong {
    justify-self: end;
    color: #08713f;
    font-size: 1.35rem;
    line-height: 1;
}

.rbac-tabs small {
    grid-column: 1 / -1;
    color: #667568;
    font-size: 0.78rem;
    line-height: 1.35;
}

.rbac-panel {
    min-width: 0;
    padding: 22px;
    border-color: rgba(31, 64, 48, 0.09);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(248, 249, 246, 0.94));
}

.rbac-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rbac-panel-head > div {
    min-width: 0;
}

.rbac-panel-head h2 {
    margin: 4px 0 0;
    color: #1f3529;
    font-size: 1.35rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.rbac-panel-head p {
    margin: 8px 0 0;
    max-width: 72ch;
    color: #607066;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rbac-panel-head-inline {
    align-items: center;
}

.rbac-selected-role {
    min-width: 190px;
    padding: 13px 15px;
    border: 1px solid rgba(8, 113, 63, 0.14);
    border-radius: 16px;
    background: rgba(240, 247, 255, 0.82);
    text-align: right;
}

.rbac-selected-role strong {
    display: block;
    margin-top: 5px;
    color: #1a4f9c;
    font-size: 0.98rem;
}

.rbac-flash {
    margin: 0;
}

.rbac-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.rbac-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.rbac-table th,
.rbac-table td {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(31, 64, 48, 0.08);
    text-align: left;
    vertical-align: middle;
}

.rbac-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7f2;
    color: #677568;
}

.rbac-table tbody tr:last-child td {
    border-bottom: 0;
}

.rbac-table tbody tr:hover {
    background: rgba(240, 247, 255, 0.46);
}

.rbac-table td {
    color: #223529;
    font-size: 0.9rem;
}

.rbac-table td strong {
    display: inline-block;
    color: #1f3428;
}

.rbac-table td small {
    display: inline-block;
    margin-left: 4px;
    color: #6b786e;
}

.rbac-status,
.rbac-role-chip,
.rbac-empty-chip,
.rbac-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.rbac-status.active,
.rbac-role-chip {
    background: rgba(221, 239, 232, 0.95);
    color: #296150;
}

.rbac-status.inactive {
    background: rgba(255, 232, 229, 0.95);
    color: #963a30;
}

.rbac-empty-chip {
    background: rgba(233, 237, 232, 0.9);
    color: #63715f;
}

.rbac-lock {
    background: rgba(255, 237, 209, 0.95);
    color: #8a5d20;
}

.rbac-role-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.32fr);
    gap: 18px;
    align-items: start;
}

.rbac-create-card {
    position: sticky;
    top: 18px;
}

.rbac-create-form,
.rbac-permission-form {
    display: grid;
    gap: 14px;
}

.rbac-create-form label {
    display: grid;
    gap: 8px;
}

.rbac-create-form input,
.rbac-create-form textarea,
.rbac-role-row input[type="text"],
.rbac-assign-card select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(31, 64, 48, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #203529;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 10px 22px rgba(39, 61, 48, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbac-create-form input,
.rbac-role-row input[type="text"],
.rbac-assign-card select {
    padding: 0 13px;
}

.rbac-create-form textarea {
    min-height: 120px;
    padding: 13px;
    resize: vertical;
}

.rbac-create-form input:focus,
.rbac-create-form textarea:focus,
.rbac-role-row.is-editing input[type="text"]:focus,
.rbac-assign-card select:focus {
    border-color: rgba(8, 113, 63, 0.38);
    box-shadow: 0 0 0 4px rgba(8, 113, 63, 0.1), 0 10px 22px rgba(39, 61, 48, 0.04);
}

.rbac-create-form button,
.rbac-sticky-actions button,
.rbac-row-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbac-create-form button,
.rbac-sticky-actions button,
.rbac-save-button {
    color: #fff;
    background: linear-gradient(135deg, #1f6d48, #08713f);
    box-shadow: 0 14px 24px rgba(8, 113, 63, 0.16);
}

.rbac-create-form button:hover,
.rbac-sticky-actions button:hover,
.rbac-row-actions button:hover {
    transform: translateY(-1px);
}

.rbac-role-list {
    display: grid;
    gap: 11px;
}

.rbac-role-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 1.1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 13px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbac-role-row.is-system {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.74));
}

.rbac-role-row.is-editing,
.rbac-role-row.is-saved,
.rbac-assign-card.is-saved {
    border-color: rgba(8, 113, 63, 0.24);
    box-shadow: inset 4px 0 0 #08713f, 0 14px 28px rgba(8, 113, 63, 0.08);
    background: rgba(246, 251, 255, 0.92);
}

.rbac-role-meta {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.rbac-role-icon,
.rbac-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #1f5b43;
    background: linear-gradient(135deg, rgba(221, 239, 232, 0.98), rgba(240, 247, 255, 0.94));
    font-size: 0.9rem;
    font-weight: 900;
}

.rbac-role-meta > div {
    min-width: 0;
}

.rbac-role-meta small {
    display: block;
    margin-top: 5px;
    color: #6b786e;
    font-size: 0.75rem;
}

.rbac-role-row input[readonly] {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    padding-inline: 0;
    font-weight: 800;
}

.rbac-role-row > input[readonly] {
    font-weight: 500;
    color: #607066;
}

.rbac-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #31513b;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.rbac-switch input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #1f6d48;
}

.rbac-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.rbac-edit-button,
.rbac-cancel-button {
    color: #244232;
    background: rgba(237, 246, 241, 0.96);
    border: 1px solid rgba(31, 64, 48, 0.09) !important;
}

.rbac-cancel-button {
    color: #8a5d20;
    background: rgba(255, 247, 232, 0.96);
}

.rbac-role-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.rbac-role-picker a {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #203529;
    text-decoration: none;
}

.rbac-role-picker a.active {
    border-color: rgba(8, 113, 63, 0.28);
    background: rgba(240, 247, 255, 0.92);
    box-shadow: inset 4px 0 0 #08713f;
}

.rbac-role-picker a.is-system {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.9), rgba(255, 255, 255, 0.72));
}

.rbac-role-picker strong {
    color: #1f3529;
    font-size: 0.9rem;
}

.rbac-role-picker span {
    color: #6b786e;
    font-size: 0.77rem;
}

.rbac-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 13px;
    transition: opacity 0.2s ease, max-height 0.24s ease;
}

.rbac-permission-grid.is-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.rbac-permission-grid fieldset {
    min-width: 0;
    margin: 0;
    padding: 15px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.rbac-permission-grid legend {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 12px;
    color: #1f3529;
    font-weight: 900;
}

.rbac-permission-grid legend small {
    min-width: 48px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(237, 246, 241, 0.96);
    color: #2f6f4f;
    font-size: 0.72rem;
}

.rbac-permission-grid fieldset label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(31, 64, 48, 0.07);
    color: #2e4436;
    font-size: 0.86rem;
    line-height: 1.35;
}

.rbac-permission-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #08713f;
}

.rbac-sticky-actions {
    position: sticky;
    bottom: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(31, 48, 37, 0.08);
    backdrop-filter: blur(14px);
}

.rbac-sticky-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.muted-note {
    margin: 0;
    color: #667568;
    font-size: 0.82rem;
    line-height: 1.45;
}

.rbac-assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.rbac-assign-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rbac-assign-card select {
    grid-column: 1 / -1;
    background-image: linear-gradient(45deg, transparent 50%, #607066 50%), linear-gradient(135deg, #607066 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
}

.rbac-assign-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rbac-assign-copy strong,
.rbac-assign-copy span,
.rbac-assign-copy small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.rbac-assign-copy strong {
    color: #1f3529;
    font-size: 0.94rem;
}

.rbac-assign-copy span,
.rbac-assign-copy small {
    color: #667568;
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .rbac-hero,
    .rbac-role-layout {
        grid-template-columns: 1fr;
    }

    .rbac-create-card {
        position: static;
    }

    .rbac-role-row {
        grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    }

    .rbac-row-actions {
        justify-content: flex-start;
    }
}

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

    .rbac-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rbac-panel-head,
    .rbac-panel-head-inline,
    .rbac-sticky-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rbac-selected-role {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .rbac-hero,
    .rbac-panel {
        padding: 18px;
    }

    .rbac-tabs,
    .rbac-hero-metrics,
    .rbac-role-row,
    .rbac-permission-grid,
    .rbac-assign-grid {
        grid-template-columns: 1fr;
    }

    .rbac-tabs a {
        min-height: 76px;
    }

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

    .rbac-table th,
    .rbac-table td {
        white-space: normal;
    }

    .rbac-table td small {
        display: block;
        margin: 4px 0 0;
    }

    .rbac-row-actions,
    .rbac-row-actions button,
    .rbac-create-form button,
    .rbac-sticky-actions button {
        width: 100%;
    }
}

/* RBAC role row overflow repair */
.rbac-role-row {
    grid-template-columns: minmax(180px, 0.92fr) minmax(180px, 1.08fr);
}

.rbac-role-row > * {
    min-width: 0;
}

.rbac-role-row input[type="text"] {
    min-width: 0;
}

.rbac-switch,
.rbac-row-actions {
    justify-self: start;
}

/* Professional Email Settings redesign */
.email-settings-page {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.email-flash {
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(39, 61, 48, 0.05);
}

.email-flash.success {
    color: #1f6d48;
    background: rgba(224, 244, 234, 0.94);
}

.email-flash.error {
    color: #963a30;
    background: rgba(255, 232, 229, 0.94);
}

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

.email-tabs a {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    color: #203529;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(39, 61, 48, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-tabs a::after {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(221, 239, 232, 0.98), rgba(240, 247, 255, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.email-tabs a::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: transparent;
}

.email-tabs a:hover,
.email-tabs a.active {
    transform: translateY(-1px);
    border-color: rgba(8, 113, 63, 0.22);
    box-shadow: 0 18px 36px rgba(36, 74, 105, 0.08);
}

.email-tabs a.active {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.email-tabs a.active::before {
    background: linear-gradient(90deg, #08713f, #19d85b);
}

.email-tabs a.active::after {
    background: linear-gradient(135deg, rgba(8, 113, 63, 0.16), rgba(47, 148, 102, 0.18));
}

.email-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.email-panel {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(248, 249, 246, 0.94));
    box-shadow: var(--shadow);
}

.email-smtp-card {
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 250, 248, 0.96) 58%, rgba(240, 247, 255, 0.92));
}

.email-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
    border-bottom: 0;
}

.email-panel-head > div {
    min-width: 0;
}

.email-panel-head span,
.email-settings-form label > span,
.email-config-list dt {
    display: block;
    color: #cf6d28;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.email-panel-head strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #1f6d48;
    background: rgba(221, 239, 232, 0.95);
    font-size: 0.82rem;
    white-space: nowrap;
}

.email-panel-head p {
    margin: 8px 0 0;
    max-width: 68ch;
    color: #607066;
    font-size: 0.9rem;
    line-height: 1.6;
}

.email-panel-head-split {
    align-items: center;
}

.email-chip-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.email-chip-row b,
.email-overview-row b,
.email-table td:first-child select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.email-chip-row b,
.email-overview-row b.is-on {
    color: #1f6d48;
    background: rgba(221, 239, 232, 0.95);
}

.email-overview-row b.is-off {
    color: #963a30;
    background: rgba(255, 232, 229, 0.95);
}

.email-config-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.email-config-list div {
    display: grid;
    grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
}

.email-config-list dt,
.email-config-list dd {
    min-width: 0;
    margin: 0;
}

.email-config-list dd {
    color: #203529;
    font-size: 0.9rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.email-overview-list {
    display: grid;
    gap: 12px;
}

.email-overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.8fr) minmax(160px, 0.72fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #203529;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-overview-row:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 113, 63, 0.2);
    background: rgba(240, 247, 255, 0.8);
    box-shadow: 0 14px 28px rgba(8, 113, 63, 0.08);
}

.email-overview-row span {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.email-overview-row strong {
    color: #1f3529;
    font-size: 0.95rem;
    line-height: 1.25;
}

.email-overview-row small {
    color: #667568;
    font-size: 0.78rem;
    line-height: 1.35;
}

.email-automation-shell {
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 250, 248, 0.96) 56%, rgba(239, 246, 255, 0.92));
}

.email-settings-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px;
    align-items: end;
}

.email-settings-form label {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.email-settings-form input,
.email-settings-form select,
.email-add-recipient input,
.email-add-recipient select,
.email-table input,
.email-table select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(31, 64, 48, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #203529;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 10px 22px rgba(39, 61, 48, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-settings-form input,
.email-settings-form select,
.email-add-recipient input,
.email-add-recipient select,
.email-table input,
.email-table select {
    padding: 0 13px;
}

.email-settings-form input:focus,
.email-settings-form select:focus,
.email-add-recipient input:focus,
.email-add-recipient select:focus,
.email-table input:focus,
.email-table select:focus {
    border-color: rgba(8, 113, 63, 0.38);
    box-shadow: 0 0 0 4px rgba(8, 113, 63, 0.1), 0 10px 22px rgba(39, 61, 48, 0.04);
}

.email-form-actions,
.email-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.email-form-actions {
    grid-column: 1 / -1;
    padding-top: 4px;
}

.email-form-actions button,
.email-add-recipient button,
.email-row-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, #1f6d48, #08713f);
    box-shadow: 0 14px 24px rgba(8, 113, 63, 0.16);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.email-form-actions button:hover,
.email-add-recipient button:hover,
.email-row-actions button:hover {
    transform: translateY(-1px);
}

.email-form-actions button.secondary,
.email-row-actions button[data-email-edit] {
    color: #244232;
    background: rgba(237, 246, 241, 0.96);
    border: 1px solid rgba(31, 64, 48, 0.09);
    box-shadow: none;
}

.email-row-actions button.danger {
    color: #963a30;
    background: rgba(255, 232, 229, 0.95);
    border: 1px solid rgba(150, 58, 48, 0.12);
    box-shadow: none;
}

.email-add-recipient {
    display: grid;
    grid-template-columns: minmax(100px, 0.25fr) minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.email-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.email-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.email-table th,
.email-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(31, 64, 48, 0.08);
    text-align: left;
    vertical-align: middle;
}

.email-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7f2;
    color: #667568;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.email-table tbody tr:last-child td {
    border-bottom: 0;
}

.email-table tbody tr:hover {
    background: rgba(240, 247, 255, 0.46);
}

.email-table td {
    color: #203529;
    font-size: 0.88rem;
}

.email-table td:nth-child(2) {
    overflow-wrap: anywhere;
}

.email-table input:disabled,
.email-table select:disabled {
    min-height: auto;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #203529;
    opacity: 1;
    font-weight: 750;
    -webkit-text-fill-color: #203529;
}

.email-table td:first-child select {
    width: auto;
    min-height: 30px;
    color: #1f6d48;
    background: rgba(221, 239, 232, 0.95);
    box-shadow: none;
    appearance: none;
}

.email-table tr.editing {
    background: rgba(246, 251, 255, 0.92);
    box-shadow: inset 4px 0 0 #08713f;
}

.email-table tr.editing input,
.email-table tr.editing select {
    min-height: 42px;
    padding: 0 12px;
    border-color: rgba(8, 113, 63, 0.22);
    background: #fff;
    box-shadow: 0 8px 18px rgba(39, 61, 48, 0.04);
}

.email-table .empty {
    padding: 24px;
    color: #667568;
    text-align: center;
    font-weight: 750;
}

@media (max-width: 1180px) {
    .email-dashboard-grid,
    .email-settings-form {
        grid-template-columns: 1fr 1fr;
    }

    .email-add-recipient {
        grid-template-columns: minmax(100px, 0.3fr) minmax(0, 1fr);
    }

    .email-add-recipient button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

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

    .email-dashboard-grid,
    .email-settings-form,
    .email-add-recipient {
        grid-template-columns: 1fr;
    }

    .email-panel-head,
    .email-panel-head-split {
        align-items: stretch;
        flex-direction: column;
    }

    .email-chip-row,
    .email-form-actions,
    .email-row-actions {
        justify-content: flex-start;
    }

    .email-add-recipient button,
    .email-form-actions button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .email-settings-page {
        gap: 14px;
    }

    .email-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .email-tabs a {
        min-height: 64px;
    }

    .email-config-list div,
    .email-overview-row {
        grid-template-columns: 1fr;
    }

    .email-table {
        min-width: 680px;
    }
}

/* Email cycle field visibility repair */
.email-settings-form [hidden] {
    display: none !important;
}

/* Professional Push Notification redesign */
.push-page {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.push-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.8fr);
    gap: 22px;
    align-items: stretch;
    padding: 26px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 250, 248, 0.96) 54%, rgba(239, 246, 255, 0.92));
}

.push-hero-copy {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
}

.push-hero-copy span,
.push-form label > span {
    display: block;
    color: #cf6d28;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.push-hero-copy h2 {
    margin: 0;
    color: #182d22;
    font-size: clamp(1.55rem, 2.3vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.push-hero-copy p {
    margin: 0;
    max-width: 72ch;
    color: #58695e;
    font-size: 0.94rem;
    line-height: 1.65;
}

.push-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.push-hero-metrics article {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(31, 64, 48, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 24px rgba(39, 61, 48, 0.05);
}

.push-hero-metrics span {
    display: block;
    color: #667568;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.push-hero-metrics strong {
    display: block;
    margin-top: 9px;
    color: #162b20;
    font-size: clamp(1rem, 1.8vw, 1.8rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.push-dashboard-grid {
    grid-template-columns: minmax(360px, 1.05fr) minmax(300px, 0.7fr);
}

.push-compose-panel {
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(245, 250, 248, 0.96) 56%, rgba(239, 246, 255, 0.92));
}

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

.push-form label {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.push-form input,
.push-form select,
.push-form textarea {
    width: 100%;
    border: 1px solid rgba(31, 64, 48, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #203529;
    font: inherit;
    font-size: 0.92rem;
    outline: none;
    box-shadow: 0 10px 22px rgba(39, 61, 48, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.push-form input,
.push-form select {
    min-height: 48px;
    padding: 0 14px;
}

.push-form textarea {
    min-height: 150px;
    padding: 14px;
    line-height: 1.55;
    resize: vertical;
}

.push-form input:focus,
.push-form select:focus,
.push-form textarea:focus {
    border-color: rgba(8, 113, 63, 0.38);
    box-shadow: 0 0 0 4px rgba(8, 113, 63, 0.1), 0 10px 22px rgba(39, 61, 48, 0.04);
}

.push-form button {
    width: fit-content;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #1f6d48, #08713f);
    box-shadow: 0 14px 24px rgba(8, 113, 63, 0.16);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.push-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(8, 113, 63, 0.18);
}

.push-info-panel {
    align-self: stretch;
}

.push-note-list {
    display: grid;
    gap: 12px;
}

.push-note-list div {
    min-width: 0;
    display: grid;
    gap: 6px;
    padding: 15px;
    border: 1px solid rgba(31, 64, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.push-note-list strong {
    color: #1f3529;
    font-size: 0.92rem;
}

.push-note-list span {
    color: #667568;
    font-size: 0.84rem;
    line-height: 1.5;
}

.push-role-chip,
.push-count-pill,
.push-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.push-role-chip {
    color: #1a4f9c;
    background: rgba(240, 247, 255, 0.95);
}

.push-count-pill,
.push-status-pill {
    color: #1f6d48;
    background: rgba(221, 239, 232, 0.95);
}

.push-status-failed,
.push-status-error {
    color: #963a30;
    background: rgba(255, 232, 229, 0.95);
}

.push-page .email-table {
    min-width: 860px;
}

.push-page .email-table td:nth-child(4) {
    min-width: 260px;
    color: #526358;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .push-hero,
    .push-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .push-hero {
        gap: 18px;
    }

    .push-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .push-form button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .push-page {
        gap: 14px;
    }

    .push-hero {
        padding: 18px;
        border-radius: 20px;
    }

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

    .push-page .email-table {
        min-width: 760px;
    }
}


@media (max-width: 680px) {
    .push-page .email-table-wrap {
        overflow: visible;
    }

    .push-page .email-table {
        display: block;
        min-width: 0;
        width: 100%;
        border-spacing: 0;
    }

    .push-page .email-table thead {
        display: none;
    }

    .push-page .email-table tbody {
        display: grid;
        gap: 14px;
    }

    .push-page .email-table tr,
    .push-page .email-table td {
        display: block;
        width: 100%;
    }

    .push-page .email-table tr {
        padding: 16px;
        border: 1px solid rgba(31, 77, 58, 0.11);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 14px 34px rgba(31, 45, 38, 0.07);
    }

    .push-page .email-table td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        margin-bottom: 12px;
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .push-page .email-table td:last-child {
        margin-bottom: 0;
    }

    .push-page .email-table td::before {
        content: attr(data-label);
        color: #6b796f;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .push-page .email-table td[data-label="Message"] {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .push-page .email-table td .push-role-chip,
    .push-page .email-table td .push-count-pill,
    .push-page .email-table td .push-status-pill {
        justify-self: start;
        max-width: 100%;
    }
}

/* Push notification role/user targeting */
.push-target-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.push-target-toggle label {
    position: relative;
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(31, 64, 48, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #526358;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(39, 61, 48, 0.04);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.push-target-toggle label.active {
    border-color: rgba(8, 113, 63, 0.24);
    background: linear-gradient(135deg, rgba(221, 239, 232, 0.96), rgba(240, 247, 255, 0.94));
    color: #183b2a;
    box-shadow: 0 14px 26px rgba(8, 113, 63, 0.08);
}

.push-target-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.push-target-toggle span {
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.push-target-field[hidden] {
    display: none !important;
}

.push-target-stack {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.push-target-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #6a5a29;
    background: rgba(255, 240, 202, 0.9);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .push-target-toggle {
        grid-template-columns: 1fr;
    }

    .push-page .email-table td .push-target-stack {
        justify-self: start;
    }
}

/* Remove Daily Order and Cutting Room report headers from printed files */
@media print {
    .cutting-room-print-title,
    .cutting-room-print-summary,
    body.printing-report .daily-order-print-info,
    body.printing-report .daily-order-print-panel .panel-head {
        display: none !important;
    }

    body.printing-report .filter-panel {
        display: none !important;
    }

    body.printing-report .daily-order-print-panel {
        margin-top: 0 !important;
    }
}

/* Keep Cutting Room report header, hide dashboard chrome in printed files */
@media print {
    .topbar,
    .app-sidebar,
    .mobile-sidebar-fab,
    .sidebar-backdrop {
        display: none !important;
    }

    .cutting-room-print-title {
        display: block !important;
    }

    .cutting-room-print-summary {
        display: block !important;
    }
}
.order-status-page {
    display: grid;
    gap: 18px;
}

.order-status-hero {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
}

.order-status-hero.search-only {
    grid-template-columns: minmax(320px, 520px);
}

.order-status-hero-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.order-status-summary-box {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(23, 52, 40, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.order-number-box {
    border-color: rgba(37, 99, 235, .18);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.order-state-box {
    border-color: rgba(22, 163, 74, .2);
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.order-due-box {
    border-color: rgba(217, 119, 6, .22);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.order-time-box {
    border-color: rgba(124, 58, 237, .18);
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.order-status-hero-summary span {
    display: block;
    margin-bottom: 5px;
    color: #66756c;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.order-status-hero-summary strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #173428;
    font-size: 14px;
    line-height: 1.2;
}

.order-status-hero-summary small {
    display: block;
    margin-top: 6px;
    color: #5f6f66;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.order-status-kicker,
.order-status-card-title span,
.order-status-items-head span,
.order-status-card-head span {
    color: #5f6f66;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.order-status-hero h2 {
    margin: 5px 0 6px;
    color: #173428;
    font-size: 30px;
    line-height: 1.08;
}

.order-status-hero p {
    max-width: 620px;
    margin: 0;
    color: #65746c;
}

.order-status-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(23, 52, 40, .12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.order-status-search-form input {
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: #173428;
    font-weight: 750;
    background: transparent;
}

.order-status-search-form button {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 850;
    background: #08713f;
    cursor: pointer;
}

.order-status-empty {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 8px;
    color: #713315;
    background: #fff7ed;
}

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

.order-status-detail-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.2fr 1fr;
    gap: 16px;
}

.order-status-primary-card,
.order-status-card,
.order-status-tracking-panel {
    padding: 18px;
    border-radius: 8px;
}

.order-status-card-title,
.order-status-card-head,
.order-status-items-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.order-status-card-title strong {
    color: #173428;
    font-size: 25px;
    line-height: 1.1;
}

.order-status-card-head h3,
.order-status-items-head h3 {
    margin: 3px 0 0;
    color: #173428;
    font-size: 17px;
}

.order-status-big-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.order-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(23, 52, 40, .12);
    border-radius: 999px;
    color: #214236;
    font-size: 12px;
    font-weight: 850;
    background: #eef6f2;
}

.order-status-chip.success {
    color: #11633e;
    background: #e8f8ef;
    border-color: rgba(17, 99, 62, .18);
}

.order-status-chip.info {
    color: #174a72;
    background: #e9f4fb;
    border-color: rgba(23, 74, 114, .16);
}

.order-status-chip.warning {
    color: #875212;
    background: #fff5db;
    border-color: rgba(135, 82, 18, .18);
}

.order-status-chip.danger {
    color: #9d231f;
    background: #fff0ef;
    border-color: rgba(157, 35, 31, .18);
}

.order-status-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-status-metric-grid div {
    padding: 11px;
    border: 1px solid rgba(23, 52, 40, .08);
    border-radius: 8px;
    background: #f6faf7;
}

.order-status-metric-grid span,
.order-status-dl dt {
    display: block;
    color: #718177;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-status-metric-grid strong,
.order-status-dl dd {
    color: #173428;
    font-weight: 850;
}

.order-status-track-link {
    display: inline-flex;
    margin-top: 14px;
    color: #126c47;
    font-weight: 850;
    text-decoration: none;
}

.order-status-customer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.order-status-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #0f7b4d;
    font-weight: 900;
    background: #e3f5ec;
}

.order-status-customer-row strong,
.order-status-customer-row span {
    display: block;
}

.order-status-customer-row span {
    color: #66766d;
    font-size: 13px;
}

.order-status-dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.order-status-dl dd {
    margin: 0;
    word-break: break-word;
}

.delivery-info-list {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px 12px;
}

.delivery-info-list dt {
    font-size: 10px;
    letter-spacing: .02em;
}

.delivery-info-list dd {
    color: #20382f;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.order-status-timeline {
    display: grid;
    gap: 0;
    margin-top: 14px;
}

.order-status-tracking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.order-status-tracking-card {
    padding: 14px;
    border: 1px solid rgba(23, 52, 40, .1);
    border-radius: 8px;
    background: #fbfdfb;
}

.order-status-tracking-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.order-status-tracking-card-head span {
    color: #718177;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.order-status-tracking-card-head strong {
    display: block;
    margin-top: 3px;
    color: #173428;
    font-size: 20px;
    line-height: 1.1;
}

.order-status-tracking-card-head strong a {
    color: inherit;
    text-decoration: none;
}

.order-status-tracking-card-head strong a:hover {
    color: #126c47;
    text-decoration: underline;
}

.order-status-timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 18px;
}

.order-status-timeline-row::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 0;
    left: 6px;
    width: 2px;
    background: #dceae2;
}

.order-status-timeline-row:last-child {
    padding-bottom: 0;
}

.order-status-timeline-row:last-child::before {
    display: none;
}

.order-status-timeline-dot {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #08713f;
    box-shadow: 0 0 0 1px rgba(24, 128, 82, .2);
}

.order-status-timeline-row strong,
.order-status-timeline-row span,
.order-status-timeline-row em {
    display: block;
}

.order-status-timeline-row strong {
    color: #173428;
}

.order-status-timeline-row span,
.order-status-timeline-row em {
    color: #6e7f75;
    font-style: normal;
    font-size: 13px;
}

.order-status-tracking-empty {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px dashed rgba(23, 52, 40, .18);
    border-radius: 8px;
    color: #68786f;
    background: #f8fbf9;
}

.order-status-tracking-empty strong {
    color: #173428;
}

.order-status-warning-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.order-status-warning-list span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #875212;
    font-size: 12px;
    font-weight: 800;
    background: #fff5db;
}

.order-status-table-wrap {
    overflow-x: auto;
}

.order-status-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.order-status-table th,
.order-status-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(23, 52, 40, .08);
    text-align: left;
}

.order-status-table th {
    color: #627268;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: #f4f8f5;
}

.order-status-table td {
    color: #20382f;
    font-size: 13px;
    font-weight: 650;
}

.order-items-detail-table {
    min-width: 1120px;
    border: 1px solid rgba(23, 52, 40, .08);
}

.order-items-detail-table th,
.order-items-detail-table td {
    padding: 8px 10px;
    border-right: 1px solid rgba(23, 52, 40, .07);
    border-bottom: 1px solid rgba(23, 52, 40, .08);
    vertical-align: middle;
}

.order-items-detail-table th:last-child,
.order-items-detail-table td:last-child {
    border-right: 0;
}

.order-items-detail-table thead th {
    color: #172238;
    font-size: 14px;
    text-align: center;
    text-transform: none;
    background: #eef1ee;
}

.order-items-detail-table th:nth-child(1),
.order-items-detail-table td:nth-child(1),
.order-items-detail-table th:nth-child(n+3),
.order-items-detail-table td:nth-child(n+3) {
    text-align: center;
}

.order-items-detail-table tbody tr:nth-child(even):not(.order-items-summary-row) {
    background: #eef8f6;
}

.order-item-image-cell {
    width: 64px;
    text-align: center;
}

.order-item-thumb {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
}

.order-item-thumb.muted {
    opacity: 1;
    padding: 3px;
    border: 1px solid rgba(102, 112, 122, 0.16);
}

.order-item-name {
    min-width: 260px;
    color: #172238;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
}

.order-item-center,
.order-item-qty {
    text-align: center;
}

.order-item-barcode {
    min-width: 170px;
    text-align: center;
    white-space: nowrap;
}

.order-item-qty {
    color: #8a95a5;
    font-weight: 850;
    white-space: nowrap;
}

.order-item-status {
    display: inline-flex;
    min-width: 76px;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(24, 128, 82, .18);
    border-radius: 8px;
    color: #126c47;
    font-size: 12px;
    font-weight: 850;
    background: #e8f7ef;
}

.order-items-summary-row {
    background: #ffffff;
}

.order-items-summary-row td,
.order-items-summary-row th {
    padding: 12px 18px;
    text-align: right;
}

.order-items-summary-row th {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    background: #ffffff;
    text-transform: none;
}

.order-items-summary-row td:last-child {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.order-items-summary-row.grand-total td:last-child {
    color: #dc2626;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .order-status-hero,
    .order-status-overview,
    .order-status-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .order-status-tracking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .order-status-hero,
    .order-status-primary-card,
    .order-status-card,
    .order-status-tracking-panel {
        padding: 14px;
    }

    .order-status-search-form,
    .order-status-hero-summary,
    .order-status-metric-grid,
    .order-status-dl {
        grid-template-columns: 1fr;
    }

    .order-status-search-form button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .panda-login-shell {
        width: min(100%, calc(100% - 20px));
    }

    .panda-login-card {
        min-height: 660px;
        padding-top: 8px;
    }

    .panda-login-stage {
        margin-top: 120px;
        padding: 58px 20px 32px;
        border-radius: 16px;
    }

    .panda-art {
        top: -132px;
        width: 260px;
        transform: translateX(-50%) scale(0.88);
        transform-origin: top center;
        animation-name: panda-soft-bob-mobile;
    }

    .panda-head {
        transform: translateX(calc(-50% + var(--panda-head-x))) translateY(var(--panda-head-y)) rotate(var(--panda-head-r));
        transform-origin: 50% 70%;
    }

    .panda-feet {
        bottom: -22px;
        transform: scale(0.9);
        transform-origin: bottom center;
    }

    .panda-login-stage .auth-brand img {
        width: 66px;
    }

    .panda-login-stage .auth-form input {
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

@keyframes panda-soft-bob-mobile {
    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(0.88);
    }

    50% {
        transform: translateX(-50%) translateY(-5px) scale(0.88);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-body::before,
    .auth-body::after,
    .panda-login-stage,
    .panda-login-stage .auth-brand,
    .panda-login-stage .auth-form,
    .panda-login-stage .auth-form-note,
    .panda-art {
        animation: none !important;
    }
}

@media print {
    body.dashboard-page,
    body.printing-report {
        background: #ffffff !important;
    }

    body.dashboard-page::before,
    body.dashboard-page::after,
    body.printing-report::before,
    body.printing-report::after {
        content: none !important;
        display: none !important;
    }

    body.printing-report .dashboard-layout,
    body.printing-report .dashboard-main,
    body.printing-report .app-main,
    body.printing-report .daily-order-main,
    body.printing-report .supplier-report-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.printing-report .premium-table-panel,
    body.printing-report .daily-order-print-panel,
    body.printing-report .filter-panel,
    body.printing-report .premium-table-wrap,
    body.printing-report .daily-order-print-panel .table-wrap {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.printing-report table {
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

/* Label automation redesign */
.label-workspace {
    display: grid;
    gap: 16px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 244, 0.92)),
        #ffffff;
}

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

.label-summary-card {
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(23, 52, 40, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 18px 38px rgba(18, 48, 34, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.label-summary-card span {
    color: #50665b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.label-summary-card strong {
    color: #10281c;
    font-size: clamp(1.45rem, 2.1vw, 2.05rem);
    line-height: 1;
}

.label-summary-card.summary-orders {
    border-color: #bdeed0;
    background: linear-gradient(135deg, #ffffff, #e9fff1);
}

.label-summary-card.summary-csv {
    border-color: #c7e2ff;
    background: linear-gradient(135deg, #ffffff, #edf7ff);
}

.label-summary-card.summary-notes {
    border-color: #ffe0a3;
    background: linear-gradient(135deg, #ffffff, #fff6dd);
}

.label-summary-card.summary-address {
    border-color: #e4d6ff;
    background: linear-gradient(135deg, #ffffff, #f4efff);
}

.label-workspace .label-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.72fr);
    gap: 16px;
}

.label-workspace .label-input-card,
.label-workspace .label-info-card,
.preview-tabs-panel {
    border: 1px solid rgba(8, 113, 63, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 22px 48px rgba(18, 48, 34, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.label-workspace .label-input-card,
.label-workspace .label-info-card {
    padding: 20px;
}

.label-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.label-card-head span {
    display: block;
    margin-bottom: 4px;
    color: #08713f;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.label-card-head h3 {
    margin: 0;
    color: #10281c;
    font-size: 1.18rem;
    line-height: 1.15;
}

.label-workspace .premium-field span {
    color: #42594d;
    font-size: 0.72rem;
    font-weight: 900;
}

.label-workspace .formatted-date-display,
.label-workspace .label-textarea-field textarea {
    border-color: #dbeee2;
    background: #fbfffc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.label-workspace .label-textarea-field textarea {
    min-height: 230px;
    font-size: 1rem;
}

.label-workspace .label-textarea-field textarea:focus,
.label-workspace .premium-date-field:focus-within .formatted-date-display {
    outline: 0;
    border-color: #19d85b;
    box-shadow:
        0 0 0 4px #d8fce6,
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.label-workspace .inline-summary-chip {
    border-color: #dbeee2;
    background: #f7fcf6;
    color: #42594d;
}

.label-workspace .label-form-actions .premium-button,
.label-workspace .label-form-actions .ghost-button {
    min-height: 46px;
    border-radius: 14px;
}

.label-workspace .label-form-actions .premium-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #08713f, #19b85a);
    box-shadow: 0 16px 28px rgba(8, 113, 63, 0.2);
}

.label-workspace .label-form-actions .ghost-button {
    border: 1px solid #dbeee2;
    color: #08713f;
    background: #ffffff;
}

.label-workspace .sender-config-table th {
    background: #effaf2;
    color: #08713f;
}

.label-workspace .sender-config-table td {
    background: #ffffff;
}

.preview-tabs-panel {
    padding: 18px;
}

.preview-tabs-panel .preview-head {
    margin-bottom: 12px;
}

.preview-tabs-panel .preview-tab-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.preview-tabs-panel .preview-tab {
    min-height: 56px;
    justify-content: center;
    border: 1px solid #dbeee2;
    border-radius: 16px;
    background: #ffffff;
    color: #33463b;
    box-shadow: 0 12px 24px rgba(18, 48, 34, 0.06);
}

.preview-tabs-panel .preview-tab.active {
    border-color: #08713f;
    color: #ffffff;
    background: linear-gradient(135deg, #08713f, #19b85a);
    box-shadow: 0 18px 34px rgba(8, 113, 63, 0.2);
}

.preview-tabs-panel .premium-table-wrap {
    border-color: #dbeee2;
    border-radius: 18px;
    background: #ffffff;
}

.preview-tabs-panel .compact-table th {
    background: #effaf2;
    color: #173428;
}

.preview-tabs-panel .compact-table td {
    background: #ffffff;
}

.preview-tabs-panel .compact-table tbody tr:nth-child(even) td {
    background: #fbfffc;
}

@media (max-width: 1180px) {
    .label-summary-grid,
    .preview-tabs-panel .preview-tab-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .label-workspace .label-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .label-summary-grid,
    .preview-tabs-panel .preview-tab-row {
        grid-template-columns: 1fr;
    }

    .label-workspace {
        padding: 14px;
    }
}

/* Staff users page */
.users-page {
    display: grid;
    gap: 18px;
}

.users-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
}

.users-hero h2 {
    margin: 6px 0 8px;
    color: #0d3d2a;
    font-size: 24px;
    letter-spacing: 0;
}

.users-hero p {
    max-width: 680px;
    margin: 0;
    color: #607166;
    font-size: 14px;
    line-height: 1.55;
}

.users-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
    gap: 10px;
    min-width: 420px;
}

.users-hero-metrics article {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(34, 126, 84, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(247, 255, 250, 0.96), rgba(236, 248, 242, 0.88));
}

.users-hero-metrics span {
    color: #6d7a71;
    font-size: 12px;
    font-weight: 800;
}

.users-hero-metrics strong {
    color: #103b2b;
    font-size: 25px;
    line-height: 1;
}

.users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 18px;
    align-items: start;
}

.users-layout.no-create {
    grid-template-columns: 1fr;
}

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

.users-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 62px;
    padding: 14px 16px;
    border: 1px solid rgba(31, 112, 76, 0.14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 244, 0.88));
    color: #244234;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(23, 77, 52, 0.09);
}

.users-tabs a.active {
    border-color: rgba(22, 154, 92, 0.38);
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    box-shadow: 0 18px 36px rgba(18, 132, 82, 0.24);
}

.users-tabs span {
    font-size: 15px;
    font-weight: 900;
}

.users-tabs strong {
    display: inline-grid;
    min-width: 32px;
    min-height: 28px;
    place-items: center;
    border-radius: 999px;
    background: rgba(13, 82, 51, 0.09);
    font-size: 12px;
}

.users-tabs a.active strong {
    background: rgba(255, 255, 255, 0.22);
}

.users-list-card,
.users-create-card {
    padding: 18px;
}

.users-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.users-card-head h3 {
    margin: 4px 0 0;
    color: #123b2b;
    font-size: 20px;
}

.users-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.users-search-form input,
.users-create-form input,
.users-create-form select,
.users-create-form textarea {
    width: 100%;
    border: 1px solid rgba(37, 121, 82, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #17251e;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.users-search-form input {
    min-width: 230px;
    padding: 11px 12px;
}

.users-table-wrap {
    border-radius: 18px;
}

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

.users-table th,
.users-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(34, 126, 84, 0.12);
    color: #1d2c24;
    font-size: 13px;
    vertical-align: middle;
}

.users-table th {
    background: rgba(232, 245, 237, 0.9);
    color: #244534;
    font-weight: 900;
    text-align: left;
}

.users-table tbody tr:nth-child(even) {
    background: rgba(245, 251, 247, 0.72);
}

.users-table td strong {
    display: block;
    color: #102c21;
    font-size: 14px;
}

.users-table td small {
    display: block;
    margin-top: 3px;
    color: #77867c;
    font-size: 11px;
}

.users-role-chip,
.users-empty-chip,
.users-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.users-role-chip {
    background: rgba(23, 142, 89, 0.13);
    color: #0f7a4a;
}

.users-empty-chip {
    background: rgba(115, 126, 121, 0.12);
    color: #6e7c72;
}

.users-status.active {
    background: rgba(18, 156, 87, 0.13);
    color: #0f7b48;
}

.users-status.inactive {
    background: rgba(212, 67, 67, 0.12);
    color: #bd3838;
}

.users-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.users-pagination a,
.users-pagination span,
.users-pagination strong {
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(232, 245, 237, 0.82);
    color: #28533c;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.users-pagination span {
    opacity: 0.55;
}

.users-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 8px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(18, 132, 82, 0.18);
}

.users-edit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(18, 132, 82, 0.24);
}

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

/* Settings security logs */
.security-log-page,
.audit-log-workspace {
    display: grid;
    gap: 16px;
}

.security-log-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.security-log-hero span {
    display: inline-flex;
    margin-bottom: 6px;
    color: #0f8f57;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-log-hero h2 {
    margin: 0 0 7px;
    color: #0d3d2a;
    font-size: 25px;
    letter-spacing: 0;
}

.security-log-hero p {
    max-width: 760px;
    margin: 0;
    color: #607166;
    font-size: 14px;
    line-height: 1.55;
}

.security-log-hero > strong {
    min-width: 130px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 143, 87, 0.14), rgba(74, 240, 122, 0.2));
    color: #0d5d38;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}

.login-live-panel {
    display: grid;
    grid-template-columns: 128px minmax(220px, 330px);
    gap: 10px;
    align-items: stretch;
    margin-left: auto;
}

.login-live-count,
.login-live-users {
    border: 1px solid rgba(15, 143, 87, 0.14);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 244, 0.82));
    box-shadow: 0 14px 26px rgba(23, 77, 52, 0.08);
}

.login-live-count {
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px;
}

.login-live-count span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #0d7d4a;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-live-count span i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #19bd73;
    box-shadow: 0 0 0 5px rgba(25, 189, 115, 0.14);
}

.login-live-count strong {
    color: #092f20;
    font-size: 30px;
    line-height: 1;
}

.login-live-count small {
    color: #66786d;
    font-size: 10px;
    font-weight: 800;
}

.login-live-users {
    display: grid;
    gap: 5px;
    padding: 8px;
}

.login-live-user,
.login-live-empty,
.login-live-more {
    display: grid;
    gap: 2px;
    min-height: 34px;
    padding: 6px 8px 6px 11px;
    border-radius: 10px;
}

.login-live-user {
    background:
        linear-gradient(90deg, var(--login-user-bg), rgba(255, 255, 255, 0.72));
    box-shadow: inset 4px 0 0 var(--login-user-accent);
}

.login-live-user b {
    color: #102c21;
    font-size: 11px;
    line-height: 1.2;
}

.login-live-user span,
.login-live-empty,
.login-live-more {
    color: #687a70;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.2;
}

.login-live-empty,
.login-live-more {
    align-content: center;
    background: rgba(232, 245, 237, 0.7);
    text-align: center;
}

.login-data-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

.login-data-tabs a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 143, 87, 0.13);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(239, 249, 244, 0.76));
    color: #234637;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(23, 77, 52, 0.06);
}

.login-data-tabs a.active {
    border-color: rgba(15, 143, 87, 0.34);
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    box-shadow: 0 18px 32px rgba(18, 132, 82, 0.2);
}

.login-data-tabs span {
    font-size: 13px;
    font-weight: 950;
}

.login-data-tabs strong {
    min-width: 34px;
    min-height: 26px;
    display: inline-grid;
    place-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(13, 82, 51, 0.09);
    font-size: 12px;
    line-height: 1;
}

.login-data-tabs a.active strong {
    background: rgba(255, 255, 255, 0.22);
}

.login-live-workspace {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.login-live-overview {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.login-live-overview h3 {
    margin: 0 0 5px;
    color: #0d3d2a;
    font-size: 19px;
    letter-spacing: 0;
}

.login-live-overview p {
    margin: 0;
    color: #62756a;
    font-size: 12px;
    line-height: 1.45;
}

.login-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.login-live-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--login-user-line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--login-user-bg), rgba(255, 255, 255, 0.84));
    box-shadow:
        inset 5px 0 0 var(--login-user-accent),
        0 12px 24px rgba(23, 77, 52, 0.08);
}

.login-live-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.login-live-card-head > div {
    min-width: 0;
}

.login-live-card strong {
    display: block;
    color: #102c21;
    font-size: 13px;
    line-height: 1.25;
}

.login-live-card small {
    color: #68796f;
    font-size: 10px;
}

.login-live-card dl {
    display: grid;
    gap: 5px;
    margin: 0;
}

.login-live-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 5px;
    border-top: 1px solid rgba(28, 93, 60, 0.08);
}

.login-live-card dt,
.login-live-card dd {
    margin: 0;
    color: #62756a;
    font-size: 10px;
    font-weight: 850;
}

.login-live-card dd {
    color: #153a2a;
    text-align: right;
}

.login-live-logout-form {
    margin: 0;
    flex: 0 0 auto;
}

.login-live-logout-form button,
.login-live-current {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 9.5px;
    font-weight: 950;
    white-space: nowrap;
}

.login-live-logout-form button {
    border: 1px solid rgba(190, 59, 59, 0.16);
    background: linear-gradient(135deg, rgba(219, 64, 64, 0.95), rgba(190, 55, 55, 0.95));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(190, 55, 55, 0.16);
}

.login-live-logout-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 22px rgba(190, 55, 55, 0.2);
}

.login-live-current {
    background: rgba(15, 143, 87, 0.1);
    color: #0f7a4a;
}

.login-data-alert {
    padding: 10px 13px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
}

.login-data-alert.success {
    background: rgba(15, 143, 87, 0.1);
    color: #0f7a4a;
}

.login-data-alert.error {
    background: rgba(212, 67, 67, 0.1);
    color: #bd3838;
}

.login-live-empty-state {
    padding: 28px;
    border-radius: 14px;
    background: rgba(232, 245, 237, 0.7);
    color: #68796f;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.security-log-filter {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}

.security-log-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 0.7fr)) auto auto;
    gap: 10px;
    align-items: end;
    width: 100%;
}

.audit-log-filter-form.security-log-filter-form {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto;
}

.security-log-filter-form label {
    display: grid;
    gap: 6px;
}

.security-log-filter-form label span {
    color: #61756a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.security-log-filter-form input,
.security-log-filter-form select {
    min-height: 38px;
    width: 100%;
    border: 1px solid rgba(37, 121, 82, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #17251e;
    font: inherit;
    font-size: 13px;
    outline: none;
    padding: 9px 11px;
}

.security-log-filter-form input:focus,
.security-log-filter-form select:focus {
    border-color: rgba(15, 143, 87, 0.52);
    box-shadow: 0 0 0 4px rgba(15, 143, 87, 0.09);
}

.security-log-filter-form button,
.security-log-filter-form a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.security-log-filter-form button {
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    box-shadow: 0 12px 22px rgba(18, 132, 82, 0.17);
}

.security-log-filter-form a {
    background: rgba(232, 245, 237, 0.92);
    color: #245139;
}

.security-log-range {
    min-width: max-content;
    color: #51665a;
    font-size: 12px;
    font-weight: 900;
}

.security-log-table-card {
    padding: 0;
    overflow: hidden;
}

.security-log-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.security-log-table-wrap:has(.system-log-table) {
    overflow-x: hidden;
}

.security-log-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0;
}

.system-log-table,
.security-log-page .system-log-table {
    min-width: 0;
    table-layout: fixed;
}

.system-log-table th:nth-child(1),
.system-log-table td:nth-child(1) { width: 13%; }
.system-log-table th:nth-child(2),
.system-log-table td:nth-child(2) { width: 14%; }
.system-log-table th:nth-child(3),
.system-log-table td:nth-child(3) { width: 9%; }
.system-log-table th:nth-child(4),
.system-log-table td:nth-child(4) { width: 31%; }
.system-log-table th:nth-child(5),
.system-log-table td:nth-child(5) { width: 9%; }
.system-log-table th:nth-child(6),
.system-log-table td:nth-child(6) { width: 12%; }
.system-log-table th:nth-child(7),
.system-log-table td:nth-child(7) { width: 12%; }

.security-log-table th,
.security-log-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(34, 126, 84, 0.11);
    color: #1d2c24;
    font-size: 13px;
    vertical-align: middle;
}

.security-log-page .system-log-table th,
.security-log-page .system-log-table td {
    padding: 8px 9px;
    font-size: 10.8px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.security-log-page .system-log-table th {
    background:
        linear-gradient(180deg, rgba(240, 250, 244, 0.96), rgba(225, 242, 233, 0.92));
    color: #173e2b;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.security-log-table th {
    background: rgba(232, 245, 237, 0.92);
    color: #244534;
    font-weight: 950;
    text-align: left;
}

.security-log-table tbody tr:nth-child(4n + 1):not(.login-user-row):not(.security-log-user-agent-row) {
    background: rgba(245, 251, 247, 0.62);
}

.security-log-table .login-user-row td,
.security-log-table .security-log-user-agent-row[class*="login-user-color-"] td {
    background:
        linear-gradient(90deg, var(--login-user-bg), rgba(255, 255, 255, 0.78));
    border-bottom-color: var(--login-user-line);
}

.security-log-table .login-user-row td:first-child {
    box-shadow: inset 5px 0 0 var(--login-user-accent);
}

.security-log-table .login-user-row:hover td,
.security-log-table .security-log-user-agent-row[class*="login-user-color-"]:hover td {
    background:
        linear-gradient(90deg, var(--login-user-bg-strong), rgba(255, 255, 255, 0.9));
}

.login-user-color-1 { --login-user-bg: rgba(25, 189, 115, 0.14); --login-user-bg-strong: rgba(25, 189, 115, 0.22); --login-user-line: rgba(25, 189, 115, 0.2); --login-user-accent: #19bd73; }
.login-user-color-2 { --login-user-bg: rgba(48, 134, 255, 0.13); --login-user-bg-strong: rgba(48, 134, 255, 0.22); --login-user-line: rgba(48, 134, 255, 0.2); --login-user-accent: #3086ff; }
.login-user-color-3 { --login-user-bg: rgba(255, 176, 46, 0.16); --login-user-bg-strong: rgba(255, 176, 46, 0.25); --login-user-line: rgba(255, 176, 46, 0.22); --login-user-accent: #f1a21c; }
.login-user-color-4 { --login-user-bg: rgba(168, 91, 255, 0.13); --login-user-bg-strong: rgba(168, 91, 255, 0.22); --login-user-line: rgba(168, 91, 255, 0.2); --login-user-accent: #9858ef; }
.login-user-color-5 { --login-user-bg: rgba(255, 99, 132, 0.13); --login-user-bg-strong: rgba(255, 99, 132, 0.22); --login-user-line: rgba(255, 99, 132, 0.2); --login-user-accent: #ef5a80; }
.login-user-color-6 { --login-user-bg: rgba(20, 184, 166, 0.14); --login-user-bg-strong: rgba(20, 184, 166, 0.22); --login-user-line: rgba(20, 184, 166, 0.2); --login-user-accent: #14a99a; }
.login-user-color-7 { --login-user-bg: rgba(239, 126, 52, 0.14); --login-user-bg-strong: rgba(239, 126, 52, 0.23); --login-user-line: rgba(239, 126, 52, 0.21); --login-user-accent: #e66d2f; }
.login-user-color-8 { --login-user-bg: rgba(80, 110, 255, 0.13); --login-user-bg-strong: rgba(80, 110, 255, 0.22); --login-user-line: rgba(80, 110, 255, 0.2); --login-user-accent: #5368f1; }
.login-user-color-9 { --login-user-bg: rgba(132, 204, 22, 0.15); --login-user-bg-strong: rgba(132, 204, 22, 0.23); --login-user-line: rgba(132, 204, 22, 0.21); --login-user-accent: #74a916; }
.login-user-color-10 { --login-user-bg: rgba(236, 72, 153, 0.13); --login-user-bg-strong: rgba(236, 72, 153, 0.22); --login-user-line: rgba(236, 72, 153, 0.2); --login-user-accent: #dd438f; }
.login-user-color-11 { --login-user-bg: rgba(6, 182, 212, 0.14); --login-user-bg-strong: rgba(6, 182, 212, 0.22); --login-user-line: rgba(6, 182, 212, 0.2); --login-user-accent: #0aa6c2; }
.login-user-color-12 { --login-user-bg: rgba(100, 116, 139, 0.13); --login-user-bg-strong: rgba(100, 116, 139, 0.22); --login-user-line: rgba(100, 116, 139, 0.19); --login-user-accent: #64748b; }

.security-log-table td strong {
    display: block;
    color: #102c21;
    font-size: 13px;
}

.security-log-page .system-log-table td strong {
    font-size: 11px;
    line-height: 1.32;
}

.security-log-table td small {
    display: block;
    margin-top: 3px;
    color: #77867c;
    font-size: 11px;
}

.login-data-table th,
.login-data-table td {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.28;
}

.login-data-table td strong {
    font-size: 12px;
    line-height: 1.25;
}

.login-data-table td small {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.2;
}

.login-data-table .security-event-chip {
    min-height: 23px;
    padding: 3px 8px;
    font-size: 10px;
}

.login-data-table .security-log-user-agent-row td {
    font-size: 10px;
}

.security-log-page .system-log-table td small {
    margin-top: 2px;
    font-size: 9.4px;
    line-height: 1.3;
}

.security-event-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 143, 87, 0.13);
    color: #0f7a4a;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.security-event-chip.logout {
    background: rgba(42, 91, 146, 0.12);
    color: #245c99;
}

.security-event-chip.failed_login,
.security-event-chip.blocked_login {
    background: rgba(212, 67, 67, 0.12);
    color: #bd3838;
}

.security-log-user-agent-row td {
    padding-top: 0;
    color: #7b8a80;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
}

.security-log-empty {
    padding: 34px !important;
    color: #728078 !important;
    font-weight: 900;
    text-align: center;
}

.audit-log-list {
    display: grid;
    gap: 12px;
}

.audit-log-card {
    padding: 16px;
    border: 1px solid rgba(34, 126, 84, 0.13);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 244, 0.86));
    box-shadow: 0 14px 30px rgba(23, 77, 52, 0.08);
}

.audit-log-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.audit-log-head h3 {
    margin: 7px 0 5px;
    color: #102c21;
    font-size: 17px;
}

.audit-log-head p {
    margin: 0;
    color: #69796f;
    font-size: 12px;
}

.audit-log-head > strong {
    color: #0f8f57;
    font-size: 12px;
}

.audit-action {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 143, 87, 0.13);
    color: #0f7a4a;
    font-size: 11px;
    font-weight: 950;
}

.security-log-page .system-log-table .audit-action {
    min-height: 23px;
    padding: 3px 7px;
    border: 1px solid rgba(15, 143, 87, 0.12);
    background:
        linear-gradient(135deg, rgba(15, 143, 87, 0.14), rgba(25, 189, 115, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 9.5px;
    letter-spacing: 0.01em;
}

.system-log-agent {
    display: block;
    max-width: 240px;
    color: #73847a;
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
}

.security-log-page .system-log-agent {
    max-width: none;
    display: -webkit-box;
    overflow: hidden;
    font-size: 9.4px;
    line-height: 1.28;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.system-log-summary {
    display: block;
    color: #34483c;
    font-size: 10.6px;
    font-weight: 500;
    line-height: 1.35;
}

.system-log-details {
    margin-top: 5px;
}

.system-log-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 143, 87, 0.1);
    color: #0f7a4a;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.security-log-page .system-log-details summary {
    min-height: 21px;
    padding: 3px 7px;
    background: rgba(15, 143, 87, 0.08);
    font-size: 9.5px;
    font-weight: 650;
}

.system-log-details div {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(34, 126, 84, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.security-log-page .system-log-details div {
    gap: 5px;
    margin-top: 6px;
    padding: 8px;
    border-radius: 10px;
}

.system-log-details b,
.system-log-details span {
    color: #244534;
    font-size: 9.5px;
    font-weight: 500;
}

.system-log-details pre {
    max-height: 180px;
    margin: 0;
    overflow: auto;
    color: #2f4037;
    font-size: 11px;
    line-height: 1.42;
    white-space: pre-wrap;
    word-break: break-word;
}

.security-log-page .system-log-details pre {
    max-height: 116px;
    font-size: 9.3px;
    line-height: 1.32;
}

.audit-log-json-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.audit-log-json-grid details {
    border: 1px solid rgba(34, 126, 84, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.audit-log-json-grid summary {
    padding: 10px 12px;
    color: #244534;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.audit-log-json-grid pre {
    max-height: 240px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    border-top: 1px solid rgba(34, 126, 84, 0.1);
    color: #2f4037;
    font-size: 11px;
    line-height: 1.48;
    white-space: pre-wrap;
    word-break: break-word;
}

.audit-user-agent {
    margin-top: 10px;
    color: #7b8a80;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-word;
}

.users-create-form label {
    display: grid;
    gap: 6px;
}

.users-create-form label span {
    color: #42584b;
    font-size: 12px;
    font-weight: 900;
}

.users-create-form label span.is-required::after {
    content: " *";
    color: #e3342f;
    font-weight: 1000;
}

.users-create-form input,
.users-create-form select,
.users-create-form textarea {
    padding: 11px 12px;
}

.users-create-form input:focus,
.users-create-form select:focus,
.users-create-form textarea:focus,
.users-search-form input:focus {
    border-color: rgba(14, 160, 88, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.11);
}

.users-active-toggle {
    display: flex !important;
    grid-template-columns: none;
    flex-direction: row;
    align-items: center;
    gap: 9px !important;
    padding: 10px 12px;
    border: 1px solid rgba(37, 121, 82, 0.16);
    border-radius: 12px;
    background: rgba(242, 250, 245, 0.78);
}

.users-active-toggle input {
    width: 16px;
    height: 16px;
}

.users-create-form button {
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(18, 132, 82, 0.22);
}

.users-create-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(18, 132, 82, 0.28);
}

.users-registration-card {
    max-width: 980px;
}

.users-registration-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.users-registration-form h4,
.users-registration-form .users-form-wide {
    grid-column: span 2;
}

.users-registration-form h4 {
    margin: 6px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(37, 121, 82, 0.12);
    color: #103b2b;
    font-size: 13px;
    font-weight: 900;
}

.users-registration-form .users-active-toggle,
.users-registration-form button {
    grid-column: span 2;
}

.users-create-form textarea {
    min-height: 92px;
    resize: vertical;
}

.users-document-upload {
    padding: 12px;
    border: 1px dashed rgba(37, 121, 82, 0.3);
    border-radius: 14px;
    background: rgba(248, 253, 250, 0.86);
}

.users-document-upload input[type="file"] {
    padding: 9px;
    border-style: dashed;
    background: #fff;
    cursor: pointer;
}

/* Profile page */
.profile-workspace {
    display: grid;
    gap: 18px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.profile-avatar {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    font-size: 26px;
    font-weight: 1000;
    box-shadow: 0 16px 30px rgba(18, 132, 82, 0.24);
}

.profile-hero h2 {
    margin: 4px 0 2px;
    color: #103b2b;
    font-size: 24px;
    letter-spacing: 0;
}

.profile-hero p {
    margin: 0;
    color: #607166;
    font-size: 13px;
    font-weight: 700;
}

.profile-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
}

.profile-status.active {
    background: rgba(18, 156, 87, 0.13);
    color: #0f7b48;
}

.profile-status.inactive {
    background: rgba(212, 67, 67, 0.12);
    color: #bd3838;
}

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

.profile-info-card,
.profile-password-card {
    padding: 18px;
}

.profile-password-card {
    grid-column: span 2;
}

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

.profile-info-list div,
.profile-note {
    display: grid;
    gap: 5px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid rgba(37, 121, 82, 0.13);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 250, 245, 0.78));
}

.profile-info-list span,
.profile-note span {
    color: #6a7b70;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-info-list strong {
    color: #102c21;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-note {
    margin-top: 10px;
}

.profile-note p {
    margin: 0;
    color: #304238;
    font-size: 13px;
    line-height: 1.6;
}

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

.profile-password-form button {
    grid-column: span 3;
}

/* Stripe transactions */
.stripe-page {
    display: grid;
    gap: 16px;
}

.stripe-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.stripe-hero h2 {
    margin: 6px 0 8px;
    color: #102c21;
    font-size: 24px;
    letter-spacing: 0;
}

.stripe-hero p {
    max-width: 620px;
    margin: 0;
    color: #64756a;
    font-size: 14px;
    line-height: 1.55;
}

.stripe-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    min-width: 340px;
}

.stripe-summary article {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(99, 91, 255, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 244, 255, 0.9));
}

.stripe-summary span,
.stripe-filter span {
    color: #61706a;
    font-size: 12px;
    font-weight: 900;
}

.stripe-summary strong {
    color: #202143;
    font-size: 23px;
    line-height: 1.1;
}

.stripe-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 16px;
}

.stripe-filter label {
    display: grid;
    gap: 6px;
}

.stripe-filter input,
.stripe-filter select {
    min-height: 42px;
    border: 1px solid rgba(99, 91, 255, 0.18);
    border-radius: 12px;
    padding: 9px 12px;
    background: #fff;
    color: #1d2c24;
    font: inherit;
}

.stripe-table-card {
    padding: 16px;
}

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

.stripe-table th,
.stripe-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(99, 91, 255, 0.11);
    color: #1d2c24;
    font-size: 13px;
    vertical-align: middle;
}

.stripe-table th {
    background: rgba(242, 244, 255, 0.92);
    color: #25254d;
    font-weight: 900;
    text-align: left;
}

.stripe-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 255, 0.72);
}

.stripe-status,
.stripe-receipt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.stripe-status {
    background: rgba(20, 156, 93, 0.13);
    color: #0f7b48;
}

.stripe-receipt-link {
    background: rgba(99, 91, 255, 0.12);
    color: #4f46e5;
    text-decoration: none;
}

@media (max-width: 900px) {
    .stripe-hero,
    .stripe-filter {
        display: grid;
    }

    .stripe-summary {
        min-width: 0;
    }
}

/* Stripe dashboard-style transactions */
.stripe-dashboard-view {
    position: relative;
    gap: 0;
    border: 1px solid rgba(208, 219, 234, 0.82);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
        radial-gradient(circle at top left, rgba(99, 91, 255, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(0, 214, 111, 0.11), transparent 32%);
    box-shadow: 0 24px 54px rgba(25, 42, 70, 0.13);
    overflow: visible;
}

.stripe-dashboard-filters {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(218, 226, 238, 0.9);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.stripe-filter-pill {
    position: relative;
    z-index: 55;
}

.stripe-filter-pill[open] {
    z-index: 80;
}

.stripe-filter-pill summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d4deeb;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 18px rgba(42, 58, 90, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.stripe-filter-pill summary:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 91, 255, 0.36);
    box-shadow: 0 12px 24px rgba(42, 58, 90, 0.1);
}

.stripe-filter-pill summary::-webkit-details-marker {
    display: none;
}

.stripe-filter-pill summary span {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid #70819a;
    border-radius: 50%;
    color: #526784;
    font-size: 13px;
    line-height: 1;
}

.stripe-filter-pill[open] summary {
    border-color: rgba(99, 91, 255, 0.44);
    background: #f4f6ff;
    color: #4f46e5;
}

.stripe-filter-popover {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: 220px;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(208, 219, 234, 0.94);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 42px rgba(27, 43, 68, 0.18);
}

.stripe-filter-popover label {
    display: grid;
    gap: 5px;
    color: #465a73;
    font-size: 12px;
    font-weight: 800;
}

.stripe-filter-popover input,
.stripe-filter-popover select {
    min-height: 38px;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 8px 10px;
    color: #24364d;
    font: inherit;
}

.stripe-filter-popover button,
.stripe-filter-apply {
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    background: linear-gradient(135deg, #635bff, #7c73ff);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.stripe-filter-popover a {
    color: #526784;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.stripe-filter-apply {
    margin-left: auto;
    height: 36px;
    padding: 0 16px;
    background: linear-gradient(135deg, #17283d, #334155);
    color: #fff;
    border: 1px solid rgba(23, 40, 61, 0.14);
    box-shadow: 0 12px 24px rgba(23, 40, 61, 0.16);
}

.stripe-inline-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    margin-left: 0;
    padding: 0 16px;
    border: 1px solid rgba(203, 213, 225, 0.94);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 24px rgba(42, 58, 90, 0.06);
}

.stripe-inline-search span {
    color: #635bff;
    font-size: 12px;
    font-weight: 900;
}

.stripe-inline-search input {
    width: 430px;
    border: 0;
    outline: none;
    background: transparent;
    color: #17283d;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.stripe-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.88);
}

.stripe-active-filters > span {
    color: #526784;
    font-size: 12px;
    font-weight: 900;
}

.stripe-active-filters b,
.stripe-active-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.stripe-active-filters b {
    border: 1px solid rgba(99, 91, 255, 0.16);
    background: rgba(99, 91, 255, 0.08);
    color: #4f46e5;
}

.stripe-active-filters a {
    background: #f1f5f9;
    color: #526784;
}

.stripe-dashboard-table-shell {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    overflow-x: auto;
}

.stripe-dashboard-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.stripe-dashboard-table th,
.stripe-dashboard-table td {
    height: 50px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: #3f516b;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.stripe-dashboard-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 48px;
    color: #17283d;
    font-size: 12px;
    font-weight: 900;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: inset 0 -1px 0 rgba(226, 232, 240, 0.95);
}

.stripe-dashboard-table tbody tr {
    background: rgba(255, 255, 255, 0.86);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.stripe-dashboard-table tbody tr:hover {
    background: #fbfdff;
    box-shadow: inset 4px 0 0 rgba(99, 91, 255, 0.72);
}

.stripe-check-col {
    width: 42px;
    padding-right: 0 !important;
}

.stripe-check {
    display: inline-block;
    width: 19px;
    height: 19px;
    border: 1px solid #d4deeb;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #f3f7fb);
    box-shadow: 0 2px 5px rgba(28, 45, 70, 0.06);
}

.stripe-dashboard-table thead .stripe-check {
    background: #fff;
}

.stripe-amount-cell,
.stripe-method-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stripe-amount-cell strong {
    color: #182a42;
    font-size: 13px;
    font-weight: 900;
}

.stripe-amount-cell > span {
    color: #31455f;
    font-size: 12px;
}

.stripe-amount-cell em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 8px;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.stripe-amount-cell em.is-success {
    border: 1px solid #80e35a;
    background: #efffe8;
    color: #1d7d0e;
}

.stripe-amount-cell em.is-incomplete {
    border: 1px solid #cbd7e6;
    background: #f8fbff;
    color: #526784;
}

.stripe-method-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    color: #071d2d;
    font-weight: 1000;
    box-shadow: 0 8px 16px rgba(20, 36, 58, 0.12);
}

.stripe-method-icon.is-link {
    background: #00d66f;
    font-size: 20px;
}

.stripe-method-icon.is-card {
    background: #1739d7;
    color: #fff;
    font-size: 8px;
}

.stripe-method-dash {
    color: #33465f;
    font-size: 16px;
}

.stripe-dashboard-table code {
    color: #3f516b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.stripe-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.88);
    color: #39475d;
    font-size: 12px;
    font-weight: 800;
}

.stripe-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stripe-pagination a,
.stripe-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    min-width: 76px;
    padding: 6px 11px;
    border: 1px solid rgba(203, 213, 225, 0.94);
    border-radius: 10px;
    background: #fff;
    color: #354861;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.stripe-pagination span {
    color: #8a99aa;
    background: #f7f9fc;
}

@media (max-width: 900px) {
    .stripe-dashboard-filters {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 18px;
    }

    .stripe-filter-apply {
        margin-left: 0;
    }

    .stripe-inline-search {
        width: 100%;
        margin-left: 0;
    }

    .stripe-inline-search input {
        width: 100%;
    }

    .stripe-filter-popover {
        position: static;
        margin-top: 8px;
    }

    .stripe-table-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

.users-role-layout {
    display: grid;
    grid-template-columns: minmax(310px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.users-role-list {
    display: grid;
    gap: 10px;
}

.users-role-row {
    display: grid;
    grid-template-columns: 44px minmax(150px, 1fr) minmax(180px, 1.3fr) 130px auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(31, 112, 76, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
}

.users-role-row.is-system {
    background: rgba(239, 244, 241, 0.76);
}

.users-role-row label {
    display: grid;
    gap: 5px;
}

.users-role-row label span {
    color: #617369;
    font-size: 11px;
    font-weight: 900;
}

.users-role-row input[type="text"] {
    width: 100%;
    border: 1px solid rgba(37, 121, 82, 0.18);
    border-radius: 11px;
    padding: 10px;
    color: #1d2c24;
    font: inherit;
    font-size: 13px;
}

.users-role-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    background: rgba(21, 144, 88, 0.14);
    color: #0d7d4a;
    font-weight: 900;
}

.users-role-row button,
.users-permission-actions button {
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    background: linear-gradient(135deg, #0f8f57, #19bd73);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.users-role-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.users-role-picker a {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid rgba(31, 112, 76, 0.14);
    border-radius: 15px;
    background: rgba(247, 252, 249, 0.9);
    color: #213f31;
    text-decoration: none;
}

.users-role-picker a.active {
    border-color: rgba(22, 154, 92, 0.4);
    background: linear-gradient(135deg, rgba(15, 143, 87, 0.16), rgba(25, 189, 115, 0.1));
}

.users-role-picker strong {
    font-size: 13px;
    font-weight: 900;
}

.users-role-picker span {
    color: #697a70;
    font-size: 11px;
    font-weight: 800;
}

.users-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.users-permission-grid fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(31, 112, 76, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
}

.users-permission-grid legend {
    padding: 0 6px;
    color: #123b2b;
    font-size: 13px;
    font-weight: 900;
}

.users-permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #32483b;
    font-size: 12px;
    font-weight: 800;
}

.users-permission-grid input {
    width: 15px;
    height: 15px;
}

.users-permission-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.users-permission-actions span {
    color: #718176;
    font-size: 12px;
    font-weight: 800;
}

.users-permission-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 1180px) {
    .users-layout {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-password-card {
        grid-column: auto;
    }

    .users-tabs,
    .users-role-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-hero {
        display: grid;
    }

    .users-hero-metrics {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .users-tabs,
    .users-hero-metrics {
        grid-template-columns: 1fr;
    }

    .users-role-layout,
    .users-registration-form,
    .users-role-row,
    .profile-info-list,
    .profile-password-form {
        grid-template-columns: 1fr;
    }

    .users-registration-form .users-active-toggle,
    .users-registration-form h4,
    .users-registration-form .users-form-wide,
    .users-registration-form button,
    .profile-password-form button {
        grid-column: auto;
    }

    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-status {
        margin-left: 0;
    }

    .users-card-head,
    .users-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .users-search-form input {
        min-width: 0;
    }
}

@media (max-width: 1180px) {
    .security-log-filter,
    .security-log-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .login-live-panel {
        width: 100%;
        margin-left: 0;
        grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    }

    .security-log-filter-form,
    .audit-log-filter-form.security-log-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .security-log-filter-form,
    .audit-log-filter-form.security-log-filter-form,
    .audit-log-json-grid {
        grid-template-columns: 1fr;
    }

    .security-log-hero,
    .security-log-filter,
    .audit-log-card {
        padding: 14px;
    }

    .login-live-panel {
        grid-template-columns: 1fr;
    }

    .login-data-tabs,
    .login-live-overview {
        grid-template-columns: 1fr;
    }
}
