@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.checkbox-lg .form-check-input {
    transform: scale(1.5);
    margin-right: 0.5rem; /* keeps spacing correct */
}

.app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.clickable {
    cursor: pointer;
}

.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;
}

.sidebar {
    background: #1e3a8a;
}

.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
    /*background-color: #292562;*/
}

.sidebar .oi {
/*    width: 2rem;*/
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0;
    color: #e8e8e8;
/*    border-bottom: 1px solid #0f172a;*/
}

.nav-icon {
    width: 32px;
    text-align: center;
}

.nav-item a {
    flex-grow: 1;
    display: block;
    text-decoration: none;
    padding: 0.75rem 0.5rem 0.75rem 0.5rem;
    color: #d8d8d8;
}

.nav-item .active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.content {
}

.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;
    }

    .sidebar .top-row {
        justify-content: flex-start;
    }
    
    .navbar-brand {
        flex: none;
        text-align: left;
        margin-left: 0.5rem;
        margin-right: auto;
    }
}

@media (min-width: 768px) {
    .app {
        flex-direction: row;
    }

    .sidebar {
        width: auto;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .main > div.full-width {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-brand {
        width:100%;text-align:center;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

input[type='text']:focus, input[type='tel']:focus, input[type='password']:focus, input[type='number']:focus, textarea:focus {
    background: #e8ffe8;
}

/* APX logo small */

img.apx-sm {
    height:30px;
}

@media (min-width: 768px) {
    img.apx-navbar {
        display: none;
    }
}

/* APX logo full */

img.apx {
    width: 433px; height: 144px;
}


.page-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem 0.5rem 1rem 0.5rem;
}

.st-full-pallet {
    color: #0a53be;
}
.st-mixed-pallet {
    color: #6f42c1;
}

.st-single-article-pallet {
    color: #fd7e14;
}

.st-article {
    color: green;
}

/* Vidars tools */

.flex {
    display: flex;
}

.flex-middle {
    align-items: center;
}

.flex-center {
    justify-content: center;
}

.flex.center {
    align-items: center; justify-content: center;
}

.scroll-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

.scroll-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1em;
}

.scroll-footer {
    flex: 0 0 auto;
    background-color: #f8f8f8;
    border-top: 1px solid #a8a8a8;
    padding: 1em;
    z-index: 10;
}

.grow {
    flex-grow: 1;
}

.nogrow {
    flex-grow: 0;
}

.flex-none {
    flex: none;
}

.gap-2 {
    gap: 0.5rem;
}

.bg-sky-900 {
    background-color:#0c4a6e;
}

.bg-blue-900 {
    background-color:#1e3a8a;
}
.w-25 {
    width: 25%;
}
.w-50 {
    width: 50%;
}
.w-75 {
    width: 75%;
}
.w-100 {
    width: 100%;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}
.w-18px {
    width: 18px;
}

.icon-22px {
    width: 22px;
    height: 22px;
    display:flex;
    align-items: center;
    justify-content: center;
}

.custom-signature-container {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.signature-canvas {
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-bottom: 10px;
}

.text-purple {
    color: #6f42c1;
}

.bg-purple {
    background-color: #e8d9f6;
}