@font-face {
    font-family: "sarabun";
    src: url("../fonts/Sarabun-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: "sarabun";
    src: url("../fonts/Sarabun-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: "sarabun";
    src: url("../fonts/Sarabun-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "sarabun";
    src: url("../fonts/Sarabun-Regular.ttf");
    font-weight: 400;
}

:root {
    font-size: var(--rz-root-font-size);
    --sarabun: "sarabun";
    --dark1: "#444345";
    --dark2: "#A6A6A6";
    --black: "#000000";
}


#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;
    }



body {
    padding: 0;
    margin: 0;
    --rz-text-font-family: var(--sarabun);
    font-family: var(--rz-text-font-family);
    color: #444345;
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
    --rz-grid-header-background-color: #1C7557;
    --rz-grid-header-color: #FFFFFF;
    --rz-primary: #1C7557;
    --rz-grid-border-radius: 8px;
    --rz-link-border-radius: 32px;
    --rz-form-border-radius: 32px;
    --rz-datalist-border-radius: 8px;
    border-radius: 8px;
    --rz-textbox-border-radius: 8px;
    --rz-form-field-label-focus-color: #1C7557;
    --rz-input-focus-border: inset 0 0 0 1px #1C7557;
    --rz-input-focus-shadow: inset 0 0 0 1px #1C7557;
    --rz-input-border-radius: 8px;
    --rz-border-radius: 8px;
    --rz-upload-button-bar-padding: 0px;
    --rz-panel-menu-item-active-color: #1C7557;
    --rz-panel-menu-item-line-height: 40px;
    --rz-panel-menu-item-padding: 20px;
    --rz-dialog-title-background-color: #F0F5F4;
    --rz-form-field-filled-background-color: #FFFFFF;
    --rz-profile-menu-toggle-button-color: rgba(255, 255, 255, 0);
    --rz-link-hover-text-decoration: none;
    --rz-grid-stripe-background-color: #F0F5F4;
    --rz-grid-cell-color: #444345;
    --rz-dialog-title-color: #444345;
}


.rz-navigation-menu {
    right: 8px;
}



.rz-primary {
    color: #1C7557;
}


.rz-textbox {
    border-radius: 8px;
}



#sparePartType {
    --rz-datalist-item-padding: 0px;
    --rz-datalist-item-border: none;
    display: -webkit-inline-box;
    max-width: 1360px !important;
    width: 100%;
    justify-content: space-around !important
}



.rz-textbox {
    text-align: start;
}



.rz-datalist-data > li:last-child {
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
}



.navbar-toggler {
    border: none;
}



.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}



.rz-body {
    --rz-body-padding: 0;
}

a {
    color: #1C7557;
}

    a:hover,
    a:focus {
        color: #1C7557;
    }



.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MS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yA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}



    .blazor-error-boundary::after {
        content: "An error has occurred."
    }



.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}



    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }



        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }



.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}



    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }



#sparePartTypes {
    max-width: 1140px;
    position: relative;
    width: 100%;
    margin: auto;
    text-align: center;
    overflow: hidden;
}



.rz-dialog-alert-message {
    font-size: 24px;
    text-align: center;
}

.bg-grey1 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.rz-dialog {
    border-radius: 24px;
    background-color: #F0F5F4;
    --rz-dialog-header-color: #F0F5F4;
}

.rz-fileupload-buttonbar {
    background-color: #FFFFFF !important;
}

.rz-fileupload-row .rz-button {
    display: none !important;
}

.rz-form .rz-col .rz-fileupload .rz-fileupload-buttonbar {
    background-color: var(--rz-dialog-title-background-color) !important;
}

.rz-form .rz-col .rz-fileupload .rz-fileupload-content .rz-fileupload-files {
    background-color: var(--rz-dialog-title-background-color) !important;
}

.rz-col.rz-col-md-9 .rz-fileupload.bg-white .rz-fileupload-buttonbar {
    background-color: var(--rz-form-field-filled-background-color) !important;
}

.rz-col.rz-col-md-9 .rz-fileupload.bg-white .rz-fileupload-content .rz-fileupload-files {
    background-color: var(--rz-form-field-filled-background-color) !important;
}


@media screen and (max-width: 425px) {
    div #sparePartType {
        display: block;
        margin-bottom: 24px;
    }

    div#sparePartItems {
        display: block;
    }

    p#summary-header {
        font-size: 32px;
    }

    h1#main-text {
        font-size: 32px;
    }

    .rz-text-contrast {
        color: #1C7557;
    }

    .rz-navigation-menu {
        width: 100px;
        left: 0;
    }

    .rz-text-align-center {
        font-size: 36px;
    }

    .main-img {
        width: 90px;
        height: 90px;
        margin-bottom: 0px !important;
    }

    .main-box {
        width: 100%;
        font-size: 24px;
        gap: 40px !important;
    }

    .header, .title {
        font-size: 24px !important;
        font-weight: 600 !important;
        text-align: center !important;
    }

    .rz-label {
        font-size: 16px !important;
        margin-bottom: 8px;
    }

    .button.rz-light {
        font-size: 16px !important;
        font-weight: 700 !important;
        width: 110px !important;
        height: 40px !important;
        border-radius: 24px !important;
    }

    .rz-column-title, .choose-type {
        font-size: 16px !important;
        font-weight: 600;
    }

    .rz-cell-data {
        font-size: 16px !important;
    }

    .password {
        font-size: 16px !important;
        font-weight: 600;
        text-decoration: underline;
    }

    .section-title {
        font-size: 16px !important;
    }

    .operation {
        margin-bottom: 24px !important;
        margin-top: 24px !important;
    }

    .btn-action-primary {
        font-size: 12px !important;
        width: 60px !important;
        height: 24px !important;
    }

    .action-button {
        font-size: 12px !important;
        width: 90px !important;
        height: 24px !important;
    }

    .sparePartItems-text {
        font-size: 20px !important;
        font-weight: 600;
    }

    .home-button {
        font-size: 24px !important;
    }

    .placeholder-text {
        font-size: 16px !important;
    }

    .sparepartItem-img {
        width: 80px !important;
        height: 80px !important;
    }

    .sparepartItem-no-img {
        width: 64px !important;
        height: 64px !important;
        padding: 8px !important;
    }

    .body-head {
        font-size: 16px !important;
    }

    .option-padding {
        padding: 0px;
    }

    .sparepartType-btnT {
        border-radius: 24px 24px 0px 0px !important;
        border-bottom: 0px !important;
    }

    .sparepartType-btnB {
        border-radius: 0px 0px 24px 24px !important;
        border-bottom: 4px solid #1c7557 !important;
        border-top: 0px !important;
    }

    .sum-header {
        font-size: 24px !important
    }

    .sum-sub-header {
        font-size: 20px !important;
    }

    .sum-title {
        font-size: 16px !important;
    }

    .section-title-primary {
        font-size: 20px !important;
    }

    .login-raydant {
        margin-top: 16px !important;
        font-size: 24px !important;
    }

    .raydant-img {
        margin-top: 24px !important;
    }
}

#sm-screen {
    flex-wrap: inherit;
    display: flex;
    --rz-row-flex-wrap: inherit;
}


@media screen and (max-width: 1170px) {
    div#lg-nav-screen {
        display: none;
    }

    p#summary-header {
        font-size: 32px;
    }

    div#lg-screen {
        display: none;
    }

    .rz-text-align-center {
        font-size: 36px;
    }

    .main-img {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 0px !important;
    }

    .main-box {
        width: 100%;
        font-size: 24px;
        gap: 40px !important;
    }

    .sparepartType-btnT {
        border-radius: 24px 24px 0px 0px !important;
        border-bottom: 0px !important;
    }

    .sparepartType-btnB {
        border-radius: 0px 0px 24px 24px !important;
        border-bottom: 4px solid #1c7557 !important;
        border-top: 0px !important;
    }

    .rz-row > .rz-col-md-11, .rz-row > .rz-col-md-1 {
        flex-basis: unset !important;
        max-width: none !important;
        --rz-gap: 0px;
    }
}

@media screen and (min-width: 1170px) {
    div#sparePartType {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    div#sparePartItems {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    h1#main-text {
        font-size: 48px;
    }

    p#summary-header {
        font-size: 48px;
    }

    .rz-text-contrast {
        color: #1C7557;
    }

    .rz-profile-menu {
        color: #1C7557;
    }

    .rz-text-align-center {
        font-size: 36px;
    }

    .main-box {
        width: 40%;
        font-size: 40px;
    }
}

@media screen and (min-width: 1170px) {
    div#sparePartType {
        height: 260px;
    }

    div#sparePartItems {
        margin-top: 40px;
    }

    .sm-nav-screen {
        display: none;
    }

    h1#main-text {
        font-size: 48px;
    }

    p#summary-header {
        font-size: 48px;
    }

    div#sm-screen {
        display: none;
    }

    .rz-text-contrast {
        color: #1C7557;
    }

    .rz-profile-menu {
        color: #1C7557;
    }

    .main-box {
        width: 40%;
        font-size: 40px;
    }

    .rz-column-title {
        font-size: 18px !important;
        font-weight: 600;
    }

    .rz-cell-data {
        font-size: 18px !important;
    }

    .password {
        font-size: 24px !important;
        font-weight: 600;
        text-decoration: underline;
    }

    .choose-type {
        font-size: 24px !important;
        font-weight: 600;
    }

    .rz-text-align-center {
        font-size: 40px;
    }

    .sparepartType-space {
        --rz-datalist-padding: 8px 0px !important;
        --rz-datalist-item-vertical-margin: 8px 0px !important;
    }

    .sparepartType-position {
        justify-content: space-between !important;
    }
}

.sm-nav-screen {
    background-color: #1c7557;
}

.rz-text-align-center {
    color: #444345;
}

.main-box {
    margin-bottom: 40px;
}

.main-img {
    width: 137px;
    height: 137px;
    margin-bottom: 40px;
}

.action-button {
    font-size: 18px;
    font-weight: 600;
    width: 120px;
    height: 36px;
    border-radius: 32px;
}

.body-head {
    font-size: 24px;
}

.sparepartItem-img {
    width: 134px;
    height: 134px;
}

.sparepartItem-no-img {
    width: 134px;
    height: 134px;
    padding: 24px;
}

.sparepartItem-lebel {
    margin-bottom: 16px;
}

.rz-label {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.station-label {
    width: 140px;
}

.station-box {
    width: 100%;
}

.sparePartItems-font {
    font-size: 16px !important;
    font-weight: 500;
}

.home-button {
    width: 320px;
    text-align-last: center;
    font-size: 32px;
    width: 400px;
}

.button.rz-light {
    font-size: 30px;
    font-weight: 700;
    width: 189px;
    height: 70px;
    border-radius: 24px;
    border: 2px solid #1c7557;
    border-bottom: 4px solid #1c7557;
    background-color: #ffffff !important;
}

.header {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: #444345;
}

.operation {
    margin-bottom: 48px;
    margin-top: 48px;
}

.nav-link-text {
    color: #444345 !important;
    font-size: 20px;
    font-weight: 400;
}

.title {
    font-size: 40px;
    font-weight: 600;
    color: #444345;
}

h1 {
    font-size: 32px;
    font-weight: 500;
}

.section-title {
    font-size: 24px;
    font-weight: 500;
}

.section-title-primary {
    font-size: 30px;
    font-weight: 600;
}

.m-16 {
    margin: 16px;
}

.placeholder-text {
    font-size: 20px;
    font-weight: 400;
}

.text-dark1 {
    color: var(--dark1) !important;
}

.text-dark2 {
    color: var(--dark2) !important;
}

.rounded-8 {
    border-radius: 8px;
}

.rounded-24 {
    border-radius: 24px;
}

.rounded-32 {
    border-radius: 32px;
}

.rz-calendar .rz-inputtext#MaintenanceDate {
    font-size: 20px !important;
}

.btn-action-primary {
    border-radius: 32px;
    font-weight: 500;
    font-size: 18px;
}

.rz-column-title-content {
    font-size: 20px;
    padding: 6px;
}

.btn-outline-content {
    font-size: 18px;
}

.sparePartItems-text {
    color: var(--black);
    padding: 4px;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
}

ul.rz-datalist-data li {
    border: none;
    padding: 0;
}

.sparepartType-btn {
    text-align: center;
    border-radius: 24px;
    border: 2px solid #1c7557;
    background-color: #ffffff;
    color: #444345;
    border-bottom: 4px solid #1c7557;
    font-size: 24px;
    font-weight: 700;
}

.disabledBG {
    --rz-input-disabled-background-color: #F0F5F4;
    --rz-dropdown-trigger-icon-width: 0px;
    --rz-dropdown-trigger-icon-height: 0px;
}

.station-feild {
    justify-content: space-between !important;
    margin: 8px;
}

.img-container {
    width: 100%;
    height: 80%;
    overflow: hidden;
    position: static;
}

.object-fit-contain {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    position: static;
    top: 0;
    left: 0;
}

.sum-header {
    font-size: 40px;
    font-weight: 600;
}

.sum-sub-header {
    font-size: 32px;
    font-weight: 600;
}

.sum-title {
    font-size: 24px;
    font-weight: 600;
}

.home-button {
    width: 320px;
    text-align-last: center;
    font-size: 32px;
    background-color: #ffffff;
}

.home-bg {
    background-image: url("/images/raydant-bg.svg");
    --rz-layout-body-padding: 0px;
    padding-top: 24px;
    background-size: cover;
    background-position: center;
}

.dialog {
    position: static !important;
    margin: 24px !important;
    border-radius: 8px !important;
}

.dialog-color {
    color: #1C7557 !important;
}

.rz-login .rz-form .rz-messages-error {
    padding-left: 16px;
    position: relative;
}

.rz-login .rz-form .rz-form-row .rz-form-input-wrapper {
    display: block !important;
    text-align-last: start;
}

.login-text {
    font-size: 40px;
    color: #1C7557;
    font-weight: 700;
}

.login-raydant {
    color: #1C7557 !important;
    font-size: 40px;
    font-weight: 700;
}

.raydant-img {
    width: 120px;
    margin-top: 100px;
}

.rz-form-input-wrapper.rz-login-buttons {
    text-align-last: center !important;
}

.pipe {
    font-size: 24px;
    color: #DCDEE0;
    padding: 20px 0px;
}

.choose-type:hover, .choose-type:focus {
    background-color: #1C7557 !important;
    color: #ffffff !important;
}
.custom-card {
    border: 1px solid #000000; /* Border styles */
    border-radius: 5px; /* Optional: Add border radius for rounded corners */
    margin-bottom: 20px; /* Add margin at the bottom */
}

@media print {
    * {
        overflow: visible !important;
    }

    html {
        margin: 0 !important;
        padding: 0 !important;
    }

    .rz-layout {
        height: auto !important;
    }

    span {
        font-size: 12px;
    }

    .rz-header {
        display: none !important;
    }

    .rz-button {
        display: none !important;
    }

    .title {
        display: none !important;
    }

    .sum-sub-header {
        font-size: 20px;
    }

    .sum-title {
        font-size: 18px;
    }

    .rz-column-title-content {
        font-size: 14px;
    }

    .image-text {
        font-size: 14px !important;
    }

    .rz-card {
        page-break-after: always !important;
    }

    .custom-card {
        border: none !important;
    }

    .text-amount {
        display: none !important;
    }

    .rz-datatable-reflow .rz-data-grid-data > table, .rz-datatable-reflow .rz-datatable-tablewrapper > table, .rz-datatable-reflow .rz-datatable-scrollable-header-box > table, .rz-datatable-reflow .rz-datatable-scrollable-table-wrapper > table {
        display: flex; 
        flex-direction: column; 
        table-layout: auto; 
    }

    .rz-datatable-reflow .rz-datatable-scrollable-header-box > table,
    .rz-datatable-reflow .rz-datatable-scrollable-table-wrapper > table {
        overflow-x: auto; 
    }

        .rz-datatable-reflow .rz-data-grid-data > table > tbody,
        .rz-datatable-reflow .rz-datatable-tablewrapper > table > tbody,
        .rz-datatable-reflow .rz-datatable-scrollable-header-box > table > tbody,
        .rz-datatable-reflow .rz-datatable-scrollable-table-wrapper > table > tbody {
            display: flex; 
            flex-direction: column; 
            flex: 1; 
        }

    .rz-datatable-reflow .rz-data-row:not(:first-child) .rz-column-title {
        display: none;
    }

    .rz-datatable-reflow .rz-data-row {
        display: flex; 
        flex-direction: row; 
    }

        .rz-datatable-reflow .rz-data-row > td {
            flex: 1;
            border: none;
            text-align: left !important;
            width: 50px;
        }

    .rz-datatable-reflow .rz-cell-data {
        width: 100%; 
    }

    .rz-datatable-reflow .rz-column-title {
        display: block; 
    }
}

@page {
    margin: 0 !important;
}
