
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/*preventts vertical scrollbar from showing*/
/*html {
    overflow-y: scroll;
}*/

 a, .btn-link {
    color: #0366d6;
}

.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;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

    .main .top-row > a, .main .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .main .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .k-dialog.k-alert .k-dialog-content,
    .k-dialog.k-confirm .k-dialog-content,
    .k-dialog.k-prompt .k-dialog-content {
        white-space: pre-line !important;
    }

    .sidebar {
        background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
        width: 3%;
        max-width: 4%;
    }

    .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;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

    .sidebar .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .sidebar .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .sidebar .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

    .sidebar .nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: white;
    }

    .sidebar .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;
}

#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;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@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;
    }
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 5em;
    width: 5em;
    margin: 0px auto;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
    border-left: 6px solid rgba(0,174,239,.15);
    border-right: 6px solid rgba(0,174,239,.15);
    border-bottom: 6px solid rgba(0,174,239,.15);
    border-top: 6px solid rgba(0,174,239,.8);
    border-radius: 100%;
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(359deg);
    }
}

@-moz-keyframes rotation {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(359deg);
    }
}

@-o-keyframes rotation {
    from {
        -o-transform: rotate(0deg);
    }

    to {
        -o-transform: rotate(359deg);
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.rightAlign {
    text-align: right;
    color: black;
}

.rightAlignBkDkYellow input,
.rightAlignBkDkYellow input:disabled {
    text-align: right;
    background: #dbc300;
    color: black;
    width: 100%;
    opacity : 1;
}

.rightAlignBkYellow .k-input-inner{
    text-align: right;
    background: lightyellow;
    color: black;
    width: 100%;
}

.rightAlignBkRed .k-input-inner{
    text-align: right;
    background: #A30000;
    color: white;
    width: 100%;
    opacity: 1;
}

.rightAlignBkGreen .k-input-inner{
    text-align: right;
    background: #008000;
    color: black;
    width: 100%;
    opacity: 1;
}

.rightAlignBkGreen .k-input-inner:disabled {
    text-align: right;
    background: #008000;
    color: black;
    width: 100%;
    opacity: 1;
}

.leftAlignBkYellow input {
    background: lightyellow;
    color: black;
    width: 100%;
}

.yellowBackground input {
    background: lightyellow;
    color: red;
}

.orangeBackground input {
    background: orange;
    color: black;
}

.redTextBackground {
    background: red;
    color: white;
}

.yellowTextBackground {
    background: lightyellow;
}


.redBackground input {
    background: red;
    color: white;
    background-color: red;
    display: inline-block;
}

.redTextBackground span {
    background: red;
    color: white;
    background-color: red;
    display: inline-block;
}

.col-1-4 {
    flex: 0 0 6%;
    max-width: 6%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-1-5 {
    flex: 0 0 10%;
    max-width: 10%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-2-5 {
    flex: 0 0 20.84%;
    max-width: 20.84%;
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 3px 1.5rem;
    font-weight: bold;
}

.combo-col-id {
    width: 0%;
}

.combo-col-codice {
    width: 22%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-truncated {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.combo-col-descrizione {
    width: 55%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.combo-col-descrizione-2 {
    width: 78%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.combo-col-30 {
    width: 30%;
}

.combo-col-umis {
    width: 4%;
    text-align: center;
}

.combo-col-prezzo {
    width: 12%;
    text-align: right;
}

.column45 {
    float: left;
    width: 40%;
}

.column55 {
    float: left;
    width: 60%;
}

.gridrow-10 {
    overflow: hidden;
    max-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    padding: 0;
}

.gridrow-12 {
    max-height: 12px;
    font-size: 12px;
    padding: 0;
}
.gridrow-14 {
    overflow: hidden;
    max-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    padding: 0;
}

.gridrow-h14 {
    overflow: hidden;
    max-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    padding: 0;
    background-color: #B4CCEE !important;
}

.underline-row td {
    border-top: 2px solid #1976d2 !important;
}

.underline-hrow td {
    border-top: 2px solid #1976d2 !important;
    background-color: #B4CCEE !important;
}



.custom-ellipsis {
    overflow: hidden;
    max-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    padding: 0;
}

.custom-boldellipsis {
    overflow: hidden;
    max-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
    padding: 0;
}

.scale {
    transform: scale(.8);
}


/* CSS */
.confirm-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.confirm-box-content {
    background-color: white;
    padding: 20px;
    width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.confirm-box-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.large-icons .k-icon {
    font-size: 32px;
}

.medium-icons .k-icon {
    font-size: 28px;
}

.k-grid .k-master-row.gridRedBackground:hover {
    overflow: hidden;
    max-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    padding: 0;
    background-color: red !important;
}

.k-grid .k-master-row.gridRedBackground {
    overflow: hidden;
    max-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    padding: 0;
    background-color: red;
}

.k-window {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 8px;
}

.k-window-titlebar {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.k-window-content {
    padding: 10px;
}

#overlay-canvas {
    pointer-events: auto;
}

.k-pdf-viewer .k-toolbar {
    display: none;
}

/* 1) Make every Telerik grid use fixed layout so ellipsis can work */
.k-grid .k-grid-table,
.k-grid table.k-table {
    table-layout: fixed;
    width: 100%;
}

/* 2) Truncate headers and body cells with "..." */
.k-grid .k-grid-table th.k-table-th,
.k-grid .k-grid-table td.k-table-td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 3) Helpful extras */
.k-grid .k-grid-table th.k-table-th {
    /* prevent header text from wrapping */
    white-space: nowrap;
}

/* If a cell contains wrappers, ensure children can actually shrink */
.k-grid .k-grid-table td.k-table-td > * {
    min-width: 0;
}

/* 4) Opt-out: add Class="no-ellipsis" on a grid you *don't* want truncated */
.no-ellipsis .k-grid-table th.k-table-th,
.no-ellipsis .k-grid-table td.k-table-td {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}
@media print {
    .left-pane, .toolbar, .k-grid {
        display: none !important;
    }

    .right-pane {
        width: 100% !important;
    }

    pre {
        white-space: pre-wrap;
        word-break: break-word;
    }
}