/*! Ditat Theme v1.2.0 — assets/css/edi.css
 * (c) Ditat — https://ditat.com — All rights reserved */

/* ============ HERO ============ */
.edi-hero {
    background: radial-gradient(circle at 50% 45%, rgb(var(--hero-blue-2)) 0%, rgb(var(--hero-blue-3)) 52%, var(--navy-deep) 100%);
}

.edi-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
}

.edi-hero-center > *,
.edi-hero-card {
    opacity: 0;
    transform: translateY(14px);
    animation: edi-hero-in 700ms cubic-bezier(0.34, 1.05, 0.5, 1) forwards;
    animation-delay: var(--d, 0ms);
}

.js-reveal .edi-hero-center > *,
.js-reveal .edi-hero-card,
.js-reveal .edi-hero-card::after {
    animation-play-state: paused;
}

.js-reveal.is-revealed .edi-hero-center > *,
.js-reveal.is-revealed .edi-hero-card,
.js-reveal.is-revealed .edi-hero-card::after {
    animation-play-state: running;
}

.edi-hero-lead {
    --d: 120ms;
}

.edi-hero-cta {
    --d: 240ms;
}

.edi-hero-card--tender {
    --d: 320ms;
}

.edi-hero-card--shipment {
    --d: 440ms;
}

@keyframes edi-hero-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edi-hero-center {
    grid-column: 2;
    text-align: center;
    padding-bottom: 96px;
    min-width: 0;
}

.edi-hero-title {
    color: var(--white);
    font-size: clamp(30px, 3.3vw, 52px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
}

.edi-hero-line-top {
    font-size: clamp(36px, 4.2vw, 66px);
    line-height: 1.1;
}

.edi-hero-line-bottom {
    font-size: clamp(26px, 2.9vw, 46px);
}

.edi-hero-word {
    position: relative;
    display: inline-block;
}

.edi-hero-word > span {
    display: inline-block;
    font-size: clamp(42px, 4.9vw, 76px);
    line-height: 1.08;
    background-image:
        linear-gradient(100deg,
            rgb(247 110 94 / 0) 0%,
            rgb(247 110 94 / 0.1) 15%,
            rgb(247 110 94 / 0.35) 30%,
            rgb(247 110 94 / 0.7) 40%,
            rgb(247 110 94 / 0.95) 47%,
            #F76E5E 50%,
            rgb(247 110 94 / 0.95) 53%,
            rgb(247 110 94 / 0.7) 60%,
            rgb(247 110 94 / 0.35) 70%,
            rgb(247 110 94 / 0.1) 85%,
            rgb(247 110 94 / 0) 100%),
        linear-gradient(135deg, #FFEFEB 0%, #F9C9C0 100%);
    background-size: 80% 100%, 100% 100%;
    background-position: -420% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgb(247 110 94 / 0.38)) drop-shadow(0 0 48px rgb(247 110 94 / 0.2));
    animation: edi-word-sheen 7s linear infinite;
}

@keyframes edi-word-sheen {
    0% {
        background-position: -420% 0, 0 0;
    }
    100% {
        background-position: 520% 0, 0 0;
    }
}

@property --edi-glow {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.edi-hero-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -5px;
    border-radius: calc(var(--radius-lg) + 5px);
    padding: 5px;
    background: conic-gradient(from var(--edi-glow),
        rgb(247 110 94 / 0) 0deg,
        rgb(247 110 94 / 0) 226deg,
        rgb(247 110 94 / 0.7) 285deg,
        rgb(255 240 236 / 0.75) 322deg,
        rgb(255 255 255 / 0.28) 340deg,
        rgb(255 255 255 / 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgb(247 110 94 / 0.45)) drop-shadow(0 0 12px rgb(247 110 94 / 0.25));
    animation: edi-glow-spin 6.5s linear infinite;
}

.edi-hero-card--shipment::before {
    animation-direction: reverse;
    animation-delay: -3.25s;
}

@keyframes edi-glow-spin {
    to {
        --edi-glow: 360deg;
    }
}

.edi-hero-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 68px;
    height: 12px;
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    background-repeat: no-repeat;
    animation: edi-connector-in 500ms cubic-bezier(0.34, 1.05, 0.5, 1) forwards;
    animation-delay: 900ms;
}

@keyframes edi-connector-in {
    to {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
}

.edi-hero-card--tender::after {
    left: 100%;
    transform-origin: left center;
    background-image:
        radial-gradient(circle, var(--white) 5.5px, transparent 6px),
        linear-gradient(var(--white), var(--white));
    background-size: 12px 12px, 58px 2px;
    background-position: right center, left center;
}

.edi-hero-card--shipment::after {
    right: 100%;
    transform-origin: right center;
    background-image:
        radial-gradient(circle, var(--white) 5.5px, transparent 6px),
        linear-gradient(var(--white), var(--white));
    background-size: 12px 12px, 58px 2px;
    background-position: left center, right center;
}

.edi-hero-lead {
    color: rgb(255 255 255 / 0.9);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto 36px;
}

.edi-hero-cta {
    font-size: .9375rem;
}

/* ---- floating cards ---- */
.edi-hero-card {
    position: relative;
    width: min(280px, 100%);
    justify-self: start;
    align-self: start;
    margin-top: 8px;
    padding: 22px 24px;
    background: var(--soft);
    border-radius: var(--radius-lg);
    box-shadow: -4px 0 6px rgb(24 56 92 / 0.25), 0 4px 6px rgb(24 56 92 / 0.25), 0 18px 40px -10px rgb(4 12 24 / 0.55);
}

.edi-hero-card--shipment {
    justify-self: end;
}

.edi-hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.edi-hero-card-eye {
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.edi-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: .6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.edi-chip--blue {
    background: #6FA0C9;
    color: var(--white);
}

.edi-chip--green {
    background: #82A922;
    color: var(--white);
}

.edi-chip--gray {
    background: #DFE7F0;
    color: var(--muted);
}

.edi-chip--red {
    background: #F8D1D1;
    color: var(--coral);
}

.edi-chip--plain {
    padding: 0;
    color: var(--muted);
}

.edi-hero-card-title {
    display: block;
    font-size: 1.3125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 10px;
}

.edi-hero-route-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.edi-hero-route-line {
    position: relative;
    flex: 1;
    max-width: 30px;
    height: 1px;
    margin: 0 auto;
    background: var(--muted-2);
}

.edi-hero-route-line::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--muted-2);
    border-right: 1px solid var(--muted-2);
    transform: translateY(-50%) rotate(45deg);
}

.edi-hero-route-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted-2);
}

.edi-hero-card-sep {
    display: block;
    height: 1px;
    margin: 12px 0;
    background: rgb(var(--muted-2-rgb) / 0.2);
}

.edi-hero-card-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1100px) {
    .edi-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 280px));
        justify-content: center;
        column-gap: 24px;
    }

    .edi-hero-center {
        display: contents;
    }

    .edi-hero-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .edi-hero-lead {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
    }

    .edi-hero-cta {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: center;
        margin-bottom: 64px;
    }

    .edi-hero-card::after {
        content: none;
    }

    .edi-hero-card {
        grid-row: 3;
        justify-self: center;
        margin-top: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 620px) {
    .edi-hero-grid {
        grid-template-columns: minmax(0, 320px);
    }

    .edi-hero-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .edi-hero-card--shipment {
        grid-row: 4;
        margin-bottom: 40px;
    }

    .edi-hero-cta {
        grid-row: 5;
    }
}

/* ============ CONTROLLED AUTOMATION ============ */
.edi-config {
    overflow-x: clip;
}

.edi-config-grid {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    margin-right: calc(50% - 50vw + var(--sb, 0px) / 2);
}

.edi-config-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.edi-config-title {
    text-align: left;
    margin: 0 0 16px;
}

.edi-config-sub {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0 0 44px;
}

.edi-config-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.edi-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
}

.edi-step-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--soft);
    border: 1px solid rgb(var(--navy-rgb) / 0.1);
    font-size: 1.25rem;
    font-weight: 800;
    color: rgb(var(--navy-rgb) / 0.5);
}

.edi-step-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.edi-step-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 1400px) {
    .edi-config-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-right: 0;
    }

    .edi-config-steps {
        justify-content: flex-start;
    }

    .edi-config-grid .aui-panel--bleed {
        border-right: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding-right: var(--aui-panel-pad, 26px);
        -webkit-mask-image: none;
        mask-image: none;
    }

    .edi-config-grid .aui-card--bleed {
        border-right: 1px solid var(--line);
        border-radius: var(--radius);
    }

    .edi-config-grid .aui-card--bleed .edi-cfg-fields {
        padding-right: 16px;
    }

    .edi-config-grid .aui-card--bleed .edi-cfg-tbl-row {
        padding-right: 16px;
    }

    .edi-config-grid .aui-card--bleed .edi-cfg-tbl-row.aui-thead {
        padding-right: 8px;
    }
}

@media (max-width: 560px) {
    .edi-step {
        gap: 16px;
        padding: 22px;
    }

    .edi-step-num {
        width: 48px;
        height: 48px;
        border-radius: var(--radius);
        font-size: 1.0625rem;
    }
}

/* ============ CONNECTED EXECUTION ============ */
.edi-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.edi-flow-card {
    padding: 30px;
}

.edi-flow-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.edi-flow-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgb(var(--cta-rgb) / 0.1);
    color: var(--coral);
}

.edi-flow-icon svg {
    width: 26px;
    height: 26px;
}

.edi-flow-badge {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: #EDF6FE;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: rgb(var(--navy-rgb) / 0.5);
    white-space: nowrap;
}

.edi-flow-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.edi-flow-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 900px) {
    .edi-flow-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }
}

/* ============ CTA BOX ============ */
.edi-cta-section {
    padding-top: 0;
}

.edi-cta {
    padding: 64px 32px;
    background: var(--soft);
    border-radius: var(--radius-lg);
    text-align: center;
}

.edi-cta .section-sub {
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .edi-cta {
        padding: 48px 24px;
    }
}

/* ============ MESSAGE CONTROL ============ */
.edi-messages {
    background: radial-gradient(150% 112% at 50% 100%, #072341 0%, #295383 63%, #295383 91%, #072B54 100%);
    padding-bottom: 0;
    overflow: clip;
}

.edi-messages .container {
    display: flow-root;
}

.edi-messages .eyebrow {
    color: var(--coral-bright);
}

.edi-msg {
    position: relative;
    max-width: 1200px;
    margin: 0 auto -29px;
    filter: drop-shadow(0 24px 60px rgb(12 38 66 / 0.4));
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 141px), rgb(0 0 0 / 0.85) calc(100% - 86px), rgb(0 0 0 / 0.45) calc(100% - 29px), rgb(0 0 0 / 0.45) 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 141px), rgb(0 0 0 / 0.85) calc(100% - 86px), rgb(0 0 0 / 0.45) calc(100% - 29px), rgb(0 0 0 / 0.45) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.edi-msg-head {
    padding: 24px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.edi-msg-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.edi-msg-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.edi-msg-filter {
    flex: 1 1 180px;
    min-width: 0;
}

.edi-msg-filter--range {
    flex: 1.8 1 345px;
}

.edi-msg-filter .edi-msg-input {
    width: 100%;
}

.edi-msg-filter-label {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.edi-msg-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edi-msg-filter-row .edi-msg-input {
    flex: 1;
    min-width: 0;
}

.edi-msg-input {
    display: inline-flex;
    gap: 10px;
    min-width: 150px;
    padding: 8px 12px;
    background: var(--white);
    white-space: nowrap;
}

.edi-msg-input--select {
    min-width: 180px;
}

.edi-msg-input--dd {
    min-width: 110px;
}

.edi-msg-input--select > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.edi-msg-to {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--muted);
}

.edi-msg-search {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 9px 18px;
    background: var(--app-ui);
    border-radius: 5px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: background-color .2s ease;
}

.edi-msg-search:hover {
    background: var(--app-ui-deep);
}

.edi-msg-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 26px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 0;
}

.edi-msg-group-title {
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 1px 2px 5px rgb(0 0 0 / 0.05);
}

.edi-msg-scroll {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 1px 2px 5px rgb(0 0 0 / 0.05);
}

.edi-msg-group:last-child .edi-msg-scroll {
    border-radius: 0;
}

.edi-msg-tr {
    display: grid;
    grid-template-columns:
        16px
        minmax(146px, 1.1fr)
        minmax(112px, 0.9fr)
        minmax(122px, 1fr)
        minmax(146px, 1.1fr)
        minmax(191px, 1.5fr)
        75px
        98px;
    gap: 14px;
    align-items: center;
    min-width: 1010px;
    padding: 11px 16px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--muted);
}

.edi-msg-tr > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edi-msg-tr.aui-thead {
    min-width: 994px;
    padding: 8px;
    font-weight: 600;
}

.edi-msg-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.edi-msg-tr > .edi-msg-info,
.edi-msg-tr > .edi-msg-flag {
    overflow: visible;
}

.edi-msg-flag--bad .aui-check {
    border-color: rgb(230 79 62 / 0.4);
}

.edi-msg-count {
    font-style: normal;
    font-size: .75rem;
}

.edi-msg-count--warn {
    color: var(--warning);
}

.edi-msg-count--bad {
    color: var(--app-ui-red);
}


@media (max-width: 820px) {
    .edi-msg-head {
        padding: 20px 22px;
    }

    .edi-msg-body {
        padding: 0 22px 20px;
    }

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

    .edi-msg-filter--range {
        grid-column: 1 / -1;
    }

    .edi-msg-filter-row .edi-msg-input {
        flex: 1;
        min-width: 0;
    }

    .edi-msg-input,
    .edi-msg-input--select,
    .edi-msg-input--dd {
        width: 100%;
        min-width: 0;
    }

    .edi-msg-search {
        justify-content: center;
        align-self: end;
        margin-left: 0;
    }
}

@media (max-width: 959px) {
    .edi-messages .section-sub br,
    .edi-cta .section-sub br {
        display: none;
    }
}

@media (max-width: 768px) {
    .edi-config-title br {
        display: none;
    }
}

