﻿
.image-preview-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.dsm-fileupload-tbl-ftitle input[type="text"] {
    width: 90%;
    height: 25px;
}

.dsm-fileupload-tbl-fdesc input[type="text"] {
    width: 90%;
    height: 25px;
}


.dsm-fileupload-tbl-fdesc {
    width: 40%;
    font-size: 13px;
    height: 40px;
}

.ui-select .ui-btn {
    margin: 0;
    opacity: 1;
    height: 9px;
}

    .ui-select .ui-btn > span:not(.ui-li-count) {
        display: block;
        text-overflow: ellipsis;
        overflow: hidden !important;
        white-space: nowrap;
        margin-top: -5px;
    }

#zoomInZoomOut {
    display: flex;
    width: 90px;
    height: 50px;
    font-weight: bolder;
    float: right;
    margin: 8px 0 -90px 0;
    padding: 12px 0 0 0;
    text-align: center;
    /*background: url(Images/controls-bg.png) no-repeat 0 0;*/
    position: relative;
    /*top: -170px;*/
    left: -10px;
    z-index: 999;
    opacity: .90;
    filter: alpha(opacity=90);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
}

    #zoomInZoomOut button {
        margin: 7px;
        background-color: #508A26;
        transition: background-Color 400ms;
        -webkit-transition: background-color 400ms;
    }

        #zoomInZoomOut button:hover {
            background-color: #E6BF04;
            transition: background-Color 400ms;
            -webkit-transition: background-color 400ms;
        }

#directionalConfig {
    width: 90px;
    height: 90px;
    font-weight: bolder;
    float: right;
    margin: 8px 0 -90px 0;
    padding: 12px 0 0 0;
    text-align: center;
    background: url(Images/controls-bg.png) no-repeat 0 0;
    position: relative;
    top: 50px;
    left: -10px;
    z-index: 999;
    opacity: .90;
    filter: alpha(opacity=90);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
}

#directionalConfig-middle {
    margin-left: 12px;
}

#directionalConfig A {
    text-indent: -10000px;
    display: block;
    margin: 0;
    padding: 0;
    transition: background-image 400ms;
    -webkit-transition: background-image 400ms;
}

    #directionalConfig A#directional-up {
        width: 17px;
        height: 16px;
        background-image: url(Images/controls-up.png);
        margin: 0 auto;
    }

    #directionalConfig A#directional-left {
        clear: both;
        float: left;
        width: 16px;
        height: 17px;
        margin-top: 9px;
        background-image: url(Images/controls-left.png);
    }

    #directionalConfig A#directional-reset {
        float: left;
        width: 19px;
        height: 19px;
        margin: 8px;
        background-image: url(Images/controls-reset.png);
    }

    #directionalConfig A#directional-right {
        float: left;
        width: 16px;
        height: 17px;
        margin-top: 9px;
        background-image: url(Images/controls-right.png);
    }

    #directionalConfig A#directional-down {
        clear: both;
        width: 17px;
        height: 16px;
        background-image: url(Images/controls-down.png);
        margin: 0 auto;
    }

    #directionalConfig A#directional-up:hover {
        background-image: url(Images/controls-up-hover.png);
    }

    #directionalConfig A#directional-down:hover {
        background-image: url(Images/controls-down-hover.png);
    }

    #directionalConfig A#directional-left:hover {
        background-image: url(Images/controls-left-hover.png);
    }

    #directionalConfig A#directional-right:hover {
        background-image: url(Images/controls-right-hover.png);
    }

    #directionalConfig A#directional-reset:hover {
        background-image: url(Images/controls-reset-hover.png);
    }

/* Site Map public view */
.dsm-sitemap-public-view {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    overflow: hidden;
    padding: 0;
    background-color: #eef1f5;
    width: 100vw;
    height: 100vh;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: #333333;
}

    .dsm-sitemap-public-view #ulManageSiteMap {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }

        .dsm-sitemap-public-view #ulManageSiteMap > li {
            list-style: none;
            /*flex: 0 0 auto;*/
            margin: 0;
            padding: 0;
        }

    .dsm-sitemap-public-view #liManageSiteMap {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        width: 100%;
        height: auto;
    }

.dsm-sitemap-public-legend-section {
    display: flex;
    background: #ffffff;
    border: 1px solid #c5cad1;
    border-radius: 4px;
    padding: 18px 22px;
    margin: 0;
    box-shadow: 0 1px 4px rgba(36, 56, 80, 0.08);
}

.dsm-sitemap-public-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 18px;
    width: 100%;
}

.dsm-sitemap-public-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

    .dsm-sitemap-public-view .control-label,
    .dsm-sitemap-public-legend-item label {
        margin: 0;
        line-height: 20px;
        font-size: 14px;
        font-weight: normal;
        color: #333333;
        white-space: nowrap;
    }

.dsm-sitemap-public-legend-total-swatch {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 20px;
    border: 0;
}

    .dsm-sitemap-public-legend-total-swatch table {
        border-spacing: 0;
        border-collapse: collapse;
        width: 20px;
        height: 20px;
    }

    .dsm-sitemap-public-legend-total-swatch td {
        width: 10px;
        height: 10px;
        padding: 0;
        line-height: 0;
    }

        .dsm-sitemap-public-legend-total-swatch td div {
            width: 10px;
            height: 10px;
            border: 0;
            display: block;
        }

.dsm-sitemap-public-legend-swatch {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    flex-shrink: 0;
}

.dsm-sitemap-public-map-section {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

    .dsm-sitemap-public-map-section #divManageSiteMapContainer {
        flex: 1 1 0;
        min-height: 0;
        width: 100%;
        height: 100%;
        display: flex;
    }

    .dsm-sitemap-public-map-section #divSiteMapImage {
        flex: 1 1 0;
        min-height: 0;
        position: relative;
        width: 100%;
        height: 100%;
        touch-action: none;
    }

    .dsm-sitemap-public-map-section .canvas-container {
        width: 100% !important;
        height: 100% !important;
        touch-action: none;
    }

    .dsm-sitemap-public-map-section #canvasSiteMapImage {
        border: 0;
        display: block;
        width: 100% !important;
        height: 100% !important;
        touch-action: none;
    }

@media (max-width: 700px) {
    .dsm-sitemap-public-legend-section {
        padding: 10px 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .dsm-sitemap-public-legend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    .dsm-sitemap-public-legend-item {
        gap: 6px;
    }

        .dsm-sitemap-public-view .control-label,
        .dsm-sitemap-public-legend-item label {
            font-size: 12px;
            line-height: 16px;
            white-space: normal;
        }

    .dsm-sitemap-public-legend-total-swatch,
    .dsm-sitemap-public-legend-total-swatch table,
    .dsm-sitemap-public-legend-swatch {
        width: 16px;
        height: 16px;
    }

        .dsm-sitemap-public-legend-total-swatch td,
        .dsm-sitemap-public-legend-total-swatch td div {
            width: 8px;
            height: 8px;
        }
}

/* Lot detail popup (public + manage) */
#dsmLotDetailPopup,
#dsmLotDetailPopup * {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

#dsmLotDetailPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 530px;
    max-width: calc(100vw - 40px);
    min-height: 380px;*/
    background: #ffffff;
    border: 2px solid #8c8c8c;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #333333;
}

    #dsmLotDetailPopup .dsm-lot-detail-header {
        background: #5f6f82;
        color: #ffffff;
        padding: 8px 12px;
        font-weight: 700;
        font-size: 16px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

#dsmLotDetailPopupClose {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 12px;
}

#dsmLotDetailBody {
    padding: 20px 22px 24px;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    /*min-height: 300px;*/
}

    #dsmLotDetailBody .dsm-lot-detail-top {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        width: max-content;
    }

    #dsmLotDetailBody .dsm-lot-detail-swatch {
        width: 58px;
        height: 58px;
        border: 2px solid #3d3d3d;
        margin-top: 4px;
        flex-shrink: 0;
    }

    #dsmLotDetailBody .dsm-lot-detail-top-info {
        flex: 1;
    }

    #dsmLotDetailBody .dsm-lot-detail-lot-no {
        font-size: 18px;
        font-weight: 700;
        color: #1e2f45;
        margin-bottom: 6px;
    }

    #dsmLotDetailBody .dsm-lot-detail-summary-line {
        font-size: 16px;
        color: #354a63;
        line-height: 1.45;
        margin-bottom: 4px;
    }

    #dsmLotDetailBody .dsm-lot-detail-divider {
        border: 0;
        border-top: 1px solid #d9d9d9;
        margin: 16px 0;
    }

    #dsmLotDetailBody .dsm-lot-detail-columns {
        display: flex;
        gap: 20px;
    }

    #dsmLotDetailBody .dsm-lot-detail-column {
        flex: 1;
    }

    #dsmLotDetailBody .dsm-lot-detail-row {
        font-size: 16px;
        margin-bottom: 12px;
        color: #333333;
        line-height: 1.45;
    }

        #dsmLotDetailBody .dsm-lot-detail-row:last-child {
            margin-bottom: 0;
        }

    #dsmLotDetailBody .dsm-lot-detail-row-nowrap {
        white-space: nowrap;
    }

    #dsmLotDetailBody .dsm-lot-detail-row strong {
        font-weight: 600;
        color: #333333;
    }

        #dsmLotDetailBody .dsm-lot-detail-row strong.dsm-lot-detail-price {
            color: #244a86;
            font-weight: 700;
        }
