/* SafeLee portal. Uses the theme's colours and type (style.css :root variables). */

.sllp-main { background: var(--sll-mist, #F3F5F7); padding-bottom: 4rem; min-height: 60vh; }
.sllp-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); box-sizing: border-box; }
.sllp-narrow { max-width: 720px; padding-block: 4rem; }

/* Client bar */
.sllp-bar { background: #fff; border-bottom: 1px solid var(--sll-line, #DDE3E9); }
.sllp-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 0.8rem; font-size: 0.95rem; }
.sllp-bar__who { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sllp-bar__me { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sllp-bar a { color: var(--sll-navy, #092438); font-weight: 600; }
.sllp-switch { display: flex; align-items: center; gap: 0.4rem; }
.sllp-switch label { color: var(--sll-slate, #55636F); }
.sllp-switch select { padding: 0.3rem 0.4rem; border-radius: 6px; border: 1px solid var(--sll-line, #DDE3E9); }
.sllp-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--sll-mist, #F3F5F7); color: var(--sll-navy, #092438); font-size: 0.8rem; font-weight: 700; }
.sllp-pill--warn { background: #FDECEA; color: #8A1C12; }

/* Layout */
.sllp-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding-top: 2rem; }
.sllp-layout > * { min-width: 0; }
@media (max-width: 860px) { .sllp-layout { grid-template-columns: 1fr; gap: 1rem; } }
.sllp-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 7.5rem; }
.sllp-nav li { margin: 0 0 0.25rem; }
.sllp-nav a { display: block; padding: 0.6rem 0.85rem; border-radius: 8px; color: var(--sll-ink, #16212B); text-decoration: none; font-weight: 600; }
.sllp-nav a:hover { background: #fff; }
.sllp-nav a[aria-current="page"] { background: var(--sll-navy, #092438); color: #fff; }
@media (max-width: 860px) {
  .sllp-nav ul { position: static; display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.4rem; }
  .sllp-nav li { margin: 0; flex: 0 0 auto; }
  .sllp-nav a { white-space: nowrap; background: #fff; }
}
.sllp-content > * + * { margin-top: 1.25rem; }

/* Type */
.sllp-h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 0.4rem; color: var(--sll-ink, #16212B); }
.sllp-h2 { font-size: 1.2rem; margin: 0 0 0.9rem; }
.sllp-h3 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 0.4rem; display: block; }
.sllp-intro { color: var(--sll-slate, #55636F); font-size: 1.05rem; margin: 0 0 1rem; max-width: 70ch; }
.sllp-muted { color: var(--sll-slate, #55636F); }
.sllp-small { font-size: 0.9rem; }
.sllp-big { font-size: 1.6rem; font-weight: 800; margin: 0; }
.sllp-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.8rem; color: var(--sll-navy, #092438); display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; }
.sllp-kicker::before { content: ""; width: 1.8rem; height: 3px; background: var(--sll-orange, #FF8C31); border-radius: 2px; }
.sllp-crumbs { font-size: 0.9rem; color: var(--sll-slate, #55636F); margin: 0 0 0.4rem; }
.sllp-crumbs a { color: inherit; }

/* Cards and grids */
.sllp-card { background: #fff; border: 1px solid var(--sll-line, #DDE3E9); border-radius: var(--sll-radius, 12px); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.sllp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sllp-grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .sllp-grid2, .sllp-grid3 { grid-template-columns: minmax(0, 1fr); } }

/* Stats */
.sllp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .sllp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sllp-stat { background: #fff; border: 1px solid var(--sll-line, #DDE3E9); border-radius: var(--sll-radius, 12px); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; border-top: 4px solid var(--sll-orange, #FF8C31); }
.sllp-stat__label { font-size: 0.85rem; font-weight: 700; color: var(--sll-slate, #55636F); }
.sllp-stat__num { font-size: 2rem; font-weight: 800; color: var(--sll-navy, #092438); line-height: 1.1; }
.sllp-stat__num--sm { font-size: 1.5rem; }
.sllp-stat__note { font-size: 0.85rem; color: var(--sll-slate, #55636F); }

/* Checklist and feeds */
.sllp-check, .sllp-feed, .sllp-list { list-style: none; margin: 0; padding: 0; }
.sllp-check li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--sll-mist, #F3F5F7); }
.sllp-check__box { width: 1.3rem; height: 1.3rem; border: 2px solid var(--sll-line, #DDE3E9); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex: 0 0 auto; }
.sllp-check li.is-done { color: var(--sll-slate, #55636F); }
.sllp-check li.is-done .sllp-check__box { background: #1E7A46; border-color: #1E7A46; color: #fff; }
.sllp-feed li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; row-gap: 0.1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--sll-mist, #F3F5F7); }
.sllp-feed li > .sllp-muted { grid-column: 2; font-size: 0.9rem; }
.sllp-list li { padding: 0.35rem 0; }

/* Badges */
.sllp-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--sll-mist, #F3F5F7); color: var(--sll-slate, #55636F); }
.sllp-badge--ready, .sllp-badge--done { background: #E3F4EA; color: #145A33; }
.sllp-badge--branding, .sllp-badge--submitted, .sllp-badge--in_progress { background: #FFF1E3; color: #8A4A00; }
.sllp-badge--quoted { background: #E6EEF6; color: var(--sll-navy, #092438); }
.sllp-badge--declined { background: #FDECEA; color: #8A1C12; }

/* Tables */
.sllp-table-wrap { overflow-x: auto; position: relative; }
.sllp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sllp-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sll-slate, #55636F); padding: 0.5rem 0.6rem; border-bottom: 2px solid var(--sll-line, #DDE3E9); }
.sllp-table td { padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--sll-mist, #F3F5F7); vertical-align: middle; }
.sllp-table td:last-child { text-align: right; }
.sllp-table tr.is-current td { background: #FFF8F1; }
.sllp-pack__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sllp-pack__head .sllp-h2 { margin: 0 0 0.6rem; }

/* Buttons */
.sllp-btn { display: inline-block; background: var(--sll-orange, #FF8C31); color: var(--sll-navy, #092438) !important; font-weight: 700; text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 8px; border: 2px solid var(--sll-orange, #FF8C31); cursor: pointer; font-size: 1rem; line-height: 1.2; font-family: inherit; }
.sllp-btn:hover { filter: brightness(0.95); }
.sllp-btn--ghost { background: transparent; border-color: var(--sll-navy, #092438); }
.sllp-btn--sm { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* Forms */
.sllp-form .sllp-field { margin: 0 0 1rem; }
.sllp-form label { display: block; font-weight: 700; margin: 0 0 0.3rem; }
.sllp-form input[type="text"], .sllp-form input[type="email"], .sllp-form input[type="password"], .sllp-form select, .sllp-form textarea,
.sllp-login input[type="text"], .sllp-login input[type="password"] { width: 100%; box-sizing: border-box; padding: 0.65rem 0.75rem; border: 1px solid #B9C4CE; border-radius: 8px; font: inherit; background: #fff; }
.sllp-form input[type="file"] { font: inherit; max-width: 100%; }
.sllp-hint { color: var(--sll-slate, #55636F); font-size: 0.88rem; margin: 0.3rem 0 0; }
.sllp-inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.8rem; align-items: end; margin-top: 1rem; }
.sllp-inline p { margin: 0 0 1rem; }
@media (max-width: 700px) { .sllp-inline { grid-template-columns: 1fr; } }
.sllp-logo-prev { display: inline-block; padding: 0.6rem; border-radius: 8px; background: var(--sll-mist, #F3F5F7); margin-bottom: 0.5rem; }
.sllp-logo-prev--dark { background: var(--sll-navy, #092438); }
.sllp-logo-prev img { max-height: 70px; width: auto; display: block; }

/* Requests */
.sllp-req summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.sllp-req summary::-webkit-details-marker { display: none; }
.sllp-req summary .sllp-h3 { margin: 0; }
.sllp-req summary .sllp-h3::after { content: " ›"; color: var(--sll-orange, #FF8C31); }
.sllp-req[open] summary { margin-bottom: 1rem; }

/* Notices */
.sllp-notice { padding: 0.8rem 1rem; border-radius: 8px; font-weight: 600; margin: 0 0 1rem; }
.sllp-notice--ok { background: #E3F4EA; color: #145A33; }
.sllp-notice--err { background: #FDECEA; color: #8A1C12; }

/* Player */
.sllp-player { position: relative; aspect-ratio: 16 / 9; background: var(--sll-navy-deep, #061A29); border-radius: var(--sll-radius, 12px); overflow: hidden; }
.sllp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sllp-player__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #D6E0E8; padding: 1rem; }
.sllp-player__placeholder p { text-align: center; }

/* Steps */
.sllp-steps { margin: 0 0 1rem 1.2rem; padding: 0; }
.sllp-steps li { padding: 0.25rem 0; }

/* Login */
.sllp-login { display: flex; justify-content: center; padding: clamp(2.5rem, 7vw, 5rem) 1rem; }
.sllp-login__card { width: 100%; max-width: 440px; }
.sllp-login p { margin: 0 0 1rem; }
.sllp-login label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.sllp-login .login-remember label { display: inline; font-weight: 400; }
.sllp-login #wp-submit { background: var(--sll-orange, #FF8C31); color: var(--sll-navy, #092438); font-weight: 700; border: 0; border-radius: 8px; padding: 0.75rem 1.3rem; font-size: 1rem; cursor: pointer; width: 100%; font-family: inherit; }
.sllp-login__links { font-size: 0.9rem; color: var(--sll-slate, #55636F); }
.sllp-login__links a { color: var(--sll-navy, #092438); font-weight: 600; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Own procedure upload (0.3.0) */
.sllp-form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.sllp-form--inline .sllp-field { margin: 0; flex: 1 1 14rem; min-width: 0; }

/* Training register (0.4.0) */
.sllp-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.sllp-tabs a { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--sll-line, #DDE3E9); text-decoration: none; color: inherit; font-weight: 600; font-size: 0.95rem; background: #fff; }
.sllp-tabs a[aria-current="page"] { background: var(--sll-navy, #092438); color: #fff; border-color: var(--sll-navy, #092438); }
.sllp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.sllp-form.sllp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.sllp-field--full { grid-column: 1 / -1; }
@media (max-width: 760px) { .sllp-grid3, .sllp-form.sllp-grid2 { grid-template-columns: minmax(0, 1fr); } }
.sllp-copy { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.5rem 0.6rem; border: 1px solid var(--sll-line, #DDE3E9); border-radius: 8px; background: #F3F5F7; }
.sllp-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sllp-inline { display: inline; margin: 0; }
.sllp-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; color: #8A2A10; text-decoration: underline; cursor: pointer; margin-top: 0.6rem; }
.sllp-details { margin-top: 1rem; }
.sllp-details summary { cursor: pointer; font-weight: 600; }
.sllp-attempt { border-top: 1px solid var(--sll-line, #DDE3E9); padding-top: 0.6rem; margin-top: 0.6rem; }
.sllp-matrix th, .sllp-matrix td { white-space: nowrap; font-size: 0.9rem; }
.sllp-matrix .sllp-m-done { background: #E3F4EA; color: #145A33; font-weight: 600; }
.sllp-matrix .sllp-m-progress { background: #FFF4E5; }

/* Add-workers rows (0.4.1) */
.sllp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; border-bottom: 1px solid var(--sll-line, #DDE3E9); margin-bottom: 0.8rem; }
.sllp-row .sllp-field { margin-bottom: 0.8rem; }
.sllp-row + .sllp-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { .sllp-row { grid-template-columns: minmax(0, 1fr); } .sllp-row + .sllp-row label { position: static; width: auto; height: auto; clip: auto; } }

/* Assignments (0.5.0) */
.sllp-badge--overdue { background: #FDECE7; color: #8A2A10; }
.sllp-matrix .sllp-m-overdue { background: #FDECE7; color: #8A2A10; font-weight: 600; }
.sllp-matrix .sllp-m-na { color: #9AA6B1; font-size: 0.8rem; }
.sllp-checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.6rem 0 0.9rem; }
.sllp-checks label { display: inline-flex; gap: 0.4rem; align-items: center; }
.sllp-group { border-top: 1px solid var(--sll-line, #DDE3E9); padding-top: 0.6rem; }
.sllp-form select { width: 100%; font: inherit; padding: 0.55rem 0.6rem; border: 1px solid var(--sll-line, #DDE3E9); border-radius: 8px; background: #fff; }

/* Phase B (0.6.0) */
.sllp-fieldset { border: 1px solid var(--sll-line, #DDE3E9); border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.sllp-fieldset legend { font-weight: 700; padding: 0 0.3rem; }
.sllp-form--inline label { display: inline-flex; gap: 0.4rem; align-items: center; }

/* 0.6.1 cancel plan */
.sllp-btn--danger { background: #8A2A10; border-color: #8A2A10; color: #fff; }
.sllp-btn--danger:hover, .sllp-btn--danger:focus { background: #6E200B; border-color: #6E200B; color: #fff; }
.sllp-cancel > summary { display: inline-block; list-style: none; }
.sllp-cancel > summary::-webkit-details-marker { display: none; }
.sllp-cancel[open] > summary { margin-bottom: 0.8rem; }
