* {
    box-sizing: border-box;
}

body.tender-page {
    margin: 0;
    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(130, 32, 18, .17),
            transparent 31rem
        ),
        #101214;
    color: #f4f5f7;
}

.tender-shell {
    width: min(1600px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 80px;
}

.tender-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.tender-brand,
.tender-header-meta,
.tender-card-top,
.tender-tags,
.tender-signals,
.filter-actions,
.result-head,
.tender-pagination {
    display: flex;
    align-items: center;
}

.tender-brand {
    gap: 16px;
}

.tender-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.tender-brand span,
.tender-header-meta,
.eyebrow,
.result-head span,
.tender-card-value > span {
    color: #8491a3;
    font-size: 12px;
    letter-spacing: .12em;
}

.tender-brand strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

.tender-header-meta {
    gap: 24px;
}

.data-badge {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: #e8ebef;
    font-weight: 700;
}

.data-badge i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: #4de18b;
    box-shadow: 0 0 12px rgba(77,225,139,.7);
}

.tender-nav {
    height: 64px;
    display: flex;
    align-items: stretch;
    gap: 34px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.tender-nav a {
    display: flex;
    align-items: center;
    position: relative;
    color: #8996a8;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.tender-nav a.active {
    color: #fff;
}

.tender-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #ff8a00;
}

.tender-hero {
    min-height: 360px;
    margin-top: 34px;
    padding: 58px;
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    gap: 70px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    background:
        linear-gradient(
            115deg,
            rgba(100,25,13,.58),
            rgba(27,28,30,.94) 48%,
            rgba(91,61,19,.25)
        );
}

.eyebrow {
    color: #ff9c18;
    font-weight: 800;
}

.tender-hero h1 {
    max-width: 850px;
    margin: 16px 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.tender-hero p {
    max-width: 730px;
    margin: 0;
    color: #aeb6c1;
    line-height: 1.75;
}

.hero-kpi {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: rgba(11,13,15,.46);
}

.hero-kpi span,
.hero-kpi small {
    display: block;
    color: #8e99a8;
}

.hero-kpi strong {
    display: block;
    margin: 14px 0 10px;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -.04em;
}

.tender-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.tender-kpis article {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: #171a1d;
}

.tender-kpis span,
.tender-kpis small {
    display: block;
    color: #8190a3;
}

.tender-kpis strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
}

.tender-filter-panel {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    background: #171a1d;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 14px;
}

.filter-grid label {
    min-width: 0;
}

.filter-grid label > span {
    display: block;
    margin: 0 0 8px;
    color: #8491a3;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    outline: none;
    background: #111417;
    color: #e8ebef;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: rgba(255,145,0,.55);
}

.filter-actions {
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.filter-actions button,
.filter-actions a {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.filter-actions button {
    border: 0;
    background: #f08a00;
    color: #17120c;
    cursor: pointer;
}

.filter-actions a {
    border: 1px solid rgba(255,255,255,.1);
    color: #aab3bf;
}

.result-head {
    justify-content: space-between;
    margin: 42px 4px 18px;
}

.result-head h2 {
    margin: 6px 0 0;
    font-size: 29px;
}

.result-head > div:last-child {
    text-align: right;
}

.result-head strong {
    display: block;
    margin-top: 5px;
    font-size: 23px;
}

.tender-results {
    display: grid;
    gap: 12px;
}

.tender-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    background: #171a1d;
    transition:
        border-color .18s ease,
        transform .18s ease;
}

.tender-card:hover {
    border-color: rgba(255,145,0,.24);
    transform: translateY(-1px);
}

.tender-card-main {
    padding: 25px 28px;
}

.tender-card-top {
    gap: 12px;
}

.status-pill {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.status-done {
    color: #79e2a5;
    border: 1px solid rgba(80,200,130,.22);
    background: rgba(41,131,81,.11);
}

.status-failed {
    color: #ff927f;
    border: 1px solid rgba(255,100,80,.22);
    background: rgba(160,49,35,.12);
}

.tender-code {
    color: #758295;
    font-size: 11px;
    letter-spacing: .08em;
}

.tender-card h3 {
    margin: 15px 0 9px;
    font-size: 23px;
    line-height: 1.25;
}

.tender-card h3 a {
    color: #f4f5f7;
    text-decoration: none;
    transition: color .18s ease;
}

.tender-card h3 a:hover {
    color: #ffad35;
}

.tender-satker {
    color: #9ca7b4;
    font-size: 13px;
}

.tender-tags,
.tender-signals {
    flex-wrap: wrap;
    gap: 8px;
}

.tender-tags {
    margin-top: 16px;
}

.tender-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: #9ea8b4;
    font-size: 10px;
}

.tender-signals {
    margin-top: 18px;
    color: #77869a;
    font-size: 11px;
}

.tender-signals span {
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.tender-signals b {
    color: #e9edf2;
}

.tender-signals .signal-complete {
    color: #f3a641;
}

.tender-card-value {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    border-left: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.11);
    text-align: right;
}

.tender-card-value strong {
    margin-top: 7px;
    font-size: 25px;
}

.tender-card-value small {
    margin-top: 5px;
    color: #7e8b9c;
}

.tender-card-value a {
    margin-top: 22px;
    color: #f1a33a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.tender-pagination {
    justify-content: space-between;
    margin-top: 26px;
    padding: 18px 2px;
}

.tender-pagination a {
    color: #f0a43b;
    text-decoration: none;
}

.tender-pagination strong {
    color: #8793a3;
    font-size: 12px;
}

.empty-state {
    padding: 70px 30px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 20px;
    text-align: center;
    color: #8491a3;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state strong {
    margin-bottom: 8px;
    color: #e8ebef;
}

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

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

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

    .filter-wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .tender-shell {
        width: min(100% - 24px, 1600px);
    }

    .tender-header {
        align-items: flex-start;
        padding: 18px 0;
        gap: 18px;
        flex-direction: column;
    }

    .tender-header-meta {
        width: 100%;
        justify-content: space-between;
    }

    .tender-nav {
        gap: 22px;
        overflow-x: auto;
    }

    .tender-hero {
        min-height: auto;
        padding: 32px 24px;
        gap: 28px;
    }

    .tender-kpis,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-wide {
        grid-column: auto;
    }

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

    .tender-card-value {
        align-items: flex-start;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.07);
        text-align: left;
    }

    .result-head {
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }

    .result-head > div:last-child {
        text-align: left;
    }
}


/* ==========================================================
   NON-TENDER EXPLORER — INTELLIGENCE LINKS
   Shared Tender presentation layer
   ========================================================== */

.tender-card h3 > a {
    color: inherit;
    text-decoration: none;
    transition:
        color .18s ease,
        opacity .18s ease;
}

.tender-card h3 > a:hover {
    color: #ff9a15;
}

.tender-card .tender-detail-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;

    color: #ff9a15;
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;

    transition:
        color .18s ease,
        transform .18s ease;
}

.tender-card .tender-detail-link:hover {
    color: #ffb347;
    transform: translateX(3px);
}

.tender-card .tender-detail-link:visited {
    color: #ff9a15;
}

.tender-card .tender-detail-link:focus-visible {
    outline: 2px solid #ff9a15;
    outline-offset: 4px;
    border-radius: 3px;
}


/* =========================================================
   GLOBAL HEADER VISUAL PARITY v1.0
   Tender + Non-Tender Explorer
   Master visual: Dashboard / Ringkasan
   ========================================================= */

.tender-header .tender-brand {
    gap: 14px;
}

.tender-header .tender-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.tender-header .tender-brand > div > span {
    display: block;
    color: #a8adb5;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .145em;
    text-transform: uppercase;
}

.tender-header .tender-brand > div > strong {
    display: block;
    margin-top: 4px;
    color: #f5f6f7;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .015em;
}

.tender-header .tender-brand .brand-platform {
    display: block;
    margin-top: 4px;
    color: #ff9900;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}


/* Right-side global context */

.tender-header .command-context {
    min-width: 205px;
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 5px;
    text-align: right;
}

.tender-header .command-context-data {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    color: #a8adb5;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.tender-header .command-context-data .live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48d58b;
    box-shadow: 0 0 9px rgba(72,213,139,.45);
}

.tender-header .command-context-title {
    display: block;
    margin: 0;
    color: #f5f6f7;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.tender-header .command-context-clock {
    display: block;
    margin: 0;
    color: #7f8794;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}


@media (max-width: 900px) {

    .tender-header .tender-brand img {
        width: 52px;
        height: 52px;
    }

    .tender-header .tender-brand > div > strong {
        font-size: 13px;
    }

    .tender-header .tender-brand > div > span {
        font-size: 9px;
    }
}


@media (max-width: 700px) {

    .tender-header .tender-brand > div > span {
        font-size: 8px;
        letter-spacing: .10em;
    }

    .tender-header .tender-brand > div > strong {
        font-size: 11px;
    }

    .tender-header .tender-brand .brand-platform {
        font-size: 7px;
        letter-spacing: .14em;
    }

    .tender-header .command-context {
        min-width: 0;
    }

    .tender-header .command-context-title {
        display: none;
    }

    .tender-header .command-context-data,
    .tender-header .command-context-clock {
        font-size: 9px;
    }
}


/* =========================================================
   GLOBAL SHELL PARITY v1.0
   Master: Ringkasan / RUP
   ========================================================= */

.tender-header {
    min-height: 100px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Navigation = Command Center master */
.tender-nav {
    height: auto;
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 4px;

    margin-top: 1px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.tender-nav a {
    display: block;
    position: relative;

    padding: 19px 13px 17px;

    color: #858e9a;

    font-size: 9px;
    line-height: normal;
    font-weight: 800;
    letter-spacing: .11em;

    text-decoration: none;
    text-transform: uppercase;
}

.tender-nav a:hover,
.tender-nav a.active {
    color: #fff;
}

.tender-nav a.active::after {
    content: "";
    position: absolute;

    left: 13px;
    right: 13px;
    bottom: -1px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #991900,
            #ff9900
        );
}


/*
 * Local shell must remain transparent so the global
 * dashboard background flows through header + navigation.
 */
.tender-shell,
.tender-header,
.tender-nav {
    background: transparent;
}


@media (max-width: 1100px) {
    .tender-nav a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =========================================================
   GLOBAL BACKGROUND PARITY v1.0
   Master: Dashboard / Ringkasan / RUP
   ========================================================= */

body.tender-page,
body.td-page,
body.ntd-page {
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(153,25,0,.17),
            transparent 35%
        ),
        radial-gradient(
            circle at 0% 35%,
            rgba(255,153,0,.04),
            transparent 30%
        ),
        #090b0e;
}

