/* AzizHub · shell e linguagem visual do módulo de Produção. */

.az-production-context {
    --az-navy-950: #071f3d;
    --az-navy-900: #08294e;
    --az-ink: #10224a;
    --az-muted: #66728f;
    --az-line: #dbe3ef;
    --az-line-soft: #e9eef5;
    --az-canvas: #f7f9fc;
    --az-surface: #ffffff;
    --az-blue: #0b63f6;
    --az-blue-soft: #edf4ff;
    --az-green: #079447;
    --az-green-strong: #047a3a;
    --az-green-soft: #eaf8ef;
    --az-amber: #f59e0b;
    --az-amber-soft: #fff7e8;
    --az-red: #e32d2d;
    --az-red-soft: #fff2f2;
    --az-radius: 12px;
    --az-radius-sm: 8px;
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--az-canvas);
    color: var(--az-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.az-production-context *,
.az-production-context *::before,
.az-production-context *::after {
    box-sizing: border-box;
}

.az-production-context :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(11, 99, 246, .38);
    outline-offset: 2px;
}

.az-production-shell {
    min-height: 100vh;
}

.az-production-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    width: 176px;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: linear-gradient(180deg, #061c37 0%, #07335c 100%);
    color: #fff;
}

.az-production-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.az-production-brand:hover {
    color: inherit;
}

.az-production-brand strong {
    font-size: 1.22rem;
    letter-spacing: -.02em;
}

.az-production-brand__mark {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #0b63f6;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}

.az-production-brand__mark::before,
.az-production-brand__mark::after,
.az-production-brand__mark span {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.az-production-brand__mark::before {
    width: 16px;
    height: 16px;
    border: 4px solid #7ce5a4;
}

.az-production-brand__mark::after {
    width: 5px;
    height: 5px;
    background: #fff;
}

.az-production-brand__mark span {
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: #0bc56d;
}

.az-production-sidebar__nav {
    margin-top: 30px;
}

.az-production-sidebar__nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 8px;
    color: rgba(255,255,255,.78);
    font-weight: 700;
    text-decoration: none;
}

.az-production-sidebar__nav a.is-active {
    background: linear-gradient(180deg, #0aa951, #078b43);
    color: #fff;
}

.az-production-sidebar svg,
.az-production-mobile-header svg,
.az-production-mobile-nav svg,
.az-production-logout svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.az-production-sidebar__account {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.az-production-user {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
}

.az-production-user:hover {
    color: #fff;
}

.az-production-user__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.65);
    border-radius: 50%;
    background: #f3f6fb;
    color: var(--az-navy-900);
    font-weight: 800;
}

.az-production-user strong,
.az-production-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.az-production-user strong {
    font-size: .78rem;
}

.az-production-user small {
    color: rgba(255,255,255,.7);
    font-size: .68rem;
}

.az-production-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: .85rem;
    text-decoration: none;
}

.az-production-logout:hover {
    color: #fff;
}

.az-production-stage {
    min-width: 0;
    min-height: 100vh;
    margin-left: 176px;
}

.az-production-content {
    width: 100%;
    min-width: 0;
    padding: 26px 30px 48px;
}

.az-production-content > main {
    width: min(100%, 1260px);
    min-width: 0;
    margin-inline: auto;
}

.az-production-mobile-header,
.az-production-mobile-nav {
    display: none;
}

.az-production-drawer {
    width: min(84vw, 330px) !important;
    color: var(--az-ink);
}

.az-production-drawer .az-production-brand {
    color: var(--az-ink);
}

.az-production-drawer__nav {
    display: grid;
    gap: 4px;
}

.az-production-drawer__nav a {
    padding: 13px 12px;
    border-radius: 8px;
    color: var(--az-ink);
    font-weight: 650;
    text-decoration: none;
}

.az-production-drawer__nav a:hover {
    background: var(--az-blue-soft);
    color: var(--az-blue);
}

@media (max-width: 991.98px) {
    .az-production-sidebar {
        display: none;
    }

    .az-production-stage {
        margin-left: 0;
    }

    .az-production-mobile-header {
        position: sticky;
        top: 0;
        z-index: 1020;
        display: grid;
        min-height: 68px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        padding: 9px 14px;
        border-bottom: 1px solid var(--az-line-soft);
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(12px);
    }

    .az-production-menu-button,
    .az-production-notification {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--az-ink);
    }

    .az-production-mobile-title {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        color: var(--az-ink);
        text-decoration: none;
    }

    .az-production-mobile-title strong {
        font-size: 1.08rem;
    }

    .az-production-chef-icon {
        position: relative;
        width: 27px;
        height: 21px;
        border: 3px solid var(--az-green);
        border-top: 0;
        border-radius: 0 0 6px 6px;
    }

    .az-production-chef-icon::before {
        position: absolute;
        top: -11px;
        left: -3px;
        width: 27px;
        height: 16px;
        border: 3px solid var(--az-green);
        border-radius: 14px 14px 6px 6px;
        background: #fff;
        content: "";
    }

    .az-production-content {
        padding: 18px 14px 104px;
    }

    .az-production-mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 1030;
        display: grid;
        min-height: 72px;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        padding: 7px max(6px, env(safe-area-inset-left)) max(7px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--az-line);
        background: rgba(255,255,255,.98);
        box-shadow: 0 -6px 20px rgba(16,34,74,.06);
    }

    .az-production-mobile-nav a,
    .az-production-mobile-nav button {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        padding: 3px 2px;
        border: 0;
        background: transparent;
        color: #66728f;
        font-size: .68rem;
        font-weight: 650;
        line-height: 1.1;
        text-decoration: none;
    }

    .az-production-mobile-nav :is(a, button).is-active {
        color: var(--az-green);
    }

    .az-production-mobile-nav svg {
        width: 23px;
        height: 23px;
    }
}

@media (max-width: 420px) {
    .az-production-content {
        padding-inline: 10px;
    }

    .az-production-mobile-nav a,
    .az-production-mobile-nav button {
        font-size: .62rem;
    }
}

@media (max-width: 575.98px) {
    .az-production-context .op-decision-queue-table tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 14px 12px;
        border: 1px solid var(--az-line);
        border-radius: 10px;
        background: #fff;
    }

    .az-production-context .op-decision-queue-table tbody th {
        grid-column: 1 / -1;
    }

    .az-production-context .op-decision-queue-table tbody td {
        grid-column: auto;
        align-items: start;
        text-align: left;
    }

    .az-production-context .op-decision-queue-table .op-queue-meta:last-child {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .az-production-context .op-decision-queue-table .op-admin-destination {
        grid-column: 1 / -1;
    }

    .az-production-context .op-decision-queue-table .op-admin-destination a {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: 0 12px;
        border-radius: 8px;
        background: var(--az-blue);
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .az-production-context *,
    .az-production-context *::before,
    .az-production-context *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Dashboard gerencial e operacional */
.op-production-dashboard {
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    color: var(--az-ink);
}

.op-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.op-dashboard-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.op-dashboard-heading__icon {
    position: relative;
    width: 46px;
    height: 36px;
    flex: 0 0 auto;
    border: 4px solid var(--az-green);
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.op-dashboard-heading__icon::before {
    position: absolute;
    top: -17px;
    left: -4px;
    width: 46px;
    height: 26px;
    border: 4px solid var(--az-green);
    border-radius: 22px 22px 9px 9px;
    background: var(--az-canvas);
    content: "";
}

.op-dashboard-heading h1 {
    margin: 0;
    color: var(--az-ink);
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.op-dashboard-heading p {
    margin: 2px 0 0;
    color: var(--az-muted);
    font-size: .92rem;
}

.op-dashboard-toolbar {
    display: flex;
    align-items: center;
    gap: 13px;
}

.op-dashboard-date,
.op-dashboard-create {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
}

.op-dashboard-date {
    border: 1px solid var(--az-line);
    background: #fff;
    color: var(--az-ink);
}

.op-dashboard-date svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.op-dashboard-create {
    border: 1px solid var(--az-green);
    background: linear-gradient(180deg, #0aa951, #078b43);
    color: #fff;
    text-decoration: none;
}

.op-dashboard-create:hover {
    border-color: var(--az-green-strong);
    background: var(--az-green-strong);
    color: #fff;
}

.op-manager-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

/* Mensagens operacionais: o título deixa explícito se a ação está bloqueada. */
.az-production-context .op-feedback__title {
    display: block;
    margin-bottom: .25rem;
    font-weight: 800;
}

.az-production-context .op-feedback__title + span {
    display: block;
}

.az-production-context .op-feedback--blocking {
    border-left-width: 4px;
}

.op-manager-kpi {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 148px;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 10px;
    padding: 17px 15px 15px;
    overflow: hidden;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: rgba(255,255,255,.9);
    color: var(--az-ink);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.op-manager-kpi:hover {
    transform: translateY(-2px);
    border-color: #aebbd0;
    color: var(--az-ink);
}

.op-manager-kpi .op-kpi-glyph {
    display: grid;
    width: 44px;
    height: 44px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 50%;
    background: var(--az-blue-soft);
    color: var(--az-blue);
    font-size: 1.25rem;
    font-weight: 900;
}

.op-manager-kpi > strong {
    align-self: center;
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.op-manager-kpi > b {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: .86rem;
}

.op-manager-kpi > small {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 7px;
    color: var(--az-muted);
    font-size: .73rem;
    line-height: 1.35;
}

.op-manager-kpi.is-ready .op-kpi-glyph { background: var(--az-green-soft); color: var(--az-green); }
.op-manager-kpi.is-paused .op-kpi-glyph { background: var(--az-amber-soft); color: var(--az-amber); }
.op-manager-kpi.is-approval .op-kpi-glyph { background: #f1edff; color: #7047d7; }
.op-manager-kpi.is-approval > strong { color: #5935b5; }
.op-manager-kpi.is-overdue { border-color: #ffc8c8; }
.op-manager-kpi.is-overdue .op-kpi-glyph { background: var(--az-red-soft); color: var(--az-red); }
.op-manager-kpi.is-overdue > strong { color: var(--az-red); }

.op-overdue-panel {
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid #ffcaca;
    border-radius: 12px;
    background: linear-gradient(180deg, #fffafa, var(--az-red-soft));
}

.op-overdue-panel > header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.op-overdue-panel__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--az-red);
    color: #fff;
    font-weight: 900;
}

.op-overdue-panel h2,
.op-dashboard-section-title h2 {
    margin: 0;
    color: var(--az-ink);
    font-size: 1.15rem;
    font-weight: 800;
}

.op-overdue-panel h2 {
    color: var(--az-red);
}

.op-overdue-panel p {
    margin: 2px 0 0;
    color: var(--az-muted);
    font-size: .78rem;
}

.op-overdue-panel > header > a,
.op-dashboard-section-title > a {
    color: var(--az-blue);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.op-overdue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.op-overdue-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #f4d3d3;
    border-radius: 10px;
    background: #fff;
    color: var(--az-ink);
    text-decoration: none;
}

.op-overdue-card:hover {
    color: var(--az-ink);
    border-color: #f3a9a9;
}

.op-overdue-card > span:nth-child(2),
.op-overdue-card > span:nth-child(2) :is(strong, small, b) {
    display: block;
    min-width: 0;
}

.op-overdue-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .88rem;
    white-space: nowrap;
}

.op-overdue-card small {
    margin-top: 2px;
    color: var(--az-muted);
    font-size: .72rem;
}

.op-overdue-card b {
    margin-top: 4px;
    color: var(--az-red);
    font-size: .72rem;
}

.op-overdue-card em {
    padding: 5px 8px;
    border: 1px solid #ffbcbc;
    border-radius: 6px;
    color: var(--az-red);
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.op-product-visual {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #cdd9ea;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #edf3fb);
}

.op-product-visual::before,
.op-product-visual::after,
.op-product-visual > span {
    position: absolute;
    border-radius: 5px;
    background: linear-gradient(145deg, #ff625d, #c91e2c);
    box-shadow: inset 0 -2px 0 rgba(92,0,13,.2);
    content: "";
}

.op-product-visual::before { width: 22px; height: 18px; transform: translate(-7px, 3px) rotate(-7deg); }
.op-product-visual::after { width: 19px; height: 16px; transform: translate(10px, -5px) rotate(9deg); }
.op-product-visual > span { width: 15px; height: 12px; transform: translate(8px, 12px) rotate(-4deg); }

.op-product-visual.has-semantic-icon::before,
.op-product-visual.has-semantic-icon::after {
    display: none;
}

.op-product-visual.has-semantic-icon > .op-product-visual__emoji {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 3px 3px rgba(16, 34, 74, .12));
}

.op-today-section {
    margin-top: 4px;
}

.op-dashboard-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.op-dashboard-section-title h2 > span {
    color: var(--az-muted);
    font-size: .82rem;
    font-weight: 600;
}

.op-today-list,
.op-operator-list {
    display: grid;
    gap: 9px;
}

.op-today-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 58px minmax(180px, 1.25fr) minmax(180px, 1fr) minmax(130px, auto);
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 12px 16px;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: #fff;
    color: var(--az-ink);
    text-decoration: none;
}

.op-today-card:hover {
    border-color: #aebbd0;
    color: var(--az-ink);
}

.op-today-card__identity,
.op-today-card__context,
.op-today-card__timer {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.op-today-card__identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    white-space: nowrap;
}

.op-today-card__identity small,
.op-today-card__context small,
.op-today-card__timer small {
    color: var(--az-muted);
    font-size: .73rem;
}

.op-state-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--az-green-soft);
    color: var(--az-green);
    font-size: .7rem;
    font-weight: 750;
}

.op-state-label::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.op-state-label.is-paused { background: var(--az-amber-soft); color: #c77700; }
.op-state-label.needs-attention { background: var(--az-red-soft); color: var(--az-red); }
.op-state-label.is-ready { background: var(--az-green-soft); color: var(--az-green); }

.op-today-card__timer {
    justify-items: end;
    padding-left: 16px;
    border-left: 1px solid var(--az-line-soft);
}

.op-today-card__timer strong {
    color: var(--az-blue);
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}

.op-technical-access {
    margin-top: 24px;
    border-top: 1px solid var(--az-line);
    color: var(--az-muted);
}

.op-technical-access summary {
    padding: 14px 2px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
}

.op-technical-access nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
}

.op-technical-access nav a {
    padding: 7px 10px;
    border: 1px solid var(--az-line);
    border-radius: 6px;
    background: #fff;
    color: var(--az-muted);
    font-size: .72rem;
    text-decoration: none;
}

/* Dashboard do operador */
.op-operator-create {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0aa951, #047a3a);
    color: #fff;
    text-decoration: none;
}

.op-operator-create:hover { color: #fff; }
.op-operator-create__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.11); font-size: 1.8rem; }
.op-operator-create strong, .op-operator-create small { display: block; }
.op-operator-create strong { font-size: 1.1rem; }
.op-operator-create small { margin-top: 2px; color: rgba(255,255,255,.86); font-size: .82rem; }

.op-operator-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.op-operator-kpi {
    display: grid;
    min-height: 112px;
    grid-template-columns: 42px 1fr;
    align-content: center;
    align-items: center;
    gap: 4px 9px;
    padding: 12px;
    border: 1px solid var(--az-line);
    border-radius: 11px;
    background: #fff;
    text-align: left;
}

.op-operator-kpi .op-kpi-glyph {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 50%;
    background: var(--az-green-soft);
    color: var(--az-green);
    font-weight: 900;
}

.op-operator-kpi strong { font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.op-operator-kpi small { grid-column: 1 / -1; margin-top: 5px; color: var(--az-ink); font-size: .76rem; font-weight: 700; text-align: center; }
.op-operator-kpi.is-paused .op-kpi-glyph { background: var(--az-amber-soft); color: var(--az-amber); }
.op-operator-kpi.is-available .op-kpi-glyph { background: var(--az-blue-soft); color: var(--az-blue); }
.op-operator-kpi.is-complete .op-kpi-glyph { background: #f0f2f5; color: #758097; }

.op-operator-section { margin-top: 20px; }
.op-operator-card {
    display: grid;
    min-width: 0;
    min-height: 82px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border: 1px solid var(--az-line);
    border-left: 5px solid var(--az-blue);
    border-radius: 10px;
    background: #fff;
    color: var(--az-ink);
    text-decoration: none;
}
.op-operator-card:hover { color: var(--az-ink); }
.op-operator-card.is-active { border-left-color: var(--az-green); background: linear-gradient(90deg, #f3fcf7, #fff); }
.op-operator-card.is-paused { border-left-color: var(--az-amber); background: linear-gradient(90deg, #fff9ed, #fff); }
.op-operator-card__identity { display: grid; min-width: 0; gap: 6px; }
.op-operator-card__identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-operator-card__timer { display: grid; justify-items: end; gap: 2px; }
.op-operator-card__timer strong { color: var(--az-green); font-size: 1.7rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.op-operator-card__timer small { color: var(--az-muted); font-size: .7rem; }
.op-operator-card__state { color: var(--az-blue); font-size: 1rem; font-weight: 800; white-space: nowrap; }
.op-operator-card.is-paused .op-operator-card__state { color: var(--az-amber); }
.op-operator-card.is-ready { border-left-color: var(--az-green); }
.op-operator-card.is-ready .op-operator-card__state { color: var(--az-green); }
.op-operator-card__identity > small:not(.op-state-label) { color: var(--az-muted); font-size: .72rem; }

.op-operator-queue-page {
    max-width: 980px;
    margin-inline: auto;
    padding: 0;
    background: transparent;
}

.op-operator-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.op-operator-page-header h1 {
    margin: 2px 0 3px;
    color: var(--az-ink);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.op-operator-page-header p {
    margin: 0;
    color: var(--az-muted);
    font-size: .86rem;
}

@media (max-width: 1100px) and (min-width: 992px) {
    .op-manager-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .op-dashboard-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 16px;
    }

    .op-dashboard-heading { display: none; }
    .op-dashboard-toolbar { display: grid; grid-template-columns: 1fr; }
    .op-dashboard-date { width: fit-content; min-height: 40px; padding: 8px 12px; font-size: .78rem; }
    .op-dashboard-create { width: 100%; }
    .op-manager-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .op-manager-kpi { min-height: 104px; grid-template-columns: 36px 1fr; padding: 12px; }
    .op-manager-kpi .op-kpi-glyph { width: 34px; height: 34px; font-size: 1rem; }
    .op-manager-kpi > strong { font-size: 1.55rem; }
    .op-manager-kpi > b { margin-top: 8px; font-size: .72rem; }
    .op-manager-kpi > small { display: none; }
    .op-overdue-panel { padding: 11px; }
    .op-overdue-panel > header { grid-template-columns: 26px minmax(0, 1fr) auto; }
    .op-overdue-panel p { display: none; }
    .op-overdue-panel > header > a { font-size: .7rem; }
    .op-overdue-grid { grid-template-columns: 1fr; }
    .op-overdue-card { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 9px; }
    .op-product-visual { width: 46px; height: 46px; }
    .op-today-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
    .op-today-card__context { grid-column: 2; }
    .op-today-card__timer { grid-column: 3; grid-row: 1 / 3; padding-left: 8px; }
    .op-today-card__timer strong { font-size: 1.2rem; }
    .op-today-card__timer small { display: none; }
    .op-today-card__identity strong { font-size: .84rem; }
    .op-today-card__identity small, .op-today-card__context small { font-size: .65rem; }
    .op-state-label { font-size: .6rem; }

    .op-production-dashboard--operator .op-dashboard-hero { margin-bottom: 8px; }
    .op-operator-page-header { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 14px; }
    .op-operator-page-header > div:first-child { display: none; }
    .op-operator-create { min-height: 68px; padding: 12px 15px; }
    .op-operator-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-operator-kpi { min-height: 94px; }
    .op-operator-card { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 76px; padding: 9px 10px; gap: 9px; }
    .op-operator-card__timer strong { font-size: 1.22rem; }
    .op-operator-card__timer small { display: none; }
    .op-operator-card__state { font-size: .86rem; }
}

@media (max-width: 390px) {
    .op-manager-kpi { min-height: 96px; }
    .op-overdue-card em { display: none; }
    .op-operator-card__state { font-size: .74rem; }
    .op-operator-card__timer strong { font-size: 1.05rem; }
}

/* Ficha operacional */
.az-production-context .op-execution-page:not(.op-operator-queue-page) {
    width: min(100%, 960px);
    max-width: none;
    margin-inline: auto;
    padding: 0 0 96px;
    background: transparent;
    color: var(--az-ink);
}

.op-execution-page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.op-execution-page-title .op-execution-back {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    margin: 0;
    border: 1px solid var(--az-line);
    border-radius: 9px;
    background: #fff;
    color: var(--az-ink);
    font-size: 1.45rem;
}

.op-execution-page-title h1 {
    margin: 0;
    color: var(--az-ink);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.op-execution-page-title p {
    margin: 2px 0 0;
    color: var(--az-muted);
    font-size: .82rem;
}

.az-production-context .op-execution-header {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(180px, auto);
    align-items: center;
    gap: 17px;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: #fff;
}

.az-production-context .op-execution-product-visual {
    width: 68px;
    height: 68px;
}

.az-production-context .op-execution-header__identity h2 {
    margin: 3px 0 5px;
    color: var(--az-ink);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

.az-production-context .op-execution-store {
    padding: 0;
    background: transparent;
    color: var(--az-muted);
    font-size: .72rem;
}

.az-production-context .op-execution-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--az-muted);
    font-size: .75rem;
}

.az-production-context .op-execution-header__owner {
    display: grid;
    gap: 3px;
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--az-blue-soft);
}

.az-production-context .op-execution-header__owner span {
    color: var(--az-muted);
    font-size: .68rem;
}

.az-production-context .op-execution-header__owner strong {
    color: var(--az-ink);
    font-size: .82rem;
}

.az-production-context .op-execution-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .6fr) minmax(180px, .7fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--az-line);
    border-left: 1px solid var(--az-line);
    border-radius: 12px;
    background: #fff;
}

.az-production-context .op-execution-focus.is-active {
    border-color: #bfe5cc;
    background: linear-gradient(135deg, #f3fbf6, #fff);
}

.az-production-context .op-execution-focus.is-paused {
    border-color: #f2d79e;
    background: linear-gradient(135deg, #fff9ee, #fff);
}

.az-production-context .op-execution-focus__state h2 {
    margin: 2px 0 5px;
    font-size: 1.18rem;
    font-weight: 800;
}

.az-production-context .op-execution-focus__state > .op-execution-timer {
    display: block;
    margin-top: 5px;
    color: var(--az-green);
    font-size: clamp(2rem, 5vw, 3rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.05em;
    line-height: 1;
}

.az-production-context .op-execution-focus__state p {
    margin: 4px 0 0;
    color: var(--az-muted);
    font-size: .74rem;
}

.az-production-context .op-execution-focus__quantity {
    display: grid;
    gap: 3px;
    padding: 12px 18px;
    border: 0;
    border-inline: 1px solid var(--az-line-soft);
    text-align: center;
}

.az-production-context .op-execution-focus__quantity > span {
    color: var(--az-muted);
    font-size: .68rem;
}

.az-production-context .op-execution-focus__quantity strong {
    color: var(--az-ink);
    font-size: 1.35rem;
}

.az-production-context .op-execution-focus__action {
    min-width: 0;
}

.az-production-context .op-execution-focus__action > :is(form, a),
.az-production-context .op-execution-focus__action .op-execution-resume {
    width: 100%;
}

.az-production-context .op-execution-focus__action .op-execution-btn {
    width: 100%;
}

.op-execution-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.op-execution-work-card,
.op-execution-observations {
    overflow: hidden;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: #fff;
}

.op-execution-work-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 11px;
}

.op-execution-work-card > header h2,
.op-execution-observations h2 {
    margin: 0;
    color: var(--az-ink);
    font-size: .98rem;
    font-weight: 800;
}

.op-execution-work-card > header > span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f4f8;
    color: var(--az-muted);
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.op-execution-work-list {
    padding: 0 12px 12px;
}

.op-execution-work-item {
    display: grid;
    min-width: 0;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 9px 4px;
    border-top: 1px solid var(--az-line-soft);
}

.op-execution-work-item:first-child {
    border-top: 0;
}

.op-execution-work-item .op-product-visual {
    width: 42px;
    height: 42px;
}

.op-execution-work-item > strong {
    min-width: 0;
    overflow: hidden;
    color: var(--az-ink);
    font-size: .82rem;
    text-overflow: ellipsis;
}

.op-execution-work-item > b {
    padding: 7px 9px;
    border-radius: 7px;
    background: var(--az-green-soft);
    color: var(--az-green);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.op-execution-work-item.is-input > b {
    background: var(--az-red-soft);
    color: var(--az-red);
}

.op-execution-observations {
    margin-top: 14px;
    padding: 15px 16px;
}

.op-execution-observations p {
    margin: 9px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #f6f8fb;
    color: var(--az-ink);
    font-size: .8rem;
    line-height: 1.55;
    white-space: pre-line;
}

.op-execution-action-dock {
    position: fixed;
    z-index: 1025;
    right: 28px;
    bottom: 22px;
    display: flex;
    width: min(660px, calc(100vw - 232px));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 10px 30px rgba(16,34,74,.15);
    backdrop-filter: blur(12px);
}

.op-execution-action-dock > * {
    flex: 1 1 0;
    min-height: 48px;
}

.op-execution-action-dock .op-execution-btn--warning {
    border-color: var(--az-amber);
    background: var(--az-amber);
    color: #31200a;
}

.az-production-context .op-execution-exceptional {
    display: block;
    margin-top: 18px;
    border-top: 1px solid var(--az-line-soft);
    color: var(--az-muted);
    text-align: right;
}

.az-production-context .op-execution-exceptional > summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 2px;
    cursor: pointer;
    font-size: .74rem;
    font-weight: 680;
    list-style: none;
}

.az-production-context .op-execution-exceptional > summary::after {
    margin-left: 6px;
    content: "⌄";
}

.az-production-context .op-execution-exceptional > .op-execution-btn {
    min-height: 42px;
    margin: 2px 0 8px auto;
}

.op-execution-focus.is-active .op-execution-focus__action {
    display: none;
}

.op-orientations-modal .modal-content,
.op-pause-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
}

.op-orientations-modal .modal-header,
.op-pause-modal .modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--az-line-soft);
}

.op-orientations-modal .modal-title,
.op-pause-modal .modal-title {
    margin-top: 2px;
    color: var(--az-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.op-orientations-modal .modal-body,
.op-pause-modal .modal-body {
    display: grid;
    gap: 16px;
    padding: 20px;
    background: var(--az-canvas);
}

.op-orientations-alert {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f3cc7b;
    border-radius: 10px;
    background: var(--az-amber-soft);
}

.op-orientations-alert > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid var(--az-amber);
    border-radius: 50%;
    color: #b96d00;
    font-weight: 900;
}

.op-orientations-alert strong,
.op-orientations-alert p,
.op-orientations-product strong,
.op-orientations-product small {
    display: block;
}

.op-orientations-alert p {
    margin: 3px 0 0;
    color: var(--az-muted);
    font-size: .78rem;
}

.op-orientations-product {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: #fff;
}

.op-orientations-product strong { color: var(--az-ink); font-size: 1rem; }
.op-orientations-product small { margin-top: 3px; color: var(--az-muted); font-size: .72rem; }
.op-orientations-card { margin: 0; padding: 16px; border: 1px solid var(--az-line); border-radius: 10px; background: #fff; }
.op-orientations-card h3 { margin: 0 0 9px; color: var(--az-ink); font-size: 1rem; font-weight: 800; }
.op-orientations-card p { margin: 0; color: var(--az-ink); font-size: .85rem; line-height: 1.65; white-space: pre-line; }
.op-orientations-info { padding: 13px; border: 1px solid #bfd6ff; border-radius: 9px; background: var(--az-blue-soft); color: #234b85; font-size: .78rem; }
.op-orientations-modal .modal-footer, .op-pause-modal .modal-footer { padding: 13px 20px; border-top: 1px solid var(--az-line); }
.op-orientations-modal .modal-footer .op-execution-btn, .op-pause-modal .modal-footer .op-execution-btn { width: 100%; min-height: 50px; }

.op-pause-question { color: var(--az-ink); font-size: 1.05rem; font-weight: 800; }
.op-pause-help { margin: -10px 0 0; color: var(--az-muted); font-size: .78rem; }
.op-pause-modal textarea { min-height: 150px; padding: 13px; border: 1px solid #b7c2d2; border-radius: 9px; background: #fff; }
.op-pause-modal .op-execution-pause-ownership { display: grid; gap: 10px; margin: 2px 0 0; }
.op-pause-modal .op-execution-pause-ownership legend { margin-bottom: 4px; color: var(--az-ink); font-size: 1.02rem; font-weight: 800; }
.op-pause-modal .op-execution-pause-ownership label { display: grid; min-height: 76px; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--az-line); border-radius: 10px; background: #fff; }
.op-pause-modal .op-execution-pause-ownership label:has(input:checked) { border-color: var(--az-blue); background: var(--az-blue-soft); }
.op-pause-modal .op-execution-pause-ownership input { width: 20px; height: 20px; accent-color: var(--az-blue); }
.op-pause-modal .op-execution-pause-ownership span { display: grid; gap: 3px; color: var(--az-muted); font-size: .76rem; }
.op-pause-modal .op-execution-pause-ownership strong { color: var(--az-ink); font-size: .9rem; }

/* Fluxo de conclusão */
.az-production-context .op-execution-workspace {
    scroll-margin-top: 84px;
    padding: 20px;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: #fff;
}

.az-production-context .op-execution-workspace .op-execution-section-header h2 {
    color: var(--az-ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.az-production-context .op-execution-quantity-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
    gap: 16px;
    min-height: 78px;
    padding: 13px 8px;
}

.az-production-context .op-execution-finalize {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: var(--az-canvas);
}

.az-production-context .op-execution-finalize__actions {
    position: sticky;
    bottom: 10px;
    z-index: 4;
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: rgba(255,255,255,.98);
}

.az-production-context .op-execution-finalize__actions > * {
    flex: 1 1 0;
    min-height: 48px;
}

.az-production-context .op-execution-page--results {
    width: min(100%, 1120px);
}

.op-execution-results-hero {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 17px 18px;
    border: 1px solid #bdd3f6;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f6ff 0%, #f8fbff 100%);
}

.op-execution-results-hero__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--az-blue);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.op-execution-results-hero h2 {
    margin: 2px 0 0;
    color: var(--az-ink);
    font-size: 1.35rem;
    font-weight: 850;
}

.op-execution-results-hero p {
    margin: 0;
    color: var(--az-muted);
    font-size: .82rem;
}

.az-production-context .op-execution-result-card {
    overflow: hidden;
    margin-top: 0;
    border: 1px solid var(--az-line);
    border-radius: 12px;
    background: #fff;
}

.az-production-context .op-execution-result-card + .op-execution-result-card {
    margin-top: 16px;
}

.az-production-context .op-execution-result-card--inputs {
    border-color: #bdd3f6;
    background: #f8fbff;
}

.az-production-context .op-execution-result-card--inputs .op-execution-result-card__heading {
    border-bottom-color: #d8e6fa;
    background: #edf4ff;
}

.az-production-context .op-execution-result-card--inputs .op-execution-result-card__step {
    background: #d5e5ff;
    color: #075dcc;
}

.az-production-context .op-execution-result-card--inputs > .op-execution-item-list,
.az-production-context .op-execution-result-card--inputs .op-execution-quantity-row {
    background: #f8fbff;
}

.az-production-context .op-execution-result-card--outputs {
    border-color: #ecd19a;
    background: #fffcf5;
}

.az-production-context .op-execution-result-card--outputs .op-execution-result-card__heading {
    border-bottom-color: #f0ddb7;
    background: #fff4dc;
}

.az-production-context .op-execution-result-card--outputs .op-execution-result-card__step {
    background: #ffe9b8;
    color: #9a5700;
}

.op-execution-result-card__heading,
.op-execution-finish-card__heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.op-execution-result-card__heading {
    margin: 0 !important;
    padding: 15px 17px;
    border-bottom: 1px solid var(--az-line-soft);
    background: #f8fafc;
}

.op-execution-result-card__step {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--az-blue-soft);
    color: var(--az-blue);
    font-size: .88rem;
    font-weight: 900;
}

.op-execution-result-card__heading h3 {
    margin: 0 0 2px;
    color: var(--az-ink);
    font-size: 1rem;
    font-weight: 850;
}

.op-execution-result-card__heading p {
    margin: 0;
    color: var(--az-muted);
    font-size: .76rem;
}

.az-production-context .op-execution-result-card > .op-execution-item-list {
    border: 0;
}

.az-production-context .op-execution-result-card--inputs .op-execution-quantity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-inline: 17px;
}

.az-production-context .op-execution-result-card--inputs .op-execution-assumed-quantity {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.az-production-context .op-execution-result-card--inputs .op-execution-assumed-quantity__actions {
    margin-top: 0;
}

.az-production-context .op-execution-result-card--inputs .op-execution-inline-editor,
.az-production-context .op-execution-result-card--inputs .op-execution-field-help {
    grid-column: 1 / -1;
}

.az-production-context .op-execution-result-card--outputs > .op-execution-item-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 17px;
}

.az-production-context .op-execution-result-card--outputs .op-execution-quantity-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
    gap: 16px;
    align-items: center;
    min-height: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--az-line-soft);
    border-radius: 0;
    background: #fffcf5;
}

.az-production-context .op-execution-result-card--outputs .op-execution-quantity-row:last-child {
    border-bottom: 0;
}

.op-execution-result-card--outputs .op-execution-quantity-field {
    width: 100%;
}

.op-execution-result-card--outputs .op-execution-input-unit input {
    font-size: .92rem !important;
    font-weight: 500 !important;
}

.op-execution-result-card--outputs .op-execution-input-unit input::placeholder {
    color: #667085;
    font-size: .86rem;
    font-weight: 400;
    opacity: 1;
}

.op-execution-result-card--outputs .op-execution-quantity-field.is-invalid .op-execution-input-unit {
    border: 2px solid var(--ope-danger);
    background: var(--ope-danger-bg);
}

.op-execution-result-card--outputs .op-execution-quantity-field.is-invalid .op-execution-input-unit:focus-within {
    outline-color: var(--ope-danger);
}

.az-production-context .op-execution-finish-card {
    gap: 16px;
    margin-top: 16px;
    padding: 17px;
    border-color: #bcdcca;
    background: #f7fcf9;
}

.op-execution-finish-card__heading h3 {
    margin: 2px 0 3px;
    color: var(--az-ink);
    font-size: 1.12rem;
    font-weight: 850;
}

.op-execution-finish-card__heading .op-execution-result-card__step {
    background: #e5f6ec;
    color: var(--az-green);
}

.op-execution-partial-option {
    overflow: hidden;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: #fff;
}

.op-execution-partial-option > summary {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 58px;
    padding: 12px 46px 12px 14px;
    cursor: pointer;
    list-style: none;
}

.op-execution-partial-option > summary::-webkit-details-marker {
    display: none;
}

.op-execution-partial-option > summary::after {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--az-blue);
    content: "+";
    font-size: 1.25rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.op-execution-partial-option[open] > summary::after {
    content: "−";
}

.op-execution-partial-option > summary span {
    color: var(--az-ink);
    font-size: .88rem;
    font-weight: 800;
}

.op-execution-partial-option > summary small {
    color: var(--az-muted);
    font-size: .72rem;
}

.op-execution-partial-option__body {
    display: grid;
    gap: 14px;
    padding: 15px;
    border-top: 1px solid var(--az-line-soft);
}

.op-execution-partial-option__body > .op-execution-btn {
    justify-self: start;
}

.az-production-context .op-execution-page--results .op-execution-finalize__actions {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(280px, 2fr);
    justify-content: flex-end;
}

.az-production-context .op-execution-page--results .op-execution-finalize__actions > * {
    width: 100%;
}

.az-production-context .op-execution-page--results .op-execution-finalize__actions > .op-execution-results-back {
    min-width: 0;
}

.op-execution-action-dock .op-execution-btn--warning {
    flex-grow: .7;
}

.op-execution-action-dock .op-execution-btn--primary {
    flex-grow: 1.3;
}

@media (max-width: 767.98px) {
    .az-production-focused-flow .az-production-mobile-nav { display: none; }
    .az-production-focused-flow .az-production-content { padding-bottom: 88px; }
    .op-execution-page-title { margin-bottom: 12px; }
    .op-execution-page-title h1 { font-size: 1.28rem; }
    .op-execution-page-title p { font-size: .72rem; }

    .az-production-context .op-execution-header {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
    }
    .az-production-context .op-execution-product-visual { width: 54px; height: 54px; }
    .az-production-context .op-execution-header__identity h2 { font-size: 1.2rem; }
    .az-production-context .op-execution-header__owner { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }

    .az-production-context .op-execution-focus {
        grid-template-columns: 1fr auto;
        gap: 11px;
        padding: 14px;
    }
    .az-production-context .op-execution-focus__state { grid-column: 1 / -1; text-align: center; }
    .az-production-context .op-execution-focus__quantity { grid-column: 1; padding: 9px; border: 0; text-align: left; }
    .az-production-context .op-execution-focus__action { grid-column: 2; }
    .az-production-context .op-execution-focus__state > .op-execution-timer { font-size: 2.6rem; }
    .az-production-context .op-execution-focus.is-active .op-execution-focus__quantity,
    .az-production-context .op-execution-focus.is-active .op-execution-focus__action { display: none; }

    .op-execution-plan-grid { grid-template-columns: 1fr; }
    .op-execution-work-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
    .op-execution-work-item > strong { font-size: .76rem; }
    .op-execution-work-item > b { padding: 6px 8px; font-size: .74rem; }

    .op-execution-action-dock {
        right: 10px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        padding: 7px;
        border-radius: 10px;
    }
    .op-execution-action-dock > * { min-height: 46px; font-size: .82rem; }

    .op-orientations-modal .modal-content,
    .op-pause-modal .modal-content { border-radius: 0; }
    .op-orientations-modal .modal-body,
    .op-pause-modal .modal-body { overflow-y: auto; padding: 16px 14px; }
    .op-orientations-modal .modal-footer,
    .op-pause-modal .modal-footer { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }

    .az-production-context .op-execution-workspace { margin-inline: -2px; padding: 14px 11px; }
    .op-execution-results-hero { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
    .op-execution-results-hero__icon { width: 38px; height: 38px; }
    .op-execution-results-hero h2 { font-size: 1.12rem; }
    .op-execution-result-card__heading { padding: 13px; }
    .az-production-context .op-execution-result-card--inputs .op-execution-quantity-row { padding-inline: 13px; }
    .az-production-context .op-execution-result-card--outputs > .op-execution-item-list { grid-template-columns: 1fr; padding: 0 13px; }
    .op-execution-partial-option__body > .op-execution-btn { width: 100%; }
    .az-production-context .op-execution-quantity-row { grid-template-columns: 1fr; gap: 9px; padding: 13px 2px; }
    .az-production-context .op-execution-result-card--inputs .op-execution-quantity-row { grid-template-columns: minmax(0, 1fr) auto; }
    .az-production-context .op-execution-result-card--outputs .op-execution-quantity-row { grid-template-columns: minmax(0, 1fr) minmax(145px, .8fr); gap: 9px; }
    .az-production-context .op-execution-result-card--inputs .op-execution-assumed-quantity { gap: 7px; }
    .az-production-context .op-execution-result-card--inputs .op-execution-assumed-quantity > strong { font-size: .94rem; }
    .az-production-context .op-execution-result-card--inputs .op-execution-btn,
    .az-production-context .op-execution-result-card--outputs .op-execution-input-unit { min-height: 42px; }
    .az-production-context .op-execution-result-card--outputs .op-execution-quantity-row__identity strong { font-size: .88rem; }
    .az-production-context .op-execution-finalize__actions { bottom: 6px; flex-direction: column-reverse; }
    .az-production-context .op-execution-page--results .op-execution-finalize__actions { grid-template-columns: 1fr; }
    .az-production-context .op-execution-page--results .op-execution-finalize__actions > * { width: 100%; }
}

@media (max-width: 991.98px) {
    .az-production-focused-flow .az-production-mobile-nav {
        display: none;
    }

    .az-production-focused-flow .az-production-content {
        padding-bottom: 88px;
    }
}

/* Criação e edição de OP */
.az-production-context .op-create-page {
    --op-accent: var(--az-blue);
    --op-accent-hover: #084fc1;
    width: 100%;
}

.az-production-context .op-create-page .op-context-header {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
}

.az-production-context .op-create-page .op-eyebrow {
    color: var(--az-green);
}

.az-production-context .op-create-page .op-title {
    color: var(--az-ink);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
}

.az-production-context .op-create-page .op-status {
    border-color: #b8e4ca;
    border-radius: 999px;
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.az-production-context .op-create-page .op-status::before {
    background: var(--az-green);
}

.op-create-steps {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    max-width: 760px;
    margin: 0 auto 22px;
    padding: 0;
    scroll-margin-top: 96px;
    list-style: none;
}

.op-create-steps::before {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: 12%;
    left: 12%;
    height: 2px;
    background: #ced8e8;
    content: "";
}

.op-create-steps li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--az-muted);
    font-size: .76rem;
    font-weight: 700;
}

.op-create-step-trigger {
    display: grid;
    width: 100%;
    padding: 0;
    justify-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.op-create-step-trigger:not(:disabled) {
    cursor: pointer;
}

.op-create-step-trigger:disabled {
    opacity: 1;
    cursor: default;
}

.op-create-step-trigger:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(13, 110, 253, .22);
    outline-offset: 4px;
}

.op-create-steps span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 2px solid #c5d0e0;
    border-radius: 50%;
    background: var(--az-canvas);
    color: var(--az-muted);
    font-size: .78rem;
}

.op-create-steps li.is-active {
    color: var(--az-green-strong);
}

.op-create-steps li.is-active span {
    border-color: var(--az-green);
    background: var(--az-green);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(7,148,71,.12);
}

.op-create-steps li.is-complete {
    color: var(--az-green-strong);
}

.op-create-steps li.is-complete span {
    border-color: var(--az-green);
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.op-wizard-hidden {
    display: none !important;
}

.az-production-context .op-create-page > .op-feedback {
    max-width: 820px;
    margin: 0 auto 18px;
    border: 1px solid #cbdcf7;
    border-left: 4px solid var(--az-blue);
    border-radius: var(--az-radius-sm);
    background: var(--az-blue-soft);
    font-size: .82rem;
}

.op-create-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: 20px;
}

.op-create-form.is-wizard-mode .op-create-workspace {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1120px;
    margin: 0 auto;
}

.op-create-form.is-wizard-mode .op-create-main {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.op-create-form.is-wizard-mode .op-create-summary {
    position: static;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
}

.op-create-form.is-wizard-mode [data-wizard-panel]:not(.op-wizard-hidden) {
    animation: op-wizard-enter .18s ease-out;
}

@keyframes op-wizard-enter {
    from {
        opacity: .65;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.op-wizard-message {
    max-width: 1120px;
    margin: 0 auto 12px;
}

.op-wizard-actions {
    display: grid;
    grid-template-columns: minmax(130px, auto) 1fr minmax(130px, auto);
    width: 100%;
    max-width: 1120px;
    margin: 6px auto 0;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius-sm);
    background: #fff;
    box-shadow: 0 5px 18px rgba(16,34,74,.06);
}

.op-wizard-position {
    color: var(--az-muted);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.op-wizard-actions .btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 750;
}

.op-create-main,
.op-create-summary {
    min-width: 0;
}

.op-create-summary {
    position: sticky;
    top: 18px;
}

.az-production-context .op-create-page .op-section,
.az-production-context .op-create-page .op-advanced {
    margin-bottom: 16px;
    border-color: var(--az-line);
    border-radius: var(--az-radius);
    box-shadow: 0 3px 12px rgba(16,34,74,.035);
}

.az-production-context .op-create-page .op-section {
    padding: 20px;
}

.az-production-context .op-create-page .op-section-title {
    color: var(--az-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.az-production-context .op-create-page .op-step-number {
    border-radius: 50%;
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.az-production-context .op-create-page :is(.form-label, legend) {
    color: var(--az-ink);
    font-size: .8rem;
    font-weight: 750;
}

.az-production-context .op-create-page :is(.form-control, .form-select) {
    min-height: 44px;
    border-color: #bdc9d9;
    border-radius: 8px;
}

.az-production-context .op-create-page .form-text {
    color: var(--az-muted);
    font-size: .72rem;
}

.az-production-context .op-required-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 58px;
    overflow: hidden;
    border: 1px solid #bdc9d9;
    border-radius: 8px;
    background: #f7f9fc;
}

.az-production-context .op-required-summary__metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 11px;
}

.az-production-context .op-required-summary__metric + .op-required-summary__metric {
    border-left: 1px solid var(--az-line);
}

.az-production-context .op-required-summary__label {
    color: var(--az-muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.1;
    text-transform: uppercase;
}

.az-production-context .op-required-summary__value {
    overflow-wrap: anywhere;
    color: var(--az-ink);
    font-size: .88rem;
    line-height: 1.2;
}

.az-production-context .op-required-summary__metric.is-surplus .op-required-summary__value,
.az-production-context .op-required-summary__metric.is-balanced .op-required-summary__value {
    color: var(--az-green-strong);
}

.az-production-context .op-required-summary__metric.is-shortage .op-required-summary__value {
    color: #b42318;
}

.az-production-context .op-required-summary__metric.is-neutral .op-required-summary__value {
    color: var(--az-blue);
}

.az-production-context .op-stock-status:not(.d-none) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .75rem;
}

.az-production-context .op-stock-status__warning {
    color: #b42318;
    font-weight: 750;
}

.az-production-context .op-create-page .op-context-main {
    align-items: center;
}

.op-create-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--az-muted);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.op-create-back-link__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--az-line);
    border-radius: 9px;
    background: #fff;
    color: var(--az-ink);
}

.op-create-back-link__icon svg,
.op-create-heading__icon svg,
.op-section-icon svg,
.op-create-tip__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.op-create-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.op-create-heading__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #bfdfcb;
    border-radius: 13px;
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.op-create-heading__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.az-production-context .op-create-cancel-top {
    min-height: 38px;
    padding-inline: 15px;
    border-radius: 9px;
    font-weight: 750;
}

.az-production-context .op-create-page > .op-create-tip {
    display: flex;
    max-width: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border-left-width: 1px;
    background: #f2f7ff;
    color: #27466f;
}

.op-create-tip__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: #e1ecff;
    color: var(--az-blue);
}

.op-create-tip__icon svg {
    width: 18px;
    height: 18px;
}

.az-production-context .op-create-page .op-inline-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border: 0;
    background: var(--az-green-soft);
    color: var(--az-green-strong);
    font-size: .78rem;
    font-weight: 700;
}

.az-production-context .op-create-page .op-inline-status::before {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(7,148,71,.12);
    content: "✓";
}

.az-production-context .op-create-page .op-section {
    background: #fff;
    box-shadow: 0 5px 18px rgba(16,34,74,.055);
}

.az-production-context .op-create-page .op-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.op-section-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
}

.op-section-icon.is-blue {
    background: #eaf2ff;
    color: var(--az-blue);
}

.op-section-icon.is-amber {
    background: #fff4dc;
    color: #c47a00;
}

.op-section-icon.is-green {
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.az-production-context .op-create-page .op-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
}

.az-production-context .op-create-page .op-step-number {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    font-size: .68rem;
}

.az-production-context .op-create-page .op-section-description {
    margin: 0;
    color: var(--az-muted);
    font-size: .82rem;
}

.op-create-subcard {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--az-line-soft);
    border-radius: 12px;
    background: #fbfcfe;
}

.op-subcard-heading,
.op-output-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.op-subcard-heading {
    margin-bottom: 15px;
}

.op-subcard-heading__visual {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #cddbeb;
    border-radius: 50%;
    background: #f4f8fd;
    font-size: 1.55rem;
}

.op-subcard-heading h3,
.op-output-heading h3 {
    margin: 0 0 2px;
    color: var(--az-ink);
    font-size: .95rem;
    font-weight: 800;
}

.op-subcard-heading p,
.op-output-heading p {
    margin: 0;
    color: var(--az-muted);
    font-size: .74rem;
}

.op-output-heading {
    margin: 4px 0 13px;
}

.op-search-field {
    position: relative;
}

.op-search-field__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #f0f5fb;
    font-size: 1.15rem;
    transform: translateY(-50%);
}

.az-production-context .op-create-page .op-search-field .form-control {
    padding-left: 50px;
}

.op-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.op-search-result__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #f0f5fb;
    font-size: 1.12rem;
}

.op-search-result__content {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.op-search-result__meta {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    color: var(--az-green-strong);
    font-size: .7rem;
}

.op-search-result__meta small {
    color: var(--az-muted);
    font-size: .65rem;
    font-weight: 500;
}

.op-product-picker-results:not(:empty) {
    position: absolute;
    z-index: 20;
    width: min(560px, calc(100vw - 48px));
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--az-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16,34,74,.18);
}

.op-product-picker-shell {
    position: relative;
}

.op-auto-classification {
    display: inline-flex;
    margin-top: 7px;
    padding: 5px 8px;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: var(--az-green-soft);
    color: var(--az-green-strong);
    font-size: .68rem;
    font-weight: 800;
}

.az-production-context .op-create-page .op-planning-actions .btn {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 750;
}

.op-button-icon {
    display: inline-grid;
    min-width: 1.15em;
    place-items: center;
    font-weight: 900;
}

.az-production-context .op-stock-status {
    margin-bottom: 0;
    border: 0;
    border-radius: 9px;
    background: #eef2f7;
    color: #40516a;
    font-size: .82rem;
}

.op-stock-status__icon {
    color: var(--az-blue);
}

.op-insight-card {
    padding: 12px 14px;
    border: 1px solid var(--az-line-soft);
    border-radius: 10px;
    background: #fbfcfe;
}

.op-insight-card summary {
    color: var(--az-blue);
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.op-insight-card[open] summary {
    margin-bottom: 12px;
}

.op-planning-product-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.op-planning-product-identity .op-product-visual {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.op-planning-product-identity .op-product-visual.has-semantic-icon > .op-product-visual__emoji {
    font-size: 1.55rem;
}

.op-quantity-control {
    display: grid;
    width: min(100%, 180px);
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #bdc9d9;
    border-radius: 8px;
    background: #fff;
}

.az-production-context .op-create-page .op-quantity-control .form-control {
    min-height: 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.op-quantity-control > span {
    display: grid;
    min-width: 44px;
    place-items: center;
    padding-inline: 8px;
    border-left: 1px solid var(--az-line);
    background: #f2f5f9;
    color: var(--az-ink);
    font-size: .76rem;
    font-weight: 750;
}

.op-planning-products-table :is(th:nth-child(2), th:nth-child(8), th:last-child),
.op-planning-products-table tbody :is(td[data-label="Equivalência"], td[data-label="Cobertura projetada"], td.op-product-unit) {
    display: none !important;
}

.op-recipe-inputs-table :is(th:nth-child(2), th:nth-child(6)),
.op-recipe-inputs-table tbody :is(td[data-label="Base"], td[data-label="Unidade"]),
.op-recipe-inputs-table tbody td[data-label="Ajuste"],
.op-recipe-inputs-table tbody td.js-alerta-receita:empty {
    display: none !important;
}

.op-recipe-inputs-table tbody tr.is-manually-adjusted td[data-label="Ajuste"] {
    display: table-cell !important;
}

.op-select-with-icon {
    position: relative;
}

.op-select-with-icon > span {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 9px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--az-blue);
    transform: translateY(-50%);
}

.az-production-context .op-create-page .op-select-with-icon .form-select {
    padding-left: 48px;
}

.op-role-note,
.op-review-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 11px 12px;
    border-radius: 9px;
    background: #f1f6ff;
    color: #36547e;
    font-size: .74rem;
}

.op-role-note > span,
.op-review-note > span {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #dce9ff;
    color: var(--az-blue);
    font-size: .7rem;
    font-weight: 900;
}

.op-summary-status {
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid #c8d9f6;
    border-radius: 7px;
    background: #edf4ff;
    color: var(--az-blue);
    font-size: .68rem;
    font-weight: 800;
}

.az-production-context .op-create-summary .op-facts > .op-fact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-fact-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 900;
}

.op-fact-icon.is-store,
.op-fact-icon.is-product {
    background: #eaf2ff;
    color: var(--az-blue);
}

.op-fact-icon.is-quantity {
    background: #fff3d8;
    color: #bd7600;
}

.op-fact-icon.is-type {
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.op-review-note {
    margin-top: 14px;
}

.op-review-sections {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.op-review-block {
    padding: 16px;
    border: 1px solid var(--az-line-soft);
    border-radius: 11px;
    background: #fbfcfe;
}

.op-review-block__header {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.op-review-block__header h3 {
    margin: 1px 0 0;
    color: var(--az-ink);
    font-size: .98rem;
    font-weight: 850;
}

.op-review-block__eyebrow {
    color: var(--az-muted);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.op-review-block__header .btn-link {
    color: var(--az-blue);
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
}

.az-production-context .op-create-summary .op-review-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.op-review-product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px 0 16px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--az-line-soft);
}

.op-review-product__quantity {
    display: grid;
    justify-items: end;
}

.op-review-product__quantity span {
    color: var(--az-muted);
    font-size: .66rem;
}

.op-review-product__quantity strong {
    color: var(--az-ink);
    font-size: .92rem;
}

.op-review-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.op-review-flow {
    overflow: hidden;
    border: 1px solid var(--az-line-soft);
    border-radius: 10px;
    background: #fff;
}

.op-review-flow.is-input {
    border-left: 4px solid var(--az-blue);
}

.op-review-flow.is-output {
    border-left: 4px solid var(--az-green);
}

.op-review-flow__title {
    display: flex;
    padding: 11px 12px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--az-line-soft);
    background: #f5f8fc;
}

.op-review-flow__title > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--az-blue);
    font-weight: 900;
}

.op-review-flow.is-output .op-review-flow__title > span {
    background: var(--az-green-soft);
    color: var(--az-green-strong);
}

.op-review-flow__title div {
    display: grid;
}

.op-review-flow__title small {
    color: var(--az-muted);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.op-review-flow__title strong {
    color: var(--az-ink);
    font-size: .82rem;
}

.op-review-list__item {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--az-line-soft);
    color: var(--az-ink);
    font-size: .76rem;
}

.op-review-list__item:last-child {
    border-bottom: 0;
}

.op-review-list__item > div {
    display: grid;
}

.op-review-list__item small {
    color: var(--az-muted);
    font-size: .64rem;
}

.op-review-list__item > span {
    flex: 0 0 auto;
    font-weight: 800;
}

.op-review-list__empty {
    padding: 13px 12px;
    color: var(--az-muted);
    font-size: .72rem;
}

.op-review-orientation {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    background: #f1f5fb;
}

.op-review-orientation > span {
    color: var(--az-muted);
    font-size: .66rem;
    font-weight: 800;
}

.op-review-orientation p {
    margin: 3px 0 0;
    color: var(--az-ink);
    font-size: .78rem;
    white-space: pre-wrap;
}

.op-review-alerts {
    border-color: #f0cc8a;
    background: #fffaf0;
}

.az-production-context .op-create-page .table-responsive {
    border: 1px solid var(--az-line-soft);
    border-radius: 9px;
}

.az-production-context .op-create-page .table thead {
    background: #f4f7fb;
}

.az-production-context .op-create-summary .op-section {
    margin-bottom: 0;
    border-color: #b9c9dd;
    background: #fff;
}

.az-production-context .op-create-summary .op-facts {
    grid-template-columns: 1fr;
    gap: 0;
}

.az-production-context .op-create-summary .op-facts > div {
    padding: 11px 0;
    border-bottom: 1px solid var(--az-line-soft);
}

.az-production-context .op-create-summary .op-fact-label {
    color: var(--az-muted);
    font-size: .72rem;
}

.az-production-context .op-create-summary .op-fact-value {
    color: var(--az-ink);
    font-size: .86rem;
}

.az-production-context .op-create-page .op-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 0;
}

.az-production-context .op-create-page .op-form-actions .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
}

.az-production-context .op-create-page .op-form-actions .btn-primary {
    border-color: var(--az-green);
    background: linear-gradient(180deg, #0aa951, #078b43);
}

.az-production-context .op-create-page .op-form-actions .btn-primary:hover {
    border-color: var(--az-green-strong);
    background: var(--az-green-strong);
}

@media (max-width: 1599.98px) {
    .az-production-context .op-create-page .op-planning-products-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .az-production-context .op-planning-products-table,
    .az-production-context .op-planning-products-table tbody {
        display: block;
        width: 100%;
    }

    .az-production-context .op-planning-products-table thead {
        display: none;
    }

    .az-production-context .op-planning-products-table tbody {
        display: grid;
        gap: 10px;
    }

    .az-production-context .op-planning-products-table tbody tr {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 11px 18px;
        padding: 14px;
        border: 1px solid var(--az-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16,34,74,.035);
    }

    .az-production-context .op-planning-products-table tbody td {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start;
        gap: 3px;
        padding: 0;
        border: 0;
        text-align: left !important;
        white-space: normal;
    }

    .az-production-context .op-planning-products-table tbody td::before {
        content: attr(data-label);
        color: var(--az-muted);
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .035em;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .az-production-context .op-planning-products-table tbody td[data-label="Produto final"],
    .az-production-context .op-planning-products-table tbody td[data-label="Validade padrão"] {
        grid-column: 1 / -1;
    }

    .az-production-context .op-planning-products-table tbody td :is(.form-control, .form-select) {
        width: 100%;
    }

    .az-production-context .op-planning-products-table tbody td[data-label="Quantidade planejada"] .form-control {
        max-width: 180px;
        text-align: left !important;
    }

    .az-production-context .op-planning-products-table tbody tr.op-empty-row td {
        grid-column: 1 / -1;
    }

    .az-production-context .op-planning-products-table tbody tr.op-empty-row td::before {
        display: none;
    }

    .az-production-context .op-recipe-inputs-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .az-production-context .op-recipe-inputs-table,
    .az-production-context .op-recipe-inputs-table tbody {
        display: block;
        width: 100%;
    }

    .az-production-context .op-recipe-inputs-table thead {
        display: none;
    }

    .az-production-context .op-recipe-inputs-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .az-production-context .op-recipe-inputs-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px 14px;
        padding: 14px;
        border: 1px solid var(--az-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16,34,74,.035);
    }

    .az-production-context .op-recipe-inputs-table tbody td {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 3px;
        padding: 0;
        border: 0;
        text-align: left !important;
        white-space: normal;
    }

    .az-production-context .op-recipe-inputs-table tbody td::before {
        content: attr(data-label);
        color: var(--az-muted);
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .035em;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .az-production-context .op-recipe-inputs-table tbody td[data-label="Insumo"],
    .az-production-context .op-recipe-inputs-table tbody td[data-label="Ajuste"] {
        grid-column: 1 / -1;
    }

    .az-production-context .op-recipe-inputs-table tbody tr.is-manually-adjusted td[data-label="Ajuste"] {
        display: flex !important;
    }

    .az-production-context .op-recipe-inputs-table tbody td.js-alerta-receita:not(:empty) {
        grid-column: 1 / -1;
        padding: 8px 10px;
        border-radius: 7px;
        background: #fff0f0;
    }

    .az-production-context .op-recipe-inputs-table tbody tr.op-empty-row td {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .op-create-workspace {
        grid-template-columns: 1fr;
    }

    .op-create-summary {
        position: static;
    }

    .az-production-context .op-create-summary .op-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 14px;
    }

    .az-production-context .op-planning-products-table tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .az-production-context .op-recipe-inputs-table tbody {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .az-production-context .op-create-page .op-context-main {
        align-items: flex-start;
        gap: 10px;
    }

    .op-create-heading__icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .op-create-heading__actions {
        width: 100%;
    }

    .op-create-cancel-top {
        display: none;
    }

    .az-production-context .op-create-page .op-subtitle {
        font-size: .8rem;
    }

    .op-create-steps {
        margin-bottom: 18px;
    }

    .op-create-steps strong {
        font-size: .66rem;
    }

    .op-create-steps::before {
        right: 10%;
        left: 10%;
    }

    .op-wizard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        gap: 8px;
    }

    .op-wizard-position {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .op-wizard-actions .btn {
        width: 100%;
    }

    .az-production-context .op-create-page > .op-feedback {
        font-size: .76rem;
    }

    .az-production-context .op-create-page .op-section {
        padding: 15px 13px;
    }

    .op-create-subcard {
        padding: 13px;
    }

    .op-subcard-heading__visual,
    .op-section-icon {
        width: 36px;
        height: 36px;
    }

    .op-subcard-heading__visual {
        font-size: 1.2rem;
    }

    .az-production-context .op-planning-products-table tbody tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .az-production-context .op-planning-products-table tbody td {
        grid-column: auto;
    }

    .az-production-context .op-planning-products-table tbody td[data-label="Produto final"],
    .az-production-context .op-planning-products-table tbody td[data-label="Validade padrão"] {
        grid-column: 1 / -1;
    }

    .az-production-context .op-recipe-inputs-table tbody tr {
        grid-template-columns: 1fr;
    }

    .az-production-context .op-recipe-inputs-table tbody td {
        grid-column: 1 / -1;
    }

    .az-production-context .op-create-page .op-section-description {
        font-size: .78rem;
    }

    .az-production-context .op-create-summary .op-facts {
        grid-template-columns: 1fr;
    }

    .az-production-context .op-create-summary .op-review-facts,
    .op-review-flow-grid {
        grid-template-columns: 1fr;
    }

    .op-review-product {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .op-review-product__quantity {
        grid-column: 1 / -1;
        padding-top: 9px;
        justify-items: start;
        border-top: 1px solid var(--az-line-soft);
    }

    .op-search-result__content {
        display: grid;
        gap: 3px;
    }

    .op-search-result__meta {
        justify-items: start;
    }

    .az-production-context .op-create-page .op-form-actions {
        position: sticky;
        z-index: 5;
        bottom: 6px;
        padding: 8px;
        border: 1px solid var(--az-line);
        border-radius: 10px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 8px 24px rgba(16,34,74,.14);
    }
}

/* Detalhes administrativos, equipe e aprovação */
.az-production-context :is(.op-detail-page, .op-approval-page) {
    width: 100%;
    color: var(--az-ink);
}

.az-production-context :is(.op-detail-page, .op-approval-page) .op-context-header {
    padding-bottom: 16px;
    border-bottom-color: var(--az-line);
}

.az-production-context :is(.op-detail-page, .op-approval-page) .op-title {
    color: var(--az-ink);
    font-weight: 800;
}

.az-production-context :is(.op-detail-page, .op-approval-page) .op-section,
.az-production-context .op-approval-page .op-decision-summary {
    border-color: var(--az-line);
    border-radius: var(--az-radius);
    box-shadow: 0 3px 12px rgba(16,34,74,.035);
}

.az-production-context .op-approval-page .op-decision-summary {
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.az-production-context .op-approval-page .op-decision-summary-grid {
    border-top-color: var(--az-line);
}

.az-production-context .op-approval-page .op-review-state-warning {
    border-radius: 999px;
}

.az-production-context .op-approval-decision {
    padding: 20px;
    border-color: #b9c9dd !important;
    background: #fff !important;
}

.az-production-context .op-approval-decision .op-decision-primary {
    border-color: #a9dfbd;
    background: var(--az-green-soft);
}

.az-production-context .op-approval-decision .op-decision-warning {
    border-color: #efcc8a;
    background: var(--az-amber-soft);
}

.az-production-context .op-approval-decision .btn-primary,
.az-production-context .op-team-management .btn-primary {
    min-height: 46px;
    border-color: var(--az-green);
    border-radius: 8px;
    background: linear-gradient(180deg, #0aa951, #078b43);
}

.op-approval-decision__copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.op-approval-decision__copy .op-section-title {
    margin: 3px 0 4px;
}

.op-approval-decision__copy .op-section-description {
    margin: 0;
}

.op-approval-action-launcher {
    display: grid;
    flex: 0 0 min(430px, 48%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.az-production-context .op-approval-action {
    min-height: 48px;
    border-radius: 9px;
    font-weight: 780;
}

.az-production-context .op-approval-action--approve {
    border-color: var(--az-blue);
    background: var(--az-blue);
    color: #fff;
}

.az-production-context .op-approval-action--approve:hover,
.az-production-context .op-approval-action--approve:focus-visible {
    border-color: #0958d9;
    background: #0958d9;
    color: #fff;
}

.az-production-context .op-approval-action--reject {
    border-color: #e79b9b;
    background: #fff;
    color: #b42323;
}

.az-production-context .op-approval-action--reject:hover,
.az-production-context .op-approval-action--reject:focus-visible {
    border-color: var(--az-red);
    background: var(--az-red-soft);
    color: #a51f1f;
}

.op-approval-dialog {
    width: min(640px, calc(100vw - 32px));
    max-width: none;
    max-height: min(86dvh, 760px);
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd7e6;
    border-radius: 16px;
    background: #fff;
    color: var(--az-ink);
    box-shadow: 0 24px 70px rgba(16, 34, 74, .26);
}

.op-approval-dialog::backdrop {
    background: rgba(10, 23, 49, .56);
    backdrop-filter: blur(2px);
}

.op-approval-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--az-line-soft);
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.op-approval-dialog__header h2 {
    margin: 3px 0 0;
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -.025em;
}

.op-approval-dialog__close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid var(--az-line);
    border-radius: 50%;
    background: #fff;
    color: var(--az-muted);
    font-size: 1.5rem;
    line-height: 1;
}

.op-approval-dialog__close:hover,
.op-approval-dialog__close:focus-visible {
    border-color: #9fb0c7;
    color: var(--az-ink);
}

.op-approval-dialog form {
    display: flex;
    max-height: calc(min(86dvh, 760px) - 82px);
    flex-direction: column;
}

.op-approval-dialog__body {
    padding: 20px 22px;
    overflow-y: auto;
}

.op-approval-dialog__intro {
    margin: 0 0 18px;
    color: var(--az-muted);
}

.op-approval-dialog :is(.form-control, .form-select) {
    min-height: 46px;
    border-color: #b9c7d9;
    border-radius: 9px;
}

.op-approval-date-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
}

.op-approval-date-picker > button {
    min-height: 46px;
    border: 1px solid var(--az-line);
    border-radius: 9px;
    background: var(--az-blue-soft);
    color: var(--az-blue);
    font-size: 1.35rem;
    font-weight: 800;
}

.op-approval-date-picker > button:hover {
    border-color: var(--az-blue);
    background: #e1ecff;
}

.op-approval-dialog .form-text {
    max-width: 560px;
    margin-top: 7px;
    color: #4f607d;
    line-height: 1.45;
}

.op-approval-dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 22px 18px;
    border-top: 1px solid var(--az-line-soft);
    background: #f8fafc;
}

.op-approval-dialog__footer .btn {
    min-width: 150px;
    min-height: 46px;
    border-radius: 9px;
    font-weight: 760;
}

.az-production-context .op-btn-danger {
    border-color: var(--az-red);
    background: var(--az-red);
    color: #fff;
}

.az-production-context .op-btn-danger:hover,
.az-production-context .op-btn-danger:focus-visible {
    border-color: #c72525;
    background: #c72525;
    color: #fff;
}

.op-team-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.az-production-context .op-team-card .list-group-item {
    border-color: var(--az-line-soft);
    background: transparent;
}

.az-production-context .op-team-management {
    overflow: hidden;
    border-color: #b9c9dd;
    border-radius: 10px;
    background: #f8fafc;
}

.az-production-context .op-team-management > summary {
    padding: 13px 15px;
}

.az-production-context .op-team-management > form {
    padding: 0 15px 15px !important;
}

.az-production-context .op-team-management :is(.form-control, .form-select) {
    min-height: 44px;
    border-color: #bdc9d9;
    border-radius: 8px;
}

.az-production-context .op-detail-page .op-context-header {
    margin-bottom: 18px;
}

.az-production-context .op-detail-page .op-context-main {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.op-detail-product-visual {
    width: 64px;
    height: 64px;
}

.op-detail-product-visual.has-semantic-icon > .op-product-visual__emoji {
    font-size: 2.4rem;
}

.op-detail-identity {
    min-width: 0;
}

.az-production-context .op-detail-page .op-title {
    margin: 2px 0 4px;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    letter-spacing: -.035em;
}

.az-production-context .op-detail-page .op-action-bar {
    justify-content: flex-end;
}

.op-detail-overview {
    padding: 20px !important;
    background: linear-gradient(135deg, #fff, #f7fbff) !important;
}

.op-detail-overview__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.op-detail-overview__heading > strong {
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--az-blue-soft);
    color: #174ea6;
    font-size: .82rem;
    line-height: 1.4;
}

.op-detail-overview__grid,
.op-detail-technical__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.op-detail-overview__grid > div,
.op-detail-technical__grid > div {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid var(--az-line-soft);
    border-radius: 9px;
    background: #fff;
}

.op-detail-overview__grid span,
.op-detail-technical__grid span,
.op-detail-kpis span {
    color: var(--az-muted);
    font-size: .69rem;
}

.op-detail-overview__grid strong,
.op-detail-technical__grid strong {
    overflow: hidden;
    color: var(--az-ink);
    font-size: .82rem;
    text-overflow: ellipsis;
}

.az-production-context .op-detail-technical {
    border-color: var(--az-line);
    background: #fff;
}

.op-detail-technical__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 13px 13px;
}

.op-detail-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.op-detail-kpis > div {
    display: grid;
    min-height: 82px;
    align-content: center;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid var(--az-line);
    border-radius: 10px;
    background: #fff;
}

.op-detail-kpis strong {
    color: var(--az-ink);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.op-detail-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.az-production-context .op-detail-plan-card {
    padding: 0 !important;
    overflow: hidden;
}

.op-detail-plan-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 17px 13px;
    border-bottom: 1px solid var(--az-line-soft);
}

.op-detail-plan-card > header > span {
    padding: 4px 7px;
    border-radius: 6px;
    background: #f2f5f9;
    color: var(--az-muted);
    font-size: .68rem;
    font-weight: 750;
}

.op-detail-plan-list {
    display: grid;
}

.op-detail-plan-item {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--az-line-soft);
}

.op-detail-plan-item:last-child {
    border-bottom: 0;
}

.op-detail-plan-item > .op-product-visual {
    width: 46px;
    height: 46px;
}

.op-detail-plan-item > .op-product-visual.has-semantic-icon > .op-product-visual__emoji {
    font-size: 1.65rem;
}

.op-detail-plan-item__identity,
.op-detail-plan-item__quantity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.op-detail-plan-item__identity strong {
    overflow: hidden;
    color: var(--az-ink);
    font-size: .82rem;
    text-overflow: ellipsis;
}

.op-detail-plan-item__identity small,
.op-detail-plan-item__quantity small,
.op-detail-plan-item__cost {
    color: var(--az-muted);
    font-size: .67rem;
}

.op-detail-plan-item__quantity {
    justify-items: end;
    text-align: right;
}

.op-detail-plan-item__quantity strong {
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--az-red-soft);
    color: var(--az-red);
    font-size: .75rem;
    white-space: nowrap;
}

.op-detail-plan-item.is-output .op-detail-plan-item__quantity strong {
    background: var(--az-green-soft);
    color: var(--az-green);
}

.op-detail-plan-item__cost {
    grid-column: 2 / -1;
    justify-self: end;
}

.az-production-context .op-integration-disclosure {
    display: block;
    min-height: 88px;
}

.az-production-context .op-integration-disclosure > summary {
    min-height: 54px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 780;
}

.az-production-context .op-detail-exceptional-action {
    border-color: #f1cccc;
    border-radius: 10px;
    background: #fffafa;
}

@media (max-width: 767.98px) {
    .az-production-context .op-approval-page .op-decision-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .az-production-context .op-approval-decision {
        padding: 14px 11px;
    }

    .op-approval-decision__copy {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .op-approval-action-launcher {
        width: 100%;
        flex-basis: auto;
    }

    .op-approval-dialog {
        width: calc(100vw - 20px);
        max-height: 90dvh;
        border-radius: 13px;
    }

    .op-approval-dialog form {
        max-height: calc(90dvh - 78px);
    }

    .op-approval-dialog__header,
    .op-approval-dialog__body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .op-approval-dialog__footer {
        padding: 13px 16px 16px;
    }

    .op-approval-dialog__footer .btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .op-team-card__heading {
        flex-direction: column;
    }

    .az-production-context .op-detail-page .op-context-main {
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .op-detail-product-visual {
        width: 52px;
        height: 52px;
    }

    .az-production-context .op-detail-page .op-action-bar {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .op-detail-overview__heading {
        flex-direction: column;
    }

    .op-detail-overview__heading > strong {
        max-width: none;
    }

    .op-detail-overview__grid,
    .op-detail-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .op-detail-technical__grid,
    .op-detail-plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .az-production-context .op-approval-page .op-decision-summary-grid {
        grid-template-columns: 1fr;
    }

    .op-approval-action-launcher {
        grid-template-columns: 1fr;
    }

    .az-production-context .op-detail-page .op-title {
        font-size: 1.42rem;
    }

    .op-detail-overview {
        padding: 14px !important;
    }

    .op-detail-overview__grid,
    .op-detail-kpis {
        grid-template-columns: 1fr;
    }

    .op-detail-plan-item {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 11px 12px;
    }

    .op-detail-plan-item__quantity {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .op-detail-plan-item__cost {
        grid-column: 2;
        justify-self: start;
    }
}

/* Fila de aprovação: uma experiência de decisão, não uma tabela administrativa. */
.az-production-context .op-approval-index {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 2px 0 28px;
    color: var(--az-ink);
}

.az-production-context .op-approval-index__header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
}

.az-production-context .op-approval-index__back {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid #d4ddeb;
    border-radius: 12px;
    background: #fff;
    color: #10224a;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.az-production-context .op-approval-index__back:hover {
    border-color: #9db5dd;
    box-shadow: 0 6px 16px rgba(16, 34, 74, .08);
    color: var(--az-blue);
    transform: translateY(-1px);
}

.az-production-context .op-approval-index__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #667797;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.az-production-context .op-approval-index__header h1 {
    margin: 0;
    color: #0d2049;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 820;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.az-production-context .op-approval-index__header p {
    margin: 6px 0 0;
    color: #5d6f90;
    font-size: .95rem;
}

.az-production-context .op-approval-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.az-production-context .op-approval-overview__item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px 18px;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 16px rgba(16,34,74,.045);
}

.az-production-context .op-approval-overview__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #1d5fd1;
    font-size: 1.1rem;
    font-weight: 850;
}

.az-production-context .op-approval-overview__item.is-attention .op-approval-overview__icon {
    background: #fff4df;
    color: #b35a00;
}

.az-production-context .op-approval-overview__item.is-clear .op-approval-overview__icon {
    background: #eaf9f0;
    color: #078a45;
}

.az-production-context .op-approval-overview__item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.az-production-context .op-approval-overview__item strong {
    color: #10224a;
    font-size: 1.55rem;
    font-weight: 820;
    line-height: 1;
}

.az-production-context .op-approval-overview__item small {
    overflow: hidden;
    color: #60708e;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.az-production-context .op-approval-queue-section {
    display: grid;
    gap: 12px;
}

.az-production-context .op-approval-queue-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px;
}

.az-production-context .op-approval-queue-section__header h2 {
    margin: 0;
    color: #10224a;
    font-size: 1.25rem;
    font-weight: 800;
}

.az-production-context .op-approval-queue-section__count {
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #175cd3;
    font-size: .83rem;
    font-weight: 800;
}

.az-production-context .op-approval-queue-list {
    display: grid;
    gap: 10px;
}

.az-production-context .op-approval-card {
    overflow: hidden;
    border: 1px solid #d9e2ef;
    border-left: 4px solid #2a69d7;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 15px rgba(16,34,74,.04);
}

.az-production-context .op-approval-card.has-attention {
    border-left-color: #e78a00;
    background: linear-gradient(90deg, #fffaf1 0, #fff 28%);
}

.az-production-context .op-approval-card__link {
    display: grid;
    grid-template-areas:
        "visual identity execution decision"
        "visual store store decision";
    grid-template-columns: 62px minmax(0, 1fr) minmax(185px, .55fr) minmax(145px, .4fr);
    align-items: center;
    gap: 5px 16px;
    min-height: 112px;
    padding: 14px 18px 14px 16px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease;
}

.az-production-context .op-approval-card__link:hover {
    background: rgba(238, 245, 255, .52);
    box-shadow: inset 0 0 0 1px rgba(42,105,215,.12);
}

.az-production-context .op-approval-card__link:focus-visible {
    outline: 3px solid rgba(32, 108, 229, .32);
    outline-offset: -3px;
}

.az-production-context .op-approval-card__visual {
    grid-area: visual;
    width: 58px;
    height: 58px;
    border-color: #cfdaea;
    background: #f7faff;
    box-shadow: none;
}

.az-production-context .op-approval-card__identity {
    display: grid;
    grid-area: identity;
    min-width: 0;
    gap: 2px;
}

.az-production-context .op-approval-card__eyebrow {
    overflow: hidden;
    color: #5b7198;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.az-production-context .op-approval-card__identity > strong {
    overflow: hidden;
    color: #10224a;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.az-production-context .op-approval-card__identity > small,
.az-production-context .op-approval-card__store {
    overflow: hidden;
    color: #657694;
    font-size: .78rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.az-production-context .op-approval-card__store {
    grid-area: store;
}

.az-production-context .op-approval-card__execution {
    display: grid;
    grid-area: execution;
    min-width: 0;
    gap: 2px;
}

.az-production-context .op-approval-card__execution small {
    color: #71809b;
    font-size: .7rem;
    font-weight: 720;
    text-transform: uppercase;
}

.az-production-context .op-approval-card__execution strong {
    color: #263b64;
    font-size: .86rem;
    font-weight: 760;
}

.az-production-context .op-approval-card__execution span {
    overflow: hidden;
    color: #657694;
    font-size: .77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.az-production-context .op-approval-card__decision {
    display: grid;
    grid-area: decision;
    justify-items: end;
    gap: 8px;
}

.az-production-context .op-approval-card__decision > strong {
    color: #175cd3;
    font-size: .82rem;
    font-weight: 800;
}

.az-production-context .op-approval-card__status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid #b8d3c5;
    border-radius: 999px;
    background: #edf9f2;
    color: #08783f;
    font-size: .74rem;
    font-weight: 760;
    white-space: nowrap;
}

.az-production-context .op-approval-card__status > span {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: .66rem;
    font-weight: 900;
}

.az-production-context .op-approval-card__status.is-attention {
    border-color: #efcb8a;
    background: #fff6e7;
    color: #a65300;
}

.az-production-context .op-approval-empty {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 150px;
    padding: 24px;
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    background: #fff;
}

.az-production-context .op-approval-empty__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #eaf9f0;
    color: #078a45;
    font-size: 1.35rem;
    font-weight: 850;
}

.az-production-context .op-approval-empty h2 {
    margin: 0 0 4px;
    color: #10224a;
    font-size: 1.15rem;
    font-weight: 800;
}

.az-production-context .op-approval-empty p {
    margin: 0;
    color: #657694;
    font-size: .88rem;
}

.az-production-context .op-approval-empty a {
    color: #175cd3;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .az-production-context .op-approval-card__link {
        grid-template-areas:
            "visual identity decision"
            "visual execution decision"
            "visual store decision";
        grid-template-columns: 58px minmax(0, 1fr) auto;
        gap: 4px 14px;
        min-height: 126px;
        padding: 14px 16px 14px 14px;
    }

    .az-production-context .op-approval-card__execution {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .az-production-context .op-approval-card__execution small {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .az-production-context .op-approval-index__header {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 11px;
        margin-bottom: 16px;
    }

    .az-production-context .op-approval-index__back {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .az-production-context .op-approval-index__header h1 {
        font-size: 1.5rem;
    }

    .az-production-context .op-approval-index__header p {
        font-size: .84rem;
    }

    .az-production-context .op-approval-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 20px;
    }

    .az-production-context .op-approval-overview__item {
        min-height: 78px;
        padding: 12px;
    }

    .az-production-context .op-approval-overview__item.is-primary {
        grid-column: 1 / -1;
    }

    .az-production-context .op-approval-overview__icon {
        width: 36px;
        height: 36px;
    }

    .az-production-context .op-approval-overview__item strong {
        font-size: 1.35rem;
    }

    .az-production-context .op-approval-card__link {
        grid-template-areas:
            "visual identity"
            "execution execution"
            "decision decision"
            "store store";
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px 12px;
        min-height: 0;
        padding: 13px 13px 12px 11px;
    }

    .az-production-context .op-approval-card__visual {
        width: 50px;
        height: 50px;
    }

    .az-production-context .op-approval-card__execution {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 3px 8px;
        padding-top: 7px;
        border-top: 1px solid #e4eaf2;
    }

    .az-production-context .op-approval-card__execution small {
        display: block;
        grid-row: 1 / 3;
        align-self: center;
    }

    .az-production-context .op-approval-card__decision {
        display: flex;
        align-items: center;
        justify-content: space-between;
        justify-items: stretch;
    }

    .az-production-context .op-approval-empty {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 18px;
    }

    .az-production-context .op-approval-empty a {
        grid-column: 2;
    }
}

/* Etapas da aprovação: entradas e saídas precisam ser lidas como fluxos distintos. */
.az-production-context .op-approval-stage {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #d6e0ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 34, 74, .04);
}

.az-production-context .op-approval-stage__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.az-production-context .op-approval-stage__status {
    flex: 0 0 auto;
}

.az-production-context .op-approval-stage__note {
    padding: 11px 13px;
    border-left: 3px solid #2d6fd6;
    border-radius: 0 8px 8px 0;
    background: #f2f7ff;
    color: #345178;
    font-size: .86rem;
    line-height: 1.45;
}

.az-production-context .op-approval-stage-flows {
    display: grid;
    gap: 16px;
}

.az-production-context .op-approval-stage-flow {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8e1ed;
    border-radius: 12px;
    background: #fbfcfe;
}

.az-production-context .op-approval-stage-flow--input {
    border-left: 4px solid #2d6fd6;
    background: linear-gradient(90deg, #f4f8ff 0, #fff 34%);
}

.az-production-context .op-approval-stage-flow--output {
    border-left: 4px solid #159455;
    background: linear-gradient(90deg, #f1fbf6 0, #fff 34%);
}

.az-production-context .op-approval-stage-flow__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 12px 14px;
    border-bottom: 1px solid #dfe6ef;
}

.az-production-context .op-approval-stage-flow__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #e7f0ff;
    color: #1d5fc4;
    font-size: 1.15rem;
    font-weight: 850;
}

.az-production-context .op-approval-stage-flow--output .op-approval-stage-flow__icon {
    background: #e4f8ed;
    color: #087f45;
}

.az-production-context .op-approval-stage-flow__header > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.az-production-context .op-approval-stage-flow__header small {
    color: #6b7b96;
    font-size: .68rem;
    font-weight: 780;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.az-production-context .op-approval-stage-flow__header h4 {
    margin: 0;
    color: #10224a;
    font-size: 1.05rem;
    font-weight: 820;
}

.az-production-context .op-approval-stage-flow__header > strong {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1759bb;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.az-production-context .op-approval-stage-flow--output .op-approval-stage-flow__header > strong {
    background: #e8f8ef;
    color: #087b43;
}

.az-production-context .op-approval-stage-flow .table-responsive {
    padding: 2px 14px 8px;
}

.az-production-context .op-approval-stage-table {
    margin-bottom: 0;
}

.az-production-context .op-approval-stage-table thead th {
    padding-top: 12px;
    color: #566985;
    font-size: .7rem;
}

.az-production-context .op-approval-stage-table tbody td {
    padding-block: 12px;
}

@media (min-width: 1280px) {
    .az-production-context .op-approval-stage-flows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .az-production-context .op-approval-stage {
        gap: 13px;
        padding: 12px;
    }

    .az-production-context .op-approval-stage__header {
        display: grid;
    }

    .az-production-context .op-approval-stage-flow__header {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 10px;
    }

    .az-production-context .op-approval-stage-flow .table-responsive {
        padding-inline: 10px;
    }
}
