/*** COMMON ***/
body {
    background-color: whitesmoke;
    font-family: tahoma;
    font-size:12px;
    overflow: auto;
}

* {
    font-size: inherit;
    font-family: inherit;
}


input[type="text"], 
input[type="password"],
input[type="number"],
textarea, 
select {
    padding-block:0px;
    padding-inline:0px;
}


/* placeholder color*/
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: lightgray;
    opacity: 1; /* Firefox */
}

.pointer {cursor: pointer;}
.hide {visibility: hidden;}
.show {visibility: visible;}

.L {text-align:left;}
.R {text-align:right;}
.C {text-align:center;}

.fitt {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


/* Variable style */
[style*="--opa:"] {
    opacity: var(--opa);
}

[style*="--T:"] {
    margin-top: calc(var(--T) * 1px);
}

[style*="--F:"] {
    font-size: calc(var(--F) * 1px);
}

[style*="--w:"] {
    width: calc(var(--w) * 1px);
}

[style*="--wp:"] {
     width: calc(var(--wp) * 1% - 1px)
}

[style*="--h:"] {
    height: calc(var(--h) * 1px);
}

[style*="--hp:"] {
    height: calc(var(--hp) * 1% - 1px);
}

[style*="--hlp:"] {
    height: calc(var(--hlp) * 1% - 1px);
    line-height: calc(var(--hlp) * 1% - 1px);
    vertical-align: middle;
}

[style*="--hl:"] {
    height: calc(var(--hl) * 1px);
    line-height: calc(var(--hl) * 1px);
    vertical-align: middle;
}

[style*="--LF:"] {
    left: calc(var(--LF) * 1px);
}

/*** tab ***/
tab-nl {
    float:right;
    display: block;
    width:100%;
    height: 0px;
}

tab {
    position:relative;
    float:left;
    display:block;
    min-height: 25px;
    line-height: 25px;
    vertical-align: middle;
}

tab-R {
    right:0;
    position:absolute;
}

T_A_B {
    position: absolute;
    float:left;
    display:block;
    min-height: 25px;
    line-height: 25px;
    vertical-align: middle;
    z-index: 1; 
}

/*** REQUIRED ***/
.required {
    background-color: #ffe0b3 ;
    border: none;
    outline: none;
    border-style: solid;
    border-width: 1px;
}

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.required-icon {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 25px;
    height: 25px;
    background-image: url('../_img/bt_edit2.png');
    background-size: 25px 25px;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: blink 1s 3; /* กระพริบทุก 1 วินาที  infinite */
}

@keyframes blink-to-hide {
  0% {
    background-image: none;
  }
  16.6% {
    background-image: url('../_img/bt_correct.png');
  }
  33.3% {
    background-image: none;
  }
  50% {
    background-image: url('../_img/bt_correct.png');
  }
  66.6% {
    background-image: none;
  }
  83.3% {
    background-image: url('../_img/bt_correct.png');
  }
  100% {
    background-image: none;
  }
}

/*** PAGE TITLE ***/
tab.header-title-bar {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 39px;
    background-color: #4267B2;    
    z-index: 99;
}

tab.header-title-logo {
    height: 36px;
    background-color: #4267B2;
    background-image:url('../_img/icon_logo.png');
    background-size: 33px 33px;
    background-repeat:no-repeat; 
    background-position-y: 3px;
    background-position-x: 3px;    
    color:white;
}

tab.header-title-brand {
    font-family: Broadway;
    font-size: 18px;
    color:  lightskyblue;
    text-shadow: 1px 1px #fff;
}

.header-title-system-name {
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 20px;
    padding-right: 20px;
    background-color:#6C8BC9;
    color:  white;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #cccccc; 
}

.header-title-user {
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 15px;
    padding-right: 15px;
    background-color:#6C8BC9;
    text-align: center; 
    color: white;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #cccccc; 
}

.header-title-home {
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 15px;
    padding-right: 15px;
    background-color:#6C8BC9;
    color: white;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #cccccc; 
}

.header-title-home:hover {
    background-color:white;
    color: #6C8BC9;
}

tab.header-bar {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 39px;
    background-color: #4267B2;
}

tab.header-container {
    margin: 3 3;
    width: 100%;
    height: 36px;
    background-color: #4267B2;
    background-image:url('../_img/icon_logo2.png');
    background-size:33px 33px; 
    background-repeat:no-repeat; 
    /*background-position: 2px 2px;*/
    line-height: 36px;
    vertical-align: middle;
    color:white;
}

tab.header-user {
    background-color:#6C8BC9;
    line-height:33px;
    vertical-align: middle;
    text-align: center; 
}

/* ALoT Masterpiece Purple Water Ripple Background */
.bg-alot-ripple {
    background-color: #ffffff;
    background-image: 
        /* Ripple 1: Main Sharp Impact (Central) */
        repeating-radial-gradient(ellipse 60% 35% at 50% 50%, 
            transparent 0, transparent 15%, 
            rgba(155, 89, 182, 0.6) 15.01%, rgba(155, 89, 182, 0.6) 15.1%, 
            transparent 15.11%, transparent 20%),
        /* Ripple 2: Secondary Sharp Waves (Inner Offset) */
        repeating-radial-gradient(ellipse 60% 35% at 51% 51%, 
            transparent 0, transparent 18%, 
            rgba(103, 58, 183, 0.3) 18.01%, rgba(103, 58, 183, 0.3) 18.05%, 
            transparent 18.06%, transparent 23%),
        /* Hard Gloss: Perspective highlight for sharp reflection */
        radial-gradient(ellipse 80% 40% at 50% 42%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
        /* Deep Base Shadows: Amethyst and Lavender Layers */
        radial-gradient(circle at 10% 90%, #f3e5f5 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, #e1bee7 0%, transparent 50%),
        /* Surface Gloom: Final Atmosphere */
        radial-gradient(circle at 100% 100%, #9c27b0 0%, transparent 40%),
        /* The Horizon Truth */
        linear-gradient(180deg, #ffffff 10%, #fcf9ff 100%);
    background-attachment: fixed;
    background-size: cover;
}

.bg-gray {
    background: linear-gradient(#aaaaaa  , whitesmoke);
}

.bg-orange2 {
    background: linear-gradient(#fcd0aa, #ffffff);
}

.bg-green2 {
    background: linear-gradient(#38ef7d  , white);
}

.i-search-left {
    width: var(--w, 125px);
    height: 30px;
    line-height: 30px;
    flex-shrink: 0;
}

.i-search-holder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-style: solid; 
    border-width: 1px;
    border-color: lightgray;
    border-radius: 5px;
}

.i-search-holder input[type="text"] {
    border: none;
    outline: none;
    border-style: solid;
    border-width: 1px;
    border-color: #E6E6FA;
    /*
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: #E6E6FA;
    */
}

.i-search-space {
    flex-grow: 1;
    vertical-align: middle; 
}

.i-search-right {
    flex-shrink: 0;
    width: var(--w, 35px);
    height: 30px;
    display: flex;
    align-items: center;
}

.i-search-right:hover > img,  .i-search-right:hover > a{
    transition: filter 0.3s ease;
    filter: grayscale(0%) brightness(125%);
    cursor: pointer;
}

.search_left {
    width: var(--w, 45px);
    height: 30px;
    line-height: 30px;
    flex-shrink: 0;
}

.search_holder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-style: solid; 
    border-width: 1px;
    border-color: lightgray;
    border-radius: 10px;
    flex-grow: 1;
}

.search_holder[borderless = 'NOBODER'] {
    border-color: transparent;
}

.search_holder[connerless = 'NOCONNER'] {
    border-radius: 0px;
}

.search_holder input[type="text"] {
    border: none;
    outline: none;
    border-left-style: solid;
    border-left-width: 1px;
    border-left-color: #E6E6FA;
}

.search_space {
    flex-grow: 1;
    vertical-align: middle; 
}

.search_right {
    flex-shrink: 0;
    width: var(--w, 30px);
    height: 30px;
    display: flex;
    align-items: center;
}

.search_right:hover > img,  .search_right:hover > a{
    transition: filter 0.3s ease;
    filter: grayscale(0%) brightness(125%);
    cursor: pointer;
}

.command_left {
    width: var(--w, 30px);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.command_left[active='NO'] {
    opacity: 0.25;
    filter: grayscale(100%) brightness(150%);
}

.command_left:not([active='NO']):hover > img,  .command_left:not([active='NO']):hover > a{
    transition: filter 0.3s ease;
    filter: grayscale(0%) brightness(125%);
    cursor: pointer;
}

.command_holder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command_space {
    flex-grow: 1;
}

.command_right {
    flex-shrink: 0;
    width: var(--w, 30px);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.command_right[active="NO"] {opacity: 0.25;}

.command_right:not([active="NO"]):hover > img,  .command_right:not([active="NO"]):hover > a{
    transition: filter 0.3s ease;
    filter: grayscale(0%) brightness(125%);
    cursor: pointer;
}

.nine-dot-menu {
    cursor: pointer;
    display: block;
}

.nine-dot-menu > tab[is-dot='Y'] {    
    min-height: 5px;
    line-height: 5px;
    background: #bbb;
    margin: 2px;
    border-radius: 1px;
    transition: background 0.3s ease, transform 0.3s ease;
    will-change: transform, background-color;
}

.nine-dot-menu:hover > tab[is-dot='Y'] {
    background: #666;
    transform: scale(1);
    min-height: 5px;
    line-height: 5px;
}

/* Container Hover Effect */
.nine-dot-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

a.intable[link_type='HOT_LINK']:link > tab, a.intable[link_type='HOT_LINK']:visited > tab {
    color:black;
    text-decoration: none;
}

a.intable[link_type='HOT_LINK']:hover > tab, a.intable[link_type='HOT_LINK']:focus > tab {
    cursor:pointer;
    color:black;
    text-decoration: underline;
}

tab.T01 {background-image:url("../_img/STK_BOMB.png");}
tab.T02 {background-image:url("../_img/STK_PDI.png");}
tab.T03 {background-image:url("../_img/STK_IO.png");}
tab.T04 {background-image:url("../_img/STK_CLI.png");}

tab.M01 {background-image:url("../_img/STK_O4S.png");}
tab.M02 {background-image:url("../_img/POB_SELLER.png");}
tab.M03 {background-image:url("../_img/POS_CUST.png");}
tab.M04 {background-image:url("../_img/STK_ZONE.png");}


tab.menu-tab {
    background-repeat:no-repeat;
    background-size:50px 50px ;	
    background-position-x: center;
    background-position-y: 5px;    
}

tab.menu-tab:hover {
    background-color:  #E6E6FA ;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    cursor: pointer;
}

tab.report-tab {
    text-indent: 10%;
}

tab.report-tab:hover {
    background-color:  #E6E6FA ;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    cursor: pointer;
}

.OFLOW-Y {
    overflow-y: auto;
}

.OFLOW-X {
    overflow-x: auto;
}

.OFLOW-XY {
    overflow: auto;
}

.bg-gray2 {
    background: linear-gradient(#cccccc  , white);
}

/*** MODAL ***/
.dialog-frame {
    display:box;
    position: fixed;
    left:0px;
    top:0px;
    width:100%;
    height: 100%;
    background: whitesmoke;
    background: rgba(0, 0, 0, 0.4);
    z-index:99;
}

.dialog {
    display:block;
    background-color: #fefefe;
    position: relative;
    float: left;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 30%;
    height: 15%;
}

tab.msg {
    width:calc(100% - 1px);
    color:dodgerblue;
}

tab.save {
    width:calc(20% - 1px);
    background: linear-gradient(#38ef7d  , white);
    border-bottom-style: solid; 
    border-bottom-width: 1px;
    border-bottom-color: lightgray;
    border-right-style: solid; 
    border-right-width: 1px;
    border-right-color: lightgray;
    text-align: center;
    height:25px;
    line-height:25px;
    cursor:pointer;
}

tab.save:hover {
    background: linear-gradient(Yellow, white);    
}

tab.cancel {
    width:calc(20% - 1px);
    border-left-style: solid; 
    border-left-width: 1px;
    border-left-color: whitesmoke;
    border-top-style: solid; 
    border-top-width: 1px;
    border-top-color: whitesmoke;
    border-bottom-style: solid; 
    border-bottom-width: 1px;
    border-bottom-color: lightgray;
    border-right-style: solid; 
    border-right-width: 1px;
    border-right-color: lightgray;
    background-color:  whitesmoke ; 
    color:red;
    text-align: center;
    height:25px;
    line-height:25px;
    cursor:pointer;    
}

tab.cancel:hover {
    background: linear-gradient(Yellow, white);    
}