/* Global styles for the LansenOnline application */

:root {
    --primary500: #FF5700;
    --primary50: #FFF7EC;
    --neutral0: #FFFFFF;
    --neutral200: #F7F7F7;
    --neutral800: #525252;
    --blue900: #151E33;
    --red600: #DC2626;
}

.lpx-brand-name {
    display: none !important;
}

/*Hide down arrow in dropdowns*/
/*.dropdown.dropstart > .dropdown-toggle::before {*/
/*    display: none !important;*/
/*}*/

/* 
    loader
*/
.loader {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: #f1f1f2;
}

#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;
}

/* 
    blazorise picker workaround for https://github.com/Megabit/Blazorise/issues/4917
*/
/*.flatpickr-calendar.static {*/
/*    top: unset !important;*/
/*}*/

.invisible-button {
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.invisible-button:hover {
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.invisible-button:focus {
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.invisible-button:active {
    background-color: transparent !important;
    border: none !important;
    color: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.dropdown.dropstart > .dropdown-toggle::before {
    display: none !important;
}

.text-red600 {
    color: var(--red600) !important;
}

.custom-number-input::-webkit-inner-spin-button,
.custom-number-input::-webkit-outer-spin-button {
    opacity: 1;
    display: block;
}

/*input[type="search"]::-webkit-search-cancel-button {*/
/*    -webkit-appearance: none;*/
/*    appearance: none;*/
/*    display: none;*/
/*}*/

.form-control[type=file] {
    border: none !important;
    background: transparent !important;
}

.form-control[type=file]:focus {
    border: none !important;
    background: transparent !important;
}

.form-control[type=file]:hover {
    border: none !important;
    background: transparent !important;
}

.form-control[type=file]:active {
    border: none !important;
    background: transparent !important;
}

textarea.form-control {
    height: unset !important;
}

.scrollable-table-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
}

.order-line-item {
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0.4rem;
    margin-right: 1rem;
}

.selected-order-line-item {
    background-color: var(--primary500);
    color: var(--neutral0);
}

.scrollable-orderline-container {
    height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}

.scrollable-templatesettings-container {
    height: 50vh;
    overflow-y: auto;
    overflow-x: visible;
}

.scrollable-serialnumber-container {
    height: 65vh;
    overflow-y: auto;
    overflow-x: auto;
}

.scrollable-summary-orderrows-container-half {
    height: 35vh;
    overflow-y: auto;
    overflow-x: auto;
}

.scrollable-summary-orderrows-container-full {
    height: 50vh;
    overflow-y: auto;
    overflow-x: auto;
}

.scrollable-extra-articles-container {
    height: 15vh;
    overflow-y: auto;
    overflow-x: auto;
}

.scrollable-firmware-articles-container {
    height: 55vh;
    overflow-y: auto;
    overflow-x: auto;
}

.fa:not(.lucide-icon),
.far:not(.lucide-icon),
.fas:not(.lucide-icon) {
    font-family: "Font Awesome 5 Free", serif !important;
}

[class^="icon-"], [class*=" icon-"] {
    font-size: 16px !important;
}

body {
    overflow: scroll !important;
}

.hidden {
    visibility: hidden !important;
}

.w-40 {
    width: 40% !important;
}

.w-60 {
    width: 60% !important;
}

#monaco-editor-mioty {
    height: 65vh;
}

#monaco-editor-device-teststatus {
    height: 50vh;
}

#monaco-editor-device-configuration {
    height: 50vh;
}

.device-configuration-container {
    height: 50vh;
    overflow-y: auto;
}

.device-test-status-container {
    height: 50vh;
    overflow-y: auto;
}

.device-test-status-container tr:nth-child(even) {
    background-color: var(--neutral300) !important;
}

.device-configuration-container tr:nth-child(even) {
    background-color: var(--neutral300) !important;
}

.right-modal-section {
    border-left: solid 1px var(--neutral400);
}

.datagrid-detail.modal-table thead input[type="checkbox"] {
    visibility: hidden;
}

.badge {
    font-size: 0.8rem !important;
    height: auto !important;
}

.lpx-breadcrumb-item {
    display: none !important;
}

.lpx-content-container {
    margin-right: 0 !important;
}

.abp-md-form {
    max-width: 640px !important;
}

.cookie {
    color: var(--neutral800) !important;
    margin-right: 45px;
    margin-left: 255px;
}

.cookie a {
    color: var(--neutral800) !important;
}

.cookie .btn {
    margin-right: 1rem !important;
}

.md-sm-modal {
    --bs-modal-width: 850px !important;
}

/* Target blazorise FileEdit fileupload text, hopefully just that */
.input-group .input-group-text .text-muted {
    color: var(--primary500) !important;
    background-color: transparent;
    border-color: var(--primary500);
    box-shadow: none;
    opacity: 1;
    border: 1px solid var(--primary500);
    padding: 0.375rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
}

.input-group .input-group-text .text-muted:hover {
    color: var(--primary500) !important;
    background-color: var(--primary50);
    border-color: var(--primary500);
    box-shadow: none;
    opacity: 1;
    border: 1px solid var(--primary500);
    padding: 0.375rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
}

.file-upload-text {
    padding: 1rem 0 !important;
}

.responsive-lg-modal-datagrid {
    max-height: 70vh;
    max-width: 90vw;
    overflow-y: auto;
    overflow-x: auto;
}

.no-wrap-grid td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-wrap-grid th {
    white-space: nowrap;
}

/* Stupid overrides to control content alignment in UiMessageService modals */
.modal-footer.justify-content-center {
    justify-content: flex-end !important;
}

.modal-body .text-center {
    text-align: start !important;
}

/* Align items(spinner and text) center in submit buttons and add margin */
button[type="submit"].btn.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
}

button[type="submit"] .spinner-border {
    margin-right: 0.5rem;
}

.lucide-icon {
    transition: opacity 0.2s ease;
}
