:root {
    --font-body: "M PLUS Rounded 1c", "Nunito", sans-serif;
    --font-display: "Baloo 2", "M PLUS Rounded 1c", cursive;
    --bg: #f4ecd9;
    --bg-deep: #e9dcc0;
    --surface: rgba(255, 251, 244, 0.84);
    --surface-strong: #fffdf9;
    --surface-soft: rgba(255, 248, 238, 0.62);
    --surface-tint: rgba(255, 240, 216, 0.74);
    --ink: #21160b;
    --muted: #6d5f4d;
    --line: rgba(68, 44, 14, 0.12);
    --line-strong: rgba(68, 44, 14, 0.2);
    --green: #2d633b;
    --green-dark: #183b22;
    --green-soft: #5c9b69;
    --feirou: #6ab33d;
    --feirou-deep: #4f8e2b;
    --gold: #f2ba4c;
    --gold-deep: #d9861f;
    --orange: #c86d33;
    --cream: #fdf7ec;
    --danger: #bd5a4e;
    --shadow-soft: 0 20px 40px rgba(73, 48, 18, 0.08);
    --shadow: 0 28px 70px rgba(73, 48, 18, 0.14);
    --radius-2xl: 32px;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(242, 186, 76, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(74, 128, 88, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f0df 0%, #f2e8d3 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.24), transparent 35%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.16), transparent 40%);
    opacity: 0.7;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 18px 0 8px;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    transition: grid-template-columns 220ms ease;
}

.app-shell.is-nav-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.app-brandbar {
    position: sticky;
    top: 0;
    z-index: 4;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 252, 247, 0.92) 100%);
    border-bottom: 1px solid rgba(68, 44, 14, 0.06);
    box-shadow: 0 16px 34px rgba(73, 48, 18, 0.05);
    backdrop-filter: blur(20px);
}

.app-brandbar__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 20px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-brandbar__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.app-brandbar__logo {
    display: block;
    width: auto;
    height: clamp(38px, 5vw, 50px);
    filter: saturate(1.08) contrast(1.14) drop-shadow(0 8px 20px rgba(106, 179, 61, 0.16));
}

.app-brandbar__account {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 1 380px;
    max-width: min(100%, 380px);
}

.user-presence {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 8px 14px 8px 8px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 244, 236, 0.9) 100%);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow:
        0 14px 28px rgba(73, 48, 18, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.user-presence__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(106, 179, 61, 0.96) 0%, rgba(139, 205, 84, 0.92) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    flex: 0 0 auto;
}

.user-presence__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    justify-content: center;
}

.user-presence__copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.1;
}

.user-presence__copy small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.2;
}

.user-presence__logout {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    justify-self: end;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 244, 236, 0.92) 100%);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow:
        0 14px 28px rgba(73, 48, 18, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    color: var(--feirou-deep);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.user-presence__logout-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.user-presence__logout:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 30px rgba(73, 48, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pagebar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(170, 214, 139, 0.96) 0%, rgba(203, 230, 180, 0.94) 100%);
    border: 1px solid rgba(79, 142, 43, 0.34);
    box-shadow:
        0 18px 34px rgba(56, 97, 31, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pagebar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at top right, rgba(106, 179, 61, 0.28), transparent 34%),
        radial-gradient(circle at bottom left, rgba(79, 142, 43, 0.2), transparent 30%);
    pointer-events: none;
}

.app-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shell-sidebar {
    position: sticky;
    top: 92px;
    z-index: 3;
}

.shell-sidebar__panel {
    position: relative;
    padding: 22px 14px 16px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 242, 0.88) 100%);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow:
        0 22px 42px rgba(73, 48, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
}

.shell-sidebar__head {
    display: flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 0 10px;
}

.shell-sidebar__title {
    max-width: 120px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: max-width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.shell-sidebar__toggle {
    position: absolute;
    top: 18px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(68, 44, 14, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(73, 48, 18, 0.12);
    color: var(--muted);
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.shell-sidebar__toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(73, 48, 18, 0.14);
}

.shell-sidebar__toggle-icon {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.app-shell.is-nav-collapsed .shell-sidebar__toggle-icon {
    transform: rotate(180deg);
}

.app-shell.is-nav-collapsed .shell-sidebar__title {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
}

.app-shell.is-nav-collapsed .shell-sidebar__panel {
    padding-inline: 10px;
}

.app-shell.is-nav-collapsed .shell-sidebar__head {
    justify-content: center;
    margin-bottom: 14px;
    padding-inline: 0;
}

.app-shell::before,
.app-shell::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.app-shell::before {
    top: 88px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: rgba(242, 186, 76, 0.14);
}

.app-shell::after {
    right: -120px;
    bottom: 80px;
    width: 280px;
    height: 280px;
    background: rgba(65, 112, 76, 0.1);
}

.topbar {
    position: relative;
    z-index: 2;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
}

.topbar--surface {
    min-width: 0;
}

.topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.topbar-inner--simple {
    padding-top: 20px;
    padding-bottom: 22px;
    justify-content: flex-start;
}

.topbar-title-only h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.1vw, 2.7rem);
    line-height: 1;
    color: var(--green-dark);
}

.topbar--surface .topbar-title-only {
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 0 8px 0 4px;
}

.topbar-brand-inner {
    padding-top: 28px;
    padding-bottom: 30px;
}

.brand-lockup,
.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo,
.section-icon,
.icon-link {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 1.45rem;
}

.brand-logo {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8cf 0%, #ffd76a 45%, #f4a022 100%);
    color: #24592f;
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.52),
        0 12px 28px rgba(16, 22, 8, 0.18);
}

.brand-lockup h1,
.section-heading h1,
.page-hero h2,
.modal-title {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0;
}

.brand-lockup h1,
.section-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1;
}

.brand-lockup p,
.section-heading p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}

.topbar-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 248, 223, 0.72);
}

.topbar-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: min(320px, 100%);
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.topbar-panel__label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.topbar-panel__value {
    font-size: 1.35rem;
    font-weight: 800;
}

.topbar-panel__meta {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.topbar-dashboard {
    background:
        radial-gradient(circle at left center, rgba(84, 140, 95, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(37, 86, 48, 0.98) 0%, rgba(20, 53, 30, 1) 100%);
}

.topbar-operational {
    background:
        radial-gradient(circle at left top, rgba(84, 140, 95, 0.1), transparent 26%),
        linear-gradient(135deg, rgba(35, 82, 46, 0.98) 0%, rgba(20, 51, 30, 0.99) 100%);
    box-shadow: 0 16px 42px rgba(26, 57, 34, 0.22);
}

.topbar-dashboard-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 32px;
}

.brand-lockup--dashboard {
    align-self: stretch;
    gap: 20px;
}

.brand-lockup--dashboard h1 {
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 0.94;
}

.brand-lockup--dashboard p {
    max-width: 18ch;
    margin-top: 8px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 18px;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.dashboard-hero-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.dashboard-hero-panel .topbar-panel__value {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 3vw, 2.8rem);
    line-height: 0.95;
}

.dashboard-hero-panel .topbar-panel__meta {
    max-width: 32ch;
    font-size: 0.98rem;
    line-height: 1.45;
}

.dashboard-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-self: stretch;
}

.dashboard-hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 94px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-hero-stat__label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-hero-stat__value {
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    line-height: 1;
    font-weight: 800;
}

.topbar-operational-inner {
    align-items: flex-end;
    padding-top: 24px;
    padding-bottom: 24px;
}

.brand-lockup--operational h1 {
    font-size: clamp(1.95rem, 3.3vw, 2.55rem);
    line-height: 0.98;
}

.brand-lockup--operational p {
    margin-top: 6px;
}

.topbar-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 800;
}

.topbar-chip--soft {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
}

.topbar-panel--production {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
    align-items: start;
    gap: 18px;
    min-width: min(700px, 100%);
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.topbar-panel__copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.topbar-panel--production .topbar-panel__label {
    color: rgba(255, 248, 223, 0.74);
}

.topbar-panel--production .topbar-panel__value {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 0.98;
}

.topbar-panel--production .topbar-panel__meta {
    max-width: 34ch;
    font-size: 0.96rem;
    line-height: 1.45;
}

.topbar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
}

.topbar-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 82px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.topbar-stat__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}

.topbar-stat__value {
    font-size: clamp(1.3rem, 2.3vw, 1.9rem);
    line-height: 1;
    font-weight: 800;
}

.shell-nav {
    position: relative;
    z-index: 3;
    padding: 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.shell-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.shell-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 22px;
    color: var(--muted);
    font-weight: 800;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        background 180ms ease,
        padding 180ms ease,
        gap 180ms ease;
}

.shell-nav__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 4px;
    height: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0b037 0%, #d98a19 100%);
    opacity: 0;
    transform: translateY(-50%);
    transition: height 180ms ease, opacity 180ms ease;
}

.shell-nav__link:hover,
.segment-link:hover,
.segment-button:hover,
.icon-link:hover,
.chip-button:hover,
.action-button:hover,
.primary-cta:hover {
    transform: translateY(-1px);
}

.shell-nav__link:hover {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.shell-nav__link.is-active {
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 250, 242, 0.96) 100%);
    box-shadow:
        0 14px 28px rgba(73, 48, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shell-nav__link.is-active::before {
    height: 28px;
    opacity: 1;
}

.shell-nav__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(255, 240, 211, 0.9);
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.shell-nav__icon-image {
    display: block;
    width: 21px;
    height: 21px;
    object-fit: contain;
    opacity: 0.82;
}

.shell-nav__link.is-active .shell-nav__icon {
    background: linear-gradient(135deg, var(--feirou) 0%, #8eca56 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(106, 179, 61, 0.24);
}

.shell-nav__link.is-active .shell-nav__icon-image {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.shell-nav__label {
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.shell-nav__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shell-nav__group-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        color 180ms ease,
        gap 180ms ease,
        padding 180ms ease;
}

.shell-nav__group-heading:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.shell-nav__group.is-active .shell-nav__group-heading {
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 250, 242, 0.96) 100%);
    box-shadow:
        0 14px 28px rgba(73, 48, 18, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.shell-nav__group-caret {
    margin-left: auto;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.shell-nav__group.is-expanded .shell-nav__group-caret {
    transform: rotate(90deg);
}

.shell-nav__subnav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0 0 18px;
}

.shell-nav__group.is-expanded .shell-nav__subnav {
    display: flex;
}

.shell-nav__sublink {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 16px;
    gap: 10px;
}

.shell-nav__subdot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
    background: rgba(68, 44, 14, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.shell-nav__subicon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: rgba(68, 44, 14, 0.48);
    font-size: 0.95rem;
    line-height: 1;
    transition: color 180ms ease, transform 180ms ease;
}

.shell-nav__sublink.is-active .shell-nav__subdot {
    background: linear-gradient(135deg, var(--feirou) 0%, #f0b037 100%);
    box-shadow: 0 8px 18px rgba(106, 179, 61, 0.22);
}

.shell-nav__sublink:hover .shell-nav__subicon,
.shell-nav__sublink.is-active .shell-nav__subicon {
    color: var(--feirou-deep);
}

.app-shell.is-nav-collapsed .shell-nav__link {
    justify-content: center;
    padding-inline: 0;
    gap: 0;
    border-radius: 24px;
}

.app-shell.is-nav-collapsed .shell-nav__link::before {
    left: 4px;
}

.app-shell.is-nav-collapsed .shell-nav__label {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
}

.app-shell.is-nav-collapsed .shell-nav__group-heading {
    justify-content: center;
    padding-inline: 0;
    gap: 0;
}

.app-shell.is-nav-collapsed .shell-nav__group-caret {
    display: none;
}

.app-shell.is-nav-collapsed .shell-nav__subnav {
    display: none;
}

.app-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 0 84px;
}

.auth-page {
    min-height: 100vh;
}

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

.auth-card {
    width: min(100%, 460px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 247, 239, 0.94) 100%);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow:
        0 24px 52px rgba(73, 48, 18, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.auth-card__brand {
    display: inline-flex;
    align-self: flex-start;
}

.auth-card__logo {
    display: block;
    width: auto;
    height: clamp(44px, 6vw, 56px);
}

.auth-card__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-card__eyebrow {
    color: var(--feirou-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card__copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 0.96;
}

.auth-card__copy p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.auth-preview {
    display: grid;
    gap: 14px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(189, 90, 78, 0.1);
    border: 1px solid rgba(189, 90, 78, 0.18);
    color: var(--danger);
    font-weight: 800;
    line-height: 1.4;
}

.auth-alert--success {
    background: rgba(92, 166, 111, 0.12);
    border-color: rgba(92, 166, 111, 0.24);
    color: var(--green-dark);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-field input {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card__action {
    justify-content: center;
}

.auth-card__hint {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.flash-payload {
    display: none;
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 140;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 16px 18px 18px;
    border-radius: 22px;
    border: 1px solid rgba(68, 44, 14, 0.12);
    box-shadow: 0 24px 48px rgba(40, 28, 12, 0.18);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 200ms ease, transform 220ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.toast--success {
    background: rgba(246, 255, 248, 0.94);
    color: #1f5a34;
}

.toast--error {
    background: rgba(255, 243, 241, 0.96);
    color: #8a3a33;
}

.toast__title {
    margin-bottom: 4px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.toast__message {
    line-height: 1.45;
    font-weight: 800;
}

.toast__progress {
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.32));
    transform-origin: left center;
    animation: toast-progress linear forwards;
    animation-duration: var(--toast-duration, 4200ms);
}

.workspace {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-tight {
    width: 100%;
    max-width: none;
}

[data-page-surface="dashboard"] .workspace {
    gap: 18px;
}

.workspace-dashboard {
    width: 100%;
    max-width: none;
}

[data-page-surface="producao"] .workspace-tight {
    gap: 16px;
}

[data-page-summary="relatorios"] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.workspace-narrow {
    width: 100%;
    max-width: none;
}

.workspace > * {
    animation: rise-up 420ms ease both;
}

[data-page-surface],
[data-page-summary],
[data-page-collection],
[data-page-topbar] {
    transform-origin: top center;
}

.is-region-entering {
    animation: region-swap 280ms ease both;
}

.is-card-entering {
    animation: card-swap 300ms ease both;
}

.batch-card.is-updating,
.order-card.is-updating {
    opacity: 0.58;
    transform: scale(0.985);
    pointer-events: none;
}

.dashboard-overview {
    display: grid;
    gap: 16px;
}

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

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 251, 244, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.dashboard-card__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-card__heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1;
}

.dashboard-card__heading .toolbar-card__eyebrow {
    margin-bottom: 8px;
}

.dashboard-card__heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.dashboard-chart-card {
    min-height: 310px;
}

.dashboard-chart-card--featured {
    grid-row: span 2;
}

.dashboard-chart-donut {
    position: relative;
    min-height: 270px;
}

.dashboard-chart-donut canvas,
.dashboard-chart-frame canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-chart-donut__center {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ink);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dashboard-chart-donut__center strong {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.2rem);
    line-height: 0.95;
}

.dashboard-chart-donut__center span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-chart-frame {
    position: relative;
    min-height: calc((var(--chart-rows, 3) * 44px) + 78px);
}

.dashboard-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-chart-legend__item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-chart-legend__item > span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--chart-color);
}

.dashboard-chart-legend__item strong,
.dashboard-chart-legend__item small {
    display: block;
}

.dashboard-chart-legend__item strong {
    color: var(--ink);
    line-height: 1.2;
}

.dashboard-chart-legend__item small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-chart-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.dashboard-metric-grid {
    display: grid;
    gap: 12px;
}

.dashboard-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(68, 44, 14, 0.08);
}

.dashboard-metric__label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-metric__value {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1;
    font-weight: 800;
    color: var(--ink);
}

.dashboard-metric__meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.dashboard-metric--green {
    background: rgba(88, 139, 98, 0.12);
    border-color: rgba(45, 99, 59, 0.16);
}

.dashboard-metric--gold {
    background: rgba(242, 186, 76, 0.14);
    border-color: rgba(217, 122, 30, 0.12);
}

.dashboard-metric--teal {
    background: rgba(93, 145, 137, 0.12);
    border-color: rgba(47, 103, 95, 0.14);
}

.dashboard-metric--orange {
    background: rgba(216, 136, 57, 0.12);
    border-color: rgba(170, 83, 36, 0.12);
}

.dashboard-metric--violet {
    background: rgba(135, 85, 139, 0.12);
    border-color: rgba(93, 54, 95, 0.14);
}

.dashboard-metric--rose {
    background: rgba(183, 106, 118, 0.12);
    border-color: rgba(141, 67, 83, 0.14);
}

.dashboard-metric--emerald {
    background: rgba(72, 161, 111, 0.12);
    border-color: rgba(35, 104, 70, 0.14);
}

.dashboard-metric--sky {
    background: rgba(70, 138, 140, 0.12);
    border-color: rgba(36, 89, 93, 0.14);
}

.dashboard-metric--magenta {
    background: rgba(157, 91, 107, 0.12);
    border-color: rgba(105, 48, 66, 0.14);
}

.page-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 18px;
    padding: 28px;
    border-radius: var(--radius-2xl);
    color: #fff;
    box-shadow: var(--shadow);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.page-hero::before {
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.1);
}

.page-hero::after {
    bottom: -90px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: rgba(255, 202, 102, 0.16);
}

.page-hero--production {
    background: linear-gradient(140deg, #295c37 0%, #173920 100%);
}

.page-hero--orders {
    background: linear-gradient(140deg, #5f3d1d 0%, #2f231b 100%);
}

.page-hero--reports {
    background: linear-gradient(140deg, #293c2e 0%, #1b2620 100%);
}

.page-hero__content,
.hero-stats {
    position: relative;
    z-index: 1;
}

.page-hero__content {
    max-width: 620px;
}

.hero-kicker,
.toolbar-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h2 {
    font-size: clamp(2rem, 4vw, 2.95rem);
    line-height: 1;
    margin-bottom: 12px;
}

.page-hero p {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.03rem;
    line-height: 1.55;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-self: end;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-stat span,
.hero-stat small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.hero-stat strong {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 800;
}

.toolbar-card,
.panel-card,
.batch-card,
.order-card,
.empty-state,
.report-row,
.modal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.toolbar-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 28px;
}

.toolbar-card--production {
    gap: 12px;
    padding: 16px 18px 18px;
    background: rgba(255, 250, 243, 0.68);
}

.toolbar-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-card__eyebrow {
    color: var(--green);
    margin-bottom: 8px;
}

.toolbar-card__description {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
}

.toolbar-card__row--compact {
    align-items: baseline;
    gap: 10px 14px;
}

.toolbar-card--production .toolbar-card__eyebrow {
    margin-bottom: 4px;
}

.toolbar-card--production .toolbar-card__description {
    max-width: none;
    font-size: 0.95rem;
}

.toolbar-card--production .segmented-control {
    background: rgba(255, 255, 255, 0.78);
}

.toolbar-search {
    flex: 1 1 360px;
}

.toolbar-cta {
    width: auto;
    min-width: 220px;
}

body:has([data-page-surface="producao"]) .toast-stack {
    bottom: 118px;
}

.fab-panela {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 214px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(255, 236, 184, 0.22), transparent 38%),
        linear-gradient(135deg, #f4af29 0%, #d87a1e 55%, #a84f18 100%);
    box-shadow:
        0 24px 44px rgba(133, 70, 15, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    animation: fab-drift 3s ease-in-out infinite;
}

.fab-panela::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(243, 175, 41, 0.28);
    opacity: 0.8;
    animation: fab-pulse 2.6s ease-out infinite;
}

.fab-panela:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 28px 52px rgba(133, 70, 15, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.fab-panela__icon,
.fab-panela__content {
    position: relative;
    z-index: 1;
}

.fab-panela__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 1.35rem;
}

.fab-panela__icon-image {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.fab-panela__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.fab-panela__content small {
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 247, 228, 0.76);
}

.fab-panela__content strong {
    font-family: var(--font-display);
    font-size: 1.34rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.segmented-control.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.segmented-control.slim {
    padding: 6px;
}

.segment-link,
.segment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.segment-link.is-active,
.segment-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, #f4af28 0%, #d97a1e 100%);
    box-shadow: 0 14px 26px rgba(217, 122, 30, 0.24);
}

.segment-badge {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 0.84rem;
}

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

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

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 152px;
    padding: 20px;
    border-radius: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.metric-card::after {
    content: "";
    position: absolute;
    top: -42px;
    right: -20px;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.metric-card__icon {
    font-size: 1.45rem;
    position: relative;
    z-index: 1;
}

.metric-card__label,
.metric-card__meta {
    position: relative;
    z-index: 1;
}

.metric-card__label {
    font-size: 1.02rem;
    font-weight: 700;
}

.metric-card__value {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1;
    font-weight: 800;
}

.metric-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.metric-gold {
    background: linear-gradient(140deg, #efbe55 0%, #d88b1d 100%);
}

.metric-violet {
    background: linear-gradient(140deg, #87558b 0%, #5d365f 100%);
}

.metric-green {
    background: linear-gradient(140deg, #3f8a58 0%, #1d5a34 100%);
}

.metric-orange {
    background: linear-gradient(140deg, #d88839 0%, #aa5324 100%);
}

.metric-emerald {
    background: linear-gradient(140deg, #48a16f 0%, #236846 100%);
}

.metric-magenta {
    background: linear-gradient(140deg, #9d5b6b 0%, #693042 100%);
}

.metric-sky {
    background: linear-gradient(140deg, #468a8c 0%, #24595d 100%);
}

.status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255, 251, 245, 0.88);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow: var(--shadow-soft);
    color: var(--muted);
    font-weight: 700;
}

.status-strip strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.batch-list,
.order-list,
.report-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.batch-card,
.order-card,
.report-row {
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.batch-card {
    border-radius: 28px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.batch-card:hover,
.order-card:hover,
.report-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.batch-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    color: #fff;
}

.batch-card__header h3 {
    margin: 10px 0 0;
    font-size: 1.8rem;
    line-height: 1.02;
    font-weight: 800;
}

.batch-card__header-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-pill {
    display: inline-grid;
    place-items: center;
    min-width: 64px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 2rem;
    font-weight: 800;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.icon-button.danger {
    color: #ffd3d0;
}

.card-tag-row,
.order-card__timeline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

.detail-pill {
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    border: 1px solid rgba(68, 44, 14, 0.08);
}

.detail-pill--light {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.detail-pill--soft {
    background: rgba(68, 44, 14, 0.05);
    color: var(--muted);
}

.status-badge {
    color: #fff;
}

.status-badge--pending {
    background: linear-gradient(135deg, #e0a02a 0%, #bf6c1b 100%);
}

.status-badge--ready {
    background: linear-gradient(135deg, #43845c 0%, #245938 100%);
}

.batch-card__times,
.batch-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px 18px;
    color: var(--muted);
    font-weight: 700;
}

.batch-card__times {
    padding-top: 18px;
    border-top: 1px solid rgba(68, 44, 14, 0.08);
}

.batch-card__times strong,
.batch-card__footer strong {
    color: var(--ink);
}

.batch-actions-form,
.cooking-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 22px 18px;
}

.cooking-panel {
    color: var(--muted);
}

.cooking-panel__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cooking-panel p {
    margin: 0;
    line-height: 1.55;
}

.batch-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff2cb;
    color: #9c6810;
    font-weight: 800;
}

.cooking-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(68, 44, 14, 0.08);
}

.cooking-progress__track {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(68, 44, 14, 0.1);
}

.cooking-progress__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #efbb44 0%, #d97a1e 100%);
    transition: width 320ms ease, background 320ms ease;
}

.cooking-progress.is-ready .cooking-progress__bar {
    background: linear-gradient(90deg, #4e9c65 0%, #2d633b 100%);
}

.cooking-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 800;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stepper-button,
.stepper-value {
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    font-weight: 800;
}

.stepper-button {
    width: 52px;
    font-size: 1.4rem;
    color: var(--muted);
}

.stepper-value {
    width: 72px;
    padding: 8px 12px;
    text-align: center;
    color: var(--ink);
}

.stepper-value::-webkit-outer-spin-button,
.stepper-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.action-button,
.primary-cta,
.chip-button {
    border: none;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.action-button.is-submitting,
.primary-cta.is-submitting {
    opacity: 0.72;
    cursor: progress;
    box-shadow: none;
}

.action-button:hover,
.primary-cta:hover,
.chip-button:hover {
    box-shadow: 0 16px 30px rgba(73, 48, 18, 0.14);
}

.action-button {
    min-height: 50px;
    padding: 12px 18px;
}

.action-small {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.action-success {
    background: linear-gradient(135deg, #34864b 0%, #205c35 100%);
    color: #fff;
}

.action-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border: 1px solid rgba(68, 44, 14, 0.1);
}

.action-secondary {
    width: calc(100% - 44px);
    margin: 0 22px 22px;
    background: linear-gradient(135deg, #4d7558 0%, #2a5342 100%);
    color: #fff;
}

.action-primary {
    background: linear-gradient(135deg, #f2b544 0%, #d57a1c 100%);
    color: #fff;
}

.action-danger-outline {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(189, 90, 78, 0.18);
    color: var(--danger);
}

.primary-cta {
    min-height: 56px;
    padding: 16px 24px;
    color: #fff;
    background: linear-gradient(135deg, #f3af29 0%, #d97a1e 100%);
    box-shadow: 0 18px 34px rgba(217, 122, 30, 0.22);
}

.primary-cta--green {
    background: linear-gradient(135deg, #3e8a58 0%, #245938 100%);
    box-shadow: 0 18px 34px rgba(36, 89, 56, 0.2);
}

.primary-cta--soft {
    background: linear-gradient(135deg, #6ba47d 0%, #4d7d87 100%);
    box-shadow: 0 18px 34px rgba(77, 125, 135, 0.2);
}

.primary-cta--modal {
    min-height: 52px;
}

.primary-cta[disabled],
.action-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

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

.search-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input,
.app-input,
.app-select {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-input::placeholder,
.app-input::placeholder {
    color: #8b7b67;
}

.search-input:focus,
.app-input:focus,
.app-select:focus,
.stepper-value:focus {
    outline: none;
    border-color: rgba(217, 122, 30, 0.45);
    box-shadow: 0 0 0 4px rgba(217, 122, 30, 0.12);
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.field-block span {
    color: var(--muted);
}

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

.empty-state {
    padding: 42px 28px;
    border-radius: 28px;
    text-align: center;
    color: var(--muted);
}

.empty-state--large {
    min-height: 220px;
    display: grid;
    place-items: center;
}

.empty-state__icon {
    font-size: 2.7rem;
    opacity: 0.78;
}

.empty-state p {
    margin: 12px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.order-card {
    padding: 22px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.order-card__header,
.report-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-card__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card__meta {
    color: var(--muted);
    font-weight: 800;
}

.order-card__header h3 {
    margin: 0;
    font-size: 1.72rem;
    line-height: 1.05;
    font-weight: 800;
}

.order-card__total {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
}

.order-card__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 800;
}

.order-card__notes {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
}

.order-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-weight: 700;
}

.order-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card {
    min-height: 100%;
}

.product-tone {
    background: var(--product-color-soft, rgba(255, 255, 255, 0.78));
    border-color: var(--product-color-border, rgba(68, 44, 14, 0.1));
    color: var(--product-color-text, var(--ink));
}

.product-tone .product-chip__quantity,
.product-tone .product-chip__step,
.product-tone .product-chip__count {
    color: var(--product-color-text, var(--ink));
}

.batch-card--product .batch-card__header {
    background: linear-gradient(
        145deg,
        var(--product-color-strong, #d9861f) 0%,
        var(--product-color, #f2ba4c) 100%);
}

.product-color-field {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-color-input {
    width: 72px;
    height: 52px;
    padding: 4px;
    border: 1px solid rgba(68, 44, 14, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.product-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.product-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 12px;
}

.product-color-field small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.product-directory__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.9fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.9);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow: 0 18px 30px rgba(73, 48, 18, 0.06);
}

.product-row__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.product-row__swatch {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
    border: 1px solid var(--product-color-border, rgba(68, 44, 14, 0.12));
    background:
        linear-gradient(145deg, var(--product-color-strong, #d9861f) 0%, var(--product-color, #f2ba4c) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 12px 22px rgba(73, 48, 18, 0.12);
}

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

.product-row__copy strong {
    font-size: 1.02rem;
    line-height: 1.2;
}

.product-row__copy small {
    color: var(--muted);
    font-weight: 700;
}

.product-row__usage {
    min-width: 0;
}

.product-row__usage .detail-pill {
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
}

.product-row__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green-dark);
    white-space: nowrap;
}

.product-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.user-directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-page-collection="usuarios"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-directory {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(170px, 0.7fr) minmax(190px, 0.85fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.9);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow: 0 18px 30px rgba(73, 48, 18, 0.06);
}

.user-row.is-inactive {
    opacity: 0.72;
}

.user-row__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-row__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    flex: 0 0 auto;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #548c5f 0%, #285d39 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 12px 22px rgba(73, 48, 18, 0.12);
}

.user-row__avatar--administrador {
    background: linear-gradient(135deg, #d99024 0%, #884d1c 100%);
}

.user-row__copy,
.user-row__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.user-row__copy strong {
    font-size: 1.02rem;
    line-height: 1.2;
}

.user-row__copy small,
.user-row__meta {
    color: var(--muted);
    font-weight: 700;
}

.user-row__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-row__badges,
.user-row__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-row__actions {
    justify-content: flex-end;
}

.user-status-active {
    background: rgba(84, 140, 95, 0.14);
    color: var(--green-dark);
}

.user-status-inactive {
    background: rgba(189, 90, 78, 0.1);
    color: var(--danger);
}

.profile-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(210px, 0.8fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.9);
    border: 1px solid rgba(68, 44, 14, 0.08);
    box-shadow: 0 18px 30px rgba(73, 48, 18, 0.06);
}

.profile-row.is-inactive {
    opacity: 0.72;
}

.profile-row__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-row__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, #548c5f 0%, #285d39 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 12px 22px rgba(73, 48, 18, 0.12);
}

.profile-row__copy,
.profile-row__permissions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-row__copy strong {
    font-size: 1.02rem;
    line-height: 1.2;
}

.profile-row__copy small {
    color: var(--muted);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-row__badges,
.profile-row__permissions,
.profile-row__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-row__actions {
    justify-content: flex-end;
}

.permission-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(84, 140, 95, 0.12);
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

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

.permission-toggle {
    cursor: pointer;
}

.permission-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-toggle__box {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.permission-toggle__box strong {
    line-height: 1.15;
}

.permission-toggle__box small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.permission-toggle input:checked + .permission-toggle__box,
.permission-toggle input:checked + input + .permission-toggle__box {
    border-color: rgba(84, 140, 95, 0.34);
    background: rgba(84, 140, 95, 0.1);
    box-shadow: 0 0 0 4px rgba(84, 140, 95, 0.08);
}

.permission-toggle input:focus-visible + .permission-toggle__box,
.permission-toggle input:focus-visible + input + .permission-toggle__box {
    border-color: rgba(217, 122, 30, 0.45);
    box-shadow: 0 0 0 4px rgba(217, 122, 30, 0.12);
}

.permission-toggle.is-locked {
    cursor: default;
}

.product-pagination-card {
    padding-block: 16px;
}

.product-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.product-pagination__size,
.product-pagination__label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-pagination__label {
    color: var(--muted);
    font-weight: 800;
}

.product-pagination__label span {
    white-space: nowrap;
}

.product-pagination__label .app-select {
    width: auto;
    min-width: 96px;
}

.product-pagination__summary {
    color: var(--muted);
    font-weight: 800;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pagination-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(73, 48, 18, 0.08);
}

.pagination-link.is-active {
    background: linear-gradient(135deg, #3e8a58 0%, #245938 100%);
    border-color: rgba(36, 89, 56, 0.28);
    color: #fff;
    box-shadow: 0 16px 28px rgba(36, 89, 56, 0.18);
}

.pagination-link.is-disabled {
    opacity: 0.46;
    pointer-events: none;
}

.product-card__price {
    white-space: nowrap;
}

.product-card__usage {
    min-height: 48px;
}

.product-card__footer {
    align-items: flex-end;
}

.product-card__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-form-hint {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 12, 8, 0.56);
    z-index: 220;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(100%, 640px);
    max-height: min(92vh, 860px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: 30px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 28px 80px rgba(18, 14, 8, 0.28);
}

.modal-card--wide {
    width: min(100%, 780px);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: rgba(68, 44, 14, 0.06);
    color: #5f5245;
    font-size: 1.5rem;
}

.modal-heading {
    margin-bottom: 18px;
    padding-right: 42px;
}

.modal-title {
    font-size: 2rem;
}

.modal-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.product-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    border-radius: 18px;
    padding: 12px 14px;
    border: 2px solid transparent;
    color: var(--ink);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

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

.product-chip__copy strong {
    line-height: 1.15;
}

.product-chip__count {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.72;
    transition: color 180ms ease, opacity 180ms ease;
}

.product-chip.has-count .product-chip__count {
    opacity: 1;
    color: var(--product-color-text, var(--ink));
}

.product-chip__controls {
    display: grid;
    grid-template-columns: 38px minmax(64px, 82px) 38px;
    align-items: center;
    gap: 8px;
}

.product-chip__step,
.product-chip__quantity {
    height: 38px;
    border: 1px solid rgba(68, 44, 14, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.74);
    font-weight: 900;
}

.product-chip__step {
    display: grid;
    place-items: center;
    width: 38px;
    color: var(--ink);
    transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.product-chip__step:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
}

.product-chip__step:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.product-chip__step--add {
    background: rgba(255, 255, 255, 0.86);
}

.product-chip__quantity {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
    color: var(--ink);
    appearance: textfield;
}

.product-chip__quantity::-webkit-outer-spin-button,
.product-chip__quantity::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.product-chip.is-selected {
    border-color: rgba(68, 44, 14, 0.16);
    box-shadow: 0 18px 30px rgba(73, 48, 18, 0.12);
}

.quick-range-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    border: 1px solid rgba(68, 44, 14, 0.1);
}

.report-row {
    padding: 18px 20px;
    border-radius: 24px;
    align-items: center;
}

.report-row__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-row small {
    color: var(--muted);
    font-weight: 700;
}

.report-row strong {
    font-size: 1.16rem;
    font-weight: 800;
}

.tone-gold {
    background: #fff1c0;
    border-color: rgba(229, 185, 73, 0.52);
    color: #8d6619;
}

.tone-violet {
    background: #eadff1;
    border-color: rgba(138, 93, 153, 0.36);
    color: #6b4474;
}

.tone-mint {
    background: #ddf3e6;
    border-color: rgba(75, 145, 92, 0.28);
    color: #2f6e43;
}

.tone-teal {
    background: #def0ec;
    border-color: rgba(69, 135, 122, 0.28);
    color: #286052;
}

.tone-rose {
    background: #f8e2e4;
    border-color: rgba(171, 90, 100, 0.28);
    color: #8f4450;
}

.tone-cocoa {
    background: #ece4df;
    border-color: rgba(110, 81, 60, 0.24);
    color: #5f493b;
}

.tone-sand {
    background: #f9ebdb;
    border-color: rgba(179, 133, 79, 0.28);
    color: #8b6330;
}

.tone-amber {
    background: #fff0d7;
    border-color: rgba(217, 151, 56, 0.3);
    color: #976120;
}

.batch-card.tone-cocoa .batch-card__header {
    background: linear-gradient(145deg, #594a3f 0%, #332b25 100%);
}

.batch-card.tone-rose .batch-card__header {
    background: linear-gradient(145deg, #b76a76 0%, #8d4353 100%);
}

.batch-card.tone-gold .batch-card__header {
    background: linear-gradient(145deg, #efba4b 0%, #d6831f 100%);
}

.batch-card.tone-mint .batch-card__header {
    background: linear-gradient(145deg, #5ca66f 0%, #2f6942 100%);
}

.batch-card.tone-teal .batch-card__header {
    background: linear-gradient(145deg, #5d9189 0%, #2f675f 100%);
}

.batch-card.tone-sand .batch-card__header {
    background: linear-gradient(145deg, #d5aa6d 0%, #9c6c39 100%);
}

.batch-card.tone-amber .batch-card__header {
    background: linear-gradient(145deg, #e0a145 0%, #ba6b22 100%);
}

.is-hidden {
    display: none !important;
}

@keyframes rise-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes region-swap {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes card-swap {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fab-drift {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes fab-pulse {
    0% {
        transform: scale(0.96);
        opacity: 0.42;
    }

    70%,
    100% {
        transform: scale(1.06);
        opacity: 0;
    }
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 1080px) {
    .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-card--featured {
        grid-row: auto;
    }

    .topbar-dashboard-inner {
        grid-template-columns: 1fr;
    }

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

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

    .topbar-panel--production {
        grid-template-columns: 1fr;
        min-width: min(560px, 100%);
    }

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

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

@media (max-width: 980px) {
    .pagebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px 16px;
        border-radius: 26px;
    }

    .app-shell,
    .app-shell.is-nav-collapsed {
        padding: 16px 12px 0 6px;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;
    }

    .shell-sidebar {
        position: sticky;
        top: 88px;
    }

    .shell-sidebar__panel,
    .app-shell.is-nav-collapsed .shell-sidebar__panel {
        padding: 16px 8px 12px;
        border-radius: 28px;
    }

    .shell-sidebar__head,
    .app-shell.is-nav-collapsed .shell-sidebar__head {
        justify-content: center;
        margin-bottom: 10px;
        padding-inline: 0;
    }

    .shell-sidebar__title,
    .shell-nav__label,
    .app-shell.is-nav-collapsed .shell-sidebar__title,
    .app-shell.is-nav-collapsed .shell-nav__label {
        max-width: 0;
        opacity: 0;
        transform: translateX(-8px);
    }

    .shell-sidebar__toggle {
        display: none;
    }

    .shell-nav__link,
    .app-shell.is-nav-collapsed .shell-nav__link {
        justify-content: center;
        min-height: 50px;
        padding-inline: 0;
        gap: 0;
        border-radius: 22px;
    }

    .shell-nav__link::before,
    .app-shell.is-nav-collapsed .shell-nav__link::before {
        left: 4px;
    }

    .shell-nav__group-heading,
    .app-shell.is-nav-collapsed .shell-nav__group-heading {
        justify-content: center;
        min-height: 50px;
        padding-inline: 0;
        gap: 0;
    }

    .shell-nav__group-caret {
        display: none;
    }

    .shell-nav__subnav {
        padding-left: 0;
    }
}

@media (max-width: 760px) {
    .app-brandbar__inner {
        padding: 14px 16px 10px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .app-brandbar__account {
        width: 100%;
        max-width: none;
        flex: 0 1 auto;
        margin-left: 0;
        justify-content: space-between;
    }

    .user-presence {
        min-width: 0;
        flex: 1 1 auto;
    }

    .pagebar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 24px;
    }

    body:has([data-page-surface="producao"]) .toast-stack {
        bottom: 108px;
    }

    .topbar-inner,
    .topbar-brand-inner {
        padding: 18px 16px 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-panel {
        width: 100%;
        min-width: 0;
    }

    .topbar-dashboard-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .dashboard-hero-panel {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 26px;
    }

    .dashboard-chart-grid,
    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 18px;
    }

    .topbar-chip-row {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .topbar-panel--production {
        gap: 14px;
        padding: 16px;
    }

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

    .topbar-stat {
        min-height: 76px;
    }

    .topbar--surface .topbar-title-only {
        min-height: auto;
        padding: 2px 4px;
    }

    .app-shell,
    .app-shell.is-nav-collapsed {
        padding: 14px 10px 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-content {
        gap: 16px;
    }

    .shell-sidebar {
        position: static;
        top: auto;
    }

    .shell-sidebar__panel,
    .app-shell.is-nav-collapsed .shell-sidebar__panel {
        padding: 14px;
        border-radius: 24px;
    }

    .shell-sidebar__head,
    .app-shell.is-nav-collapsed .shell-sidebar__head {
        justify-content: flex-start;
        margin-bottom: 12px;
        padding-inline: 4px;
    }

    .shell-sidebar__title,
    .shell-nav__label,
    .app-shell.is-nav-collapsed .shell-sidebar__title,
    .app-shell.is-nav-collapsed .shell-nav__label {
        max-width: none;
        opacity: 1;
        transform: none;
    }

    .shell-sidebar__toggle {
        position: static;
        right: auto;
        top: auto;
        display: grid;
        width: 34px;
        height: 34px;
        margin-left: auto;
        flex: 0 0 auto;
    }

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

    .app-shell.is-nav-collapsed .shell-nav__inner {
        grid-template-columns: 1fr;
    }

    .app-shell.is-nav-collapsed .shell-nav__group:not(.is-active) {
        display: none;
    }

    .shell-nav__link,
    .app-shell.is-nav-collapsed .shell-nav__link {
        justify-content: flex-start;
        min-height: 56px;
        padding: 12px 14px 12px 18px;
        gap: 10px;
        border-radius: 20px;
    }

    .shell-nav__link::before,
    .app-shell.is-nav-collapsed .shell-nav__link::before {
        left: 8px;
    }

    .shell-nav__group-heading,
    .app-shell.is-nav-collapsed .shell-nav__group-heading {
        justify-content: flex-start;
        min-height: 56px;
        padding: 12px 14px 12px 18px;
        gap: 10px;
        border-radius: 20px;
    }

    .shell-nav__group-caret {
        display: inline-flex;
    }

    .shell-nav__subnav {
        padding-left: 0;
    }

    .app-shell.is-nav-collapsed .shell-nav__link {
        display: none;
    }

    .app-shell.is-nav-collapsed .shell-nav__link.is-active {
        display: flex;
    }

    .app-main {
        padding: 0 0 76px;
    }

    .metrics-grid,
    .report-metrics-grid,
    .fields-row,
    .batch-action-grid,
    .product-chip-grid,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .product-chip {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .product-chip__controls {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .product-chip__step,
    .product-chip__quantity {
        height: 42px;
    }

    .product-chip__step {
        width: 42px;
    }

    .product-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .user-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .profile-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .product-row__actions,
    .user-row__actions,
    .profile-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .product-pagination,
    .product-pagination__size,
    .product-pagination__label {
        width: 100%;
        align-items: flex-start;
    }

    .status-strip,
    .batch-card__times,
    .batch-card__footer,
    .cooking-panel__meta,
    .cooking-progress__meta,
    .order-card__footer,
    .order-card__header,
    .report-row,
    .toolbar-card__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-cta,
    .toolbar-search {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .fab-panela {
        right: 16px;
        bottom: 16px;
    }

    .segment-link,
    .segment-button {
        min-height: 46px;
        font-size: 0.95rem;
    }
}

@media (max-width: 560px) {
    .app-brandbar__logo {
        height: 36px;
    }

    .app-brandbar__account {
        width: 100%;
        gap: 8px;
    }

    .user-presence {
        padding: 8px 12px 8px 8px;
        border-radius: 20px;
    }

    .user-presence__copy strong {
        font-size: 0.95rem;
    }

    .user-presence__copy small {
        font-size: 0.84rem;
    }

    .app-shell,
    .app-shell.is-nav-collapsed {
        padding: 12px 8px 0;
        gap: 10px;
    }

    .shell-sidebar__panel,
    .app-shell.is-nav-collapsed .shell-sidebar__panel {
        padding: 12px;
        border-radius: 22px;
    }

    .pagebar {
        padding: 12px;
        border-radius: 22px;
    }

    .shell-sidebar__toggle {
        width: 32px;
        height: 32px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    body:has([data-page-surface="producao"]) .toast-stack {
        bottom: 96px;
    }

    .brand-lockup,
    .section-heading {
        gap: 12px;
    }

    .brand-logo,
    .section-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .shell-nav__inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .shell-nav__link,
    .app-shell.is-nav-collapsed .shell-nav__link {
        min-height: 50px;
        padding: 12px 14px 12px 18px;
    }

    .shell-nav__icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .page-hero,
    .toolbar-card,
    .order-card,
    .batch-card,
    .modal-card {
        border-radius: 24px;
    }

    .page-hero {
        padding: 22px;
    }

    .page-hero h2,
    .modal-title {
        font-size: 1.7rem;
    }

    .topbar-panel--production .topbar-panel__value {
        font-size: 1.45rem;
    }

    .dashboard-hero-panel {
        padding: 16px;
        border-radius: 24px;
    }

    .dashboard-hero-stats,
    .dashboard-chart-grid,
    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        border-radius: 24px;
    }

    .dashboard-card {
        padding: 16px;
    }

    .topbar-chip {
        min-height: 32px;
        font-size: 0.82rem;
    }

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

    .segmented-control {
        grid-template-columns: 1fr;
    }

    .segmented-control.large,
    .segmented-control--2 {
        grid-template-columns: 1fr;
    }

    .toolbar-card--production .segmented-control {
        gap: 6px;
        padding: 6px;
        border-radius: 18px;
    }

    .toolbar-card--production .segment-link {
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 14px;
        white-space: nowrap;
    }

    .quantity-stepper {
        width: 100%;
    }

    .stepper-value {
        flex: 1;
    }

    .modal-card {
        padding: 24px 18px 20px;
    }

    .product-color-input {
        width: 100%;
        max-width: 92px;
    }

    .product-card__footer,
    .product-card__actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .fab-panela {
        right: 12px;
        left: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        justify-content: flex-start;
        width: auto;
        max-width: calc(100vw - 24px);
        min-width: 214px;
        min-height: 68px;
        height: auto;
        padding: 10px 16px 10px 10px;
        gap: 12px;
        border-radius: 999px;
    }

    .fab-panela__icon {
        width: 46px;
        height: 46px;
    }

    .fab-panela__content {
        display: flex;
    }

    .toast-stack {
        right: 12px;
        left: 12px;
        bottom: 96px;
        width: auto;
    }

    .fab-panela__content strong {
        font-size: 1.28rem;
    }
}
