/* ========================================================================== 
   BMJ Upload Portal — Professional UI v2.1.2
   Page scoped under .bmj-upload-page supaya dashboard/report legacy tidak terjejas.
   ========================================================================== */

:root {
    --bmj-navy: #0b1f3a;
    --bmj-navy-2: #12335d;
    --bmj-blue: #1b63d9;
    --bmj-cyan: #17a8c7;
    --bmj-bg: #f4f7fb;
    --bmj-card: #ffffff;
    --bmj-text: #172033;
    --bmj-muted: #718096;
    --bmj-border: #e3e9f2;
    --bmj-soft: #f8fafc;
    --bmj-success: #15803d;
    --bmj-success-soft: #ecfdf3;
    --bmj-shadow: 0 18px 50px rgba(12, 31, 58, 0.09);
}

body.bmj-upload-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0%, rgba(27, 99, 217, .08), transparent 28%),
        radial-gradient(circle at 0% 35%, rgba(23, 168, 199, .06), transparent 24%),
        var(--bmj-bg);
    color: var(--bmj-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bmj-upload-page *,
.bmj-upload-page *::before,
.bmj-upload-page *::after { box-sizing: border-box; }

.bmj-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 22px;
}

/* Topbar */
.bmj-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--bmj-navy) 0%, #102b4e 58%, #173b68 100%);
    color: #fff;
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 20px 45px rgba(11, 31, 58, .18);
    position: relative;
    overflow: hidden;
}

.bmj-topbar::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -75px;
    top: -115px;
    border-radius: 50%;
    border: 32px solid rgba(255,255,255,.045);
    pointer-events: none;
}

.bmj-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bmj-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #eaf5ff 100%);
    color: var(--bmj-navy);
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 9px 22px rgba(0,0,0,.16);
}
.bmj-eyebrow { color: #9cc9ff; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; margin-bottom: 4px; }
.bmj-brand h1 { font-size: 23px; line-height: 1.12; margin: 0; letter-spacing: -.25px; color: #fff; }
.bmj-brand p { margin: 5px 0 0; font-size: 12px; color: rgba(255,255,255,.62); font-weight: 500; }

.bmj-topbar-actions { display: flex; align-items: center; gap: 12px; z-index: 1; }
.bmj-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 116px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}
.bmj-live-status .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #62df95;
    box-shadow: 0 0 0 5px rgba(98,223,149,.12);
}
.bmj-live-status small { display: block; font-size: 9px; color: rgba(255,255,255,.56); margin-bottom: 1px; text-transform: uppercase; letter-spacing: .5px; }
.bmj-live-status strong { display: block; font-size: 12px; color: #fff; }
.bmj-live-status.processing .status-dot { background: #fbbf24; box-shadow: 0 0 0 5px rgba(251,191,36,.14); animation: bmjPulse 1.25s infinite; }
@keyframes bmjPulse { 50% { opacity: .42; } }

.bmj-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--bmj-navy);
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease;
}
.bmj-dashboard-btn:hover { color: var(--bmj-navy); transform: translateY(-1px); box-shadow: 0 13px 28px rgba(0,0,0,.16); }

/* Layout */
.bmj-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.bmj-main-card,
.bmj-info-card {
    background: var(--bmj-card);
    border: 1px solid rgba(217,225,237,.85);
    box-shadow: var(--bmj-shadow);
}

.bmj-main-card { border-radius: 20px; padding: 28px; }
.bmj-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; padding-bottom: 23px; border-bottom: 1px solid var(--bmj-border); }
.bmj-section-kicker { display: block; font-size: 10px; font-weight: 850; color: var(--bmj-blue); letter-spacing: 1.45px; margin-bottom: 6px; }
.bmj-card-header h2 { margin: 0; color: var(--bmj-text); font-size: 24px; line-height: 1.2; letter-spacing: -.45px; }
.bmj-card-header p { margin: 7px 0 0; max-width: 650px; color: var(--bmj-muted); font-size: 13px; line-height: 1.65; }
.bmj-step-badge { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--bmj-blue); background: #eef5ff; font-size: 13px; font-weight: 900; border: 1px solid #dbeafe; }

/* Form */
.bmj-form { display: grid; gap: 23px; }
.bmj-field-group { margin: 0; }
.bmj-label { display: flex !important; align-items: center; gap: 11px; margin: 0 0 10px !important; color: var(--bmj-text) !important; font-size: 13px !important; font-weight: 800 !important; }
.bmj-label .label-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf4ff; color: var(--bmj-blue); }
.bmj-label small { display: block; font-size: 10px; font-weight: 500; margin-top: 2px; color: #94a3b8; }

.bmj-select-wrap { position: relative; }
.bmj-upload-page .bmj-select-wrap select {
    appearance: none;
    width: 100%;
    height: 52px;
    margin: 0;
    border: 1px solid #d7dfeb;
    border-radius: 12px;
    padding: 0 46px 0 15px;
    background: #fff;
    color: #253047;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 3px 10px rgba(14,30,54,.025);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.bmj-upload-page .bmj-select-wrap select:focus { border-color: #7fb0ff; box-shadow: 0 0 0 4px rgba(27,99,217,.08); }
.select-arrow { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: #8ca0bb; font-size: 11px; pointer-events: none; }

.bmj-native-file { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; }
.bmj-upload-zone {
    min-height: 116px;
    width: 100%;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin: 0 !important;
    padding: 18px;
    border-radius: 15px;
    border: 1.5px dashed #b9c8dc;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.bmj-upload-zone:hover { border-color: #6e9fe8; background: #f5f9ff; transform: translateY(-1px); }
.bmj-upload-zone.has-file { border-style: solid; border-color: #8fd4a8; background: var(--bmj-success-soft); }
.upload-icon { width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center; background: #eaf2ff; color: var(--bmj-blue); font-size: 19px; }
.bmj-upload-zone.has-file .upload-icon { background: #dcfce7; color: var(--bmj-success); }
.upload-copy { min-width: 0; }
.upload-copy strong { display: block; color: #27344a; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-copy span { display: block; color: #8a98ab; font-size: 11px; margin-top: 4px; font-weight: 500; }
.upload-action { justify-self: end; border: 1px solid #d9e2ef; background: #fff; color: var(--bmj-blue); padding: 9px 12px; border-radius: 9px; font-size: 11px; font-weight: 800; box-shadow: 0 2px 7px rgba(0,0,0,.035); }

/* Route panel */
.bmj-route-panel { background: var(--bmj-soft); border: 1px solid var(--bmj-border); border-radius: 16px; padding: 19px; transition: border-color .2s ease; }
.bmj-route-panel.is-ready { border-color: #c9dcf8; }
.route-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.route-panel-head h3 { margin: 0; color: #233047; font-size: 16px; }
.auto-tag { display: inline-flex; align-items: center; gap: 6px; background: #edf4ff; color: #416897; border: 1px solid #dbeafe; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 750; white-space: nowrap; }

.bmj-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.metric-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 11px; min-width: 0; padding: 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #f0f5fb; color: #45617e; border-radius: 10px; font-size: 13px; }
.metric-card label { display: block; margin: 0 0 4px !important; color: #8592a5 !important; font-size: 9px !important; font-weight: 750 !important; text-transform: uppercase; letter-spacing: .4px; }
.metric-value-wrap { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.metric-value-wrap input { border: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; min-width: 0; width: 100% !important; height: auto !important; font-size: 17px !important; font-weight: 850 !important; color: #1f2c42 !important; }
.metric-value-wrap span { color: #8a98ab; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.metric-value-wrap.no-suffix input { font-size: 14px !important; }

.schedule-block { margin-top: 13px; }
.schedule-label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 7px; }
.schedule-label-row label { margin: 0 !important; color: #435168 !important; font-size: 11px !important; font-weight: 800 !important; }
.schedule-label-row small { color: #9aa7b7; font-size: 9px; }
.bmj-upload-page .schedule-block textarea { width: 100%; resize: vertical; min-height: 78px; margin: 0; border: 1px solid #dde4ed; border-radius: 11px; background: #fff; color: #455269; padding: 11px 13px; font-size: 11px; line-height: 1.65; font-weight: 650; box-shadow: none; }

.bmj-primary-btn {
    width: 100%;
    min-height: 65px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 13px;
    border: 0;
    border-radius: 14px;
    padding: 11px 15px;
    cursor: pointer;
    color: #fff;
    text-align: left;
    background: linear-gradient(135deg, #123a69 0%, #1556a5 60%, #1769c7 100%);
    box-shadow: 0 12px 28px rgba(20,86,165,.21);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.bmj-primary-btn:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(20,86,165,.27); filter: saturate(1.05); }
.bmj-primary-btn:disabled { cursor: wait; opacity: .84; transform: none; }
.bmj-primary-btn .btn-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.13); font-size: 15px; }
.bmj-primary-btn .btn-copy strong { display: block; font-size: 13px; font-weight: 850; }
.bmj-primary-btn .btn-copy small { display: block; color: rgba(255,255,255,.61); font-size: 9px; margin-top: 3px; font-weight: 500; }
.bmj-primary-btn .btn-arrow { font-size: 12px; opacity: .72; }

/* Side column */
.bmj-side-column { display: grid; gap: 15px; }
.bmj-info-card { border-radius: 17px; padding: 21px; }
.bmj-info-card.accent { background: linear-gradient(160deg, #0d2544 0%, #14375f 100%); color: #fff; border: 0; box-shadow: 0 18px 42px rgba(11,31,58,.16); }
.side-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #8ed9f0; font-size: 16px; }
.side-icon.small { width: 32px; height: 32px; font-size: 12px; background: #edf4ff; color: var(--bmj-blue); }
.bmj-info-card h3 { margin: 14px 0 7px; font-size: 15px; color: inherit; }
.bmj-info-card.accent p { margin: 0; color: rgba(255,255,255,.66); font-size: 11px; line-height: 1.65; }
.check-list { display: grid; gap: 9px; margin-top: 17px; }
.check-list div { display: flex; align-items: center; gap: 9px; font-size: 10px; color: rgba(255,255,255,.83); font-weight: 600; }
.check-list i { color: #6ee7a4; font-size: 11px; }

.side-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.side-card-title h3 { margin: 0; color: #26344b; }
.guide-row { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #edf1f6; }
.guide-row:first-of-type { border-top: 0; }
.guide-no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f2f6fb; color: #54708f; font-size: 9px; font-weight: 900; }
.guide-row strong { display: block; color: #334057; font-size: 10px; }
.guide-row small { display: block; margin-top: 3px; color: #96a3b4; font-size: 9px; line-height: 1.45; }

.bmj-mini-note { display: flex; align-items: center; gap: 11px; border-radius: 14px; padding: 14px 15px; background: #eefaf4; border: 1px solid #d7f0e2; color: #246844; }
.bmj-mini-note > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #daf3e5; }
.bmj-mini-note strong { display: block; font-size: 10px; }
.bmj-mini-note span { display: block; margin-top: 2px; font-size: 8.5px; color: #5c876f; line-height: 1.35; }

.bmj-footer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #98a5b4; font-size: 9px; font-weight: 600; padding: 19px 4px 0; }
.footer-sep { color: #c4cbd4; }

/* Responsive */
@media (max-width: 980px) {
    .bmj-main-grid { grid-template-columns: 1fr; }
    .bmj-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bmj-info-card.accent { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .bmj-shell { width: min(100% - 24px, 1180px); padding-top: 12px; }
    .bmj-topbar { align-items: flex-start; flex-direction: column; padding: 18px; border-radius: 16px; }
    .bmj-topbar-actions { width: 100%; justify-content: space-between; }
    .bmj-brand h1 { font-size: 19px; }
    .bmj-brand p { display: none; }
    .bmj-main-card { padding: 19px; border-radius: 16px; }
    .bmj-card-header h2 { font-size: 20px; }
    .bmj-step-badge { display: none; }
    .bmj-metrics { grid-template-columns: 1fr; }
    .bmj-upload-zone { grid-template-columns: auto 1fr; min-height: 100px; }
    .upload-action { display: none; }
    .bmj-side-column { grid-template-columns: 1fr; }
    .bmj-info-card.accent { grid-column: auto; }
    .route-panel-head { align-items: flex-start; flex-direction: column; }
    .auto-tag { white-space: normal; }
}

@media (max-width: 430px) {
    .bmj-dashboard-btn span { display: none; }
    .bmj-dashboard-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
    .bmj-live-status { min-width: 108px; }
    .bmj-card-header p { font-size: 12px; }
    .schedule-label-row small { display: none; }
}

/* BMJ INDEX FONT + PAJ LOGO v2.1.9 START */
body.bmj-upload-page {
    font-size: 16px;
}

.bmj-shell {
    width: min(1240px, calc(100% - 36px));
}

.bmj-brand-logo-wrap {
    width: 116px;
    min-width: 116px;
    height: 62px;
    padding: 8px 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, #eef5ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 10px 22px rgba(0,0,0,.16);
}

.bmj-brand-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bmj-eyebrow { font-size: 11px; letter-spacing: 1.8px; }
.bmj-brand h1 { font-size: 24px; }
.bmj-brand p { font-size: 13px; }
.bmj-dashboard-btn { font-size: 13px; padding: 13px 17px; }
.bmj-live-status small { font-size: 9.5px; }
.bmj-live-status strong { font-size: 13px; }

.bmj-card-header h2 { font-size: 26px; }
.bmj-card-header p { font-size: 14px; }
.bmj-section-kicker { font-size: 10.5px; }
.bmj-step-badge { font-size: 14px; }

.bmj-label { font-size: 14px !important; }
.bmj-label small { font-size: 11px; }
.bmj-upload-page .bmj-select-wrap select { font-size: 14px; }
.upload-copy strong { font-size: 14px; }
.upload-copy span { font-size: 11.5px; }
.upload-action { font-size: 11.5px; }

.route-panel-head h3 { font-size: 18px; }
.auto-tag { font-size: 10px; }
.metric-card label { font-size: 9.5px !important; }
.metric-value-wrap input { font-size: 18px !important; }
.metric-value-wrap.no-suffix input { font-size: 15px !important; }
.metric-value-wrap span { font-size: 9.5px; }
.schedule-label-row label { font-size: 12px !important; }
.schedule-label-row small { font-size: 9.5px; }
.bmj-upload-page .schedule-block textarea { font-size: 12px; }
.bmj-primary-btn .btn-copy strong { font-size: 14px; }
.bmj-primary-btn .btn-copy small { font-size: 10px; }
.bmj-primary-btn .btn-arrow { font-size: 13px; }

.bmj-info-card h3 { font-size: 16px; }
.bmj-info-card.accent p { font-size: 12px; }
.check-list div { font-size: 11px; }
.side-card-title h3 { font-size: 16px; }
.guide-no { font-size: 10px; }
.guide-row strong { font-size: 11px; }
.guide-row small { font-size: 9.5px; }
.bmj-mini-note strong { font-size: 11px; }
.bmj-mini-note span { font-size: 9px; }
.bmj-footer { font-size: 10px; }

@media (max-width: 700px) {
    .bmj-brand-logo-wrap {
        width: 96px;
        min-width: 96px;
        height: 54px;
        padding: 7px 8px;
    }
    .bmj-brand h1 { font-size: 21px; }
    .bmj-brand p { display: block; font-size: 12px; }
    .bmj-card-header h2 { font-size: 22px; }
}
/* BMJ INDEX FONT + PAJ LOGO v2.1.9 END */

/* BMJ BULK NAV v2.3.0 */
.bmj-bulk-nav-btn{color:#fff;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);box-shadow:none}.bmj-bulk-nav-btn:hover{color:#fff;background:rgba(255,255,255,.14)}
