:root {
    --wh-primary: #7258ad;
    --wh-primary-dark: #4f437d;
    --wh-primary-soft: #eeeafd;
    --wh-accent: #18b8ad;
    --wh-accent-dark: #0f8e88;
    --wh-accent-soft: #e7faf7;
    --wh-danger: #f43f8d;
    --wh-warning: #efaa42;
    --wh-ink: #28243f;
    --wh-muted: #756f86;
    --wh-border: #e7e3ef;
    --wh-surface: #ffffff;
    --wh-canvas: #f7f6fb;
    --wh-radius-sm: 10px;
    --wh-radius: 16px;
    --wh-radius-lg: 24px;
    --wh-shadow: 0 12px 34px rgba(59, 45, 94, 0.08);
    --wh-shadow-hover: 0 18px 44px rgba(59, 45, 94, 0.14);
    --wh-focus: 0 0 0 4px rgba(114, 88, 173, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--wh-ink);
    font-family: Inter, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: #fff;
    background: var(--wh-primary);
}

a {
    color: var(--wh-primary);
}

a:hover {
    color: var(--wh-primary-dark);
}

/* Surfaces */
.wh-app-shell .page-content,
.wh-app-shell .page-content-wrapper {
    background:
        radial-gradient(circle at 100% 0, rgba(114, 88, 173, 0.07), transparent 30rem),
        var(--wh-canvas);
}

.card,
.panel,
.modal-content,
.frame-wrap {
    border: 1px solid rgba(114, 88, 173, 0.11);
    border-radius: var(--wh-radius);
    box-shadow: var(--wh-shadow);
}

.card,
.panel {
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.card-header,
.panel-hdr {
    min-height: 58px;
    padding: 0.95rem 1.2rem;
    color: var(--wh-ink);
    background: linear-gradient(135deg, #fff, #faf9fd);
    border-color: var(--wh-border);
}

.card-header h5,
.panel-hdr h2 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.card-body,
.panel-content {
    padding: 1.25rem;
}

.subheader {
    margin-bottom: 1.5rem;
}

.subheader-title {
    color: var(--wh-ink);
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.subheader-title .fw-300 {
    color: var(--wh-muted);
    font-weight: 450 !important;
}

.subheader-icon {
    color: var(--wh-primary);
}

.breadcrumb {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #b8b1c8;
}

code.d-block {
    color: var(--wh-primary-dark);
    background: linear-gradient(135deg, var(--wh-primary-soft), #f8f6ff);
    border: 1px dashed rgba(114, 88, 173, 0.28);
    border-radius: var(--wh-radius-sm);
    font-family: "SFMono-Regular", Consolas, monospace;
}

/* Buttons */
.btn {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 650;
    letter-spacing: 0.005em;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(61, 47, 97, 0.14);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary,
.btn-info {
    color: #fff;
    background: linear-gradient(135deg, #8067bd, var(--wh-primary));
    border-color: transparent;
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #22c8bb, var(--wh-accent));
    border-color: transparent;
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #fb4e98, var(--wh-danger));
    border-color: transparent;
}

.btn-default,
.btn-secondary {
    color: var(--wh-ink);
    background: #f7f5fb;
    border-color: var(--wh-border);
}

.btn-xs {
    min-height: 30px;
    border-radius: 8px;
}

.wh-session-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wh-session-export-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    white-space: nowrap;
    box-shadow: none !important;
    outline: none;
}

.wh-session-export-actions .btn:hover,
.wh-session-export-actions .btn:active,
.wh-session-export-actions .btn:focus {
    box-shadow: none !important;
}

.wh-session-export-actions .btn:focus-visible {
    outline: 2px solid rgba(114, 87, 187, 0.45);
    outline-offset: 2px;
}

.wh-session-export-actions .btn .fal {
    margin-right: 0 !important;
    line-height: 1;
}

.wh-session-editor-card > .panel-hdr {
    align-items: flex-start;
    min-height: 0;
    padding: 0.625rem 0.75rem;
}

.wh-session-editor-card > .panel-hdr h2 {
    flex: 0 0 auto;
    font-size: 0.825rem;
    line-height: 1.2;
}

.wh-session-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.wh-session-list-action.btn {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(114, 87, 187, 0.24);
    border-radius: 8px;
    color: #644ba9;
    background: #f7f4ff;
    box-shadow: none !important;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

.wh-session-list-action.btn:hover,
.wh-session-list-action.btn:focus,
.wh-session-list-action.btn:active {
    color: #513a93;
    background: #eee8ff;
    border-color: rgba(114, 87, 187, 0.42);
    box-shadow: none !important;
}

.wh-session-list-action.btn:focus-visible {
    outline: 2px solid rgba(114, 87, 187, 0.42);
    outline-offset: 2px;
}

.dtr-details .wh-session-list-actions {
    display: inline-flex;
    vertical-align: middle;
}

.wh-unihotel-check {
    display: flex;
    min-height: 1.25rem;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.wh-unihotel-check__link {
    padding: 0;
    border: 0;
    color: #644ba9;
    background: transparent;
    font-size: 0.75rem;
    line-height: 1.25rem;
    text-decoration: underline;
    text-decoration-color: rgba(100, 75, 169, 0.38);
    text-underline-offset: 2px;
    cursor: pointer;
}

.wh-unihotel-check__link:hover,
.wh-unihotel-check__link:focus {
    color: #513a93;
    text-decoration-color: currentColor;
}

.wh-unihotel-check__link:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(114, 87, 187, 0.35);
    outline-offset: 2px;
}

.wh-unihotel-check__link:disabled {
    opacity: 0.55;
    cursor: wait;
}

.wh-unihotel-check__spinner {
    color: var(--wh-muted);
    font-size: 0.75rem;
}

.wh-unihotel-check__result {
    display: flex;
    min-height: 0;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
    margin-top: 0.3rem;
    color: var(--wh-muted);
    font-size: 0.75rem;
}

.wh-unihotel-check__result:empty {
    display: none;
}

.wh-unihotel-check__result.is-success {
    color: #087f75;
}

.wh-unihotel-check__result.is-error {
    color: var(--wh-danger);
}

.wh-unihotel-check__result strong {
    color: inherit;
}

.wh-session-datetime-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8.5rem;
    gap: 0.625rem;
}

.wh-session-date-input,
.wh-session-time-input {
    padding-left: 2.9rem;
    background-repeat: no-repeat;
    background-position: 0.8rem center;
    background-size: 1.35rem;
}

.wh-session-date-input {
    background-image: url("../img/ui-icons/calendar.svg");
}

.wh-session-time-input {
    background-image: url("../img/ui-icons/clock.svg");
    color: var(--wh-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.wh-session-time-input:focus {
    border-color: rgba(114, 87, 187, 0.42);
    box-shadow: 0 0 0 3px rgba(114, 87, 187, 0.1);
}

.wh-session-time-input.is-invalid {
    border-color: var(--wh-danger);
    background-image: url("../img/ui-icons/clock.svg");
}

.wh-datepicker-popup {
    width: 18rem;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem;
    border: 1px solid var(--wh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(46, 36, 80, 0.2);
    z-index: 2100 !important;
}

.wh-datepicker-popup table {
    width: 100%;
}

.wh-datepicker-popup table th,
.wh-datepicker-popup table td {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
}

.wh-datepicker-popup .datepicker-switch {
    color: var(--wh-text);
    font-weight: 700;
}

.wh-datepicker-popup table tr td.day:hover,
.wh-datepicker-popup table tr td.focused {
    background: var(--wh-surface-soft);
}

.wh-datepicker-popup table tr td.active,
.wh-datepicker-popup table tr td.active:hover {
    color: #fff;
    background: #7257bb !important;
}

.wh-datepicker-popup table tr td.today:not(.active) {
    color: #7257bb;
    background: #f0ebff;
}

@media (max-width: 575.98px) {
    .wh-session-datetime-fields {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .wh-session-editor-card .panel-hdr {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .wh-session-editor-card .panel-toolbar {
        width: 100%;
        margin-left: 0;
    }

    .wh-session-editor-card .panel-toolbar .btn {
        flex: 1 1 0;
        margin-right: 0 !important;
        padding-right: 0.625rem;
        padding-left: 0.625rem;
    }
}

.badge {
    padding: 0.42em 0.68em;
    border-radius: 999px;
    font-weight: 650;
}

.badge-primary {
    color: var(--wh-primary-dark);
    background: var(--wh-primary-soft);
}

/* Form system and custom field icons */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    margin-bottom: 0.45rem;
    color: #4a445d;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control,
.custom-select {
    min-height: 48px;
    color: var(--wh-ink);
    background-color: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(40, 36, 63, 0.02);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea.form-control {
    min-height: 112px;
    padding-top: 0.85rem;
    resize: vertical;
}

.form-control:hover {
    border-color: #cfc7df;
}

.form-control:focus,
.custom-select:focus {
    color: var(--wh-ink);
    background-color: #fff;
    border-color: var(--wh-primary);
    box-shadow: var(--wh-focus);
}

.form-control:disabled,
.form-control[readonly] {
    color: #696276;
    background-color: #f7f5fa;
}

.input-group > .form-control {
    border-radius: 12px 0 0 12px;
}

.input-group-append .btn,
.input-group-append .input-group-text,
.input-group-prepend .input-group-text {
    min-height: 48px;
    color: var(--wh-primary);
    background: #faf9fd;
    border-color: var(--wh-border);
}

.input-group-append .btn {
    border-radius: 0 12px 12px 0;
}

.help-block,
.form-text {
    color: var(--wh-muted);
    font-size: 0.78rem;
}

input.form-control[name="email"],
input.form-control[type="email"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/mail.svg");
}

input.form-control[type="password"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/lock.svg");
}

input.form-control[name="first_name"],
input.form-control[name="last_name"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/user.svg");
}

input.form-control[name="hourly_rate"],
select.form-control[name="currency"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/coin.svg");
}

input.form-control[name="unihotel_id"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/building.svg");
}

select.form-control[name="timezone"],
input.form-control[type="time"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/clock.svg");
}

textarea.form-control[name*="report"],
input.form-control[name="report"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/note.svg");
    background-position: 0.8rem 0.8rem !important;
}

input.form-control[type="date"],
input.form-control[type="datetime-local"],
input.form-control[name*="date"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/calendar.svg");
}

input.form-control[name*="key"] {
    padding-left: 2.9rem;
    background-image: url("../img/ui-icons/key.svg");
}

.dataTables_filter input,
input[type="search"].form-control {
    padding-left: 2.9rem !important;
    background-image: url("../img/ui-icons/search.svg");
}

input.form-control[name="email"],
input.form-control[type="email"],
input.form-control[type="password"],
input.form-control[name="first_name"],
input.form-control[name="last_name"],
input.form-control[name="hourly_rate"],
input.form-control[name="unihotel_id"],
input.form-control[type="date"],
input.form-control[type="time"],
input.form-control[type="datetime-local"],
input.form-control[name*="date"],
input.form-control[name*="key"],
textarea.form-control[name*="report"],
input.form-control[name="report"],
select.form-control[name="currency"],
select.form-control[name="timezone"],
.dataTables_filter input,
input[type="search"].form-control {
    background-repeat: no-repeat;
    background-position: 0.8rem center;
    background-size: 1.35rem;
}

/* Application chrome */
.wh-app-shell .page-sidebar {
    background:
        linear-gradient(180deg, rgba(36, 29, 61, 0.05), rgba(36, 29, 61, 0.2)),
        linear-gradient(160deg, #63548f, #4d4676);
}

.wh-app-shell .page-logo,
.wh-app-shell .page-sidebar .page-logo {
    background: rgba(30, 24, 53, 0.14);
}

.wh-app-shell .page-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(114, 88, 173, 0.1);
    box-shadow: 0 8px 28px rgba(57, 43, 88, 0.05);
    backdrop-filter: blur(14px);
}

.wh-app-shell .header-btn {
    color: var(--wh-primary);
    border-color: var(--wh-border);
    border-radius: 11px;
}

.wh-app-shell .nav-menu li a {
    border-radius: 9px;
}

.wh-app-shell .nav-menu li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.wh-app-shell .nav-menu li.active:not(.open) > a::before {
    display: none;
    content: none;
}

.wh-app-shell .page-sidebar .nav-footer {
    display: none;
}

.wh-app-shell .info-card {
    min-height: 148px;
}

.wh-app-shell .page-footer {
    color: #817a91;
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--wh-border);
}

/* Language switcher */
.wh-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 3px;
    background: #f1eef8;
    border: 1px solid rgba(114, 88, 173, 0.14);
    border-radius: 10px;
}

.wh-language-switcher button {
    display: inline-grid;
    width: 36px;
    min-height: 30px;
    padding: 0;
    color: var(--wh-muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: pointer;
    place-items: center;
    transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.wh-language-switcher button:hover {
    color: var(--wh-primary-dark);
    background: rgba(255, 255, 255, 0.72);
}

.wh-language-switcher button:focus-visible {
    outline: 2px solid var(--wh-accent);
    outline-offset: 1px;
}

.wh-language-switcher button.is-active {
    color: #fff;
    background: var(--wh-primary);
    box-shadow: 0 4px 12px rgba(60, 45, 96, 0.2);
    cursor: default;
}

.wh-admin-shortcut {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.6rem;
    padding: 0.45rem 0.7rem;
    color: var(--wh-primary-dark);
    background: var(--wh-primary-soft);
    border: 1px solid rgba(114, 88, 173, 0.16);
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 750;
}

.wh-admin-shortcut:hover {
    color: #fff;
    background: var(--wh-primary);
}

.wh-auth-shell .wh-language-switcher {
    background: rgba(30, 24, 53, 0.24);
    border-color: rgba(255, 255, 255, 0.16);
}

.wh-auth-shell .wh-language-switcher button {
    color: rgba(255, 255, 255, 0.76);
}

.wh-auth-shell .wh-language-switcher button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.wh-auth-shell .wh-language-switcher button.is-active {
    color: #2e2850;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 15, 38, 0.18);
}

/* Auth screens */
.wh-auth-shell .page-inner {
    background:
        radial-gradient(circle at 12% 15%, rgba(36, 202, 190, 0.17), transparent 24rem),
        radial-gradient(circle at 88% 84%, rgba(167, 128, 225, 0.26), transparent 30rem),
        linear-gradient(145deg, #4b416f 0%, #5c5087 58%, #4c4778 100%);
}

.wh-auth-shell .page-content-wrapper > .height-10 {
    height: 74px !important;
    background: rgba(48, 39, 79, 0.32) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

.wh-auth-shell .page-logo {
    height: 74px !important;
}

.wh-auth-shell .page-logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wh-auth-shell .flex-1 {
    background-size: cover !important;
}

.wh-auth-shell .card {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 24px 64px rgba(29, 23, 51, 0.2);
    backdrop-filter: blur(20px);
}

.wh-auth-shell .nav-pills {
    gap: 0.5rem;
}

.wh-auth-shell .nav-pills .nav-link {
    min-width: 104px;
    padding: 0.72rem 1rem;
    border-radius: 11px;
    text-align: center;
    font-weight: 700;
}

.wh-auth-shell .nav-pills .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #8067bd, var(--wh-primary));
    box-shadow: 0 8px 18px rgba(114, 88, 173, 0.24);
}

.wh-auth-hero {
    max-width: 640px;
}

.wh-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    color: #e7fffb;
    background: rgba(24, 184, 173, 0.16);
    border: 1px solid rgba(137, 245, 235, 0.24);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.wh-auth-kicker::before {
    width: 7px;
    height: 7px;
    background: #4fe0d3;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(79, 224, 211, 0.13);
    content: "";
}

.wh-auth-shell .wh-auth-hero h2.fs-xxl {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.3rem, 4.2vw, 4.3rem) !important;
    font-weight: 680 !important;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.wh-auth-shell .wh-auth-hero > p {
    max-width: 600px;
    margin-bottom: 1.7rem !important;
    font-size: 1.08rem !important;
    line-height: 1.65;
}

.wh-auth-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding: 0;
    list-style: none;
}

.wh-auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-right: 1rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.25;
}

.wh-auth-benefits li + li {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.wh-auth-benefits i {
    flex: 0 0 auto;
    color: #67e9de;
    font-size: 1rem;
}

.wh-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.wh-auth-brand-link:hover {
    color: #fff;
    opacity: 0.86;
}

.wh-auth-brand-link img {
    flex: 0 0 40px;
}

.wh-auth-shell .btn-xl {
    min-height: 48px;
    padding-inline: 1.45rem;
}

.wh-auth-card-heading {
    margin-bottom: 1.45rem;
}

.wh-auth-card-heading .wh-eyebrow {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: var(--wh-accent-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wh-auth-card-heading h1 {
    margin: 0;
    color: var(--wh-ink);
    font-size: 1.55rem;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.wh-auth-card-heading p {
    margin: 0.45rem 0 0;
    color: var(--wh-muted);
    line-height: 1.55;
}

/* Error screens */
.wh-error-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: clamp(1.25rem, 5vw, 4rem);
    place-items: center;
    overflow: hidden;
}

.wh-error-page::before,
.wh-error-page::after {
    position: absolute;
    width: min(42vw, 34rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.wh-error-page::before {
    top: -20%;
    right: -8%;
    box-shadow:
        0 0 0 4rem rgba(255, 255, 255, 0.025),
        0 0 0 8rem rgba(255, 255, 255, 0.018);
}

.wh-error-page::after {
    bottom: -32%;
    left: -10%;
    background: rgba(24, 184, 173, 0.07);
}

.wh-error-card {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    padding: clamp(1.5rem, 4vw, 3.25rem);
    color: var(--wh-ink);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: clamp(20px, 3vw, 30px);
    box-shadow: 0 32px 90px rgba(25, 19, 48, 0.3);
    backdrop-filter: blur(24px);
}

.wh-error-header,
.wh-error-brand,
.wh-error-status,
.wh-error-code-row,
.wh-error-actions,
.wh-error-note {
    display: flex;
    align-items: center;
}

.wh-error-header {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.5rem, 7vw, 4.75rem);
}

.wh-error-brand {
    min-width: 0;
    gap: 0.75rem;
    color: var(--wh-ink);
    font-size: 1rem;
    font-weight: 780;
    letter-spacing: -0.025em;
}

.wh-error-brand:hover {
    color: var(--wh-primary);
}

.wh-error-brand img {
    flex: 0 0 42px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(79, 67, 125, 0.18);
}

.wh-error-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wh-error-status {
    flex: 0 0 auto;
    gap: 0.55rem;
    padding: 0.52rem 0.75rem;
    color: #9b5b05;
    background: #fff6e8;
    border: 1px solid #f7dfbc;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.wh-error-status > span {
    width: 8px;
    height: 8px;
    background: var(--wh-warning);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(239, 170, 66, 0.14);
}

.wh-error-status--neutral {
    color: #087d75;
    background: #eafbf8;
    border-color: #c5eee8;
}

.wh-error-status--neutral > span {
    background: var(--wh-accent);
    box-shadow: 0 0 0 5px rgba(24, 184, 173, 0.13);
}

.wh-error-code-row {
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.wh-error-icon {
    display: grid;
    width: clamp(3.25rem, 8vw, 4.5rem);
    aspect-ratio: 1;
    color: #fff;
    background: linear-gradient(145deg, var(--wh-primary), #997bd4);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(114, 88, 173, 0.25);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    place-items: center;
}

.wh-error-icon svg {
    width: 54%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wh-error-icon circle {
    fill: currentColor;
    stroke: none;
}

.wh-error-code {
    color: var(--wh-primary-dark);
    font-size: clamp(4rem, 13vw, 7.5rem);
    font-weight: 830;
    letter-spacing: -0.08em;
    line-height: 0.8;
}

.wh-error-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--wh-accent-dark);
    font-size: 0.73rem;
    font-weight: 820;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.wh-error-card h1 {
    margin: 0;
    color: var(--wh-ink);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 790;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.wh-error-description {
    max-width: 590px;
    margin: 1.15rem 0 0;
    color: var(--wh-muted);
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.7;
}

.wh-error-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.wh-error-actions .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    padding-inline: 1.15rem;
    border-radius: 12px;
    font-weight: 740;
}

.wh-error-primary {
    background: linear-gradient(135deg, var(--wh-primary), #8067bd);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(114, 88, 173, 0.23);
}

.wh-error-note {
    gap: 0.65rem;
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    color: var(--wh-muted);
    border-top: 1px solid var(--wh-border);
    font-size: 0.82rem;
    line-height: 1.5;
}

.wh-error-note i {
    color: var(--wh-accent-dark);
}

/* Temporary production error telemetry */
.wh-telemetry-page {
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem);
    color: #f7f5ff;
}

.wh-telemetry-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.wh-telemetry-header {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.wh-telemetry-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.wh-telemetry-header p {
    max-width: 720px;
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.65;
}

.wh-telemetry-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
    color: #89f5ea;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.wh-telemetry-kicker span {
    width: 8px;
    height: 8px;
    background: #5ee5d8;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(94, 229, 216, 0.12);
}

.wh-telemetry-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
}

.wh-telemetry-actions .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 0.5rem;
    border-color: rgba(255, 255, 255, 0.28);
    border-radius: 11px;
    color: #fff;
}

.wh-telemetry-count {
    padding: 0.55rem 0.75rem;
    color: #d8d1ef;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.wh-telemetry-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    color: #ffe9c7;
    background: rgba(239, 170, 66, 0.12);
    border: 1px solid rgba(255, 203, 126, 0.22);
    border-radius: 14px;
    line-height: 1.55;
}

.wh-telemetry-warning i {
    margin-top: 0.15rem;
    color: #ffc66e;
}

.wh-telemetry-warning code {
    display: inline-block !important;
    padding: 0.12rem 0.35rem;
    color: #49330c !important;
    background: #fff7dc !important;
    border: 1px solid rgba(113, 78, 14, 0.28);
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 700;
}

.wh-telemetry-events {
    display: grid;
    gap: 0.85rem;
}

.wh-telemetry-event,
.wh-telemetry-empty {
    background: rgba(25, 20, 46, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    box-shadow: 0 18px 52px rgba(19, 14, 39, 0.14);
    backdrop-filter: blur(16px);
}

.wh-telemetry-event {
    padding: 1.15rem;
}

.wh-telemetry-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.75rem;
}

.wh-telemetry-event__id {
    color: #8ef2e8;
    font-weight: 800;
}

.wh-telemetry-event h2 {
    margin: 0;
    color: #fff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1rem;
    font-weight: 750;
}

.wh-telemetry-event > p {
    margin: 0.55rem 0 0;
    color: #d5cee8;
    overflow-wrap: anywhere;
}

.wh-telemetry-event details {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-telemetry-event summary {
    padding: 0.85rem 0 0;
    color: #a89bc8;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 750;
}

.wh-telemetry-event pre {
    max-height: 480px;
    margin: 0.85rem 0 0;
    padding: 1rem;
    overflow: auto;
    color: #eeeaff;
    background: rgba(8, 6, 18, 0.65);
    border-radius: 10px;
    font-size: 0.76rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.wh-telemetry-empty {
    padding: clamp(2rem, 7vw, 5rem);
    text-align: center;
}

.wh-telemetry-empty i {
    color: #67e9de;
    font-size: 2rem;
}

.wh-telemetry-empty h2 {
    margin: 1rem 0 0;
    color: #fff;
    font-size: 1.4rem;
}

.wh-telemetry-empty p {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.wh-registration-page .col-xl-6.ml-auto.mr-auto {
    max-width: 720px;
}

.wh-registration-page .wh-auth-card {
    padding: 1.75rem !important;
}

.wh-registration-submit .btn {
    min-width: 210px;
    white-space: nowrap;
}

/* Public session report */
.wh-share-page {
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 3rem) 0;
}

.wh-share-page .container {
    max-width: 1120px;
}

.wh-share-sheet[data-size="A4"] {
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 4rem);
    color: var(--wh-ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(29, 23, 51, 0.24);
}

.wh-share-sheet h2,
.wh-share-sheet h3,
.wh-share-sheet h4,
.wh-share-sheet strong {
    color: var(--wh-ink) !important;
}

.wh-share-sheet h3 {
    max-width: calc(100% - 180px);
    font-size: clamp(2rem, 5vw, 3.6rem) !important;
    letter-spacing: -0.05em;
}

.wh-share-heading h2 {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.wh-share-qr {
    top: 1rem !important;
    right: 1rem !important;
    padding: 0.55rem;
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 16px;
    box-shadow: var(--wh-shadow-sm);
}

.wh-share-meta {
    margin-top: 2.5rem;
}

.wh-share-sheet .table {
    color: var(--wh-ink);
}

.wh-share-sheet .table-clean td {
    padding: 0.8rem;
}

.wh-share-sheet .table-scale-border-top {
    border-top: 2px solid var(--wh-primary) !important;
}

.wh-share-total {
    margin-top: 1rem;
}

.wh-share-total .form-control {
    margin-top: 0.5rem;
}

/* Timer */
#telegram > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

#telegram > [class*="col-"] > .card {
    margin-bottom: 1rem;
}

#timer-app {
    width: 100%;
    margin-top: 0 !important;
}

#timer-wrapper {
    margin: 0 !important;
}

#timer-wrapper .profile-image {
    width: 54px;
    height: 54px;
    box-shadow: 0 0 0 6px var(--wh-primary-soft);
}

#timer-wrapper time {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: var(--wh-ink);
    font-variant-numeric: tabular-nums;
}

#timer-wrapper time label {
    margin: 0;
    color: var(--wh-primary-dark);
    font-size: 1.35rem;
    font-weight: 750;
}

#buttons-wrapper .btn {
    min-width: 118px;
}

#start-session:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #22c8bb, var(--wh-accent));
    border-color: transparent;
}

#pause-session:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #f4ba5e, var(--wh-warning));
    border-color: transparent;
}

#stop-session:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #fb4e98, var(--wh-danger));
    border-color: transparent;
}

/* Tables and data-heavy screens */
.table {
    color: #3f394e;
}

.table thead th,
.table tfoot th {
    color: #5e566e;
    background: #f7f5fb;
    border-color: var(--wh-border);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: 0.85rem;
    vertical-align: middle;
    border-color: var(--wh-border);
}

.table-hover tbody tr {
    transition: background 120ms ease;
}

.table-hover tbody tr:hover {
    background: #faf9fd;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    background: var(--wh-primary) !important;
    border-color: var(--wh-primary) !important;
    border-radius: 8px;
}

.modal-content {
    overflow: hidden;
}

.modal-header,
.modal-footer {
    border-color: var(--wh-border);
}

.wh-profile-summary {
    overflow: hidden;
    border-radius: var(--wh-radius);
    box-shadow: var(--wh-shadow);
}

.wh-profile-summary th {
    width: 44%;
    color: var(--wh-muted);
    background: #faf9fd;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wh-profile-summary td {
    font-weight: 650;
}

.wh-profile-panel .nav-pills,
.wh-scheduler-card .custom-control {
    gap: 0.45rem;
}

.wh-profile-panel .nav-pills .nav-link {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-weight: 700;
}

.wh-profile-panel .nav-pills .nav-link.active {
    color: #fff;
    background: var(--wh-primary);
}

.wh-data-panel .panel-content {
    overflow-x: auto;
}

.wh-scheduler-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 15%, rgba(36, 202, 190, 0.13), transparent 24rem),
        radial-gradient(circle at 88% 84%, rgba(167, 128, 225, 0.2), transparent 30rem),
        var(--wh-canvas) !important;
}

.wh-scheduler-page .page-content {
    background: transparent;
}

.wh-scheduler-card {
    max-width: 920px;
    margin-inline: auto;
}

.wh-scheduler-card .frame-wrap.bg-faded {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: #faf9fd;
    box-shadow: none;
}

/* Calendar */
.fc .fc-toolbar h2 {
    color: var(--wh-ink);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.fc .fc-button-primary {
    color: var(--wh-primary-dark);
    background: var(--wh-primary-soft);
    border-color: transparent;
    border-radius: 9px;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    color: #fff;
    background: var(--wh-primary);
}

/* Responsive rules */
@media (min-width: 992px) {
    .wh-app-shell .page-content {
        padding: 1.8rem 2rem 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .wh-app-shell .page-content {
        padding: 1.2rem;
    }

    .wh-app-shell .page-header {
        min-height: 64px;
    }

    .wh-app-shell .header-btn {
        width: 42px;
        height: 42px;
    }

    .panel-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .wh-admin-shortcut {
        width: 36px;
        justify-content: center;
        padding-inline: 0;
    }

    .wh-admin-shortcut span {
        display: none;
    }

    .wh-telemetry-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .wh-telemetry-actions {
        width: 100%;
        justify-content: space-between;
    }

    .wh-error-page {
        padding: 1rem;
    }

    .wh-error-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .wh-error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wh-error-actions .btn {
        width: 100%;
    }

    .wh-auth-shell .page-inner {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
    }

    .wh-auth-shell .page-content-wrapper {
        width: 100%;
        flex: 1 0 auto;
    }

    .wh-auth-shell .position-absolute.pos-bottom {
        position: static !important;
        flex: 0 0 auto;
    }

    .wh-share-page {
        padding: 1rem 0;
    }

    .wh-share-page .container {
        padding-inline: 1rem;
    }

    .wh-share-sheet[data-size="A4"] {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .wh-share-sheet h3 {
        max-width: none;
        padding-top: 1rem !important;
        font-size: 2.2rem !important;
    }

    .wh-share-qr {
        position: static !important;
        display: inline-flex;
        margin: 1.5rem 0 0 !important;
    }

    .wh-share-qr img,
    .wh-share-qr svg {
        max-width: 116px;
        height: auto;
    }

    .wh-share-meta {
        margin-top: 1rem;
    }

    .wh-share-meta .table-responsive {
        width: 100%;
    }

    .wh-share-meta .text-right {
        text-align: left !important;
    }

    .wh-share-sheet #session_table {
        min-width: 760px;
    }

    .wh-share-total h4 {
        font-size: 1.15rem !important;
    }

    .wh-auth-shell .page-content-wrapper > .height-10 {
        height: 68px !important;
        padding-inline: 1rem !important;
    }

    .wh-auth-shell .page-logo {
        height: 68px !important;
    }

    .wh-auth-shell .page-logo-text {
        max-width: 155px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wh-auth-shell .container {
        padding-inline: 1rem !important;
    }

    .wh-auth-shell .card {
        border-radius: 16px !important;
    }

    .wh-auth-shell .card.p-4 {
        padding: 1.35rem !important;
    }

    .wh-auth-shell .nav-pills {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wh-auth-shell .nav-pills .nav-link {
        min-width: 0;
    }

    .wh-app-shell .page-content {
        padding: 1rem;
    }

    .breadcrumb {
        max-width: calc(100vw - 2rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .subheader,
    .contrainer.container-fluid {
        margin-bottom: 1.1rem !important;
    }

    .subheader-title {
        max-width: 100%;
        padding-right: 0;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .subheader-title .badge {
        position: static;
        display: flex;
        width: fit-content;
        max-width: calc(100% - 2.6rem);
        margin: 0.55rem 0 0 2.6rem;
        white-space: nowrap;
    }

    .subheader-title sup {
        display: inline-block;
        margin-top: 0.45rem;
        vertical-align: middle;
    }

    .card-body,
    .panel-content {
        padding: 1rem;
    }

    .card-header,
    .panel-hdr {
        align-items: flex-start;
        min-height: 54px;
        padding: 0.85rem 1rem;
    }

    .panel-hdr {
        flex-direction: column;
        gap: 0.75rem;
    }

    .panel-toolbar {
        width: 100%;
    }

    .panel-toolbar .btn {
        flex: 1 1 auto;
    }

    .form-control,
    .custom-select {
        min-height: 50px;
        font-size: 16px;
    }

    .form-group.row > [class*="col-6"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-bottom: 0.9rem;
    }

    .password-registration > [class*="col-6"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-bottom: 1rem;
    }

    #buttons-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    #buttons-wrapper .btn {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

    #buttons-wrapper #stop-session {
        grid-column: 1 / -1;
    }

    .dataTables_wrapper > .row:first-child {
        gap: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin: 0.35rem 0 0 !important;
    }

    .dataTables_wrapper .dataTables_length select {
        min-height: 40px;
        border-radius: 9px;
    }

    .panel-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table.dataTable {
        font-size: 0.83rem;
    }

    .table.dataTable td,
    .table.dataTable th {
        padding: 0.7rem 0.6rem;
    }

    .wh-profile-summary {
        display: table;
        font-size: 0.84rem;
    }

    .wh-profile-summary th,
    .wh-profile-summary td {
        padding: 0.7rem;
    }

    .wh-profile-panel .nav-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wh-profile-panel .nav-pills .nav-link {
        text-align: center;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        gap: 0.75rem;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fc .fc-left,
    .fc .fc-center,
    .fc .fc-right {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .wh-registration-submit .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .wh-auth-shell .page-logo img {
        width: 28px;
        height: 28px;
    }

    .wh-auth-shell .page-logo-text {
        max-width: 132px;
        font-size: 0.92rem;
    }

    .wh-auth-shell .page-logo + a {
        margin-left: auto !important;
    }

    .wh-auth-shell .position-absolute.pos-bottom {
        font-size: 0.75rem;
    }

    .btn-xl {
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center {
        align-items: stretch !important;
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.justify-content-between.align-items-center .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
.wh-session-export-action {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.wh-session-export-action > .fal {
    line-height: 1;
}
