/* Trainer schedule page. Loaded after ../css/faculty.css (colour variables, buttons, dialogs, tables). */
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.small { font-size: 0.78rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
select:disabled { background: var(--bg); color: var(--text-light); cursor: not-allowed; }
.link:hover { text-decoration: underline; }

/* access code screen */
.loginwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.loginbox { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.loginbox h1 { font-size: 1.35rem; color: var(--accent); }
.loginbox p.muted { margin-bottom: 18px; }
.loginbox .btn { width: 100%; min-height: 44px; margin-top: 12px; }
.loginbox .foot { margin-top: 18px; text-align: center; }
.formerr { color: var(--danger); font-size: 0.84rem; min-height: 1.3em; margin-top: 8px; }

/* partner / trainer selection */
.filtercard { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 640px) { .filtercard { grid-template-columns: 1fr; } .filtercard .btn { width: 100%; } }

/* date tabs */
.dtabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.dtab { flex: 0 0 auto; min-width: 64px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: center; cursor: pointer; color: var(--text); }
.dtab span { display: block; font-size: 0.72rem; color: var(--text-light); }
.dtab strong { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.2; color: var(--accent); }
.dtab:hover { background: var(--accent-soft); }
.dtab.active { background: var(--accent); border-color: var(--accent); }
.dtab.active span, .dtab.active strong { color: #fff; }

/* session cards */
.sgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .sgrid { grid-template-columns: 1fr 1fr; } }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.sname { font-weight: 600; color: var(--accent); }
.stime { font-size: 0.84rem; color: var(--text-light); white-space: nowrap; }
.slist { list-style: none; display: grid; gap: 8px; padding: 12px 14px; }
.slist li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: 0.88rem; }
.k { font-size: 0.76rem; color: var(--text-light); padding-top: 2px; }
.v { word-break: break-word; }
.note { color: var(--text-light); font-size: 0.8rem; }
.emptybox { padding: 24px 0; }

/* error toast (top of screen, hidden by the script after 5 seconds) */
#msg { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; background: var(--bad-bg); color: var(--bad-fg); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }

/* popups */
.sheet-pad { padding: 16px 20px; }
.histlist { list-style: disc; padding-left: 20px; display: grid; gap: 8px; font-size: 0.88rem; }

.foot2 { padding: 18px 16px; text-align: center; color: var(--text-light); font-size: 0.78rem; border-top: 1px solid var(--line); }