/* Tandblekarna Bokning – enkel, ren stil som ärver temats typsnitt. */
.tb {
    --tb-ink: #111;
    --tb-muted: #6b6b6b;
    --tb-line: #e4e2de;
    --tb-bg: #faf9f7;
    --tb-accent: #111;
    --tb-ok: #2f6b4f;
    --tb-bad: #9b2c2c;
    max-width: 720px;
    margin: 0 auto;
    color: var(--tb-ink);
    font-size: 16px;
    line-height: 1.55;
}
.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb [hidden] { display: none !important; }
.tb-portal { max-width: 980px; }

.tb fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.tb legend { font-size: 1.5em; font-weight: 500; margin-bottom: 8px; padding: 0; letter-spacing: -0.01em; }
.tb label { display: block; margin: 0 0 16px; font-size: 0.95em; }
.tb input[type=text], .tb input[type=email], .tb input[type=tel], .tb input[type=date],
.tb input[type=time], .tb input[type=number], .tb input[type=password], .tb select, .tb textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
    border: 1px solid var(--tb-line); border-radius: 2px; background: #fff;
    font: inherit; color: inherit;
}
.tb input:focus, .tb select:focus, .tb textarea:focus { outline: none; border-color: var(--tb-ink); }
.tb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tb-row { grid-template-columns: 1fr; } }

.tb-help { color: var(--tb-muted); font-size: 0.9em; }
.tb-label { display: block; margin-bottom: 6px; }
.tb-field { margin-bottom: 20px; }
.tb-q { padding: 14px 0; border-bottom: 1px solid var(--tb-line); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.tb-q .tb-label { flex: 1 1 260px; margin: 0; }
.tb .tb-choice { display: inline-flex; align-items: center; gap: 8px; margin: 0 16px 0 0; cursor: pointer; }
.tb .tb-choice input { margin: 0; accent-color: var(--tb-ink); }
.tb fieldset > .tb-choice, .tb-cancel .tb-choice { display: flex; margin: 0 0 12px; }
.tb-person { margin: 24px 0; }
.tb-person-title { font-size: 1em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tb-muted); margin: 0 0 8px; font-weight: 500; }
.tb-person[data-person="1"] .tb-person-title, .tb-person[data-person="1"] .tb-person-name { display: none; }
.tb.is-two .tb-person[data-person="1"] .tb-person-title, .tb.is-two .tb-person[data-person="1"] .tb-person-name { display: block; }

.tb-btn {
    display: inline-block; padding: 13px 26px; border: 1px solid var(--tb-accent); border-radius: 2px;
    background: var(--tb-accent); color: #fff; font: inherit; font-size: 0.95em; letter-spacing: 0.02em;
    cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.tb-btn:hover { opacity: .85; color: #fff; }
.tb-btn-ghost { background: transparent; color: var(--tb-ink); }
.tb-btn-ghost:hover { color: var(--tb-ink); background: var(--tb-bg); }
.tb-btn-danger { background: transparent; color: var(--tb-bad); border-color: var(--tb-bad); }
.tb-btn-danger:hover { color: var(--tb-bad); }
.tb-btn[disabled] { opacity: .35; cursor: not-allowed; }
.tb-link { background: none; border: 0; padding: 0; color: var(--tb-bad); text-decoration: underline; cursor: pointer; font: inherit; }
.tb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.tb-nav .tb-next:only-child, .tb-nav button[type=submit]:only-child { margin-left: auto; }

.tb-progress { display: flex; list-style: none; padding: 0; margin: 0 0 32px; gap: 4px; counter-reset: s; }
.tb-progress li { flex: 1; padding-top: 10px; border-top: 2px solid var(--tb-line); font-size: 0.8em; color: var(--tb-muted); letter-spacing: 0.04em; }
.tb-progress li.is-active, .tb-progress li.is-done { border-color: var(--tb-ink); color: var(--tb-ink); }

.tb-errors, .tb-success, .tb-block-msg, .tb-warn {
    padding: 14px 18px; margin: 0 0 24px; border-left: 3px solid var(--tb-bad); background: #fbf3f3;
}
.tb-errors ul { margin: 6px 0 0 18px; padding: 0; }
.tb-success { border-color: var(--tb-ok); background: #f1f7f4; }
.tb-warn { display: block; margin: 0 0 16px; font-style: normal; }
.tb-meta .tb-warn { display: inline; padding: 0; background: none; border: 0; color: var(--tb-bad); }

.tb-slots { margin: 12px 0 24px 26px; }
.tb-day { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--tb-line); }
.tb-day-name { flex: 0 0 180px; text-transform: capitalize; }
.tb-slot { margin: 0 !important; }
.tb-slot input { position: absolute; opacity: 0; }
.tb-slot span { display: inline-block; padding: 8px 14px; border: 1px solid var(--tb-line); cursor: pointer; }
.tb-slot input:checked + span { background: var(--tb-ink); color: #fff; border-color: var(--tb-ink); }
.tb-slot input:focus-visible + span { outline: 2px solid var(--tb-ink); outline-offset: 2px; }
.tb-request { margin: 12px 0 0 26px; }
.tb-mode { margin-top: 8px !important; }

.tb-summary { background: var(--tb-bg); padding: 18px 20px; margin: 8px 0 20px; }
.tb-summary p { margin: 0 0 6px; }
.tb-secure { text-align: right; margin-top: 8px; }
.tb-hp { position: absolute; left: -9999px; }

.tb-card { border: 1px solid var(--tb-line); padding: 28px; background: #fff; margin-bottom: 24px; }
.tb-card h2, .tb-card h3 { margin-top: 0; }
.tb-big { font-size: 1.35em; margin: 8px 0 16px; text-transform: capitalize; }
.tb-status { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tb-muted); margin: 0 0 6px; }
.tb-status-confirmed, .tb-status-completed { color: var(--tb-ok); }
.tb-status-declined, .tb-status-cancelled, .tb-status-expired { color: var(--tb-bad); }
.tb-details { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 20px 0; }
.tb-details dt { color: var(--tb-muted); }
.tb-details dd { margin: 0; }
@media (max-width: 560px) { .tb-details { grid-template-columns: 1fr; } .tb-details dd { margin-bottom: 8px; } }
.tb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-inline { display: inline-block; margin: 0; }
.tb-cancel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tb-line); }
.tb-blocked { border-left: 3px solid var(--tb-bad); }

/* Portal */
.tb-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--tb-line); margin-bottom: 28px; }
.tb-tabs a { padding: 10px 0; text-decoration: none; color: var(--tb-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tb-tabs a.is-active { color: var(--tb-ink); border-color: var(--tb-ink); }
.tb-tabs .tb-logout { margin-left: auto; }
.tb-list { border-top: 1px solid var(--tb-line); }
.tb-row-card { display: grid; grid-template-columns: 260px 1fr; gap: 2px 20px; padding: 16px 4px; border-bottom: 1px solid var(--tb-line); text-decoration: none; color: inherit; }
.tb-row-card:hover { background: var(--tb-bg); color: inherit; }
.tb-when { text-transform: capitalize; font-weight: 500; }
.tb-meta { grid-column: 2; color: var(--tb-muted); font-size: 0.88em; }
@media (max-width: 640px) { .tb-row-card { grid-template-columns: 1fr; } .tb-meta { grid-column: 1; } }
.tb-empty { color: var(--tb-muted); }
.tb-actions-col form { margin-bottom: 20px; }
.tb-actions-col fieldset { border: 1px solid var(--tb-line); padding: 18px 20px; margin: 0; }
.tb-actions-col legend { font-size: 1em; font-weight: 500; padding: 0 6px; margin-left: -6px; }
.tb-health ul { margin: 6px 0 16px 18px; padding: 0; }
.tb-flag { color: var(--tb-bad); }
.tb-paylink { background: var(--tb-bg); padding: 16px 18px; margin: -8px 0 20px; }
.tb-paylink input, .tb-copy { font-family: monospace; font-size: 0.85em; }
.tb-table { width: 100%; border-collapse: collapse; }
.tb-table th, .tb-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--tb-line); }
.tb-table th { font-weight: 500; color: var(--tb-muted); font-size: 0.85em; }
.tb-log { margin-top: 24px; font-size: 0.88em; color: var(--tb-muted); }
.tb-log ul { list-style: none; padding: 0; }
.tb-log span { display: inline-block; min-width: 90px; }
.tb-login { max-width: 420px; margin: 0 auto; }
.tb-login input[type=submit] { padding: 12px 24px; background: var(--tb-ink); color: #fff; border: 0; cursor: pointer; }
