/* ==========================================================
   e-KATALOG EXPLORER v0.1
   Procurement Transaction Intelligence
   ========================================================== */

.ek-page {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 70px;
}

.ek-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr);
    gap: 36px;
    align-items: end;
    min-height: 290px;
    padding: 46px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 82% 20%,
            rgba(255,153,0,.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(153,25,0,.18),
            rgba(20,21,24,.92) 52%,
            rgba(12,13,15,.96)
        );
}

.ek-hero::after {
    content: "TRANSACTION INTELLIGENCE";
    position: absolute;
    right: -10px;
    bottom: -22px;
    font-size: clamp(38px, 5vw, 86px);
    font-weight: 900;
    letter-spacing: -.04em;
    color: rgba(255,255,255,.022);
    white-space: nowrap;
    pointer-events: none;
}

.ek-eyebrow,
.ek-section-head small,
.ek-result-head small {
    color: #ff9a15;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ek-hero h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(36px, 4vw, 66px);
    line-height: .98;
    letter-spacing: -.045em;
}

.ek-hero h1 span {
    color: #ff9a15;
}

.ek-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 15px;
    line-height: 1.75;
}

.ek-hero-value {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.ek-hero-value small {
    color: rgba(255,255,255,.42);
    font-size: 10px;
    letter-spacing: .15em;
}

.ek-hero-value strong {
    margin-top: 8px;
    color: #fff;
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1;
    letter-spacing: -.05em;
}

.ek-hero-value span {
    margin-top: 10px;
    color: #ff9a15;
    font-size: 13px;
    font-weight: 700;
}

.ek-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 16px 0 28px;
}

.ek-kpis article {
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.ek-kpis small {
    display: block;
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ek-kpis strong {
    display: block;
    margin: 6px 0 3px;
    font-size: 26px;
    letter-spacing: -.035em;
}

.ek-kpis span {
    color: rgba(255,255,255,.42);
    font-size: 11px;
}

.ek-filter-panel,
.ek-results {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    background: rgba(255,255,255,.018);
}

.ek-filter-panel {
    padding: 25px;
}

.ek-section-head,
.ek-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ek-section-head h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.ek-reset {
    color: #ff9a15;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.ek-filter-form {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.ek-filter-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ek-filter-form label > span {
    color: rgba(255,255,255,.45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
}

.ek-filter-form input,
.ek-filter-form select {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    outline: none;
    background: rgba(0,0,0,.2);
    color: #fff;
}

.ek-filter-form option {
    background: #17181b;
}

.ek-filter-form input:focus,
.ek-filter-form select:focus {
    border-color: rgba(255,154,21,.55);
}

.ek-filter-form button {
    min-height: 43px;
    align-self: end;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        #991900,
        #d84713
    );
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.ek-results {
    margin-top: 20px;
    padding: 25px;
}

.ek-result-head strong {
    margin-left: 8px;
    font-size: 17px;
}

.ek-result-head span,
.ek-page-info {
    color: rgba(255,255,255,.42);
    font-size: 12px;
}

.ek-order-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.ek-order-card {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        linear-gradient(
            100deg,
            rgba(255,255,255,.026),
            rgba(255,255,255,.012)
        );
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.ek-order-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(
        #991900,
        #ff9900
    );
    opacity: .72;
}

.ek-order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,154,21,.2);
    background: rgba(255,255,255,.035);
}

.ek-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

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

.ek-order-id small {
    color: #ff9a15;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.ek-order-id span {
    color: rgba(255,255,255,.65);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.ek-status-stack {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ek-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .035em;
}

.ek-status.success {
    background: rgba(65,194,120,.11);
    color: #70d99d;
}

.ek-status.danger {
    background: rgba(232,76,76,.11);
    color: #ef7b7b;
}

.ek-status.warning {
    background: rgba(255,166,46,.11);
    color: #ffb253;
}

.ek-status.info {
    background: rgba(86,151,221,.11);
    color: #81b8ef;
}

.ek-status.shipment {
    border: 1px solid rgba(255,255,255,.07);
}

.ek-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    padding-top: 17px;
}

.ek-rup-code {
    color: #ff9a15;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ek-card-main h3 {
    max-width: 900px;
    margin: 7px 0 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
}

.ek-card-main p {
    margin: 0;
    color: rgba(255,255,255,.45);
    font-size: 11px;
    line-height: 1.5;
}

.ek-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ek-meta span {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.47);
    font-size: 10px;
}

.ek-meta b {
    color: rgba(255,255,255,.82);
}

.ek-card-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.ek-card-value small {
    color: rgba(255,255,255,.35);
    font-size: 9px;
    letter-spacing: .11em;
}

.ek-card-value strong {
    margin: 5px 0 10px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -.035em;
}

.ek-rup-link,
.ek-detail-link {
    display: inline-flex;
    margin-top: 5px;
    color: #ff9a15;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    transition:
        transform .18s ease,
        color .18s ease;
}

.ek-rup-link:hover,
.ek-detail-link:hover {
    color: #ffb347;
    transform: translateX(3px);
}

.ek-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.ek-pagination > div {
    color: rgba(255,255,255,.42);
    font-size: 11px;
    text-align: center;
}

.ek-pagination a {
    color: #ff9a15;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.ek-pagination a:last-child {
    justify-self: end;
}

.ek-empty {
    padding: 50px 20px;
    text-align: center;
    color: rgba(255,255,255,.45);
}

.ek-footer {
    position: relative;
    overflow: hidden;
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.ek-footer::before {
    content: "INHIL PROCUREMENT INTELLIGENCE";
    position: absolute;
    left: 0;
    bottom: -16px;
    color: rgba(255,255,255,.018);
    font-size: clamp(30px, 5vw, 72px);
    font-weight: 900;
    white-space: nowrap;
}

.ek-footer > div {
    position: relative;
    z-index: 1;
}

.ek-footer strong,
.ek-footer span {
    display: block;
}

.ek-footer strong {
    font-size: 11px;
    letter-spacing: .08em;
}

.ek-footer > div > span {
    margin-top: 4px;
    color: rgba(255,255,255,.35);
    font-size: 10px;
}

.ek-footer-state {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.45);
    font-size: 10px;
}

.ek-footer-state span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #55c982;
    box-shadow: 0 0 12px rgba(85,201,130,.45);
}

@media (max-width: 1050px) {
    .ek-hero {
        grid-template-columns: 1fr;
    }

    .ek-hero-value {
        align-items: flex-start;
        text-align: left;
    }

    .ek-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .ek-filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .ek-page,
    .ek-footer {
        width: min(100% - 24px, 1480px);
    }

    .ek-page {
        padding-top: 18px;
    }

    .ek-hero {
        min-height: 0;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .ek-hero h1 {
        font-size: 39px;
    }

    .ek-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .ek-filter-form {
        grid-template-columns: 1fr;
    }

    .ek-card-top,
    .ek-section-head,
    .ek-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ek-status-stack {
        justify-content: flex-start;
    }

    .ek-card-grid {
        grid-template-columns: 1fr;
    }

    .ek-card-value {
        align-items: flex-start;
        text-align: left;
        padding-top: 14px;
        border-top: 1px solid rgba(255,255,255,.05);
    }

    .ek-pagination {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ek-pagination a,
    .ek-pagination a:last-child {
        justify-self: center;
    }

    .ek-footer {
        flex-direction: column;
    }
}


/* ==========================================================
   e-KATALOG BRAND LINK NORMALIZATION
   Keep header identity identical to Command Center
   ========================================================== */

a.brand,
a.brand:link,
a.brand:visited,
a.brand:hover,
a.brand:active {
    color: inherit;
    text-decoration: none;
}

a.brand .brand-kicker,
a.brand:visited .brand-kicker {
    color: inherit;
    text-decoration: none;
}

a.brand .brand-title,
a.brand:visited .brand-title {
    color: inherit;
    text-decoration: none;
}
