/* ================================================================
   publicStyle.css — CSS dùng chung cho tất cả các trang
   Tương đương với publicFunction.js cho JavaScript
   ================================================================ */


/* ----------------------------------------------------------------
   Loading spinner
   ---------------------------------------------------------------- */

.waitLoading {
    z-index: 100000;
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
}

.lds-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.lds-spinner div {
    transform-origin: 16px 16px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 8px;
    border-radius: 30%;
    background: #333;
}

.lds-spinner div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.lds-spinner div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1.0s; }
.lds-spinner div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.9s; }
.lds-spinner div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.8s; }
.lds-spinner div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.7s; }
.lds-spinner div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.6s; }
.lds-spinner div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.lds-spinner div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4s; }
.lds-spinner div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3s; }
.lds-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.lds-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.lds-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s;    }

@keyframes lds-spinner {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

.loadingDotSmart {
    width: 78px;
    height: 13px;
    margin-left: -39px;
    margin-top: -6px;
}

.dotLoadingItem {
    position: absolute;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 8px;
    transform: scale(0);
    animation: loadingBar 0.7s linear infinite;
}

@keyframes loadingBar {
    0%   { transform: scale(1); opacity: 0.8; background: #3b5998; }
    100% { transform: scale(0.4); opacity: 0.4; }
}

.loadingSmartError {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -0.5em;
    text-align: center;
    width: 100%;
    color: #BF1900;
}

.loadingSmartErrorClose {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.loadingSmartErrorClose:before {
    font-family: "Material Design Icons";
    content: "\F0156";
    /* mdi-close */
}

.networkError {
    text-align: center;
    color: #fff;
    background: #cc0000;
    font-size: 1em;
    padding: 10px 0;
}

.dot {
    height: 12px;
    width: 12px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 15px 5px;
}
