html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Load draggable modal helper via JS file registered in host. No global styles added here. */

a, .btn-link {
    color: #006bb7;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.captcha-widget {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
}

.captcha-widget .captcha-instructions {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.captcha-widget .captcha-accessibility {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.captcha-widget .captcha-answer {
    max-width: 14rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Layout fallback: keep nav sidebar beside page content on wide screens. */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.page main {
    flex: 1;
    min-width: 0;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .page .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.compact-registration .card-body {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.compact-registration .row {
    --bs-gutter-y: 0.15rem;
}

.compact-registration .mb-3 {
    margin-bottom: 0.35rem !important;
}

.compact-registration .mt-3 {
    margin-top: 0.5rem !important;
}

.compact-registration .mt-4 {
    margin-top: 0.5rem !important;
}

.compact-registration .pt-3 {
    padding-top: 0.35rem !important;
}

.compact-registration .form-label {
    margin-bottom: 0.1rem;
}

.compact-registration .required-asterisk {
    color: rgb(229, 115, 115);
}

.compact-registration .validation-message {
    display: block;
    margin-top: 0.1rem;
    line-height: 1.05;
}

.compact-registration .form-control,
.compact-registration .form-select {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.compact-registration .table th,
.compact-registration .table td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.compact-registration .camper-form .mb-3 {
    margin-bottom: 0.25rem !important;
}

.compact-registration .camper-form .row {
    --bs-gutter-y: 0.1rem;
}

.compact-registration .camper-form .form-label {
    margin-bottom: 0.05rem;
}

.compact-registration .camper-form .form-check {
    margin-bottom: 0.1rem !important;
}

.compact-registration .camper-form .validation-message {
    margin-top: 0.05rem;
    line-height: 1;
}

.compact-registration .camper-form .form-control,
.compact-registration .camper-form .form-select {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.compact-registration .camper-edit-modal .modal-header {
    background-color: #0d6efd;
    color: #fff;
}

.compact-registration .camper-edit-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.compact-registration .camper-edit-modal .grade-cabin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

.compact-registration .camper-edit-modal .camper-grade-field,
.compact-registration .camper-edit-modal .camper-cabin-type-field {
    flex: 0 0 auto;
    max-width: none;
    margin-bottom: 0;
}

.compact-registration .camper-edit-modal .camper-grade-field {
    width: 6rem;
}

.compact-registration .camper-edit-modal .camper-grade-select {
    width: 100%;
}

.compact-registration .camper-edit-modal .camper-cabin-type-field {
    width: 20.83335%;
    max-width: 20.83335%;
    margin-left: 0;
}

.compact-registration .camper-edit-modal .camper-cabin-type-select {
    width: 100%;
}

.compact-registration .camper-edit-modal .camper-first-name-field {
    width: 39.6667%;
}

.compact-registration .camper-edit-modal .camper-last-name-field {
    width: 39.6667%;
}

.compact-registration .camper-edit-modal .camper-birth-date-field {
    width: 20.6667%;
}

.compact-registration .camper-edit-modal .modal-footer {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* -------------------------------------------------------------
   Sitewide display/behavior system (Step 2 foundation)
   ------------------------------------------------------------- */
:root {
    --ch-header-height: 3.5rem;
    --ch-logo-height: 48px;
    --ch-brand-gap: 0.75rem;
    --ch-header-bg: #f7f7f7;
    --ch-header-border: #d6d5d5;
    --ch-focus-ring: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

.ch-shell-header {
    height: var(--ch-header-height);
    background-color: var(--ch-header-bg);
    border-bottom: 1px solid var(--ch-header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem;
}

.ch-shell-header-left,
.ch-shell-header-right {
    display: flex;
    align-items: center;
    gap: var(--ch-brand-gap);
}

.ch-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ch-home-link-text {
    display: inline-flex;
    align-items: center;
    min-height: var(--ch-logo-height);
    font-weight: 600;
}

.ch-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    text-decoration: none;
}

.ch-shell-link {
    white-space: nowrap;
    text-decoration: none;
}

.ch-shell-link:hover,
.ch-back-link:hover,
.ch-logo-link:hover {
    text-decoration: underline;
}

.ch-dialog-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.ch-dialog-footer .btn {
    min-width: 96px;
}

.ch-dialog-footer .btn:focus,
.ch-shell-header a:focus,
.ch-shell-header button:focus {
    box-shadow: var(--ch-focus-ring);
}

.ch-dialog-actions-ok {
    order: 1;
}

.ch-dialog-actions-cancel {
    order: 2;
}

.ch-dialog-actions-apply {
    order: 3;
}

.ch-dashboard-grid .ch-dashboard-card {
    border: 1px solid #9cb8e0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(15, 34, 58, 0.08);
    user-select: none;
}

.ch-dashboard-grid .ch-dashboard-card.ch-dashboard-card-registrations {
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.ch-dashboard-grid .ch-dashboard-card.ch-dashboard-card-registrations.ch-dashboard-card-selected {
    position: relative;
    z-index: 2;
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(13, 110, 253, 0.22) !important;
    background-color: rgba(13, 110, 253, 0.03) !important;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.18), 0 10px 20px rgba(15, 34, 58, 0.12);
}

[data-cabin-assignment-page='true'] {
    --ch-cabin-surface: #ffffff;
    --ch-cabin-surface-muted: #f8fbff;
    --ch-cabin-border: #dbe3f0;
    --ch-cabin-border-strong: #9cb8e0;
    --ch-cabin-drop-ok: #198754;
    --ch-cabin-drop-ok-shadow: rgba(25, 135, 84, 0.22);
    --ch-cabin-drop-bad: #dc3545;
    --ch-cabin-drop-bad-shadow: rgba(220, 53, 69, 0.22);
    --ch-cabin-focus: #0d6efd;
    --ch-cabin-focus-shadow: rgba(13, 110, 253, 0.28);
}

[data-cabin-assignment-layout='three-pane'] {
    align-items: stretch;
}

.ch-cabin-board-pane {
    background: var(--ch-cabin-surface);
    border: 1px solid var(--ch-cabin-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.ch-cabin-people-list {
    display: grid;
    gap: 0.5rem;
}

.ch-cabin-person-card {
    --ch-cabin-person-surface: var(--ch-cabin-surface-muted);
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--ch-cabin-border);
    border-radius: 0.65rem;
    background: var(--ch-cabin-person-surface);
    cursor: grab;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.ch-cabin-person-line {
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-cabin-person-card.ch-cabin-person-card-boys {
    --ch-cabin-person-surface: #e6f2ff;
}

.ch-cabin-person-card.ch-cabin-person-card-girls {
    --ch-cabin-person-surface: #ffe6f2;
}

.ch-cabin-person-card:hover {
    border-color: var(--ch-cabin-border-strong);
    box-shadow: 0 2px 10px rgba(15, 34, 58, 0.08);
}

.ch-cabin-person-card:active,
.ch-cabin-person-card[aria-grabbed='true'],
[data-dde-active-drag='true'] {
    cursor: grabbing;
    border-color: rgba(13, 110, 253, 0.62);
    background: rgba(13, 110, 253, 0.12);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.ch-cabin-person-card[data-draggable-gender='Girls']:active,
.ch-cabin-person-card[data-draggable-gender='Girls'][aria-grabbed='true'],
.ch-cabin-person-card[data-draggable-gender='Girls'][data-dde-active-drag='true'],
[data-dde-active-drag='true'][data-draggable-gender='Girls'] {
    border-color: rgba(214, 51, 132, 0.62);
    background: rgba(214, 51, 132, 0.12);
    box-shadow: 0 0 0 2px rgba(214, 51, 132, 0.2);
}

.ch-cabin-person-card-selected {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.25);
    background: rgba(13, 110, 253, 0.08);
}

.ch-cabin-person-card-selected[data-draggable-gender='Girls'] {
    border-color: rgba(214, 51, 132, 0.55);
    box-shadow: 0 0 0 1px rgba(214, 51, 132, 0.25);
    background: rgba(214, 51, 132, 0.08);
}

.ch-cabin-person-card:focus-visible,
.ch-cabin-card button:focus-visible,
.ch-cabin-card [draggable='true']:focus-visible,
.ch-cabin-people-pane button:focus-visible,
.ch-cabin-people-pane input:focus-visible,
.ch-cabin-board .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ch-cabin-focus-shadow);
}

.ch-cabin-card {
    --ch-cabin-card-surface: var(--ch-cabin-surface);
    border: 1px solid var(--ch-cabin-border);
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--ch-cabin-card-surface);
    min-height: 220px;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.ch-cabin-card.ch-cabin-card-boys {
    --ch-cabin-card-surface: #e6f2ff;
}

.ch-cabin-card.ch-cabin-card-girls {
    --ch-cabin-card-surface: #ffe6f2;
}

.ch-cabin-card:hover {
    border-color: var(--ch-cabin-border-strong);
    box-shadow: 0 8px 18px rgba(15, 34, 58, 0.08);
}

.ch-cabin-card[data-dde-validation='valid'].dde-active,
.ch-cabin-card[data-dde-validation='valid'].dde-hover {
    border-color: var(--ch-cabin-drop-ok);
    box-shadow: 0 0 0 2px var(--ch-cabin-drop-ok-shadow);
    background: linear-gradient(0deg, rgba(25, 135, 84, 0.06), rgba(25, 135, 84, 0.06)), var(--ch-cabin-card-surface);
}

.ch-cabin-card[data-dde-validation='invalid'].dde-invalid,
.ch-cabin-card[data-dde-validation='invalid'].dde-hover {
    border-color: var(--ch-cabin-drop-bad);
    box-shadow: 0 0 0 2px var(--ch-cabin-drop-bad-shadow);
    background: linear-gradient(0deg, rgba(220, 53, 69, 0.06), rgba(220, 53, 69, 0.06)), var(--ch-cabin-card-surface);
}

.ch-cabin-card[data-dde-validation='invalid'][data-dde-validation-reason]::after {
    content: attr(data-dde-validation-reason);
    display: block;
    margin-top: 0.6rem;
    color: #842029;
    font-size: 0.8rem;
    line-height: 1.3;
}

.ch-cabin-camper-list {
    display: grid;
    gap: 0.35rem;
}

.ch-cabin-camper-list li {
    padding: 0.2rem 0;
    border-bottom: 1px dashed rgba(15, 34, 58, 0.12);
}

.ch-cabin-camper-list li:last-child {
    border-bottom: 0;
}

[data-cabin-assignment-pane='middle'] .card {
    border: 1px solid var(--ch-cabin-border);
    border-radius: 0.75rem;
}

[data-cabin-assignment-pane='middle'] .card-body {
    background: #f9fbff;
}

[data-cabin-assignment-pane='middle'] dd {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    [data-cabin-assignment-layout='three-pane'] {
        row-gap: 0.75rem;
    }

    .ch-cabin-board-pane {
        padding: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .ch-cabin-people-pane .btn-group,
    .ch-cabin-board .btn-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem;
        width: 100%;
    }

    .ch-cabin-people-pane .btn-group > .btn,
    .ch-cabin-board .btn-group > .btn {
        border-radius: 0.45rem !important;
    }

    .ch-cabin-card {
        min-height: 0;
        padding: 0.85rem;
    }

    .ch-cabin-person-card {
        padding: 0.65rem 0.75rem;
    }

    .ch-cabin-card .btn-link.btn-sm {
        font-size: 0.8rem;
    }

    [data-cabin-assignment-pane='middle'] {
        order: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch-cabin-person-card,
    .ch-cabin-card {
        transition: none;
    }
}

@media (min-width: 1200px) {
    .ch-dashboard-grid-col-compact {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .ch-dashboard-grid-col-registrations {
        flex: 0 0 40%;
        max-width: 40%;
    }
}

.ch-dashboard-card-clickable {
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.ch-dashboard-card-clickable:hover {
    transform: translateY(-1px);
    border-color: #9cb8e0;
    box-shadow: 0 6px 18px rgba(15, 34, 58, 0.12);
}

.ch-dashboard-card-clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 34, 58, 0.10);
}

.ch-dashboard-card-clickable:focus-visible {
    outline: none;
    box-shadow: var(--ch-focus-ring), 0 6px 18px rgba(15, 34, 58, 0.12);
}

/* Generic dashboard card layout: cards hug their table content and stay uniform
   across cards. Font size gracefully shrinks only when the card itself is narrow. */
.ch-dashboard-card {
    container-type: inline-size;
}

.ch-dashboard-summary-shell {
    width: fit-content;
    max-width: 100%;
    margin-right: 0;
}

.ch-dashboard-card-scroll {
    width: 100%;
}

.ch-dashboard-card-registrations .card-body {
    width: 100%;
    max-width: 100%;
}

.ch-dashboard-card-registrations .ch-dashboard-card-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.ch-dashboard-card-registrations .ch-dashboard-summary-shell {
    min-width: max-content;
}

.ch-dashboard-summary-header {
    margin-bottom: 0.25rem;
}

.ch-dashboard-summary-table {
    margin-top: 0;
    width: auto;
    table-layout: auto;
    white-space: nowrap;
    font-size: clamp(0.78rem, 1.6cqi + 0.55rem, 1rem);
}

.ch-dashboard-summary-table > :not(caption) > * > * {
    border-bottom: 0;
    border-top: 1px solid #e9eef5;
    padding: 0.35rem 0.35rem;
    vertical-align: middle;
}

.ch-dashboard-line-label {
    font-weight: 600;
    color: #1f2d3d;
    white-space: nowrap;
    overflow-wrap: normal;
    width: auto;
    min-width: 0;
    padding-right: 0.9rem;
}

.ch-dashboard-line-link {
    color: #0d6efd;
    text-decoration: underline;
}

.ch-dashboard-line-link:hover {
    color: #0a58ca;
}

.ch-dashboard-line-link:focus-visible {
    outline: none;
    box-shadow: var(--ch-focus-ring);
    border-radius: 0.2rem;
}

.ch-dashboard-line-values {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ch-dashboard-summary-table .ch-dashboard-col-start,
.ch-dashboard-summary-table .ch-dashboard-col-stop {
    text-align: center;
}

.ch-dashboard-line-values .ch-dashboard-value {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.ch-dashboard-value-header {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.1;
}

.ch-dashboard-value-number {
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.ch-dashboard-drill-link {
    color: #0d6efd;
    text-decoration: underline;
    white-space: nowrap;
}

.ch-dashboard-drill-link:hover {
    color: #0a58ca;
}

.ch-dashboard-drill-link:focus-visible {
    outline: none;
    box-shadow: var(--ch-focus-ring);
    border-radius: 0.2rem;
}

.ch-public-content-text {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}

.ch-public-content-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 640.98px) {
    :root {
        --ch-logo-height: 38px;
    }

    .ch-shell-header {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .ch-shell-header-left,
    .ch-shell-header-right {
        gap: 0.5rem;
    }

    .ch-dashboard-line-label,
    .ch-dashboard-line-values {
        display: block;
        width: 100%;
        text-align: left;
    }

    .ch-dashboard-value {
        min-width: 100% !important;
    }
}

/* Prevent text selection in hero banner to avoid unintended selection of content below */
.hero-banner {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ensure buttons don't allow text selection */
.btn, button, a[role="button"] {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Prevent dragging of buttons and links */
.btn, button, a[role="button"], a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    draggable: false;
}

/* Prevent dragging of images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    draggable: false;
}


/* Printable schedules (/admin/print/...) */
.print-header {
    border-bottom: 2px solid #222;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.print-section {
    margin-top: 1.25rem;
}

.print-table {
    font-size: 0.9rem;
}

.print-open {
    color: #8a3b00;
    font-weight: 600;
}

.print-note {
    margin-left: 0.35rem;
    font-size: 0.8rem;
    font-style: italic;
}

.print-footer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #555;
}

.print-sheet + .print-sheet {
    margin-top: 2.5rem;
    border-top: 1px dashed #bbb;
    padding-top: 1.5rem;
}

@media print {
    .print-toolbar {
        display: none !important;
    }

    .print-sheet {
        break-after: page;
    }

    .print-sheet + .print-sheet {
        margin-top: 0;
        border-top: 0;
        padding-top: 0;
    }

    .print-sheet-day,
    .print-table tr {
        break-inside: avoid;
    }
}
