@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes flicker {
    50% {
        opacity: .55;
        filter: alpha(opacity=55);
    }
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        /* transform: translateY(-50px); */
        visibility: hidden;
    }
}

.fadeout {
    animation: fadeOutUp 1.5s ease-out forwards;
}

.blink {
    animation: blink 1s infinite;
}

.scan-lines {
    z-index: 99999;
    /* opacity: .7; */
    filter: alpha(opacity=70);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    background-image: radial-gradient(ellipse at center, transparent 0, transparent 60%, rgba(0, 0, 0, .25) 100%), repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 0, 0, .35) 3px);
    background-size: 100% 100%, 100% 6px;
    animation: flicker .3s linear infinite;
}

/*BASE*/
body {
    font: var(--w7-font);
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

#app :not(input):not(textarea) {
    user-select: none;
}

/*WALLPAPER*/
#wallpaper {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#wallpaper.show {
    display: block;
}

#wallpaper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*CONTEXT MENU*/
#context-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    visibility: hidden;
}

#context-menu.show {
    display: block;
}

/*CONTAINER*/
.dragContainer {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.resizeHandle {
    width: 8px;
    height: 8px;
    position: absolute;
    bottom: 0;
    right: 0;
    background: black;
    cursor: nwse-resize;
    clip-path: polygon(100% 4%, 0% 100%, 100% 100%);
}

.window-overlay {
    height: calc(100% - 10px);
    width: calc(100% - 12px);
    position: absolute;
    visibility: visible;
    bottom: 5;
    left: 5;
    background-color: black;
    opacity: 0.1;
}

.window.active {
    box-shadow: 2px 2px 10px 1px var(--w7-w-bd), inset 0 0 0 1px #fffa;
}

.window.active .window-overlay {
    visibility: hidden;
}


.window {
    display: flex;
    flex-direction: column;
    position: absolute;
    box-shadow: unset;
    /* transform: translate(30px, 30px); */
    height: 400px;
}


.window * {
    touch-action: none;
}

.window .title-bar {
    height: 21px;
}

.window .title-bar-text {
    text-shadow: unset;
}

.window.active .title-bar-text {
    text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff;
}

.window .title-bar-text img {
    height: 15px;
    margin-top: 2px;
}

.window .window-body {
    flex: 1 1 0%;
    position: relative;
}

.window-body>div{
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    overflow: hidden;
    flex-direction: column;
}

.window-body .function-bar{
    padding: 2px;
    height: 36px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.window-body .function-bar.small{
    height: 23px;
}

.window-body .menu-bar{
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.function-bar .btn {
    padding: 2px;
    display: flex;
    height: 100%;
    -webkit-box-align: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0);
}
.function-bar .btn:hover{
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -1px 1px inset;
}
.function-bar .btn:hover:active{
    border: 1px solid rgb(185, 185, 185);
    background-color: rgb(222, 222, 222);
    box-shadow: rgba(255, 255, 255, 0.7) 0px -1px 1px inset;
    color: rgba(255, 255, 255, 0.7);
}
.function-bar .btn img {
    height: 30px;
    width: 30px;
}
.function-bar.small .btn img {
    height: 18px;
    width: 18px;
}
.function-bar .separate{
    height: 80%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0px 2px;
}

.window-content {
    flex: 1 1 0%;
    overflow: auto;
    position: relative;
    border: 1px solid transparent;
    border-top-color: rgb(128, 128, 128);
}

#window-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#window-alert .window {
    width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 140px;
}

#window-alert .alert-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 100%;
}

.alert-message .msg {
    height: 100%;
    overflow: auto;
}
#window-alert .alert-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sunken-panel {
    border: 1px solid rgb(255, 255, 255);
    border-top-color: rgb(128, 128, 128);
    border-left-color: rgb(128, 128, 128);
    box-sizing: border-box;
    overflow: hidden;
    padding: 2px;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
}

.sunken-panel .sunken-panel-header {
    border-bottom: 1px solid #b7b2b2;
    border-right: 1px solid #b7b2b2;
    background: linear-gradient(#fff 20%, #f1f4fa 25%, #f1f4fa 43%, #d4dbee 48%, #e6eaf6);
    height: 25px;
    font-weight: 600;
    padding: 0 5px;
    align-content: center;
}

.sunken-panel .sunken-panel-body {
    overflow: auto;
    margin-top: 5px;
    padding: 0 5px;
}

.iPoQeT {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
    grid-template-rows: min-content;
    grid-auto-flow: row;
    background: unset;
    border: unset;
}

.iPoQeT thead,
.iPoQeT tbody,
.iPoQeT tr {
    display: contents;
}

.iPoQeT th {
    position: relative;
    align-content: center;
}

.iPoQeT tbody tr:first-child td {
    position: relative;
    margin-top: 0.5rem;
}

.iPoQeT tbody tr:nth-child(even) td {
    background: var(--w7-li-bg-hl);
}

.iPoQeT tbody tr:active td {
    background: var(--w7-li-bg-hl);
}

.iPoQeT tbody tr:first-child td:first-child::before {
    left: -1rem;
    width: calc(100% + 1rem);
}

.iPoQeT tbody tr:first-child td::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0px;
    width: 100%;
    height: 6px;
    background: var(--w7-li-bg-hl);
}

.resizer {
    display: block;
    position: absolute;
    cursor: col-resize;
    width: 3px;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-right: 2px solid transparent;
    background: var(--background-03);
    height: 50% !important;
}

table>tbody>tr.highlighted>td {
    background: var(--w7-li-bg-hl);
    border: 1px solid var(--w7-li-bd-hl);
    border-radius: var(--w7-el-bdr);
}

.ta-right {
    text-align: right !important;
}

.bg-succes {
    background: linear-gradient(#e9f7ef 20%,
            /* Sangat terang */
            #d4edda 25%,
            /* Hijau muda khas bootstrap */
            #d4edda 43%,
            #c3e6cb 48%,
            /* Shadow hijau */
            #dff0d8
            /* Finish */
        ) !important;
}

.bg-danger {
    background: linear-gradient(#fdeded 20%,
            #f8d7da 25%,
            #f8d7da 43%,
            #f5c6cb 48%,
            #f9e2e4) !important;
}

.bg-primary {
    background: linear-gradient(#e7f1ff 20%,
            #cfe2ff 25%,
            #cfe2ff 43%,
            #b6d4fe 48%,
            #d1e7ff) !important;
}

.bg-warning {
    background: linear-gradient(#fff3cd 20%,
            #ffeeba 25%,
            #ffeeba 43%,
            #ffee10 48%,
            #fff9e6) !important;
}

table.u-legend>tbody>tr>* {
    height: unset;
}

button.btn-icon {
    width: 30px;
    min-width: unset;
    padding: 0;
}

/*NAVBAR*/
#topnav {
    padding: 0 10px;
    width: calc(100% - 20px);
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(20px);
    display: flex;
    z-index: 1000;
    font-size: 10px;
    box-shadow: 0px -3px 10px 1px;
}

#topnav .nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item.nav-task {
    flex: 1
}

.nav-item .task-item,
.nav-item .tray-item {
    width: 23px;
    display: flex;
    border-bottom: 3px solid transparent;
}

.nav-item .task-item.active,
.nav-item .task-item:hover,
.nav-item .tray-item:hover {
    border-color: white;
}

#topnav .timer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.start-menu>ul,
.task-item ul,
.nav-messages ul {
    width: 150px;
    position: absolute;
    top: 28px;
    display: none;
    font-size: 12px;
}

.start-menu>img {
    height: 30px;
}

.start-menu>ul {
    left: 10px;
}

.nav-messages ul {
    right: 0;
}

.start-menu:hover {
    background-color: white;
}

.start-menu:hover>ul,
.task-item:hover ul,
.nav-messages:hover ul {
    display: block;
}

.task-item>img{
    height: 23px;
}



/*DOCKER*/

.dock {
    display: flex;
    align-items: center;
    position: fixed;
    padding: 0.2rem 0.5rem 0 0.5rem;
    bottom: 3%;
    left: 50%;
    height: 65px;
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
    border: 1px solid darkgrey;
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.555);
}

.dock .point {
    width: 5px;
    height: 5px;
    margin: 0;
    background: #f08080;
    border-radius: 50%;
    display: none;
    transition: 0.3s;
}

.dock .column {
    width: 2px;
    height: 45px;
    margin: 0 4px;
    background: var(--w7-li-bg-hl);
    border: none;
}

.dock .icon {
    position: relative;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    outline: none;
    transition: all 0.3s;
    transform: translate3d(0px, 0%, 0px);
    -webkit-tap-highlight-color: transparent;
}

.dock .icon::after {
    /*font-size: 1.5em;*/
    position: absolute;
    background-color: rgba(255, 255, 255, 0.39);
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    max-width: 80px;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
}

.dock .icon:hover hr {
    display: none !important;
}

.dock .icon:nth-child(1):hover::after {
    content: "Back Office";
}

.dock .icon:nth-child(2):hover::after {
    content: "PettyCash";
}

.dock .icon:nth-child(3):hover::after {
    content: "App store";
}

.dock .icon:nth-child(4):hover::after {
    content: "Message";
}

.dock .icon:nth-child(5):hover::after {
    content: "Itunes music";
}

.dock .icon:nth-child(6):hover::after {
    content: "VScode";
}

.dock .icon:nth-child(7):hover::after {
    content: "Mail";
}

.dock .icon:nth-child(8):hover::after {
    content: "Photos";
}

.dock .icon:nth-child(9):hover::after {
    content: "maps";
}

.dock .icon:nth-child(10):hover::after {
    content: "Calculator";
}

.dock .icon:nth-child(11):hover::after {
    content: "notes";
}

.dock .icon:nth-child(12):hover::after {
    content: "terminal";
}

.dock .icon:nth-child(13):hover::after {
    content: "Preferences";
}

.dock .icon img {
    width: 50px;
    transition: 0.2s;
    transform: translateY(-2.5px);
    border-radius: 10px;
}

.dock .icon:hover img {
    margin: 0 0 40px 0;
    width: 80px;
}

.dock .icon:hover+.icon img {
    width: 70px;
    margin: 0 0 25px 0;
}

.dock .icon:hover+.icon hr {
    display: none !important;
}

.dock .icon img:active {
    filter: brightness(0.6) drop-shadow(0 0 10px #2c2c2c);
}

.d-none {
    display: none !important;
}

/*TWEAK*/
ul[role=menu]>[role=menuitem][aria-haspopup=true] {
    padding: 0;
}

li[role=menuitem][aria-haspopup=true].has-divider::before {
    content: '';
    position: absolute;
    width: calc(100% - 28px);
    height: 2px;
    box-shadow: inset 0 1px #00000026, inset 0 -1px #fff;
    margin: 3px 0 2px;
    left: 28px;
    top: 25px;
}

#cmContainer.flip ul {
    right: 120px;
    left: unset;
}