/*
 * Sopra header Filament, dropdown «Guida» (x-float) e overlay Driver.js (inline z-index: 10000).
 */
body.driver-active > svg[style*='position: fixed'] {
    z-index: 100000 !important;
}

body.driver-active .driver-popover,
.filament-driver-tour-popover.driver-popover {
    z-index: 100001 !important;
}

body.driver-active .fi-dropdown-panel {
    z-index: 40 !important;
}

.filament-driver-tour-popover.driver-popover {
    background-color: rgb(var(--gray-50));
    color: rgb(var(--gray-950));
    border: 1px solid rgba(var(--gray-950), 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-width: 22rem;
}

.filament-driver-tour-popover.filament-driver-tour-popover--wide.driver-popover {
    max-width: min(24rem, calc(100vw - 2rem));
}

.filament-driver-tour-popover.filament-driver-tour-popover--intro.driver-popover {
    max-width: min(22rem, calc(100vw - 1.5rem));
    padding: 0.5rem 0.25rem 0.25rem;
}

.filament-driver-tour-popover--intro .driver-popover-title {
    display: none;
}

.filament-driver-tour-popover--intro .driver-popover-description {
    padding: 0 0.5rem 0.25rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-title__icon {
    width: 1.5rem;
    height: 1.5rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-lead {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-foot {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-grid {
    gap: 0.75rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    min-height: 6.5rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-card__icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-card__label {
    font-size: 0.875rem;
}

.filament-driver-tour-intro-card__hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: rgb(var(--gray-500));
}

.filament-driver-tour-popover--intro .filament-driver-tour-intro-card__hint {
    font-size: 0.8125rem;
}

.filament-driver-tour-welcome {
    text-align: center;
    padding: 0.25rem 0.5rem 0.5rem;
}

.filament-driver-tour-welcome__mascot {
    display: flex;
    justify-content: center;
    margin: 0.15rem 0 0.85rem;
}

.filament-driver-tour-mascot {
    width: 4.5rem;
    height: 4.5rem;
    overflow: visible;
    animation: filament-driver-tour-mascot-bob 2s ease-in-out infinite;
}

.filament-driver-tour-mascot__wisp {
    opacity: 0.22;
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: filament-driver-tour-steam 2s ease-in-out infinite;
}

.filament-driver-tour-mascot__wisp--2 {
    animation-delay: -0.65s;
}

.filament-driver-tour-mascot__wisp--3 {
    animation-delay: -1.3s;
}

@keyframes filament-driver-tour-mascot-bob {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes filament-driver-tour-steam {
    0%,
    100% {
        opacity: 0.1;
        transform: translate(0, 4px) scaleY(0.85);
    }

    50% {
        opacity: 0.75;
        transform: translate(2px, -8px) scaleY(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .filament-driver-tour-mascot,
    .filament-driver-tour-mascot__wisp {
        animation: none;
    }

    .filament-driver-tour-mascot__wisp {
        opacity: 0.4;
    }

    .filament-driver-tour-mascot__lid animateTransform {
        display: none;
    }
}

.filament-driver-tour-welcome__hello {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgb(var(--gray-950));
}

.filament-driver-tour-welcome__subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(var(--gray-500));
}

.filament-driver-tour-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filament-driver-tour-title__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgb(var(--primary-600));
}

.filament-driver-tour-title__text {
    font-weight: 600;
    line-height: 1.3;
}

.filament-driver-tour-intro-lead {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(var(--gray-600));
}

.filament-driver-tour-intro-foot {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgb(var(--gray-500));
}

.filament-driver-tour-intro-foot strong {
    font-weight: 600;
    color: rgb(var(--gray-700));
}

.filament-driver-tour-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.filament-driver-tour-intro-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(var(--gray-950), 0.08);
    background: rgb(var(--gray-50));
}

.filament-driver-tour-intro-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

.filament-driver-tour-intro-card__icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.filament-driver-tour-intro-card__icon--primary {
    background: rgba(var(--primary-500), 0.12);
    color: rgb(var(--primary-600));
}

.filament-driver-tour-intro-card__icon--success {
    background: rgba(var(--success-500), 0.12);
    color: rgb(var(--success-600));
}

.filament-driver-tour-intro-card__icon--warning {
    background: rgba(var(--warning-500), 0.14);
    color: rgb(var(--warning-600));
}

.filament-driver-tour-intro-card__icon--gray {
    background: rgba(var(--gray-500), 0.12);
    color: rgb(var(--gray-600));
}

.filament-driver-tour-intro-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgb(var(--gray-950));
}

.filament-driver-tour-popover .driver-popover-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(var(--gray-950));
}

.filament-driver-tour-popover .driver-popover-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgb(var(--gray-600));
}

.filament-driver-tour-popover .driver-popover-progress-text {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(var(--gray-800));
}

.filament-driver-tour-popover .driver-popover-close-btn {
    color: rgb(var(--gray-400));
}

.filament-driver-tour-popover .driver-popover-close-btn:hover,
.filament-driver-tour-popover .driver-popover-close-btn:focus {
    color: rgb(var(--gray-950));
}

.filament-driver-tour-popover .driver-popover-footer button {
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    text-shadow: none;
    transition: background-color 75ms ease, color 75ms ease, border-color 75ms ease;
}

.filament-driver-tour-popover .driver-popover-next-btn,
.filament-driver-tour-popover .driver-popover-done-btn {
    background-color: rgb(var(--primary-600));
    color: #fff;
    border: 1px solid transparent;
    text-shadow: none;
}

.filament-driver-tour-popover .driver-popover-next-btn:hover,
.filament-driver-tour-popover .driver-popover-next-btn:focus,
.filament-driver-tour-popover .driver-popover-done-btn:hover,
.filament-driver-tour-popover .driver-popover-done-btn:focus {
    background-color: rgb(var(--primary-500));
    color: #fff;
}

.filament-driver-tour-popover .driver-popover-prev-btn {
    background-color: #fff;
    color: rgb(var(--gray-950));
    border: 1px solid rgba(var(--gray-950), 0.1);
    text-shadow: none;
}

.filament-driver-tour-popover .driver-popover-prev-btn:hover,
.filament-driver-tour-popover .driver-popover-prev-btn:focus {
    background-color: rgba(var(--gray-400), 0.1);
}

.filament-driver-tour-popover .driver-popover-arrow-side-bottom {
    border-bottom-color: rgb(var(--gray-50));
}

.filament-driver-tour-popover .driver-popover-arrow-side-top {
    border-top-color: rgb(var(--gray-50));
}

.filament-driver-tour-popover .driver-popover-arrow-side-left {
    border-left-color: rgb(var(--gray-50));
}

.filament-driver-tour-popover .driver-popover-arrow-side-right {
    border-right-color: rgb(var(--gray-50));
}

.dark .filament-driver-tour-popover.driver-popover {
    background-color: rgb(var(--gray-900));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .filament-driver-tour-popover .driver-popover-title {
    color: #fff;
}

.dark .filament-driver-tour-popover .driver-popover-description {
    color: rgb(var(--gray-400));
}

.dark .filament-driver-tour-popover .driver-popover-progress-text {
    color: rgb(var(--gray-200));
}

.dark .filament-driver-tour-popover .driver-popover-close-btn {
    color: rgb(var(--gray-500));
}

.dark .filament-driver-tour-popover .driver-popover-close-btn:hover,
.dark .filament-driver-tour-popover .driver-popover-close-btn:focus {
    color: #fff;
}

.dark .filament-driver-tour-popover .driver-popover-next-btn,
.dark .filament-driver-tour-popover .driver-popover-done-btn {
    background-color: rgb(var(--primary-500));
    color: #fff;
}

.dark .filament-driver-tour-popover .driver-popover-next-btn:hover,
.dark .filament-driver-tour-popover .driver-popover-next-btn:focus,
.dark .filament-driver-tour-popover .driver-popover-done-btn:hover,
.dark .filament-driver-tour-popover .driver-popover-done-btn:focus {
    background-color: rgb(var(--primary-400));
    color: #fff;
}

.dark .filament-driver-tour-popover .driver-popover-prev-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .filament-driver-tour-popover .driver-popover-prev-btn:hover,
.dark .filament-driver-tour-popover .driver-popover-prev-btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .filament-driver-tour-popover .driver-popover-arrow-side-bottom {
    border-bottom-color: rgb(var(--gray-900));
}

.dark .filament-driver-tour-popover .driver-popover-arrow-side-top {
    border-top-color: rgb(var(--gray-900));
}

.dark .filament-driver-tour-popover .driver-popover-arrow-side-left {
    border-left-color: rgb(var(--gray-900));
}

.dark .filament-driver-tour-popover .driver-popover-arrow-side-right {
    border-right-color: rgb(var(--gray-900));
}

.dark .filament-driver-tour-intro-lead {
    color: rgb(var(--gray-400));
}

.dark .filament-driver-tour-intro-foot {
    color: rgb(var(--gray-500));
}

.dark .filament-driver-tour-intro-foot strong {
    color: rgb(var(--gray-300));
}

.dark .filament-driver-tour-intro-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.dark .filament-driver-tour-intro-card__label {
    color: #fff;
}

.dark .filament-driver-tour-title__icon {
    color: rgb(var(--primary-400));
}

.dark .filament-driver-tour-intro-card__hint {
    color: rgb(var(--gray-400));
}

.dark .filament-driver-tour-welcome__hello {
    color: #fff;
}

.dark .filament-driver-tour-welcome__subtitle {
    color: rgb(var(--gray-400));
}
