:root {
    --poli-red: #dc2626;
    --poli-red-dark: #b91c1c;
    --poli-dark: #1f2937;
    --bg-soft: #f8f9fb;
    --border-soft: #e5e7eb;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2937; }

.landing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
}

.landing-main {
    flex: 1;
    padding: 3rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

.landing-main > .container-fluid {
    width: 100%;
}

.landing-hero-copy {
    position: relative;
    z-index: 1;
    padding-top: 2.1rem;
}

.landing-title {
    font-size: clamp(3rem, 6vw, 5.45rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -2.8px;
    color: #131720;
    margin-bottom: 1.6rem;
}

.landing-lead,
.landing-lead-sub {
    font-size: 1.02rem;
    color: #475467;
    max-width: 570px;
    line-height: 1.6;
}

.landing-lead { margin-bottom: .55rem; }

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    max-width: 760px;
}

.landing-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 38, 38, 0.08);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff4f4;
    color: var(--poli-red);
    font-size: 1.45rem;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.landing-feature-title {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1b2230;
}

.landing-feature-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #5e6675;
}

.landing-side-stack {
    max-width: 430px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255,255,255,0.98);
    border-radius: 22px;
    padding: 2.1rem 2.15rem;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.12), 0 6px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(223, 229, 238, 0.95);
}

.login-title {
    font-weight: 900;
    color: #181c25;
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.login-sub {
    color: #667085;
    font-size: 0.97rem;
    margin-bottom: 1.5rem;
}

.landing-input-group {
    border: 1px solid #d6dde8;
    border-radius: 12px;
    overflow: hidden;
    min-height: 52px;
}

.landing-input-group .input-group-text,
.landing-input-group .form-control,
.landing-password-btn {
    border: 0;
    box-shadow: none;
}

.landing-input-group .input-group-text {
    background: #fff;
    color: #9aa4b2;
    padding-left: .95rem;
}

.landing-input-group .form-control {
    padding: .9rem .25rem;
}

.landing-password-btn {
    background: #fff;
    color: #8a94a3;
    min-width: 48px;
}

.landing-password-btn:hover {
    background: #fff8f8;
    color: var(--poli-red);
}

.btn-entrar {
    background: linear-gradient(180deg, #e01414 0%, #cb1010 100%);
    border-color: #cb1010;
    font-weight: 700;
    border-radius: 12px;
    min-height: 54px;
    box-shadow: 0 18px 30px rgba(203, 16, 16, 0.24);
}

.btn-entrar:hover {
    background: linear-gradient(180deg, #c51010 0%, #b30c0c 100%);
    border-color: #b30c0c;
}

.divider-or {
    text-align: center;
    color: #9ca3af;
    margin: 1.25rem 0;
    position: relative;
}

.divider-or::before,
.divider-or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-soft);
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.divider-or span {
    background: #fff;
    padding: 0 0.6rem;
    font-size: 0.85rem;
}

.help-card {
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(223, 229, 238, 0.95);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.help-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff1f1;
    color: var(--poli-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.help-card a {
    color: var(--poli-red);
    text-decoration: none;
}

.help-card a:hover { text-decoration: underline; }

.landing-footer {
    background: #14171d;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 1.05rem 0;
    position: relative;
    z-index: 2;
}
.landing-footer-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.74);
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    color: rgba(255,255,255,0.82);
    font-size: .92rem;
}

.landing-footer-links span,
.landing-footer-brand span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

@media (max-width: 992px) {
    .landing-navbar { padding-top: 1rem; }
    .landing-nav-shell { flex-direction: column; align-items: flex-start; }
    .badge-secure { border-right: 0; padding-right: 0; }
    .landing-main { padding: 1.25rem 1rem 1.5rem; }
    .landing-hero-copy { padding-top: .75rem; }
    .landing-title { font-size: clamp(2.8rem, 10vw, 4.4rem); }
    .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-side-stack {
        max-width: none;
        transform: none;
    }
}

@media (max-width: 768px) {
    .landing-body::before { display: none; }
    .landing-nav-actions { width: 100%; justify-content: space-between; }
    .landing-logo { font-size: 1.9rem; }
    .landing-title { letter-spacing: -1.8px; }
    .landing-feature-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .landing-feature-card {
        padding: 0.95rem 1rem;
    }
    .login-card { padding: 1.5rem; }
    .landing-footer-shell,
    .landing-footer-brand,
    .landing-footer-links { flex-direction: column; align-items: flex-start; }
}

/* ============ LANDING PREMIUM ============ */
.landing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 54% 8%, rgba(255, 255, 255, .9) 0 18%, rgba(245, 247, 250, 0) 42%),
        linear-gradient(135deg, #ffffff 0%, #f6f7f9 46%, #eef1f5 100%);
    color: #111827;
}

.landing-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 35% -10%, rgba(255, 255, 255, .85) 0 34%, transparent 62%),
        linear-gradient(116deg, transparent 0 48%, rgba(255, 255, 255, .5) 48.15% 56%, transparent 56.15%);
    z-index: 0;
}

.landing-navbar {
    position: relative;
    z-index: 5;
    padding: 1.7rem 0 .85rem;
}

.landing-nav-shell,
.landing-footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    width: min(300px, 44vw);
}

.landing-brand img {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.badge-secure {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #111827;
    padding-right: 1.55rem;
    border-right: 1px solid rgba(17, 24, 39, .18);
}

.badge-secure i {
    color: #111827;
    font-size: 1.35rem;
}

.badge-secure strong {
    display: block;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.1;
}

.badge-secure small {
    display: block;
    color: #4b5563;
    font-size: .78rem;
}

.landing-access-btn {
    min-height: 52px;
    padding: 0 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid rgba(217, 4, 41, .65);
    border-radius: 8px;
    color: #c30018;
    background: rgba(255, 255, 255, .78);
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .05);
}

.landing-access-btn:hover {
    background: #d90429;
    color: #fff;
    border-color: #d90429;
}

.landing-main {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 1.1rem 0 1.4rem;
    overflow: hidden;
}

.landing-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(720px, 1fr) minmax(440px, 560px);
    align-items: start;
    gap: clamp(2rem, 5vw, 6rem);
    min-height: calc(100vh - 150px);
}

.landing-copy-panel {
    position: relative;
    min-height: 700px;
    padding: clamp(2.6rem, 5vw, 4.6rem) 0 0 clamp(.35rem, 2vw, 2.6rem);
}

.landing-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.25rem;
    padding: .65rem .85rem;
    color: #c30018;
    background: rgba(255, 255, 255, .62);
    border-radius: 8px;
    text-transform: uppercase;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 30px rgba(17, 24, 39, .06);
}

.landing-title {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 0 1.35rem;
    color: #10141d;
    font-size: clamp(4rem, 6vw, 6.35rem);
    font-weight: 950;
    line-height: .94;
    letter-spacing: 0;
}

.landing-title span {
    display: block;
    color: #d90429;
}

.landing-lead,
.landing-lead-sub {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0;
    color: #313947;
    font-size: clamp(1.05rem, 1.4vw, 1.38rem);
    line-height: 1.48;
}

.landing-lead-sub {
    max-width: 610px;
    margin-top: .55rem;
}

.landing-lead-sub strong {
    color: #c30018;
}

.landing-feature-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .95rem;
    max-width: 825px;
    margin-top: 2.2rem;
}

.landing-feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .95rem;
    align-items: start;
    min-height: 112px;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .09);
    backdrop-filter: blur(10px);
}

.landing-feature-card > div:last-child {
    min-width: 0;
}

.landing-feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 4, 41, .18);
    border-radius: 8px;
    background: #fff5f5;
    color: #d90429;
    font-size: 1.45rem;
}

.landing-feature-title {
    margin: 0 0 .25rem;
    color: #121826;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.landing-feature-text {
    margin: 0;
    color: #374151;
    font-size: .86rem;
    line-height: 1.45;
}

.landing-machines-wrap {
    position: absolute;
    left: clamp(-2.7rem, -3vw, -.8rem);
    bottom: -8.6rem;
    z-index: 1;
    width: min(100%, 1110px);
    pointer-events: none;
}

.landing-machines-wrap::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 6%;
    bottom: 1.5rem;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(17, 24, 39, .24), transparent 72%);
    filter: blur(14px);
    opacity: .45;
    z-index: -1;
}

.landing-machines-wrap img {
    width: 100%;
    max-height: 350px;
    display: block;
    object-fit: contain;
    object-position: left bottom;
    object-fit: contain;
    filter: drop-shadow(0 16px 22px rgba(17, 24, 39, .16));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .24) 10%, #000 24%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .24) 10%, #000 24%, #000 100%);
}

.landing-red-ribbon {
    position: absolute;
    left: -14vw;
    bottom: -17vw;
    width: 72vw;
    height: 44vw;
    min-width: 920px;
    min-height: 540px;
    background: linear-gradient(142deg, rgba(217, 4, 41, .94), #b9001e);
    clip-path: ellipse(61% 37% at 55% 53%);
    transform: rotate(-14deg);
    z-index: 0;
    box-shadow: inset 0 30px 55px rgba(255, 255, 255, .13);
}

.landing-dot-field {
    position: absolute;
    left: 1rem;
    top: 31%;
    width: 68px;
    height: 220px;
    opacity: .18;
    background-image: radial-gradient(circle, #9ca3af 0 3px, transparent 3.5px);
    background-size: 26px 26px;
    z-index: 0;
}

.landing-side-stack {
    position: relative;
    z-index: 3;
    width: min(100%, 600px);
    margin: 1.45rem 0 0 auto;
}

.login-card {
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 32px 80px rgba(17, 24, 39, .14);
    backdrop-filter: blur(14px);
}

.login-title {
    margin: 0 0 .55rem;
    color: #111827;
    font-size: clamp(1.85rem, 2.4vw, 2.35rem);
    font-weight: 950;
    line-height: 1.1;
}

.login-sub {
    margin: 0 0 1.85rem;
    color: #4b5563;
    font-size: 1.02rem;
}

.login-card .form-label {
    color: #111827;
    font-size: .95rem;
    font-weight: 800;
}

.landing-input-group {
    min-height: 58px;
    overflow: hidden;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    background: #fff;
}

.landing-input-group .input-group-text,
.landing-input-group .form-control,
.landing-password-btn {
    border: 0;
    box-shadow: none;
}

.landing-input-group .input-group-text {
    padding-left: 1.15rem;
    background: #fff;
    color: #7b8491;
    font-size: 1.15rem;
}

.landing-input-group .form-control {
    padding: .95rem .7rem;
    color: #111827;
    font-weight: 650;
}

.landing-input-group .form-control::placeholder {
    color: #8d96a5;
    font-weight: 500;
}

.landing-password-btn {
    min-width: 54px;
    background: #fff;
    color: #7b8491;
}

.landing-password-btn:hover {
    background: #fff5f5;
    color: #d90429;
}

.landing-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.25rem;
}

.landing-form-row .form-check-label,
.landing-forgot-link {
    font-size: .95rem;
}

.landing-forgot-link {
    color: #c30018;
    font-weight: 800;
    text-decoration: none;
}

.landing-forgot-link:hover {
    text-decoration: underline;
}

.btn-entrar {
    min-height: 62px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #e30013 0%, #cc0017 100%);
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 22px 38px rgba(217, 4, 41, .26);
}

.btn-entrar:hover {
    background: linear-gradient(180deg, #c90016 0%, #a90016 100%);
}

.divider-or {
    position: relative;
    margin: 1.45rem 0 1.2rem;
    text-align: center;
    color: #6b7280;
}

.divider-or::before,
.divider-or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 43%;
    height: 1px;
    background: #e5e7eb;
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.divider-or span {
    position: relative;
    z-index: 1;
    padding: 0 .7rem;
    background: #fff;
}

.landing-register-btn {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 8px;
    border-color: #d90429;
    color: #c30018;
    font-size: 1.08rem;
    font-weight: 900;
}

.landing-register-btn:hover {
    background: #d90429;
    color: #fff;
}

.help-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: start;
    margin-top: 1rem;
    padding: 1.45rem 1.65rem;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 24px 55px rgba(17, 24, 39, .12);
}

.help-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff5f5;
    color: #d90429;
    font-size: 1.65rem;
}

.help-card h3 {
    margin: 0 0 .2rem;
    color: #111827;
    font-size: 1.08rem;
    font-weight: 900;
}

.help-card p {
    margin: 0 0 .75rem;
    color: #4b5563;
}

.help-card a,
.help-card span {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .35rem;
    color: #c30018;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
}

.help-card a:hover {
    text-decoration: underline;
}

.landing-footer {
    position: relative;
    z-index: 4;
    padding: 1.05rem 0;
    background: #11161d;
    color: rgba(255, 255, 255, .82);
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.landing-footer-brand img {
    width: 170px;
    max-height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.landing-footer-brand span {
    max-width: 430px;
    font-size: .9rem;
    line-height: 1.45;
}

.landing-footer-links {
    display: flex;
    align-items: center;
    gap: 0;
    color: #fff;
}

.landing-footer-links span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 36px;
    padding: 0 1.6rem;
    border-left: 1px solid rgba(255, 255, 255, .12);
    font-size: .92rem;
    white-space: nowrap;
}

@media (min-width: 1500px) {
    .landing-stage {
        grid-template-columns: minmax(850px, 1fr) minmax(500px, 600px);
    }

    .landing-copy-panel {
        min-height: 720px;
    }

    .landing-machines-wrap {
        width: min(100%, 1180px);
    }

    .landing-machines-wrap img {
        max-height: 365px;
    }
}

@media (max-width: 1200px) {
    .landing-stage {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        min-height: auto;
    }

    .landing-copy-panel {
        min-height: 630px;
        padding-right: 0;
    }

    .landing-side-stack {
        width: min(100%, 680px);
        margin: 0 auto 1.6rem;
    }

    .landing-red-ribbon {
        width: 95vw;
        left: -28vw;
    }
}

@media (max-width: 768px) {
    .landing-navbar {
        padding-top: 1rem;
    }

    .landing-nav-shell,
    .landing-footer-shell,
    .landing-footer-brand,
    .landing-footer-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        gap: .75rem;
    }

    .badge-secure {
        padding-right: 0;
        border-right: 0;
    }

    .landing-access-btn {
        width: 100%;
        min-height: 46px;
        padding: 0 .9rem;
    }

    .landing-copy-panel {
        min-height: 640px;
        padding-top: 1.4rem;
    }

    .landing-title {
        max-width: calc(100vw - 3.5rem);
        font-size: clamp(2.35rem, 10vw, 2.85rem);
        line-height: .98;
    }

    .landing-lead,
    .landing-lead-sub {
        max-width: calc(100vw - 3.5rem);
        font-size: 1rem;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
        width: calc(100vw - 6rem);
        max-width: 360px;
    }

    .landing-feature-card {
        min-width: 0;
    }

    .landing-feature-title,
    .landing-feature-text {
        overflow-wrap: anywhere;
    }

    .landing-machines-wrap {
        left: -2.6rem;
        right: -4rem;
        bottom: -1.2rem;
    }

    .landing-machines-wrap img {
        max-height: 240px;
    }

    .landing-red-ribbon {
        min-width: 620px;
        min-height: 430px;
        left: -52vw;
        bottom: -16rem;
    }

    .login-card,
    .help-card {
        padding: 1.3rem;
    }

    .landing-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
    }

    .landing-footer-links span {
        padding: .35rem 0;
        border-left: 0;
    }

    .landing-footer-brand img {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .landing-brand-text {
        font-size: 2rem;
    }

    .landing-brand-mark {
        width: 54px;
        height: 25px;
    }

    .landing-nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-access-btn {
        width: 100%;
    }

    .landing-copy-panel {
        min-height: 690px;
    }
}

/* Ajuste final da entrada: composição alinhada ao modelo enviado */
@media (min-width: 1201px) {
    .landing-body {
        min-height: 100vh;
        overflow: hidden;
    }

    .landing-navbar {
        height: 104px;
        padding: 1.35rem 0 .55rem;
    }

    .landing-brand {
        width: 280px;
    }

    .landing-main {
        flex: 1;
        padding: 0;
        overflow: visible;
    }

    .landing-stage {
        grid-template-columns: minmax(760px, 900px) minmax(560px, 640px);
        gap: clamp(4rem, 4.8vw, 5.6rem);
        max-width: 1700px;
        margin: 0 auto;
        min-height: calc(100vh - 176px);
    }

    .landing-copy-panel {
        height: calc(100vh - 176px);
        min-height: 660px;
        max-height: 820px;
        padding-top: clamp(2.4rem, 4.5vh, 4.2rem);
        padding-left: clamp(1rem, 1.9vw, 2.1rem);
    }

    .landing-eyebrow {
        margin-bottom: 1.25rem;
    }

    .landing-title {
        max-width: 700px;
        margin-bottom: 1.3rem;
        font-size: clamp(4.9rem, 5vw, 6.25rem);
    }

    .landing-lead,
    .landing-lead-sub {
        max-width: 620px;
        font-size: clamp(1.15rem, 1.22vw, 1.35rem);
    }

    .landing-feature-grid {
        width: min(100%, 820px);
        max-width: 820px;
        margin-top: 1.75rem;
        gap: .85rem;
    }

    .landing-feature-card {
        min-height: 100px;
        padding: 1rem 1.1rem;
    }

    .landing-machines-wrap {
        left: clamp(-1.45rem, -1.2vw, -.3rem);
        bottom: clamp(-.7rem, -1vh, -.2rem);
        width: min(98%, 1060px);
        z-index: 2;
    }

    .landing-machines-wrap img {
        max-height: clamp(285px, 32vh, 345px);
        -webkit-mask-image: none;
        mask-image: none;
    }

    .landing-red-ribbon {
        left: -10vw;
        bottom: -17vw;
        width: 66vw;
        height: 38vw;
        min-width: 940px;
        min-height: 450px;
        clip-path: ellipse(64% 37% at 51% 52%);
        transform: rotate(-15deg);
        z-index: 1;
    }

    .landing-side-stack {
        width: min(100%, 620px);
        max-width: 620px;
        margin-top: clamp(1rem, 2.2vh, 1.7rem);
        margin-left: auto;
        transform: none;
    }

    .login-card {
        padding: clamp(1.8rem, 2.25vh, 2.35rem);
    }

    .help-card {
        margin-top: .85rem;
        padding: 1rem 1.35rem;
    }

    .landing-footer {
        height: 72px;
        padding: .65rem 0;
    }
}

@media (min-width: 1500px) and (max-height: 980px) {
    .landing-title {
        font-size: 5rem;
    }

    .landing-copy-panel {
        padding-top: 2.3rem;
    }

    .landing-machines-wrap {
        bottom: .15rem;
        width: min(96%, 1010px);
    }

    .landing-machines-wrap img {
        max-height: 292px;
    }

    .landing-red-ribbon {
        bottom: -18vw;
        width: 68vw;
    }
}

/* Entrada premium: showroom com máquinas em camadas reais */
.landing-copy-panel {
    isolation: isolate;
}

.landing-body::before {
    background:
        radial-gradient(ellipse at 33% -8%, rgba(255, 255, 255, .95) 0 32%, transparent 64%),
        radial-gradient(ellipse at 55% 76%, rgba(255, 255, 255, .86) 0 18%, transparent 46%),
        linear-gradient(116deg, transparent 0 49%, rgba(255, 255, 255, .48) 49.15% 58%, transparent 58.15%);
}

.landing-red-ribbon {
    left: -10.5vw;
    bottom: -7.6vw;
    width: 66vw;
    height: 28vw;
    min-width: 820px;
    min-height: 330px;
    background:
        radial-gradient(ellipse at 46% 2%, rgba(255,255,255,.22) 0 10%, rgba(255,255,255,0) 42%),
        linear-gradient(115deg, #d90429 0%, #c60022 60%, #e10b2f 100%);
    clip-path: polygon(0 54%, 12% 48%, 27% 40%, 43% 33%, 61% 29%, 76% 31%, 91% 42%, 100% 100%, 0 100%);
    transform: none;
    box-shadow: inset 0 30px 52px rgba(255, 255, 255, .11);
}

.landing-red-ribbon::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%),
        radial-gradient(ellipse at 54% 12%, rgba(255,255,255,.16), transparent 38%);
    opacity: .72;
}

.landing-machines-wrap {
    position: absolute;
    left: clamp(-1.2rem, -1.1vw, -.25rem);
    bottom: clamp(-.45rem, -.8vh, .2rem);
    z-index: 3;
    width: min(100%, 1020px);
    height: clamp(300px, 32vh, 380px);
    pointer-events: none;
}

.landing-machine-floor {
    position: absolute;
    left: 0;
    right: 7%;
    bottom: 10px;
    height: 126px;
    z-index: 1;
    border-radius: 50% / 30%;
    background:
        radial-gradient(ellipse at 42% 20%, #ffffff 0 30%, rgba(255, 255, 255, .92) 48%, rgba(244, 247, 251, .62) 68%, rgba(244, 247, 251, 0) 82%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 247, 251, .46));
    filter: blur(.1px);
}

.landing-machine-floor::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 9%;
    bottom: 27px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 17% 50%, rgba(17,24,39,.24), transparent 24%),
        radial-gradient(ellipse at 49% 46%, rgba(17,24,39,.25), transparent 32%),
        radial-gradient(ellipse at 80% 48%, rgba(17,24,39,.20), transparent 24%);
    filter: blur(18px);
    opacity: .5;
}

.landing-machine-floor::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 17%;
    bottom: 17px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
    box-shadow: 0 -12px 28px rgba(255,255,255,.58);
    opacity: .72;
}

.landing-machines-wrap::after {
    left: 4%;
    right: 10%;
    bottom: 38px;
    height: 42px;
    z-index: 0;
    background: radial-gradient(ellipse, rgba(17, 24, 39, .25), rgba(17, 24, 39, .08) 42%, transparent 73%);
    filter: blur(16px);
    opacity: .45;
}

.landing-machine {
    position: absolute;
    bottom: 54px;
    display: block;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
    image-rendering: auto;
    filter: drop-shadow(0 18px 18px rgba(17, 24, 39, .14));
}

.landing-machine--left {
    left: 0;
    bottom: 50px;
    z-index: 4;
    width: clamp(240px, 19vw, 315px);
}

.landing-machine--center {
    left: clamp(190px, 15.2vw, 285px);
    bottom: 48px;
    z-index: 5;
    width: clamp(390px, 31vw, 545px);
}

.landing-machine--right {
    left: clamp(565px, 43vw, 690px);
    bottom: 60px;
    z-index: 4;
    width: clamp(245px, 21vw, 350px);
}

@media (min-width: 1201px) {
    .landing-stage {
        grid-template-columns: minmax(650px, 1fr) minmax(450px, 610px);
        gap: clamp(2rem, 3.6vw, 5rem);
    }

    .landing-copy-panel {
        overflow: visible;
    }
}

@media (min-width: 1500px) {
    .landing-machines-wrap {
        width: min(100%, 1100px);
        height: clamp(320px, 33vh, 400px);
    }

    .landing-machine--left {
        width: clamp(285px, 18vw, 340px);
    }

    .landing-machine--center {
        left: clamp(240px, 15.2vw, 310px);
        width: clamp(470px, 30vw, 585px);
    }

    .landing-machine--right {
        left: clamp(650px, 42vw, 760px);
        width: clamp(285px, 20vw, 365px);
    }
}

@media (max-width: 1200px) {
    .landing-red-ribbon {
        left: -24vw;
        bottom: -12rem;
        width: 105vw;
        height: 520px;
        min-width: 760px;
        clip-path: polygon(0 58%, 16% 50%, 38% 40%, 62% 35%, 84% 43%, 100% 100%, 0 100%);
    }

    .landing-machines-wrap {
        left: -1.8rem;
        bottom: .15rem;
        width: min(104%, 920px);
        height: 300px;
    }

    .landing-machine--left {
        width: clamp(215px, 26vw, 280px);
    }

    .landing-machine--center {
        left: clamp(160px, 22vw, 230px);
        width: clamp(335px, 45vw, 470px);
    }

    .landing-machine--right {
        left: clamp(490px, 62vw, 610px);
        width: clamp(215px, 30vw, 310px);
    }
}

@media (max-width: 768px) {
    .landing-red-ribbon {
        left: -52vw;
        bottom: -13rem;
        width: 132vw;
        height: 430px;
        min-width: 620px;
    }

    .landing-machines-wrap {
        left: -2.8rem;
        right: auto;
        bottom: .3rem;
        width: 760px;
        height: 235px;
        transform: scale(.82);
        transform-origin: left bottom;
    }

    .landing-machine-floor {
        height: 92px;
        bottom: 2px;
    }

    .landing-machine {
        bottom: 40px;
    }

    .landing-machine--left {
        width: 210px;
    }

    .landing-machine--center {
        left: 150px;
        width: 330px;
    }

    .landing-machine--right {
        left: 430px;
        width: 210px;
    }
}

/* Refinamento de proporcao: maquinas abaixo dos cards e fora do login */
.landing-feature-grid {
    z-index: 7;
}

.landing-machines-wrap {
    z-index: 2;
    bottom: clamp(-2.4rem, -4.2vh, -1.2rem);
    width: min(96%, 980px);
}

.landing-machine {
    bottom: 36px;
}

.landing-machine--left {
    z-index: 3;
    width: clamp(220px, 16vw, 300px);
}

.landing-machine--center {
    z-index: 4;
    left: clamp(190px, 14.2vw, 270px);
    width: clamp(360px, 27vw, 520px);
}

.landing-machine--right {
    z-index: 3;
    left: clamp(520px, 37vw, 650px);
    width: clamp(220px, 16.5vw, 300px);
}

.landing-red-ribbon {
    bottom: -13vw;
    height: 25vw;
    min-height: 305px;
}

@media (min-width: 1500px) {
    .landing-machines-wrap {
        width: min(84%, 900px);
        bottom: clamp(-2.6rem, -3.9vh, -1.6rem);
    }

    .landing-machine--left {
        width: clamp(230px, 13.8vw, 270px);
    }

    .landing-machine--center {
        left: clamp(195px, 11.8vw, 230px);
        width: clamp(380px, 22.8vw, 470px);
    }

    .landing-machine--right {
        left: clamp(455px, 25vw, 500px);
        width: clamp(195px, 12vw, 235px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-copy-panel {
        min-height: 590px;
    }

    .landing-machines-wrap {
        left: -1.2rem;
        bottom: -6.9rem;
        width: 720px;
        height: 250px;
    }

    .landing-machine-floor {
        right: 13%;
        bottom: 0;
        height: 98px;
    }

    .landing-machine {
        bottom: 24px;
    }

    .landing-machine--left {
        width: 192px;
    }

    .landing-machine--center {
        left: 142px;
        width: 332px;
    }

    .landing-machine--right {
        left: 410px;
        width: 205px;
    }

    .landing-red-ribbon {
        left: -13vw;
        bottom: -8.7rem;
        width: 70vw;
        height: 360px;
        min-width: 720px;
        min-height: 320px;
    }
}

/* Garante que as maquinas em camadas vençam a regra antiga do img composto */
.landing-machines-wrap .landing-machine {
    position: absolute;
    width: auto;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.landing-machines-wrap .landing-machine--left {
    width: clamp(220px, 16vw, 300px);
}

.landing-machines-wrap .landing-machine--center {
    left: clamp(190px, 14.2vw, 270px);
    width: clamp(360px, 27vw, 520px);
}

.landing-machines-wrap .landing-machine--right {
    left: clamp(520px, 37vw, 650px);
    width: clamp(220px, 16.5vw, 300px);
}

@media (min-width: 1500px) {
    .landing-machines-wrap .landing-machine--left {
        width: clamp(270px, 15.5vw, 310px);
    }

    .landing-machines-wrap .landing-machine--center {
        left: clamp(230px, 13.2vw, 265px);
        width: clamp(455px, 26vw, 535px);
    }

    .landing-machines-wrap .landing-machine--right {
        left: clamp(645px, 37vw, 715px);
        width: clamp(235px, 14vw, 285px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-machines-wrap .landing-machine--left {
        width: 226px;
    }

    .landing-machines-wrap .landing-machine--center {
        left: 166px;
        width: 388px;
    }

    .landing-machines-wrap .landing-machine--right {
        left: 510px;
        width: 235px;
    }
}

@media (max-width: 768px) {
    .landing-machines-wrap .landing-machine--left {
        width: 210px;
    }

    .landing-machines-wrap .landing-machine--center {
        left: 150px;
        width: 330px;
    }

    .landing-machines-wrap .landing-machine--right {
        left: 430px;
        width: 210px;
    }
}

/* Correção visual da entrada: máquinas mais baixas, terceira em destaque e faixa no padrão da referência */
@media (min-width: 1201px) {
    .landing-red-ribbon {
        left: -9vw;
        bottom: -8.2rem;
        width: min(82vw, 1320px);
        height: clamp(390px, 31vw, 540px);
        min-width: 940px;
        min-height: 390px;
        background:
            radial-gradient(ellipse at 48% 8%, rgba(255, 255, 255, .20) 0 9%, rgba(255, 255, 255, 0) 42%),
            linear-gradient(116deg, #e00028 0%, #d90429 54%, #c8102e 100%);
        clip-path: polygon(0 70%, 10% 62%, 23% 53%, 38% 45%, 54% 38%, 70% 34%, 84% 36%, 94% 49%, 100% 100%, 0 100%);
        transform: none;
        box-shadow:
            inset 0 42px 70px rgba(255, 255, 255, .13),
            0 -16px 44px rgba(200, 16, 46, .10);
    }

    .landing-red-ribbon::before {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 31%),
            radial-gradient(ellipse at 58% 15%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 36%);
        opacity: .68;
    }

    .landing-machines-wrap {
        left: clamp(-3.4rem, -2.8vw, -2rem);
        bottom: clamp(-5.9rem, -8.2vh, -4.6rem);
        width: min(106%, 1080px);
        height: clamp(300px, 34vh, 390px);
    }

    .landing-machine-floor {
        bottom: 0;
        height: 128px;
        right: 10%;
        background:
            radial-gradient(ellipse at 43% 26%, #ffffff 0 32%, rgba(255, 255, 255, .94) 48%, rgba(241, 245, 249, .64) 70%, rgba(241, 245, 249, 0) 84%),
            linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 247, 251, .48));
    }

    .landing-machine-floor::before {
        left: 6%;
        right: 8%;
        bottom: 28px;
        height: 58px;
        opacity: .46;
    }

    .landing-machine {
        bottom: 20px;
        filter: drop-shadow(0 20px 18px rgba(17, 24, 39, .15));
    }

    .landing-machines-wrap .landing-machine--left {
        left: 0;
        bottom: 20px;
        z-index: 4;
        width: clamp(255px, 16.8vw, 330px);
    }

    .landing-machines-wrap .landing-machine--center {
        left: clamp(205px, 14.4vw, 285px);
        bottom: 22px;
        z-index: 5;
        width: clamp(410px, 27vw, 560px);
    }

    .landing-machines-wrap .landing-machine--right {
        left: clamp(645px, 38.8vw, 755px);
        bottom: 24px;
        z-index: 6;
        width: clamp(245px, 15.8vw, 315px);
    }
}

@media (min-width: 1500px) {
    .landing-machines-wrap {
        bottom: clamp(-6.25rem, -8.6vh, -5rem);
        width: min(100%, 1120px);
    }

    .landing-machines-wrap .landing-machine--left {
        width: clamp(285px, 15.8vw, 340px);
    }

    .landing-machines-wrap .landing-machine--center {
        left: clamp(245px, 14.2vw, 305px);
        width: clamp(485px, 27vw, 590px);
    }

    .landing-machines-wrap .landing-machine--right {
        left: clamp(720px, 40.5vw, 790px);
        width: clamp(255px, 14.4vw, 315px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-red-ribbon {
        bottom: -7.1rem;
        width: 82vw;
        height: 390px;
        min-width: 820px;
    }

    .landing-machines-wrap {
        left: -2.25rem;
        bottom: -5.6rem;
        width: 815px;
        height: 285px;
    }

    .landing-machines-wrap .landing-machine--left {
        width: 235px;
    }

    .landing-machines-wrap .landing-machine--center {
        left: 178px;
        width: 405px;
    }

    .landing-machines-wrap .landing-machine--right {
        left: 560px;
        width: 245px;
    }
}

/* Ajuste de fidelidade: faixa atrás das máquinas e conjunto apoiado mais abaixo */
@media (min-width: 1201px) {
    .landing-stage {
        z-index: 2;
    }

    .landing-red-ribbon {
        left: -8vw;
        bottom: -8rem;
        width: min(82vw, 1360px);
        height: clamp(390px, 30vw, 520px);
        z-index: 0;
        clip-path: polygon(0 72%, 10% 64%, 24% 55%, 40% 47%, 57% 40%, 73% 37%, 88% 42%, 98% 58%, 100% 94%, 91% 100%, 0 100%);
    }

    .landing-machines-wrap {
        bottom: clamp(-10rem, -13vh, -7.8rem);
        z-index: 4;
    }

    .landing-machine-floor {
        left: -1.8rem;
        right: -6rem;
        bottom: -2px;
        height: 132px;
        z-index: 1;
        border-radius: 999px;
        background:
            radial-gradient(ellipse at 35% 36%, rgba(255, 255, 255, 1) 0 29%, rgba(255, 255, 255, .92) 46%, rgba(241, 245, 249, .48) 66%, rgba(241, 245, 249, 0) 84%),
            linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.93) 13%, rgba(255,255,255,.96) 72%, rgba(255,255,255,0) 100%);
    }

    .landing-machine {
        z-index: 4;
    }

    .landing-machines-wrap .landing-machine--center {
        z-index: 5;
    }

    .landing-machines-wrap .landing-machine--right {
        z-index: 7;
    }
}

@media (min-width: 1500px) {
    .landing-red-ribbon {
        left: -8vw;
        bottom: -8.2rem;
        width: min(82vw, 1360px);
        clip-path: polygon(0 73%, 10% 64%, 23% 56%, 39% 48%, 55% 41%, 70% 38%, 85% 42%, 98% 59%, 100% 94%, 91% 100%, 0 100%);
    }

    .landing-machines-wrap {
        bottom: clamp(-9.6rem, -11.8vh, -7.8rem);
    }

    .landing-machines-wrap .landing-machine--center {
        left: clamp(230px, 13.5vw, 292px);
        width: clamp(455px, 25.2vw, 560px);
    }

    .landing-machines-wrap .landing-machine--right {
        left: clamp(725px, 40.8vw, 800px);
        width: clamp(255px, 14.2vw, 305px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-machines-wrap {
        left: -2.05rem;
        bottom: -10.8rem;
        width: 730px;
        height: 245px;
    }

    .landing-machine {
        bottom: 16px;
    }

    .landing-machine-floor {
        left: -1.2rem;
        right: -5rem;
        height: 108px;
    }

    .landing-machines-wrap .landing-machine--left {
        width: 205px;
    }

    .landing-machines-wrap .landing-machine--center {
        left: 164px;
        width: 342px;
    }

    .landing-machines-wrap .landing-machine--right {
        left: 494px;
        width: 198px;
    }

    .landing-red-ribbon {
        left: -18vw;
        bottom: -4.55rem;
        width: 100vw;
        height: 350px;
        min-width: 820px;
        clip-path: polygon(0 72%, 12% 64%, 27% 55%, 44% 47%, 61% 41%, 78% 41%, 92% 51%, 100% 66%, 100% 94%, 90% 100%, 0 100%);
    }
}

/* Estrategia final: uma unica imagem profissional em static/img/hero-machines.png */
.landing-red-ribbon {
    left: -8vw;
    bottom: -8.2rem;
    width: min(82vw, 1360px);
    height: clamp(300px, 24vw, 420px);
    min-width: 760px;
    min-height: 300px;
    z-index: 0;
    transform: none;
    background:
        radial-gradient(ellipse at 48% 8%, rgba(255,255,255,.18) 0 9%, rgba(255,255,255,0) 42%),
        linear-gradient(116deg, #e00028 0%, #d90429 58%, #c8102e 100%);
    clip-path: polygon(0 76%, 12% 67%, 28% 57%, 45% 49%, 63% 43%, 79% 42%, 93% 52%, 100% 68%, 100% 91%, 92% 100%, 0 100%);
    box-shadow:
        inset 0 28px 52px rgba(255,255,255,.12),
        0 -12px 34px rgba(200,16,46,.08);
}

.landing-red-ribbon::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 32%),
        radial-gradient(ellipse at 58% 15%, rgba(255,255,255,.15), rgba(255,255,255,0) 34%);
    opacity: .6;
}

.landing-machines-wrap {
    position: absolute;
    left: calc(50% - 2.2rem);
    transform: translateX(-50%);
    bottom: clamp(-8.8rem, -10.8vh, -6.7rem);
    z-index: 4;
    width: min(102%, 1120px);
    height: clamp(285px, 35vh, 420px);
    pointer-events: none;
    overflow: visible;
    -webkit-mask-image: radial-gradient(ellipse at 50% 63%, #000 0 54%, rgba(0,0,0,.92) 64%, rgba(0,0,0,.55) 74%, transparent 88%);
    mask-image: radial-gradient(ellipse at 50% 63%, #000 0 54%, rgba(0,0,0,.92) 64%, rgba(0,0,0,.55) 74%, transparent 88%);
}

.landing-machines-wrap::before {
    content: "";
    position: absolute;
    left: -3%;
    right: 3%;
    bottom: 0;
    height: 46%;
    border-radius: 999px;
    z-index: 0;
    background: transparent;
    filter: none;
    opacity: 0;
}

.landing-machines-wrap::after {
    content: "";
    position: absolute;
    left: 9%;
    right: 11%;
    bottom: 13%;
    height: 16%;
    border-radius: 999px;
    z-index: 0;
    background: radial-gradient(ellipse, rgba(17,24,39,.22), rgba(17,24,39,.07) 48%, transparent 74%);
    filter: blur(16px);
    opacity: .42;
}

.landing-machines-wrap .landing-machines-image {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    display: block;
    width: min(100%, 980px);
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateX(-50%);
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 7%, #000 16%, #000 86%, rgba(0,0,0,.55) 94%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 8%, #000 18%, #000 92%, rgba(0,0,0,.72) 97%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 7%, #000 16%, #000 86%, rgba(0,0,0,.55) 94%, transparent 100%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 8%, #000 18%, #000 92%, rgba(0,0,0,.72) 97%, transparent 100%);
    mask-composite: intersect;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 22px 22px rgba(17,24,39,.13));
}

.landing-machines-wrap.is-empty {
    min-height: clamp(210px, 26vh, 320px);
}

.landing-machines-wrap.is-empty::before,
.landing-machines-wrap.is-empty::after {
    opacity: 0;
}

@media (min-width: 1500px) {
    .landing-red-ribbon {
        left: -7vw;
        bottom: -8.4rem;
        width: min(80vw, 1340px);
        height: clamp(340px, 24vw, 430px);
    }

    .landing-machines-wrap {
        left: calc(50% - 2.4rem);
        transform: translateX(-50%);
        bottom: clamp(-9.1rem, -11vh, -7.2rem);
        width: min(104%, 1180px);
        height: clamp(310px, 35vh, 440px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-red-ribbon {
        left: -17vw;
        bottom: -4.7rem;
        width: 100vw;
        height: 320px;
        min-width: 820px;
        clip-path: polygon(0 76%, 13% 67%, 29% 58%, 47% 50%, 65% 45%, 81% 45%, 94% 55%, 100% 69%, 100% 91%, 91% 100%, 0 100%);
    }

    .landing-machines-wrap {
        left: calc(50% - 1.7rem);
        transform: translateX(-50%);
        bottom: -9.4rem;
        width: 790px;
        height: 270px;
    }
}

@media (max-width: 1200px) {
    .landing-machines-wrap {
        position: relative;
        left: auto;
        bottom: auto;
        width: min(100%, 860px);
        height: clamp(210px, 34vw, 330px);
        margin: 1.25rem auto -1.3rem;
    }

    .landing-red-ribbon {
        left: -28vw;
        bottom: -10rem;
        width: 118vw;
        height: 360px;
        min-width: 760px;
    }
}

@media (max-width: 768px) {
    .landing-machines-wrap {
        height: clamp(160px, 43vw, 240px);
        margin-bottom: -.5rem;
    }
}

/* Ajuste responsivo para zoom 100% e telas desktop com menos altura util */
@media (min-width: 1201px) and (max-height: 980px) {
    .landing-navbar {
        height: 88px;
        padding-top: .85rem;
    }

    .landing-brand {
        width: 230px;
    }

    .landing-stage {
        min-height: calc(100vh - 150px);
    }

    .landing-copy-panel {
        height: calc(100vh - 150px);
        min-height: 590px;
        padding-top: clamp(1.4rem, 2.8vh, 2.25rem);
    }

    .landing-eyebrow {
        margin-bottom: .9rem;
    }

    .landing-title {
        font-size: clamp(4rem, 4.35vw, 5rem);
        margin-bottom: 1.05rem;
    }

    .landing-lead,
    .landing-lead-sub {
        font-size: clamp(1.02rem, 1.1vw, 1.18rem);
        line-height: 1.42;
    }

    .landing-feature-grid {
        margin-top: 1.35rem;
    }

    .landing-feature-card {
        min-height: 86px;
        padding: .9rem 1rem;
    }

    .landing-machines-wrap {
        left: calc(50% - 1.7rem);
        bottom: clamp(-4.6rem, -5.7vh, -3.6rem);
        width: min(98%, 1040px);
        height: clamp(238px, 29vh, 325px);
    }

    .landing-red-ribbon {
        bottom: -4.6rem;
        height: clamp(250px, 22vw, 350px);
        width: min(78vw, 1260px);
    }

    .landing-side-stack {
        margin-top: .65rem;
    }
}

@media (min-width: 1201px) and (max-height: 860px) {
    .landing-navbar {
        height: 78px;
        padding-top: .65rem;
    }

    .landing-brand {
        width: 205px;
    }

    .landing-stage {
        min-height: calc(100vh - 128px);
    }

    .landing-copy-panel {
        height: calc(100vh - 128px);
        min-height: 540px;
        padding-top: 1.05rem;
    }

    .landing-title {
        font-size: clamp(3.55rem, 4vw, 4.45rem);
        margin-bottom: .9rem;
    }

    .landing-lead,
    .landing-lead-sub {
        font-size: 1rem;
        margin-bottom: .55rem;
    }

    .landing-feature-grid {
        margin-top: 1rem;
        gap: .7rem;
    }

    .landing-feature-card {
        min-height: 78px;
        padding: .78rem .9rem;
    }

    .landing-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.22rem;
    }

    .landing-machines-wrap {
        bottom: clamp(-3.8rem, -4.8vh, -2.9rem);
        width: min(94%, 980px);
        height: clamp(205px, 27vh, 270px);
    }

    .landing-red-ribbon {
        bottom: -3.8rem;
        height: 285px;
    }
}

/* Ajuste final solicitado: sem faixa vermelha e máquinas maiores na entrada */
.landing-red-ribbon {
    display: none !important;
}

.landing-machines-wrap {
    left: calc(50% - 1.4rem);
    bottom: clamp(-3.4rem, -4.4vh, -2.2rem);
    z-index: 3;
    width: min(116%, 1260px);
    height: clamp(330px, 39vh, 470px);
}

.landing-machines-wrap .landing-machines-image {
    width: min(100%, 1260px);
    max-height: 100%;
    filter: drop-shadow(0 24px 24px rgba(17,24,39,.12));
}

.landing-feature-grid {
    position: relative;
    z-index: 8;
}

@media (min-width: 1500px) {
    .landing-machines-wrap {
        left: calc(50% - 1.8rem);
        bottom: clamp(-3.2rem, -4vh, -2rem);
        width: min(118%, 1320px);
        height: clamp(350px, 39vh, 500px);
    }
}

@media (min-width: 1201px) and (max-width: 1499px) {
    .landing-machines-wrap {
        left: calc(50% - 1.1rem);
        bottom: -3.6rem;
        width: min(110%, 900px);
        height: 310px;
    }
}

@media (min-width: 1201px) and (max-height: 980px) {
    .landing-machines-wrap {
        bottom: clamp(-2.4rem, -3.2vh, -1.4rem);
        width: min(112%, 1180px);
        height: clamp(305px, 35vh, 410px);
    }
}

@media (min-width: 1201px) and (max-height: 860px) {
    .landing-machines-wrap {
        bottom: clamp(-1.8rem, -2.5vh, -1rem);
        width: min(108%, 1080px);
        height: clamp(270px, 32vh, 350px);
    }
}

/* Correção estrutural: rodapé sempre visível em desktop, inclusive com zoom 100% */
@media (min-width: 1201px) {
    .landing-body {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .landing-navbar {
        flex: 0 0 92px;
        height: 92px;
        padding: .95rem 0 .45rem;
    }

    .landing-main {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .landing-stage {
        height: 100%;
        min-height: 0;
        align-items: stretch;
    }

    .landing-copy-panel {
        height: 100%;
        min-height: 0;
        max-height: none;
        padding-top: clamp(1.25rem, 2.6vh, 2.4rem);
    }

    .landing-side-stack {
        align-self: start;
    }

    .landing-footer {
        flex: 0 0 64px;
        height: 64px;
        padding: .45rem 0;
        z-index: 20;
    }

    .landing-footer-brand img {
        width: 132px;
        max-height: 34px;
    }

    .landing-footer-brand span {
        font-size: .84rem;
        line-height: 1.28;
    }

    .landing-footer-links span {
        min-height: 32px;
        font-size: .86rem;
        padding: 0 1.25rem;
    }
}

@media (min-width: 1201px) and (max-height: 920px) {
    .landing-navbar {
        flex-basis: 78px;
        height: 78px;
        padding: .55rem 0 .25rem;
    }

    .landing-brand {
        width: 185px;
    }

    .landing-title {
        font-size: clamp(3.55rem, 4vw, 4.45rem);
        margin-bottom: .78rem;
    }

    .landing-eyebrow {
        margin-bottom: .7rem;
    }

    .landing-lead,
    .landing-lead-sub {
        font-size: .98rem;
        line-height: 1.35;
        margin-bottom: .48rem;
    }

    .landing-feature-grid {
        margin-top: .85rem;
    }

    .landing-feature-card {
        min-height: 74px;
        padding: .72rem .85rem;
    }

    .landing-machines-wrap {
        bottom: 1.15rem;
        width: min(104%, 1060px);
        height: clamp(218px, 27vh, 285px);
    }

    .landing-side-stack {
        margin-top: .35rem;
    }

    .login-card {
        padding: clamp(1.45rem, 2vh, 1.85rem);
    }

    .help-card {
        margin-top: .65rem;
        padding: .85rem 1.15rem;
    }
}

@media (min-width: 1201px) and (max-height: 820px) {
    .landing-navbar {
        flex-basis: 68px;
        height: 68px;
    }

    .landing-brand {
        width: 160px;
    }

    .landing-copy-panel {
        padding-top: .8rem;
    }

    .landing-title {
        font-size: clamp(3.1rem, 3.55vw, 3.9rem);
    }

    .landing-machines-wrap {
        bottom: 1.35rem;
        width: min(98%, 980px);
        height: clamp(170px, 23vh, 220px);
    }

    .landing-footer {
        flex-basis: 58px;
        height: 58px;
    }
}

/* ============ REGISTER ============ */
.register-body { background: var(--bg-soft); min-height: 100vh; }
.register-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.register-card .card-title {
    color: var(--poli-dark);
    font-weight: 800;
}

/* ============ DASHBOARD ============ */
.dashboard-body { background: var(--bg-soft); }
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border-soft);
    padding: 1.25rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid var(--border-soft); }
.sidebar-nav { display: flex; flex-direction: column; padding: 0.75rem 0; gap: 0.15rem; }
.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.65rem 1.25rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.sidebar-nav .nav-item:hover { background: #f3f4f6; color: var(--poli-dark); }
.sidebar-nav .nav-item.active {
    background: #fee2e2;
    color: var(--poli-red);
    border-left-color: var(--poli-red);
    font-weight: 600;
}
.sidebar-nav .nav-item i { font-size: 1rem; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.content { padding: 1.75rem; flex: 1; }

.panel { border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.panel .card-title { font-weight: 700; color: var(--poli-dark); }

.kpi-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.kpi-card h3 { font-weight: 800; }
.kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.bg-primary-soft { background: #dbeafe; }
.bg-info-soft    { background: #cffafe; }
.bg-danger-soft  { background: #fee2e2; }
.bg-success-soft { background: #dcfce7; }

.table-pedidos thead th {
    background: #f9fafb;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 2px solid var(--border-soft);
}
.table-pedidos tbody td { font-size: 0.92rem; }

.badge-status {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-status.no-prazo { background: #dcfce7; color: #166534; }
.badge-status.atrasado { background: #fee2e2; color: #991b1b; }
.badge-status.atencao  { background: #fef3c7; color: #92400e; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .landing-main { padding: 2rem 1rem; }
}

/* ============================================================
   SUPPLIER PORTAL v2 — Design System Premium
   Polimáquinas · Portal do Fornecedor
   Identidade: #D90429 (vermelho) / #111827 (grafite) / #F5F7FA (fundo)
   ============================================================ */

/* Refinamento final da landing: foco em zoom 100%, logo visível e composição mais equilibrada */
.landing-brand {
    width: clamp(178px, 14vw, 238px);
    height: 66px;
}

.landing-brand img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
    filter: none;
}

.landing-footer-brand img {
    width: 132px;
    max-height: 34px;
}

@media (min-width: 1201px) {
    .landing-body {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .landing-navbar {
        flex: 0 0 clamp(76px, 8.2vh, 94px);
        height: clamp(76px, 8.2vh, 94px);
        padding: .7rem 0 .35rem;
    }

    .landing-main {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .landing-stage {
        height: 100%;
        min-height: 0;
        max-width: 1680px;
        grid-template-columns: minmax(720px, 900px) minmax(520px, 610px);
        gap: clamp(3.4rem, 4.4vw, 5.4rem);
        align-items: stretch;
    }

    .landing-copy-panel {
        height: 100%;
        min-height: 0;
        max-height: none;
        padding-top: clamp(1.25rem, 2.2vh, 2.2rem);
        padding-left: clamp(.8rem, 1.5vw, 1.8rem);
    }

    .landing-eyebrow {
        margin-bottom: clamp(.75rem, 1.2vh, 1rem);
    }

    .landing-title {
        max-width: 680px;
        margin-bottom: clamp(.8rem, 1.4vh, 1.15rem);
        font-size: clamp(4.15rem, 4.65vw, 5.35rem);
        line-height: .94;
    }

    .landing-lead,
    .landing-lead-sub {
        max-width: 680px;
        font-size: clamp(1rem, 1.04vw, 1.18rem);
        line-height: 1.42;
        margin-bottom: .45rem;
    }

    .landing-feature-grid {
        width: min(100%, 820px);
        max-width: 820px;
        margin-top: clamp(.95rem, 1.7vh, 1.35rem);
        gap: .75rem;
        z-index: 12;
    }

    .landing-feature-card {
        min-height: clamp(78px, 8.7vh, 94px);
        padding: clamp(.78rem, 1.25vh, .98rem) clamp(.9rem, 1.2vw, 1.05rem);
    }

    .landing-feature-icon {
        width: clamp(40px, 4.4vh, 48px);
        height: clamp(40px, 4.4vh, 48px);
        font-size: clamp(1.2rem, 1.45vw, 1.45rem);
    }

    .landing-machines-wrap {
        left: calc(50% - 1.55rem);
        bottom: clamp(.02rem, .55vh, .58rem);
        width: min(168%, 1840px);
        height: clamp(500px, 54vh, 690px);
        z-index: 3;
        -webkit-mask-image: radial-gradient(ellipse at 50% 61%, #000 0 60%, rgba(0,0,0,.9) 70%, rgba(0,0,0,.5) 80%, transparent 92%);
        mask-image: radial-gradient(ellipse at 50% 61%, #000 0 60%, rgba(0,0,0,.9) 70%, rgba(0,0,0,.5) 80%, transparent 92%);
    }

    .landing-machines-wrap .landing-machines-image {
        width: min(100%, 1840px);
        max-height: 100%;
        filter: drop-shadow(0 22px 22px rgba(17,24,39,.10));
    }

    .landing-side-stack {
        width: min(100%, 590px);
        max-width: 590px;
        margin-top: clamp(.25rem, 1vh, .85rem);
        align-self: start;
    }

    .login-card {
        padding: clamp(1.35rem, 2vh, 1.9rem);
        border-radius: 8px;
    }

    .login-title {
        margin-bottom: .55rem;
        font-size: clamp(2rem, 2.35vw, 2.45rem);
        line-height: 1.02;
    }

    .login-sub {
        margin-bottom: clamp(.85rem, 1.5vh, 1.15rem);
        font-size: .96rem;
    }

    .login-card .alert {
        margin-bottom: .85rem;
        padding: .55rem .8rem;
        font-size: .9rem;
    }

    .login-card .mb-3 {
        margin-bottom: clamp(.65rem, 1.1vh, .9rem) !important;
    }

    .login-card .form-label {
        margin-bottom: .35rem;
        font-size: .9rem;
    }

    .landing-input-group .form-control,
    .landing-input-group .input-group-text,
    .landing-password-btn {
        min-height: 48px;
    }

    .landing-form-row {
        margin: .15rem 0 .95rem;
    }

    .btn-entrar {
        min-height: 54px;
        font-size: 1.08rem;
    }

    .divider-or {
        margin: .75rem 0 .65rem;
    }

    .landing-register-btn {
        min-height: 48px;
        font-size: .98rem;
    }

    .help-card {
        margin-top: .65rem;
        padding: .9rem 1.15rem;
        gap: .9rem;
    }

    .help-icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .help-card h3 {
        font-size: 1rem;
    }

    .help-card p {
        margin-bottom: .4rem;
        font-size: .9rem;
    }

    .help-card a,
    .help-card span {
        margin-top: .25rem;
        font-size: .88rem;
    }

    .landing-footer {
        flex: 0 0 62px;
        height: 62px;
        padding: .42rem 0;
    }
}

@media (min-width: 1201px) and (max-height: 920px) {
    .landing-navbar {
        flex-basis: 72px;
        height: 72px;
        padding-top: .45rem;
    }

    .landing-brand {
        width: 168px;
        height: 56px;
    }

    .landing-copy-panel {
        padding-top: .75rem;
    }

    .landing-title {
        font-size: clamp(3.35rem, 3.95vw, 4.3rem);
    }

    .landing-lead,
    .landing-lead-sub {
        font-size: .96rem;
        line-height: 1.33;
    }

    .landing-feature-grid {
        margin-top: .78rem;
    }

    .landing-machines-wrap {
        bottom: .58rem;
        width: min(158%, 1650px);
        height: clamp(390px, 46vh, 515px);
    }

    .landing-side-stack {
        width: min(100%, 570px);
    }

    .login-card {
        padding: 1.35rem 1.55rem;
    }

    .help-card {
        padding: .78rem 1rem;
    }
}

@media (min-width: 1201px) and (max-height: 820px) {
    .landing-navbar {
        flex-basis: 62px;
        height: 62px;
    }

    .landing-brand {
        width: 148px;
        height: 48px;
    }

    .landing-title {
        font-size: clamp(2.95rem, 3.55vw, 3.75rem);
    }

    .landing-feature-card {
        min-height: 68px;
    }

    .landing-machines-wrap {
        bottom: .72rem;
        width: min(146%, 1420px);
        height: clamp(300px, 38vh, 370px);
    }

    .landing-footer {
        flex-basis: 56px;
        height: 56px;
    }
}

/* Integra hero-machines.png ao fundo sem bordas aparentes. */
.landing-machines-wrap {
    isolation: isolate;
    -webkit-mask-image: radial-gradient(ellipse 76% 72% at 50% 66%,
        #000 0%,
        #000 42%,
        rgba(0,0,0,.78) 57%,
        rgba(0,0,0,.34) 72%,
        rgba(0,0,0,.08) 86%,
        transparent 100%);
    mask-image: radial-gradient(ellipse 76% 72% at 50% 66%,
        #000 0%,
        #000 42%,
        rgba(0,0,0,.78) 57%,
        rgba(0,0,0,.34) 72%,
        rgba(0,0,0,.08) 86%,
        transparent 100%);
}

.landing-machines-wrap::before {
    content: "";
    position: absolute;
    inset: -2px -3.5% 0;
    z-index: 5;
    pointer-events: none;
    background:
        radial-gradient(ellipse 94% 76% at 50% 67%,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0) 48%,
            rgba(255,255,255,.28) 64%,
            rgba(255,255,255,.78) 84%,
            #fff 100%),
        linear-gradient(180deg,
            #fff 0%,
            rgba(255,255,255,.99) 8%,
            rgba(255,255,255,.9) 18%,
            rgba(255,255,255,.46) 31%,
            rgba(255,255,255,0) 46%),
        linear-gradient(90deg,
            #fff 0%,
            rgba(255,255,255,1) 8%,
            rgba(255,255,255,.9) 16%,
            rgba(255,255,255,.58) 26%,
            rgba(255,255,255,.22) 36%,
            rgba(255,255,255,0) 46%,
            rgba(255,255,255,0) 54%,
            rgba(255,255,255,.22) 64%,
            rgba(255,255,255,.58) 74%,
            rgba(255,255,255,.9) 84%,
            rgba(255,255,255,1) 92%,
            #fff 100%);
}

.landing-machines-wrap::after {
    content: "";
    position: absolute;
    left: -3.5%;
    right: -3.5%;
    bottom: -2px;
    z-index: 6;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(0deg,
        #fff 0%,
        rgba(255,255,255,.88) 18%,
        rgba(255,255,255,.42) 54%,
        rgba(255,255,255,0) 100%);
}

.landing-machines-wrap .landing-machines-image {
    mix-blend-mode: normal;
    filter: brightness(1.035) contrast(1.025) saturate(1.02) drop-shadow(0 20px 20px rgba(17,24,39,.08));
    -webkit-mask-image:
        linear-gradient(90deg,
            transparent 0%,
            rgba(0,0,0,.10) 7%,
            rgba(0,0,0,.34) 16%,
            rgba(0,0,0,.72) 27%,
            #000 38%,
            #000 62%,
            rgba(0,0,0,.72) 73%,
            rgba(0,0,0,.34) 84%,
            rgba(0,0,0,.10) 93%,
            transparent 100%),
        linear-gradient(180deg,
            transparent 0%,
            rgba(0,0,0,.24) 7%,
            rgba(0,0,0,.78) 17%,
            #000 30%,
            #000 84%,
            rgba(0,0,0,.66) 93%,
            transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg,
            transparent 0%,
            rgba(0,0,0,.10) 7%,
            rgba(0,0,0,.34) 16%,
            rgba(0,0,0,.72) 27%,
            #000 38%,
            #000 62%,
            rgba(0,0,0,.72) 73%,
            rgba(0,0,0,.34) 84%,
            rgba(0,0,0,.10) 93%,
            transparent 100%),
        linear-gradient(180deg,
            transparent 0%,
            rgba(0,0,0,.24) 7%,
            rgba(0,0,0,.78) 17%,
            #000 30%,
            #000 84%,
            rgba(0,0,0,.66) 93%,
            transparent 100%);
    mask-composite: intersect;
}

/* ── Variáveis do sistema ─────────────────────────────────── */
:root {
    --red:          #D90429;
    --red-dark:     #B00324;
    --red-glow:     rgba(217, 4, 41, .18);
    --graphite:     #111827;
    --bg:           #F5F7FA;
    --bg-card:      #FFFFFF;
    --border:       #E5E7EB;
    --border-soft:  #F3F4F6;
    --text-1:       #111827;
    --text-2:       #374151;
    --text-3:       #6B7280;
    --text-muted:   #9CA3AF;
    --success:      #16A34A;
    --warning:      #D97706;
    --danger:       #DC2626;
    --orange:       #EA580C;
}

/* ── Body / Layout ───────────────────────────────────────── */
.sp-body {
    background: var(--bg);
    min-height: 100vh;
    color: var(--text-1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sp-layout {
    display: flex;
    min-height: 100vh;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sp-sidebar {
    width: 272px;
    background: linear-gradient(175deg, #0f1117 0%, #151b26 60%, #0d1018 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 32px rgba(0,0,0,.35);
    border-right: 1px solid rgba(217,4,41,.12);
}

.sp-sidebar::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 272px;
    height: 100vh;
    background: radial-gradient(ellipse at 40% 0%, rgba(217,4,41,.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Brand */
.sp-brand {
    padding: 1.8rem 1.5rem 1.45rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    z-index: 1;
    background: linear-gradient(150deg, rgba(217,4,41,.05) 0%, transparent 70%);
}

.sp-brand-shell {
    display: flex;
    align-items: center;
}

.sp-brand-img {
    display: block;
    width: 208px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.28));
}

/* Navigation */
.sp-nav {
    padding: 1.2rem 0 .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.sp-nav-group-title {
    font-size: .62rem;
    font-weight: 800;
    color: rgba(255,255,255,.26);
    text-transform: uppercase;
    letter-spacing: 1.9px;
    padding: 0 1.5rem;
    margin: .15rem 0 .65rem;
}

.sp-nav-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .88rem 1.4rem;
    margin: .1rem .8rem;
    border-radius: 13px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: all .18s ease;
    position: relative;
    overflow: hidden;
}

.sp-nav-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: #D90429;
    border-radius: 0 3px 3px 0;
    transition: width .18s ease;
}

.sp-nav-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    text-decoration: none;
}

.sp-nav-item:hover i { color: rgba(255,255,255,.9); }

.sp-nav-item.sp-active {
    background: linear-gradient(90deg, rgba(217,4,41,.2) 0%, rgba(217,4,41,.06) 100%);
    color: #fff;
    font-weight: 700;
}

.sp-nav-item.sp-active::before { width: 3px; }

.sp-nav-item.sp-active i {
    color: #D90429;
    filter: drop-shadow(0 0 6px rgba(217,4,41,.5));
}

.sp-nav-item i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    color: rgba(255,255,255,.5);
    transition: color .18s ease;
    flex-shrink: 0;
}

.sp-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.07);
    margin: .7rem 1.5rem;
}

/* Sidebar footer */
.sp-sidebar-footer {
    padding: 1rem 1.1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,.07);
    position: relative;
    z-index: 1;
}

.sp-user-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    padding: .85rem 1rem;
    transition: background .18s ease;
}

.sp-user-card:hover { background: rgba(255,255,255,.08); }

.sp-user-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(217,4,41,.2) 0%, rgba(217,4,41,.08) 100%);
    border: 1px solid rgba(217,4,41,.25);
    color: #D90429;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sp-user-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    min-width: 0;
    flex: 1;
}

.sp-user-info i { font-size: 1.2rem; flex-shrink: 0; }
.sp-user-name { color: #fff; font-weight: 700; font-size: .87rem; line-height: 1.2; }
.sp-user-role {
    font-size: .7rem;
    color: rgba(255,255,255,.36);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .06rem;
}

.sp-user-action {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.06);
    text-decoration: none;
    font-size: .9rem;
    transition: all .18s ease;
}

.sp-user-action:hover {
    color: #fff;
    background: rgba(217,4,41,.35);
}

/* ── MAIN AREA ────────────────────────────────────────────── */
.sp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.sp-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 1rem;
}

.sp-topbar-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.sp-topbar-eyebrow {
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.sp-topbar-eyebrow::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.sp-page-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.55px;
    color: var(--graphite);
    margin: 0;
    line-height: 1.1;
}

.sp-page-sub {
    font-size: .85rem;
    color: var(--text-3);
    display: block;
    margin-top: .1rem;
}

.sp-content { padding: 1.75rem 2rem 2.5rem; flex: 1; }

/* ── ERP CARD ─────────────────────────────────────────────── */
.erp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
}

.erp-card-body { padding: 1.25rem 1.5rem; }

.erp-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-1);
}

/* ── Índice do fornecedor ────────────────────────────────── */
.supplier-index-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.supplier-index-title {
    width: 100%;
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
}

.supplier-index-title i {
    color: var(--red);
}

.supplier-index {
    --supplier-index-color: #16a34a;
    --supplier-index-soft: #dcfce7;
    --supplier-index-ink: #166534;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.supplier-index[data-state="clear"],
.supplier-index[data-state="excellent"] {
    --supplier-index-color: #16a34a;
    --supplier-index-soft: #dcfce7;
    --supplier-index-ink: #166534;
}

.supplier-index[data-state="very-good"] {
    --supplier-index-color: #22c55e;
    --supplier-index-soft: #e8fbd9;
    --supplier-index-ink: #166534;
}

.supplier-index[data-state="attention"] {
    --supplier-index-color: #eab308;
    --supplier-index-soft: #fef9c3;
    --supplier-index-ink: #854d0e;
}

.supplier-index[data-state="regular"] {
    --supplier-index-color: #f59e0b;
    --supplier-index-soft: #ffedd5;
    --supplier-index-ink: #9a3412;
}

.supplier-index[data-state="bad"] {
    --supplier-index-color: #f97316;
    --supplier-index-soft: #ffddcc;
    --supplier-index-ink: #9a3412;
}

.supplier-index[data-state="critical"] {
    --supplier-index-color: #dc2626;
    --supplier-index-soft: #fee2e2;
    --supplier-index-ink: #991b1b;
}

.supplier-index-main {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
}

.supplier-index-meter {
    position: relative;
    width: 138px;
    height: 138px;
    margin: 0 auto;
    flex: 0 0 auto;
}

.supplier-index-ring {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.supplier-index-ring-track,
.supplier-index-ring-progress {
    fill: none;
    stroke-width: 12;
}

.supplier-index-ring-track {
    stroke: #eef0f3;
}

.supplier-index-ring-progress {
    stroke: var(--supplier-index-color);
    stroke-linecap: butt;
    transition: stroke-dashoffset .55s cubic-bezier(.22, .61, .36, 1), stroke .35s ease;
}

.supplier-index-face-wrap {
    position: absolute;
    inset: 27px;
    display: grid;
    place-items: center;
}

.supplier-index-face {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.supplier-index-face-bg {
    fill: var(--supplier-index-soft);
    stroke: var(--supplier-index-color);
    stroke-width: 1.6;
    opacity: .96;
    transition: fill .35s ease, stroke .35s ease;
}

.supplier-index-face-eye,
.supplier-index-face-brow,
.supplier-index-face-mouth {
    fill: none;
    stroke: var(--supplier-index-ink);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .35s ease;
}

.supplier-index-face-brow {
    stroke-width: 4.5;
}

.supplier-index-face-mouth {
    stroke-width: 7.5;
}

.supplier-index-cheek {
    fill: var(--supplier-index-color);
    opacity: 0;
    transition: opacity .25s ease, fill .35s ease;
}

.supplier-index[data-face="very-happy"] .supplier-index-cheek,
.supplier-index[data-face="happy"] .supplier-index-cheek {
    opacity: .18;
}

.supplier-index-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.supplier-index-score {
    color: var(--supplier-index-color);
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .95;
    transition: color .35s ease;
}

.supplier-index-label {
    margin-top: .42rem;
    color: var(--supplier-index-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.05;
    transition: color .35s ease;
}

.supplier-index-message {
    max-width: 190px;
    min-height: 2.1rem;
    margin: .75rem 0 0;
    color: var(--text-2);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.38;
}

.supplier-index-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .72rem;
    margin-top: .72rem;
    color: var(--text-2);
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.2;
}

.supplier-index-stat {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.supplier-index-stat::before {
    width: 8px;
    height: 8px;
    margin-right: .42rem;
    border-radius: 50%;
    content: '';
    flex: 0 0 auto;
}

.supplier-index-stat--ontime::before {
    background: #16a34a;
}

.supplier-index-stat--overdue::before {
    background: #ef4444;
}

.supplier-index-stat-separator {
    color: #98a2b3;
}

@keyframes supplier-index-refresh {
    0% { opacity: .5; transform: translateY(3px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.supplier-index-updated .supplier-index-face-wrap,
.supplier-index-updated .supplier-index-copy,
.supplier-index-updated .supplier-index-stats {
    animation: supplier-index-refresh .48s ease-out;
}

@media (min-width: 992px) and (max-width: 1280px) {
    .supplier-index-main {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: .65rem;
    }

    .supplier-index-meter {
        width: 108px;
        height: 108px;
    }

    .supplier-index-face-wrap {
        inset: 22px;
    }

    .supplier-index-score {
        font-size: 2rem;
    }

    .supplier-index-label {
        font-size: .9rem;
    }

    .supplier-index-message {
        margin-top: .55rem;
        font-size: .68rem;
    }

    .supplier-index-stats {
        gap: .38rem;
        font-size: .65rem;
    }

    .supplier-index-stat::before {
        width: 6px;
        height: 6px;
        margin-right: .3rem;
    }
}

@media (max-width: 575px) {
    .supplier-index-main {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: .75rem;
    }

    .supplier-index-meter {
        width: 114px;
        height: 114px;
    }

    .supplier-index-face-wrap {
        inset: 23px;
    }

    .supplier-index-score {
        font-size: 2.05rem;
    }

    .supplier-index-message {
        max-width: 175px;
        margin-top: .55rem;
        font-size: .7rem;
    }

    .supplier-index-stats {
        gap: .45rem;
        font-size: .68rem;
    }
}

@media (max-width: 380px) {
    .supplier-index-main {
        grid-template-columns: 1fr;
    }

    .supplier-index-copy {
        align-items: center;
        text-align: center;
    }

    .supplier-index-stats {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .supplier-index-ring-progress,
    .supplier-index-face-bg,
    .supplier-index-face-eye,
    .supplier-index-face-brow,
    .supplier-index-face-mouth,
    .supplier-index-cheek {
        transition: none;
    }

    .supplier-index-updated .supplier-index-face-wrap,
    .supplier-index-updated .supplier-index-copy,
    .supplier-index-updated .supplier-index-stats {
        animation: none;
    }
}

.erp-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}

/* ── KPI CARDS ────────────────────────────────────────────── */
.kpi-new {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.45rem 1.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: default;
    overflow: hidden;
    position: relative;
}

.kpi-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.kpi-icon-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.kpi-new.kpi-blue   .kpi-icon-wrap { background: rgba(217,4,41,.08);  color: #D90429; }
.kpi-new.kpi-orange .kpi-icon-wrap { background: rgba(245,158,11,.1); color: #D97706; }
.kpi-new.kpi-red    .kpi-icon-wrap { background: rgba(239,68,68,.1);  color: #EF4444; }

.kpi-body { flex: 1; min-width: 0; }

.kpi-num {
    font-size: 2.55rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: .25rem;
}

.kpi-new.kpi-blue   .kpi-num { color: #D90429; }
.kpi-new.kpi-orange .kpi-num { color: #D97706; }
.kpi-new.kpi-red    .kpi-num { color: #DC2626; }

.kpi-lbl {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: .2rem;
}

.kpi-hint { font-size: .82rem; color: var(--text-muted); }

/* ── ERP TABLE ────────────────────────────────────────────── */
.erp-table { font-size: .875rem; margin: 0; }

.erp-table thead th {
    background: #FAFAFA;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #9CA3AF;
    border-bottom: 1px solid var(--border);
    padding: .9rem 1.1rem;
    white-space: nowrap;
}

.erp-table tbody td {
    padding: .88rem 1.1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F9FAFB;
    color: var(--text-2);
}

.erp-table tbody tr:last-child td { border-bottom: none; }
.erp-table tbody tr:nth-child(even) { background: rgba(249,250,251,.7); }

/* Linhas clicáveis */
.erp-table tbody tr.clickable-row { cursor: pointer; }
.erp-table tbody tr.clickable-row:hover              { background: #FFF5F5 !important; transition: background .12s ease; }
.erp-table tbody tr.clickable-row.tr-delayed:hover   { background: #FEE2E2 !important; }
.erp-table tbody tr.clickable-row.tr-atencao:hover   { background: #FEF9EC !important; }

.erp-table tbody tr.tr-delayed { background: rgba(255,249,249,.9); }
.erp-table tbody tr.tr-atencao { background: rgba(255,253,244,.9); }

/* Campos de texto na tabela */
.td-date   { font-size: .84rem; white-space: nowrap; color: var(--text-3); }
.td-produto {
    font-weight: 500;
    color: var(--text-1);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-pedido { font-weight: 700; font-size: .9rem; }
.btn-pedido-link {
    background: none; border: none; padding: 0;
    color: var(--red); font-weight: 700; font-size: .9rem;
    cursor: pointer; text-decoration: none;
    transition: color .15s;
}
.btn-pedido-link:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }

.td-fornecedor { max-width: 180px; }
.fornec-cod  { font-weight: 700; font-size: .78rem; color: var(--text-2); }
.fornec-nome {
    font-size: .74rem; color: var(--text-3);
    display: block; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}

.text-warning-dark { color: #b45309; }

/* po-number */
.po-number {
    font-weight: 700;
    color: var(--red);
    font-size: .9rem;
}

/* ── STATUS BADGES ────────────────────────────────────────── */
.erp-badge,
.badge-sup {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .27rem .72rem;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.erp-badge::before,
.badge-sup::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
    flex-shrink: 0;
}

/* Prazo badges */
.erp-badge.no-prazo { background: #DCFCE7; color: #16A34A; border-color: rgba(22,163,74,.15); }
.erp-badge.atrasado { background: #FEE2E2; color: #DC2626; border-color: rgba(220,38,38,.15); }
.erp-badge.atencao  { background: #FEF3C7; color: #D97706; border-color: rgba(217,119,6,.15); }

/* Resposta do fornecedor */
.badge-sup-pending   { background: #F3F4F6; color: #6B7280; border-color: rgba(107,114,128,.2); }
.badge-sup-viewed    { background: #FEF3C7; color: #D97706; border-color: rgba(217,119,6,.2); }
.badge-sup-confirmed { background: #DCFCE7; color: #16A34A; border-color: rgba(22,163,74,.2); }
.badge-sup-rejected  { background: #FEE2E2; color: #DC2626; border-color: rgba(220,38,38,.2); }
.badge-sup-partial   { background: #FED7AA; color: #EA580C; border-color: rgba(234,88,12,.2); }

/* Dias de atraso */
.badge-atraso {
    display: inline-flex;
    align-items: center;
    padding: .27rem .7rem;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 700;
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid rgba(220,38,38,.18);
    white-space: nowrap;
}

/* ── MODAIS ───────────────────────────────────────────────── */
.modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
}

/* itemsModal: header escuro premium */
#itemsModal .modal-header {
    background: linear-gradient(135deg, #111827 0%, #1a2235 100%);
    border-bottom: 1px solid rgba(217,4,41,.2);
    padding: 1.65rem 2rem 1.3rem;
}

#itemsModal .modal-title { color: #fff; }
#itemsModal .btn-close { filter: invert(1) brightness(1.2); opacity: .65; }
#itemsModal .btn-close:hover { opacity: 1; }

#itemsModal .modal-footer {
    background: #FAFAFA;
    border-top: 1px solid var(--border-soft);
    padding: 1rem 1.5rem;
}

/* Info cards dentro do header escuro */
#itemsModal .modal-info-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: .7rem 1rem;
}

#itemsModal .mic-label {
    font-size: .61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .75px;
    color: rgba(255,255,255,.42);
    margin-bottom: .18rem;
}

#itemsModal .mic-val {
    font-size: .84rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

/* Modal info cards (fora de header escuro) */
.modal-info-card {
    background: #F8FAFC;
    border: 1px solid #E4EDF9;
    border-radius: 12px;
    padding: .7rem 1rem;
}

.mic-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #9CA3AF;
    margin-bottom: .2rem;
}

.mic-val {
    font-size: .86rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    word-break: break-word;
}

/* Modal info box */
.modal-info-box {
    background: #F8FAFC;
    border: 1px solid #E4EDF9;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.mib-label {
    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .55px;
    color: #9CA3AF;
    margin-bottom: .2rem;
}

.mib-val {
    font-size: .87rem;
    font-weight: 600;
    color: #111827;
}

/* Tabela de itens no modal */
.items-table { width: 100%; }

.items-table thead th {
    background: #F9FAFB;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #9CA3AF;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.items-table tbody td {
    font-size: .83rem;
    vertical-align: middle;
    padding: .8rem 1rem;
    border-bottom: 1px solid #F9FAFB;
    color: var(--text-2);
}

.items-table tbody tr:last-child td { border-bottom: none; }
.items-table tbody tr:hover { background: #FAFAFA; }
.items-table tbody tr.tr-delayed { background: #FFF8F8; }

/* Detalhe de resposta */
.resp-detail {
    font-size: .69rem;
    color: var(--text-3);
    margin-top: .2rem;
    line-height: 1.3;
}

/* ── BOTÕES ───────────────────────────────────────────────── */
.btn-xs {
    padding: .24rem .6rem;
    font-size: .75rem;
    border-radius: 7px;
    line-height: 1.5;
    font-weight: 600;
}

.btn-note {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-3);
    padding: .34rem .54rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1;
    transition: all .15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.btn-note:hover { background: #FFF5F5; border-color: rgba(217,4,41,.3); color: var(--red); }
.btn-note-ok    { border-color: rgba(22,163,74,.3); color: #16A34A; background: #F0FDF4; }
.btn-note-ok:hover { background: #DCFCE7; }

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .sp-sidebar { width: 240px; }
    .sp-sidebar::after { width: 240px; }
}

@media (max-width: 768px) {
    .sp-sidebar { display: none; }
    .sp-content { padding: 1rem 1rem 2rem; }
    .sp-topbar {
        padding: .9rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
    .sp-page-title { font-size: 1.45rem; }
    .sp-page-sub { font-size: .84rem; }
    .kpi-num { font-size: 2.1rem; }
}

/* ── POLLING / LIVE UPDATE ────────────────────────────────────────── */

/* Linha da tabela: flash vermelho suave ao atualizar */
@keyframes row-flash {
    0%   { background-color: rgba(217, 4, 41, .07); }
    100% { background-color: transparent; }
}

/* Badge: micro-bounce ao atualizar */
@keyframes badge-bounce {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.12); opacity: .85; }
}

/* KPI: fade-in ao atualizar */
@keyframes kpi-flash {
    0%   { opacity: .55; }
    100% { opacity: 1; }
}

.row-updated { animation: row-flash    .9s ease-out forwards; }
.badge-pulse { animation: badge-bounce .45s ease-out; }
.kpi-updated { animation: kpi-flash    .6s ease-out; }

/* Indicador "live" no cabeçalho */
.poll-live-dot {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    font-size: .68rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: middle;
    user-select: none;
}

.poll-live-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    animation: live-pulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.poll-live-dot.poll-error::before {
    background: #DC2626;
    animation: none;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
    60%       { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}


/* ══════════════════════════════════════════════════════════════════════════════
   ORDEM DE COMPRA MODAL — PREMIUM ENTERPRISE DESIGN
   ══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   MODAL ORDEM DE COMPRA — PREMIUM v2
   ═══════════════════════════════════════════════════════════════════════ */

/* -- Diálogo --------------------------------------------------------- */
.oc-dialog { max-width: 1380px !important; width: 96vw !important; }

/* -- Container ------------------------------------------------------- */
.oc-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
}

/* -- HEADER PREMIUM -------------------------------------------------- */
.oc-header {
    background: linear-gradient(135deg, #080a0e 0%, #150205 40%, #200408 70%, #080a0e 100%);
    position: relative;
    overflow: hidden;
}
.oc-header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(217,4,41,.14) 0%, rgba(217,4,41,.04) 50%, transparent 100%);
    pointer-events: none;
}
.oc-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(217,4,41,.5) 40%, rgba(217,4,41,.5) 60%, transparent 100%);
}
.oc-header-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
}

/* Logo */
.oc-header-logo {
    padding-right: 2.5rem;
    border-right: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center;
}
.oc-logo-img {
    height: 48px; width: auto; object-fit: contain;
    filter: brightness(0) invert(1); opacity: .92;
}
.oc-logo-fallback {
    display: none; flex-direction: column; gap: .22rem;
}
.oc-logo-text {
    font-size: .68rem; font-weight: 900; letter-spacing: .22em;
    color: #fff; text-transform: uppercase;
}
.oc-logo-sub { font-size: .56rem; color: rgba(255,255,255,.28); letter-spacing: .08em; }

/* Centro */
.oc-header-center { text-align: center; }
.oc-header-eyebrow {
    font-size: .54rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(217,4,41,.8); margin-bottom: .4rem;
    display: flex; align-items: center; justify-content: center; gap: .45rem;
}
.oc-header-eyebrow::before,
.oc-header-eyebrow::after {
    content: ''; display: inline-block; width: 18px; height: 1px;
    background: var(--red); opacity: .5;
}
.oc-order-num {
    font-size: 2.4rem; font-weight: 800; color: #fff;
    letter-spacing: -.03em; line-height: 1;
}

/* Direita */
.oc-header-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,.07);
}
.oc-close-btn {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.5); width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; font-size: .9rem; padding: 0;
}
.oc-close-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* -- Status badges --------------------------------------------------- */
.badge-sup {
    font-size: .65rem; font-weight: 700; letter-spacing: .06em;
    padding: .35rem .9rem; border-radius: 50px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.badge-sup::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-sup-pending   { background: rgba(217,4,41,.12); color: #ff7070; border: 1px solid rgba(217,4,41,.25); }
.badge-sup-viewed    { background: rgba(59,130,246,.1); color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }
.badge-sup-confirmed { background: rgba(22,163,74,.1); color: #4ade80; border: 1px solid rgba(22,163,74,.2); }
.badge-sup-rejected  { background: rgba(220,38,38,.1); color: #f87171; border: 1px solid rgba(220,38,38,.2); }
.badge-sup-partial   { background: rgba(234,88,12,.1); color: #fb923c; border: 1px solid rgba(234,88,12,.2); }

/* -- Info strip (4 campos) ------------------------------------------ */
.oc-info-strip {
    display: flex; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.oc-info-item {
    flex: 1; padding: 1.1rem 1.5rem;
    display: flex; flex-direction: column; gap: .3rem; min-width: 0;
}
.oc-info-item--total { flex: 0 0 auto; min-width: 170px; }
.oc-info-sep { width: 1px; background: var(--border); margin: .8rem 0; flex-shrink: 0; }
.oc-info-label {
    font-size: .54rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); display: flex; align-items: center; gap: .3rem;
}
.oc-info-label i { color: var(--red); opacity: .7; font-size: .6rem; }
.oc-info-val {
    font-size: .88rem; font-weight: 600; color: var(--text-1);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Necessidade badge */
.oc-need-badge { font-size: .85rem; font-weight: 700; color: var(--text-1); }
.oc-need-urgent {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--danger); background: rgba(220,38,38,.07);
    padding: .15rem .6rem; border-radius: 6px; border: 1px solid rgba(220,38,38,.18);
    font-size: .82rem;
}
.oc-need-warn {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--warning); background: rgba(217,119,6,.07);
    padding: .15rem .6rem; border-radius: 6px; border: 1px solid rgba(217,119,6,.18);
    font-size: .82rem;
}

/* Total */
.oc-total-val {
    font-size: 1.35rem; font-weight: 800; color: var(--red);
    letter-spacing: -.02em; white-space: nowrap;
}

/* -- Mensagem contextual -------------------------------------------- */
.oc-context-msg {
    padding: .7rem 1.75rem; font-size: .8rem;
    color: var(--text-3); display: flex; align-items: center; gap: .6rem;
    border-bottom: 1px solid var(--border);
}
.oc-context-msg i { font-size: .9rem; flex-shrink: 0; }
.oc-context-msg strong { color: var(--text-2); }
.oc-context-msg.ctx-warn   { background: rgba(217,4,41,.03); }
.oc-context-msg.ctx-warn   i { color: var(--red); }
.oc-context-msg.ctx-info   { background: rgba(59,130,246,.03); }
.oc-context-msg.ctx-info   i { color: #3b82f6; }
.oc-context-msg.ctx-ok     { background: rgba(22,163,74,.03); }
.oc-context-msg.ctx-ok     i { color: #16a34a; }
.oc-context-msg.ctx-danger { background: rgba(220,38,38,.03); }
.oc-context-msg.ctx-danger i { color: var(--danger); }

/* -- Section header ------------------------------------------------- */
.oc-section-hdr {
    padding: .6rem 1.75rem; background: var(--graphite);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.oc-section-hdr-title {
    font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.45); display: flex; align-items: center; gap: .4rem;
}
.oc-section-hdr-title i { color: var(--red); font-size: .7rem; }
.oc-section-hdr-count {
    font-size: .6rem; font-weight: 600; color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
    padding: .15rem .5rem; border-radius: 20px;
}

/* -- Items table ---------------------------------------------------- */
.oc-table-wrap { max-height: 300px; overflow-y: auto; }
.oc-table-wrap::-webkit-scrollbar { width: 4px; }
.oc-table-wrap::-webkit-scrollbar-track { background: #f9fafb; }
.oc-table-wrap::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.oc-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.oc-table thead th {
    background: #f9fafb; color: var(--text-muted);
    font-size: .56rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    padding: .55rem 1rem; border-bottom: 1px solid var(--border);
    white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.oc-table tbody td { padding: .75rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.oc-table tbody tr { transition: background .12s; }
.oc-table tbody tr:hover { background: #fafafa; }
.oc-table tbody tr:last-child td { border-bottom: none; }
.oc-table tbody tr.tr-delayed td:first-child { border-left: 3px solid var(--red); padding-left: .8rem; }
.oc-item-num  { font-size: .7rem; font-weight: 700; color: rgba(217,4,41,.7); }
.oc-item-code { font-size: .7rem; color: var(--text-muted); }
.oc-item-prod { font-size: .82rem; font-weight: 600; color: var(--text-1); }
.oc-currency       { font-size: .82rem; font-weight: 700; color: var(--text-1); }
.oc-currency-total { font-size: .85rem; font-weight: 800; color: var(--red); }

/* -- Timeline (3 etapas — fundo branco) ----------------------------- */
.oc-timeline {
    padding: 1.25rem 2.5rem; background: var(--graphite);
    border-top: none;
    display: flex; align-items: center; justify-content: center; gap: 0;
}
.oc-tl-step {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    min-width: 110px; position: relative;
}
.oc-tl-icon-wrap {
    width: 44px; height: 44px; border-radius: 50%;
    background: #f3f4f6; border: 2px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #9ca3af; transition: all .35s ease;
}
.oc-tl-step.done   .oc-tl-icon-wrap { background: rgba(217,4,41,.13); border-color: rgba(217,4,41,.45); color: #ff7070; }
.oc-tl-step.active .oc-tl-icon-wrap {
    background: rgba(217,4,41,.18); border-color: var(--red); color: #fff;
    animation: oc-pulse 2s ease-in-out infinite;
}
@keyframes oc-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(217,4,41,.1), 0 0 16px rgba(217,4,41,.25); }
    50%       { box-shadow: 0 0 0 8px rgba(217,4,41,.06), 0 0 28px rgba(217,4,41,.35); }
}
.oc-tl-label {
    font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.22); transition: color .3s;
}
.oc-tl-step.done   .oc-tl-label,
.oc-tl-step.active .oc-tl-label { color: rgba(255,255,255,.7); }
.oc-tl-date {
    font-size: .6rem; color: rgba(255,255,255,.18); transition: color .3s;
    text-align: center; min-height: .9rem;
}
.oc-tl-step.done   .oc-tl-date  { color: rgba(255,255,255,.38); }
.oc-tl-step.active .oc-tl-date  { color: rgba(255,255,255,.5); }
.oc-tl-connector {
    flex: 1; height: 2px; background: rgba(255,255,255,.07);
    min-width: 40px; max-width: 110px; margin-bottom: 2.5rem;
    position: relative; overflow: hidden;
}
.oc-tl-connector::after {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0%;
    background: var(--red); transition: width .5s ease;
}
.oc-tl-connector.done::after { width: 100%; }

/* ─── Timeline: cores individuais por etapa (igual ao portal interno) ─────── */
/* CRIADO – vermelho */
#tl-criado.done   .oc-tl-icon-wrap,
#tl-criado.active .oc-tl-icon-wrap { background: var(--red); border-color: var(--red); color: #fff; }
#tl-criado.done   .oc-tl-label,
#tl-criado.active .oc-tl-label     { color: #ff7070; }

/* ENVIADO – azul */
#tl-enviado.done   .oc-tl-icon-wrap,
#tl-enviado.active .oc-tl-icon-wrap { background: #3b82f6; border-color: #3b82f6; color: #fff; }
#tl-enviado.done   .oc-tl-label,
#tl-enviado.active .oc-tl-label     { color: #60a5fa; }
#tl-enviado.active .oc-tl-icon-wrap { animation: oc-pulse-blue 2s ease-in-out infinite; }
@keyframes oc-pulse-blue {
    0%,100% { box-shadow: 0 0 0 4px rgba(59,130,246,.12), 0 0 16px rgba(59,130,246,.28); }
    50%      { box-shadow: 0 0 0 9px rgba(59,130,246,.06), 0 0 28px rgba(59,130,246,.38); }
}

/* VISUALIZADO – laranja */
#tl-visualizado.done   .oc-tl-icon-wrap,
#tl-visualizado.active .oc-tl-icon-wrap { background: #d97706; border-color: #d97706; color: #fff; }
#tl-visualizado.done   .oc-tl-label,
#tl-visualizado.active .oc-tl-label     { color: #fbbf24; }
#tl-visualizado.active .oc-tl-icon-wrap { animation: oc-pulse-orange 2s ease-in-out infinite; }
@keyframes oc-pulse-orange {
    0%,100% { box-shadow: 0 0 0 4px rgba(217,119,6,.12), 0 0 16px rgba(217,119,6,.28); }
    50%      { box-shadow: 0 0 0 9px rgba(217,119,6,.06), 0 0 28px rgba(217,119,6,.38); }
}

/* RESPONDIDO – verde */
#tl-respondido.done   .oc-tl-icon-wrap,
#tl-respondido.active .oc-tl-icon-wrap { background: #16a34a; border-color: #16a34a; color: #fff; }
#tl-respondido.done   .oc-tl-label,
#tl-respondido.active .oc-tl-label     { color: #4ade80; }
#tl-respondido.active .oc-tl-icon-wrap { animation: oc-pulse-green 2s ease-in-out infinite; }
@keyframes oc-pulse-green {
    0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,.12), 0 0 16px rgba(22,163,74,.28); }
    50%      { box-shadow: 0 0 0 9px rgba(22,163,74,.06), 0 0 28px rgba(22,163,74,.38); }
}

/* Conectores coloridos por trecho */
#tl-line-1.done::after { background: linear-gradient(90deg, var(--red), #3b82f6); }
#tl-line-2.done::after { background: linear-gradient(90deg, #3b82f6, #d97706); }
#tl-line-3.done::after { background: linear-gradient(90deg, #d97706, #16a34a); }

/* Datas das etapas */
#tl-criado.done    .oc-tl-date,
#tl-criado.active  .oc-tl-date   { color: rgba(255,255,255,.5); }
#tl-enviado.done   .oc-tl-date,
#tl-enviado.active .oc-tl-date   { color: rgba(59,130,246,.75); }
#tl-visualizado.done  .oc-tl-date,
#tl-visualizado.active .oc-tl-date { color: rgba(217,119,6,.85); }
#tl-respondido.done  .oc-tl-date,
#tl-respondido.active .oc-tl-date  { color: rgba(22,163,74,.85); }


/* -- Footer --------------------------------------------------------- */
.oc-footer {
    padding: 1rem 1.75rem; background: #fafafa;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.oc-footer-actions { display: flex; align-items: center; gap: .65rem; }
.oc-btn-ghost {
    color: var(--text-3); border: 1px solid var(--border); background: transparent;
    font-size: .8rem; font-weight: 600; padding: .55rem 1.2rem; border-radius: 8px;
    display: inline-flex; align-items: center; gap: .35rem;
    cursor: pointer; transition: all .2s;
}
.oc-btn-ghost:hover { background: #f3f4f6; color: var(--text-1); }
.oc-btn-reject-big {
    color: var(--danger); border: 1.5px solid rgba(220,38,38,.2); background: transparent;
    font-size: .8rem; font-weight: 700; padding: .55rem 1.25rem; border-radius: 8px;
    display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; transition: all .25s;
}
.oc-btn-reject-big:hover { background: rgba(220,38,38,.05); border-color: var(--danger); transform: translateY(-1px); }
.oc-btn-confirm-big {
    color: #fff; background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none; font-size: .82rem; font-weight: 700; padding: .6rem 1.65rem;
    border-radius: 8px; display: inline-flex; align-items: center; gap: .4rem;
    cursor: pointer; transition: all .25s; box-shadow: 0 3px 12px rgba(22,163,74,.25);
}
.oc-btn-confirm-big:hover { background: linear-gradient(135deg, #15803d 0%, #166534 100%); box-shadow: 0 5px 18px rgba(22,163,74,.35); transform: translateY(-1px); }
.oc-btn-confirm-big:active, .oc-btn-reject-big:active    { transform: translateY(0); }
.oc-btn-confirm-big:disabled, .oc-btn-reject-big:disabled { opacity: .45; pointer-events: none; }

/* -- New order highlight -------------------------------------------- */
.badge-new-order {
    display: inline-flex; align-items: center; gap: .22rem;
    background: linear-gradient(90deg, var(--red), #ff2244); color: #fff;
    font-size: .55rem; font-weight: 700; letter-spacing: .08em;
    padding: .12rem .4rem; border-radius: 20px; text-transform: uppercase;
    vertical-align: middle; animation: novo-pulse 2s ease-in-out infinite;
}
@keyframes novo-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .7 } }
tr.row-new-order       { background: rgba(217,4,41,.02) !important; }
tr.row-new-order:hover { background: rgba(217,4,41,.05) !important; }
.col-valor { white-space: nowrap; font-weight: 700; color: var(--text-1); font-size: .82rem; }

/* Modal OC externo: copia visual fiel do modal premium do Portal Interno */
.oc-dialog {
    max-width: 1170px !important;
    width: 96vw !important;
}

.oc-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
}

.oc-header {
    background: #050505;
    overflow: visible;
}

.oc-header::before {
    display: none;
}

.oc-header::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #c8102e;
}

.oc-header-inner {
    min-height: 110px;
    padding: 0 30px;
    grid-template-columns: 260px 1fr 260px;
    gap: 18px;
}

.oc-header-logo {
    width: 260px;
    padding-right: 0;
    border-right: 0;
}

.oc-logo-img {
    height: 42px;
    width: auto;
    filter: none;
    opacity: 1;
}

.oc-header-center {
    text-align: center;
}

.oc-header-eyebrow {
    margin-bottom: 4px;
    color: #8b96a8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .42em;
    line-height: 1;
}

.oc-header-eyebrow::before,
.oc-header-eyebrow::after {
    display: none;
}

.oc-order-num {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.oc-header-right {
    width: 260px;
    padding-left: 0;
    border-left: 0;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.oc-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.oc-status-date {
    color: #ffffff;
    font-size: 10px;
    font-style: italic;
    line-height: 1;
}

.oc-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.8);
    font-size: 18px;
}

.oc-close-btn:hover {
    background: transparent;
    color: #ffffff;
}

.oc-modal .badge-sup {
    min-height: 30px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.oc-modal .badge-sup-pending {
    background: #fff1f2;
    color: #c8102e;
    border-color: #fecdd3;
}

.oc-modal .badge-sup-viewed {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

.oc-modal .badge-sup-confirmed {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.oc-modal .badge-sup-rejected {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.oc-modal .badge-sup-partial {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

.oc-info-strip {
    margin: 18px 29px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.oc-info-item {
    min-height: 80px;
    padding: 19px 20px;
    justify-content: center;
    gap: 9px;
}

.oc-info-item:first-child {
    flex: 1.6;
}

.oc-info-item--need {
    background: #fff1f2;
    border-left: 1px solid #f4a6b4;
    border-right: 1px solid #f4a6b4;
}

.oc-info-item--total {
    flex: 1;
    min-width: 180px;
}

.oc-info-sep {
    margin: 0;
    background: #e5e7eb;
}

.oc-info-label {
    color: #8b96a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.oc-info-label i {
    color: #c8102e;
}

.oc-info-val {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.oc-need-badge {
    font-size: 15px;
    font-weight: 800;
}

.oc-need-urgent,
.oc-need-warn {
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #f4a6b4;
    background: #ffe4e6;
    color: #c8102e;
    font-size: 14px;
    font-weight: 800;
}

.oc-total-val {
    color: #111111;
    font-size: 23px;
    font-weight: 900;
}

.oc-section-hdr {
    padding: 0 29px 8px;
    background: #ffffff;
}

.oc-section-hdr-title {
    color: #4b5563;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.oc-section-hdr-title i {
    color: #c8102e;
}

.oc-section-hdr-count {
    display: none;
}

.oc-table-wrap {
    margin: 0 29px 20px;
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
}

.oc-table {
    width: 100%;
    table-layout: fixed;
    color: #111827;
    font-size: 12px;
}

.oc-table thead th {
    height: 40px;
    padding: 0 13px;
    background: #f3f4f6;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.oc-table tbody td {
    height: 48px;
    padding: 9px 13px;
    border-bottom: 1px solid #eef2f7;
}

.oc-table tbody tr:hover {
    background: #ffffff;
}

.oc-table tbody tr.tr-delayed td:first-child {
    border-left: 0;
    padding-left: 13px;
}

.oc-item-num,
.oc-item-code {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.oc-item-prod {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oc-currency {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.oc-currency-total {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.oc-timeline {
    padding: 17px 48px 24px;
    background: #f3f4f6;
    border-top: 1px solid #eef2f7;
}

.oc-tl-step {
    min-width: 132px;
}

.oc-tl-icon-wrap {
    width: 40px;
    height: 40px;
    border: 5px solid #e8edf5;
    background: #ffffff;
    color: #9ca3af;
    font-size: 14px;
}

.oc-tl-label {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.oc-tl-date {
    color: #9ca3af;
    font-size: 10px;
}

.oc-tl-step.done .oc-tl-date,
.oc-tl-step.active .oc-tl-date {
    color: #94a3b8;
}

.oc-tl-connector {
    height: 1px;
    max-width: 260px;
    min-width: 140px;
    margin-bottom: 40px;
    background: #dbe2ea;
}

.oc-tl-connector::after {
    background: #c8102e;
}

#tl-recebido.done .oc-tl-icon-wrap,
#tl-recebido.active .oc-tl-icon-wrap {
    background: #c8102e;
    border-color: #f2c9d1;
    color: #ffffff;
}

#tl-recebido.done .oc-tl-label,
#tl-recebido.active .oc-tl-label {
    color: #c8102e;
}

#tl-visualizado.done .oc-tl-icon-wrap,
#tl-visualizado.active .oc-tl-icon-wrap {
    background: #d97706;
    border-color: #fde4b8;
    color: #ffffff;
}

#tl-visualizado.done .oc-tl-label,
#tl-visualizado.active .oc-tl-label {
    color: #d97706;
}

#tl-respondido.done .oc-tl-icon-wrap,
#tl-respondido.active .oc-tl-icon-wrap {
    background: #16a34a;
    border-color: #c9f3d8;
    color: #ffffff;
}

#tl-respondido.done .oc-tl-label,
#tl-respondido.active .oc-tl-label {
    color: #16a34a;
}

#tl-line-1.done::after {
    background: #d97706;
}

#tl-line-2.done::after {
    background: #16a34a;
}

.oc-footer {
    min-height: 62px;
    padding: 14px 44px;
    background: #0b0f14;
    border-top: 2px solid #c8102e;
}

.oc-footer-actions {
    gap: 12px;
}

.oc-btn-ghost,
.oc-btn-reject-big,
.oc-btn-confirm-big {
    min-height: 36px;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

.oc-btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.35);
    background: transparent;
}

.oc-btn-ghost:hover {
    color: #ffffff;
    background: rgba(255,255,255,.08);
}

.oc-btn-reject-big {
    color: #fecaca;
    border: 1px solid #c8102e;
    background: transparent;
}

.oc-btn-reject-big:hover {
    color: #ffffff;
    border-color: #c8102e;
    background: rgba(200,16,46,.15);
    transform: none;
}

.oc-btn-confirm-big {
    color: #ffffff;
    border: 1px solid #16a34a;
    background: #16a34a;
}

.oc-btn-confirm-big:hover {
    background: #15803d;
    box-shadow: none;
    transform: none;
}

.oc-btn-confirm-big:disabled,
.oc-btn-reject-big:disabled {
    opacity: .45;
}


.ors-dialog {
    max-width: 1120px;
    width: 94vw;
}

.ors-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.ors-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px 22px;
    background: linear-gradient(135deg, #0b0f14 0%, #171e29 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ors-eyebrow {
    margin-bottom: 8px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ors-title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.ors-title span {
    color: #fff;
}

.ors-subtitle {
    margin: 8px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.ors-body {
    padding: 24px 28px;
    background: #f8fafc;
}

.ors-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.ors-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
}

.ors-meta-pill span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ors-meta-pill strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.order-response-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 56vh;
    padding-right: 4px;
    overflow-y: auto;
}

.order-response-item {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.order-response-top {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, .62fr));
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.order-response-product {
    min-width: 0;
}

.order-response-item-no,
.order-response-item-code,
.order-response-metric span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.order-response-item-code {
    margin-top: 3px;
}

.order-response-item-name {
    margin-top: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.order-response-metric {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.order-response-metric strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.order-response-type {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-response-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all .18s ease;
}

.order-response-choice--confirm:hover {
    border-color: rgba(22, 163, 74, .35);
    color: #15803d;
}

.order-response-choice--reject:hover {
    border-color: rgba(220, 38, 38, .35);
    color: #b91c1c;
}

.btn-check:checked + .order-response-choice--confirm {
    border-color: #16a34a;
    background: rgba(22, 163, 74, .1);
    color: #166534;
}

.btn-check:checked + .order-response-choice--reject {
    border-color: #dc2626;
    background: rgba(220, 38, 38, .08);
    color: #b91c1c;
}

.order-response-extra {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, .6fr);
    gap: 12px;
    margin-top: 14px;
}

.order-response-field {
    min-width: 0;
}

.order-response-field--full {
    grid-column: 1 / -1;
}

.order-response-field label {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}

.order-response-observation-field textarea {
    resize: vertical;
    min-height: 88px;
}

.ors-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 28px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 991.98px) {
    .order-response-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-response-product {
        grid-column: 1 / -1;
    }

    .order-response-type,
    .order-response-extra {
        grid-template-columns: 1fr;
    }

    .ors-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .oc-table-wrap {
        margin: 0 16px 18px;
    }

    .oc-table thead th,
    .oc-table tbody td {
        padding-left: 9px;
        padding-right: 9px;
    }

    .ors-header,
    .ors-body,
    .ors-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ors-title {
        font-size: 24px;
    }

    .order-response-item {
        padding: 16px;
    }
}

/* Compact response modal */
.ors-dialog {
    max-width: 1380px;
    width: 96vw;
}

.ors-modal {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.ors-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 20px;
    background: linear-gradient(135deg, #0b0f14 0%, #171e29 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ors-title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.ors-subtitle {
    margin: 8px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.ors-body {
    padding: 18px 24px 20px;
    background: #f8fafc;
}

.ors-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.ors-summary-card {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.ors-summary-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ors-summary-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.ors-summary-card--confirmed {
    border-color: rgba(22, 163, 74, .18);
}

.ors-summary-card--confirmed strong {
    color: #15803d;
}

.ors-summary-card--rejected {
    border-color: rgba(220, 38, 38, .18);
}

.ors-summary-card--rejected strong {
    color: #b91c1c;
}

.ors-summary-card--pending {
    border-color: rgba(100, 116, 139, .18);
}

.ors-summary-card--pending strong {
    color: #475569;
}

.ors-summary-card--total {
    border-color: rgba(200, 16, 46, .14);
}

.ors-summary-card--total strong {
    color: #c8102e;
}

.ors-table-wrap {
    max-height: 56vh;
    overflow: auto;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
}

.ors-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #0f172a;
    font-size: 12px;
}

.ors-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 12px;
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ors-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    background: #fff;
}

.ors-table tbody tr:hover td {
    background: #f8fafc;
}

.ors-cell-muted {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.ors-cell-strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.ors-item-code {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ors-item-product {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.ors-response-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.ors-response-badge--pending {
    color: #475569;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ors-response-badge--confirmed {
    color: #166534;
    border-color: rgba(22, 163, 74, .24);
    background: rgba(22, 163, 74, .12);
}

.ors-response-badge--rejected {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .22);
    background: rgba(220, 38, 38, .08);
}

.ors-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ors-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    transition: all .18s ease;
}

.ors-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.ors-icon-btn--confirm:hover,
.ors-icon-btn--confirm.is-active {
    color: #15803d;
    border-color: rgba(22, 163, 74, .35);
    background: rgba(22, 163, 74, .12);
}

.ors-icon-btn--reject:hover,
.ors-icon-btn--reject.is-active {
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .35);
    background: rgba(220, 38, 38, .08);
}

#btn-submit-order-response:disabled {
    opacity: .45;
    border-color: #94a3b8;
    background: #94a3b8;
    cursor: not-allowed;
}

.ors-mini-dialog {
    max-width: 560px;
    width: 92vw;
}

.ors-mini-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.ors-mini-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    background: #0b0f14;
    color: #fff;
}

.ors-mini-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.ors-mini-body {
    padding: 18px 20px 16px;
    background: #fff;
}

.ors-mini-meta {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ors-mini-meta-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ors-mini-meta-value {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.ors-mini-message {
    margin: 0 0 14px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.ors-mini-field {
    margin-bottom: 14px;
}

.ors-mini-field:last-child {
    margin-bottom: 0;
}

.ors-mini-field label {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}

.ors-mini-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

@media (max-width: 1199.98px) {
    .ors-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ors-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ors-body,
    .ors-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 767.98px) {
    .ors-header,
    .ors-body,
    .ors-footer,
    .ors-mini-header,
    .ors-mini-body,
    .ors-mini-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ors-title {
        font-size: 24px;
    }

    .ors-summary {
        grid-template-columns: 1fr;
    }

    .ors-table thead th,
    .ors-table tbody td {
        padding-left: 9px;
        padding-right: 9px;
    }

    .ors-mini-meta {
        grid-template-columns: 1fr;
    }

    .ors-mini-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* Supplier response UX refactor - compact ERP flow */
.ors-dialog {
    max-width: 1380px !important;
    width: 96vw !important;
}

.ors-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

.ors-header {
    position: relative;
    padding: 0;
    min-height: 108px;
    background: #050607;
    color: #fff;
    border-bottom: 3px solid var(--red);
}

.ors-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(217, 4, 41, .12), transparent 38%);
    pointer-events: none;
}

.ors-header-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    min-height: 108px;
    padding: 18px 30px;
    gap: 18px;
}

.ors-header-center {
    text-align: center;
    min-width: 260px;
}

.ors-order-num {
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 2px 0 var(--red);
}

.ors-subtitle {
    margin: 8px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.ors-body {
    padding: 16px 28px 18px;
    background: #f7f8fa;
}

.ors-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ors-summary-card {
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
}

.ors-summary-card span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.1;
}

.ors-summary-card strong {
    margin-top: 4px;
    font-size: 19px;
    line-height: 1;
}

.ors-table-wrap {
    max-height: 46vh;
    overflow-x: hidden !important;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #d8e0ea;
    background: #fff;
}

.ors-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 11px;
}

.ors-table thead th {
    padding: 9px 8px;
    background: #f1f3f6;
    color: #142033;
    border-bottom: 1px solid #d8e0ea;
    font-size: 10px;
    letter-spacing: .03em;
    line-height: 1.1;
}

.ors-table tbody td {
    padding: 8px 8px;
    height: 44px;
    border-bottom: 1px solid #edf1f5;
    line-height: 1.2;
}

.ors-col-item { width: 52px; }
.ors-col-code { width: 92px; }
.ors-col-un { width: 44px; }
.ors-col-qtd { width: 54px; }
.ors-col-saldo { width: 60px; }
.ors-col-date { width: 92px; }
.ors-col-status { width: 108px; }
.ors-col-actions { width: 72px; }

.ors-item-code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ors-item-product {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
}

.ors-response-badge {
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ors-actions {
    gap: 5px;
}

.ors-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex: 0 0 28px;
}

.ors-icon-btn--confirm:hover,
.ors-icon-btn--confirm.is-active {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.ors-icon-btn--reject:hover,
.ors-icon-btn--reject.is-active {
    color: #fff;
    border-color: #d90429;
    background: #d90429;
}

.ors-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    border-top: 1px solid #d8e0ea;
    background: #fff;
}

.ors-mini-dialog {
    max-width: 520px;
    width: 92vw;
}

.ors-mini-modal {
    border-radius: 10px;
}

.ors-mini-header {
    padding: 16px 20px;
    background: #050607;
    border-bottom: 2px solid var(--red);
}

.ors-mini-title {
    font-size: 22px;
}

.ors-mini-body {
    padding: 16px 20px 14px;
}

.ors-mini-meta {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px 12px;
    border-radius: 8px;
}

.ors-mini-footer {
    padding: 12px 20px 16px;
}

@media (max-width: 991.98px) {
    .ors-header-inner {
        grid-template-columns: 1fr auto;
    }
    .ors-header-center {
        text-align: left;
        min-width: 0;
    }
    .ors-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ors-col-code,
    .ors-table th:nth-child(2),
    .ors-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .ors-dialog { width: 98vw !important; }
    .ors-header-inner { padding: 16px; }
    .ors-body, .ors-footer { padding-left: 12px; padding-right: 12px; }
    .ors-order-num { font-size: 26px; }
    .ors-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ors-col-un,
    .ors-col-date,
    .ors-table th:nth-child(4),
    .ors-table td:nth-child(4),
    .ors-table th:nth-child(7),
    .ors-table td:nth-child(7) {
        display: none;
    }
}

/* Fine tuning: main order modal response badge containment */
.oc-modal .oc-table {
    table-layout: fixed;
}

.oc-modal .oc-table thead th,
.oc-modal .oc-table tbody td {
    padding-left: 10px;
    padding-right: 10px;
}

.oc-modal .oc-table thead th:nth-child(3),
.oc-modal .oc-table tbody td:nth-child(3) {
    width: auto;
}

.oc-modal .oc-table thead th:nth-child(12),
.oc-modal .oc-table tbody td:nth-child(12) {
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
    overflow: hidden;
}

.oc-modal .oc-table tbody td:nth-child(12) {
    vertical-align: middle;
}

.oc-modal .oc-table tbody td:nth-child(12) .badge-sup {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 118px;
    min-width: 104px;
    width: auto;
    white-space: nowrap;
    overflow: visible;
    padding: 7px 10px;
    margin: 0 auto;
}

.oc-modal .oc-table tbody td:nth-child(12) .badge-sup::before {
    flex: 0 0 5px;
}

.oc-modal .oc-item-prod {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Response modal aligned with premium order modal */
#orderResponseModal .ors-dialog {
    max-width: 1170px !important;
    width: 96vw !important;
}

#orderResponseModal .ors-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
}

#orderResponseModal .ors-header {
    position: relative;
    min-height: auto;
    padding: 0;
    background: #050505;
    border-bottom: 0;
}

#orderResponseModal .ors-header::before {
    display: none;
}

#orderResponseModal .ors-header-inner {
    min-height: 110px;
    padding: 0 30px;
    grid-template-columns: 260px 1fr 260px;
    gap: 18px;
}

#orderResponseModal .ors-header-center {
    min-width: 0;
    text-align: center;
}
#orderResponseModal .oc-header-right {
    grid-area: status !important;
    position: relative !important;
    inset: auto !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 110px !important;
    padding: 22px 18px 0 0 !important;
    justify-self: end !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: right !important;
    transform: none !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

#orderResponseModal .oc-status-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    text-align: right !important;
}

#orderResponseModal .oc-close-btn {
    top: 18px;
    right: 18px;
}

#orderResponseModal .ors-order-num {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-shadow: none;
}

#orderResponseModal .ors-subtitle {
    margin-top: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

#orderResponseModal .ors-body {
    padding: 18px 29px 20px;
    background: #ffffff;
}

#orderResponseModal .ors-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

#orderResponseModal .ors-summary-card {
    min-width: 0;
    min-height: 66px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
}

#orderResponseModal .ors-summary-card span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

#orderResponseModal .ors-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

#orderResponseModal .ors-summary-card--confirmed strong { color: #15803d; }
#orderResponseModal .ors-summary-card--rejected strong { color: #b91c1c; }
#orderResponseModal .ors-summary-card--pending strong { color: #475569; }
#orderResponseModal .ors-summary-card--total strong { color: #c8102e; }

#orderResponseModal .ors-table-wrap {
    margin: 0;
    max-height: 342px;
    overflow-x: hidden !important;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
}

#orderResponseModal .ors-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
    color: #111827;
    font-size: 12px;
}

#orderResponseModal .ors-table thead th {
    height: 40px;
    padding: 0 10px;
    background: #f3f4f6;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.1;
}

#orderResponseModal .ors-table tbody td {
    height: 48px;
    padding: 9px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    background: #ffffff;
    line-height: 1.2;
}

#orderResponseModal .ors-table tbody tr:hover td {
    background: #ffffff;
}

#orderResponseModal .ors-col-item { width: 50px; }
#orderResponseModal .ors-col-code { width: 76px; }
#orderResponseModal .ors-col-un { width: 44px; }
#orderResponseModal .ors-col-qtd { width: 56px; }
#orderResponseModal .ors-col-saldo { width: 62px; }
#orderResponseModal .ors-col-date { width: 92px; }
#orderResponseModal .ors-col-status { width: 136px; }
#orderResponseModal .ors-col-actions { width: 82px; }

#orderResponseModal .oc-item-prod {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    word-break: normal;
    overflow-wrap: anywhere;
}

#orderResponseModal .ors-table tbody td:nth-child(8) .badge-sup {
    box-sizing: border-box;
    justify-content: center;
    min-width: 104px;
    max-width: 118px;
    margin: 0 auto;
    padding: 7px 10px;
    white-space: nowrap;
}

#orderResponseModal .ors-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#orderResponseModal .ors-icon-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: all .18s ease;
}

#orderResponseModal .ors-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

#orderResponseModal .ors-icon-btn--confirm:hover,
#orderResponseModal .ors-icon-btn--confirm.is-active {
    color: #ffffff;
    border-color: #15803d;
    background: #15803d;
}

#orderResponseModal .ors-icon-btn--reject:hover,
#orderResponseModal .ors-icon-btn--reject.is-active {
    color: #ffffff;
    border-color: #d90429;
    background: #d90429;
}

#orderResponseModal .ors-footer {
    padding: 1rem 1.75rem;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

#orderResponseModal #btn-submit-order-response:disabled {
    opacity: .45;
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    #orderResponseModal .ors-header-inner {
        grid-template-columns: 1fr;
        padding: 18px;
        text-align: center;
    }

    #orderResponseModal .oc-header-logo,
    #orderResponseModal .oc-header-right {
    grid-area: status !important;
    position: relative !important;
    inset: auto !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 110px !important;
    padding: 22px 18px 0 0 !important;
    justify-self: end !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: right !important;
    transform: none !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

    #orderResponseModal .ors-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    #orderResponseModal .oc-header-right {
        grid-template-columns: minmax(0, 1fr) 36px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }

    #orderResponseModal .oc-status-block {
        max-width: calc(100% - 46px) !important;
        padding-right: 10px !important;
    }
}
@media (max-width: 767.98px) {
    #orderResponseModal .ors-body,
    #orderResponseModal .ors-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    #orderResponseModal .ors-col-code,
    #orderResponseModal .ors-table th:nth-child(2),
    #orderResponseModal .ors-table td:nth-child(2),
    #orderResponseModal .ors-col-un,
    #orderResponseModal .ors-table th:nth-child(4),
    #orderResponseModal .ors-table td:nth-child(4),
    #orderResponseModal .ors-col-date,
    #orderResponseModal .ors-table th:nth-child(7),
    #orderResponseModal .ors-table td:nth-child(7) {
        display: none;
    }

    #orderResponseModal .ors-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #orderResponseModal .ors-icon-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: all .18s ease;
}
}
/* Response modal header centering correction */
#orderResponseModal .oc-header {
    position: relative !important;
}

#orderResponseModal .ors-header-inner {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) 220px !important;
    grid-template-areas: "logo center status" !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 110px !important;
    padding: 0 30px !important;
    gap: 18px !important;
    box-sizing: border-box !important;
}

#orderResponseModal .oc-header-logo {
    grid-area: logo !important;
    position: relative !important;
    inset: auto !important;
    width: 220px !important;
    min-width: 0 !important;
    padding: 0 !important;
    justify-self: start !important;
    align-self: center !important;
    transform: none !important;
    z-index: 1 !important;
}

#orderResponseModal .ors-header-center {
    grid-area: center !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: center !important;
    align-self: center !important;
    transform: none !important;
    text-align: center !important;
    z-index: 1 !important;
}

#orderResponseModal .ors-subtitle {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

#orderResponseModal .oc-header-right {
    grid-area: status !important;
    position: relative !important;
    inset: auto !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 110px !important;
    padding: 22px 18px 0 0 !important;
    justify-self: end !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: right !important;
    transform: none !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

#orderResponseModal .oc-status-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    text-align: right !important;
}

#orderResponseModal .oc-status-date {
    margin-top: 0 !important;
    padding-right: 2px !important;
}

#orderResponseModal .oc-close-btn {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 4 !important;
}

@media (max-width: 991.98px) {
    #orderResponseModal .ors-header-inner {
        grid-template-columns: 1fr !important;
        grid-template-areas: "logo" "center" "status" !important;
        min-height: auto !important;
        padding: 18px !important;
        gap: 12px !important;
    }

    #orderResponseModal .oc-header-logo,
    #orderResponseModal .ors-header-center,
    #orderResponseModal .oc-header-right {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
        justify-self: center !important;
        align-self: center !important;
    }
}

#orderResponseModal .ors-footer-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}


#orderResponseModal .ors-footer-left .oc-btn-ghost {
    border-color: #d90429 !important;
    background: #d90429 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(217, 4, 41, .22) !important;
}

#orderResponseModal .ors-footer-left .oc-btn-ghost:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

#orderResponseModal .ors-footer-left .oc-btn-ghost i {
    color: inherit !important;
}
#orderResponseModal .ors-bulk-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    padding: .55rem 1rem;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 800;
    font-size: .82rem;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

#orderResponseModal .ors-bulk-confirm-btn:hover:not(:disabled) {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
}

#orderResponseModal .ors-bulk-confirm-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
}

#orderResponseModal .oc-header-right {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    grid-template-rows: 36px 1fr !important;
    align-items: start !important;
    justify-items: end !important;
    width: 240px !important;
    min-width: 240px !important;
    height: 110px !important;
    padding: 16px 18px 12px 0 !important;
}

#orderResponseModal .oc-status-block {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    justify-self: end !important;
    align-items: flex-end !important;
    max-width: 170px !important;
    padding-right: 10px !important;
    gap: 7px !important;
}

#orderResponseModal .oc-status-date {
    max-width: 170px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

#orderResponseModal .oc-close-btn {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    align-self: start !important;
    justify-self: end !important;
}

@media (max-width: 767.98px) {
    #orderResponseModal .ors-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #orderResponseModal .ors-footer-left {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #orderResponseModal .ors-bulk-confirm-btn,
    #orderResponseModal .oc-btn-ghost,
    #orderResponseModal #btn-submit-order-response {
        width: 100%;
    }
}
/* Fornecedor modal: pagamento e item entregue */
#itemsModal .oc-info-strip {
    flex-wrap: nowrap;
}

#itemsModal .oc-info-item {
    padding: 1rem 1.15rem;
}

#itemsModal .oc-info-item:first-child {
    flex: .95 1 210px;
}

#itemsModal .oc-info-item--need {
    flex: .75 1 132px;
}

#itemsModal .oc-info-item--total {
    min-width: 150px;
}

#itemsModal .oc-info-item--payment {
    flex: .85 1 158px;
}

#itemsModal .oc-info-item--payment .oc-info-val {
    font-size: .82rem;
    font-weight: 700;
}

.badge-sup-delivered {
    background: rgba(14, 165, 233, .10);
    color: #0369a1;
    border: 1px solid rgba(14, 165, 233, .22);
}

.oc-table tbody tr.tr-delivered td {
    background: #f8fafc;
    color: #64748b;
}

.oc-table tbody tr.tr-delivered td:first-child {
    border-left: 3px solid rgba(14, 165, 233, .45);
    padding-left: .8rem;
}

.oc-table tbody tr.tr-delivered .oc-item-prod,
.oc-table tbody tr.tr-delivered .oc-currency,
.oc-table tbody tr.tr-delivered .oc-currency-total {
    color: #475569;
}

@media (max-width: 991.98px) {
    #itemsModal .oc-info-strip {
        flex-wrap: wrap;
    }

    #itemsModal .oc-info-sep {
        display: none;
    }

    #itemsModal .oc-info-item,
    #itemsModal .oc-info-item:first-child,
    #itemsModal .oc-info-item--need,
    #itemsModal .oc-info-item--total,
    #itemsModal .oc-info-item--payment {
        flex: 1 1 50%;
        min-width: 0;
    }
}
/* Refusal chat modal UX v3 */
.supplier-notification-bar {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 14px;
    position: relative;
    z-index: 20;
}

.supplier-notification-wrap {
    position: relative;
}

.supplier-notification-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.supplier-notification-btn:hover,
.supplier-notification-btn.has-unread {
    border-color: rgba(217, 4, 41, .35);
    box-shadow: 0 12px 28px rgba(217, 4, 41, .14);
    transform: translateY(-1px);
}

.supplier-notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d90429;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 19px;
    border: 2px solid #ffffff;
}

.supplier-notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    display: none;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .20);
    overflow: hidden;
}

.supplier-notification-menu.is-open {
    display: block;
}

.supplier-notification-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #eef2f7;
}

.supplier-notification-head strong {
    color: #111827;
    font-size: 13px;
}

.supplier-notification-head span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.supplier-notification-list {
    max-height: 310px;
    overflow-y: auto;
}

.supplier-notification-item {
    width: 100%;
    border: 0;
    background: #ffffff;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.supplier-notification-item:hover {
    background: #f8fafc;
}

.supplier-notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 999px;
    background: #d90429;
    box-shadow: 0 0 0 4px rgba(217, 4, 41, .10);
    flex: 0 0 auto;
}

.supplier-notification-item strong,
.supplier-notification-item small {
    display: block;
}

.supplier-notification-item strong {
    color: #111827;
    font-size: 12px;
    line-height: 1.25;
}

.supplier-notification-item small,
.supplier-notification-empty {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.supplier-notification-empty {
    padding: 16px 14px;
    text-align: center;
}

.refusal-chat-modal {
    z-index: 1070;
}

.refusal-chat-dialog {
    width: min(1120px, calc(100vw - 52px));
    max-width: min(1120px, calc(100vw - 52px));
}

.refusal-chat-shell {
    height: min(760px, calc(100vh - 56px));
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.refusal-chat-header {
    min-height: 96px;
    padding: 22px 28px;
    background: #050505;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
.supplier-index-header{display:flex;align-items:center;justify-content:space-between;width:100%;}.supplier-index-title{width:auto;max-width:none;margin:0;}.supplier-index-help-btn{width:30px;height:30px;display:inline-grid;place-items:center;padding:0;border:1px solid #d7dde7;border-radius:9px;background:#fff;color:#667085;font-size:1rem;line-height:1;cursor:pointer;transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease;}.supplier-index-help-btn:hover,.supplier-index-help-btn:focus-visible{background:#fff5f6;border-color:rgba(217,4,41,.35);color:var(--red);outline:0;transform:translateY(-1px);}.supplier-index-meter{transform:translateX(-4px);}.supplier-index-info-dialog{max-width:760px;}.supplier-index-info-modal{max-height:88vh;}.supplier-index-info-header{align-items:flex-start;padding:1.4rem 1.6rem 1.15rem;border-bottom:1px solid var(--border);}.supplier-index-info-header .modal-title{font-size:1.14rem;font-weight:800;color:var(--text-1);}.supplier-index-info-header .modal-title i,.supplier-index-info-section h6 i{color:var(--red);}.supplier-index-info-subtitle{margin-top:.35rem;color:var(--text-3);font-size:.82rem;}.supplier-index-info-body{padding:0 1.6rem;}.supplier-index-info-section{padding:1.25rem 0;border-bottom:1px solid #edf0f4;}.supplier-index-info-section:last-child{border-bottom:0;}.supplier-index-info-section h6{margin:0 0 .72rem;font-weight:800;font-size:.92rem;color:var(--text-1);}.supplier-index-info-section p{margin:0;color:var(--text-2);font-size:.82rem;line-height:1.55;}.supplier-index-formula{display:flex;align-items:center;justify-content:center;gap:.75rem;margin:1rem 0 .75rem;padding:.85rem 1rem;border:1px solid #e7ebf1;border-radius:12px;background:#f8fafc;color:var(--text-1);font-size:.82rem;font-weight:700;}.supplier-index-fraction{display:inline-flex;flex-direction:column;align-items:center;line-height:1.35;}.supplier-index-fraction span:first-child{padding:0 .55rem .2rem;border-bottom:1px solid #98a2b3;}.supplier-index-fraction span:last-child{padding-top:.2rem;}.supplier-index-info-note{font-size:.77rem!important;color:var(--text-3)!important;}.supplier-index-ranges{display:grid;gap:.22rem;}.supplier-index-range{--range-color:#16a34a;--range-soft:#dcfce7;--range-ink:#166534;display:grid;grid-template-columns:44px 128px minmax(0,1fr);align-items:center;gap:.65rem;padding:.48rem .35rem;border-radius:10px;}.supplier-index-range:hover{background:#f8fafc;}.supplier-index-range--very-good{--range-color:#22c55e;--range-soft:#e8fbd9;--range-ink:#166534;}.supplier-index-range--attention{--range-color:#eab308;--range-soft:#fef9c3;--range-ink:#854d0e;}.supplier-index-range--regular{--range-color:#f59e0b;--range-soft:#ffedd5;--range-ink:#9a3412;}.supplier-index-range--bad{--range-color:#f97316;--range-soft:#ffddcc;--range-ink:#9a3412;}.supplier-index-range--critical{--range-color:#dc2626;--range-soft:#fee2e2;--range-ink:#991b1b;}.supplier-index-modal-face{display:block;width:38px;height:38px;}.supplier-index-modal-face svg{display:block;width:100%;height:100%;overflow:visible;}.supplier-index-modal-face .simf-bg{fill:var(--range-soft);stroke:var(--range-color);stroke-width:2;}.supplier-index-modal-face .simf-eye,.supplier-index-modal-face .simf-brow,.supplier-index-modal-face .simf-mouth{fill:none;stroke:var(--range-ink);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;}.supplier-index-modal-face .simf-brow{stroke-width:4.5;}.supplier-index-modal-face .simf-mouth{stroke-width:7.5;}.supplier-index-modal-face .simf-cheek{fill:var(--range-color);opacity:.18;}.supplier-index-range-score{display:flex;flex-direction:column;line-height:1.25;}.supplier-index-range-score strong{font-size:.78rem;color:var(--range-color);}.supplier-index-range-score span{font-size:.73rem;font-weight:800;color:var(--range-color);}.supplier-index-range p{font-size:.75rem;line-height:1.35;}.supplier-index-recommendations ul{margin:0;padding-left:1.05rem;color:var(--text-2);}.supplier-index-recommendations li{padding:.16rem 0;font-size:.78rem;line-height:1.45;}.supplier-index-recommendations li::marker{color:var(--red);}@media (max-width:575.98px){.supplier-index-info-dialog{width:calc(100% - 1rem);margin:.5rem auto;}.supplier-index-info-modal{max-height:calc(100vh - 1rem);}.supplier-index-info-header{padding:1.15rem;}.supplier-index-info-body{padding:0 1.15rem;}.supplier-index-formula{gap:.45rem;padding:.75rem .45rem;font-size:.72rem;}.supplier-index-range{grid-template-columns:38px minmax(0,1fr);gap:.45rem;padding:.5rem 0;}.supplier-index-range p{grid-column:2;font-size:.72rem;}.supplier-index-modal-face{width:34px;height:34px;}.supplier-index-range-score{flex-direction:row;align-items:baseline;gap:.4rem;}.supplier-index-range-score strong,.supplier-index-range-score span{font-size:.72rem;}.supplier-index-meter{transform:translateX(-2px);}}
    border-bottom: 2px solid #d90429;
}

.refusal-chat-eyebrow {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}

.refusal-chat-title {
    margin-top: 5px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
}

.refusal-chat-order {
    margin-top: 6px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 800;
}

.refusal-chat-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
}

.refusal-chat-info {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) .65fr .75fr 1fr;
    gap: 1px;
    background: #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.refusal-chat-info > div {
    min-width: 0;
    padding: 13px 16px;
    background: #ffffff;
}

.refusal-chat-label {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.refusal-chat-info strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.refusal-chat-body {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 26px 34px;
    background:
        linear-gradient(rgba(248, 250, 252, .94), rgba(248, 250, 252, .94)),
        radial-gradient(circle at top left, rgba(37, 99, 235, .09), transparent 28%),
        radial-gradient(circle at bottom right, rgba(22, 163, 74, .08), transparent 26%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.refusal-chat-body::-webkit-scrollbar,
.supplier-notification-list::-webkit-scrollbar {
    width: 6px;
}

.refusal-chat-body::-webkit-scrollbar-thumb,
.supplier-notification-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.refusal-chat-bubble {
    max-width: 64%;
    min-width: 210px;
    padding: 11px 13px 10px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, .85);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    color: #111827;
    overflow-wrap: anywhere;
}

.refusal-chat-bubble--received {
    align-self: flex-start;
    background: #eef6ff;
    border-color: #bfdbfe;
    border-top-left-radius: 5px;
}

.refusal-chat-bubble--mine {
    align-self: flex-end;
    background: #e9fbe9;
    border-color: #bbf7d0;
    border-top-right-radius: 5px;
}

.feedback-message-highlight {
    outline: 3px solid rgba(217, 4, 41, .28);
    box-shadow: 0 0 0 6px rgba(217, 4, 41, .08), 0 10px 24px rgba(15, 23, 42, .12);
    animation: feedback-message-pulse 1.1s ease-in-out 2;
}

@keyframes feedback-message-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
.refusal-chat-bubble-meta {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
}

.refusal-chat-bubble-meta span {
    color: #475569;
    font-weight: 600;
}

.refusal-chat-bubble-date {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.refusal-chat-bubble-text {
    margin-top: 8px;
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.refusal-chat-empty {
    margin: auto;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.refusal-chat-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.refusal-chat-confirm {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #86efac;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.refusal-chat-confirm:hover {
    background: #bbf7d0;
    border-color: #4ade80;
}

.refusal-chat-composer {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: 7px 7px 7px 12px;
}

.refusal-chat-composer textarea {
    flex: 1;
    min-height: 28px;
    max-height: 94px;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
    padding: 5px 0;
}

.refusal-chat-send {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #16a34a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.refusal-chat-send:hover {
    background: #15803d;
}

@media (max-width: 991.98px) {
    .refusal-chat-info {
        grid-template-columns: 1fr 1fr;
    }

    .refusal-chat-bubble {
        max-width: 82%;
    }
}

@media (max-width: 767.98px) {
    .supplier-notification-bar {
        margin-top: 0;
    }

    .refusal-chat-dialog {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
    }

    .refusal-chat-shell {
        height: calc(100vh - 24px);
        border-radius: 10px;
    }

    .refusal-chat-header {
        padding: 18px;
    }

    .refusal-chat-title {
        font-size: 22px;
    }

    .refusal-chat-info {
        grid-template-columns: 1fr;
    }

    .refusal-chat-body {
        padding: 18px 14px;
    }

    .refusal-chat-bubble {
        max-width: 94%;
        min-width: 0;
    }

    .refusal-chat-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .refusal-chat-confirm {
        width: 100%;
    }
}

/* Hide order modal while refusal chat is open */
#itemsModal.oc-modal-muted-behind-chat .modal-dialog {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Topbar actions / notification placement */
.sp-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 56px;
}

.sp-topbar .supplier-notification-bar {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sp-topbar .supplier-notification-menu {
    top: calc(100% + 12px);
}

@media (max-width: 768px) {
    .sp-topbar {
        flex-direction: row;
        align-items: flex-start;
    }

    .sp-topbar-copy {
        min-width: 0;
    }

    .sp-topbar-actions {
        align-self: flex-start;
        padding-top: 2px;
    }
}
/* Feedback thread by order */
.oc-btn-feedback-thread {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 850;
    transition: all .18s ease;
}

.oc-btn-feedback-thread:hover {
    border-color: #93c5fd;
    background: #dbeafe;
    transform: translateY(-1px);
}

.feedback-thread-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 22px 0;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.feedback-thread-entry strong,
.feedback-thread-entry span {
    display: block;
}

.feedback-thread-entry strong {
    color: #1e3a8a;
    font-size: .84rem;
    font-weight: 850;
}

.feedback-thread-entry span {
    margin-top: 3px;
    color: #475569;
    font-size: .76rem;
    font-weight: 650;
}

.feedback-thread-entry button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #1d4ed8;
    border-radius: 7px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 8px 12px;
    font-size: .76rem;
    font-weight: 800;
}

.feedback-thread-entry button:hover {
    background: #1e40af;
}
@media (max-width: 767.98px) {
    .feedback-thread-entry {
        margin: 12px 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .feedback-thread-entry button {
        width: 100%;
        justify-content: center;
    }
}
.feedback-thread-dialog {
    width: min(1320px, calc(100vw - 48px));
    max-width: min(1320px, calc(100vw - 48px));
}

.feedback-thread-shell {
    display: flex;
    flex-direction: column;
    height: min(820px, calc(100vh - 48px));
}

.feedback-thread-header {
    min-height: 100px;
}

.feedback-thread-head-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feedback-thread-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.feedback-thread-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 20px 8px;
    background: #ffffff;
}

.feedback-thread-card {
    min-height: 62px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px 14px;
}

.feedback-thread-card span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.feedback-thread-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1;
}

.feedback-thread-card--confirmed strong { color: #15803d; }
.feedback-thread-card--rejected strong { color: #b91c1c; }
.feedback-thread-card--pending strong { color: #475569; }
.feedback-thread-card--total strong { color: #d90429; }

.feedback-thread-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px 7px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    background: #ffffff;
}

.feedback-thread-section-title i { color: #d90429; }

.feedback-thread-table-wrap {
    margin: 0 20px 8px;
    max-height: 190px;
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
}

.feedback-thread-table {
    min-width: 1080px;
}

.feedback-thread-chat-title {
    border-top: 1px solid #e5e7eb;
}

.feedback-thread-messages {
    flex: 1 1 auto;
    min-height: 180px;
    padding: 20px 28px;
}

.feedback-date-separator {
    align-self: center;
    margin: 4px 0;
}

.feedback-date-separator span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    color: #475569;
    font-size: 11px;
    font-weight: 850;
}

.feedback-thread-footer {
    position: sticky;
    bottom: 0;
}

/* Feedback thread nested confirmation modal */
#confirmFeedbackItemsModal {
    z-index: 1080;
}
.feedback-confirm-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.feedback-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #050505;
    color: #ffffff;
    border-bottom: 2px solid #d90429;
}

.feedback-confirm-title {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 900;
}

.feedback-confirm-body {
    padding: 18px 20px;
    background: #ffffff;
}

.feedback-confirm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 310px;
    overflow: auto;
}

.feedback-confirm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    cursor: pointer;
}

.feedback-confirm-item input {
    margin-top: 4px;
}

.feedback-confirm-item strong,
.feedback-confirm-item small {
    display: block;
}

.feedback-confirm-item strong {
    color: #0f172a;
    font-size: 13px;
}

.feedback-confirm-item small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.feedback-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* Feedback thread layout correction */
.feedback-thread-table-wrap {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.feedback-thread-table-wrap--scroll {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

.feedback-thread-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.feedback-thread-table th,
.feedback-thread-table td {
    padding: 9px 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.feedback-thread-table th:nth-child(1) { width: 5%; }
.feedback-thread-table th:nth-child(2) { width: 8%; }
.feedback-thread-table th:nth-child(3) { width: 25%; }
.feedback-thread-table th:nth-child(4) { width: 4%; }
.feedback-thread-table th:nth-child(5) { width: 5%; }
.feedback-thread-table th:nth-child(6) { width: 5%; }
.feedback-thread-table th:nth-child(7) { width: 8%; }
.feedback-thread-table th:nth-child(8) { width: 9%; }
.feedback-thread-table th:nth-child(9) { width: 10%; }
.feedback-thread-table th:nth-child(10) { width: 12%; }
.feedback-thread-table th:nth-child(11) { width: 7%; }

.feedback-thread-messages {
    height: auto;
    flex: 1 1 0;
    min-height: 160px;
}
/* Feedback thread status containment */
.feedback-thread-table-wrap {
    overflow-x: hidden;
}

.feedback-thread-table th:nth-child(1) { width: 4%; }
.feedback-thread-table th:nth-child(2) { width: 8%; }
.feedback-thread-table th:nth-child(3) { width: 25%; }
.feedback-thread-table th:nth-child(4) { width: 3%; }
.feedback-thread-table th:nth-child(5) { width: 4%; }
.feedback-thread-table th:nth-child(6) { width: 4%; }
.feedback-thread-table th:nth-child(7) { width: 8%; }
.feedback-thread-table th:nth-child(8) { width: 8%; }
.feedback-thread-table th:nth-child(9) { width: 10%; }
.feedback-thread-table th:nth-child(10) { width: 12%; }
.feedback-thread-table th:nth-child(11) { width: 10%; }

.feedback-thread-table th:last-child,
.feedback-thread-table td:last-child {
    padding-left: 4px;
    padding-right: 4px;
}

.feedback-thread-table td:last-child .badge-sup {
    box-sizing: border-box;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    padding: 5px 7px;
    font-size: .58rem;
}

.feedback-thread-table td:last-child .badge-sup::before {
    flex: 0 0 5px;
}
@media (max-width: 991.98px) {
    .feedback-thread-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feedback-thread-table {
        font-size: 10px;
    }

    .feedback-thread-table th,
    .feedback-thread-table td {
        padding: 7px 4px;
    }

    .feedback-thread-messages {
        min-height: 130px;
    }
    .feedback-thread-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-thread-footer .refusal-chat-confirm,
    .feedback-thread-footer .refusal-chat-composer {
        width: 100%;
    }
}

.sp-account-wrap { position: relative; flex-shrink: 0; }
.sp-account-menu { display: none; position: absolute; right: 0; bottom: calc(100% + 10px); width: 180px; padding: .45rem; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.28); z-index: 1200; }
.sp-account-menu.is-open { display: block; }
.sp-account-menu button { display:block; width:100%; border:0; background:transparent; text-align:left; padding:.65rem .7rem; border-radius:8px; color:#202633; font-size:.82rem; }
.sp-account-menu button:hover { background:#f3f5f8; color:#d90429; }
.sp-account-menu i { margin-right:.55rem; }
.sp-password-modal .modal-header p { margin:.25rem 0 0; font-size:.8rem; color:#6b7280; }
.sp-password-modal label { display:block; font-size:.8rem; font-weight:700; margin-bottom:.35rem; }
/* Purchase order modal: responsive width and overflow guard */
#itemsModal .oc-dialog {
    width: min(94vw, 1640px) !important;
    max-width: min(1640px, calc(100vw - 32px)) !important;
    margin: 1rem auto;
}

#itemsModal .oc-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 32px);
}

#itemsModal .oc-header,
#itemsModal .oc-info-strip,
#itemsModal .feedback-thread-entry,
#itemsModal .oc-section-hdr,
#itemsModal .oc-timeline,
#itemsModal .oc-footer {
    flex: 0 0 auto;
}

#itemsModal .oc-header-inner {
    grid-template-columns: minmax(200px, 300px) minmax(240px, 1fr) minmax(200px, 300px);
}

#itemsModal .oc-header-logo,
#itemsModal .oc-header-right {
    width: auto;
    min-width: 0;
}

#itemsModal .oc-info-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .65fr) minmax(0, .8fr) minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, .9fr);
    align-items: stretch;
    overflow: visible;
}

#itemsModal .oc-info-sep {
    display: none;
}

#itemsModal .oc-info-item {
    min-width: 0;
    height: auto;
    border-left: 1px solid #e5e7eb;
}

#itemsModal .oc-info-item:first-child {
    border-left: 0;
}

#itemsModal .oc-info-label {
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
}

#itemsModal .oc-info-val,
#itemsModal .oc-total-val,
#itemsModal .oc-need-badge,
#itemsModal #im-freight-value {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
}

#itemsModal #im-total {
    font-size: clamp(1.15rem, 1.45vw, 1.55rem);
    font-variant-numeric: tabular-nums;
}

#itemsModal #im-emissao,
#itemsModal #im-necessidade {
    white-space: nowrap;
    overflow-wrap: normal;
}

#itemsModal .oc-table-wrap {
    flex: 1 1 320px;
    min-height: 90px;
    max-height: min(44vh, 480px);
    overflow: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

#itemsModal .oc-table {
    width: 100%;
    min-width: 1280px;
    table-layout: auto;
}

#itemsModal .oc-table th:nth-child(3),
#itemsModal .oc-table td:nth-child(3) {
    min-width: 320px;
}

#itemsModal .oc-table th:nth-child(9),
#itemsModal .oc-table td:nth-child(9) {
    min-width: 112px;
}

#itemsModal .oc-table th:nth-child(10),
#itemsModal .oc-table td:nth-child(10) {
    min-width: 124px;
}

#itemsModal .oc-table th:nth-child(11),
#itemsModal .oc-table td:nth-child(11) {
    min-width: 106px;
}

#itemsModal .oc-table th:not(:nth-child(3)),
#itemsModal .oc-table td:not(:nth-child(3)) {
    white-space: nowrap;
}

#itemsModal .oc-table td {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1199.98px) {
    #itemsModal .oc-dialog {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }

    #itemsModal .oc-header-inner {
        grid-template-columns: minmax(170px, 220px) minmax(220px, 1fr) minmax(170px, 220px);
        padding-left: 22px;
        padding-right: 22px;
    }

    #itemsModal .oc-info-strip {
        margin-left: 18px;
        margin-right: 18px;
    }

    #itemsModal .oc-info-item {
        padding: 15px 13px;
    }

    #itemsModal .oc-table-wrap {
        margin-left: 18px;
        margin-right: 18px;
    }
}

@media (max-width: 991.98px) {
    #itemsModal .oc-header-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "logo status" "center center";
        min-height: auto;
        padding: 16px 20px;
        gap: 12px;
    }

    #itemsModal .oc-header-logo {
        grid-area: logo;
    }

    #itemsModal .oc-header-center {
        grid-area: center;
    }

    #itemsModal .oc-header-right {
        grid-area: status;
        justify-self: end;
    }

    #itemsModal .oc-info-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #itemsModal .oc-info-item {
        min-height: 76px;
        border-top: 1px solid #e5e7eb;
    }

    #itemsModal .oc-info-item:nth-child(-n + 2) {
        border-top: 0;
    }

    #itemsModal .oc-timeline {
        padding-left: 20px;
        padding-right: 20px;
    }

    #itemsModal .oc-tl-step {
        min-width: 100px;
    }

    #itemsModal .oc-tl-connector {
        min-width: 60px;
    }
}

@media (max-width: 575.98px) {
    #itemsModal .oc-dialog {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        margin: .375rem auto;
    }

    #itemsModal .oc-modal {
        max-height: calc(100vh - 12px);
        border-radius: 10px;
    }

    #itemsModal .oc-header-inner {
        padding: 14px;
    }

    #itemsModal .oc-logo-img {
        height: 32px;
        max-width: 150px;
    }

    #itemsModal .oc-order-num {
        font-size: 25px;
    }

    #itemsModal .oc-info-strip {
        grid-template-columns: 1fr;
        margin: 10px;
    }

    #itemsModal .oc-info-item,
    #itemsModal .oc-info-item:nth-child(-n + 2) {
        min-height: 0;
        padding: 12px;
        border-top: 1px solid #e5e7eb;
        border-left: 0;
    }

    #itemsModal .oc-info-item:first-child {
        border-top: 0;
    }

    #itemsModal .oc-section-hdr {
        padding-left: 12px;
        padding-right: 12px;
    }

    #itemsModal .oc-table-wrap {
        margin: 0 10px 12px;
    }

    #itemsModal .oc-timeline {
        justify-content: flex-start;
        padding: 14px 12px 18px;
        overflow-x: auto;
    }

    #itemsModal .oc-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    #itemsModal .oc-footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    #itemsModal .oc-btn-ghost,
    #itemsModal .oc-btn-feedback-thread,
    #itemsModal .oc-btn-reject-big,
    #itemsModal .oc-btn-confirm-big {
        width: 100%;
    }
}


/* Keep the full normal table visible on compact desktop screens. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #itemsModal .oc-table {
        min-width: 1080px;
    }

    #itemsModal .oc-table th:nth-child(3),
    #itemsModal .oc-table td:nth-child(3) {
        min-width: 230px;
    }

    #itemsModal .oc-table th:nth-child(9),
    #itemsModal .oc-table td:nth-child(9) {
        min-width: 96px;
    }

    #itemsModal .oc-table th:nth-child(10),
    #itemsModal .oc-table td:nth-child(10) {
        min-width: 108px;
    }

    #itemsModal .oc-table th:nth-child(11),
    #itemsModal .oc-table td:nth-child(11) {
        min-width: 96px;
    }
}
/* ?ndice do fornecedor ? acabamento final do card e modal explicativo */.supplier-index-card{position:relative;justify-content:center;}.supplier-index-card .supplier-index-header{position:absolute;top:1.25rem;right:1.5rem;left:1.5rem;z-index:2;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;}.supplier-index-card .supplier-index-title{width:auto!important;max-width:none!important;margin:0!important;}.supplier-index-card .supplier-index-help-btn{position:static!important;flex:0 0 auto;width:30px;height:30px;display:grid!important;place-items:center!important;margin:0!important;padding:0;border:1px solid #d7dde7;border-radius:9px;background:#fff;color:#667085;cursor:pointer;line-height:1;transition:all .18s ease;}.supplier-index-card .supplier-index-help-btn:hover,.supplier-index-card .supplier-index-help-btn:focus-visible{border-color:rgba(217,4,41,.35);background:#fff5f6;color:var(--red);outline:0;transform:translateY(-1px);}.supplier-index-card .supplier-index{max-width:none;margin:1.75rem 0 0;}.supplier-index-card .supplier-index-main{grid-template-columns:132px minmax(0,1fr);justify-content:start;gap:1.25rem;}.supplier-index-card .supplier-index-meter{width:128px;height:128px;margin:0;transform:translateX(-2px);}.supplier-index-card .supplier-index-copy{min-height:112px;justify-content:center;padding:.15rem 0 .15rem 1.15rem;border-left:1px solid #edf0f3;}.supplier-index-card .supplier-index-score{font-size:2.55rem;}.supplier-index-card .supplier-index-message{max-width:205px;margin-top:.52rem;font-size:.78rem;line-height:1.42;}.supplier-index-card .supplier-index-stats{justify-content:flex-start;gap:.68rem;margin:1rem 0 0 6px;padding-top:.78rem;border-top:1px solid #edf0f3;font-size:.73rem;}.supplier-index-info-dialog{max-width:760px;}.supplier-index-info-modal{max-height:88vh;}.supplier-index-info-header{align-items:flex-start;padding:1.35rem 1.55rem 1.1rem;border-bottom:1px solid #e7ebf0;}.supplier-index-info-header .modal-title{font-size:1.12rem;font-weight:800;color:#182230;}.supplier-index-info-header .modal-title i,.supplier-index-info-section h6 i{color:var(--red);}.supplier-index-info-subtitle{margin-top:.32rem;color:#667085;font-size:.8rem;}.supplier-index-info-body{padding:0 1.55rem;}.supplier-index-info-section{padding:1.15rem 0;border-bottom:1px solid #edf0f3;}.supplier-index-info-section:last-child{border-bottom:0;}.supplier-index-info-section h6{margin:0 0 .72rem;font-size:.9rem;font-weight:800;color:#1d2939;}.supplier-index-info-section p{margin:0;color:#475467;font-size:.8rem;line-height:1.5;}.supplier-index-formula{display:flex;align-items:center;justify-content:center;gap:.7rem;margin:.92rem 0 .72rem;padding:.78rem 1rem;border:1px solid #e7ebf1;border-radius:12px;background:#f8fafc;color:#344054;font-size:.8rem;font-weight:700;}.supplier-index-fraction{display:inline-flex;flex-direction:column;align-items:center;line-height:1.3;}.supplier-index-fraction span:first-child{padding:0 .52rem .18rem;border-bottom:1px solid #98a2b3;}.supplier-index-fraction span:last-child{padding-top:.18rem;}.supplier-index-info-note{font-size:.75rem!important;color:#667085!important;}.supplier-index-ranges{display:grid;gap:.2rem;}.supplier-index-range{--range-color:#16a34a;--range-soft:#dcfce7;--range-ink:#166534;display:grid;grid-template-columns:42px 130px minmax(0,1fr);align-items:center;gap:.65rem;padding:.48rem .35rem;border-radius:10px;}.supplier-index-range:hover{background:#f8fafc;}.supplier-index-range--very-good{--range-color:#22c55e;--range-soft:#e8fbd9;--range-ink:#166534;}.supplier-index-range--attention{--range-color:#eab308;--range-soft:#fef9c3;--range-ink:#854d0e;}.supplier-index-range--regular{--range-color:#f59e0b;--range-soft:#ffedd5;--range-ink:#9a3412;}.supplier-index-range--bad{--range-color:#f97316;--range-soft:#ffddcc;--range-ink:#9a3412;}.supplier-index-range--critical{--range-color:#dc2626;--range-soft:#fee2e2;--range-ink:#991b1b;}.supplier-index-modal-face{display:block!important;width:38px;height:38px;}.supplier-index-modal-face svg{display:block;width:100%;height:100%;overflow:visible;}.supplier-index-modal-face .simf-bg{fill:var(--range-soft);stroke:var(--range-color);stroke-width:2;}.supplier-index-modal-face .simf-eye,.supplier-index-modal-face .simf-brow,.supplier-index-modal-face .simf-mouth{fill:none;stroke:var(--range-ink);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;}.supplier-index-modal-face .simf-brow{stroke-width:4.5;}.supplier-index-modal-face .simf-mouth{stroke-width:7.5;}.supplier-index-modal-face .simf-cheek{fill:var(--range-color);opacity:.18;}.supplier-index-range-score{display:flex;flex-direction:column;line-height:1.22;}.supplier-index-range-score strong,.supplier-index-range-score span{color:var(--range-color);}.supplier-index-range-score strong{font-size:.77rem;}.supplier-index-range-score span{font-size:.72rem;font-weight:800;}.supplier-index-range p{font-size:.74rem;line-height:1.35;}.supplier-index-recommendations ul{margin:0;padding-left:1.05rem;color:#475467;}.supplier-index-recommendations li{padding:.14rem 0;font-size:.77rem;line-height:1.43;}.supplier-index-recommendations li::marker{color:var(--red);}@media (max-width:575.98px){.supplier-index-card .supplier-index-header{right:1.15rem;left:1.15rem;}.supplier-index-card .supplier-index-main{grid-template-columns:112px minmax(0,1fr);gap:.8rem;}.supplier-index-card .supplier-index-meter{width:110px;height:110px;}.supplier-index-card .supplier-index-copy{min-height:98px;padding-left:.8rem;}.supplier-index-card .supplier-index-score{font-size:2.12rem;}.supplier-index-card .supplier-index-stats{gap:.42rem;margin-left:0;font-size:.66rem;}.supplier-index-info-dialog{width:calc(100% - 1rem);margin:.5rem auto;}.supplier-index-info-modal{max-height:calc(100vh - 1rem);}.supplier-index-info-header{padding:1.1rem;}.supplier-index-info-body{padding:0 1.1rem;}.supplier-index-formula{gap:.38rem;padding:.72rem .35rem;font-size:.69rem;}.supplier-index-range{grid-template-columns:36px minmax(0,1fr);gap:.48rem;padding:.48rem 0;}.supplier-index-range p{grid-column:2;font-size:.71rem;}.supplier-index-modal-face{width:33px;height:33px;}.supplier-index-range-score{flex-direction:row;align-items:baseline;gap:.35rem;}.supplier-index-range-score strong,.supplier-index-range-score span{font-size:.7rem;}}
