@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Arial', Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    /* Match examples layout so the root fills the viewport vertically */
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: var(--bs-secondary-color, var(--DS-color-content-neutral-default-rest));
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    -webkit-mask-position: center center;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}

/* Copied from examples/css/site.css for consistent logo behavior */
.logo {
    text-align: center;
    max-width: 100%;
    height: auto;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* DevExpress DxTabs - Active tab styling to make it "pop" */
.event-tabs .dxbl-tabs-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0 0.5rem;
}

/* Custom tab template styling */
.active-tab, .inactive-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.tab-icon {
    font-size: 1rem;
}

/* Active tab - make it POP with light blue background, dark text, shadow, elevation */
.active-tab {
    background: linear-gradient(135deg, #87CEEB 0%, #6bb8db 100%) !important;
    color: #1a3a4a !important;
    font-weight: 600 !important;
    box-shadow: 0 -4px 12px rgba(135, 206, 235, 0.5), 0 2px 4px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
    border: 2px solid #87CEEB !important;
    border-bottom: none !important;
    position: relative;
    z-index: 1;
}

.active-tab .tab-icon {
    color: #1a3a4a !important;
}

/* Inactive tabs - subtle gray */
.inactive-tab {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    font-weight: normal !important;
    border: 1px solid transparent !important;
}

.inactive-tab:hover {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
    transform: translateY(-1px);
}

.inactive-tab .tab-icon {
    color: #6c757d !important;
}

.inactive-tab:hover .tab-icon {
    color: #0d6efd !important;
}

/* ──────────────────────────────────────────────────────────────
   Sort-hint icon for report grids (EventReports).
   DxGrid shows no visual cue that columns are sortable until the user
   clicks.  This adds a subtle ↕ arrow to the left of each header caption
   so users know sorting is available.
   Global CSS is required because Blazor scoped ::deep cannot reach
   into DevExpress grid's internally-rendered header cells.
   ────────────────────────────────────────────────────────────── */
.event-reports-container .dxbl-grid-header-content {
    display: inline-flex;
    align-items: center;
}

.event-reports-container .dxbl-grid-header-content::after {
    content: "\2195"; /* unicode UP DOWN ARROW ↕ */
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    margin-right: 6px;
    font-size: 1em;
    opacity: 0.45;
    pointer-events: none;
    flex-shrink: 0;
    order: 5;
}

/* Push the filter menu button to the far right, after the sort hint. */
.event-reports-container .dxbl-grid-header-content > [class*="menu"] {
    order: 10 !important;
}

/* Hide the hint once the user sorts a column (DxGrid adds a sort-glyph element). */
.event-reports-container .dxbl-grid-header-content:has(.dxbl-grid-sort-glyph)::after {
    display: none;
}

/* Also hide via aria-sort if the theme sets it on the <th>. */
.event-reports-container th[aria-sort] .dxbl-grid-header-content::after {
    display: none;
}

/* Numeric filter-row: shared borderless editor + operator selector */
.numeric-filter-editor {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.numeric-operator-select {
    width: 1.15rem;
    min-width: 1.15rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1;
    text-align: center;
    text-align-last: center;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.numeric-operator-select:focus {
    outline: none;
    color: #0d6efd;
}

.numeric-operator-select option {
    text-align: center;
}

.numeric-filter-text,
.numeric-filter-text.dxbl-text-edit {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    background-color: transparent !important;
    outline: none !important;
}

.numeric-filter-text .dxbl-input,
.numeric-filter-text input.numeric-filter-input {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.numeric-filter-text:focus-within,
.numeric-filter-text.dxbl-text-edit:focus-within {
    border: 1px solid #86b7fe !important;
}
