/* Hide any web components that haven't been */
body {
    overflow-x: hidden;
}

:not(:defined),
.before-upgrade {
    visibility: hidden;
}

fluent-toolbar[orientation=horizontal] {
    width: 100%;
}

fluent-data-grid {
    width: 100%;
}

.validation-message {
    color: var(--error);
}

.validation-message::before {
    color: var(--error);;
    position: relative;
    content: "!";
    font-weight: 700;
    padding: 0 5px;
}

fluent-select.ignore-min-width {
    min-width: unset !important;
}

fluent-text-field.block, fluent-search.block, fluent-button.block, fluent-select.block, fluent-number-field.block, fluent-combobox.block, fluent-anchor.block, span.block, span.block > fluent-button, fluent-text-area.block {
    width: 100%;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    background: #aaaaaa;
    border-radius: 7.5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b6b6b;
}

fluent-card.overflow-visible {
    content-visibility: inherit;
    contain: inherit;
}

.hidden {
    display: none !important;
}

.h-100-percent{
    height: 100% !important;
}

.w-100-percent{
    width: 100% !important;
}

.w-50-percent{
    width: 50% !important;
}

.wh-100-percent{
    height: 100%;
    width: 100%;
}

.mw-100-percent{
    max-width: 100%;
}

.mw-125{
    max-width: 125px;
}

.center-vertical{
    align-items: center;
    display: flex;
}

.mt-5 {
    margin-top: 5px;
}

.mb-5 {
    margin-bottom: 50px;
}

.p-12 {
    padding: 12px;
}

.border-none{
    border: none !important;
}

.align-center {
    display: flex !important;
    align-items: center !important;
}

.fluent-overlay {
    z-index: 9996 !important;
}

fluent-tabs::part(tabpanel) {
    min-width: 100%;
}

fluent-tabs {
    row-gap: 4px;
}

fluent-tab {
    gap: 4px;
}

fluent-tabs[orientation="vertical"]::part(activeIndicator) {
    margin-inline-start: calc(var(--focus-stroke-width) * .5px);
}

pre {
    margin: 0;
}

.gradient-text-accent {
    color: transparent !important;
    background-clip: text;
    background-image: linear-gradient(to right, var(--neutral-foreground-rest), var(--accent-fill-rest));
}
/* Limit dropdown height and add scroll */
fluent-select::part(listbox),
fluent-combobox::part(listbox) {
    max-height: 350px; /* Adjust this value as needed */
    overflow-y: auto;
}
