:root {
    /*--main-highlight-color: #f9671d;*/
    --main-highlight-color: #C64506;
    /*--main-background-color: #2296f3;*/
    --main-background-color: #0C76D0;
    /*--main-text-color:#52443D;*/
    --main-text-color:black;
}
/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--main-background-color); 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--main-highlight-color); 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    opacity: 0.8;
}
body {
    font-family: Segoe UI Historic, Segoe UI, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--main-text-color);
    font-size: 16px;
    line-height: 25px;
}
.color-header {
    background-color: var(--main-background-color);
    color: white;
    text-align: center;
}
.fa-solid {
    color: var(--main-highlight-color);
}
.fa-solid.btn {
    cursor: pointer;
    font-size: 20px;
    margin: 5px;
    transition-duration: .3s;
}
a {
    color: var(--main-background-color);
    text-decoration: none;
    cursor: pointer;
    transition-duration: 0.4s;
}
a:hover {
    /*text-decoration: underline;*/
    color: var(--main-highlight-color);
}
h3,h2,h1 {
    margin: 0px;
    padding: 0px;
    line-height: 45px;
    color: var(--main-highlight-color);
}
input:not([type=checkbox]):not([type=radio]), select, textarea {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    border: 1px solid #C2C2C2;
    box-shadow: 1px 1px 4px #EBEBEB;
    -moz-box-shadow: 1px 1px 4px #EBEBEB;
    -webkit-box-shadow: 1px 1px 4px #EBEBEB;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding: 5px;
    outline: none;
    height: 35px;
}
input:focus, select:focus, textarea:focus{
    border: 1px solid var(--main-highlight-color);
}
.highlight {
    color: var(--main-highlight-color);
}

.bold {
    font-weight: bold;
    color: var(--main-highlight-color);
}
button {
    border: 1px solid var(--main-highlight-color);
    background: white;
    color: var(--main-highlight-color);
    font-weight: bold;
    box-shadow: 1px 1px 4px #DADADA;
    -moz-box-shadow: 1px 1px 4px #DADADA;
    -webkit-box-shadow: 1px 1px 4px #DADADA;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    cursor: pointer;
    padding: 10px;
    transition-duration: 0.3s;
}
button:hover{
    background-color: var(--main-highlight-color);
    color: white;
}
button:hover i{
    color: white;
}
.product-code {
    color: var(--main-background-color);
}
.product-price {
    color: var(--main-highlight-color);
}
.loading-indicator {
    display: inline-block;
    position: fixed;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    z-index: 2000;
}
.loading-indicator:after {
    content: " ";
    display: block;
    border-radius: 50%;
    width: 0;
    height: 0;
    margin: 8px;
    box-sizing: border-box;
    border: 32px solid var(--main-highlight-color);
    border-color: var(--main-highlight-color) transparent var(--main-highlight-color) transparent;
    animation: loading-indicator 1.2s infinite;
}
@keyframes loading-indicator {
    0% {
        transform: rotate(0);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
        transform: rotate(900deg);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
        transform: rotate(1800deg);
    }
}


#notifications {
    position: fixed;
    top: 15%;
    right: 0;
    z-index: 99;
    color: #FFF;
    font-weight: bold;
}

.notification-container {
    width: 200px;
    position: absolute;
    right: -220px;
    padding: 10px;
    margin: 10px 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    text-shadow: -1px -1px 0 rgba(0,0,0,.5);
    transition-duration: 0.3s;
}
.notification-container button {
    width: 50%;
    margin: 10px 25% 0;
}
.slide-in {
    /*transition: 0.5s !important;*/
    right: 0 !important;
}

.notification-container.success {
    background: rgb(63,128,10);
}
.notification-container.error {
    background: rgba(254,26,0,.9);
}

#noti-number {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: red;
    border-radius: 50%;
    line-height: 20px;
    width: 20px;
    text-align: center;
    display: none;
    font-size: 14px;
}
#notification-container {
    width: 361px;
    background-color: aliceblue;
    border-radius: 6px;
    top: 45px;
    height: 385px;
    right: 0px;
    z-index: 100;
    color: gray;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    font-size: 12px;
}
#notification-container .not-seen {
    color: black;
    font-weight: bold;
}
#notification-container .noti-item{
    border-bottom: 1px solid lightgray;
    padding: 5px;
}
#notification-container .noti-data{
    display: inline-block;
    width: calc(100% - 45px);
    font-weight: normal;
    vertical-align: middle;
}

#notification-container .log-time{
    color: gray;
    font-size: 12px;
}
/* Popup arrow */
.arrow-pointer {
    position: absolute;
}
.arrow-pointer:after {
    content: "";
    position: absolute;
    top: -26px;
    right: 0px;
    border-width: 15px;
    border-style: solid;
    border-color: transparent transparent aliceblue transparent;
}
.hide {
    display: none!important;
}

.shadow {
    box-shadow: rgb(0 0 0 / 25%) 0px 14px 28px, rgb(0 0 0 / 22%) 0px 10px 10px;
}

#btn-top {
    position: fixed;
    right: 10px;
    bottom: 30px;
    background-color: white;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid;
}
#btn-top:hover {
    transform: scale(1.2);
}

.search-results {
    position: absolute;
    background-color: white;
    width: 400px;
    max-width: 80vw;
    text-align: left;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    z-index: 1;
}
.search-item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: #f9f9f9;
    cursor: pointer;
}
.search-item img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
    flex-shrink: 0;
}
.search-item .search-item-name{
    font-weight: bold;
    color: var(--main-color);
}
.search-item div{
    flex: 1;
}

.block-item{
    display: inline-block;
    border-radius: 10px;
    margin: 5px 5px 0;
    color: black;
    overflow: hidden;
    background-color: aliceblue;
    box-shadow: rgb(50 50 93 / 25%) 0 0px 5px -1px, rgb(0 0 0 / 30%) 0 1px 3px -1px;
}
.block-item:hover {
    outline: 1px solid var(--main-highlight-color);
}

#my-modal-container .dialog-title{
    margin: 0;
    background-color: var(--main-background-color);
    color: white;
    padding: 5px;
}

#my-modal-container .modal-content {
    position: fixed;
    top: 10%;
    left: 25%;
    width: 50%;
    background: linear-gradient(to bottom,#FFF,#F4F4F4) #FFF;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgb(0 0 0 / 30%);
    text-align: center;
    transform-origin: 50% 50%;
    animation: dialog 300ms cubic-bezier(.3,0,.1,1.4) forwards 1;
    will-change: transform,opacity;
    z-index: 100;
    padding-bottom: 20px;
}
#modal-content-inside {
    padding: 10px;
    max-height: 65vh;
    overflow-y: auto;
}
#dialog-close-button {
    color: white;
}
.fa-circle-xmark{
    top: -14px;
    position: absolute;
    font-size: 22px;
    cursor: pointer;
    right: -10px;
    transition: transform 0.3s ease;
    color: gray;
}
.fa-circle-xmark:hover {
    transform: rotate(180deg) scale(1.2);
    transform-origin: center;
    color: var(--main-highlight-color);
    transition: transform 0.3s ease, color 0.3s ease;
}
.arrow {
    border: solid;
    border-width: 0 3px 3px 0;
    padding: 3px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    right: 10px;
    top: 15px;
    transition-duration: .3s;
    float: right;
    margin-top: 6px;
}
.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transition-duration: .3s;
}
.oneline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.fade-out {
    opacity: 0;
    animation: fade-out 0.3s;
}
@keyframes fade-out {
    0% {opacity: 1;}
    100% {opacity: 0;}
}

#myDialog {
    position: fixed;
    z-index: 100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.dialog-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 
        0 6px 20px rgba(0,0,0,0.19);

    /* Animation */
    -webkit-animation: animatezoom 0.3s ease;
    animation: animatezoom 0.3s ease;
}

@-webkit-keyframes animatezoom {
    from {transform: scale(0.7); opacity: 0;}
    to   {transform: scale(1); opacity: 1;}
}

@keyframes animatezoom {
    from {transform: scale(0.7); opacity: 0;}
    to   {transform: scale(1); opacity: 1;}
}

.dialog-body {
    padding: 10px;
    text-align: center;
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

#myDialog button {
    margin: 0 15px;
    width: 90px;
}
#myDialog .button-yes {
    background-color: var(--main-highlight-color);
    color: white;
}

.search-results {
    position: absolute;
    background-color: white;
    width: 400px;
    max-width: 80vw;
    text-align: left;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    z-index: 1;
}
.search-item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: #f9f9f9;
    cursor: pointer;
}
.search-item img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
    flex-shrink: 0;
}
.search-item .search-item-name{
    font-weight: bold;
    color: var(--main-color);
}
.search-item div{
    flex: 1;
}
.info-row {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}
.info-row span {
    width: 125px;
    text-align: left;
}
.info-row input {
    flex-grow: 1;
}