@media (min-width: 2000px) {
    .container-3xl {
        max-width: calc(2000px - 1.7%)
    }
}

@media (min-width: 2400px) {
    .container-4xl {
        max-width: calc(2400px - 1.7%)
    }
}

input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: searchfield-cancel-button;
}

textarea {
    field-sizing: content;
}

.popover-container {
    font-family: "IBM Plex Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #fff;
    background-color: #252831;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-height: 80%;
    max-width: 90%;
    min-width: 50%;
    overflow-y: auto;
}

.popover-container:popover-open::backdrop {
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.popover-container:popover-open {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

body:has(.popover-container:popover-open) > *:not(.popover-container) {
    pointer-events: none;
}

body:has(.popover-container:popover-open) .popover-container {
    pointer-events: auto;
}

.popover-container::backdrop {
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.5em;
    transition: transform 0.3s;
    font-size: 0.8em;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details summary.display-flex::before {
    display: flex;
    align-items: center;
    margin-right: 0.5em;
    flex-shrink: 0;
}

details.collapsible.closed summary::before {
    transform: rotate(0deg);
}

details.collapsible.closed[open] summary::before {
    transform: rotate(90deg);
}

#main, #main > * {
    border-radius: 12px !important;
    overflow: hidden !important;
}

#main svg {
    border-radius: 12px !important;
}

.custom-apexchart-tooltip {
    background-color: #000000 !important;
    border: 1px solid #333333 !important;
    box-shadow: none !important;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.spinner > div {
    background-color: #d1d1d1;
    height: 100%;
    width: 6px;
    display: inline-block;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.spinner .rect5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

.tooltip .text {
    z-index: 2000;
    white-space: nowrap;
}

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4)
    }
    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

.run-test-summary {
    gap: 0.5rem;
    align-items: center;
}

.run-test-summary .run-test-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 0.85rem !important;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.run-test-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.run-test-actions > * {
    flex-shrink: 0;
}

.run-test-runtime {
    white-space: nowrap;
    min-width: 7.5rem;
    display: inline-flex;
    justify-content: center;
}

.fitnesse-asset__link {
    display: inline-block;
    line-height: 0;
}

.fitnesse-asset__image {
    max-width: min(100%, 400px);
    width: auto;
    height: auto;
    cursor: zoom-in;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

@media (max-width: 768px) {
    .run-test-summary {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .run-test-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}
