/* RPL candidate portal: additions on top of enrol.css (same hero, card and form styles). */
.status-banner { border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; display: grid; gap: .15rem; }
.status-banner b { font-size: 1rem; }
.status-banner span { font-size: .88rem; }
.status-banner.info { background: #EEF4FB; color: #1f4f7f; }
.status-banner.ok { background: var(--ok-soft); color: var(--ok); }
.status-banner.bad { background: var(--err-soft); color: var(--err); }

.rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
@media (max-width: 420px) { .rings { grid-template-columns: 1fr 1fr; } .ring-card { padding: .55rem; gap: .5rem; } .ring { width: 48px; height: 48px; } .ring::before { inset: 6px; } .ring b { font-size: 1rem; } }
.ring-card { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 14px; padding: .65rem .75rem; background: #fff; }
.ring-card.met { border-color: #b9dfc8; background: #f6fbf8; }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
        background: conic-gradient(var(--brand) calc(var(--p) * 1%), #EFE9E4 0); }
.ring-card.met .ring { background: conic-gradient(var(--ok) calc(var(--p) * 1%), #EFE9E4 0); }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring b, .ring small { position: relative; line-height: 1; }
.ring b { font-size: 1.15rem; margin-top: 6px; }
.ring small { font-size: .65rem; color: var(--muted); margin-top: -18px; }
.ring { grid-template-rows: 1fr 1fr; }
.ring-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.ring-sub { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.t-ok { color: var(--ok); font-weight: 600; } .t-info { color: #1f5f99; font-weight: 600; } .t-bad { color: var(--err); font-weight: 700; } .t-muted { color: var(--muted); }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 1.4rem 0 .5rem; font-size: 1.02rem; }
.sec-head span { font-size: .8rem; font-weight: 500; color: var(--muted); }

.job-row { display: flex; align-items: center; gap: .7rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .45rem;
           text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s, transform .1s; }
.job-row:hover { border-color: #d3c4bb; }
.job-row:active { transform: scale(.995); }
.job-date { width: 46px; flex: none; text-align: center; background: var(--cream); border-radius: 10px; padding: .3rem 0; line-height: 1.1; }
.job-date b { display: block; font-size: 1.15rem; color: var(--ink); }
.job-date small { font-size: .66rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.job-main { flex: 1; min-width: 0; }
.job-main b { display: block; color: var(--ink); }
.job-main small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-pills { display: flex; gap: 4px; margin-top: .3rem; }
.dp { font-size: .62rem; font-weight: 800; letter-spacing: .03em; border-radius: 5px; padding: .08rem .35rem; background: #f1eeeb; color: #a39a94; }
.dp.pending { background: #EEF4FB; color: #1f5f99; } .dp.approved { background: var(--ok-soft); color: var(--ok); } .dp.fix { background: var(--err-soft); color: var(--err); }

.st { font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .15rem .55rem; white-space: nowrap; flex: none; }
.st.muted { background: #f1eeeb; color: #6e6569; } .st.info { background: #EEF4FB; color: #1f5f99; }
.st.ok { background: var(--ok-soft); color: var(--ok); } .st.bad { background: var(--err-soft); color: var(--err); }
.st.big { font-size: .8rem; display: inline-block; margin-bottom: .75rem; }

.doc-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-row { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; background: #fff; }
.doc-row:last-child { border-bottom: 0; }
.doc-row .grow { flex: 1; }
.doc-row small { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d0ca; flex: none; }
.dot.pending { background: #5b8fcf; } .dot.approved { background: var(--ok); } .dot.fix { background: var(--err); }

.back { display: inline-block; text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.job-details { border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; margin-bottom: .75rem; }
.job-details summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: .1rem; }
.job-details summary::-webkit-details-marker { display: none; }
.job-details summary span { font-size: .82rem; color: var(--muted); }
.job-details[open] summary { margin-bottom: .75rem; }
.cat-card span { display: flex; flex-direction: column; }
.cat-card small { font-weight: 400; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .choice-grid.cols-3 { grid-template-columns: 1fr; } }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.act { cursor: pointer; }
.act input { position: absolute; opacity: 0; pointer-events: none; }
.act span { display: inline-block; border: 1.5px solid var(--line); border-radius: 99px; padding: .45rem .75rem; font-size: .85rem; font-weight: 500; background: #fff; transition: .15s; }
.act input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.act input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }

/* Upload tiles */
.up-tile { border: 1.5px dashed #d7cbc3; border-radius: 16px; padding: .8rem .85rem; margin-bottom: .7rem; background: #fff; }
.up-tile.pending, .up-tile.approved { border-style: solid; border-color: var(--line); }
.up-tile.approved { background: #fafdfb; }
.up-tile.fix { border-style: solid; border-color: #f0b8b3; background: #fffafa; }
.up-head b { color: var(--ink); }
.up-head small { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.req, .opt { font-size: .66rem; font-weight: 700; border-radius: 99px; padding: .05rem .45rem; vertical-align: 1px; }
.req { background: var(--brand-soft); color: var(--brand); }
.up-head .opt { background: #f1eeeb; color: #8b827c; }
.up-file { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; border-top: 1px solid #f2ede9; margin-top: .5rem; }
.up-file .grow { flex: 1; min-width: 0; }
.up-file .grow b { display: block; font-size: .85rem; color: var(--ink); word-break: break-word; }
.up-file .why { font-size: .8rem; color: var(--err); margin-top: .2rem; }
.thumb { width: 52px; height: 62px; border-radius: 8px; overflow: hidden; flex: none; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pdf { font-size: .7rem; font-weight: 800; color: var(--err); }
.mini-btn { border: 0; background: var(--brand); color: #fff; border-radius: 99px; font: 600 .78rem inherit; font-family: inherit; padding: .4rem .8rem; cursor: pointer; flex: none; }
.mini-btn.ghost { background: transparent; color: var(--muted); font-size: .95rem; padding: .3rem .5rem; }
.up-add { width: 100%; margin-top: .6rem; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); font: 600 .92rem inherit; font-family: inherit;
          padding: .8rem; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.up-add span { font-size: 1.2rem; color: var(--brand); }
.up-add:hover { background: #f3ece6; }
.saved-as { font-size: .74rem; color: var(--muted); margin-top: .45rem; text-align: center; }
.saved-as code { background: #f4efeb; border-radius: 6px; padding: .05rem .35rem; color: var(--ink); font-size: .76rem; }
.up-progress { margin-top: .5rem; height: 26px; background: #f1eeeb; border-radius: 99px; overflow: hidden; position: relative; }
.up-progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.up-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--ink); }
.up-error { color: var(--err); font-size: .82rem; font-weight: 600; margin-top: .4rem; }

.ref-box { border: 1px solid var(--line); border-radius: 14px; padding: .6rem .85rem .2rem; margin: 0 0 .7rem; }
.ref-box legend { font-weight: 700; font-size: .9rem; padding: 0 .3rem; }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: .5rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
