:root{
    --settings-title-height: 45px;
    --settings-title-icon-width: 70px;
    --folder-icon-color: #e6dc3bd1;
    --file-icon-color: #426d78e0;
}

.sub-page-setting { height: calc(100% - (var(--settings-title-height) + var(--footer-height))) !important; }
/* Title  */
.settingTitleTag {
    font-weight: bold;
    word-wrap: break-word;
    white-space: pre-wrap; 
    /*width: 60%;*/
    width: calc(100% - 110px);
}
.settingTitleTag.label-wrap { white-space: nowrap; }
/* Tab Menu */
.settingMenuTag { height: 4.39rem !important; }

/* PrintHead Legend Title */
.legendPrinteHeadTitle { font-size: 1em !important; }

#system-setting .nav-link {
    border-radius: 0px !important;
    font-size: 2rem;
    border-bottom: 1px solid #ddd;
    text-align: center;
    color: black;
}

.TitleSetting {
    height: 100%;
    border-right: 1px solid #ddd;
}

.contentsetting {
    border-top: 1px solid #ddd;
    overflow: auto;
    height: 100%;
}

.control-step { display: none; }
.step1 .control-step1,
.step2 .control-step2,
.step3 .control-step3 { display: block; }

/* Title Tab */
.setting-title-tab {
    height: var(--settings-title-height);
    width: 100%;
    background-color: var(--setting-title-color);
    display: flex;
    align-items: center;
}
.setting-title-tab > h5 {
    color: #FFFFFF;
    font-weight: bold;
    margin-left: 10px;
}
.setting-title-tab .title-tab-close {
    margin-left: auto;
    display: flex;
    width: var(--settings-title-icon-width);
    height: 100%;
    text-align: center;
}
.setting-title-tab .title-tab-close > i {
    margin-left: auto;
    color: #FFFFFF;
    font-size: xx-large;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.setting-title-tab .title-tab-close:active { background-color: var(--setting-title-active-color); }

/* Navbar Title Sub */
.navbar-title-sub {
    height: 45px;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    background-color: var(--main-color);
}
/* Navbar title sub - group icon */
.navbar-title-sub .group-icon {
    height: 100%;
    display: flex;
    align-content: center;
    align-items: center;
}
/* Navbar title sub - group icon - icon */
.navbar-title-sub .group-icon > a {
    width: var(--settings-title-icon-width);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-title-sub .group-icon > a > i { font-size: x-large; }
.navbar-title-sub .group-icon > a:active { background-color: var(--setting-title-active-color); }

/* Hide Scrollbar table preview database */
#calibSettingsContent select[tag="resolution"]::-webkit-scrollbar { display: none; }
#calibSettingsContent select[tag="resolution"] {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/*Hieu add 02/03/2022 - Set Datetime selector max width */
div#datetimepicker12 div { width: 100%; }
/* Hieu add border corlor - 08/03/2022 */
.border-main { border-color: var(--main-color) !important; }
.width-70 { width: 70% !important; }
.width-30 { width: 30% !important; }

/* *********************************************************** */
/* 15/03/2022 - SoPhol.Truong: add */
/* Set to display checkbox inline */
/* Large */
@media (max-width: 992px) {
    .checkbox-inline-display {
        display: flex;
        justify-content: space-between;
    }
}

/* 12/04/2022 -  Hieu update: set add font, add language always to top */
#v-pills-Fonts div nav, #v-pills-Language div nav {
    position: fixed;
    width: calc(100% - 80px);
    z-index: 2;
}

#v-pills-Fonts div table, #v-pills-Language div table {
    position: relative;
    top: 45px;
}

/* Set font size for print head settings */
/* [1.0.2.G] SoPhol.Truong: update */
@media (max-width: 1024px) {
    .head-setting-fontsize { font-size: 0.8em; }
}
@media (max-width: 800px) {
    .head-setting-lotname { max-width: 78px; }
    body[data-lang="nl"] .head-setting-lotname { max-width: 88px; }
}

.btn-delete-font,
.btn-delete-language{
    width: 100%;
    max-width: 95px;
}

.setting-printhead-info {
    display: flex;
    align-items: center;
}

/* 24/08/2022 - SoPhol.Truong: update */
.nav-pills .setting-tab-icon {
    height: 45px;
    width: 45px;
}
.nav-pills .setting-tab-icon { filter: invert(0%) sepia(100%) saturate(7434%) hue-rotate(211deg) brightness(115%) contrast(115%); }
.nav-pills .active .setting-tab-icon { filter: invert(100%) sepia(100%) saturate(8%) hue-rotate(155deg) brightness(102%) contrast(106%) !important; }

@media (min-width: 992px) {
    .phSettings-right-buttons { margin-right: 1.4rem!important; }
}

/* Reset counter */
.btn-delete-resettimer { margin-left: 8px; }
/* [1.0.4.G] 07/08/2023 - SoPhol.Truong: IO signal */
#tblIOSignal thead {
    background-color: var(--main-color);
    color: white;
}
#tblIOSignal thead tr {
    text-align: center;
}
#tblIOSignal tbody tr td:first-child {
    text-align: center;
}
#tblIOSignal.table-bordered td,
#tblIOSignal.table-bordered th {
    border: 1px solid var(--main-color) !important;
}

#tblIOSignal td,
#tblIOSignal th,
#modalCalculatorSpeed table td,
#modalCalculatorSpeed table th {
    padding-top: 5px;
    padding-bottom: 5px;
}
/* POD Custom string configuration */
#modalPODCustomString .nav-link.active{
    background-color: var(--main-color);
    color: white !important;
}
#modalPODCustomString .nav-link {
    color: black;
    font-size: unset;
    border-top-left-radius: .25rem !important;
    border-top-right-radius: .25rem !important;
}
.product-name {
    display: flex;
    flex-direction: column;
}
.custom-string-config-product-row {
    display: flex;
    flex-direction: row;
}
.custom-string-config-product-row .product-name {width: 95%;}
.custom-string-config-product-row .custom-checkbox {padding-left: 1.5em;}
.custom-string-config-product-row .custom-checkbox .custom-control-label::before,
.custom-string-config-product-row .custom-checkbox .custom-control-label::after {
    width: 21px;
    height: 21px;
}
.custom-string-config-product-row .product-enabled {
    display: flex;
    align-items: center;
}
#nav-customstring-configuration .border-main {height: 50vh;}
#lstCustomStringConfiguration {
    overflow: auto;
    /* boder-main - 52px */
    height: calc(50vh - 52px);
}
#lstCustomStringConfiguration li {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 5px;
    padding-left: 5px;
}
.custom-string-config-product-row .lb-product-name,
.custom-string-config-product-row .lb-product-fields {
    margin-bottom: 0px;
    /* [1.0.5.G+] 01/08/2024 - SoPhol.Truong: Add */
    word-break: break-all;
}
#sltCustomStringDestination {
    /* 100% - Header */
    height: calc(100% - 32px);
}
#modalPODCustomString .navbar-title-sub {height: 35px;}
.pod-custom-properties {
    overflow: auto;
    height: calc(100% - 32px);
}
#sltCustomStringSource,
#sltCustomStringDestination {height: 300px;}
.custom-string-config-product-row .lb-product-fields {font-size: small;}
#reset-settings,#restore-settings,#backup-settings {display: grid;}
/* [1.0.6.G] 06/08/2024 - SoPhol.Truong: Sensor status */
#tblSensorStatus tr {
    display: flex;
    align-items: center;
    flex-direction: row;
}
#tblSensorStatus td { 
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: row;
}
.sensorstatus-icon {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-bottom: 0px;
    margin-right: 10px;
}
.sensorstatus-icon[data-status="0"] {
    /* No sensor */
    background-color: #dc3545;
}
.sensorstatus-icon[data-status="1"] {
    /* Trigger sensor */
    background-color: #28a745;
}
.sensorstatus-icon[data-status="2"] {
    /* Trigger sensor */
    background-color: gray;
    border-width: 2px;
}
.sensorstatus-label {
    margin-bottom: 0px;
    margin-right: 10px;
    width: 20px;
}
#imgWifiNoNetworks,#imgWifiScanning{height: 150px;padding: 25px;}
#pnlWifiNoNetworks{display: flex;flex-direction: row;justify-content: center;}
/* Print job */
.pnl-print-job-footer{
    display:flex;
    width:100%;
}
.pnl-print-job-footer img{
    width:25px;
    height:25px;
}
.pnl-print-job-footer i{font-size:x-large;}
.pnl-print-job-footer .btn{margin-left:5px;}
.pnl-print-job-footer-right{
    flex:1;
    display:flex;
    flex-direction:row;
    justify-content:flex-end;
    margin-right:5px;
}
.pnl-print-job-tbl{height: calc(100vh - 185px);width: 100%;margin-bottom: 10px;overflow-x: auto;}
.btn-print-job-delete{width:100%;max-width:95px;}
.pnl-print-job-tbl::-webkit-scrollbar { display: none; }
.pnl-print-job-tbl{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
#modalAddPrintJobMessage .modal-body{max-height: calc(100vh - 295px);overflow-x:auto;}
#tblAddPJMessage .checkbox{padding-left: 16px;padding-right: 8px;}
#tblAddPJMessage .name{vertical-align:middle;}
/* Medium screen */
@media screen and (min-width: 768px) {
    .settingTitleTag {
        max-width: 28vw;
    }
}
/* Large screen */
@media screen and (min-width: 992px) {
    .settingTitleTag {
        max-width: 30vw;
    }
}

/* Settings for device custom size */
/* R60 Real */
/* 1024px x 600px */
@media screen and (max-width: 1024px) and (max-height: 600px) and (min-width: 1014px) and (min-height: 590px) {
    #nav-customstring-configuration .border-main {height: calc(100vh - 205px);}
    #lstCustomStringConfiguration {height: calc(100vh - 255px);}
    .pod-custom-properties {height: calc(100% - 32px);}
    #sltCustomStringSource,
    #sltCustomStringDestination {height: 240px;}
}
/* R10 */
/* 800px x 480px */
@media screen and (max-width: 805px) and (max-height: 480px) and (min-width: 795px) and (min-height: 470px) {
    #nav-customstring-configuration .border-main {height: 61vh;}
    #lstCustomStringConfiguration {height: calc(100vh - 230px);}
    #modalPODCustomString .modal-body {padding: 5px;overflow-x: hidden;}
    .pod-custom-properties {height: calc(100% - 42px);}
    .checkbox-inline-display label.label-wrap { max-width: 28vw; }
    /* [1.0.5.G] 04/11/2024 - SoPhol.Truong: R40 not support "gird" */
    #btn-sync-your-clock,#reset-settings .btn,#restore-settings .btn,#backup-settings .btn{max-width:40vw}
    #btn-configuring-print{max-width: 45vw;}
}