@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--bs-warning-rgb);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNz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iA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



label {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
}


.form-check-input:checked {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #D9D9D9 #EBEBEB;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

*::-webkit-scrollbar-track {
    border-radius: 0px;
    background-color: transparent;
}

/* Tableau View Card Height Classes */
.card-fullscreen {
    height: 100vh !important;
}

.card-embedded {
    height: calc(100vh - 2.5rem) !important;
}

.card-normal {
    height: calc(100vh - 9rem) !important;
}


    *::-webkit-scrollbar-track:hover {
        background-color: transparent;
    }

    *::-webkit-scrollbar-track:active {
        background-color: transparent;
    }

*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #D9D9D9;
}

    *::-webkit-scrollbar-thumb:hover {
        background-color: #A3A3A3;
    }

    *::-webkit-scrollbar-thumb:active {
        background-color: #8A8A8A;
    }



.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


.sidebar-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.blazor-error-ui {
    display: none !important;
}

/* Comprehensive Blazor reconnection UI suppression for issue #1010 */
/* Hide all Blazor reconnection elements */
#components-reconnect-modal,
.components-reconnect-modal,
#components-reconnect-show,
.components-reconnect-show,
#blazor-reconnect-ui,
.blazor-reconnect-ui,
.blazor-server-reconnect,
#blazor-server-reconnect,
.components-reconnect-failed,
#components-reconnect-failed,
.components-reconnect-rejected,
#components-reconnect-rejected {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Additional mobile-specific hiding for Apple devices */
@media screen and (max-width: 768px) {
    /* Extra specificity for mobile devices */
    [id*="reconnect"],
    [class*="reconnect"],
    [id*="blazor"][id*="error"],
    [class*="blazor"][class*="error"],
    [data-blazor*="reconnect"] {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
    }
}

/* iOS Safari specific hiding */
@supports (-webkit-touch-callout: none) {
    /* This targets iOS Safari specifically */
    #blazor-error-ui,
    .blazor-error-ui,
    #components-reconnect-modal,
    .components-reconnect-modal,
    #components-reconnect-show,
    .components-reconnect-show,
    [data-blazor*="reconnect"],
    [aria-label*="reconnect" i],
    [title*="reconnect" i] {
        display: none !important;
        visibility: hidden !important;
        position: fixed !important;
        left: -10000px !important;
        top: -10000px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        z-index: -9999 !important;
    }
}

/* Off-page div solution as suggested in the issue */
.blazor-reconnect-offpage {
    position: absolute !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar collapse/expand styles */
.sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: width 0.7s, min-width 0.7s, max-width 0.7s, padding 0.7s;
}

.page.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: width 0.7s, min-width 0.7s, max-width 0.7s, padding 0.7s;
}

.page.sidebar-collapsed main {
    margin-left: 0 !important;
    width: 100% !important;
    transition: margin-left 0.7s, width 0.7s;
}

.tableau-responsive {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* Mobile Navbar Styles */
.mobile-navbar {
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--bs-primary) !important;
    color: var(--bs-light) !important;
    border-bottom: 1px solid #d6d5d5;
}

.mobile-navbar .navbar-brand {
    max-width: 200px;
}

.mobile-navbar .navbar-brand img {
    max-height: 40px;
    width: auto;
}

.mobile-toolbar {
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1025;
}

.mobile-toolbar .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Mobile Navbar Button Styles */
.mobile-navbar .offcanvas-body .btn {
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

/* Individual Tableau Toolbar Buttons */
.mobile-navbar .offcanvas-body .d-grid .btn {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.mobile-navbar .offcanvas-body .btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.mobile-navbar .offcanvas-body .btn i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Mobile Navbar Spacing */
.mobile-navbar .offcanvas-body {
    padding: 1.5rem;
}

.mobile-navbar .offcanvas-body .navbar-nav {
    margin-bottom: 1rem;
}

.mobile-navbar .offcanvas-body .nav-item {
    margin-bottom: 0.5rem;
}

.mobile-navbar .offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

/* Tableau Tools Section Spacing */
.mobile-navbar .offcanvas-body .border-top {
    margin-top: 2rem;
    padding-top: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.mobile-navbar .offcanvas-body .text-center.mb-2 {
    margin-bottom: 1rem !important;
}

.mobile-navbar .offcanvas-body .d-grid.gap-2 {
    gap: 0.5rem !important;
}

/* User Info Section Spacing */
.mobile-navbar .offcanvas-body .mt-auto {
    margin-top: 2rem !important;
    padding-top: 1.5rem;
}

/* Mobile Offcanvas Styles */
.mobile-navbar .offcanvas {
    max-width: 280px;
    background-color: var(--bs-primary) !important;
    color: var(--bs-light) !important;
}

.mobile-navbar .offcanvas-header {
    padding: 1rem;
}

.mobile-navbar .offcanvas-body {
    padding: 0;
}

.mobile-navbar .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-navbar .nav-link {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.mobile-navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-navbar .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: #fff !important;
}

/* Mobile Content Adjustments */
@media (max-width: 991.98px) {
    .page {
        margin-left: 0 !important;
    }
    
    .main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .content {
        padding-top: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Hide sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Adjust content for mobile navbar */
    .content {
        margin-top: 0;
    }
    
    /* Improve mobile table responsiveness */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile button improvements */
    .btn {
        min-height: 44px; /* Better touch targets */
    }
    
    /* Mobile form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .card-normal {
        height: calc(100vh - 6rem) !important;
    }
}

/* Fix for dropdown visibility in table-responsive containers */
.table-responsive .dropdown-menu {
    position: absolute !important;
    z-index: 1050;
}

/* Ensure table-responsive containers don't clip dropdowns */
.table-responsive {
    overflow: visible !important;
}

/* Only apply horizontal scroll when actually needed for table width */
.table-responsive table {
    min-width: 100%;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}
