/**
 * Event Check-in - Staff Mobile App
 * Core mobile staff dashboard.
 */

:root {
    --ec-sa-navy: #002d72;
    --ec-sa-cyan: #0babe4;
    --ec-sa-soft: #eef3f8;
    --ec-sa-paper: #ffffff;
    --ec-sa-ink: #0f2440;
    --ec-sa-muted: #64748b;
    --ec-sa-ok: #16a34a;
    --ec-sa-warning: #f59e0b;
    --ec-sa-danger: #ef4444;
    --ec-sa-line: rgba(0, 45, 114, 0.14);
    --ec-sa-safe-bottom: env(safe-area-inset-bottom);
}

.ec-staff-app-active {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.ec-staff-app-active #wpadminbar {
    display: none !important;
}

body.ec-staff-app-active header,
body.ec-staff-app-active footer,
body.ec-staff-app-active .site-header,
body.ec-staff-app-active .site-footer,
body.ec-staff-app-active .wp-site-header,
body.ec-staff-app-active .wp-site-footer,
body.ec-staff-app-active [role="banner"],
body.ec-staff-app-active [role="contentinfo"],
body.ec-staff-app-active .wp-block-template-part,
body.ec-staff-app-active .entry-header,
body.ec-staff-app-active .page-header,
body.ec-staff-app-active .entry-title,
body.ec-staff-app-active .page-title,
body.ec-staff-app-active .post-title,
body.ec-staff-app-active .wp-block-post-title {
    display: none !important;
}

body.ec-staff-app-active #footer,
body.ec-staff-app-active .footer,
body.ec-staff-app-active .footer_bar,
body.ec-staff-app-active .footer_wrapper,
body.ec-staff-app-active .elementor-location-footer,
body.ec-staff-app-active [data-elementor-type="footer"] {
    display: none !important;
}

body.ec-staff-app-active .wp-site-blocks,
body.ec-staff-app-active #wrapper,
body.ec-staff-app-active #page_content_wrapper,
body.ec-staff-app-active .inner,
body.ec-staff-app-active .inner_wrapper,
body.ec-staff-app-active .wp-block-group,
body.ec-staff-app-active .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.ec-staff-app {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--ec-sa-paper);
    color: var(--ec-sa-navy);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    box-shadow: none;
}

.ec-sa-header,
.ec-sa-main,
.ec-sa-bottom-nav {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
}

.ec-staff-app,
.ec-staff-app * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.ec-staff-app button,
.ec-staff-app input,
.ec-staff-app select,
.ec-staff-app textarea {
    font: inherit;
}

.ec-staff-app button {
    cursor: pointer;
}

.ec-sa-pull-refresh {
    display: none !important;
    position: fixed;
    top: calc(env(safe-area-inset-top) - 58px);
    left: 50%;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 5px 5px 0 rgba(11, 171, 228, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, 0, 0);
    transition: opacity 160ms ease, transform 180ms ease, border-color 160ms ease, background 160ms ease;
    white-space: nowrap;
}

.ec-sa-pull-refresh.is-pulling,
.ec-sa-pull-refresh.is-ready,
.ec-sa-pull-refresh.is-refreshing {
    opacity: 1;
}

.ec-sa-pull-refresh.is-ready,
.ec-sa-pull-refresh.is-refreshing {
    border-color: var(--ec-sa-cyan);
    background: rgba(11, 171, 228, 0.08);
}

.ec-sa-pull-refresh.is-refreshing .ec-sa-pull-refresh-icon {
    animation: ec-sa-spin 760ms linear infinite;
}

@keyframes ec-sa-spin {
    to {
        transform: rotate(360deg);
    }
}

.ec-sa-header {
    position: relative;
    z-index: 10;
    padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
    background: var(--ec-sa-paper);
    border-bottom: 2px solid var(--ec-sa-navy);
    box-shadow: 0 8px 28px rgba(0, 45, 114, 0.06);
}

.ec-sa-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ec-sa-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.ec-sa-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--ec-sa-navy);
    color: #fff;
    font-weight: 900;
    font-style: italic;
    box-shadow: 5px 5px 0 rgba(11, 171, 228, 0.2);
}

.ec-sa-brand-copy {
    min-width: 0;
}

.ec-sa-brand h1 {
    margin: 0;
    color: var(--ec-sa-navy);
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}

.ec-sa-brand p {
    max-width: 260px;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sa-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 10px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sa-status-pill.offline::before {
    background: var(--ec-sa-warning);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.ec-sa-status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--ec-sa-ok);
    box-shadow: 0 0 12px rgba(22, 163, 74, 0.5);
}

.ec-sa-status-group {
    display: grid;
    justify-items: end;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 0;
}

.ec-sa-staff-chip {
    max-width: 132px;
    display: block;
    overflow: hidden;
    padding: 5px 7px;
    border: 1.5px solid rgba(0, 45, 114, 0.14);
    background: rgba(11, 171, 228, 0.07);
    color: var(--ec-sa-navy);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sa-offline-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 2px solid rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 5px 5px 0 rgba(245, 158, 11, 0.12);
}

.ec-sa-offline-banner.show {
    display: flex;
}

.ec-sa-offline-banner span {
    color: #b45309;
    font-size: 9px;
}

.ec-sa-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ec-sa-stat {
    min-width: 0;
    padding: 10px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #fff;
}

.ec-sa-stat b {
    display: block;
    color: var(--ec-sa-navy);
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1;
}

.ec-sa-stat span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--ec-sa-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sa-event-badge {
    display: none;
}

.ec-sa-main {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, var(--ec-sa-soft));
}

.ec-sa-screen {
    position: absolute;
    inset: 0;
    display: none;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px 14px 24px;
    scrollbar-width: none;
}

.ec-sa-screen::-webkit-scrollbar {
    display: none;
}

.ec-sa-screen.active {
    display: block;
}

.ec-sa-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 14px;
}

.ec-sa-section-head h2 {
    margin: 0;
    color: var(--ec-sa-navy);
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 0.9;
    text-transform: uppercase;
}

.ec-sa-section-head h2 span {
    color: var(--ec-sa-cyan);
}

.ec-sa-section-head p {
    margin: 0;
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

.ec-sa-section-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 0;
}

.ec-sa-refresh-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 4px 4px 0 rgba(11, 171, 228, 0.12);
}

.ec-sa-refresh-btn span {
    font-size: 14px;
    line-height: 1;
}

.ec-sa-refresh-btn.is-refreshing span {
    animation: ec-sa-spin 760ms linear infinite;
}

.ec-sa-section-head--small {
    margin-top: 18px;
}

.ec-sa-section-head--small h2 {
    font-size: 24px;
}

.ec-sa-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ec-sa-action-card {
    min-height: 92px;
    padding: 15px;
    border: 2px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    text-align: left;
    box-shadow: 0 10px 28px rgba(0, 45, 114, 0.05);
    transition: transform 0.16s ease, background 0.16s ease;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.ec-sa-action-card:active {
    transform: scale(0.98);
    background: rgba(11, 171, 228, 0.06);
}

.ec-sa-action-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    background: var(--ec-sa-navy);
    color: #fff;
    font-weight: 900;
    box-shadow: 4px 4px 0 rgba(11, 171, 228, 0.18);
}

.ec-sa-action-card b {
    display: block;
    color: var(--ec-sa-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ec-sa-action-card span:last-child {
    display: block;
    margin-top: 4px;
    color: var(--ec-sa-muted);
    font-size: 11px;
    line-height: 1.35;
}

.ec-sa-export-panel {
    margin-top: 18px;
}

.ec-sa-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ec-sa-export-card {
    min-width: 0;
    display: block;
    padding: 12px 10px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    color: var(--ec-sa-navy);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 45, 114, 0.04);
}

.ec-sa-export-card:active {
    transform: scale(0.98);
}

.ec-sa-export-card b,
.ec-sa-export-card span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-sa-export-card b {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ec-sa-export-card span {
    margin-top: 5px;
    color: var(--ec-sa-muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
}

.ec-sa-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
    box-shadow: 6px 6px 0 rgba(0, 45, 114, 0.06);
}

.ec-sa-search-icon {
    color: var(--ec-sa-cyan);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ec-sa-search-input,
.ec-sa-filter-select,
.ec-sa-field input,
.ec-sa-field select,
.ec-sa-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    outline: none;
    font-size: 14px;
}

.ec-sa-search-input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.ec-sa-search-input::placeholder {
    color: rgba(0, 45, 114, 0.35);
}

.ec-sa-filter-select {
    margin-bottom: 12px;
}

.ec-sa-field input:focus,
.ec-sa-field select:focus,
.ec-sa-field textarea:focus,
.ec-sa-filter-select:focus,
.ec-sa-search-input:focus {
    border-color: var(--ec-sa-cyan);
    box-shadow: 0 0 0 4px rgba(11, 171, 228, 0.1);
}

.ec-sa-guest-list {
    display: grid;
    gap: 10px;
}

.ec-sa-guest-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 45, 114, 0.05);
    transition: transform 0.16s ease;
}

.ec-sa-guest-item:active {
    transform: scale(0.985);
}

.ec-sa-guest-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ec-sa-navy), var(--ec-sa-cyan));
    color: #fff;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0;
    box-shadow: 4px 4px 0 rgba(0, 45, 114, 0.08);
}

.ec-sa-guest-avatar--lg {
    width: 58px;
    height: 58px;
}

.ec-sa-guest-info {
    min-width: 0;
}

.ec-sa-guest-name {
    overflow: hidden;
    color: var(--ec-sa-navy);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-guest-company {
    overflow: hidden;
    margin-top: 2px;
    color: #0b4a86;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-guest-email {
    display: grid;
    gap: 2px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ec-sa-muted);
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.ec-sa-guest-email span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-guest-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.ec-sa-mini-link-action {
    min-width: 178px;
    display: inline-flex;
    align-items: stretch;
    gap: 5px;
}

.ec-sa-mini-copy {
    min-width: 118px;
    min-height: 42px;
    display: inline-grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(0, 45, 114, 0.2);
    border-radius: 4px;
    background: #f7faff;
    color: var(--ec-sa-navy);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ec-sa-mini-link-action .ec-sa-mini-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ec-sa-mini-open {
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(0, 45, 114, 0.24);
    border-radius: 4px;
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ec-sa-mini-open:hover,
.ec-sa-mini-open:focus-visible {
    border-color: var(--ec-sa-cyan);
    background: #eef9ff;
    color: var(--ec-sa-navy);
    outline: none;
}

.ec-sa-mini-copy:hover,
.ec-sa-mini-copy:focus-visible {
    border-color: var(--ec-sa-cyan);
    background: #eef9ff;
    outline: none;
}

.ec-sa-mini-copy:active {
    transform: translateY(1px);
}

.ec-sa-mini-copy > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ec-sa-mini-copy b {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-mini-copy small {
    overflow: hidden;
    color: var(--ec-sa-muted);
    font-size: 8px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-mini-copy-icon {
    width: 13px;
    height: 14px;
    position: relative;
    display: block;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.ec-sa-mini-copy-icon::before {
    content: "";
    width: 9px;
    height: 10px;
    position: absolute;
    top: -4px;
    left: -4px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: #f7faff;
}

.ec-sa-guest-status {
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.ec-sa-guest-status small {
    color: rgba(0, 45, 114, 0.46);
    font-size: 9px;
    font-weight: 800;
}

.ec-sa-guest-status .ec-sa-guest-mail {
    max-width: 190px;
    color: var(--ec-sa-muted);
    font-weight: 700;
    line-height: 1.25;
}

.ec-sa-badge {
    display: inline-flex;
    padding: 5px 7px;
    border: 1.5px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ec-sa-badge--checked_in {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.1);
    color: var(--ec-sa-ok);
}

.ec-sa-badge--workflow {
    max-width: 142px;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.ec-sa-badge--registered {
    border-color: rgba(0, 45, 114, 0.22);
    background: rgba(0, 45, 114, 0.06);
}

.ec-sa-badge--booking_sent {
    border-color: rgba(14, 165, 233, 0.36);
    background: rgba(14, 165, 233, 0.11);
    color: #0369a1;
}

.ec-sa-badge--booked {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.09);
    color: #5b21b6;
}

.ec-sa-badge--cancelled {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: var(--ec-sa-danger);
}

.ec-sa-scan-container {
    display: grid;
    gap: 12px;
}

.ec-sa-scanner-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
    box-shadow: 10px 10px 0 rgba(0, 45, 114, 0.08);
}

.ec-sa-scanner-viewport::before {
    content: "";
    position: absolute;
    inset: 28px;
    z-index: 2;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 999px rgba(0, 18, 46, 0.12);
}

.ec-sa-scanner-viewport video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.ec-sa-scanner-viewport img {
    max-width: 100%;
}

#ec-sa-scanner-viewport__dashboard_section {
    padding: 8px !important;
}

#ec-sa-scanner-viewport__dashboard_section button {
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid var(--ec-sa-navy);
    background: var(--ec-sa-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ec-sa-scan-hint {
    margin: 4px 0 0;
    color: var(--ec-sa-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.ec-sa-scan-result {
    margin-top: 14px;
    padding: 14px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 45, 114, 0.05);
}

.ec-sa-form-container,
.ec-sa-form,
.ec-sa-form-section {
    display: grid;
    gap: 10px;
}

.ec-sa-form-section {
    margin-top: 6px;
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #fff;
}

.ec-sa-form-section-title {
    margin: 0;
    color: var(--ec-sa-navy);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-form-section-note {
    margin: 0;
    color: var(--ec-sa-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ec-sa-field {
    display: grid;
    gap: 6px;
}

.ec-sa-field label {
    color: var(--ec-sa-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.5;
}

.ec-sa-field-error {
    border-color: var(--ec-sa-danger) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.ec-sa-choice-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 45, 114, 0.12);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 13px;
}

.ec-sa-choice-inline input {
    width: auto;
    min-height: auto;
}

.ec-sa-form-message {
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ec-sa-form-message--success {
    border-color: rgba(22, 163, 74, 0.34);
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
}

.ec-sa-form-message--error {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.ec-sa-profile-header {
    margin-bottom: 12px;
}

.ec-sa-back-btn {
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-detail-hero {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(0, 45, 114, 0.08);
}

.ec-sa-detail-hero h3 {
    margin: 0;
    color: var(--ec-sa-navy);
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ec-sa-detail-hero p {
    margin: 5px 0 0;
    color: var(--ec-sa-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ec-sa-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.ec-sa-workflow-card {
    margin: 0 0 12px;
    padding: 14px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.86) 100%);
}

.ec-sa-workflow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ec-sa-workflow-head > span {
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ec-sa-workflow-card p {
    margin: 9px 0 12px;
    color: var(--ec-sa-text);
    font-size: 12px;
    line-height: 1.45;
}

.ec-sa-workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.ec-sa-workflow-step {
    min-width: 0;
    display: grid;
    gap: 5px;
    justify-items: center;
    padding: 8px 4px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: rgba(255, 255, 255, 0.72);
}

.ec-sa-workflow-step i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 45, 114, 0.2);
    color: var(--ec-sa-muted);
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
}

.ec-sa-workflow-step b {
    max-width: 100%;
    color: var(--ec-sa-muted);
    font-size: 8px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ec-sa-workflow-step.is-done i,
.ec-sa-workflow-step.is-current i {
    border-color: var(--ec-sa-accent);
    background: var(--ec-sa-accent);
    color: #fff;
}

.ec-sa-workflow-step.is-current {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.08);
}

.ec-sa-info-item {
    min-width: 0;
    position: relative;
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #fff;
}

.ec-sa-info-item span {
    display: block;
    color: var(--ec-sa-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-info-item b {
    display: block;
    margin-top: 5px;
    padding-right: 42px;
    overflow: hidden;
    color: var(--ec-sa-navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-small-note {
    margin: 10px 0 0;
    color: var(--ec-sa-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ec-sa-export-card--primary {
    border-color: rgba(14, 165, 233, 0.55);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.10), #fff);
}

.ec-sa-copy-row {
    cursor: copy;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.ec-sa-copy-row:hover,
.ec-sa-copy-row:focus {
    border-color: rgba(11, 171, 228, 0.52);
    background: rgba(11, 171, 228, 0.05);
    outline: none;
}

.ec-sa-copy-row em {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--ec-sa-cyan);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.ec-sa-link-row-main {
    min-width: 0;
    position: relative;
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #fff;
}

.ec-sa-info-open {
    min-width: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #f7faff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.ec-sa-info-open:hover,
.ec-sa-info-open:focus-visible {
    border-color: rgba(11, 171, 228, 0.52);
    background: rgba(11, 171, 228, 0.08);
    outline: none;
}

.ec-sa-wide {
    grid-column: 1 / -1;
}

.ec-sa-accordion {
    margin-bottom: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
}

.ec-sa-accordion summary {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    color: var(--ec-sa-navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
}

.ec-sa-accordion summary::-webkit-details-marker {
    display: none;
}

.ec-sa-accordion summary::after {
    content: "+";
    color: var(--ec-sa-cyan);
    font-size: 18px;
    line-height: 1;
}

.ec-sa-accordion[open] summary::after {
    content: "-";
}

.ec-sa-accordion-body {
    padding: 0 14px 14px;
    color: var(--ec-sa-muted);
    font-size: 12px;
    line-height: 1.55;
}

.ec-sa-mini-row {
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 45, 114, 0.08);
}

.ec-sa-mini-row b {
    padding-right: 38px;
    color: var(--ec-sa-navy);
    text-align: right;
    overflow-wrap: anywhere;
}

.ec-sa-qr-preview {
    display: block;
}

.ec-sa-qr-tools {
    display: grid;
    gap: 12px;
    width: 100%;
}

.ec-sa-qr-alone {
    display: grid;
    place-items: center;
}

.ec-sa-qr-alone img {
    width: min(180px, 70vw);
    height: auto;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
}

.ec-sa-qr-card {
    width: min(260px, 100%);
    margin: 0 auto;
    padding: 14px;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
    color: var(--ec-sa-navy);
    text-align: center;
    box-shadow: 8px 8px 0 rgba(0, 45, 114, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ec-sa-qr-card.is-highlighted,
.ec-sa-qr-alone.is-highlighted {
    transform: scale(1.02);
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.32);
}

.ec-sa-qr-card-head span {
    display: block;
    color: var(--ec-sa-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-qr-card-head b {
    display: block;
    margin-top: 5px;
    color: var(--ec-sa-navy);
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    line-height: 0.98;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.ec-sa-qr-card-head small {
    display: block;
    margin-top: 5px;
    color: var(--ec-sa-muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.ec-sa-qr-card img {
    width: min(190px, 72vw);
    height: auto;
    margin: 12px auto;
    border: 0;
}

.ec-sa-qr-card--asset {
    display: block;
    width: min(320px, 100%);
    padding: 8px;
}

.ec-sa-qr-card--asset img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
}

.ec-sa-qr-card--html {
    width: min(320px, 100%);
    overflow: hidden;
}

.ec-sa-qr-card--html iframe {
    display: block;
    width: 397px;
    height: 560px;
    border: 0;
    transform-origin: 0 0;
    pointer-events: none;
}

.ec-sa-qr-card-foot {
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
}

.ec-sa-qr-actions {
    margin-bottom: 0;
}

.ec-sa-alert {
    margin-bottom: 12px;
    padding: 12px;
    border: 2px solid rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.ec-sa-gmail-header {
    margin-bottom: 12px;
    padding: 14px;
    border: 2px solid var(--ec-sa-navy);
    background: #fff;
    box-shadow: 8px 8px 0 rgba(0, 45, 114, 0.08);
}

.ec-sa-gmail-header span {
    display: block;
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-gmail-header b {
    display: block;
    margin-top: 4px;
    color: var(--ec-sa-navy);
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    overflow-wrap: anywhere;
}

.ec-sa-gmail-header p {
    margin: 8px 0 0;
    color: var(--ec-sa-muted);
    font-size: 12px;
}

.ec-sa-note-list {
    display: grid;
    gap: 8px;
}

.ec-sa-note-item {
    display: grid;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid rgba(0, 45, 114, 0.1);
    border-right: 1px solid rgba(0, 45, 114, 0.1);
    border-bottom: 1px solid rgba(0, 45, 114, 0.1);
    border-left: 4px solid var(--ec-sa-cyan);
    background: #fff;
}

.ec-sa-note-item b {
    color: var(--ec-sa-navy);
    font-size: 12px;
}

.ec-sa-note-item span {
    color: var(--ec-sa-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ec-sa-note-item small {
    color: rgba(0, 45, 114, 0.48);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-note-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.ec-sa-note-actions .ec-sa-btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 9px;
}

.ec-sa-signature-warning {
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 2px solid rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.09);
    color: #92400e;
    font-size: 11px;
    line-height: 1.45;
}

.ec-sa-signature-warning b {
    display: block;
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-signature-pad {
    position: relative;
    height: 260px;
    overflow: hidden;
    border: 2px solid rgba(0, 45, 114, 0.22);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 45, 114, 0.05);
    touch-action: none;
}

.ec-sa-signature-pad canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ec-sa-signature-pad::after {
    content: "SIGN HERE";
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: rgba(0, 45, 114, 0.22);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    pointer-events: none;
}

.ec-sa-signature-preview-card {
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
}

.ec-sa-signature-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ec-sa-signature-preview-head b {
    display: block;
    color: var(--ec-sa-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-signature-preview-head span:not(.ec-sa-badge) {
    display: block;
    margin-top: 4px;
    color: var(--ec-sa-muted);
    font-size: 11px;
}

.ec-sa-signature-preview {
    width: 100%;
    height: 128px;
    display: block;
    object-fit: contain;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.ec-sa-sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: flex-end;
    background: rgba(0, 18, 46, 0.38);
}

.ec-sa-sheet-backdrop.show {
    display: flex;
}

.ec-sa-sheet {
    width: 100%;
    max-height: 82%;
    overflow: auto;
    padding: 16px 14px calc(18px + var(--ec-sa-safe-bottom));
    border-top: 2px solid var(--ec-sa-navy);
    background: #fff;
    box-shadow: 0 -18px 50px rgba(0, 45, 114, 0.22);
}

.ec-sa-sheet-handle {
    width: 46px;
    height: 4px;
    margin: 0 auto 14px;
    background: rgba(0, 45, 114, 0.18);
}

.ec-sa-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ec-sa-sheet-head h3 {
    margin: 0;
    color: var(--ec-sa-navy);
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0;
    line-height: 0.9;
    text-transform: uppercase;
}

.ec-sa-sheet-head p {
    margin: 5px 0 0;
    color: var(--ec-sa-muted);
    font-size: 12px;
}

.ec-sa-sheet-close {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 24px;
    line-height: 1;
}

.ec-sa-history-list {
    display: grid;
    gap: 10px;
}

.ec-sa-history-item {
    padding: 13px;
    border-top: 1px solid rgba(0, 45, 114, 0.1);
    border-right: 1px solid rgba(0, 45, 114, 0.1);
    border-bottom: 1px solid rgba(0, 45, 114, 0.1);
    border-left: 4px solid var(--ec-sa-cyan);
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 45, 114, 0.04);
}

.ec-sa-history-item b {
    display: block;
    color: var(--ec-sa-navy);
    font-size: 13px;
}

.ec-sa-history-item p {
    margin: 4px 0 0;
    color: var(--ec-sa-muted);
    font-size: 11px;
    line-height: 1.45;
}

.ec-sa-history-item time {
    display: block;
    margin-top: 6px;
    color: rgba(0, 45, 114, 0.42);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ec-sa-btn,
.ec-sa-btn--secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 2px solid rgba(0, 45, 114, 0.22);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.16s ease;
}

.ec-sa-btn:active {
    transform: scale(0.975);
}

.ec-sa-btn:disabled {
    opacity: 0.62;
    cursor: progress;
}

.ec-sa-btn--primary,
.ec-sa-btn--success {
    border-color: var(--ec-sa-navy);
    background: var(--ec-sa-navy);
    color: #fff;
    box-shadow: 5px 5px 0 rgba(11, 171, 228, 0.18);
}

.ec-sa-btn--warning {
    border-color: var(--ec-sa-warning);
    background: var(--ec-sa-warning);
    color: #fff;
}

.ec-sa-btn--full {
    width: 100%;
}

.ec-sa-btn-row,
.ec-sa-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.ec-sa-form-actions {
    grid-template-columns: 1fr;
    margin: 0;
}

.ec-sa-load-more {
    margin-top: 12px;
}

.ec-sa-empty,
.ec-sa-loading {
    padding: 18px;
    border: 2px solid rgba(0, 45, 114, 0.12);
    background: #fff;
    color: var(--ec-sa-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.ec-sa-bottom-nav {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    min-width: 0;
    padding: 7px 6px calc(7px + var(--ec-sa-safe-bottom));
    border-top: 2px solid var(--ec-sa-navy);
    background: var(--ec-sa-navy);
}

.ec-sa-nav-item {
    min-width: 0;
    min-height: 56px;
    display: grid;
    grid-template-rows: 24px 16px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px 1px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    font-size: clamp(7px, 2.25vw, 9px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    overflow: hidden;
}

.ec-sa-nav-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.ec-sa-nav-item span {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-nav-item.active {
    color: var(--ec-sa-cyan);
}

.ec-sa-toast-container {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(88px + var(--ec-sa-safe-bottom));
    z-index: 50;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.ec-sa-toast {
    padding: 13px 14px;
    border: 2px solid var(--ec-sa-navy);
    background: var(--ec-sa-navy);
    color: #fff;
    box-shadow: 8px 8px 0 rgba(11, 171, 228, 0.2);
}

.ec-sa-toast--error {
    border-color: var(--ec-sa-danger);
    background: var(--ec-sa-danger);
}

.ec-sa-toast b {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ec-sa-toast span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

@media (min-width: 521px) {
    body.ec-staff-app-active {
        background: var(--ec-sa-soft);
    }

    .ec-staff-app {
        left: 0;
        right: 0;
        transform: none;
        border: 0;
    }
}

@media (max-height: 720px) {
    .ec-sa-header {
        padding-top: calc(10px + env(safe-area-inset-top));
        padding-bottom: 9px;
    }

    .ec-sa-staff-chip {
        max-width: 104px;
    }

    .ec-sa-stats {
        display: none;
    }

    .ec-sa-section-head h2 {
        font-size: 26px;
    }

    .ec-sa-screen {
        padding-top: 12px;
    }

    .ec-sa-bottom-nav {
        padding-top: 5px;
        padding-bottom: calc(5px + var(--ec-sa-safe-bottom));
    }

    .ec-sa-nav-item {
        min-height: 48px;
        grid-template-rows: 21px 14px;
    }

    .ec-sa-nav-icon {
        width: 20px;
        height: 20px;
    }

    .ec-sa-detail-hero h3 {
        font-size: 21px;
    }

    .ec-sa-signature-pad {
        height: 210px;
    }
}

@media (max-width: 380px) {
    .ec-sa-export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .ec-sa-bottom-nav {
        padding-left: 4px;
        padding-right: 4px;
    }

    .ec-sa-nav-item {
        font-size: 7px;
    }
}

/* Hard guard against theme/full-page hiding rules affecting the staff app itself. */
body.ec-staff-app-active .ec-staff-app {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: var(--ec-sa-paper) !important;
}

body.ec-staff-app-active .ec-sa-header {
    display: block !important;
    visibility: visible !important;
}

body.ec-staff-app-active .ec-sa-main {
    display: block !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #f8fafc, var(--ec-sa-soft)) !important;
}

body.ec-staff-app-active .ec-sa-screen.active {
    display: block !important;
    visibility: visible !important;
}

body.ec-staff-app-active .ec-sa-bottom-nav {
    display: grid !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: end !important;
}

.ec-sa-appointment-list {
    display: grid;
    gap: 12px;
}

.ec-sa-appointment-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(150px, 1fr));
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
}

.ec-sa-filter-chip {
    min-height: 40px;
    padding: 0 14px;
    border: 2px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.ec-sa-filter-chip.is-active {
    border-color: var(--ec-sa-cyan);
    background: rgba(11, 171, 228, 0.09);
    color: var(--ec-sa-cyan);
}

.ec-sa-appointment-tools .ec-sa-filter-select,
.ec-sa-appointment-tools .ec-sa-filter-input {
    width: 100%;
    min-height: 40px;
    border: 2px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    color: var(--ec-sa-navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.ec-sa-appointment-tools .ec-sa-filter-input {
    padding: 0 12px;
}

.ec-sa-appointment-tools .ec-sa-filter-input::placeholder {
    color: rgba(0, 45, 114, 0.48);
}

.ec-sa-appointment-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.ec-sa-appointment-stat {
    min-width: 0;
    padding: 12px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: rgba(11, 171, 228, 0.045);
}

.ec-sa-appointment-stat.is-clickable {
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ec-sa-appointment-stat.is-clickable:active {
    transform: scale(0.98);
}

.ec-sa-appointment-stat.is-clickable:hover,
.ec-sa-appointment-stat.is-clickable:focus {
    border-color: var(--ec-sa-cyan);
    background: rgba(11, 171, 228, 0.09);
    outline: none;
}

.ec-sa-appointment-stat b {
    display: block;
    color: var(--ec-sa-navy);
    font-size: 22px;
    line-height: 1;
}

.ec-sa-appointment-stat span {
    display: block;
    margin-top: 6px;
    color: var(--ec-sa-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ec-sa-appointment-stat em {
    display: block;
    margin-top: 5px;
    color: var(--ec-sa-cyan);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-not-booked-list {
    display: grid;
    gap: 10px;
}

.ec-sa-not-booked-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid rgba(0, 45, 114, 0.14);
    background: #fff;
    box-shadow: 7px 7px 0 rgba(11, 171, 228, 0.08);
    cursor: pointer;
}

.ec-sa-not-booked-body {
    min-width: 0;
}

.ec-sa-not-booked-body h3 {
    margin: 0;
    overflow: hidden;
    color: var(--ec-sa-navy);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.ec-sa-not-booked-body p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--ec-sa-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-sa-not-booked-body span {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 7px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: rgba(11, 171, 228, 0.06);
    color: var(--ec-sa-navy);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ec-sa-appointment-day {
    display: grid;
    gap: 8px;
}

.ec-sa-appointment-day h3 {
    margin: 4px 0 0;
    color: var(--ec-sa-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ec-sa-appointment-day-list {
    display: grid;
    gap: 10px;
}

.ec-sa-appointment-item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 2px solid rgba(0, 45, 114, 0.16);
    background: #fff;
    box-shadow: 7px 7px 0 rgba(11, 171, 228, 0.08);
}

.ec-sa-appointment-time {
    display: grid;
    gap: 4px;
    color: var(--ec-sa-navy);
    padding: 10px;
    border: 1px solid rgba(0, 45, 114, 0.14);
    background: rgba(11, 171, 228, 0.05);
}

.ec-sa-appointment-time b {
    font-size: 18px;
    line-height: 1;
}

.ec-sa-appointment-time span,
.ec-sa-appointment-time small,
.ec-sa-appointment-body small {
    color: var(--ec-sa-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ec-sa-appointment-time small {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid rgba(0, 45, 114, 0.18);
    background: #fff;
    color: var(--ec-sa-navy);
}

.ec-sa-appointment-body {
    min-width: 0;
}

.ec-sa-appointment-body h3 {
    margin: 0 0 6px;
    color: var(--ec-sa-navy);
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ec-sa-appointment-rep {
    color: var(--ec-sa-cyan) !important;
    font-weight: 900;
}

.ec-sa-appointment-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
    background: rgba(0, 45, 114, 0.12);
}

.ec-sa-appointment-body p {
    margin: 0 0 7px;
    color: var(--ec-sa-text);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .ec-sa-guest-item {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
    }

    .ec-sa-guest-status {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .ec-sa-guest-link-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-sa-mini-link-action {
        min-width: 0;
        width: 100%;
    }

    .ec-sa-mini-copy {
        min-width: 0;
        width: 100%;
    }

    .ec-sa-mini-link-action:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ec-sa-appointment-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-sa-appointment-tools .ec-sa-filter-input {
        grid-column: 1 / -1;
    }

    .ec-sa-appointment-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ec-sa-appointment-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .ec-sa-appointment-item .ec-sa-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 390px) {
    .ec-sa-guest-link-actions {
        grid-template-columns: 1fr;
    }

    .ec-sa-mini-link-action:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .ec-sa-appointment-item {
        grid-template-columns: 1fr;
    }

    .ec-sa-appointment-time {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .ec-sa-appointment-time small {
        grid-column: 1 / -1;
    }
}
