﻿:root {
    --litigen-color-primary: #4BB1E4;
    --litigen-color-primary-light: #92dbff;
    --litigen-color-secondary: #F47920;
    --litigen-color-secondary-light: #ffba89;
}

#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;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.ltg-bg-primary {
    background-color: var(--litigen-color-primary) !important;
}

.ltg-bg-secondary {
    background-color: var(--litigen-color-secondary) !important;
}

.ltg-text-primary {
    color: var(--litigen-color-primary) !important;
}

.ltg-text-secondary {
    color: var(--litigen-color-secondary) !important;
}

.ltg-border-primary {
    border-color: var(--litigen-color-primary) !important;
}

.ltg-border-secondary {
    border-color: var(--litigen-color-secondary) !important;
}

.ltg-btn-primary {
    background-color: var(--litigen-color-primary) !important;
}

.ltg-btn-primary:hover {
    background-color: var(--litigen-color-primary-light) !important;
}

.ltg-btn-secondary {
    background-color: var(--litigen-color-secondary) !important;
}

.ltg-btn-secondary:hover {
    background-color: var(--litigen-color-secondary-light) !important;
}

.ltg-btn-transparent {
    background-color: transparent !important;
}

.ltg-btn-transparent:hover {
    background-color: #555555 !important;
}

.ltg-custom-modal {
    padding: 1em;
    width: 66%;
    margin: auto;
    z-index: 999999
}

.pdfPageThumbnailContainer:hover {
    border: 3px solid grey !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

input[type=range] {
    accent-color: white;
}

.left-scroll-panel::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4) !important; /* Replace with desired highlight */
    border-radius: 6px !important; /* Optional: soften edges like the native one */
}
.left-scroll-panel::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
}


@media print {
    @page {
    }

    html {
        width: auto !important;
        height: auto !important;
        background-color: white !important;
    }

    body {
        width: auto !important;
        height: auto !important;
        background-color: white !important;
    }

    #app {
        background-color: white !important;
        width: auto !important;
        height: auto !important;
    }

    .pdfViewer .toolbar {
        display: none !important;
    }

    .pdfViewer .sidebar {
        display: none !important;
    }

    .pdfViewer viewMain {
        width: auto !important;
        height: auto !important;
    }

    .pdfViewer .pdfViewPanel {
        background-color: white !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .pdfViewer .pdfPageView {
        margin: 2px !important;
        min-width: 0 !important;
    }

    @media (max-aspect-ratio: 1.1/1) {
        .pdfViewer .pdfPageView {
            width: 7.5in !important;
            height: 10in !important;
        }

        .pdfViewer .pdfPageView img {
            width: 7.5in !important;
            height: 10in !important;
        }
    }

    @media (min-aspect-ratio: 1.1/1) {
        .pdfViewer .pdfPageView {
            width: 10in !important;
            height: 7.5in !important;
        }

        .pdfViewer .pdfPageView img {
            width: 10in !important;
            height: 7.5in !important;
        }
    }
}