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

@media (max-width: 600px) {
    .responsive-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}


@media (min-width: 960px) {
    .logo-md {
        max-width: 200px;
    }
}

/* Mobile header fade */
.mobile-header {
    position: sticky;
    top: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

    .mobile-header.hidden {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none; /* Prevent interactions when hidden */
    }
  
/*
    CONTEXT MENUS
*/

/* Optional: Add custom styles for extra refinement */
::deep .mud-menu-item {
    padding: 8px 16px;
    min-height: 40px;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

    ::deep .mud-menu-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

    ::deep .mud-menu-item .mud-icon-root {
        font-size: 1.25rem;
    }

::deep .mud-divider {
    margin: 4px 0;
}

/* Desktop: disable behavior */
@media (min-width: 960px) {
    .mobile-header {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

.hide-on-mobile {
    font-size: clamp(12px, 3vw, 16px) !important;
}

/* Add a span around the version for this to work */
.mud-typography-h6 .hide-on-mobile {
    display: inline !important;
}

@media (max-width: 640px) {
    .mud-typography-h6 .hide-on-mobile {
        display: none !important; /* Hide version on mobile */
    }
}

/*Loading animation*/
/* HTML: <div class="loader"></div> */
.loader {
    width: fit-content;
   /* font-weight: bold;
    font-family: sans-serif;
    font-size: 30px;*/
    /*padding-bottom: 8px;*/
    background: linear-gradient(currentColor 0 0) 0 100%/0% 3px no-repeat;
    animation: l2 2s linear infinite;
}

   /* .loader:before {
        content: "Loading..."
    }*/

@keyframes l2 {
    to {
        background-size: 100% 3px
    }
}
/*end loading animation*/

/*MudFab activity animation*/
/* HTML: <div class="loader"></div> */
.fabloader {
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    display: inline-flex;
    animation: l27 2s infinite 1s;
}

        /*.loader::before {*/
            /*content: "Loadi";*/
            /*animation: l27 2s infinite;
        }

        .loader::after {*/
            /*content: "ng...";*/
            /*animation: l27 2s infinite 1s;
        }*/

    @keyframes l27 {
        50%,100% {
            transform: rotate(1turn)
        }
    }
    /*Override Mud Input    */
.mud-input {
    /*line-height:10px !important;*/
}

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

::deep .invoice-dialog .mud-dialog-container {
    width: 1080px;
    max-width: 95vw; /* Responsive on smaller screens */
}

.content-fullwidth {
    width: 100%;
    max-width: 100%; /* prevents MudBlazor from shrinking content */
    display: flex;
    flex-direction: column;
}

h1:focus {
    outline: none;
}

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

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

.scrollLink {
    scroll-margin-top: 100px; /* height of your menu */
    position: relative;
    top: -150px;
}

.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 #258cfb;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub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Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.app-container a.active {
    font-weight: bold;
    color: #1d4ed8; /* blue-700 */
    border-bottom: 2px solid #1d4ed8;
}



.twelve h1 {
    font-size: clamp(14px, 4vw, 20px); /* Scales between 14px-20px */
    font-weight: 700;
    letter-spacing: clamp(0.5px, 0.1vw, 1px); /* Reduces letter-spacing on mobile */
    text-transform: uppercase;
    max-width: 600px; /* Changed from fixed width */
    width: 90%; /* Allows it to shrink on mobile */
    text-align: center;
    margin: auto;
    white-space: normal; /* Allow wrapping on mobile */
    padding-bottom: 13px;
    animation: slideInFadeH1 2s ease-in-out;
    
}

    .twelve h1:before {
        background-color: #c50000;
        content: '';
        display: block;
        height: 3px;
        width: min(75px, 20%); /* Scales down on mobile */
        margin-bottom: 5px;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(-40%); /* Centers relative positioning */
        animation: slideInFadeBefore 5s ease-in-out;
    }

    .twelve h1:after {
        background-color: #c50000;
        content: '';
        display: block;
        height: 3px;
        width: min(75px, 20%); /* Scales down on mobile */
        margin-top: 3px;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(40%); /* Centers relative positioning */
        animation: slideInFadeAfter 5s ease-in-out;
    }

@keyframes subtleSwayBefore {
    0%, 100% {
        transform: translateX(-40%);
    }

    25% {
        transform: translateX(-30%);
    }

    75% {
        transform: translateX(-50%);
    }
}
    @keyframes subtleSwayAfter {
    0%, 100% {
        transform: translateX(40%);
    }

    25% {
        transform: translateX(30%);
    }

    75% {
        transform: translateX(50%);
    }
}

@keyframes slideInFadeBefore {
    0% {
        opacity: 0;
        transform: translateX(20%);
    }

    100% {
        opacity: 1;
        transform: translateX(-40%);
    }
}

@keyframes slideInFadeAfter {
    0% {
        opacity: 0;
        transform: translateX(-20%);
    }

    100% {
        opacity: 1;
        transform: translateX(40%);
    }
}

@keyframes slideInFadeH1 {
    0% {
        opacity: 0.1;
        
    }

    100% {
        opacity: 1;
       
    }
}