/* ============================================================================
   ORSI.digital — OD920 stylesheet 'extern'.
   Samengesteld uit: portal-shells.css.
   Geserveerd via /css/dynamic/extern.css. Bron = repo; wijziging altijd als SQL.
   ============================================================================ */

.orsi-portal-topbar,
.orsi-org-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: var(--orsi-deep);
    color: #fff;
}

.orsi-org-topbar {
    gap: 1.5rem;
}

.orsi-portal-topbar__brand,
.orsi-org-brand,
.orsi-org-nav a {
    color: #fff;
    text-decoration: none;
}

.orsi-portal-topbar__brand,
.orsi-org-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

.orsi-portal-topbar__user,
.orsi-org-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .9rem;
}

.orsi-portal-topbar__logout-btn,
.orsi-org-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    border-radius: 4px;
    padding: .25rem .75rem;
}

.orsi-portal-topbar__logout-btn {
    font-size: .85rem;
}

.orsi-portal-main,
.orsi-org-main {
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.orsi-portal-main {
    max-width: 720px;
}

/* Learning views opt into the wider portal shell through ViewData["PortalWide"]. */
.orsi-portal-main--wide {
    max-width: 960px;
}

.orsi-org-main {
    max-width: 1080px;
}

.orsi-portal-topbar__nav,
.orsi-org-nav {
    display: flex;
    gap: 1.25rem;
}

.orsi-portal-topbar__nav {
    align-items: center;
    font-size: .9rem;
}

.orsi-portal-topbar__nav a {
    color: #fff;
    text-decoration: none;
    opacity: .85;
}

.orsi-portal-topbar__nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .orsi-portal-topbar,
    .orsi-org-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .orsi-portal-topbar {
        gap: .75rem 1rem;
    }

    .orsi-portal-topbar__nav,
    .orsi-org-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: .5rem 1rem;
    }

    .orsi-portal-topbar__user,
    .orsi-org-user {
        width: 100%;
        justify-content: space-between;
    }

    .orsi-portal-main {
        padding: 1.25rem .75rem 2rem;
    }

    .orsi-org-main {
        padding: 1.25rem .75rem;
    }
}
/* audit-ui-batch-j-portal-topbar-20261002 - learner portal top bar: 44 px targets, brand and user on one row, the seven
   links in one horizontally scrollable row (the old bar overflowed the page at 768 px and was 156 px high at 375 px). */
@media (max-width:960px){
.orsi-portal-topbar{flex-wrap:wrap;gap:.25rem 1rem;align-items:center;padding:.5rem max(.75rem,env(safe-area-inset-right)) .5rem max(.75rem,env(safe-area-inset-left))}
.orsi-portal-topbar__brand{flex:1 1 0;min-width:0;display:flex;align-items:center;min-height:44px;line-height:1.25}
.orsi-portal-topbar__user{order:2;width:auto;flex:0 1 auto;min-width:0;max-width:62%;gap:.5rem}
.orsi-portal-topbar__user > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.orsi-portal-topbar__logout-btn{min-height:44px;padding:0 .9rem;font-size:.9rem}
.orsi-portal-topbar__nav{order:3;flex-wrap:nowrap;overflow-x:auto;gap:.25rem;margin:0 -.75rem;padding:0 .75rem;width:calc(100% + 1.5rem);scrollbar-width:none}
.orsi-portal-topbar__nav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 .75rem;font-size:.95rem;white-space:nowrap;opacity:1}
}

/* portal-trainings-20261006 - trainee portal "Trainings" overview and "Start a training" choice (portal redesign, phases 2 and 3).
   Additive: new classes only, so this block is safe to apply before the build is deployed. */
.orsi-trainings-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.orsi-trainings-chip{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:0 .9rem;border:1px solid var(--orsi-border,#C9D3E3);border-radius:999px;background:var(--orsi-card-bg,#fff);color:var(--orsi-deep,#2F3F8D);text-decoration:none;font-weight:600}
.orsi-trainings-chip:hover{background:var(--orsi-blue-050,#EEF4FB)}
.orsi-trainings-chip:focus-visible{outline:3px solid var(--orsi-orange,#EC6607);outline-offset:2px}
.orsi-trainings-chip--active{background:var(--orsi-deep,#2F3F8D);border-color:var(--orsi-deep,#2F3F8D);color:#fff}
.orsi-trainings-chip__count{font-weight:700;font-size:.85rem}
.orsi-trainings-filter summary{display:flex;align-items:center;min-height:44px;cursor:pointer}
.orsi-trainings-table th a{color:inherit;text-decoration:none;white-space:nowrap}
.orsi-trainings-table th[aria-sort="ascending"] a::after{content:" \25B2";font-size:.7em}
.orsi-trainings-table th[aria-sort="descending"] a::after{content:" \25BC";font-size:.7em}
.orsi-trainings-table th a:focus-visible{outline:3px solid var(--orsi-orange,#EC6607);outline-offset:2px}
.orsi-training-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .65rem;border:1px solid transparent;border-radius:999px;font-size:.85rem;font-weight:600;line-height:1.3}
.orsi-training-badge--ready{background:#E3F1FF;border-color:#9CC8EC;color:#00508A}
.orsi-training-badge--active{background:#E8EEFB;border-color:#B5C3EA;color:#2F3F8D}
.orsi-training-badge--done{background:#E6F4D7;border-color:#B7D88C;color:#3D5A0A}
.orsi-training-badge--waiting{background:#FFF3D6;border-color:#EBCB83;color:#6B4700}
.orsi-training-badge--ended{background:#ECEFF3;border-color:#C5CCD6;color:#4A5568}
.orsi-trainings-progress{display:block;width:100%;max-width:16rem;margin-top:.35rem}
.orsi-choice{min-width:0;margin:0;padding:0;border:0}
.orsi-choice__variant{margin-bottom:1rem}
.orsi-choice__options{display:flex;flex-wrap:wrap;gap:.5rem}
.orsi-choice__option{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem .5rem;min-height:44px;padding:.35rem .75rem;border:1px solid var(--orsi-border,#C9D3E3);border-radius:8px;background:var(--orsi-card-bg,#fff)}
.orsi-choice__option .form-check-input{flex:0 0 auto;width:1.25rem;height:1.25rem;margin:0}
.orsi-choice__option .form-check-label{display:flex;align-items:center;min-height:44px;padding:0 .25rem}
.orsi-choice__option--disabled{border-style:dashed;background:var(--orsi-surface,#F2F6FB);color:var(--orsi-muted,#5C6A82)}
@media (max-width:640px){
.orsi-trainings-chip{flex:1 1 auto;justify-content:center}
.orsi-choice__option{flex:1 1 100%}
.orsi-training-card .btn{min-height:44px}
}

/* portal-trainings-round2-20261007 - trainee portal round 2: next-step card, always-open filter, expandable variant and language overview, English badge,
   expiry hint, decline confirmation. Additive: new classes only, so this block is safe to apply before the build is deployed. */
.orsi-trainings-filter .form-select,.orsi-trainings-filter .form-control{min-height:44px}
.orsi-trainings-next{border-left:4px solid var(--orsi-orange,#EC6607)}
.orsi-trainings-next__button{display:block;width:100%;min-height:52px;white-space:normal}
.orsi-trainings-en{display:inline-block;margin-left:.4rem;padding:.05rem .45rem;border:1px solid #9CC8EC;border-radius:4px;background:#E3F1FF;color:#00508A;font-size:.75rem;font-weight:700;line-height:1.4;vertical-align:middle}
.orsi-trainings-expiry{display:inline-block;margin-top:.15rem;color:#8A4B00;font-size:.85rem;font-weight:600}
.orsi-trainings-actions{display:flex;flex-wrap:wrap;gap:.4rem}
.orsi-trainings-actions .btn,.orsi-training-card .btn{min-height:44px}
.orsi-trainings-offer{margin-top:.4rem;font-weight:400}
.orsi-trainings-offer__summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--orsi-deep,#2F3F8D);font-size:.9rem;font-weight:600}
.orsi-trainings-offer__summary:focus-visible{outline:3px solid var(--orsi-orange,#EC6607);outline-offset:2px}
.orsi-trainings-offer__panel{padding:.5rem 0 .25rem}
.orsi-trainings-offer__program{margin-bottom:.75rem}
.orsi-trainings-offer__group{margin-bottom:.75rem}
.orsi-trainings-offer__variant{margin:0 0 .35rem;font-weight:600}
.orsi-trainings-offer__chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.orsi-trainings-offer__item{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.orsi-trainings-offer__chip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 .9rem;border:1px solid var(--orsi-deep,#2F3F8D);border-radius:999px;background:var(--orsi-card-bg,#fff);color:var(--orsi-deep,#2F3F8D);font-weight:600;text-decoration:none}
a.orsi-trainings-offer__chip:hover{background:var(--orsi-deep,#2F3F8D);color:#fff}
a.orsi-trainings-offer__chip:focus-visible{outline:3px solid var(--orsi-orange,#EC6607);outline-offset:2px}
.orsi-trainings-offer__chip--disabled{border-style:dashed;border-color:var(--orsi-border,#C9D3E3);background:var(--orsi-surface,#F2F6FB);color:var(--orsi-muted,#5C6A82);font-weight:400}
.orsi-trainings-offer__reason{max-width:14rem;color:var(--orsi-muted,#5C6A82);font-size:.8rem}
.orsi-choice__help summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--orsi-deep,#2F3F8D);font-weight:600}
.orsi-trainings-decline__confirm,.orsi-trainings-decline__keep{min-height:44px}
.orsi-trainings-decline-link{font-weight:400}
@media (min-width:768px){
.orsi-trainings-next__button{display:inline-block;width:auto}
}
@media (max-width:640px){
.orsi-trainings-offer__chips{flex-direction:column}
.orsi-trainings-offer__item{width:100%}
.orsi-trainings-offer__chip{width:100%;justify-content:flex-start}
.orsi-trainings-offer__reason{max-width:none}
.orsi-trainings-decline__confirm,.orsi-trainings-decline__keep{width:100%}
}

/* BEGIN ui-unify-portal-20261008 - override block for the two portal Trainings scripts of 6 and 7 October (those executed scripts stay unchanged). Replaces the retired --orsi-border and the never defined --orsi-card-bg by tokens, the vaste hex badge colours by the status tokens (U11) and the orange focus ring by the one ring --orsi-focus (B4). Same selectors, appended later, so it wins by source order; where a modifier class (active, disabled) sat after its base class it is restated after the base override. Tokens only, no !important. */
.orsi-trainings-chip{border-color:var(--orsi-line-strong);background:var(--orsi-card)}
.orsi-trainings-chip:focus-visible{outline-color:var(--orsi-focus)}
.orsi-trainings-chip--active{background:var(--orsi-deep);border-color:var(--orsi-deep);color:var(--orsi-card)}
.orsi-trainings-table th a:focus-visible{outline-color:var(--orsi-focus)}
.orsi-training-badge--ready{background:var(--orsi-info-bg);border-color:var(--orsi-info-line);color:var(--orsi-info-fg)}
.orsi-training-badge--active{background:var(--orsi-blue-050);border-color:var(--orsi-blue-100);color:var(--orsi-deep)}
.orsi-training-badge--done{background:var(--orsi-success-bg);border-color:var(--orsi-success-line);color:var(--orsi-success-fg)}
.orsi-training-badge--waiting{background:var(--orsi-warning-bg);border-color:var(--orsi-warning-line);color:var(--orsi-warning-fg)}
.orsi-training-badge--ended{background:var(--orsi-surface);border-color:var(--orsi-line);color:var(--orsi-muted)}
.orsi-choice__option{border-color:var(--orsi-line-strong);background:var(--orsi-card)}
.orsi-choice__option--disabled{background:var(--orsi-surface)}
.orsi-trainings-en{border-color:var(--orsi-info-line);background:var(--orsi-info-bg);color:var(--orsi-info-fg)}
.orsi-trainings-expiry{color:var(--orsi-warning-fg)}
.orsi-trainings-offer__summary:focus-visible{outline-color:var(--orsi-focus)}
.orsi-trainings-offer__chip{background:var(--orsi-card)}
a.orsi-trainings-offer__chip:hover{color:var(--orsi-card)}
a.orsi-trainings-offer__chip:focus-visible{outline-color:var(--orsi-focus)}
.orsi-trainings-offer__chip--disabled{border-color:var(--orsi-line-strong);background:var(--orsi-surface)}
/* END ui-unify-portal-20261008 */

/* BEGIN extern-trainings-restore-20261008 - two rules of the portal Trainings overview that the first and second Trainings scripts contain but the database does not. Key extern.
   Cause: ORSI_portal_trainings_css_20261006.sql and ORSI_portal_trainings_round2_css_20261007.sql contain .orsi-training-card{overflow-wrap:anywhere} and .orsi-trainings-offer-row>td{padding-top:0;border-top:0}, and the mirror portal-shells.css has them, but the extern stylesheet of the export of 8 October has neither (the database block is an earlier text of those scripts). The marker guard of those scripts makes a second run a no-op, and an executed script is never edited, so this block adds the two rules once.
   Effect: a long unbroken word in a training card on a phone wraps inside the card instead of widening it; the offer overview row on a tablet or desktop sits directly under its training row (padding-top 0) instead of 8px lower. A third rule of the same scripts, .orsi-trainings-cards{display:block}, is not restored: the element is already a block box and d-md-none hides it with !important from 768px, so the rule does nothing.
   Additive and idempotent: one marker, one block between BEGIN/END, independent of every other CSS script. Undo with the rollback script of this block. */
.orsi-training-card{overflow-wrap:anywhere}
.orsi-trainings-offer-row>td{padding-top:0;border-top:0}
/* END extern-trainings-restore-20261008 */

/* BEGIN ui-public-phone-touch-extern-20261008 - UI step: the same phone touch rules for the static legal pages that keep the portal layout (/legal/privacy and /legal/terms while no CMS page is live; layout _PortalLayout, key extern).
   1. Phones (max-width 767.98 px): the trainee portal navigation (batch J, 7 links in one row that scrolled sideways with a hidden scrollbar) wraps over a few rows instead. The links keep their 44 px height, padding and font from batch J; only flex-wrap and the horizontal scroll change. Nothing is hidden any more, so a link at the right side can no longer be missed.
   2. Phones, and touch screens up to 991.98 px: links without a class in running text of the portal main area (for example Read the terms and conditions, 246x23 px) get .8rem vertical padding on the inline link, about 46 px high, no layout shift. Links with a class (buttons, chips, badges, table and nav links) are not touched.
   The focus ring is not touched; no important. Appended last, so it wins by source order at equal strength. */
@media (max-width:767.98px){
.orsi-portal-topbar__nav{flex-wrap:wrap;overflow-x:visible}
}
@media (max-width:767.98px),(pointer:coarse) and (max-width:991.98px){
.orsi-portal-main :where(p,li,dd,dt,blockquote,span,small,strong,em)>a:where(:not([class])){padding-block:.8rem}
}
/* END ui-public-phone-touch-extern-20261008 */
