﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --app-primary: #424242;
    --app-secondary: #ef8321ba;
    --app-tertiary: #ed9d36;
    --app-primary-hover: #575757;
    --app-secondary-hover: #ef8321;
    --brand-primary: #424242;
    --brand-secondary: #f5c4a2;
    --brand-tertiary: #f5c4a2;
    --st-border: #f5c4a2;
}

html, body {
    /*font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    /*font-family: monospace;*/
    font-family: 'Nunito', sans-serif;
    color: #636363;
    font-size: 12px;
    width: 100% !important;
    overflow-x: hidden;
}

.login-btn {
    min-width: 30%;
    background: #ef8321;
    border: 5px solid #ef8321;
    border-radius: 40px;
    font-weight: 600;
    color: #fff;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/*.nav-item a.active {
    background-color: #f8f8f8 !important;
    color: #ef8321 !important;
}*/

.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;
}

.card-body {
    padding: 5px !important;
}

/* ========================================================================================= */
/* ST CUSTOM COMPONENETS */
/* ========================================================================================= */

.st-np-btn {

}

/* -------------------------------------------------- */
/* Modal */

.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

.modal-body {
 /*   max-height: 80%;*/
    gap: 15px;
    display: flex;
    flex-direction: column;
}
    .modal-body > div:first-child {
        margin-top: 5px;
    }

.modal-dialog-scrollable .modal-content {
    height: 100%;
}

/* Attachment Template */

.attachments-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 10px;
    width: 100%;
}

/* -------------------------------------------------- */
/* Page Footer */

.st-footer-div {
    width: 100%;
    display: flex;
    justify-content: center;
}

.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;
}

/* -------------------------------------------------- */
/* No Results Section? */

.no-results-div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(70dvh - 60px);
}

.no-results-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    color: var(--app-primary-hover);
    opacity: 0.8;
}


/* -------------------------------------------------- */
/* ST Pagination */



    .st-pagination-desktop {
        display: none;
    }

.st-pages-div {
    border-radius: 5px;
    display: flex;
    gap: 5px;
}

.st-actions button {
    background: var(--app-primary);
    border-radius: 4px;
    color: white;
    font-size: 17px;
    padding: 8px;
    width: 40px;
    height: 40px;
    border: none;
}

    .st-actions button.active {
        background: var(--app-primary-hover);
    }

@media (min-width: 600px) {

    .st-pagination-desktop {
        display: flex;
    }

}

/* -------------------------------------------------- */
/* ST Drop Down */

.st-dropdown-container {
    position: relative;
    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);
    }

    .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-error > .dropdown-header > .dropdown-search-input {
            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;
}

.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-header {
    background: #2125291f !important;
    color: #212529 !important;
    font-weight: bold;
}
    .dropdown-item:hover {
        background-color: #f5f5f5;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

.warehouse-item {
    display: grid;
    grid-template-columns: 1fr 75px 75px;
}

.address-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

 /*Changed this to orange as per Ross' request*/
.dropdown-item-selected {
    background-color: #ef832136;
    color: #ff7900;
}

    .dropdown-item-selected:hover {
        background-color: #ef832159;
        
        color: #ff7900;
    }

.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;
    user-select: none;
    pointer-events: none;
    background: #f1f1f140;
}

    .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: -26px;
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

.dropdown-clear {
    cursor: pointer;
    color: #374151;
    padding: 8px;
    line-height: 1;
}

    .dropdown-clear:hover {
        color: black;
    }
/* -------------------------------------------------- */
/* ST Options Button */

.st-action-menu-div {
    position: relative;
    display: inline-block;
}

.action-menu-button {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    color: var(--app-primary-hover);
    border-radius: 4px;
}

.action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid lightgray;
    border-radius: 4px;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--app-primary-hover);
    cursor: pointer;
    text-align: left;
}

    .action-item i {
        font-size: 16px;
        opacity: 0.8;
    }

@media (hover: hover) and (pointer: fine) {

    .action-item:hover {
        background-color: lightgray;
    }
}

.action-item.danger {
    color: var(--app-secondary);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 999;
}


/* -------------------------------------------------- */
/* ST Loading Screen */

.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;
}

/* -------------------------------------------------- */

/* ================================================== */
/* ST CARD VIEW */
/* ================================================== */

.card-info-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.card-info-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-box-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.st-taskcard-header {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.taskcard-heading {
    font-size: 15px;
    max-width: 98%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
}

/*.st-taskcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 5px;
    user-select: none;
    overflow: auto;
    max-height: calc(100dvh - 200px);
    overscroll-behavior: contain;
}*/

    .st-taskcard-div {
        padding: 10px;
        border: 1px solid lightgray;
        border-radius: 4px;
        cursor: pointer;
        padding-top: 14px;
    }

.taskcard-grid-header {
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: space-between;
    height: 50px;
    border-radius: 10px 10px 0px 0px;
    background: var(--app-primary-hover);
}

    .taskcard-grid-header.expanded {
        border-radius: 0px 10px 0px 0px;
    }

    .taskcard-grid-header.collapsed {
        border-radius: 10px 10px 0px 0px;
    }

.taskcard-grid-footer {
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: space-between;
    height: 50px;
    border-radius: 0px 0px 10px 10px;
    background: var(--app-primary-hover);
}

.taskcard-checkbox-div {
    display: grid;
    grid-template-columns: 45px 5fr;
    align-items: center;
    justify-items: start;
}

.taskcard-action-div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-icon {
    font-size: 20px;
    color: white;
    padding: 2px;
    border-radius: 4px 0px 4px 0px;
    position: relative;
    right: -17px;
    bottom: -14px;
}

/* ========================================================================================= */
/* PAGE SPECIFIC CSS */
/* ========================================================================================= */

/* -------------------------------------------------- */
/* PAGE LAYOUT */
/* -------------------------------------------------- */

.st-hide {
    display: none !important;
}

.st-page-loading {
    pointer-events: none;
}

.st-page-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0px 88px 0px;
    padding-bottom: 88px;
    user-select: none;
    width: 100%;
    max-width: 600px;
}

.st-lv-page-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0px 88px 0px;
    padding-bottom: 88px;
    user-select: none;
    width: 100%;
    max-height: 100vh;
}

.page-filters-div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 43px;
}

.st-lv-page-header {
    display: flex;
    height: 43px;
    justify-content: center;
}

.header-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 600px;
    height: 43px;
}

.st-subpage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;
}

.st-otherfucking-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.fucking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 43px;
}

.subfucking-fucking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;
}

.spacer {
    visibility: hidden;
    width: 22px;
}

.back-button {
    font-size: 22px;
    border: none;
    color: var(--app-primary-hover);
    background: none;
    cursor: pointer;
}

.st-page-tabs {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.tab-icon {
    font-size:18px;
}

.st-tab-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    justify-content: center;
    background: #efefef;
    border: 1px solid #efefef;
    border-radius: 4px;
    color: #636363;
    font-size: 0.9rem;
    width: 65px;
}

.st-tab-btn-landscape {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    justify-content: center;
    background: #efefef;
    border: 1px solid #efefef;
    border-radius: 4px;
    color: #636363;
    font-size: 0.9rem;
    width: 115px;
}

.tab-btn-label {
    font-size: 12px;
}

.st-page-body-container {
    width: 100%;
}

.st-page-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-grid-detail-out {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.5fr 0.7fr;
    width: 100%;
    margin-bottom: 3px;
    gap: 10px;
}

.card-grid-detail-doc {
    display: grid;
    grid-template-columns: 1fr 0.5fr 0.5fr 0.7fr 0.7fr;
    width: 100%;
    margin-bottom: 3px;
    gap: 10px;
}

.card-grid-footer-doc {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-bottom: 3px;
    gap: 10px;
}


.card-heading-doc {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.detail-header-doc {
    margin-top: 10px;
}

.card-grid-detail-doc:not(.detail-header-doc):not(:last-child):nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

.card-grid-detail-out:not(.detail-header-doc):not(:last-child):nth-child(even) {
    background-color: rgba(0, 0, 0, 0.04);
}

@media (min-width: 600px) {

    .st-page-body-container {
        display: flex;
        justify-content: center;
    }

}

@media (min-width: 1700px) {
    .st-page-div {
        width: 1700px;
    }

}

@media (min-width: 1160px) {

    .st-page-div-large {
        width: 1100px;
    }

}

/* -------------------------------------------------- */
/* 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;
}

.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;
}

/* -------------------------------------------------- */
/* APPROVAL PAGES */
/* -------------------------------------------------- */

.approval-tags-div {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    justify-content: space-between;
}

.approval-tag-doc {
    border-radius: 4px;
    padding: 5px;
    background-color: mediumpurple;
    color: white;
}

.approval-tag-doc {
    border-radius: 4px;
    padding: 5px;
    background-color: lightblue;
    color: white;
}

.approval-tag-total {
    border-radius: 4px;
    padding: 5px;
    background-color: darkslategrey;
    color: white;
}

.approval-tag-status {
    border-radius: 4px;
    padding: 5px;
    color: white;
}

    .approval-tag-status.approved {
        background-color: #28a745;
    }

    .approval-tag-status.declined {
        background-color: #db2323;
    }

/* -------------------------------------------------- */
/* General CSS */
/* -------------------------------------------------- */

.form-section-header {
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 10px;
    background: #efefef;
    border-radius: 5px;
}

.st-heading1 {
    font-size: 23px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: center;
}

.st-heading2 {
    font-size: 19px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--app-tertiary);
}

.st-btn {
    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;
}

.st-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--app-secondary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 13px;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    justify-content: center;
}

.st-btn3 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--app-primary-hover);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    height: 35px;
    justify-content: center;
}

.st-btn4 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--app-tertiary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    height: 35px;
    justify-content: center;
}

.st-btn-signature {
    display: inline-flex;
    align-items: center;
    width: 49.5%;
    gap: 5px;
    background: var(--app-secondary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 8px 13px;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    justify-content: center;
    margin-top: 5px;
}

.st-action-btn {
    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;
}

.custom-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

@media (max-width: 900px) {

    .st-dropdown-container {
        width: 100%;
    }

}

/* Floating Date Labels */

.st-dxdate-input {
    height: 40px;
    border-radius: 6px;
    padding: 0px 0px 0px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.date-input-div {
    display: flex; 
    align-items: center;
}

    .date-input-div input {
        color: #333;
        font-size: 14px !important;
    }

.floating-label-wrapper {
    position: relative;
    width: fit-content; 
    display: inline-flex;
}

.date-label {
    position: absolute;
    top: 0;
    left: 14px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    background-color: white;
    padding: 0 4px;
    pointer-events: none;
    z-index: 10;
    line-height: 1;
    white-space: nowrap;
}

.address-select {
    width: 100%;
    font-family: inherit;
    width: 100%;
    padding: 8.5px 8px;
    padding-left: 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    transition: border-color 0.2s ease;
    cursor: pointer;
    color: #333;
}

.address-select-details {
    display: flex;
    padding-right: 12px;
    justify-content: space-between;
    width: 100%;
}

.address-select-label {
    position: absolute;
    transform: translateY(-100%);
    color: #666;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
    font-size: 12px;
    color: var(--brand-primary);
    background-color: white;
}

.date-div {
    width: 100%;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-heading {
    font-size: 14px;
}


.st-page-divider {
    width: 100%;
    background: lightgray;
}

.quantity-control {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
    font-size: 22px;
    border-radius: 7px;
    height: 35px;
}

    .quantity-control button, .confirm-qty-btn {
        width: 30%;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        color: white;
        font-size: 22px;
        background-color: var(--app-secondary);
        border-radius: 5px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quantity-control input {
        width: 40%;
        border: none;
        text-align: center;
        font-size: 20px;
        background-color: transparent;
        height: 35px;
    }

        .quantity-control input:focus, .quantity-control input:focus, .quantity-control button:focus {
            outline: none;
            box-shadow: 0 0 2px var(--app-secondary);
        }

    .quantity-control button:hover, .confirm-qty-btn:hover {
        background: var(--app-secondary-hover);
    }


.st-numberpicker {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
    font-size: 22px;
    border-radius: 7px;
    border: none;
    height: 35px;
    gap: 10px;
}

    .st-numberpicker button {
        width: 25%;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        color: white;
        font-size: 22px;
        background-color: var(--app-secondary);
        border-radius: 5px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .st-numberpicker input {
        width: 50%;
        text-align: center;
        font-size: 20px;
        border: 1px solid #ccc;
        background-color: transparent;
        color: #333;
        height: 35px;
        border-radius: 4px;
    }

    .disable-numberpicker {
        cursor: default;
        user-select: none;
        pointer-events: none;
    }

/* -------------------------------------------------- */
/* ST Card Template */
/* -------------------------------------------------- */

.st-approval-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e6ea;
    border-left: 4px solid #9aa5b1; 
    padding: 14px 16px;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-left-color 0.2s ease;
    cursor: pointer;
}

    .st-approval-card.approved {
        border-left-color: #3b7a2e;
    }

    .st-approval-card.declined {
        border-left-color: #b02a2a;
    }

/* Header */

.st-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.st-card-caption {
    display: block;
    font-size: 0.7rem;
    color: var(--muted-text-color, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
}
/*.st-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1f24;
    letter-spacing: -0.01em;
}*/

/*.inventory-code {
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inventory-name {
    flex: 1 1 auto;
    min-width: 0;
}*/

.st-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1f24;
    letter-spacing: -0.01em;
}

.inventory-code {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Date - timestamp */

.st-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #8a94a0;
    margin-bottom: 12px;
    padding: 0px 12px;
}

    .st-card-meta svg {
        flex-shrink: 0;
    }

/* UDT rows */

.st-card-extra {
    font-size: 13px;
    font-weight: 500;
    color: #4a525c;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f7f8fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}

    .st-card-extra svg {
        color: #9aa5b1;
        flex-shrink: 0;
    }

    .warehouse-footer-field {
        display: flex;
    }

.wh-label {
    display: flex;
    width: 140px;
}

.st-card-other {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

/* Footer */

.st-card-footer-doc {
    padding-top: 10px;
    border-top: 1px solid #edf0f3;
}
.st-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #edf0f3;
}

.ref-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    background: #eef0f3;
    color: #4a525c;
    letter-spacing: 0.02em;
    gap: 3px;
    display: flex;
}

.ref-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0; /* important in flex */
}

.text-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    color: #4a525c;
    letter-spacing: 0.02em;
    gap: 3px;
    display: flex;
}

.task-category-chip {
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 8px;
    background: #eef0f3;
    color: #4a525c;
    letter-spacing: 0.02em;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-line-btn {
    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;
    background-color: var(--app-primary);
    color: white;
}
/* -------------------------------------------------- */
/*LV Card*/

.st-listview-card {
    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e6ea;
    border-left: 4px solid #9aa5b1;
    padding: 14px 16px;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-left-color 0.2s ease;
    cursor: pointer;
}