@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.e-control-wrapper.conversion .e-textbox {
    text-transform: uppercase;
    box-shadow: none
}
.e-control-wrapper.centeredText .e-textbox {
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
}

.e-control-wrapper.ejectorQrns .e-textbox {
    text-align: center;
    width:150px;
    text-transform: uppercase;
    box-shadow: none;
}
.e-control-wrapper.font .e-textbox {
    height: 28px;
    background-color: #fdff8f !important;
    padding-top: 2px;
    font-size: 30px;
    box-shadow: none;
    padding-left:2px;
}
/* Apply to both SfTextBox & SfNumericTextBox */
.e-control-wrapper.toolLineInput {
    height: 52px !important;
    display: flex !important;
    align-items: center !important; /* centers input inside */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 1px !important;
    margin-bottom: 1px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

    /* Force input to fill wrapper */
    .e-control-wrapper.toolLineInput input.e-input {
        height: 100% !important;
        line-height: normal !important; /* avoids double vertical alignment */
        margin: 0 !important;
        padding: 0 6px !important;
        box-sizing: border-box !important;
    }
    .e-control-wrapper.toolLineInput textarea.e-input {
        height: 100% !important;
        margin: 0 !important;
        padding: 14px 6px !important; /* vertical padding keeps placeholder centered */
        line-height: 1.4em !important; /* keeps multiple lines readable */
        resize: none; /* optional: prevents resize handle */
        box-sizing: border-box !important;
    }
    /* Ensure input text is vertically centered */
    .e-control-wrapper.toolLineInput input.e-input,
    .e-control-wrapper.toolLineInput .e-input-group input.e-input {
        display: flex !important;
        align-items: center !important;
        text-align: center; /* optional: centers text horizontally */
    }


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
        z-index: 999;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 1;
    position: absolute;
    width: 25rem;
    top: 2rem;
    border-radius: 1rem;
    left: 50%;
}

.toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

    .toast-body p {
        margin-bottom: 0;
    }

.toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein .5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mandatory {
    background-color: #fdff8f !important;
}

.auto-filled {
    background-color: #A8E0FF !important;
}

@media print {
    .sidebar, .top-row {
        display: none;
    }

    div {
        page-break-inside: avoid;
    }

    button {
        display: none;
    }

    .no-print {
        display: none;
    }

    .no-avoid {
        page-break-inside: auto;
    }
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 1.5em;
    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;
    }

.e-float-input input:focus ~ label.e-float-text, .e-float-input input:valid ~ label.e-float-text, .e-float-input input ~ label.e-label-top.e-float-text,
.e-float-input input[readonly] ~ label.e-label-top.e-float-text, .e-float-input input[disabled] ~ label.e-label-top.e-float-text, .e-float-input input label.e-float-text.e-label-top,
.e-float-input.e-control-wrapper input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper input[readonly] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper input[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper input label.e-float-text.e-label-top,
.e-float-input.e-control-wrapper.e-input-focus input ~ label.e-float-text, .e-float-input.e-input-focus input ~ label.e-float-text, .e-float-input textarea:focus ~ label.e-float-text,
.e-float-input textarea:valid ~ label.e-float-text, .e-float-input textarea ~ label.e-label-top.e-float-text, .e-float-input textarea[readonly] ~ label.e-label-top.e-float-text,
.e-float-input textarea[disabled] ~ label.e-label-top.e-float-text, .e-float-input textarea label.e-float-text.e-label-top, .e-float-input.e-control-wrapper textarea:focus ~ label.e-float-text,
.e-float-input.e-control-wrapper textarea:valid ~ label.e-float-text, .e-float-input.e-control-wrapper textarea ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper textarea[readonly] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper textarea[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper textarea label.e-float-text.e-label-top {
    font-size: 1.125rem !important;
    font-weight: bold;
}

.label-font {
    font-size: 1.125rem !important;
    font-weight: bold;
}

.spinner {
    border: 22px solid lightgrey;
    border-top: 22px solid #e60000;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    animation: spin 700ms linear infinite;
    margin-top: 15%;
    left: 50%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

h1,h4,h6,h5,h3{
    text-align:center;
    font-weight:bold;
}

.arrow_style {
    color: black;
}

.arrow_style:hover {
    color: dodgerblue;
    cursor: pointer;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: 140px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 9999; /* Increased z-index */
        bottom: 100%; /* Changed from 125% */
        left: 50%;
        margin-left: -70px;
        margin-bottom: 8px; /* Added space between button and tooltip */
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
        pointer-events: none; /* Prevents tooltip from interfering with mouse events */
    }

        .tooltip-container .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* Arrow at bottom of tooltip */
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
