﻿/* PROMOTION CAMPAIGNS · ATELIER PREMIUM 2026 · Blazor isolated CSS */
.pcm-page {
    --ink: #14273f;
    --muted: #74839a;
    --line: #e5ebf2;
    --navy: #101f39;
    --blue: #225eae;
    --green: #13846f;
    position: relative;
    isolation: isolate;
    min-height: 100%;
    padding: 28px clamp(14px,2.7vw,46px) 60px;
    color: var(--ink);
    font-family: Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    font-size: 14px
}

    .pcm-page * {
        box-sizing: border-box
    }

.pcm-shell {
    max-width: 1600px;
    margin: auto;
    position: relative;
    z-index: 1
}

.pcm-ambient {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: blur(3px);
    border-radius: 50%
}

.pcm-ambient--one {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle,#e2ebffb9,transparent 73%);
    top: 220px;
    right: 0
}

.pcm-ambient--two {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle,#d8f6ee75,transparent 73%);
    top: 800px;
    left: 0
}

.pcm-hero {
    position: relative;
    overflow: hidden;
    min-height: 257px;
    padding: 42px clamp(25px,3.7vw,56px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background: radial-gradient(circle at 76% 11%,#3559907a,transparent 38%),radial-gradient(circle at 2% 120%,#24648653,transparent 37%),linear-gradient(115deg,#101d35 0%,#182e4c 57%,#13243e 100%);
    border: 1px solid #45658b45;
    border-radius: 25px;
    box-shadow: 0 22px 55px #203e641e;
    color: white
}

    .pcm-hero:after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .2;
        background-image: radial-gradient(#c6e4ff 0.9px,transparent 1px);
        background-size: 27px 27px;
        mask-image: linear-gradient(90deg,transparent 43%,#000 100%)
    }

.pcm-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 725px
}

.pcm-hero__eyebrow, .pcm-overline {
    font-size: 10px;
    letter-spacing: .17em;
    font-weight: 800;
    text-transform: uppercase
}

.pcm-hero__eyebrow {
    color: #a5c5e9;
    display: flex;
    align-items: center;
    gap: 12px
}

.pcm-hero__star {
    display: grid;
    place-items: center;
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #d8eaff;
    background: #ffffff1a;
    border: 1px solid #ffffff25
}

.pcm-hero__slash {
    color: #7c94b4
}

.pcm-hero h1 {
    margin: 24px 0 11px;
    font-size: clamp(31px,3vw,48px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.045em
}

    .pcm-hero h1 span {
        font-weight: 400;
        color: #bad1ef
    }

.pcm-hero p {
    max-width: 590px;
    margin: 0;
    color: #b9cbe2;
    line-height: 1.75;
    font-size: 13.5px
}

.pcm-hero__tags {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
    color: #c3d9f0;
    font-size: 11px
}

    .pcm-hero__tags > span {
        display: flex;
        align-items: center;
        gap: 8px
    }

.pcm-dot, .pcm-mini-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex-shrink: 0;
    background: #5be0b9;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #61dfba22
}

.pcm-hero__right {
    height: 180px;
    min-width: 255px;
    display: grid;
    justify-items: end;
    align-content: center;
    z-index: 2;
    position: relative
}

.pcm-orbit {
    position: absolute;
    right: 34px;
    top: -37px;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center
}

.pcm-orbit__ring {
    position: absolute;
    border: 1px solid #8ab3e34a;
    border-radius: 50%;
    inset: 1px;
    transform: rotate(-19deg) scaleX(.93)
}

    .pcm-orbit__ring:before {
        content: "";
        width: 7px;
        height: 7px;
        background: #7fdef0;
        border-radius: 100%;
        position: absolute;
        top: 17px;
        left: 46px;
        box-shadow: 0 0 20px #a0f1ff
    }

.pcm-orbit__ring--inner {
    inset: 23px;
    border-style: dashed;
    border-color: #ffffff26;
    transform: rotate(34deg)
}

.pcm-orbit__center {
    height: 92px;
    width: 92px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#a5cae81b,#ffffff0a);
    border: 1px solid #cbe8ff4b;
    color: #d0e8fa;
    font-size: 53px;
    font-weight: 200;
    box-shadow: inset 0 0 28px #a6d5fd18
}

.pcm-orbit i, .pcm-orbit em {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #b4ddff;
    border-radius: 50%;
    top: 44px;
    right: 19px
}

.pcm-orbit em {
    top: auto;
    bottom: 17px;
    right: 91px;
    background: #9cdcc8
}

.pcm-hero__new {
    align-self: end;
    z-index: 1;
    position: relative;
    background: #f7fbff;
    color: #153259;
    border: 0;
    border-radius: 11px;
    padding: 13px 19px;
    box-shadow: 0 9px 22px #080f1f55;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: transform .2s,box-shadow .2s;
    white-space: nowrap
}

    .pcm-hero__new:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px #080f1f77
    }

    .pcm-hero__new span {
        font-size: 18px;
        vertical-align: -1px;
        margin-right: 6px
    }

.pcm-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
    margin: 19px 0 21px
}

.pcm-metric {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    min-height: 130px;
    padding: 21px 23px;
    box-shadow: 0 6px 26px #18385808
}

.pcm-metric__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center
}

    .pcm-metric__top > span:first-child {
        font-size: 11px;
        color: #6d7c91;
        font-weight: 700
    }

.pcm-metric__icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #edf3ff;
    color: #3968a4;
    font-size: 20px
}

.pcm-metric__icon--mint {
    background: #e6f6ef;
    color: #198b65
}

.pcm-metric__icon--gold {
    background: #fff5df;
    color: #ba8438
}

.pcm-metric__icon--violet {
    background: #f1ecff;
    color: #7761b6
}

.pcm-metric > strong {
    display: block;
    margin-top: 4px;
    font-size: 34px;
    letter-spacing: -.055em;
    line-height: 1.25;
    font-weight: 750;
    font-variant-numeric: tabular-nums
}

.pcm-metric > small {
    color: #8b98a7;
    font-size: 10.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
    margin-top: 2px
}

.pcm-layout {
    display: grid;
    grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr);
    gap: 20px;
    align-items: stretch
}

.pcm-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e0e8f1;
    border-radius: 20px;
    box-shadow: 0 11px 40px #1d44640b;
    overflow: hidden
}

.pcm-card__head {
    padding: 24px 26px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    border-bottom: 1px solid #eff2f7
}

.pcm-heading__number {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid #cbdaf0;
    background: #eff5fd;
    border-radius: 13px;
    color: #38649b;
    font-weight: 800;
    font-size: 15px
}

.pcm-heading__number--violet {
    background: #f2edfd;
    color: #7d5db7;
    border-color: #e8ddfc
}

.pcm-heading__number--muted {
    background: #f0f4f8;
    color: #607995;
    border-color: #e5ebf0
}

.pcm-overline {
    color: #51779f;
    font-size: 9px;
    letter-spacing: .14em
}

.pcm-card__head h2 {
    font-size: 20px;
    letter-spacing: -.035em;
    font-weight: 780;
    margin: 5px 0 3px
}

.pcm-card__head p {
    margin: 0;
    color: #91a0af;
    font-size: 11px
}

.pcm-card__decor {
    margin-left: auto;
    color: #dce5f2;
    font-size: 30px
}

.pcm-card__body {
    padding: 22px 26px 20px
}

.pcm-field {
    min-width: 0
}

    .pcm-field label {
        display: block;
        font-size: 11.5px;
        color: #435975;
        font-weight: 750;
        margin-bottom: 9px
    }

.pcm-required {
    color: #d15b6c
}

.pcm-field small {
    display: block;
    color: #a1aeba;
    font-size: 10px;
    margin-top: 7px
}

.pcm-input {
    width: 100%;
    display: block;
    min-width: 0;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    min-height: 42px;
    background: #fbfcfe;
    padding: 10px 13px;
    outline: none;
    font: inherit;
    font-size: 12px;
    color: #263c58;
    transition: border-color .2s,box-shadow .2s,background .2s
}

    .pcm-input::placeholder {
        color: #a5b0c0
    }

    .pcm-input:hover {
        border-color: #afc3de
    }

    .pcm-input:focus {
        border-color: #6490c8;
        box-shadow: 0 0 0 4px #5d99d41f;
        background: white
    }

    .pcm-input:disabled {
        opacity: .66;
        cursor: wait
    }

.pcm-input--select {
    padding-right: 24px;
    cursor: pointer
}

.pcm-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px 15px
}

.pcm-subheading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    color: #344c69
}

.pcm-subheading__glyph {
    font-size: 17px;
    color: #4878ad
}

.pcm-subheading i {
    height: 1px;
    background: #edf1f6;
    flex: 1
}

.pcm-discount-input {
    position: relative
}

    .pcm-discount-input .pcm-input {
        font-size: 17px;
        font-weight: 750;
        padding-right: 42px;
        font-variant-numeric: tabular-nums
    }

    .pcm-discount-input > span {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 800;
        color: #7492b5
    }

.pcm-field--observation {
    margin-top: 19px
}

.pcm-field textarea.pcm-input {
    resize: vertical;
    min-height: 88px;
    line-height: 1.5
}

.pcm-builder__note {
    display: flex;
    gap: 11px;
    margin-top: 20px;
    background: #f2f7fd;
    border: 1px solid #e6eff9;
    border-radius: 11px;
    padding: 12px 13px;
    color: #577694
}

    .pcm-builder__note > span {
        font-size: 17px
    }

    .pcm-builder__note p {
        margin: 0;
        font-size: 10.5px;
        line-height: 1.65
    }

.pcm-card__footer {
    padding: 17px 26px;
    background: #fcfdff;
    border-top: 1px solid #edf1f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.pcm-footer-hint {
    color: #91a0b1;
    font-size: 10px
}

.pcm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 17px;
    border-radius: 10px;
    border: 0;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s,box-shadow .2s,opacity .2s
}

    .pcm-button:disabled, .pcm-refresh:disabled, .pcm-hero__new:disabled {
        opacity: .48;
        cursor: not-allowed;
        transform: none
    }

.pcm-button--primary {
    background: #183f75;
    color: #fff;
    box-shadow: 0 8px 16px #22598a2b
}

    .pcm-button--primary:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px #22598a46
    }

.pcm-button--ghost {
    background: #eef3f8;
    color: #334f70
}

.pcm-button--danger {
    color: #fff;
    background: #b83d55
}

    .pcm-button--danger:not(:disabled):hover {
        background: #9f2842
    }

.pcm-preview {
    display: flex;
    flex-direction: column
}

.pcm-preview-empty {
    flex: 1;
    min-height: 475px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 28px;
    text-align: center;
    background: radial-gradient(circle at 50% 40%,#f2f6fd,transparent 50%)
}

.pcm-preview-empty__orbit {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px dashed #cad8e9;
    position: relative;
    margin-bottom: 29px;
    background: radial-gradient(circle,#edf4ff,transparent 69%)
}

    .pcm-preview-empty__orbit:before, .pcm-preview-empty__orbit:after {
        content: "";
        position: absolute;
        inset: 20px;
        border: 1px solid #d7e5f4;
        border-radius: 50%
    }

    .pcm-preview-empty__orbit:after {
        inset: -10px;
        border-color: #eef2f9
    }

    .pcm-preview-empty__orbit > span {
        font-size: 56px;
        color: #668eb9;
        font-weight: 200
    }

.pcm-preview-empty h3 {
    margin: 13px 0 9px;
    font-size: 23px;
    letter-spacing: -.04em
}

.pcm-preview-empty p {
    max-width: 338px;
    color: #8998ab;
    font-size: 12px;
    line-height: 1.75;
    margin: 0
}

.pcm-preview-empty__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-size: 10px;
    font-weight: 750;
    color: #8d9bb0
}

.pcm-preview__body {
    padding: 22px 23px;
    flex: 1;
    min-height: 0
}

.pcm-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
    margin-bottom: 16px
}

    .pcm-stats > div {
        background: #f6f8fb;
        border: 1px solid #edf1f5;
        border-radius: 12px;
        padding: 14px 13px
    }

    .pcm-stats span {
        display: block;
        font-size: 10px;
        color: #8a99aa;
        margin-bottom: 7px
    }

    .pcm-stats b {
        font-weight: 800;
        font-size: 24px;
        letter-spacing: -.04em;
        font-variant-numeric: tabular-nums
    }

.pcm-text--green {
    color: #1c9271
}

.pcm-text--red {
    color: #bc4458
}

.pcm-preview__status {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    align-items: flex-start;
    font-size: 10.5px;
    line-height: 1.6
}

.pcm-preview__status--ok {
    background: #eaf8f2;
    color: #24795d
}

.pcm-preview__status--warning {
    background: #fff4e9;
    color: #a76b37
}

.pcm-preview__status > span {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-weight: 850
}

.pcm-preview__status p {
    margin: 0
}

.pcm-preview__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 0 11px;
    font-size: 11px
}

    .pcm-preview__toolbar > strong {
        font-size: 12px
    }

    .pcm-preview__toolbar > span {
        color: #92a0b2
    }

.pcm-card__footer--preview {
    margin-top: auto
}

.pcm-table-wrap {
    overflow: auto;
    scrollbar-color: #dce5ee transparent;
    scrollbar-width: thin
}

.pcm-table-wrap--preview {
    max-height: 395px
}

.pcm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    min-width: 560px
}

    .pcm-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #f7f9fc;
        text-align: left;
        padding: 13px 14px;
        border-bottom: 1px solid #e5edf5;
        color: #8190a3;
        font-size: 10px;
        white-space: nowrap;
        font-weight: 800;
        letter-spacing: .02em
    }

    .pcm-table td {
        padding: 15px 14px;
        border-bottom: 1px solid #f0f3f7;
        vertical-align: middle;
        font-size: 11px;
        color: #5a6980
    }

    .pcm-table tbody tr:hover {
        background: #fbfcff
    }

    .pcm-table td > strong {
        font-size: 11.5px;
        color: #223a59;
        font-weight: 800
    }

    .pcm-table td small {
        display: block;
        margin-top: 5px;
        color: #95a2b1;
        font-size: 10px;
        line-height: 1.55
    }

.pcm-table__num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.pcm-table__price {
    color: #168666 !important;
    font-weight: 800
}

.pcm-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5ebf2;
    border-radius: 100px;
    background: #f6f7fa;
    padding: 6px 9px;
    font-weight: 760;
    font-size: 10px;
    white-space: nowrap;
    color: #79889b
}

    .pcm-state i {
        width: 6px;
        height: 6px;
        border-radius: 100%;
        background: currentColor;
        flex-shrink: 0
    }

.pcm-state--ok, .pcm-state--live {
    color: #16836c;
    background: #ecf8f4;
    border-color: #d2ede2
}

.pcm-state--error, .pcm-state--cancelled {
    color: #ac4e65;
    background: #fff0f2;
    border-color: #f6dfe5
}

.pcm-state--planned {
    color: #926e36;
    background: #fffaeb;
    border-color: #f4eacc
}

.pcm-state--ended {
    color: #71829c;
    background: #f1f5f9;
    border-color: #e0e7f1
}

.pcm-history {
    margin-top: 22px
}

.pcm-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding-right: 23px;
    border-bottom: 1px solid #eff2f7
}

.pcm-history__title {
    border-bottom: 0;
    flex: 1
}

.pcm-history__tools {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    padding-top: 14px
}

.pcm-search {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe7f1;
    border-radius: 9px;
    padding: 0 10px;
    height: 36px;
    min-width: 190px;
    background: #fbfcfe
}

    .pcm-search span {
        font-size: 22px;
        color: #8fa2b9
    }

    .pcm-search input {
        border: 0;
        outline: 0;
        background: transparent;
        color: #324a68;
        font-size: 11px;
        width: 100%;
        min-width: 0
    }

.pcm-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #58708c;
    font-weight: 700;
    font-size: 10px;
    white-space: nowrap;
    cursor: pointer
}

    .pcm-toggle input {
        accent-color: #285a94
    }

.pcm-refresh {
    height: 36px;
    padding: 0 12px;
    background: #f0f5fb;
    border: 1px solid #e4ecf5;
    color: #416790;
    border-radius: 8px;
    font-weight: 750;
    font-size: 10px;
    cursor: pointer
}

.pcm-table-wrap--history {
    max-height: 460px
}

.pcm-history .pcm-table {
    min-width: 750px
}

    .pcm-history .pcm-table th {
        padding: 15px 22px
    }

    .pcm-history .pcm-table td {
        padding: 16px 22px
    }

.pcm-table__campaign {
    font-size: 12px !important
}

.pcm-date-range {
    color: #2f465f;
    font-weight: 760;
    font-size: 11px
}

.pcm-scope-tag {
    color: #6583a8;
    font-weight: 700;
    margin-right: 9px
}

.pcm-discount-pill {
    display: inline-block;
    background: #ecf8f3;
    border: 1px solid #d9eee5;
    color: #168766;
    border-radius: 9px;
    padding: 6px 9px;
    font-weight: 850
}

.pcm-table__actions {
    text-align: right !important
}

.pcm-table__cancel {
    border: 1px solid #f2dce1;
    background: #fff4f6;
    border-radius: 8px;
    color: #b13b57;
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
    font-weight: 800;
    cursor: pointer
}

    .pcm-table__cancel:hover {
        background: #ffe8ee
    }

    .pcm-table__cancel span {
        margin-left: 6px
    }

.pcm-table__none {
    color: #b1b9c3
}

.pcm-history__footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 17px 25px;
    background: #fbfcfe;
    color: #93a1b0;
    font-size: 10px
}

.pcm-history__empty {
    text-align: center;
    padding: 34px;
    color: #8d9bb0;
    font-size: 12px
}

.pcm-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 11px;
    margin: 17px 0;
    font-size: 12px;
    line-height: 1.55
}

.pcm-alert--error {
    background: #fff2f4;
    border-color: #f5dce4;
    color: #a93a53
}

.pcm-alert--success {
    background: #eaf8f2;
    border-color: #d1e9de;
    color: #14795c
}

.pcm-alert__icon {
    font-weight: 800;
    font-size: 14px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0
}

.pcm-alert button {
    background: none;
    border: 0;
    color: inherit;
    font-size: 22px;
    margin-left: auto;
    cursor: pointer
}

.pcm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: #071527ba;
    backdrop-filter: blur(7px)
}

.pcm-confirm {
    width: 100%;
    max-width: 490px;
    background: #fff;
    border-radius: 23px;
    box-shadow: 0 30px 100px #0005;
    padding: 34px;
    text-align: left
}

.pcm-confirm__symbol {
    display: grid;
    place-items: center;
    background: #fff1f2;
    color: #c44b61;
    border: 1px solid #f7d6dc;
    border-radius: 17px;
    width: 56px;
    height: 56px;
    font-size: 27px;
    font-weight: 900;
    margin-bottom: 21px
}

.pcm-confirm h2 {
    font-size: 27px;
    margin: 12px 0;
    letter-spacing: -.04em
}

.pcm-confirm > p {
    color: #72849b;
    line-height: 1.75;
    font-size: 12px
}

.pcm-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 27px;
    flex-wrap: wrap
}

@media(max-width:1200px) {
    .pcm-layout {
        grid-template-columns: 1fr
    }

    .pcm-preview-empty {
        min-height: 340px
    }

    .pcm-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .pcm-hero__right {
        min-width: 185px
    }

    .pcm-orbit {
        right: 10px
    }
}

@media(max-width:760px) {
    .pcm-page {
        padding: 14px 12px 45px
    }

    .pcm-hero {
        padding: 28px 23px;
        align-items: flex-start
    }

    .pcm-hero__right {
        min-width: 0;
        height: auto;
        align-self: flex-end
    }

    .pcm-orbit {
        display: none
    }

    .pcm-hero__new {
        white-space: normal
    }

    .pcm-history__head {
        padding-right: 0
    }

    .pcm-history__tools {
        padding: 0 20px 17px
    }

    .pcm-history__title {
        padding-bottom: 15px
    }

    .pcm-card__head {
        padding: 21px 19px
    }

    .pcm-card__body, .pcm-preview__body {
        padding: 19px
    }

    .pcm-hero__tags {
        gap: 11px
    }

    .pcm-card__footer {
        padding: 16px 19px
    }
}

@media(max-width:530px) {
    .pcm-hero {
        display: block
    }

    .pcm-hero__right {
        margin-top: 22px;
        display: block
    }

    .pcm-hero h1 {
        font-size: 32px
    }

    .pcm-hero__tags {
        font-size: 10px
    }

    .pcm-metrics {
        gap: 9px
    }

    .pcm-metric {
        padding: 15px;
        min-height: 118px
    }

        .pcm-metric > strong {
            font-size: 27px
        }

    .pcm-metric__top > span:first-child {
        font-size: 10px
    }

    .pcm-metric__icon {
        height: 29px;
        width: 29px
    }

    .pcm-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .pcm-card__footer {
        align-items: stretch
    }

        .pcm-card__footer .pcm-button {
            width: 100%
        }

    .pcm-stats {
        gap: 6px
    }

        .pcm-stats > div {
            padding: 12px 8px
        }

        .pcm-stats b {
            font-size: 20px
        }

    .pcm-confirm {
        padding: 24px
    }

    .pcm-confirm__actions .pcm-button {
        flex: 1
    }
}

/* Selector de ubicación exacta dentro de la estructura comercial */
.pcm-hierarchy {
    grid-column: 1/-1;
    background: linear-gradient(135deg,#f6f9fd,#fff);
    border: 1px solid #dfe9f5;
    border-radius: 14px;
    padding: 17px 17px 15px;
    margin-top: 2px
}

.pcm-hierarchy__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

    .pcm-hierarchy__head > span {
        font-size: 11px;
        color: #355c8a;
        font-weight: 850;
        letter-spacing: .025em
    }

    .pcm-hierarchy__head > small {
        color: #8b9aab;
        font-size: 10px
    }

.pcm-hierarchy__grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px
}

    .pcm-hierarchy__grid .pcm-field label {
        margin-bottom: 7px
    }

    .pcm-hierarchy__grid select:disabled {
        cursor: not-allowed;
        background: #eff2f6;
        color: #a1afbf
    }

.pcm-hierarchy__path {
    margin-top: 14px;
    border: 1px solid #d5e8e0;
    background: #ecf9f3;
    color: #19644f;
    border-radius: 10px;
    padding: 11px 13px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

    .pcm-hierarchy__path > span {
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap
    }

    .pcm-hierarchy__path > strong {
        font-size: 11px;
        flex: 1;
        min-width: 180px;
        overflow-wrap: anywhere
    }

    .pcm-hierarchy__path > small {
        font-size: 10px;
        white-space: nowrap;
        color: #548675
    }

@media(max-width:530px) {
    .pcm-hierarchy__grid {
        grid-template-columns: 1fr
    }

    .pcm-hierarchy {
        padding: 13px
    }
}

/* =============================================================
   IMPACTO AGRUPADO POR ASIGNACIÓN COMERCIAL · ATELIER PREMIUM
   Un único contenedor de scroll para todos los grupos y productos.
   ============================================================= */
.pcm-impact-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0 14px
}

    .pcm-impact-toolbar h3 {
        margin: 5px 0;
        font-size: 15px;
        color: #213550;
        letter-spacing: -.035em
    }

    .pcm-impact-toolbar small {
        color: #8492a5;
        font-size: 11px
    }

.pcm-impact-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap
}

.pcm-impact-search {
    flex: 1 1 220px !important;
    width: auto !important;
    min-width: 160px !important;
    margin: 0 !important;
    font-size: 11px !important
}

.pcm-impact-mini {
    border: 1px solid #dce5f0;
    background: #f6f9fd;
    color: #496581;
    border-radius: 9px;
    padding: 9px 11px;
    cursor: pointer;
    font-weight: 750;
    font-size: 10px;
    white-space: nowrap
}

    .pcm-impact-mini:hover {
        background: #eaf2fd;
        border-color: #b7d0ec
    }

.pcm-impact-scroll {
    height: min(72vh,880px);
    min-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable;
    scrollbar-color: #c6d8ec #f5f8fc;
    border: 1px solid #dde7f3;
    border-radius: 15px;
    background: #f8fafe;
    padding: 9px;
    overscroll-behavior: contain
}

.pcm-impact-group {
    overflow: hidden;
    border: 1px solid #e0e9f2;
    background: #fff;
    border-radius: 13px;
    margin-bottom: 9px;
    box-shadow: 0 4px 15px #172d4a09
}

.pcm-impact-group__head {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 0;
    background: linear-gradient(105deg,#f6f9fe,#fff);
    padding: 14px 13px;
    gap: 10px;
    cursor: pointer;
    color: #1b3556
}

    .pcm-impact-group__head:hover {
        background: #eef5ff
    }

.pcm-impact-group__glyph {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e7effa;
    color: #376798;
    font-size: 19px;
    flex-shrink: 0
}

.pcm-impact-group__title {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

    .pcm-impact-group__title small {
        font-size: 9px;
        color: #8295ae;
        letter-spacing: .1em;
        font-weight: 800
    }

    .pcm-impact-group__title strong {
        font-size: 11px;
        line-height: 1.6;
        overflow-wrap: anywhere
    }

.pcm-impact-group__count {
    background: #e9f1fb;
    border-radius: 20px;
    color: #416e9a;
    padding: 7px 10px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800
}

.pcm-impact-group__warning {
    background: #fff0ef;
    color: #b35959;
    border-radius: 20px;
    padding: 7px 9px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800
}

.pcm-impact-table-wrap {
    width: 100%;
    overflow-x: auto
}

.pcm-impact-table {
    min-width: 680px;
    width: 100%
}

    .pcm-impact-table th {
        position: static !important
    }

    .pcm-impact-table td {
        padding: 11px 9px !important
    }

.pcm-impact-thumb {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg,#f2f6fb,#fff);
    border: 1px solid #e7edf5;
    border-radius: 10px
}

    .pcm-impact-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.pcm-impact-product {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
    max-width: 380px
}

    .pcm-impact-product strong {
        color: #223d62;
        font-size: 11px
    }

    .pcm-impact-product span {
        color: #425a76;
        font-size: 11px;
        line-height: 1.45
    }

    .pcm-impact-product small {
        font-size: 10px;
        color: #8a9ab0;
        overflow-wrap: anywhere
    }

@media(max-width:700px) {
    .pcm-impact-scroll {
        height: 65vh;
        padding: 5px
    }

    .pcm-impact-group__head {
        flex-wrap: wrap
    }

    .pcm-impact-group__warning {
        margin-left: 36px
    }

    .pcm-impact-toolbar {
        padding-top: 15px
    }
}


/* ============================================================
   ATELIER / LAPTOP FIRST (1280x720 a 1920x1080)
   Prioridad: densidad funcional, lectura y catalogo horizontal.
   Overrides al final para conservar los estilos ya existentes.
   ============================================================ */
.pcm-page {
    max-width: none;
    width: 100%;
    padding: 14px clamp(12px,1.6vw,26px) 32px;
    box-sizing: border-box
}

.pcm-shell {
    max-width: 1760px;
    margin: 0 auto;
    min-width: 0
}

.pcm-ambient, .pcm-orbit {
    display: none !important
}

.pcm-hero {
    min-height: 0 !important;
    padding: 18px 24px !important;
    margin-bottom: 12px !important;
    border-radius: 15px !important;
    gap: 15px !important;
    align-items: center !important
}

    .pcm-hero h1 {
        font-size: clamp(21px,1.65vw,27px) !important;
        line-height: 1.16 !important;
        margin: 5px 0 !important;
        letter-spacing: -.028em !important
    }

    .pcm-hero p {
        font-size: 11px !important;
        line-height: 1.45 !important;
        max-width: 840px !important;
        margin: 0 !important
    }

.pcm-hero__eyebrow {
    font-size: 9px !important;
    letter-spacing: .12em !important
}

.pcm-hero__tags {
    display: none !important
}

.pcm-hero__right {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    align-self: center !important;
    flex-shrink: 0
}

.pcm-hero__new {
    padding: 9px 14px !important;
    font-size: 11px !important;
    min-height: 36px !important;
    border-radius: 9px !important;
    white-space: nowrap
}

.pcm-metrics {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 10px !important;
    margin: 0 0 12px !important
}

.pcm-metric {
    min-height: 0 !important;
    padding: 11px 14px !important;
    border-radius: 12px !important
}

.pcm-metric__top {
    margin: 0 !important;
    gap: 6px !important
}

    .pcm-metric__top > span:first-child {
        font-size: 10px !important
    }

.pcm-metric__icon {
    width: 25px !important;
    height: 25px !important;
    font-size: 14px !important
}

.pcm-metric > strong {
    font-size: 23px !important;
    line-height: 1.2 !important;
    margin: 5px 0 0 !important
}

.pcm-metric > small {
    font-size: 9px !important;
    line-height: 1.3 !important
}
/* El formulario y el impacto nunca vuelven a dividir el ancho de un portátil. */
.pcm-layout, .pcm-layout--workspace {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: start !important
}

.pcm-card {
    min-width: 0 !important;
    border-radius: 14px !important
}

.pcm-card__head {
    padding: 13px 18px !important;
    gap: 10px !important
}

.pcm-heading__number {
    font-size: 12px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 9px !important
}

.pcm-card__head h2 {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
    letter-spacing: -.015em !important
}

.pcm-card__head p {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin: 2px 0 0 !important
}

.pcm-overline {
    font-size: 9px !important;
    letter-spacing: .09em !important
}

.pcm-card__decor {
    display: none !important
}

.pcm-card__body {
    padding: 14px 18px !important
}

.pcm-field label {
    font-size: 10px !important;
    margin-bottom: 5px !important
}

.pcm-field small {
    font-size: 9px !important;
    line-height: 1.35 !important
}

.pcm-input {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important
}

textarea.pcm-input {
    min-height: 48px !important;
    resize: vertical
}

.pcm-grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 9px 12px !important
}

    .pcm-grid > .pcm-hierarchy {
        grid-column: 1/-1
    }

.pcm-hierarchy {
    padding: 10px 12px !important;
    margin: 0 !important;
    border-radius: 10px !important
}

.pcm-hierarchy__head {
    margin-bottom: 8px !important
}

.pcm-hierarchy__grid {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 9px 12px !important
}

.pcm-hierarchy__path {
    margin-top: 8px !important;
    padding: 8px 10px !important
}

    .pcm-hierarchy__path > strong {
        font-size: 10px !important
    }

.pcm-subheading {
    margin: 11px 0 9px !important;
    gap: 8px !important
}

.pcm-field--observation {
    margin-top: 9px !important
}

.pcm-builder__note {
    margin-top: 10px !important;
    padding: 9px 12px !important;
    border-radius: 9px !important
}

    .pcm-builder__note p {
        font-size: 10px !important;
        line-height: 1.45 !important;
        margin: 0 !important
    }

.pcm-card__footer {
    padding: 10px 18px !important;
    gap: 8px !important;
    min-height: 0 !important
}

.pcm-footer-hint {
    font-size: 10px !important
}

.pcm-button {
    min-height: 34px !important;
    padding: 9px 13px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    margin: 0 !important
}

.pcm-preview-empty {
    min-height: 130px !important;
    padding: 20px !important
}

.pcm-preview-empty__orbit {
    display: none !important
}

.pcm-preview-empty h3 {
    font-size: 15px !important;
    margin: 5px 0 !important
}

.pcm-preview-empty p {
    font-size: 11px !important;
    max-width: 660px !important;
    margin: 5px auto !important
}

.pcm-preview-empty__steps {
    margin-top: 10px !important
}

.pcm-preview__body {
    padding: 12px 18px !important
}

.pcm-stats {
    gap: 8px !important;
    margin-bottom: 8px !important
}

    .pcm-stats > div {
        min-height: 0 !important;
        padding: 9px 12px !important
    }

    .pcm-stats b {
        font-size: 20px !important;
        line-height: 1.2 !important
    }

.pcm-preview__status {
    padding: 9px 12px !important;
    margin: 0 0 9px !important
}

    .pcm-preview__status p {
        font-size: 10px !important
    }

.pcm-impact-toolbar {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: end;
    gap: 10px !important;
    padding: 5px 0 10px !important;
    flex-wrap: wrap
}

    .pcm-impact-toolbar h3 {
        font-size: 13px !important;
        margin: 2px 0 !important;
        letter-spacing: 0 !important
    }

    .pcm-impact-toolbar small {
        font-size: 10px !important
    }

.pcm-impact-tools {
    flex: 1 1 360px;
    justify-content: flex-end
}

.pcm-impact-search {
    flex: 1 1 250px !important;
    max-width: 500px !important;
    height: 34px !important
}

.pcm-impact-mini {
    padding: 8px 10px !important;
    font-size: 10px !important
}
/* Scroll interno controlado, tambien horizontal; NUNCA se recorta el ultimo grupo. */
.pcm-impact-scroll {
    height: clamp(290px,55vh,650px) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    padding: 7px !important;
    scrollbar-gutter: stable !important;
    border-radius: 11px !important
}

.pcm-impact-group {
    border-radius: 9px !important;
    margin-bottom: 7px !important
}

.pcm-impact-group__head {
    padding: 8px 11px !important;
    gap: 8px !important
}

.pcm-impact-group__glyph {
    width: 24px !important;
    height: 24px !important;
    font-size: 15px !important
}

.pcm-impact-group__title strong {
    font-size: 11px !important;
    line-height: 1.4 !important
}

.pcm-impact-group__title small {
    font-size: 8px !important
}

.pcm-impact-group__count, .pcm-impact-group__warning {
    padding: 5px 8px !important;
    font-size: 9px !important
}

.pcm-impact-table {
    min-width: 760px !important
}

    .pcm-impact-table th, .pcm-impact-table td {
        padding: 7px 9px !important;
        font-size: 10px !important
    }

.pcm-impact-thumb {
    width: 44px !important;
    height: 44px !important;
    border-radius: 7px !important
}

.pcm-impact-product {
    gap: 2px !important;
    min-width: 190px !important;
    max-width: none !important
}

    .pcm-impact-product strong {
        font-size: 11px !important
    }

    .pcm-impact-product span, .pcm-impact-product small {
        font-size: 10px !important;
        line-height: 1.25 !important
    }

.pcm-history {
    margin-top: 12px !important
}

.pcm-history__head {
    gap: 8px !important;
    padding-right: 14px !important
}

.pcm-history__tools {
    padding: 7px 0 !important;
    gap: 8px !important
}

.pcm-search, .pcm-refresh {
    height: 32px !important
}

.pcm-table-wrap--history {
    max-height: 370px !important;
    overflow: auto !important
}

.pcm-history .pcm-table th, .pcm-history .pcm-table td {
    padding: 9px 13px !important;
    font-size: 10px !important
}

.pcm-history__footer {
    padding: 10px 15px !important
}

.pcm-confirm {
    padding: 22px !important;
    border-radius: 14px !important
}

    .pcm-confirm h2 {
        font-size: 19px !important
    }

@media(max-width:1050px) {
    .pcm-grid {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important
    }

    .pcm-hierarchy__grid {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important
    }
}

@media(max-width:720px) {
    .pcm-page {
        padding: 10px 9px 24px !important
    }

    .pcm-hero {
        padding: 14px !important;
        flex-wrap: wrap !important
    }

        .pcm-hero h1 {
            font-size: 21px !important
        }

    .pcm-hero__right {
        width: 100% !important
    }

    .pcm-metrics {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 7px !important
    }

    .pcm-metric {
        padding: 10px !important
    }

    .pcm-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important
    }

    .pcm-hierarchy__grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important
    }

    .pcm-card__head, .pcm-card__body, .pcm-preview__body {
        padding: 12px !important
    }

    .pcm-history__tools {
        padding: 9px 12px !important
    }

    .pcm-impact-toolbar {
        align-items: stretch !important
    }

    .pcm-impact-tools {
        justify-content: flex-start !important
    }

    .pcm-impact-scroll {
        height: 55vh !important
    }
}

@media(max-width:440px) {
    .pcm-grid, .pcm-hierarchy__grid {
        grid-template-columns: 1fr !important
    }

    .pcm-card__footer {
        flex-direction: column !important;
        align-items: stretch !important
    }

    .pcm-hero__new {
        width: 100% !important
    }

    .pcm-impact-scroll {
        height: 60vh !important
    }
}

/* ============================================================
   ATELIER 2026 — PORTAFOLIO + ASISTENTE EN DOS PASOS
   Compacto para pantallas 1366 × 768, sin JS.
   ============================================================ */
.pcm-portfolio-page .pcm-shell {
    max-width: 1580px;
    margin: 0 auto
}

.pcm-portfolio-page .pcm-hero {
    padding: 19px 24px !important;
    min-height: 0 !important;
    border-radius: 16px !important
}

    .pcm-portfolio-page .pcm-hero h1 {
        font-size: clamp(21px,2vw,28px) !important;
        margin: 7px 0 !important
    }

.pcm-portfolio-page .pcm-hero__right {
    height: auto !important;
    min-width: 0 !important
}

.pcm-portfolio-page .pcm-orbit {
    display: none !important
}

.pcm-portfolio-page .pcm-metrics {
    margin: 12px 0 !important;
    gap: 10px !important
}

.pcm-portfolio-page .pcm-metric {
    min-height: 86px !important;
    padding: 12px 16px !important;
    border-radius: 13px !important
}

    .pcm-portfolio-page .pcm-metric > strong {
        font-size: 24px !important
    }

.pcm-portfolio-page .pcm-history {
    margin-top: 0 !important
}

.pcm-portfolio-page .pcm-history__head {
    padding: 10px 17px !important
}

.pcm-portfolio-page .pcm-history__title {
    border: 0 !important;
    padding: 10px !important
}

    .pcm-portfolio-page .pcm-history__title h2 {
        font-size: 17px !important
    }

.pcm-portfolio-page .pcm-table-wrap--history {
    max-height: none !important;
    overflow: auto !important
}

    .pcm-portfolio-page .pcm-table-wrap--history .pcm-table {
        min-width: 760px
    }

.pcm-portfolio-page .pcm-wizardbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 20px;
    background: #142a48;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px #17345322
}

    .pcm-portfolio-page .pcm-wizardbar .pcm-overline {
        color: #9fc3ed
    }

    .pcm-portfolio-page .pcm-wizardbar h2 {
        font-size: 20px;
        line-height: 1.3;
        margin: 3px 0 2px;
        letter-spacing: -.02em;
        color: white
    }

    .pcm-portfolio-page .pcm-wizardbar p {
        margin: 0;
        font-size: 11px;
        color: #ccdcf1
    }

    .pcm-portfolio-page .pcm-wizardbar .pcm-button {
        white-space: nowrap;
        background: #ffffff1e;
        color: white;
        border: 1px solid #ffffff3b
    }

.pcm-portfolio-page .pcm-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 11px 0;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2eaf4;
    border-radius: 13px
}

.pcm-portfolio-page .pcm-progress__step {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    text-align: left;
    color: #8494aa;
    padding: 3px 7px;
    font-family: inherit
}

.pcm-portfolio-page button.pcm-progress__step {
    cursor: pointer
}

.pcm-portfolio-page .pcm-progress__step > span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    background: #f0f4fa;
    border-radius: 9px;
    font-weight: 800;
    font-size: 11px
}

.pcm-portfolio-page .pcm-progress__step b {
    display: block;
    font-size: 11px
}

.pcm-portfolio-page .pcm-progress__step small {
    display: block;
    font-size: 10px;
    margin-top: 1px
}

.pcm-portfolio-page .pcm-progress__step.is-current, .pcm-portfolio-page .pcm-progress__step.is-complete {
    color: #214d85
}

    .pcm-portfolio-page .pcm-progress__step.is-current > span {
        background: #183e72;
        color: white
    }

    .pcm-portfolio-page .pcm-progress__step.is-complete > span {
        background: #e6f7ed;
        color: #21865b
    }

.pcm-portfolio-page .pcm-progress__track {
    height: 2px;
    flex: 1;
    max-width: 75px;
    background: #d9e3f0
}

.pcm-portfolio-page .pcm-stage {
    width: 100%;
    margin-top: 0 !important;
    border-radius: 15px !important
}

    .pcm-portfolio-page .pcm-stage > .pcm-card__head {
        padding: 11px 19px !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-card__head h2 {
        font-size: 17px !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-card__body {
        padding: 13px 19px !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-hierarchy__grid {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-grid {
        grid-template-columns: repeat(3,minmax(0,1fr)) !important;
        gap: 10px 14px !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-hierarchy {
        grid-column: 1/-1
    }

    .pcm-portfolio-page .pcm-stage .pcm-field--observation {
        margin-top: 12px !important
    }

    .pcm-portfolio-page .pcm-stage .pcm-subheading {
        margin: 13px 0 10px !important
    }

.pcm-portfolio-page .pcm-stage__back {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: #f8fafd;
    border-bottom: 1px solid #e8eef7;
    font-size: 11px;
    color: #7790a7
}

.pcm-portfolio-page .pcm-impact-scroll {
    height: min(62vh,680px) !important;
    min-height: 330px !important
}

.pcm-portfolio-page .pcm-stage .pcm-preview__body {
    padding: 14px 19px !important
}

.pcm-portfolio-page .pcm-stage .pcm-card__footer {
    padding: 11px 19px !important
}

@media(max-width:1000px) {
    .pcm-portfolio-page .pcm-stage .pcm-hierarchy__grid, .pcm-portfolio-page .pcm-stage .pcm-grid {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important
    }
}

@media(max-width:650px) {
    .pcm-portfolio-page .pcm-stage .pcm-hierarchy__grid, .pcm-portfolio-page .pcm-stage .pcm-grid {
        grid-template-columns: 1fr !important
    }

    .pcm-portfolio-page .pcm-wizardbar {
        flex-wrap: wrap
    }

        .pcm-portfolio-page .pcm-wizardbar .pcm-button {
            width: 100%
        }

    .pcm-portfolio-page .pcm-progress__track {
        max-width: 20px
    }

    .pcm-portfolio-page .pcm-progress__step small {
        display: none
    }

    .pcm-portfolio-page .pcm-stage__back {
        flex-wrap: wrap
    }
}

/* Detalle histórico en modal: usable en pantallas 1366x768 y grandes catálogos. */
.pcm-portfolio-page .pcm-table__detail {
    border: 1px solid #cbdcf1;
    border-radius: 8px;
    background: #edf4fc;
    color: #174778;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    margin-right: 7px;
    white-space: nowrap
}

    .pcm-portfolio-page .pcm-table__detail:hover {
        background: #dcebf9
    }

.pcm-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: #09182ad4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    backdrop-filter: blur(7px)
}

.pcm-detail-dialog {
    display: flex;
    flex-direction: column;
    width: min(1320px,100%);
    max-height: calc(100dvh - 36px);
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 110px #03172f88;
    color: #203450;
    font-family: inherit
}

.pcm-detail-hero {
    flex-shrink: 0;
    background: linear-gradient(115deg,#102b4d,#1c4975);
    padding: 18px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.pcm-detail-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
    color: #9fc7f0
}

.pcm-detail-hero h2 {
    font-size: 21px !important;
    line-height: 1.2;
    margin: 6px 0 !important;
    color: #fff
}

.pcm-detail-hero p {
    font-size: 11px;
    margin: 0;
    color: #d0e0f2
}

.pcm-detail-close {
    width: 34px;
    height: 34px;
    background: #ffffff18;
    border: 1px solid #ffffff3b;
    color: white;
    border-radius: 9px;
    cursor: pointer
}

.pcm-detail-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 19px;
    border-bottom: 1px solid #e4ebf4
}

.pcm-detail-summary {
    font-size: 12px;
    color: #667990
}

    .pcm-detail-summary strong {
        color: #1d3e69
    }

    .pcm-detail-summary > span {
        padding: 0 5px
    }

.pcm-detail-tools {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap
}

.pcm-detail-search {
    width: min(340px,48vw) !important;
    font-size: 12px !important;
    padding: 9px 11px !important
}

.pcm-detail-tools button {
    border: 1px solid #d5e1ee;
    border-radius: 8px;
    padding: 9px 11px;
    background: #f6f9fd;
    color: #355473;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer
}

.pcm-detail-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 13px 19px;
    overscroll-behavior: contain;
    background: #f6f8fc
}

.pcm-detail-group {
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 11px;
    margin-bottom: 9px;
    overflow: hidden
}

.pcm-detail-group-head {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
    border: 0;
    padding: 11px 15px;
    background: #fff;
    cursor: pointer
}

    .pcm-detail-group-head:hover {
        background: #f7faff
    }

.pcm-detail-chevron {
    font-size: 21px;
    color: #476e9b;
    width: 15px
}

.pcm-detail-group-path {
    flex: 1;
    min-width: 0
}

    .pcm-detail-group-path small {
        display: block;
        font-size: 9px;
        letter-spacing: 1.1px;
        font-weight: 750;
        color: #8395ab
    }

    .pcm-detail-group-path strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: 12px;
        color: #284b73;
        margin-top: 3px
    }

.pcm-detail-count {
    font-size: 11px;
    color: #54759d;
    background: #eaf2fb;
    border-radius: 7px;
    padding: 6px 9px;
    white-space: nowrap
}

.pcm-detail-table-scroll {
    overflow-x: auto;
    border-top: 1px solid #e5edf5
}

.pcm-detail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    font-size: 12px
}

    .pcm-detail-table th {
        padding: 10px 12px;
        background: #f2f6fb;
        color: #7486a0;
        text-align: left;
        font-size: 10px
    }

    .pcm-detail-table td {
        padding: 9px 12px;
        border-top: 1px solid #edf1f6;
        vertical-align: middle
    }

.pcm-detail-money {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.pcm-detail-promo {
    font-weight: 800;
    color: #15805b
}

.pcm-detail-image {
    width: 49px;
    height: 49px;
    border-radius: 8px;
    border: 1px solid #e7edf5;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden
}

    .pcm-detail-image img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.pcm-detail-product strong, .pcm-detail-product span, .pcm-detail-product small {
    display: block
}

.pcm-detail-product strong {
    color: #244973
}

.pcm-detail-product span {
    margin-top: 3px;
    color: #324a63
}

.pcm-detail-product small {
    margin-top: 3px;
    color: #8696a8;
    font-size: 10px
}

.pcm-detail-footer {
    flex-shrink: 0;
    border-top: 1px solid #e0e8f2;
    padding: 10px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #7b8da3
}

    .pcm-detail-footer .pcm-button {
        margin: 0 !important;
        padding: 9px 15px !important
    }

.pcm-detail-empty {
    padding: 35px;
    text-align: center;
    color: #8395aa
}

@media(max-width:700px) {
    .pcm-detail-overlay {
        padding: 7px
    }

    .pcm-detail-dialog {
        max-height: calc(100dvh - 14px);
        border-radius: 11px
    }

    .pcm-detail-hero {
        padding: 13px
    }

        .pcm-detail-hero h2 {
            font-size: 17px !important
        }

    .pcm-detail-toolbar {
        padding: 9px 12px
    }

    .pcm-detail-tools, .pcm-detail-search {
        width: 100% !important
    }

    .pcm-detail-content {
        padding: 8px
    }

    .pcm-detail-footer {
        padding: 9px 12px
    }

        .pcm-detail-footer > span {
            display: none
        }
}
