/* Centralized CSS from Razor Pages */

/* From: Dashboard.razor */
.k-arcgauge-label {
        top: 55px !important;
    }

    .k-tilelayout-item-body.k-card-body.k-overflow-hidden {
        text-align: center;
    }

    .my-button-group {
        float: right;
    }

    .greeting {
        font-weight: 300;
        font-size: 28px;
        line-height: 37px;
        padding: 16px;
        background: #fafafa;
    }

/* From: PerformanceAndSales.razor */
.k-card-title {
        font-size: 20px;
        line-height: 24px;
        font-weight: 400;
        color: #000000
    }

    .sales {
        color: #666666
    }

    #tilelayout .k-card-header {
        border-style: none;
    }

/* From: Products.razor */
.listview-item {
        height: 270px;
        width: 230px;
        display: inline-flex;
        margin: 15px;
    }

    .background-changer {
        background: inherit;
        border: none;
    }

    .k-listview.k-d-flex.telerik-blazor {
        background: inherit;
        border: none;
    }

    .k-listview-header {
        text-align: center;
        border-bottom-width: 0
    }

/* From: EmCustEdit.razor */
.valShow {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: var(--kendo-color-on-app-surface, #212529);
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

    .valActive {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: #090909;
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

        .valActive:hover {
            /* background-color: var(--kendo-color-primary, #0d6efd); */
            /* font-size: 18px; */
            /* color: #f7f7f7; */
            cursor: pointer;
            background-color: #bfc6cc;
        }

    .valTbFont {
        font-size: 1rem;
        /* background-color: aliceblue; */
    }

    .valLbFont {
        font-size: 1rem;
        padding-block: .25rem;
        /* background-color: aliceblue; */
    }

    .valhdFont {
        font-size: 1.4rem;
        /* background-color: aliceblue; */
    }

    .dioIcon {
        width: 16px;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .dioIconBt {
        width: 16%;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

/* From: DeptRoleList.razor */
/* CENTER */

    /* non-sortable headers */
    .k-grid th.center-me {
        text-align: center;
    }

    /* sortable headers */
    th.center-me .k-cell-inner > .k-link {
        justify-content: center;
    }

    /* RIGHT */

    /* non-sortable headers */
    .k-grid th.align-right {
        text-align: right;
    }

    /* sortable headers */
    th.align-right .k-cell-inner > .k-link {
        justify-content: right;
    }

    /* unbound and non-filterable columns */
    .k-grid-header th.align-right.right-padding {
        padding-right: 12px;
    }

        /* filterable grid, sortable non-filterable columns */
        .k-grid-header th.align-right.right-padding > .k-cell-inner {
            margin-right: 0;
        }

/* From: MemberList.razor */
/* CENTER */

    /* non-sortable headers */
    .k-grid th.center-me {
        text-align: center;
    }

    /* sortable headers */
    th.center-me .k-cell-inner > .k-link {
        justify-content: center;
    }

    /* RIGHT */

    /* non-sortable headers */
    .k-grid th.align-right {
        text-align: right;
    }

    /* sortable headers */
    th.align-right .k-cell-inner > .k-link {
        justify-content: right;
    }

    /* unbound and non-filterable columns */
    .k-grid-header th.align-right.right-padding {
        padding-right: 12px;
    }
    /* Hide native browser eye icon in Edge if enabled */
    input.k-input-inner[type="password"]::-ms-reveal,
    input.k-input-innerinput[type="password"]::-ms-clear {
        display: none;
    }

    /* filterable grid, sortable non-filterable columns */
    .k-grid-header th.align-right.right-padding > .k-cell-inner {
        margin-right: 0;
    }

/* From: PdDailyPlanEdit.razor */
.positiveValuesRowFormatting {
        color: darkviolet;
        font-weight: 700;
    }

    .DeliveredValuesRowFormatting {
        color: green;
        font-weight: 700;
    }

    .PartialValuesRowFormatting {
        color: darkgoldenrod;
        font-weight: 700;
    }

    .time-warning-row {
        background-color: #fff3cd !important;
    }

    .time-error-row {
        background-color: #f8d7da !important;
    }

    .break-time-row {
        background-color: #d1ecf1 !important;
        font-style: italic;
    }

    .current-plan-detail-usage-row {
        background-color: #d1e7dd !important;
        color: #0f5132;
        font-weight: 600;
    }

    .edit-modal-readonly-field .k-input {
        background-color: #e9ecef !important;
        color: #000001 !important;
        border-color: #ced4da !important;
    }

    .edit-modal-editable-field .k-input {
        background-color: #ffffff !important;
        border-color: #86b7fe !important;
    }

    .edit-modal-field-legend {
        color: #6c757d;
        font-size: 0.85rem;
    }

    /* V4: Gray styling for RowNo = 0 items */
    .row-no-zero-disabled {
        background-color: #e9ecef !important;
        color: #6c757d !important;
        opacity: 0.7;
        cursor: not-allowed;
    }

    .row-no-zero-disabled:hover {
        background-color: #dee2e6 !important;
    }

    .row-no-zero-disabled:hover {
        background-color: #dee2e6 !important;
    }

    /* New Machine Selector Styles */
    .machine-selector {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 0px;
        align-items: center;
    }

    .machine-pill {
        border-radius: 50px;
        padding: 6px 20px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        border: 1px solid #e0e0e0;
        background-color: #ffffff;
        color: #424242;
        font-weight: 500;
        font-size: 0.95rem;
        user-select: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .machine-pill:hover:not(.active):not(.disabled) {
        background-color: #f5f5f5;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .machine-pill.active {
        background-color: #0b5ed7;
        /* Theme primary color */
        color: white;
        border-color: #0b5ed7;
        box-shadow: 0 4px 8px rgba(1, 6, 148, 0.3);
        font-weight: 600;
    }

    .machine-pill.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        filter: grayscale(100%);
    }

    @@keyframes pulse-red {
        0% {
            box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
        }
    }

    .machine-pill.active.blinking {
        animation: pulse-red 3s infinite;
        background-color: #0b5ed7;
        border-color: #0b5ed7;
    }

/* From: EditFg.razor */
.line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

    .m-Right {
        margin-right: 10px;
    }

    .disable {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: black
    }

    .low {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: yellow
    }

    .pass {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: lightgreen
    }

    .heigh {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: red
    }

    .NumnBatchNo {
        background-color: yellow
    }

    .FontDisable {
        height: 2vh;
        line-height: 2vh;
        font-size: 2.5vw;
        width: 100%;
        text-align: center;
        color: whitesmoke;
    }

    .FontActive {
        height: 2vh;
        line-height: 2vh;
        font-size: 2.5vw;
        width: 100%;
        text-align: center;
        color: black;
    }

    .FontActives {
        height: 1.5vh;
        line-height: 1.5vh;
        font-size: 1.5vw;
        width: 100%;
        text-align: center;
        color: black;
    }

    .highlightCellBackGround {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .k-dialog .k-dialog-content {
        white-space: pre-line;
        padding-block: 0px 16px;
        /* realigns text compared to w/o `pre-line` */
    }

/* From: EditFgOld.razor */
.line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

    .m-Right {
        margin-right: 10px;
    }

    .disable {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: black
    }

    .low {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: yellow
    }

    .pass {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: lightgreen
    }

    .heigh {
        margin: auto;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        padding: 10px;
        width: 20vw;
        height: 4.4vh;
        background-color: red
    }

    .FontDisable {
        height: 2vh;
        line-height: 2vh;
        font-size: 2.5vw;
        width: 100%;
        text-align: center;
        color: whitesmoke;
    }

    .FontActive {
        height: 2vh;
        line-height: 2vh;
        font-size: 2.5vw;
        width: 100%;
        text-align: center;
        color: black;
    }

    .highlightCellBackGround {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .k-dialog .k-dialog-content {
        white-space: pre-line;
        padding-block: 0px 16px; /* realigns text compared to w/o `pre-line` */
    }

/* From: ScanFgStore.razor */
.lb-hd {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
        text-align: center;
    }

    .lb-hds {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
        text-align: left;
    }

    .lb-val {
        background-color: #F0F0F0;
        color: #333;
        padding: 8px;
        font-weight: bold;
        border-radius: 4px;
        text-align: center;
    }

    .lb-cap {
        background-color: darkviolet;
        color: whitesmoke;
        width: 100%;
        height: 60px;
        /* font-weight: bold; */
        padding: 2px;
        border-radius: 4px;
        text-align: center;
        font-size: 3.2em;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center; /* ?????????????????? */
    }

    .section-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .positiveValuesRowFormatting {
        color: darkviolet;
        font-weight: 700;
    }

/* From: PageMachinePlanConfirmUpdatePlan.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: red;
        font-weight:bold;
        background-color: yellow;
    }

/* From: PagePdPlanFromFMListSelectMachine.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: red;
        font-weight: bold;
        background-color: yellow;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #E9ECEF;
    }

/* From: PagePdPlanFromSalePlanSelectMachine.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: red;
        font-weight: bold;
        background-color: yellow;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #E9ECEF;
    }

/* From: EditPack.razor */
.line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        ` bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

    .sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
        left: 10px;
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

    .lb-font-sm {
        font-size: 0.8vw;
    }

/* From: ListPack.razor */
.checkbox-success .k-checkbox:checked {
        background-color: #198754;
        border-color: #198754; 
    }

    .checkbox-danger .k-checkbox:checked {
        background-color: #dc3545;
        border-color: #dc3545; 
    }

/* From: PagePdPlanSelectMachine.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .CurrentRowFormatting {
        color: blue;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #e9ecef;
    }

    .rowLowerLimit {
        color: red;
    }

/* From: ProductionDeliveryReportDaily.razor */
.production-delivery-page .page-toolbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    .production-delivery-page .page-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
        color: #4b5563;
        font-size: 0.9rem;
    }

    .production-delivery-page .legend-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .production-delivery-page .legend-box {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        border: 1px solid #d1d5db;
    }

    .production-delivery-page .legend-box-incomplete {
        background-color: #fff3cd;
    }

    .production-delivery-page .legend-box-complete {
        background-color: #d4edda;
    }

    .production-delivery-page .panel-card {
        height: 100%;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .production-delivery-page .panel-title {
        margin-bottom: 10px;
        font-size: 1rem;
        font-weight: 700;
        color: #1f2937;
    }

    .production-delivery-page .delivery-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .production-delivery-page .summary-item {
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #f8fafc;
    }

    .production-delivery-page .summary-item label {
        display: block;
        margin-bottom: 4px;
        font-size: 0.82rem;
        color: #64748b;
    }

    .production-delivery-page .summary-item div {
        font-weight: 600;
        color: #0f172a;
        word-break: break-word;
    }

    .delivery-window-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding-right: 8px;
    }

    .delivery-window-title-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .delivery-compact-overview {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .delivery-compact-panel {
        padding: 10px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
    }

    .delivery-compact-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
        font-size: 0.78rem;
        font-weight: 700;
        color: #475569;
    }

    .delivery-compact-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 12px;
    }

    .delivery-compact-label {
        display: block;
        margin-bottom: 2px;
        font-size: 0.72rem;
        font-weight: 600;
        color: #64748b;
    }

    .delivery-compact-value {
        font-size: 0.9rem;
        font-weight: 600;
        color: #0f172a;
        word-break: break-word;
    }

    .delivery-weight-value {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

    .delivery-status-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 700;
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .delivery-status-pill-complete {
        background: #dcfce7;
        border-color: #86efac;
        color: #166534;
    }

    .delivery-status-pill-incomplete {
        background: #fef3c7;
        border-color: #fcd34d;
        color: #92400e;
    }

    .delivery-incomplete-row {
        background-color: #fff3cd !important;
    }

    .delivery-complete-row {
        background-color: #d4edda !important;
    }

    @@media (max-width: 991.98px) {
        .production-delivery-page .delivery-summary {
            grid-template-columns: 1fr;
        }

        .delivery-compact-overview {
            grid-template-columns: 1fr;
        }
    }

/* From: ListPdStore.razor */
.lb-hd {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
    }

    .lb-val {
        background-color: #F0F0F0;
        color: #333;
        padding: 8px;
        font-weight: bold;
        border-radius: 4px;
    }

    .lb-cap {
        background-color: #FE7743;
        color: whitesmoke;
        font-weight: bold;
        padding: 12px;
        border-radius: 4px;
        text-align: center;
    }

    .section-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* From: ListShelfPdStore.razor */
.lb-hd {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
    }

    .lb-val {
        background-color: #F0F0F0;
        color: #333;
        padding: 8px;
        font-weight: bold;
        border-radius: 4px;
    }

    .lb-cap {
        background-color: #FE7743;
        color: whitesmoke;
        font-weight: bold;
        padding: 12px;
        border-radius: 4px;
        text-align: center;
    }

    .section-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* From: ScanPdStore.razor */
.lb-hd {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
        text-align: center;
    }

    .lb-hds {
        background-color: #447D9B;
        color: white;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
        text-align: left;
    }

    .lb-val {
        background-color: #F0F0F0;
        color: #333;
        padding: 8px;
        font-weight: bold;
        border-radius: 4px;
        text-align: center;
    }

    .lb-cap {
        background-color: #FE7743;
        color: whitesmoke;
        font-weight: bold;
        padding: 12px;
        border-radius: 4px;
        text-align: center;
    }

    .section-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* From: FormulaShowRemainGood.razor */
.rowLowerLimit {
        color: red;
    }

    .valShow {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: var(--kendo-color-on-app-surface, #212529);
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

    .valActive {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: #090909;
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

        .valActive:hover {
            /* background-color: var(--kendo-color-primary, #0d6efd); */
            /* font-size: 18px; */
            /* color: #f7f7f7; */
            cursor: pointer;
            background-color: #bfc6cc;
        }

    .valTbFont {
        font-size: 1rem;
        /* background-color: aliceblue; */
    }

    .valhdFont {
        font-size: 1.4rem;
        /* background-color: aliceblue; */
    }

    .dioIcon {
        width: 16px;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .dioIconBt {
        width: 16%;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

    .bg-main {
        background: #ddd;
    }

    .bg-sub {
        background: #ccc;
    }

/* From: SaleCostCal.razor */
.rowLowerLimit {
        color: red;
    }

    .valShow {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: var(--kendo-color-on-app-surface, #212529);
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

    .valActive {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: #090909;
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

        .valActive:hover {
            /* background-color: var(--kendo-color-primary, #0d6efd); */
            /* font-size: 18px; */
            /* color: #f7f7f7; */
            cursor: pointer;
            background-color: #bfc6cc;
        }

    .valTbFont {
        font-size: 1rem;
        /* background-color: aliceblue; */
    }

    .valhdFont {
        font-size: 1.4rem;
        /* background-color: aliceblue; */
    }

    .dioIcon {
        width: 16px;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .dioIconBt {
        width: 16%;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

    .bg-main {
        background: #ddd;
    }

    .bg-sub {
        background: #ccc;
    }

/* From: ViewRawMatePlanPredict.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .CurrentRowFormatting {
        color: blue;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #e9ecef;
    }

    .rowLowerLimit {
        color: red;
    }

/* From: ViewRawMateSalePlanPredict.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .CurrentRowFormatting {
        color: blue;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #e9ecef;
    }

    .rowLowerLimit {
        color: red;
    }

/* From: EditRdFm.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .Top-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 5px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .smallerFont .k-numerictextbox {
        width: 100px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

    .k-wizard .k-wizard-step.k-state-focused, .k-wizard .k-wizard-step:focus {
        border-style: none;
        outline-style: none;
    }

    .k-tabstrip-content.k-state-focused, .k-tabstrip-content:focus,
    .k-tabstrip > .k-content.k-state-focused, .k-tabstrip > .k-content:focus {
        outline: none;
        border-style: none;
    }

    .k-step-current .k-step-text {
        color: #025ce2;
    }

    .negativeValuesRowFormatting {
        font-weight: normal;
    }

    .positiveValuesRowFormatting {
        font-weight: bold;
    }

    /* ON - regular and hover state */
    .my-switch.k-switch-on .k-switch-track,
    .my-switch.k-switch-on:hover .k-switch-track {
        background-color: #c33;
        color: #fff;
    }
    /* ON - focused state */
    .my-switch.k-switch-on.k-focus .k-switch-track {
        background-color: #C00;
        color: #fff;
    }

/* From: ListRdFm.razor */
.flex-container {
        display: flex;
        width: 100%;
        
    }

    .flex-item {
        margin-left: 1em;
    }

    .checkbox-success .k-checkbox:checked {
        background-color: #198754;
        border-color: #198754; 
    }

    .checkbox-danger .k-checkbox:checked {
        background-color: #dc3545;
        border-color: #dc3545; 
    }

/* From: EditFormulaView.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .Top-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 5px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .smallerFont .k-numerictextbox {
        width: 100px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {}

    div.smallerFontDetal {
        font-size: 12px;
    }

    .k-wizard .k-wizard-step.k-state-focused,
    .k-wizard .k-wizard-step:focus {
        border-style: none;
        outline-style: none;
    }

    .k-tabstrip-content.k-state-focused,
    .k-tabstrip-content:focus,
    .k-tabstrip>.k-content.k-state-focused,
    .k-tabstrip>.k-content:focus {
        outline: none;
        border-style: none;
    }

    .k-step-current .k-step-text {
        color: #025ce2;
    }

    .negativeValuesRowFormatting {
        font-weight: normal;
    }

    .positiveValuesRowFormatting {
        font-weight: bold;
    }

    /* ON - regular and hover state */
    .my-switch.k-switch-on .k-switch-track,
    .my-switch.k-switch-on:hover .k-switch-track {
        background-color: #c33;
        color: #fff;
    }

    /* ON - focused state */
    .my-switch.k-switch-on.k-focus .k-switch-track {
        background-color: #C00;
        color: #fff;
    }

    /* Hide Done button on Telerik Wizard */
    .k-wizard-finish,
    .k-wizard-save {
        display: none !important;
    }

/* From: ListFormulaView.razor */
.flex-container {
        display: flex;
        width: 100%;

    }

    .flex-item {
        margin-left: 1em;
    }

    .checkbox-success .k-checkbox:checked {
        background-color: #198754;
        border-color: #198754;
    }

    .checkbox-danger .k-checkbox:checked {
        background-color: #dc3545;
        border-color: #dc3545;
    }

/* From: EditRdRm.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
        left: 10px;
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

/* From: EditRdMc.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
        
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
        left: 10px;
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

/* From: MapMbPage.razor */
.line-break {
        content: '';
        width: 90%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-top: 2px;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

/* From: MapRmPage.razor */
.line-break {
        content: '';
        width: 90%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-top: 2px;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

/* From: EditRdTy.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
        
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
        left: 10px;
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

/* From: EditSalePlan.razor */
.highlightCellBackGroud {
        background-color: lightyellow;
    }

    .negativeValuesRowFormatting {
        color: red;
    }

    .positiveValuesRowFormatting {
        color: green;
    }

    .CurrentRowFormatting {
        color: blue;
    }

    .EnabledText {
        background-color: White;
    }

    .DisableText {
        background-color: #e9ecef;
    }

    .rowLowerLimit {
        color: red;
    }

/* From: ShippingEditPage.razor */
.valShow {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: var(--kendo-color-on-app-surface, #212529);
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

    .valActive {
        padding-block: .25rem;
        padding-inline: .5rem;
        border: 1px solid gray;
        border-radius: .25rem;
        /* background-color: LightSteelBlue; */
        font-size: 1rem;
        border-color: var(--kendo-color-border-alt, rgba(33, 37, 41, 0.2));
        color: #090909;
        background-color: aliceblue;
        overflow: hidden;
        height: 30px;
        text-overflow: ellipsis;
    }

        .valActive:hover {
            /* background-color: var(--kendo-color-primary, #0d6efd); */
            /* font-size: 18px; */
            /* color: #f7f7f7; */
            cursor: pointer;
            background-color: #bfc6cc;
        }

    .valTbFont {
        font-size: 1rem;
        /* background-color: aliceblue; */
    }

    .valhdFont {
        font-size: 1.4rem;
        /* background-color: aliceblue; */
    }

    .dioIcon {
        width: 16px;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .dioIconBt {
        width: 16%;
        height: 16px;
        outline: 0;
        line-height: 1;
        display: inline-flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: center;
        /* vertical-align: middle; */
        position: relative;
    }

    .line-break {
        content: '';
        width: 100%;
        height: 1px;
        /* position: absolute; */
        bottom: 0;
        left: 0;
        margin-bottom: 6px;
        background: #ccc;
        border-radius: 2px;
    }

/* From: WhShipping.razor */
.positiveValuesRowFormatting {
        color: darkviolet;
        font-weight: 700;
    }

    .DeliveredValuesRowFormatting {
        color: green;
        font-weight: 700;
    }

    .PartialValuesRowFormatting {
        color: darkgoldenrod;
        font-weight: 700;
    }

/* From: ListStoreStockGroup.razor */
.stock-weight-cell-error {
        border: #212529 solid 1px !important;
        background-color: var(--kendo-color-error, #dc3545) !important;
        color: var(--kendo-color-on-error, #f8f9fa) !important;
    }

    .stock-weight-cell-warning {
        border: #212529 solid 1px !important;
        background-color: var(--kendo-color-warning, #ffc107) !important;
        color: var(--kendo-color-on-warning, #212529) !important;
    }

    .stock-weight-cell-success {
       
    }

/* From: EditRdRm.razor */
.sticky-right {
        right: 0;
        transform: none;
        position: absolute;
        top: 50px;
        right: 26px;
    }

    .custom-form.k-form {
        font-size: 12px
    }

    .custom-form .k-combobox {
        width: 200px;
        text-align: right;
    }

    .custom-form .k-textbox {
        width: 280px;
    }

    .custom-form .k-numerictextbox {
        width: 140px;
    }

    .custom-form .k-textbox {
        width: 180px;
    }

    .custom-form .k-form-field {
        left: 10px;
    }

    div.smallerFontDetal {
        font-size: 12px;
    }

/* From: ListStoreShelf.razor */
.Salign {
        text-align:right;
        align-items: end;
    }


/* Telerik Grid Alternating Rows (Zebra Striping) for Light Mode */
.k-grid tr td {
    background-color: #ffffff !important;
}
.k-grid tr.k-alt td {
    background-color: #f2f2f2 !important;
}

.k-grid tr.k-master-row:nth-child(even) td, .k-grid tr.k-table-alt-row td { background-color: #f2f2f2 !important; }

/* ??????????????????????????????????? ??????????????????????????????????????? */
.k-button, .btn, .badge, .k-badge, .k-button-text { font-family: 'Sarabun', 'Prompt', 'Kanit', 'Leelawadee UI', 'Tahoma', sans-serif !important; line-height: 1.5 !important; }

/* Custom Theme Toggle Switch */
.custom-theme-switch { position: relative; width: 110px; height: 32px; border-radius: 16px; cursor: pointer; display: flex; align-items: center; transition: background-color 0.3s ease; overflow: hidden; user-select: none; }
.custom-theme-switch.is-light { background-color: #e5e5e5; }
.custom-theme-switch.is-dark { background-color: #000000; }
.custom-theme-switch .switch-text { position: absolute; font-weight: 700; font-size: 10px; letter-spacing: 0.5px; transition: opacity 0.3s ease; }
.custom-theme-switch.is-light .switch-text.text-left { opacity: 0; }
.custom-theme-switch.is-light .switch-text.text-right { left: 12px; color: #000; opacity: 1; }
.custom-theme-switch.is-dark .switch-text.text-left { right: 8px; color: #fff; opacity: 1; }
.custom-theme-switch.is-dark .switch-text.text-right { opacity: 0; }
.switch-thumb { position: absolute; top: 2px; width: 28px; height: 28px; border-radius: 50%; background-color: #ffffff; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.custom-theme-switch.is-light .switch-thumb { transform: translateX(90px); }
.custom-theme-switch.is-dark .switch-thumb { transform: translateX(2px); }
.switch-thumb svg { width: 16px; height: 16px; stroke: #000; stroke-width: 2; fill: none; }
