﻿#cache-list-container {
    border-right-color: gray;
    border-right-style: solid;
    border-right-width: 1px;
}

#cache-title {
    border-bottom-color: gray;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    width: 100%;
    padding: 4px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

#cache-refresh, #cache-delete {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#cache-refresh .image, #cache-delete .image {
    width: 24px;
    height: 24px;
    background-color: black;
    display: inline-block;
    margin-right: 4px;
}

#cache-refresh .image {
    -webkit-mask: url(../resources/change-facing.svg) no-repeat center;
    mask: url(../resources/change-facing.svg) no-repeat center;
}

#cache-delete .image {
    -webkit-mask: url(../resources/trash.svg) no-repeat center;
    mask: url(../resources/trash.svg) no-repeat center;
}

ul#cache-list {
    padding: 4px;
}

ul#cache-list li {
    border-bottom-color: lightgray;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    width: 100%;
    padding: 8px;
    list-style: none;
    cursor: pointer;
}

#cache-detail-container {
    position: relative;
}

#cache-detail-container label {
    font-weight: bold;
}

#cache-detail-overlay {
    display: none;
    opacity: 0.5;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-align: center;
    align-content: center;
}

#cache-detail-overlay.processing {
    display: block;
}

#cache-detail-overlay > img {
    width: 24px;
    height: 24px;
}

#cache-detail-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid gray;
    padding: 0;
    cursor: pointer;
}

#cache-detail-results-container {
    position: relative
}

#cache-detail-results-table td:first-child {
    min-width: 120px;
}

#cache-detail-results-table td {
    padding-top: 0.5em;
    vertical-align: top;
}

#cache-detail-result-textarea, #cache-detail-result-product-textarea, #cache-detail-result-channel-textarea, #cache-detail-result-error-textarea {
    width: 100%;
}

#cache-zoom-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    visibility: visible;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation-name: blur-in;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    transition: visibility 0.5s ease-out 0s;
    z-index: 20;
}

#zoom-overlay.zoom-hidden {
    visibility: collapse;
    animation-name: blur-out;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    transition: visibility 0s ease-out 0.5s;
}

#cache-zoom-content {
    background-color: #353535;
    border-radius: 16px;
    width: fit-content;
    height: 100%;
    position: fixed;
    top: 0;
    left: 50%;
    transform: scale(1) translateX(-50%);
    visibility: visible;
    overflow: hidden;
    opacity: 1;
    transition: transform 0.5s ease-out 0s;
    transition: opacity 0.5s ease-out 0s;
    z-index: 30;
}

#cache-zoom-content.zoom-hidden {
    visibility: collapse;
    transition: visibility 0s ease-out 0.5s;
    transform: scale(1.05) translateX(-50%);
    opacity: 0;
}

#cache-zoom-content #img-zoom {
    object-fit: contain;
    width: 100%;
    height: 100%;
    margin: auto auto;
}

@media (max-width: 768px) {
    #cache-list-container {
        border-bottom-color: gray;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-right: none;
    }

    ul#cache-list {
        padding: 4px;
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: flex-start;
    }

    ul#cache-list li {
        width: auto;
        border-bottom: none;
    }
}
