* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #eef2f5;
    color: #17222c;
}

.auth-scene-body {
    position: relative;
    overflow-x: hidden;
}

.auth-scene-body::before,
.auth-scene-body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(12px);
    opacity: 0.85;
}

.auth-scene-body::before {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -90px;
    background: radial-gradient(circle, rgba(28, 105, 165, 0.22) 0%, rgba(28, 105, 165, 0) 72%);
}

.auth-scene-body::after {
    width: 420px;
    height: 420px;
    right: -110px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(210, 146, 37, 0.2) 0%, rgba(210, 146, 37, 0) 72%);
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(135deg, #eff4f7 0%, #dfe9f0 42%, #edf2f5 100%);
}

.manual-login-body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(244, 241, 247, 0.98) 42%, rgba(237, 240, 247, 1) 100%);
}

.pin-entry-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(135deg, #17365d 0%, #214a7a 48%, #112947 100%);
    color: #ffffff;
}

.pin-entry-desktop-body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(244, 241, 247, 0.98) 42%, rgba(237, 240, 247, 1) 100%);
    color: #283142;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(470px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
}

.login-body .auth-showcase {
    display: none;
}

.login-body .auth-panel {
    min-height: auto;
}

.auth-showcase {
    min-height: 680px;
    display: flex;
    align-items: stretch;
}

.auth-showcase-inner,
.auth-panel-card,
.pin-panel-card {
    border-radius: 30px;
    box-shadow: 0 22px 60px rgba(15, 35, 54, 0.16);
}

.auth-showcase-inner {
    width: 100%;
    padding: 42px 38px;
    background:
        linear-gradient(160deg, rgba(20, 67, 113, 0.98) 0%, rgba(15, 52, 89, 0.95) 54%, rgba(199, 135, 25, 0.9) 160%);
    color: #ffffff;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.auth-showcase-inner::before {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 72%);
}

.auth-kicker,
.auth-panel-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-brand-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 42px rgba(10, 28, 46, 0.2);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.auth-brand-link:hover,
.auth-brand-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    outline: none;
}

.auth-brand-logo {
    display: block;
    width: min(100%, 280px);
    height: auto;
}

.auth-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel {
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manual-login-shell {
    width: min(470px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 0;
}

.manual-login-showcase {
    display: none;
}

.manual-login-panel {
    min-height: auto;
}

.manual-login-card {
    width: 100%;
    box-shadow: 0 20px 48px rgba(56, 65, 89, 0.14);
}

.auth-panel-card {
    width: min(100%, 470px);
    background: rgba(255, 255, 255, 0.92);
    padding: 40px 34px 32px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    position: relative;
}

.auth-trust-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(167, 177, 196, 0.72);
    background: rgba(255, 255, 255, 0.9);
    color: #5d687c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(26, 39, 59, 0.08);
    z-index: 2;
}

.auth-trust-indicator.is-trusted {
    color: #1d7d47;
    border-color: rgba(86, 170, 111, 0.58);
}

.auth-trust-indicator.is-untrusted {
    color: #6e7788;
}

.auth-close-button {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 999px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #56708a;
    background: #f3f6fa;
    border: 1px solid #d7e0ea;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.08);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    appearance: none;
}

.auth-close-button:hover,
.auth-close-button:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
    color: #243649;
    border-color: #bcc9d6;
    outline: none;
}

.auth-panel-kicker {
    color: #1b6ca8;
}

.auth-panel-title {
    margin: 10px 0 8px;
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.auth-panel-copy {
    margin-bottom: 22px;
}

.auth-form-stack {
    gap: 18px;
}

.auth-form-stack.is-shaking {
    animation: dashboard-lock-shake 0.22s ease both;
}

.pin-panel-card.is-shaking {
    animation: dashboard-lock-shake 0.22s ease both;
}

.auth-autofill-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-help-note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #647586;
}

.auth-secondary-form {
    margin-top: 12px;
}

.secondary-action-button {
    background: #6f8192;
}

.pin-entry-shell {
    width: min(540px, 100%);
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.pin-entry-shell-keyboard-only {
    width: min(440px, 100%);
}

.pin-pad-form {
    width: min(100%, 520px);
    display: grid;
    justify-items: center;
    gap: clamp(18px, 3vh, 28px);
}

.pin-panel-card {
    background: rgba(11, 29, 49, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    padding: 34px 30px 30px;
    position: relative;
}

.pin-panel-card-keyboard-only {
    width: min(100%, 440px);
    gap: 20px;
    padding: 34px 28px 30px;
}

.pin-panel-card .auth-trust-indicator {
    top: 18px;
    left: 18px;
}

.pin-user-badge {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pin-untrust-button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(194, 200, 214, 0.9);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px rgba(46, 58, 80, 0.12);
    cursor: pointer;
    z-index: 2;
}

.pin-untrust-button:hover,
.pin-untrust-button:focus-visible {
    background: #ffffff;
    border-color: rgba(160, 172, 193, 1);
    outline: none;
}

.pin-untrust-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.pin-user-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.auth-shell-pin {
    align-items: stretch;
}

.auth-showcase-pin .auth-showcase-inner {
    background:
        linear-gradient(165deg, rgba(11, 29, 49, 0.74) 0%, rgba(17, 55, 92, 0.78) 46%, rgba(20, 79, 127, 0.78) 100%);
}

.pin-hidden-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pin-box-entry {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(10px, 2vh, 26px);
}

.pin-code-box {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid #d1d4dd;
    border-radius: 10px;
    background: #ffffff;
    color: #283142;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    caret-color: transparent;
}

.pin-code-box.is-waiting {
    display: none;
}

.pin-code-box:focus {
    border-color: #617187;
    outline: 3px solid rgba(97, 113, 135, 0.16);
}

.pin-code-box.is-filled {
    background: #617187;
    border-color: #617187;
    color: #ffffff;
}

.pin-code-box.is-active:focus:not(.is-filled) {
    background-image: linear-gradient(#617187, #617187);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2px 26px;
    animation: pin-caret-blink 1s steps(1, end) infinite;
}

.pin-screen-title {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    color: #ffffff;
}

.pin-screen-copy {
    margin: -10px 0 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
}

.pin-panel-card-keyboard-only .pin-screen-copy {
    max-width: 22ch;
}

.pin-identity-note {
    max-width: min(360px, 100%);
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.pin-keyboard-only-note {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pin-signin-options {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.pin-signin-options-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.4;
}

.pin-signin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pin-option-button {
    min-width: 132px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pin-option-icon-button {
    min-width: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #cfd4dd;
    box-shadow: 0 3px 10px rgba(60, 69, 92, 0.08);
}

.pin-option-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    object-position: center;
    transform-origin: center;
}

.pin-option-icon-key {
    transform: translate(-46%, -50%);
}

.pin-option-icon-keypad {
    transform: translate(-50%, -50%);
}

.pin-option-icon-close {
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
}

.pin-option-button:hover,
.pin-option-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    outline: none;
}

.pin-option-icon-button:hover,
.pin-option-icon-button:focus-visible {
    background: #ffffff;
    border-color: #bcc4d0;
    box-shadow: 0 5px 14px rgba(60, 69, 92, 0.14);
}

.pin-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 34px);
    margin-top: clamp(10px, 2vh, 26px);
}

.pin-panel-card-keyboard-only .pin-dots {
    margin-top: 6px;
    gap: 12px;
}

.pin-panel-card-keyboard-only .pin-dot {
    width: 58px;
}

.pin-dot {
    width: clamp(52px, 11vw, 92px);
    aspect-ratio: 1;
    position: relative;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.pin-dot.is-filled {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(0.96);
}

.pin-dot.is-active::after {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    animation: pin-caret-blink 1s steps(1, end) infinite;
}

@keyframes pin-caret-blink {
    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

.pin-screen-error {
    max-width: min(420px, 100%);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(143, 29, 29, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-align: center;
}

.pin-admin-recovery-link {
    align-self: center;
    margin-top: 4px;
    padding: 10px 16px;
    min-height: 44px;
    font-size: 15px;
}

.pin-admin-recovery-option {
    position: relative;
}

.pin-admin-recovery-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    transform: translate(-50%, -50%);
}

.pin-keypad {
    width: min(100%, 540px);
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: clamp(18px, 2.5vh, 34px) clamp(26px, 5vw, 56px);
    align-items: center;
}

.pin-keypad-desktop {
    width: min(100%, 320px);
    gap: 14px 18px;
}

.pin-keypad[hidden] {
    display: none !important;
}

.pin-keypad-spacer {
    visibility: hidden;
}

.pin-key {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    border: 3px solid rgba(163, 158, 145, 0.9);
    background: transparent;
    color: #ffffff;
    font-size: clamp(44px, 8vw, 82px);
    font-weight: 300;
    line-height: 1;
}

.pin-key:hover,
.pin-key:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.pin-key:active {
    transform: scale(0.98);
}

.pin-entry-desktop-body .auth-shell-pin {
    width: min(440px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}

.pin-entry-desktop-body .auth-showcase {
    display: none;
}

.pin-entry-desktop-body .pin-entry-shell {
    width: 100%;
    min-height: auto;
}

.pin-entry-desktop-body .pin-pad-form {
    width: 100%;
}

.pin-entry-desktop-body .pin-panel-card-keyboard-only {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(212, 217, 228, 0.92);
    box-shadow: 0 20px 48px rgba(56, 65, 89, 0.14);
}

.pin-entry-desktop-body .pin-untrust-button {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 52px;
    height: 52px;
    border-radius: 9px;
    border: 1px solid #cfd4dd;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(60, 69, 92, 0.08);
}

.pin-entry-desktop-body .pin-untrust-button-mobile {
    display: none;
}

.pin-entry-desktop-body .pin-untrust-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pin-entry-desktop-body .pin-user-badge {
    width: 180px;
    height: 180px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pin-entry-desktop-body .pin-user-logo {
    width: 138px;
    height: 138px;
}

.pin-entry-desktop-body .pin-signin-options-label {
    color: #6a7080;
}

.pin-entry-desktop-body .pin-dot {
    border-color: #d1d4dd;
    background: #ffffff;
    border-radius: 10px;
}

.pin-entry-desktop-body .pin-dot.is-filled {
    background: #617187;
    border-color: #617187;
}

.pin-entry-desktop-body .pin-dot.is-active::after {
    background: #617187;
}

.pin-entry-desktop-body .pin-keypad-desktop {
    width: min(100%, 240px);
    gap: 10px 12px;
    justify-self: center;
    margin: 0 auto;
    transform: translateX(-18px);
}

.pin-entry-desktop-body .pin-key {
    border-color: #b6b3ad;
    color: #374253;
}

.auth-card,
.page-shell,
.topbar {
    width: min(1100px, calc(100% - 32px));
}

.auth-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(14, 33, 52, 0.12);
}

.stack {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
button {
    font: inherit;
}

input {
    padding: 12px 14px;
    border: 1px solid #c6d1db;
    border-radius: 12px;
    background: #fcfdff;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: #1b6ca8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.mobile-go-button {
    display: none;
    background: #145e8f;
}

.muted {
    color: #5f7080;
}

.error-box,
.info-box {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.error-box {
    background: #fbe7e7;
    color: #8c1e1e;
}

.info-box {
    background: #e5f1fb;
    color: #14496d;
}

.topbar {
    margin: 0 auto;
    padding: 20px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar h1 {
    margin: 0;
}

.welcome-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 24, 38, 0.48);
    z-index: 3000;
}

.welcome-modal-backdrop[hidden] {
    display: none !important;
}

.welcome-modal-card {
    width: min(420px, 100%);
    padding: 28px 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(10, 29, 48, 0.24);
    text-align: center;
}

.welcome-modal-card h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.welcome-modal-name {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 700;
    color: #1b4f82;
}

.pin-confirm-modal-card {
    width: min(360px, 100%);
    position: relative;
    z-index: 3001;
    pointer-events: auto;
}

.pin-confirm-modal-backdrop {
    pointer-events: auto;
}

.pin-confirm-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pin-confirm-actions button {
    min-width: 120px;
}

.search-page-title-short {
    display: none;
}

.search-page-topbar {
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 0;
}

.search-page-title,
.search-page-actions {
    flex: 0 0 auto;
}

.search-page-panel {
    flex: 1 0 100%;
}

.search-page-shell {
    margin-top: 18px;
}

.pitch-view-image-strip {
    width: min(1100px, calc(100% - 32px));
    margin: 12px auto 0;
}

.details-phone-line {
    margin-top: 8px;
    text-align: center;
}

.details-reg-plate {
    display: flex;
    width: min(300px, 100%);
    min-width: 100px;
    max-width: 300px;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    margin: 10px auto 0;
    padding: 6px 18px;
    background: #f7d600;
    color: #111111;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.details-reg-secondary-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.details-reg-plate-secondary {
    margin-top: 0;
}

.details-reg-size-1 {
    font-size: 25px;
}

.details-reg-size-2 {
    font-size: 25px;
}

.details-reg-size-3 {
    font-size: 25px;
}

.pitch-view-header {
    position: relative;
    justify-content: center;
}

.pitch-view-header-main {
    width: 100%;
    text-align: center;
}

.pitch-view-header-main h1 {
    font-size: 20px;
    width: 100%;
    text-align: center;
}

.pitch-main-heading {
    font-size: 28px;
}

.pitch-view-header-actions,
.stack-topbar.pitch-view-header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

.page-phones {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.page-vehicle-line {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.vehicle-notes-panel {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 24px;
}

.vehicle-notes-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vehicle-notes-heading h2 {
    margin: 0;
    font-size: 22px;
    color: #17222c;
}

.vehicle-notes-button {
    cursor: pointer;
}

.vehicle-notes-cancel[hidden],
.vehicle-notes-form[hidden] {
    display: none;
}

.vehicle-notes-form {
    width: min(680px, 100%);
    margin: 0 auto 12px;
}

.vehicle-notes-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d6e2;
    border-radius: 12px;
    font-size: 16px;
    color: #17222c;
    background: #ffffff;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
    line-height: 1.4;
}

.vehicle-notes-form textarea:focus {
    outline: 2px solid #8fb4d9;
    border-color: #7ea5cf;
}

.vehicle-notes-box {
    min-height: 120px;
    max-height: 220px;
    padding: 14px 16px;
    border: 1px solid #d8e2eb;
    border-radius: 14px;
    background: #f8fbfd;
    color: #17222c;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-y: auto;
}

.page-phone-line {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #17222c;
    text-align: center;
}

.page-phone-line-single {
    font-size: 30px;
}

.email-link {
    color: #0b63c9;
    text-decoration: underline;
}

.email-link:hover,
.email-link:focus {
    text-decoration: underline;
}

.phone-link {
    color: #0b63c9;
    text-decoration: underline;
}

.phone-link:hover,
.phone-link:focus {
    text-decoration: underline;
}

.stack-topbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arrow-button {
    min-width: 48px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.15rem;
    font-weight: 900;
}

.arrow-button-placeholder {
    background: #c7d3de;
    color: transparent;
    cursor: default;
    pointer-events: none;
}

.page-shell {
    margin: 0 auto 24px;
    display: grid;
    gap: 18px;
}

.admin-page-shell {
    align-items: start;
}

.admin-dashboard-topbar {
    align-items: end;
}

.admin-dashboard-shell {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 24px;
}

.admin-dashboard-sidebar {
    align-self: start;
}

.admin-dashboard-sidebar-panel {
    display: grid;
    gap: 22px;
    padding: 24px;
    position: sticky;
    top: 18px;
    background: linear-gradient(180deg, #fdfefe 0%, #f6f9fc 100%);
    border: 1px solid #dfe8f1;
    box-shadow: 0 20px 44px rgba(16, 35, 56, 0.1);
}

.admin-dashboard-sidebar-header {
    display: grid;
    gap: 8px;
}

.admin-sidebar-title {
    margin-bottom: 0;
}

.admin-dashboard-section {
    display: grid;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid #e3ebf3;
}

.admin-section-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-section-toggle-row .admin-section-title {
    margin-bottom: 0;
}

.admin-section-toggle-button {
    padding: 10px 14px;
    min-height: 42px;
    font-size: 14px;
}

.admin-dashboard-main {
    display: grid;
    gap: 14px;
    align-self: start;
    min-width: 0;
}

.admin-activity-panel {
    padding: 20px 22px;
}

.admin-user-form {
    max-width: none;
}

.admin-form-row {
    display: grid;
    grid-template-columns: minmax(132px, 170px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.admin-form-row-label {
    display: block;
    font-weight: 700;
    text-align: right;
}

.admin-form-row input {
    width: 100%;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.admin-checkbox input {
    width: auto;
    margin: 0;
}

.admin-section-title {
    margin: 0 0 14px;
    font-size: 22px;
    color: #17222c;
}

.admin-edit-user-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-edit-user-title-row .admin-section-title {
    margin: 0;
}

.admin-edit-user-select-label {
    display: grid;
    gap: 4px;
    min-width: 150px;
    color: #5f7080;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-edit-user-select-label select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 7px 32px 7px 10px;
    color: #263447;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.admin-staff-detail-value-with-select {
    display: grid;
    grid-template-columns: auto minmax(130px, 1fr);
    align-items: center;
    gap: 10px;
}

.admin-edit-user-inline-select {
    min-width: 0;
    width: 100%;
}

.admin-dashboard-actions .button-link {
    width: 100%;
}

.admin-dashboard-overview {
    display: grid;
    grid-template-columns: minmax(520px, 4fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: stretch;
    height: calc(100vh - 132px);
    min-height: 560px;
}

.admin-dashboard-calendar-panel,
.admin-dashboard-activity-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.admin-dashboard-calendar-heading {
    display: grid;
    gap: 8px;
}

.admin-dashboard-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-dashboard-calendar-nav-group {
    display: grid;
    grid-template-columns: 34px auto 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    padding: 4px;
    background: #f8fbfe;
}

.admin-dashboard-calendar-nav-group a {
    display: inline-flex;
    width: 34px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #174266;
    background: #eef7fd;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.admin-dashboard-calendar-nav-group a:hover,
.admin-dashboard-calendar-nav-group a:focus-visible {
    color: #ffffff;
    background: #1b6ca8;
    outline: none;
}

.admin-dashboard-calendar-nav-group span {
    color: #5f7080;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-dashboard-month {
    border-radius: 10px;
    padding: 0;
    border: 0;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.admin-dashboard-month .viva-day {
    min-height: 86px;
}

.admin-dashboard-calendar-link {
    width: fit-content;
    margin-top: 14px;
}

.admin-dashboard-today-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d8e3ee;
    border-radius: 10px;
    color: #174266;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.admin-dashboard-day-view {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 0;
    height: 100%;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
}

.admin-dashboard-day-grid {
    display: grid;
    grid-template-columns: 54px repeat(var(--dashboard-user-count, 1), minmax(calc((100% - 54px) / 10), 1fr));
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-width: max(100%, calc(54px + (var(--dashboard-user-count, 1) * 92px)));
}

.admin-dashboard-day-grid .admin-work-time-rail {
    grid-template-rows: repeat(10, 1fr);
    min-height: 0;
    height: 100%;
    border-right: 1px solid #dbe3ec;
}

.admin-dashboard-day-user-head {
    min-width: 92px;
}

.admin-dashboard-day-user-head small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: none;
}

.admin-dashboard-day-user-head.is-role-dentist {
    color: #ffffff;
    background: #1e3a8a;
}

.admin-dashboard-day-user-head.is-role-dentist small {
    color: #dbeafe;
}

.admin-dashboard-day-user-head.is-role-staff {
    color: #164e63;
    background: #67e8f9;
}

.admin-dashboard-day-user-head.is-role-staff small {
    color: #164e63;
}

.admin-dashboard-day-user-head.is-role-hygienist {
    color: #ffffff;
    background: #0284c7;
}

.admin-dashboard-day-user-head.is-role-hygienist small {
    color: #e0f2fe;
}

.admin-dashboard-day-grid .admin-dashboard-day-user-column {
    grid-row: 2;
    min-height: 0;
    height: 100%;
    background:
        repeating-linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff calc(2.5% - 1px),
            #e6edf5 calc(2.5% - 1px),
            #e6edf5 2.5%
        );
}

.admin-dashboard-block-menu {
    position: fixed;
    z-index: 5200;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-width: 150px;
    max-width: 210px;
    padding: 8px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.admin-dashboard-block-menu[hidden] {
    display: none !important;
}

.admin-dashboard-block-menu form {
    margin: 0;
}

.admin-dashboard-block-menu-heading {
    display: grid;
    gap: 2px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #eef7fd;
    color: #174266;
    text-align: center;
}

.admin-dashboard-block-menu-heading span {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.admin-dashboard-block-menu-heading strong {
    font-size: 12px;
    line-height: 1.1;
}

.admin-dashboard-block-menu button {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

.admin-dashboard-block-menu button.is-holiday {
    color: #ffffff;
    background: #7c3aed;
}

.admin-dashboard-block-menu button.is-sick {
    color: #14532d;
    background: #bef264;
}

.admin-dashboard-block-menu button.is-study {
    color: #111827;
    background: #facc15;
}

.admin-dashboard-block-menu button.is-clear {
    color: #263447;
    background: #e9f0f7;
}

.admin-dashboard-block-menu button.is-hide {
    color: #263447;
    background: #e9f0f7;
}

.admin-dashboard-block-menu-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.admin-dashboard-block-menu button:hover,
.admin-dashboard-block-menu button:focus-visible {
    outline: none;
    filter: brightness(0.94);
}

.admin-dashboard-day-empty {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 800;
}

.admin-dashboard-activity-list {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.admin-dashboard-activity-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.admin-dashboard-activity-filters label {
    display: grid;
    gap: 4px;
    color: #5f7080;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-dashboard-activity-filters select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 7px 32px 7px 10px;
    color: #263447;
    background: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.admin-dashboard-activity-empty {
    margin: 0;
}

.admin-dashboard-activity-item {
    display: grid;
    gap: 4px;
    border: 1px solid #e1e9f1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
}

.admin-dashboard-activity-item div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.admin-dashboard-activity-item strong {
    color: #17222c;
    font-size: 13px;
}

.admin-dashboard-activity-item span,
.admin-dashboard-activity-item small,
.admin-dashboard-activity-item em {
    color: #5f7080;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.admin-dashboard-activity-item.is-pin-ok,
.admin-dashboard-activity-item.is-login-success {
    background: #eefaf0;
}

.admin-dashboard-activity-item.is-session-locked,
.admin-dashboard-activity-item.is-login_FAILED,
.admin-dashboard-activity-item.is-pin-failed {
    background: #fef0f0;
}

.admin-dashboard-activity-item.is-holiday-activity {
    background: #eef7fd;
}

@media (max-width: 1180px) {
    .admin-dashboard-overview {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .admin-dashboard-activity-list {
        max-height: 520px;
    }

    .admin-dashboard-day-view,
    .admin-dashboard-day-grid {
        min-height: 50vw;
    }

    .admin-dashboard-day-grid .admin-work-time-rail,
    .admin-dashboard-day-grid .admin-dashboard-day-user-column {
        min-height: calc(50vw - 42px);
    }

    .admin-work-week-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-user-details-work-grid {
        grid-template-columns: 1fr;
    }
}

.admin-title-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    margin-right: 8px;
    color: #1b6ca8;
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

.admin-activity-title {
    display: flex;
    align-items: center;
    margin: 0;
}

.admin-activity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-activity-stat-strip {
    justify-content: flex-start;
    margin-left: auto;
}

.admin-activity-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: #5f7080;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-activity-summary-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 6px 12px;
    color: #ffffff;
    background: #7c3aed;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.admin-activity-summary-button.is-study {
    color: #111827;
    background: #facc15;
}

.admin-activity-summary-button.is-sick {
    color: #14532d;
    background: #bef264;
}

.admin-activity-summary-button.is-disabled {
    color: #6b7280;
    background: #e5edf5;
}

.admin-activity-summary-button:not(.is-disabled):hover,
.admin-activity-summary-button:not(.is-disabled):focus-visible {
    color: #ffffff;
    filter: brightness(0.94);
    outline: none;
}

.viva-calendar-leave-jumps {
    margin-left: 0;
    gap: 6px;
}

.admin-activity-table th,
.admin-activity-table td {
    white-space: nowrap;
}

.admin-activity-table {
    table-layout: auto;
}

.admin-activity-table th:nth-child(1),
.admin-activity-table td:nth-child(1) {
    width: 210px;
}

.admin-activity-table th:nth-child(2),
.admin-activity-table td:nth-child(2) {
    width: 220px;
}

.admin-activity-table th:nth-child(3),
.admin-activity-table td:nth-child(3) {
    width: 180px;
}

.admin-activity-table th:nth-child(4),
.admin-activity-table td:nth-child(4) {
    width: 180px;
}

.admin-activity-table th:nth-child(5),
.admin-activity-table td:nth-child(5) {
    width: 170px;
}

.admin-activity-row.is-login-success {
    background: #fff0d9;
}

.admin-activity-row.is-pin-ok {
    background: #e6f7e6;
}

.admin-activity-row.is-session-locked {
    background: #fde7e7;
}

.admin-activity-result-cell {
    font-weight: 700;
    color: #1b3555;
    letter-spacing: 0.01em;
}

.admin-user-row {
    cursor: pointer;
}

.admin-user-row:hover {
    background: #eef7fd;
}

.admin-user-row.is-active-user {
    background: #e8f6ea;
}

.admin-user-row.is-inactive-user {
    background: #fbe7e7;
}

.admin-user-row.is-active-user:hover,
.admin-user-row.is-inactive-user:hover {
    background: #eef7fd;
}

.admin-context-menu {
    position: fixed;
    z-index: 50;
    min-width: 180px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d7dee8;
    box-shadow: 0 18px 40px rgba(18, 35, 54, 0.18);
}

.admin-context-menu[hidden] {
    display: none !important;
}

.admin-context-menu-button {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #f4f8fb;
    color: #17222c;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.admin-context-menu-button:hover,
.admin-context-menu-button:focus-visible {
    background: #e6f0f8;
    outline: none;
}

.admin-staff-detail-summary {
    display: grid;
    gap: 18px;
}

.content-grid.admin-staff-detail-layout {
    grid-template-columns: minmax(520px, 3fr) minmax(360px, 2fr);
}

.admin-staff-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-staff-detail-grid > div {
    display: grid;
    grid-template-columns: minmax(90px, 3fr) minmax(0, 7fr);
    gap: 10px;
    align-items: center;
}

.admin-staff-detail-grid > .admin-staff-detail-user-select-row {
    grid-template-columns: minmax(90px, 3fr) minmax(0, 7fr);
}

.admin-user-id-label {
    font-weight: 900;
}

.admin-staff-detail-value {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    color: #17222c;
}

.admin-user-details-work-grid {
    display: grid;
    grid-template-columns: minmax(260px, 3fr) minmax(0, 7fr);
    gap: 16px;
    align-items: start;
}

.admin-user-details-column {
    position: relative;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-user-details-context-menu {
    position: fixed;
    z-index: 80;
    display: grid;
    min-width: 180px;
    padding: 8px;
    border: 1px solid #cfdce9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(28, 45, 64, 0.18);
}

.admin-user-details-context-menu[hidden] {
    display: none !important;
}

.admin-user-details-context-menu button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #1b6ca8;
    font-weight: 900;
    cursor: pointer;
}

.admin-user-details-context-menu button:hover,
.admin-user-details-context-menu button:focus-visible {
    background: #145783;
    outline: none;
}

.admin-work-week-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    background: #f8fbfe;
}

.admin-work-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-work-week-header .admin-section-title {
    margin: 0;
}

.admin-work-week-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-work-day-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
    padding: 10px;
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.admin-work-day-main {
    display: grid;
    gap: 4px;
    min-height: 56px;
    align-content: center;
    text-align: center;
    border-radius: 6px;
    color: #1f2937;
    background: #edf4fb;
}

.admin-work-day-main strong {
    font-size: 13px;
}

.admin-work-day-main span {
    font-size: 12px;
    font-weight: 800;
}

.admin-work-day-card.is-work-day .admin-work-day-main {
    color: #ffffff;
    background: #1b6ca8;
}

.admin-work-day-card.is-work-morning .admin-work-day-main {
    color: #1f2937;
    background: #facc15;
}

.admin-work-day-card.is-work-afternoon .admin-work-day-main {
    color: #ffffff;
    background: #7c3aed;
}

.admin-work-day-actions {
    display: grid;
    gap: 6px;
}

.admin-work-day-actions form {
    margin: 0;
}

.admin-work-day-actions button {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    color: #263447;
    background: #e7eef6;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.admin-work-day-actions button:hover,
.admin-work-day-actions button:focus-visible,
.admin-work-day-actions button.is-selected {
    color: #ffffff;
    background: #1b6ca8;
    outline: none;
}

.admin-work-day-actions button.is-clear {
    color: #263447;
    background: #f1f5f9;
}

.admin-work-day-actions button.is-clear:hover,
.admin-work-day-actions button.is-clear:focus-visible {
    color: #ffffff;
    background: #64748b;
}

.admin-work-calendar {
    display: grid;
    grid-template-columns: 54px repeat(7, minmax(54px, 1fr));
    grid-template-rows: auto 360px;
    min-width: 0;
    overflow-x: auto;
    color: #64748b;
    background: #ffffff;
}

.admin-work-calendar-corner {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    padding: 0 8px 8px 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
}

.admin-work-calendar-head {
    display: grid;
    align-content: end;
    min-width: 54px;
    min-height: 42px;
    padding: 0 4px 8px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe3ec;
}

.admin-work-calendar-head span {
    display: block;
}

.admin-work-time-rail {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(10, 36px);
    min-height: 360px;
    padding-right: 8px;
    text-align: right;
    background: #ffffff;
}

.admin-work-time-rail span {
    color: #64748b;
    font-size: 9px;
    line-height: 1;
    transform: translateY(-4px);
}

.admin-work-calendar-day {
    position: relative;
    min-width: 54px;
    min-height: 360px;
    border-right: 1px solid #dbe3ec;
    background:
        repeating-linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff 8px,
            #e6edf5 8px,
            #e6edf5 9px
        );
}

.admin-work-calendar-day:last-child {
    border-right: 0;
}

.admin-work-calendar-surface {
    position: absolute;
    inset: 0;
    display: block;
    list-style: none;
    cursor: pointer;
}

.admin-work-calendar-empty {
    position: absolute;
    inset: 10% 7px auto;
    display: grid;
    min-height: 34px;
    place-items: center;
    border: 1px dashed #b9c8d8;
    border-radius: 4px;
    color: #8b9aab;
    background: rgba(248, 251, 254, 0.85);
    font-size: 10px;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.admin-work-calendar-day:hover .admin-work-calendar-empty,
.admin-work-calendar-day[data-drag-selected="1"] .admin-work-calendar-empty {
    opacity: 1;
}

.admin-work-calendar-block {
    position: absolute;
    left: 6px;
    right: 6px;
    top: var(--work-block-top, 10%);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    height: var(--work-block-height, 38px);
    min-height: 38px;
    padding: 8px 7px;
    border-radius: 4px;
    text-align: center;
    color: #14532d;
    background: #bef264;
    box-shadow: inset 0 0 0 1px rgba(27, 108, 168, 0.08);
    cursor: pointer;
}

.admin-work-calendar-block strong,
.admin-work-calendar-block small,
.admin-work-calendar-block em,
.admin-work-calendar-block span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-work-calendar-block strong {
    font-size: 11px;
    line-height: 1.1;
}

.admin-work-calendar-block small {
    color: inherit;
    font-size: 10px;
    font-weight: 800;
}

.admin-work-calendar-block em {
    color: inherit;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.admin-work-calendar-block span {
    color: inherit;
    font-size: 9px;
    font-weight: 800;
}

.admin-work-calendar-day.is-work-day .admin-work-calendar-block {
    color: #14532d;
    background: #bef264;
}

.admin-work-calendar-day.is-work-morning .admin-work-calendar-block {
    color: #14532d;
    background: #bef264;
}

.admin-work-calendar-day.is-work-afternoon .admin-work-calendar-block {
    color: #14532d;
    background: #bef264;
}

.admin-work-calendar-day.is-work-custom .admin-work-calendar-block {
    color: #14532d;
    background: #bef264;
}

.admin-dashboard-day-user-column.is-role-dentist .admin-work-calendar-block {
    color: #ffffff;
    background: #1e3a8a;
}

.admin-dashboard-day-user-column.is-role-staff .admin-work-calendar-block {
    color: #164e63;
    background: #67e8f9;
}

.admin-dashboard-day-user-column.is-role-hygienist .admin-work-calendar-block {
    color: #ffffff;
    background: #0284c7;
}

.admin-dashboard-day-user-column.is-dashboard-holiday .admin-work-calendar-block {
    color: #ffffff;
    background: #7c3aed;
}

.admin-dashboard-day-user-column.is-dashboard-sick-day .admin-work-calendar-block {
    color: #14532d;
    background: #bef264;
}

.admin-dashboard-day-user-column.is-dashboard-study-day .admin-work-calendar-block {
    color: #111827;
    background: #facc15;
}

.admin-work-calendar-selection {
    position: absolute;
    z-index: 8;
    left: 5px;
    right: 5px;
    top: var(--selection-top, 10%);
    height: var(--selection-height, 8%);
    min-height: 16px;
    border: 1px solid rgba(219, 39, 119, 0.46);
    border-radius: 4px;
    background: rgba(244, 114, 182, 0.42);
    pointer-events: none;
}

.admin-work-calendar-day[data-work-saving="1"] .admin-work-calendar-selection {
    border-color: #db2777;
    background: #fbcfe8;
    box-shadow: inset 0 0 0 1px rgba(219, 39, 119, 0.22);
}

.admin-work-calendar-actions {
    position: absolute;
    z-index: 16;
    top: 44px;
    left: 8px;
    right: 8px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid #cfdce9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(28, 45, 64, 0.18);
}

.admin-work-calendar-actions[hidden],
.admin-work-calendar-actions form[hidden] {
    display: none !important;
}

.admin-work-calendar-actions form {
    margin: 0;
}

.admin-work-calendar-actions button {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: #1b6ca8;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.admin-work-calendar-actions button:hover,
.admin-work-calendar-actions button:focus-visible {
    background: #145783;
    outline: none;
}

.admin-work-calendar-actions button.is-clear {
    color: #263447;
    background: #f1f5f9;
}

.admin-work-calendar-actions button.is-clear:hover,
.admin-work-calendar-actions button.is-clear:focus-visible {
    color: #ffffff;
    background: #64748b;
}

.admin-staff-edit-form {
    gap: 14px;
}

.admin-staff-edit-row {
    grid-template-columns: minmax(90px, 3fr) minmax(0, 7fr);
    align-items: center;
}

.admin-staff-edit-row-textarea {
    align-items: start;
}

.admin-staff-edit-label {
    text-align: left;
}

.admin-staff-edit-row input,
.admin-staff-edit-row select,
.admin-staff-edit-row textarea {
    background: #bef264;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-staff-edit-row input.is-dirty,
.admin-staff-edit-row select.is-dirty,
.admin-staff-edit-row textarea.is-dirty {
    border-color: #f472b6;
    background: #fbcfe8;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.22);
}

.admin-staff-notes-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
}

.admin-staff-notes-row .admin-staff-edit-label {
    text-align: left;
}

.admin-users-table th,
.admin-users-table td {
    white-space: nowrap;
}

.admin-user-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid #c9d6e2;
    border-radius: 14px;
    background: #fbfdff;
    color: #17222c;
    resize: vertical;
    font: inherit;
}

.admin-user-form textarea:focus {
    outline: 2px solid #8fb4d9;
    border-color: #7ea5cf;
}

.admin-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-grid-title-button {
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.admin-grid-title-button .admin-section-title {
    margin-bottom: 0;
}

.admin-grid-settings-panel {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbfd;
    border: 1px solid #dfe8f1;
}

.admin-grid-settings-copy {
    margin: 0 0 14px;
}

.admin-grid-settings-list {
    display: grid;
    gap: 12px;
}

.admin-grid-settings-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e4ebf3;
}

.admin-grid-width-label {
    display: inline-grid;
    gap: 6px;
    font-size: 13px;
}

.admin-grid-width-label input {
    width: 96px;
    padding: 8px 10px;
}

.admin-grid-settings-actions {
    display: flex;
    gap: 8px;
}

.admin-grid-move-button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.admin-app-body {
    min-height: 100vh;
    margin: 0;
    background: var(--admin-custom-background, #eef3f8);
    overflow: hidden;
}

.admin-shell {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.admin-app-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.96);
    color: #17222c;
    border-bottom: 1px solid #dfe7f0;
    box-shadow: 0 10px 28px rgba(24, 41, 61, 0.08);
}

.admin-app-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.admin-app-brand-logo {
    width: 100%;
    height: auto;
    display: block;
}

.admin-app-topbar-title {
    display: grid;
    gap: 6px;
}

.admin-app-topbar-title h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1;
    color: #17222c;
}

.admin-app-topbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f2fb;
    color: #1b6ca8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.admin-app-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-app-user-label {
    color: #5f7080;
    font-size: 20px;
    font-weight: 800;
}

.admin-app-topbar-badge {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    box-shadow: 0 10px 20px rgba(24, 41, 61, 0.08);
}

.admin-app-topbar-badge-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.admin-app-layout {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    min-height: 0;
    overflow: hidden;
}

.admin-app-rail {
    display: grid;
    grid-template-rows: repeat(5, auto) 1fr auto auto;
    gap: 12px;
    align-self: start;
    padding: 16px 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(211, 221, 232, 0.9);
    box-shadow: 0 18px 40px rgba(18, 35, 54, 0.1);
    position: sticky;
    top: 20px;
}

.admin-rail-button {
    width: 100%;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 18px;
    border: 1px solid #d7dee8;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(38, 58, 82, 0.08);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-rail-link {
    text-decoration: none;
}

.admin-rail-button:hover,
.admin-rail-button:focus-visible {
    transform: translateY(-1px);
    border-color: #b9c8d8;
    box-shadow: 0 8px 18px rgba(38, 58, 82, 0.12);
    outline: none;
}

.admin-rail-button.is-active {
    background: linear-gradient(180deg, #e8f2fb 0%, #dceafb 100%);
    border-color: #7aa9d9;
    box-shadow: 0 10px 18px rgba(31, 92, 154, 0.18);
}

.admin-rail-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.admin-rail-close-icon {
    width: 26px;
    height: 26px;
}

.admin-rail-glyph {
    color: #34516e;
    font-size: 26px;
    line-height: 1;
}

.admin-rail-spacer {
    min-height: 16px;
}

.admin-app-main {
    display: grid;
    gap: 16px;
    align-content: start;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.admin-app-banner {
    margin-bottom: 0;
}

.admin-view-section {
    display: grid;
    gap: 18px;
}

.admin-view-section[hidden],
.admin-grid-settings-panel[hidden] {
    display: none !important;
}

.admin-view-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid #dde7f0;
    box-shadow: 0 18px 40px rgba(19, 39, 60, 0.08);
}

.admin-view-title {
    margin: 8px 0 6px;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.admin-view-copy {
    margin: 0;
    max-width: 58ch;
}

.admin-stat-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-stat-card {
    min-width: 128px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dfe7f0;
    box-shadow: 0 10px 24px rgba(20, 39, 60, 0.06);
}

.admin-stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    color: #17365d;
}

.admin-view-hero-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dce6f0;
    box-shadow: 0 12px 24px rgba(18, 36, 58, 0.08);
}

.admin-view-hero-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.admin-form-panel,
.admin-activity-panel,
.admin-users-table,
.admin-staff-detail-summary {
    min-width: 0;
}

.content-grid.admin-add-user-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr);
}

.content-grid.admin-reset-pin-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr);
}

.content-grid.admin-global-settings-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr);
}

.admin-add-user-users-panel {
    min-width: 0;
}

.admin-reset-pin-users-panel {
    min-width: 0;
}

.admin-global-settings-summary-panel {
    min-width: 0;
}

.admin-add-user-users-panel .admin-section-title,
.admin-reset-pin-users-panel .admin-section-title,
.admin-global-settings-summary-panel .admin-section-title,
.admin-form-panel .admin-section-title {
    margin-bottom: 16px;
}

.admin-global-settings-form-panel .admin-section-title {
    margin-bottom: 10px;
}

.admin-global-settings-form {
    gap: 12px;
}

.admin-global-settings-form .admin-form-row {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
}

[data-reset-pin-form] .admin-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

[data-reset-pin-form] .admin-form-actions button {
    flex: 1 1 0;
}

[data-reset-pin-input]:disabled,
[data-reset-pin-submit]:disabled {
    cursor: not-allowed;
}

[data-reset-pin-input]:disabled {
    background: #eef2f6;
    color: #7b8794;
    border-color: #d7dfe8;
    box-shadow: none;
}

.admin-users-table-compact th,
.admin-users-table-compact td {
    white-space: nowrap;
}

.admin-users-table-compact {
    table-layout: fixed;
    width: 100%;
}

.admin-users-table-compact .admin-users-table-compact__username {
    min-width: 0;
    width: auto;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(1),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(1) {
    width: 8%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(2),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(2) {
    width: 15%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(3),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(3) {
    width: 7%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(4),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(4) {
    width: 23%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(5),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(5) {
    width: 12%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(6),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(6) {
    width: 15%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(7),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(7) {
    width: 5%;
}

.admin-add-user-users-panel .admin-users-table-compact th:nth-child(8),
.admin-add-user-users-panel .admin-users-table-compact td:nth-child(8) {
    width: 15%;
}

.content-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    align-items: start;
}

.search-panel,
.table-panel,
.details-panel {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(14, 33, 52, 0.08);
    padding: 18px;
}

.table-panel {
    overflow: auto;
}

.search-panel {
    text-align: center;
}

.search-panel label {
    justify-items: center;
}

.search-box-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#pitch-search {
    width: min(520px, 100%);
    margin: 0 auto;
}

.clear-search-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 10px;
    background: #c61f1f;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}


table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.desktop-hidden {
    display: none;
}

.mobile-summary-cell {
    display: none;
}

tbody tr {
    cursor: pointer;
}

tbody tr:hover,
tbody tr.is-selected {
    background: #eef7fd;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e4ebf1;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f5f9fc;
    position: sticky;
    top: 0;
}

.pitch-table th:nth-child(1),
.pitch-table td:nth-child(1) { width: 5%; }

.pitch-table th:nth-child(2),
.pitch-table td:nth-child(2) { width: 20%; }

.pitch-table th:nth-child(4),
.pitch-table td:nth-child(4) { width: 13%; }

.pitch-table th:nth-child(5),
.pitch-table td:nth-child(5) { width: 13%; }

.pitch-table th:nth-child(6),
.pitch-table td:nth-child(6) { width: 17%; }

.pitch-table th:nth-child(7),
.pitch-table td:nth-child(7) { width: 9%; }

.pitch-table th:nth-child(8),
.pitch-table td:nth-child(8) { width: 20%; }

.status-line {
    margin-top: 12px;
}

.details-panel h2 {
    margin-top: 0;
}

.details-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.details-text-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    justify-self: stretch;
}

.details-image-shell {
    margin: 16px 0 8px;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f6f9fb;
    border-radius: 14px;
    border: 1px solid #dde7ef;
}

.swipe-image-shell {
    touch-action: pan-y;
    transition: transform 0.18s ease, opacity 0.18s ease;
    will-change: transform, opacity;
}

.details-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.details-image-placeholder {
    object-fit: contain;
    padding: 18px;
    background: #f7fafc;
}

.capture-image {
    cursor: pointer;
}

.camera-capture-input {
    display: none;
}

.hidden {
    display: none;
}

.image-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed #c8d6e2;
    border-radius: 14px;
    background: #f7fafc;
    color: #6d7c8b;
    text-align: center;
    padding: 16px;
}

.details-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.pitch-view-panel {
    justify-items: stretch;
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.pitch-view-panel .details-list {
    width: 100%;
    max-width: 320px;
    justify-items: start;
    justify-self: start;
    text-align: left;
    margin-top: 0;
    margin-left: 0;
}

.details-entry {
    display: block;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.details-entry-label {
    font-weight: 700;
    font-size: calc(1em + 2px);
}

.details-entry-value {
    white-space: pre-wrap;
}

@media (max-width: 720px) and (orientation: portrait) {
    .admin-user-login-activity-panel {
        display: none;
    }

    .content-grid.admin-staff-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-app-topbar {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 16px;
    }

    .admin-app-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .admin-app-rail {
        position: static;
        top: auto;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-template-rows: auto;
        align-items: center;
    }

    .admin-rail-spacer {
        display: none;
    }

    .admin-view-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-form-row-label {
        text-align: left;
    }

    .admin-stat-strip {
        width: 100%;
    }

    .admin-activity-summary {
        width: 100%;
        margin-left: 0;
        gap: 14px;
        flex-wrap: wrap;
    }

    .admin-stat-card {
        flex: 1 1 140px;
    }

    .auth-shell {
        width: min(100%, calc(100% - 18px));
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-showcase {
        display: none;
    }

    .login-body {
        align-items: center;
        padding: 18px;
    }

    .auth-shell {
        width: min(430px, 100%);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-panel {
        min-height: auto;
    }

    .auth-panel-card {
        width: 100%;
        padding: 30px 22px 24px;
        border-radius: 24px;
    }

    .auth-panel-card::before {
        content: "";
        display: block;
        width: 86px;
        height: 86px;
        margin: 0 auto 18px;
        background: url("viva-logo.png") center / contain no-repeat;
    }

    .auth-panel-kicker,
    .auth-panel-title,
    .auth-panel-copy {
        text-align: center;
    }

    .auth-panel-title {
        font-size: 34px;
    }

    .auth-panel-copy {
        margin-bottom: 22px;
    }

    .pin-entry-shell {
        min-height: auto;
    }

    .pin-panel-card {
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .pitch-main-heading {
        font-size: 24px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-page-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        column-gap: 10px;
        row-gap: 10px;
        padding-bottom: 0;
    }

    .search-page-title {
        grid-column: 1 / -1;
    }

    .search-page-panel {
        flex-basis: auto;
        min-width: 0;
    }

    .topbar h1 {
        text-align: center;
    }

    .search-page-actions {
        align-self: end;
        justify-self: end;
        flex-direction: column;
        gap: 6px;
    }

    .search-page-actions .button-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .search-panel label {
        display: none;
    }

    #pitch-search {
        font-size: 25px;
    }

    .pitch-view-header-actions,
    .stack-topbar.pitch-view-header-actions {
        position: static;
        transform: none;
        justify-content: center;
        display: flex;
    }

    .pitch-view-image-strip {
        width: min(100%, calc(100% - 32px));
        margin-top: 12px;
    }

    .details-image-container {
        width: min(100%, 320px);
        max-width: 320px;
    }

    .details-image-container {
        margin-left: auto;
        margin-right: auto;
    }

    .details-text-container {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: auto;
    }

    .pitch-view-panel .details-list {
        width: 100%;
        max-width: none;
        margin-top: 0;
        margin-left: 0;
        margin-right: auto;
        justify-self: start;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-sidebar-panel {
        position: static;
        top: auto;
    }

    .admin-staff-detail-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        font-size: 14px;
        padding: 10px 8px;
    }

    .table-panel {
        overflow: visible;
    }

    .pitch-table thead {
        display: none;
    }

    .pitch-table,
    .pitch-table tbody,
    .pitch-table tr,
    .pitch-table td {
        display: block;
        width: 100%;
    }

    .pitch-table tbody {
        display: grid;
        gap: 12px;
    }

    .desktop-hidden {
        display: none;
    }

    .pitch-table tr {
        display: block;
        padding: 12px;
        background: #ffffff;
        border: 1px solid #e4ebf1;
        border-radius: 12px;
    }

    .pitch-table td {
        border-bottom: none;
        padding: 0;
        white-space: normal;
        min-width: 0;
    }

    .pitch-table tr > td:not(.mobile-summary-cell) {
        display: none;
    }

    .mobile-summary-cell {
        display: block;
    }

    .mobile-summary-line {
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    .mobile-summary-line + .mobile-summary-line {
        margin-top: 4px;
    }

    .mobile-summary-line:first-child {
        font-weight: 700;
        font-size: 22px;
    }

    .mobile-summary-line:nth-child(2) {
        font-size: 22px;
    }

    .mobile-summary-line:nth-child(3) {
        font-size: 17px;
    }

    .mobile-summary-line:nth-child(3) .mobile-summary-make {
        font-weight: 700;
    }
}

@media (orientation: landscape) {
    .search-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        text-align: left;
    }

    .search-panel label {
        display: block;
        font-size: 36px;
        flex: 0 0 auto;
    }

    .search-box-row {
        flex: 0 1 520px;
        justify-content: flex-start;
        gap: 0;
    }

    #pitch-search {
        flex: 1 1 auto;
        font-size: 24px;
        margin: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .clear-search-button {
        margin-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (min-width: 721px) and (orientation: landscape) {
    .search-page-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .search-page-panel {
        flex: none;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .search-page-panel > label {
        display: none !important;
    }

    .search-page-title-full {
        display: inline;
    }

    .search-page-title-short {
        display: none;
    }

    .search-page-actions {
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .admin-user-login-activity-panel {
        display: none;
    }

    .content-grid.admin-staff-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-app-layout {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .admin-view-title {
        font-size: 28px;
    }

    th,
    td {
        font-size: 11px;
    }

    .search-page-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 6px 0 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .search-page-title h1 {
        font-size: 25px;
        white-space: nowrap;
    }

    .search-page-panel {
        flex: none;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        text-align: left;
    }

    .search-panel label {
        display: none;
    }

    .search-box-row {
        width: 75%;
        min-width: 180px;
        flex: 0 1 auto;
        margin: 0 auto;
    }

    #pitch-search {
        width: 100%;
        font-size: 25px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .clear-search-button {
        height: 36px;
    }

    .search-page-logout {
        padding: 10px 13px;
        font-size: 16px;
        white-space: nowrap;
    }

    .search-page-actions {
        gap: 6px;
    }

    .search-page-actions .button-link {
        padding: 10px 13px;
        font-size: 16px;
        white-space: nowrap;
    }

    .search-page-shell {
        margin-top: 6px;
    }

    .admin-dashboard-shell {
        grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
        gap: 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .auth-showcase {
        display: none;
    }

    .pitch-view-header-actions,
    .stack-topbar.pitch-view-header-actions {
        display: none !important;
    }
}

.viva-dashboard-layout {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: calc(100vh - 110px);
}

.viva-dashboard-rail {
    grid-template-rows: repeat(4, auto) 1fr auto;
}

.viva-rail-form {
    margin: 0;
}

.viva-rail-form .admin-rail-button {
    width: 100%;
}

.viva-dashboard-main {
    align-content: start;
}

.viva-dashboard-panel {
    width: min(760px, 100%);
    min-height: 140px;
}

.viva-calendar-panel {
    display: grid;
    gap: 18px;
}

.viva-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.viva-month-back[hidden] {
    display: none !important;
}

.viva-calendar-header h2 {
    margin: 10px 0 0;
    font-size: 28px;
    line-height: 1.05;
}

.viva-calendar-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.viva-calendar-month-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.viva-calendar-filter-form {
    margin: 0;
}

.viva-calendar-filter-form select {
    min-height: 42px;
    max-width: 220px;
    border: 1px solid #bfd3e7;
    border-radius: 10px;
    padding: 8px 36px 8px 12px;
    color: #174266;
    background: #ffffff;
    font: inherit;
    font-weight: 800;
}

.viva-calendar-year-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfd3e7;
    border-radius: 10px;
    color: #174266;
    background: #eef7fd;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.viva-calendar-year-button:hover,
.viva-calendar-year-button:focus-visible {
    color: #ffffff;
    background: #1b6ca8;
    outline: none;
}

.viva-year-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 14px;
}

.viva-month {
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    padding: 14px;
    background: #ffffff;
}

.viva-month h3 {
    margin: 0 0 12px;
}

.viva-month-title {
    width: 100%;
    justify-content: flex-start;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #17365d;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.viva-month-title:hover,
.viva-month-title:focus-visible {
    color: #1b6ca8;
    background: #eef7fd;
    outline: none;
}

.viva-calendar-panel.is-month-view .viva-year-calendar {
    grid-template-columns: 1fr;
}

.viva-month.is-month-hidden {
    display: none;
}

.viva-month.is-month-open {
    padding: 18px;
}

.viva-month.is-month-open .viva-month-title {
    font-size: 26px;
}

.viva-month.is-month-open .viva-weekdays span {
    font-size: 39px;
    line-height: 1.05;
}

.viva-month.is-month-open .viva-day {
    min-height: 104px;
    padding: 10px 12px;
    font-size: 17px;
}

.viva-weekdays,
.viva-month-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    user-select: none;
}

.viva-weekdays {
    margin-bottom: 7px;
}

.viva-weekdays span {
    color: #6a7080;
    font-size: 33px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

.viva-day {
    --viva-day-pad-x: 8px;
    display: grid;
    min-height: 52px;
    align-items: start;
    justify-items: start;
    border: 1px solid #dfe7f0;
    border-radius: 0;
    padding: 7px 8px;
    color: #283142;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.viva-day.is-empty {
    border-color: #eef2f6;
    background: #f7fafc;
    cursor: default;
}

.viva-day.is-today {
    color: #ffffff;
    border-color: #1b6ca8;
    background: #1b6ca8;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.viva-day.is-selected {
    border-color: #7aa9d9;
    box-shadow: inset 0 0 0 2px #7aa9d9;
}

.viva-day.is-active-context {
    outline: 3px solid rgba(27, 108, 168, 0.2);
}

.viva-day.has-admin-request-blocks {
    gap: 6px;
    justify-items: stretch;
    background: #ffffff;
}

.viva-day.has-calendar-work-blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    justify-items: stretch;
}

.viva-day.has-admin-request-blocks.is-today {
    color: #1f2937;
    background: #eef7fd;
}

.viva-day.has-calendar-work-blocks.is-today {
    color: #1f2937;
    background: #eef7fd;
}

.viva-calendar-work-blocks {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 50%));
    width: calc(100% + (var(--viva-day-pad-x) * 2));
    max-width: none;
    gap: 0;
    align-self: start;
    justify-self: stretch;
    margin-left: calc(var(--viva-day-pad-x) * -1);
    margin-right: calc(var(--viva-day-pad-x) * -1);
}

.viva-calendar-work-block {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 20px;
    padding: 2px 1px;
    border-radius: 3px;
    color: #17365d;
    background: #e8f1fb;
    font-size: var(--calendar-work-font-size, 18px);
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    cursor: context-menu;
}

.viva-calendar-work-block span {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: var(--calendar-work-font-size, 18px);
    line-height: 1;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.viva-calendar-work-block.is-calendar-work-day.is-role-dentist {
    color: #ffffff;
    background: #1e3a8a;
}

.viva-calendar-work-block.is-calendar-work-day.is-role-hygienist {
    color: #ffffff;
    background: #0284c7;
}

.viva-calendar-work-block.is-calendar-work-day.is-role-staff {
    color: #083344;
    background: #67e8f9;
}

.viva-calendar-work-block.is-calendar-work-day.is-role-clinician {
    color: #ffffff;
    background: #2563eb;
}

.viva-calendar-work-block.is-calendar-sick-day {
    color: #14532d;
    background: #bef264;
}

.viva-calendar-work-block.is-calendar-holiday {
    color: #ffffff;
    background: #7c3aed;
}

.viva-calendar-work-block.is-calendar-study-day {
    color: #111827;
    background: #facc15;
}

.viva-admin-request-blocks {
    display: grid;
    width: calc(100% + (var(--viva-day-pad-x) * 2));
    gap: 4px;
    align-self: start;
    justify-self: stretch;
    margin-left: calc(var(--viva-day-pad-x) * -1);
    margin-right: calc(var(--viva-day-pad-x) * -1);
}

.viva-admin-request-block {
    display: grid;
    align-content: center;
    justify-items: center;
    justify-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-height: 34px;
    padding: 4px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
    overflow: hidden;
}

.viva-admin-request-block span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.viva-admin-request-block.is-admin-request-holiday-requested {
    color: #ffffff;
    background: #d97904;
}

.viva-admin-request-block.is-admin-request-holiday-authorised {
    color: #ffffff;
    background: #7c3aed;
}

.viva-admin-request-block.is-admin-request-study-requested {
    color: #1f2937;
    background: #fef9c3;
    box-shadow: inset 0 0 0 1px #facc15;
}

.viva-admin-request-block.is-admin-request-study-authorised {
    color: #111827;
    background: #facc15;
}

.viva-admin-request-block.is-admin-request-sick {
    color: #14532d;
    background: #bef264;
}

.viva-admin-request-block.is-admin-request-unauthorised {
    color: #ffffff;
    background: #64748b;
}

.viva-day.is-bank-holiday {
    border-color: #d1d5db;
    color: #4b5563;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.viva-day.is-bank-holiday em {
    align-self: end;
    color: #4b5563;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.viva-day.is-holiday-requested {
    border-color: #d97904;
    color: #ffffff;
    background: #d97904;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.viva-day.is-holiday-requested em {
    align-self: end;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.viva-day.is-study-requested {
    border-color: #facc15;
    color: #1f2937;
    background: #fef9c3;
    box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.55);
}

.viva-day.is-study-requested em {
    align-self: end;
    color: #1f2937;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.viva-day.is-holiday-authorised {
    border-color: #6d28d9;
    color: #ffffff;
    background: #7c3aed;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.viva-day.is-holiday-authorised em {
    align-self: end;
    justify-self: stretch;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.viva-day.is-study-authorised {
    border-color: #ca8a04;
    color: #111827;
    background: #facc15;
    box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.18);
}

.viva-day.is-study-authorised em {
    align-self: end;
    justify-self: stretch;
    color: #111827;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.viva-day.is-sick-day {
    border-color: #84cc16;
    color: #14532d;
    background: #bef264;
}

.viva-day.is-sick-day em {
    align-self: end;
    justify-self: stretch;
    color: #14532d;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.viva-day.is-holiday-unauthorised {
    border-color: #64748b;
    color: #ffffff;
    background: #64748b;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.viva-day.is-holiday-unauthorised em {
    align-self: end;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.viva-day.is-today.is-holiday-requested em,
.viva-day.is-today.is-holiday-authorised em,
.viva-day.is-today.is-holiday-unauthorised em {
    color: #ffffff;
}

.calendar-context-menu {
    position: absolute;
    z-index: 5000;
    min-width: 150px;
    width: max-content;
    max-width: min(210px, calc(100vw - 24px));
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    padding: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(24, 41, 61, 0.18);
}

.calendar-context-menu span {
    display: block;
    margin: 2px 4px 8px;
    color: #5c6a7d;
    font-size: 12px;
    font-weight: 800;
}

.calendar-context-menu.is-request-actions > span {
    display: none;
}

.calendar-context-heading {
    display: grid;
    gap: 2px;
    margin: 0 0 8px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #17365d;
    background: #eef7fd;
    font-weight: 900;
    text-align: center;
}

.calendar-context-heading[hidden] {
    display: none !important;
}

.calendar-context-heading strong {
    color: #10253f;
    font-size: 13px;
    line-height: 1.15;
}

.calendar-context-menu .calendar-context-heading span {
    margin: 0;
    color: #1b6ca8;
    font-size: 19px;
    line-height: 1.15;
    text-align: center;
}

.calendar-context-menu .calendar-context-heading span[hidden] {
    display: none !important;
}

.calendar-context-menu.is-request-actions .calendar-menu-footer-actions {
    display: none;
}

.calendar-context-menu[hidden] {
    display: none !important;
}

.calendar-context-menu.is-mobile-centered {
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    width: min(290px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
}

.calendar-context-menu button {
    width: auto;
    min-width: 132px;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 10px;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    background: #1b6ca8;
}

.calendar-context-menu button + button {
    margin-top: 3px;
}

.calendar-context-menu .secondary-action-button {
    color: #263447;
    background: #e9f0f7;
}

.calendar-mobile-label {
    display: none !important;
}

.calendar-menu-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.calendar-menu-footer-actions button + button {
    margin-top: 0;
}

.calendar-menu-footer-actions #calendar-lock-options-action {
    color: #ffffff;
    background: #1b6ca8;
}

.calendar-request-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.calendar-request-footer-actions button + button {
    margin-top: 0;
}

.calendar-lock-inline-action {
    color: #ffffff !important;
    background: #1b6ca8 !important;
}

.calendar-admin-request-actions {
    display: grid;
    gap: 8px;
}

.calendar-sick-day-actions {
    display: grid;
    gap: 8px;
}

.calendar-work-block-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: 100%;
    justify-content: start;
}

.calendar-work-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    margin: 0 !important;
}

.calendar-context-menu .calendar-work-secondary-actions button {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.calendar-context-menu .calendar-work-secondary-actions button + button {
    margin-top: 0;
}

.calendar-sick-day-actions select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 8px 10px;
    color: #263447;
    background: #ffffff;
    font: inherit;
    font-weight: 700;
}

.calendar-assigned-day-buttons {
    display: grid;
    gap: 6px;
}

.calendar-assigned-day-buttons button[data-assign-leave-type="HOLIDAY"] {
    color: #ffffff;
    background: #7c3aed;
}

.calendar-assigned-day-buttons button[data-assign-leave-type="STUDY"] {
    color: #111827;
    background: #facc15;
}

.calendar-assigned-day-buttons button[data-assign-leave-type="SICK"] {
    color: #14532d;
    background: #bef264;
}

.calendar-admin-request-actions[hidden] {
    display: none !important;
}

.calendar-sick-day-actions[hidden] {
    display: none !important;
}

.calendar-work-block-actions[hidden] {
    display: none !important;
}

.calendar-work-block-actions button[data-calendar-work-action="HOLIDAY"] {
    color: #ffffff;
    background: #7c3aed;
}

.calendar-work-block-actions button[data-calendar-work-action="STUDY"] {
    color: #111827;
    background: #facc15;
}

.calendar-work-block-actions button[data-calendar-work-action="SICK"] {
    color: #14532d;
    background: #bef264;
}

.calendar-admin-request-row {
    display: grid;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.calendar-admin-request-row span {
    margin: 0;
    color: #263447;
}

.viva-calendar-message {
    margin-bottom: 0;
}

.calendar-selection-bar {
    position: sticky;
    bottom: 16px;
    z-index: 120;
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 38px rgba(24, 41, 61, 0.16);
}

.calendar-selection-bar[hidden] {
    display: none !important;
}

.calendar-selection-bar span {
    color: #374253;
    font-weight: 800;
}

.calendar-selection-bar button {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 9px;
}

.dashboard-is-locked .admin-shell {
    filter: blur(6px);
    opacity: 0.62;
    pointer-events: none;
    user-select: none;
}

.dashboard-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 24, 38, 0.58);
}

.dashboard-lock-overlay[hidden] {
    display: none !important;
}

.dashboard-lock-card {
    width: min(430px, 100%);
    display: grid;
    justify-items: center;
    gap: 16px;
    border-radius: 24px;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(10, 29, 48, 0.28);
    text-align: center;
}

.dashboard-lock-card.is-shaking {
    animation: dashboard-lock-shake 0.22s ease both;
}

@keyframes dashboard-lock-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-16px);
    }

    40% {
        transform: translateX(14px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(6px);
    }
}

.dashboard-lock-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.dashboard-lock-card h2 {
    margin: 0;
    font-size: 34px;
}

.dashboard-lock-card p {
    margin: 0;
    color: #5f7080;
}

.dashboard-pin-entry {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.pin-login-entry {
    margin-top: clamp(10px, 2vh, 26px);
}

.dashboard-pin-box {
    width: 48px;
    height: 54px;
    flex: 0 0 48px;
    border: 1px solid #d1d4dd;
    border-radius: 10px;
    background: #ffffff;
    color: #283142;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    caret-color: transparent;
    -webkit-text-security: disc;
    text-security: disc;
}

.dashboard-pin-box.is-waiting {
    display: none;
}

.dashboard-pin-box:focus {
    border-color: #1b6ca8;
    outline: 3px solid rgba(27, 108, 168, 0.16);
}

.dashboard-pin-box:disabled {
    opacity: 0.62;
    cursor: wait;
}

.dashboard-pin-box.is-active:focus:not(.is-filled) {
    background-image: linear-gradient(#1b6ca8, #1b6ca8);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2px 26px;
    animation: pin-caret-blink 1s steps(1, end) infinite;
}

.dashboard-lock-error {
    margin-top: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    color: #8c1e1e;
    background: #fbe7e7;
    font-weight: 700;
}

.exit-page-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #eef3f8;
}

.exit-page-panel {
    display: none;
    width: min(420px, 100%);
    justify-items: center;
    gap: 12px;
    border-radius: 24px;
    padding: 32px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(56, 65, 89, 0.14);
    text-align: center;
}

.is-exit-fallback-visible .exit-page-panel {
    display: grid;
}

.is-launcher-panel {
    display: grid;
}

.exit-page-panel img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.exit-page-panel h1,
.exit-page-panel p {
    margin: 0;
}

@media (max-width: 720px) and (orientation: portrait) {
    .viva-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .viva-dashboard-rail {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .viva-year-calendar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .viva-year-calendar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px), (max-width: 932px) and (orientation: landscape) and (pointer: coarse) {
    .calendar-desktop-label {
        display: none !important;
    }

    .calendar-mobile-label {
        display: block !important;
    }

    .admin-app-topbar,
    .viva-dashboard-rail {
        display: none;
    }

    .viva-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .admin-app-layout.viva-dashboard-layout {
        padding: 8px;
    }

    .viva-dashboard-panel {
        display: none;
    }

    .viva-calendar-panel {
        min-height: calc(100dvh - 16px);
        align-content: start;
        gap: 10px;
    }

    .viva-calendar-header {
        align-items: stretch;
        gap: 8px;
    }

    .viva-calendar-header > div:first-child {
        display: none;
    }

    .viva-calendar-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .viva-calendar-filter-form {
        flex: 1;
    }

    .viva-calendar-filter-form select {
        width: 100%;
        max-width: none;
        min-height: 38px;
        font-size: 12px;
    }

    .viva-calendar-year-button {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .viva-day {
        --viva-day-pad-x: 4px;
        justify-items: stretch;
        font-size: 11px;
        min-height: 64px;
        padding: 4px;
    }

    .viva-day > span:first-child {
        justify-self: start;
        font-size: 11px;
    }

    .viva-admin-request-blocks {
        width: calc(100% + (var(--viva-day-pad-x) * 2));
        justify-self: stretch;
        margin-left: calc(var(--viva-day-pad-x) * -1);
        margin-right: calc(var(--viva-day-pad-x) * -1);
    }

    .viva-admin-request-block {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        min-height: 32px;
        padding: 3px 4px;
        font-size: 8px;
        line-height: 1.05;
    }

    .viva-admin-request-block span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
        word-break: break-word;
        line-clamp: 2;
    }

    .viva-day em {
        width: 100%;
        justify-self: stretch;
        font-size: 8px;
        line-height: 1.05;
        text-align: center;
    }

    .pin-keypad {
        display: none !important;
    }
}

.viva-calendar-panel.is-single-month-calendar {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: calc(100dvh - 132px);
    height: auto;
    overflow: auto;
}

.viva-calendar-panel.is-single-month-calendar .viva-year-calendar {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
}

.viva-calendar-panel.is-single-month-calendar .viva-month {
    display: grid;
    grid-template-rows: auto auto auto;
    min-height: 0;
    height: auto;
    padding: 14px;
}

.viva-calendar-panel.is-single-month-calendar .viva-month-title {
    font-size: 24px;
}

.viva-calendar-panel.is-single-month-calendar .viva-weekdays {
    margin-bottom: 7px;
}

.viva-calendar-panel.is-single-month-calendar .viva-weekdays span {
    font-size: 33px;
    line-height: 1.05;
}

.viva-calendar-panel.is-single-month-calendar .viva-month-grid {
    grid-auto-rows: minmax(132px, auto);
    min-height: 0;
    height: auto;
}

.viva-calendar-panel.is-single-month-calendar .viva-day {
    --viva-day-pad-x: 10px;
    min-height: 132px;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

@media (max-width: 640px), (max-width: 932px) and (orientation: landscape) and (pointer: coarse) {
    .viva-calendar-panel.is-single-month-calendar {
        min-height: calc(100dvh - 16px);
        height: auto;
        overflow: auto;
        gap: 8px;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-calendar-header {
        display: none;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-month {
        padding: 8px;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-month h3 {
        margin-bottom: 8px;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-month-title {
        min-height: 28px;
        font-size: 18px;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-weekdays {
        margin-bottom: 4px;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-weekdays span {
        font-size: 33px;
        line-height: 1.05;
    }

    .viva-calendar-panel.is-single-month-calendar .viva-day {
        --viva-day-pad-x: 4px;
        min-height: 112px;
        height: auto;
        padding: 4px;
        font-size: 11px;
    }
}

@media (max-width: 640px), (max-width: 932px) and (orientation: landscape) and (pointer: coarse) {
    .admin-app-body .admin-app-rail {
        display: none;
    }

    .admin-app-body .admin-app-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        height: auto;
        padding: 0;
    }

    .admin-app-body .admin-app-main {
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        height: auto;
        gap: 0;
    }

    .admin-app-body .admin-view-section[data-admin-section="dashboard"] {
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        height: auto;
    }

    .admin-app-body .admin-dashboard-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        height: auto;
    }

    .admin-app-body .admin-dashboard-activity-panel,
    .admin-app-body .admin-dashboard-calendar-link {
        display: none;
    }

    .admin-app-body .admin-dashboard-calendar-panel {
        grid-template-rows: auto auto;
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        height: auto;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
        padding: 8px;
    }

    .admin-app-body .admin-dashboard-day-view,
    .admin-app-body .admin-dashboard-day-grid {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}
