@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    /*No idea why but mudblazor removed this from root for some reason*/
    --mud-palette-border-opacity: 1;
}

/* ----------------------------------- */
/* Typography                          */
/* ----------------------------------- */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%; 
    width: 100%; 
}

h5 {
    color: var(--mud-palette-text-primary) !important;
}

.packageVersionStyle {
    font-family: Courier;
}

div b {
    font-size: 20px;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 0.25rem;
    column-gap: 0.5rem;
    margin-bottom: 0px;
}

dt, dd {
    margin: 0;
    padding: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0; 
}

dt {
    font-weight: 500;
}

dd {
    font-weight: 600;
}

/* ----------------------------------- */
/* Utilities                           */
/* ----------------------------------- */
td.nowrap {
    white-space: nowrap !important;
}


/* ----------------------------------- */
/* Layout & Structure                  */
/* ----------------------------------- */
.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.full-view-height {
    height: 100vh;
    overflow: hidden;
}

.flex-grow-shrink {
    flex: 1 1 100% !important;
}

.flex-grow-1-shrink-0 {
    flex: 1 0 auto !important;
}

.sub-header-height {
    height: 56px;
}

/* ----------------------------------- */
/* Theming                             */
/* ----------------------------------- */
    .mud-theme-text-primary {
    color: var(--mud-palette-text-primary) !important;
}

.mud-theme-secondary * {
    color: inherit !important; /*must use important because mudblazor is using important*/
}

.mud-theme-background {
    background-color: var(--mud-palette-background);
}

.mud-theme-drawer-background {
    background-color: var(--mud-palette-drawer-background);
}


/* ----------------------------------- */
/* Elevation                           */
/* ----------------------------------- */
.mud-alert,
.mud-card,
.mud-paper,
.mud-table,
.mud-tabs {
    box-shadow: var(--mud-elevation-4);
}


/* ----------------------------------- */
/* Printing                            */
/* ----------------------------------- */
.printOnlyTable {
    display: none !important;
}

@media screen {

    .printOnly {
        /* Must set width/height to 0 to retain table data in the DOM */
        visibility: hidden;
        height: 0px;
        width: 0px;
    }

        .printOnly strong {
            display: none !important;
        }
}


/* ----------------------------------- */
/* Tooltips & Tooltip ChildContent     */
/* ----------------------------------- */
.tooltipStyle {
    padding: 8px 16px;
}

.mud-tooltip-root > .mud-typography {
    width: 100%;
    max-width: 100px;
    font-size: .875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltip-content-width {
    max-width: 400px;
}


/* ----------------------------------- */
/* Status Chips                        */
/* ----------------------------------- */
.mud-chip-width-sm {
    width: 125px;
}

.mud-chip-width-lg {
    width: 175px;
}


/* ----------------------------------- */
/* Blazor Error UI                     */
/* ----------------------------------- */
#blazor-error-ui {
    bottom: unset;
    box-shadow: unset;
    display: none;
    left: unset;
    padding: unset;
    position: unset;
    width: unset;
    z-index: unset;
}

#blazor-error-ui .dismiss {
    position: unset;
    right: unset;
    top: unset;
}


/* ----------------------------------- */
/* Keyframes                           */
/* ----------------------------------- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* ----------------------------------- */
/* Loaders & Spinners                  */
/* ----------------------------------- */
.loader {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #303557;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner-wrapper {
    text-align: center;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #303557;
    border-radius: 50%;
    width: 144px;
    height: 144px;
    animation: spin 2s linear infinite;
}

.mud-table-loading {
    position: absolute;
}


/* ----------------------------------- */
/* Steppers                            */
/* ----------------------------------- */
.mud-stepper .mud-stepper-nav .mud-step {
    padding-top: 0px;
}


/* ----------------------------------- */
/* Logos                               */
/* ----------------------------------- */
.sidebarlogo {
    margin-bottom: 8px;
    margin-left: 8px;
    height: 84px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.logo {
    margin-bottom: 36px;
    width: 67px;
    height: 84px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* ----------------------------------- */
/* Dialogs                             */
/* ----------------------------------- */
.mud-dialog .mud-dialog-title {
    padding: 1rem 1rem 0.5rem 1rem;
}

.mud-dialog > .outline-none {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    overflow: hidden;
}

.mud-dialog .outline-none > :not(.fixed) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mud-dialog .outline-none .mud-dialog-actions {
    gap: 1rem;
    padding: 0.5rem 1rem 1rem 1rem;
    flex-direction: row;
}

.mud-dialog .mud-dialog-content {
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    overflow: hidden;
}


/* ----------------------------------- */
/* Navigation Links & Menu Styles      */
/* ----------------------------------- */
.mud-navmenu {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mud-nav-link {
    color: var(--mud-palette-text-secondary);
    border-radius: 26px !important;
    white-space: nowrap;
    text-decoration: unset !important;
}

.mud-nav-link .mud-nav-link-text {
    margin-left: unset;
    color: var(--mud-palette-drawer-text);
}

@media (max-width: 1200px) {
    .mud-nav-link .mud-nav-link-text {
        display: none;
    }
}

.mud-theme-secondary .mud-nav-link {
    border-radius: 20px;
}

.mud-navmenu .mud-icon-root {
    margin-right: 0.5rem;
    width: 2rem;
    text-align: center;
}

.profile-menu-alignment p {
    margin-left: -8px;
}

.navComponent .mud-nav-item .mud-nav-link .mud-nav-link-text {
    display: flex;
}

.navComponentCollapsed .mud-nav-item .mud-nav-link .mud-nav-link-text {
    display: none;
}

#navMenu:hover .navComponentCollapsed .mud-nav-item .mud-nav-link .mud-nav-link-text {
    display: flex !important;
}


/* ----------------------------------- */
/* Forms & Inputs                      */
/* ----------------------------------- */
.mud-form {
    overflow-y: auto;
    overflow-x: hidden;
}

.mud-input {
    color: var(--mud-palette-text-primary);
}

.prize-office-select {
    padding: 8px 16px;
    min-width: 200px;
    max-width: 200px;
}

.mud-input-helper-text {
    color: var(--mud-palette-error) !important;
}

.mud-input-label-outlined {
    background-color: var(--mud-palette-background);
}

.rounded-select .mud-select {
    flex-grow: 0;
}

.mud-text-field-label label {
    color: var(--mud-palette-text-primary) !important;
}

.rounded-select .mud-input.mud-input-outlined .mud-input-outlined-border,
.rounded-input .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 20px;
    height: 40px;
    top: 8px;
}

.rounded-select .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.rounded-select .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.rounded-input .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.rounded-input .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(14px,2px) scale(.75);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    color: var(--mud-palette-text-primary);
}

.mud-input-control.mud-input-outlined-with-label {
    margin-top: 0px;
    margin-bottom: 0px;
}


/* ----------------------------------- */
/* Button & Link States                */
/* ----------------------------------- */
.active-link {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-contrast-text);
    border-radius: 26px;
}

.mud-nav-link:hover {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-text-primary);
}

.mud-theme-secondary .mud-nav-link:hover {

    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary) !important;
    border-radius: 26px !important;
}

.mud-button-root:disabled 
{
    color: var(--mud-palette-action-disabled) !important;
    cursor: default;
    pointer-events: none;
}

.mud-link.mud-link-underline-hover:hover,
.mud-link.mud-link-underline-hover:focus-visible {
    text-decoration: none;
}


/* ----------------------------------- */
/* Cards                               */
/* ----------------------------------- */
.mud-grid .mud-card {
    height: 200px;
    border-radius: 8px;
    width: 100%;
}


/* ----------------------------------- */
/* Papers                              */
/* ----------------------------------- */
.mud-paper {
    margin: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.mud-popover-provider .mud-paper {
    margin: unset !important;
    padding: unset !important;
}


/* ----------------------------------- */
/* Tabs                                */
/* ----------------------------------- */
.mud-tabs-panels {
    overflow: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mud-tabs-panels > .mud-tab-panel {
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

.mud-tabs.mud-tabs-rounded .mud-tabs-tabbar {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    color: var(--mud-palette-text-primary);
}

.mud-tabs.mud-tabs-rounded .mud-tabs-panels {
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}


/* ----------------------------------- */
/* Table in Tab                        */
/* ----------------------------------- */
.tab-table-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.tab-table-layout .tab-controls {
    flex: 0 0 auto;
}

.tab-table-layout .table-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-table-layout .table-area .mud-table-container {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
}


/* ----------------------------------- */
/* Tables                              */
/* ----------------------------------- */
/* General Table Styles */
.mud-table-container {
    height: 100%;
    border-bottom-left-radius: var(--mud-default-borderradius);
    border-bottom-right-radius: var(--mud-default-borderradius);
}

.mud-dialog-content .mud-table,
.mud-paper .mud-table,
.mud-tabs .mud-table {
    box-shadow: var(--mud-elevation-0);
    border-radius: 0px;
    overflow: auto;
    height: 100%;
    width: 100%;
}

.details .mud-table-row:hover {
    cursor: pointer;
}

/* Table Header & Footer */
.mud-table-root .mud-table-head {
    border-bottom: solid var(--mud-palette-drawer-background) 1px;
    font-weight: bold;
    white-space: nowrap;
}

.mud-table-root .mud-table-foot {
    border-top: solid var(--mud-palette-drawer-background) 1px;
    font-weight: bold;
    white-space: nowrap;
}

/* Table Row & Cells */
.mud-table-body .mud-table-row {
    background-color: var(--mud-palette-background);
    height: 64px;
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: bold;
    border-bottom: solid var(--mud-palette-drawer-background) 1px;
    white-space: nowrap;
}

.mud-table-root .mud-table-foot .mud-table-cell {
    font-weight: bold;
}

.mud-table-root .mud-table-body .mud-table-row.red-row .mud-table-cell {
    color: var(--mud-palette-error);
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell:first-child {
    border-radius: 0px;
}

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell:last-child {
    border-radius: 0px;
}

.mud-stepper .mud-stepper-nav .mud-step .mud-step-label .mud-step-label-content {
    color: var(--mud-palette-text-primary);
}


/* MudNumeric or Input typed numeric fields */
/* Chrome, Safari, Edge, Opera */
.no-spin input::-webkit-outer-spin-button,
.no-spin input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spin input[type="number"] {
    -moz-appearance: textfield;
}

/* ----------------------------------- */
/* Status Timelines                           */
/* ----------------------------------- */

@media screen {
    .redDotStyle .mud-timeline-item-dot .mud-timeline-item-dot-inner.mud-timeline-dot-fill {
        background-color: #E20C1E;
        box-shadow: var(--mud-elevation-4);
    }

    .greenDotStyle .mud-timeline-item-dot .mud-timeline-item-dot-inner.mud-timeline-dot-fill {
        background-color: #57C14C;
        box-shadow: var(--mud-elevation-4);
    }

    .whiteDotStyle .mud-timeline-item-dot .mud-timeline-item-dot-inner.mud-timeline-dot-fill {
        background-color: #FFFFFF;
        box-shadow: var(--mud-elevation-4);
    }
}

.dot-text {
    color: black;
    font-size: 20px;
}

.mud-timeline-vertical {
    padding-top: 8px;
    padding-bottom: 10px;
}

     .mud-timeline-vertical .mud-timeline-item {
        padding-left: 5px;
        padding-bottom: 0px;
        min-height: 48px;
    }

     .mud-timeline-vertical.mud-timeline-position-alternate::before {
        left: 24px;
    }

     .mud-timeline-vertical .mud-timeline-item .mud-timeline-item-divider {
        min-width: 40px;
    }

     .mud-timeline-vertical .mud-timeline-item .mud-timeline-item-content {
        max-width: 104px;
        white-space: break-spaces;
        display: flex;
        align-items: center
    }

 .mud-timeline-horizontal .mud-timeline-item .mud-timeline-item-divider {
    min-height: unset !important;
}

 .mud-timeline-horizontal.mud-timeline-position-top .mud-timeline-item-content {
    padding-top: 8px;
    max-height: unset;
}

/* ----------------------------------- */
/* Draw  and Pool Details              */
/* ----------------------------------- */
.labelText {
    white-space: nowrap;
}

    .labelText div {
        width: 14rem;
    }

 p.mud-typography.mud-typography-body1.packageVersionStyle {
    max-width: 100%;
}

 .prizeName-fixed-width{
     max-width: 160px !important;
     padding-right: 0 !important;
 }

.prizeName-tooltip-width {
    max-width: 160px !important;
}

.prizeName-fixed-width > .mud-tooltip-root {
    max-width: 100%;
}

.prizeName-fixed-width > .mud-tooltip-root > .prizeName-gameName {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------------- */
/* Filter Forms                        */
/* ----------------------------------- */
.filter-mud-divider {
    width: unset !important;
    border-color: initial;
}

.print-table-container {
    display: none;
}