﻿
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --app-primary: #424242;
    --app-secondary: #ef8321ba;
    --app-primary-hover: #575757;
    --app-secondary-hover: #ef8321;
    --brand-primary: #424242;
    --brand-secondary: #f5c4a2;
    --brand-tertiary: #f5c4a2;
}

/*@media (hover: none) {
    *:hover {
        all: revert; 
    }
}
*/
html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*font-family: monospace;*/
    color: #636363;
    font-size: 12px;
    width: 100% !important;
    overflow-x: hidden;
}

.specialbutton {
    margin-left: calc(var(--bs-gutter-x)* .2) !important;
}

.blazored-toast-container {
    z-index: 7000 !important;
}

#updatebtn:hover, #btnprimary:hover, #backbtn:hover, .btnprimary:hover {
    background: #ffffff;
    border: 1px solid #ef8321;
    border-radius: 4px;
    font-weight: 400;
    color: #ef8321;
    /*  margin-left: 0px;*/
    padding: 8px 10px;
    font-size: 0.9rem;
    margin-right: 5px;
    margin-top: 6px;
}

#updatebtn, #btnprimary, #backbtn, .btnprimary {
    background: #ef8321;
    border: 1px solid #ef8321;
    border-radius: 4px;
    font-weight: 400;
    color: #fff;
    margin-right: 5px;
    font-size: 0.9rem;
    padding: 8px 10px;
    margin-top: 6px;
}

.btn-default:hover {
    background: #ef8321;
    color: #fff;
}

.btn-default {
    background: #ffffff;
    border: 1px solid #ef8321;
    border-radius: 4px;
    font-weight: 400;
    color: #ef8321;
    margin-right: 5px;
    font-size: 0.9rem;
    padding: 8px 10px;
    margin-top: 7px;
    max-width: 250px;
}

.btngrey:hover {
    background: #ffffff;
    border: 1px solid #636363;
    color: #000;
}

.btngrey {
    background: #efefef;
    border: 1px solid #efefef;
    border-radius: 4px;
    font-weight: 400;
    color: #636363;
    margin-right: 5px;
    font-size: 0.9rem;
    padding: 8px 10px;
    margin-top: 6px;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-color: #5f368d;
    border-bottom: 3px solid #ef8321;
}

.nav-tabs .nav-link {
    /* border: 1px solid transparent; */
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    border-width: 0 0 3px 0;
}

.cmb-10 {
    margin-bottom: 10px;
}

#quantityfield, #barcodefield {
    border-bottom: 2px solid #ef8321;
    border-left: 0px;
    border-right: 0px;
    border-top: 0px;
    /*border-radius: 10px;*/
}

input [type="text"], #quantityfield, #barcodefield {
    outline: 0 !important;
    box-shadow: none;
    text-align: center;
}


#searchbarbtn {
    background: #ef8321;
    border: 1px solid #ef8321;
    border-radius: 40px;
    font-weight: 600;
    color: #fff;
    margin-left: 15px;
}

    #searchbarbtn:hover {
        background: #fff;
        color: #ef8321;
        border: 1px solid #ef8321;
    }

.main-col > h4, h4span {
    padding-top: 15px;
    color: #ef8321;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.row.sopickinglines {
    margin-bottom: 30px;
}

    .row.sopickinglines h4 {
        margin-bottom: 0px;
    }



@media (max-width: 640.98px) {

    .modal-dialog-app {
        margin: 0rem;
    }

    .modal-content-app {
        height: 100%;
    }
}

.table {
    color: #636363 !important;
}

.userinitials {
    font-weight: 900;
    background: #fff;
    padding: 6px;
    border-radius: 20px;
    color: #ef8321;
}

    .userinitials:hover {
        color: #ef8321;
        text-decoration: none;
    }

.sidebar {
    /*    background: #f8f8f8 !important;
    border-left: 3px solid #ef8321 !important;
    border-right: 3px solid #ef8321 !important;*/
}

.btn-link {
    color: #0366d6;
}

a {
    color: #ef8321;
}
a:not([href]):not([class]), a:not([href]):not([class]):hover {
    color: #ef8321;
}
.login-btn {
    min-width: 30%;
    background: #ef8321;
    border: 5px solid #ef8321;
    /* padding: 6px 10px;*/
    border-radius: 40px;
    font-weight: 600;
    color: #fff;
}

.login h2 {
    margin-bottom: 30px;
    padding: 10px;
    color: #636363;
    /*box-shadow: 0 10px 30px 0 rgb(0 0 0 / 8%);*/
    font-size: 22px;
}

/*::-webkit-input-placeholder {
    text-align: center;
}*/

/*.login-form-wrapper {
    padding: 40px;
    box-shadow: 0 10px 30px 0 rgb(0 0 0 / 8%);
    margin-top: 50px;
}*/

/*.sidebar .nav-item a {
    color: #f8f8f8 !important;
    background: #ef8321;
}

    .sidebar .nav-item a:hover {
        color: #ef8321 !important;
        background: #f8f8f8 !important;
        border: 1px solid #ef8321;
    }*/

.top-row {
    background: #ef8321 !important;
    border-bottom: 2px solid #ef8321 !important;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
/*.fa-refresh:before {
    content: "\f021";
    font-weight: 900;
    background: #fff;
    padding: 8px;
    border-radius: 20px;
    color: #ef8321;
    margin: 0px;
}*/
.nav-item a.active {
    background-color: #f8f8f8 !important;
    color: #ef8321 !important;
}

.main-col {
    padding: 0px !important;
}

#searchbox {
    border-bottom: 2px solid #ef8321;
    border-left: 0px;
    border-right: 0px;
    border-top: 0px;
}
/*.content {
    padding-top: 1.1rem;
}*/
.loader-wrapper {
    padding: 50% 0;
    text-align: center;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.login-form-wrapper {
    margin-top: 60px;
}

.login-footer {
    margin-top: 100px;
}

#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;
    }

.containers {
    max-width: 1024px;
}


input [type="text"], #searchbox {
    outline: 0 !important;
    box-shadow: none;
}

/*input::-webkit-input-placeholder {
    text-align: center
}*/

.table td, .table th {
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-pointer tbody tr {
    cursor: pointer;
}

.initialrefresh {
    margin-right: 5px;
    background: #fff;
    border: 0px;
    outline: none;
    width: 30px;
    height: 30px;
    /*font-weight: 900;*/
    background: #fff;
    /* padding: 8px; */
    border-radius: 50%;
    color: #ef8321;
}

.page-item.active .page-link {
    background-color: #ef8321;
    border-color: #ef8321;
    color: #fff !important;
}

.page-link {
    color: #636363 !important;
}
/*b {
    font-weight: 100 !important;
}*/
h4 {
    font-size: inherit !important;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-body {
    padding: 5px !important;
}

[role=tab] span {
    color: #495057 !important;
}

.nav-tabs {
    border: 1px solid #dee2e6 !important;
}
/*@media (min-width: 641px) {
    .sidebar[b-1gsd14h1ov] {
        height: unset !important;
    }
}
*/
.dxbl-text-edit.dxbl-lg {
    --dxbl-text-edit-line-height: 2 !important;
    font-size: 12px !important;
}

.input-group-prepend {
    margin-right: -1px;
}

.input-group-append, .input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}

.loader-wrapper {
    padding: 50% 0;
    text-align: center;
}

.loginfield:focus {
    outline: none;
}

.splash-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    height: 100vh;
    font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

    .splash-screen .spinner-border {
        border: .2em solid;
        border-color: #ef8321 #bfbfbf #bfbfbf;
        border-radius: 60px;
        width: 120px;
        height: 120px;
    }

.splash-screen-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.splash-screen-text {
    color: #a1a1a1;
    margin-top: .5rem;
}

.dxbl-grid .dxbl-grid-table > tbody > tr > td,
.dxbl-grid .dxbl-grid-table > tbody > tr > th {
    line-height: 2rem !important;
}

.cw-320 {
    max-width: 450px;
}

.blazored-typeahead {
    width: 320px;
    /*    max-width: 450px;*/
}

.card-h4 {
    background-color: #efefef;
    padding: 9px;
    max-width: 590px;
    border-radius: 2px;
    border: 1px solid #efefef;
    margin-bottom: 15px;
    margin-top: 31px;
}

@media (min-width: 576px) {
    .blazored-toast-container {
        top: 0rem;
        right: 0rem;
    }
}

@media (min-width: 641px) {
    .main-col h4, h4span {
        margin-top: 0px;
    }

    .card-h4 {
        max-width: 75%;
    }
}

@media (min-width: 800px) {
    .main-col h4, h4span {
        margin-top: 0px;
    }

    .card-h4 {
        max-width: 800px;
    }
}

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-6izfpeqxma] {
        display: flex !important;
    }

    .cw-320 {
        max-width: 700px;
    }

    .blazored-typeahead {
        max-width: 700px;
    }

    .card-h4 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    .cw-320 {
        max-width: 700px;
    }

    .blazored-typeahead {
        max-width: 700px;
    }

    .card-h4 {
        max-width: 100%;
    }
}

.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* ========================================================================================= */
/* ST CUSTOM STYLING */
/* ========================================================================================= */

.st-footer-div {
    width: 100%;
    display: flex;
    justify-content: center;
}

.st-floating-footer {
    display: flex;
    position: fixed;
    bottom: 20px;
    /*    width: 90%;*/
    width: fit-content;
    background: white;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--app-primary);
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.st-floating-footer-pagination {
    display: flex;
    position: fixed;
    bottom: 20px;
    width: fit-content;
    background: white;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--app-primary);
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .st-floating-footer-pagination button {
        background: var(--app-primary);
        border-radius: 4px;
        color: white;
        font-size: 17px;
        padding: 8px;
        width: 40px;
        height: 40px;
        border: none;
    }

        .st-floating-footer-pagination button.active {
            background: var(--app-primary-hover);
        }

    .settings-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .st-pbtn {
        padding: 0.7rem 1.2rem;
        display: flex;
        gap: 10px;
        background-color: var(--app-primary-hover);
        color: white;
        font-size: 1.2rem;
        height: 50px !important;
        width: fit-content;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        align-items: center;
    }

    .st-pbtn:hover {
        box-shadow: 0 2px 6px var(--app-primary-hover);
    }

.st-plbl {
    color: #575757ad;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}


/* ========================================================================================= */
/* ST CUSTOM COMPONENETS */
/* ========================================================================================= */

/* -------------------------------------------------- */
/* ST INPUT */
/* -------------------------------------------------- */

.st-input {
    position: relative;
    display: inline-block;
    width: 200px;
    font-family: inherit;
    height: 40px;
}

    .st-input input {
        width: 100%;
        padding: 9px 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        outline: none;
        background: white;
        transition: border-color 0.2s ease;
        padding-left: 15px;
        color: #333;
    }

        .st-input input:focus {
            border-color: var(--app-primary-hover); 
        }

    .st-input label {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        background: transparent;
        padding: 0 4px;
        color: #666;
        font-size: 14px;
        pointer-events: none;
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    /* Float label when input has focus or value */
    .st-input input:focus + label,
    .st-input input:not(:placeholder-shown) + label {
        top: 0px;
        left: 15px;
        font-size: 12px;
        color: var(--app-primary-hover);
        background: white;
    }

    .st-input input.validation-error:focus + label,
    .st-input input.validation-error:not(:placeholder-shown) + label {
        color: #dc3545;
    }

    .st-input.validation-error .st-input label {
        color: #dc3545;
    }

    .st-input input:-webkit-autofill + label {
        top: 0px;
        left: 15px;
        font-size: 12px;
        color: var(--app-primary-hover);
        background: white;
    }

.validation-error {
    border-color: #dc3545 !important;
    background-color: #fff3f3 !important;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
    display: flex;
    gap: 10px;
    position: absolute;
    top: -32px;
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

/* -------------------------------------------------- */
/* ST TEXT AREA */
/* -------------------------------------------------- */

.st-text-area {
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: inherit;
    height: 50px;
}

    .st-text-area input {
        width: 100%;
        padding: 12px 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        outline: none;
        background: white;
        transition: border-color 0.2s ease;
        padding-left: 15px;
    }

        .st-text-area input:focus {
            border-color: var(--app-primary-hover); /* Accent color */
        }

    /* TextArea styles - matching input styles */
    .st-text-area textarea {
        width: 100%;
        padding: 12px 8px;
        font-size: 14px;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 6px;
        outline: none;
        background: white;
        transition: border-color 0.2s ease;
        padding-left: 15px;
        padding-top: 15px;
        font-family: inherit;
        resize: vertical; /* Allows vertical resize only */
        min-height: 100px;
    }

        .st-text-area textarea:focus {
            border-color: var(--app-primary-hover);
        }

    .st-text-area label {
        position: absolute;
        top: 20%;
        left: 15px;
        transform: translateY(-50%);
        background: transparent;
        padding: 0 4px;
        color: #888;
        font-size: 16px;
        pointer-events: none;
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    /* Float label when input has focus or value */
    .st-text-area input:focus + label,
    .st-text-area input:not(:placeholder-shown) + label {
        top: 0px;
        left: 15px;
        font-size: 12px;
        color: var(--app-primary-hover);
        background: white;
    }

    /* Float label when textarea has focus or value */
    .st-text-area textarea:focus + label,
    .st-text-area textarea:not(:placeholder-shown) + label {
        top: 0px;
        left: 15px;
        font-size: 12px;
        color: var(--app-primary-hover);
        background: white;
    }

    /* Validation error states for input */
    .st-text-area input.validation-error:focus + label,
    .st-text-area input.validation-error:not(:placeholder-shown) + label {
        color: #dc3545;
    }

    /* Validation error states for textarea */
    .st-text-area textarea.validation-error:focus + label,
    .st-text-area textarea.validation-error:not(:placeholder-shown) + label {
        color: #dc3545;
    }

    .st-text-area.validation-error .st-text-area label {
        color: #dc3545;
    }

.validation-error {
    border-color: #dc3545 !important;
    background-color: #fff3f3 !important;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
    display: flex;
    gap: 10px;
    position: absolute;
    top: -32px;
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

.st-text-area:has(textarea) {
    height: auto;
    min-height: 100px;
}

/* -------------------------------------------------- */
/* ST Drop Down */
/* -------------------------------------------------- */

.st-dropdown-container {
    position: relative;
    width: 200px;
    /*width: 100%;*/
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease;
    height: 40px;
    display: grid;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

    .st-dropdown-container.dropdown-focused {
        border-color: var(--brand-primary);
    }

    /* Validation styles */
    .st-dropdown-container.dropdown-error {
        border-color: #dc3545;
        background-color: #fff3f3;
    }

        .st-dropdown-container.dropdown-error.dropdown-focused {
            border-color: #dc3545;
            background-color: #fff3f3;
        }

.dropdown-search-input {
    border: none;
    outline: none;
}

    .dropdown-search-input:focus {
        border: none;
        outline: none;
        box-shadow: none;
    }

.dropdown-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-45%);
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
    border-radius: 4px;
}

.dropdown-label-floating {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--brand-primary);
    background-color: white;
}

.dropdown-container.dropdown-focused .dropdown-label-floating {
    color: var(--brand-primary);
    background: white;
}

/* Error label styling */
.dropdown-container.dropdown-error .dropdown-label,
.dropdown-container.dropdown-error .dropdown-label-floating {
    color: #dc3545;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    min-height: 24px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.dropdown-value {
    font-size: 14px;
    color: #333;
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-right: 8px;
    flex-shrink: 0;
}

.dropdown-arrow-up {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 117px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dropdown-panel-up {
    top: auto;
    bottom: 100%;
    border-top: 1px solid #ccc;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

    .dropdown-item:hover {
        background-color: #f5f5f5;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

.dropdown-item-selected {
    background-color: #e6f3ff;
    color: #0066cc;
}

    .dropdown-item-selected:hover {
        background-color: #d9edff;
    }

.dropdown-placeholder {
    color: #999;
}

.dropdown-no-items {
    padding: 12px 15px;
    color: #999;
    font-style: italic;
    text-align: center;
}

.dropdown-readonly {
    cursor: default;
    opacity: 0.8;
}

    .dropdown-readonly .dropdown-header {
        cursor: default;
    }

.dropdown-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
    display: flex;
    gap: 10px;
    position: absolute;
    top: -32px;
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

/* -------------------------------------------------- */
/* ST LIST TOGGLE */
/* -------------------------------------------------- */

.st-list-toggle {
    display: flex;
    justify-content: flex-end;
}

.toggle-group {
    display: flex;
    justify-content: center;
    /*background-color: var(--bs-gray-200);*/
    align-items: center;
    /*padding: 5px;*/
    border-radius: 8px;
    gap: 5px;
}

.toggle-button {
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--app-primary);
    background: var(--bs-gray-200);
    padding: 0 10px;
    transition: all 0.2s ease;
    font-weight: 600;
}

    .toggle-button.selected {
        background: darkgray;
    }

    .toggle-button i {
        font-size: 24px;
    }

    .toggle-button:hover {
        /*            background-color: white;
            color: var(--brand-secondary);*/
        /* font-weight: 600; */
    }

/* -------------------------------------------------- */
/* ST BOOL ICON TOGGLE */
/* -------------------------------------------------- */

.st-bool-icon-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 180px;
    height: 40px;
}

.bi-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.bi-toggle-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 40px;
}

.bi-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.bi-toggle-track {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    height: 40px;
}

.bi-toggle-option {
    padding: 5px;
    font-size: 1.6rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
    /* width: 40px;*/
    gap: 5px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-toggle-off {
    background-color: var(--app-primary-hover);
    color: white;
    border-radius: 0 7px 7px 0;
}

.bi-toggle-on {
    background-color: white;
    color: #6b7280;
    border-radius: 7px 0 0 7px;
}

.bi-toggle-input:checked ~ .bi-toggle-track .bi-toggle-off {
    background-color: white;
    color: #6b7280;
}

.bi-toggle-input:checked ~ .bi-toggle-track .bi-toggle-on {
    background-color: var(--app-primary-hover);
    color: white;
}

.bi-toggle-switch:hover .bi-toggle-track {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bi-toggle-input:disabled ~ .bi-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

    .bi-toggle-input:disabled ~ .bi-toggle-track .bi-toggle-option {
        cursor: not-allowed;
    }


/* -------------------------------------------------- */
/* ST BOOL TOGGLE */
/* -------------------------------------------------- */

.st-bool-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 40px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    height: 40px;
}

.toggle-option {
    padding: 8px 16px;
    font-size: 1.4rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.toggle-off {
    background-color: var(--app-secondary);
    color: white;
    border-radius: 0 7px 7px 0;
}

.toggle-on {
    background-color: white;
    color: var(--app-primary-hover);
    border-radius: 7px 0 0 7px;
}

.toggle-input:checked ~ .toggle-track .toggle-off {
    background-color: white;
    color: var(--app-primary-hover);
}

.toggle-input:checked ~ .toggle-track .toggle-on {
    background-color: var(--app-secondary);
    color: white;
}

.toggle-switch:hover .toggle-track {
    border-color: #d1d5db;
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);*/
}

.toggle-input:disabled ~ .toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

    .toggle-input:disabled ~ .toggle-track .toggle-option {
        cursor: not-allowed;
    }


/* ================================================== */
/* ST CARD VIEW */
/* ================================================== */

.st-card-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    user-select: none;
    /*width: 98%;*/
}

.st-card-div {
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding-top: 14px;
}

.card-info-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 10px;*/
}

.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
    margin-bottom: 12px;
}

.card-info-grid-offset-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    width: 100%;
    gap: 10px;
    margin-bottom: 7px;
}

.card-info-grid-first {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    width: 100%;
    gap: 10px;
    /*margin-bottom: 12px;*/
    align-items: center;
}

.card-info-grid-offset {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    width: 100%;
    gap: 10px;
}

.card-info-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.card-info-text {
    display: flex;
    /*    align-items: center;*/
    /*max-width: 170px;*/
}

.card-info-label {
    font-weight: bold;
    /*color: #222;*/
    margin-right: 8px;
    /*width: 92px !important;*/
}

.card-footer-controls {
    margin-top: 10px;
}


.st-card-header {
    /*    color: #222;*/
    /*    margin-bottom: 13px;*/
}

.card-info-field {
    display: flex;
    align-items: center;
    width: 80px;
}

.udf-line {
    width: 100%;
    color: lightgray;
    margin: unset;
    margin-top: 10px;
}

.card-udf-info {
    display: flex;
    flex-direction: column;
    /*gap: 10px;*/
    /*padding-bottom: 10px;*/
}

.card-box-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*gap: 10px;*/
    /*margin-bottom: 10px;*/
}


.priority-colour {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 2px;
}

.hide-card-field {
    display: none;
}

.st-taskcard-header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.taskcard-heading {
    font-size: 15px;
    color: var(--app-primary);
}

.task-document-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-taskcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    user-select: none;
    /*width: 98%;*/
}

.st-taskcard-div {
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding-top: 14px;
}

.taskcard-checkbox-div {
    display: grid;
    grid-template-columns: 45px 5fr;
    align-items: center;
    justify-items: start;
}

.task-icon {
    font-size: 22px;
    color: var(--app-secondary);
}

/* ========================================================================================= */
/* PAGE SPECIFIC CSS */
/* ========================================================================================= */
/* -------------------------------------------------- */
/* LOGIN PAGE */
/* -------------------------------------------------- */
.login-page-div {
    display: flex;
    width: 100%;
    justify-content: center;
    height: 100vh;
    align-items: center;
}

.login-page-details {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 6px;
    border: 1px solid lightgray;
    background-color: white;
    max-height: 800px;
    width: 350px;
    padding: 45px;
    gap: 70px;
    justify-content: space-around;
    user-select: none;
    text-align: center;
}

.login-page-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form {
    display: grid;
    gap: 45px;
}

.login-customer-logo {
    max-width: 240px;
}


/*
currently adding !@!@!*/

.st-page-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0px;
    padding-bottom: 88px;
}

.st-page-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.st-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-page-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-action-item {
    font-size: 18px;
    display: flex;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: #424242;
    color: white;
    border-radius: 4px;
}

.st-btn-z {
    background: linear-gradient(to bottom, #a9c7dc, #8fb6d2);
    color: #2f5f7a;
    border: none;
    border-radius: 4px; /* changed from pill to 4px */
    padding: 10px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /* Soft floating shadow */
    box-shadow: 0 4px 0 #6e9dbb, /* bottom edge shadow */
    0 6px 10px rgba(0,0,0,0.15);
    /* Smooth interaction */
    transition: all 0.15s ease;
}

    /* Press effect */
    .st-btn-z:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 #6e9dbb, 0 3px 6px rgba(0,0,0,0.15);
    }

    /* Optional hover */
    .st-btn-z:hover {
        filter: brightness(1.05);
    }

.st-heading1 {
    font-size: 23px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.st-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--app-primary-hover);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 13px;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 90px;
    justify-content: center;
}

    /* Hover */
    .save-btn:hover {
        background: #6f98c4;
    }

    /* Click effect */
    .save-btn:active {
        transform: translateY(1px);
    }

    /* Disabled (useful for Blazor loading states) */
    .save-btn:disabled {
        background: #b7c9dd;
        cursor: not-allowed;
        opacity: 0.8;
    }

@media (max-width: 900px) {

    .st-page-filters {
        flex-direction: column;
        /* width: 100%; */
    }

    .st-dropdown-container {
        width: 100%;
    }

    .st-input {
        width: 100%;
    }

    .st-taskcard-grid {
        grid-template-columns: 1fr;
    }
}


.spacer {
    visibility: hidden;
    width: 22px;
}

.back-button {
    font-size: 22px;
    border: none;
    color: var(--app-primary-hover);
    background: none;
}

.st-btn1 {
    background: var(--app-primary);
    border: 1px solid var(--app-primary);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    padding: 8px 10px;
    width: 100px;
}

@media (hover: hover) and (pointer: fine) {
    .st-btn1:hover {
        background: #ffffff;
        border: 1px solid var(--app-primary);
        border-radius: 4px;
        font-weight: 400;
        color: #666;
        padding: 8px 10px;
        font-size: 0.9rem;
        margin-right: 5px;
        margin-top: 6px;
    }
}

/* -------------------------------------------------- */
/* Custom Checkbox */

.checkbox-wrapper {
    display: inline-block;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

    .custom-checkbox input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

    .custom-checkbox .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 30px;
        width: 30px;
        background-color: #f3f3f3;
        border: 2px solid #bbb;
        border-radius: 50%;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .custom-checkbox .checkmark::after {
            content: "";
            width: 6px;
            height: 12px;
            border: solid rgba(0, 0, 0, 0.2);
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
            transition: all 0.2s ease;
        }

    .custom-checkbox input:checked ~ .checkmark {
        background-color: #28a745;
        border-color: #28a745;
    }

        .custom-checkbox input:checked ~ .checkmark::after {
            border-color: white;
        }

    .custom-checkbox.completed .checkmark {
        background-color: #28a745;
        border-color: #28a745;
    }

        .custom-checkbox.completed .checkmark::after {
            border-color: white;
        }

/* -------------------------------------------------- */

/* st pagination */

.st-pagination-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-pagination-controls {
    border-radius: 5px;
    display: flex;
    padding: 5px;
}

.st-page-buttons {
    display: flex;
    align-items: center;
    margin-left: 5px;
    justify-content: center;
    margin-right: 5px;
}

    .st-page-buttons button {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid lightgray;
        border-radius: 4px;
        /*background-color: white;*/
        margin-left: 5px;
        margin-right: 5px;
    }

        .st-page-buttons button.active {
            border: 1px solid var(--app-secondary);
        }

        .st-page-buttons button:hover {
            border: 1px solid var(--app-secondary);
        }

.st-page-controls {
    border: 1px solid lightgray;
    border-radius: 4px;
    background-color: white;
    width: 40px;
    height: 40px;
}

.st-pages-div {
    border-radius: 5px;
    display: flex;
    gap: 5px;
    /*background-color: white;*/
}

.st-page-controls:hover {
    border: 1px solid var(--app-secondary);
}


/*switch - needed?*/

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #30bd30;
}

input:focus + .slider {
    box-shadow: 0 0 1px #30bd30;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.icon-only-date {
    height: 40px;
    border-radius: 6px;
    padding: 0px 0px 0px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/*.icon-only-date input {
    display: none;
}


.icon-only-date .dx-texteditor-input {
    width: 0;
    padding: 0;
    border: none;
}

.icon-only-date .dx-texteditor-buttons-container {
    margin-left: 0;
}*/

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-heading {
    font-size: 14px;
}

.complete-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
    height: 40px;
    width: 130px;
}

    .complete-toggle.incomplete {
        background: var(--app-primary);
        color: white;
    }

    .complete-toggle.completed {
        background: #16a34a;
        color: white;
    }

    .complete-toggle.disabled {
        background: lightgray;
        color: white;
        user-select: none;
        pointer-events: none;
        cursor: not-allowed;
        opacity: 0.8;
    }
