#svg-plugin-wrapper .plugin-base-picker{
    background: white;
    width: 100%;
}

#svg-plugin-wrapper #svg-error-message{
    font-size: 12pt;
    color:red;
    background: #ccc;
    padding: 10px;
    text-align: center;
    display: none;
}

#svg-plugin-wrapper .svg-picker > svg {
    cursor: pointer;
}
#svg-plugin-wrapper .svg-view-wrapper{
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}
#svg-plugin-wrapper .svg-view-wrapper + .svg-view-wrapper{
    margin-top: 0;
}
#svg-plugin-wrapper #drawing-top,
#svg-plugin-wrapper #drawing-bottom{
    width: 1120px;
    max-width: 100%;
    display: block;
    line-height: 0;
}
#svg-plugin-wrapper #drawing-top svg,
#svg-plugin-wrapper #drawing-bottom svg{
   display: block;
   margin: 0 auto;
   width: 100%;
   height: auto;
}
#svg-plugin-wrapper .svg-view-label{
    position: absolute;
    top: 30px;
    left: 0;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    pointer-events: none;
}
#svg-plugin-wrapper .colors-blocks{
    height: 48px;
    display: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}
#svg-plugin-wrapper .colors-blocks > .color-block{
    border: 1px solid rgb(107, 107, 107);
    font-family: Arial,sans-serif;
    border-radius: 6px;
    height: 48px;
    width: 48px;
    display: inline-block;
    background: white;
    cursor: pointer;
    margin-right: 5px;
    font-size: 60px;
    padding: 14px 6px;
    vertical-align: top;
    text-align: center;

}
#svg-plugin-wrapper .colors-blocks > .color-block:first-child{
    margin-left: 10px;
}

/* Model list (pill-style radio buttons) */
#svg-plugin-wrapper .model-list{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
#svg-plugin-wrapper .model-list .model-item{
    display: inline-block;
    cursor: pointer;
    margin: 0;
}
#svg-plugin-wrapper .model-list .model-item input{
    display: none;
}
#svg-plugin-wrapper .model-list .model-item span{
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #aaa;
    border-radius: 16px;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
    background: #f5f5f5;
    color: #333;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}
#svg-plugin-wrapper .model-list .model-item input:checked + span{
    background: #2D5C88;
    color: #fff;
    border-color: #2D5C88;
}
#svg-plugin-wrapper .model-list .model-item:hover span{
    border-color: #2D5C88;
}

/* Chosen Colors panel — always visible */
#svg-plugin-wrapper #chosen-colors{
    z-index: 1;
    border-radius: 5px;
    border: 1px solid #aaa;
    background: white;
    padding: 10px;
    margin-top: 10px;
    color: #333;
    display: block;
    width: 225px;
    position: absolute;
    right: 0;
    top: 31px;
}
@media (max-device-width: 997px) and (orientation: portrait){
    #svg-plugin-wrapper #chosen-colors{
        top:67px;
    }
}
@media (max-device-width: 997px) and (orientation: landscape){
    #svg-plugin-wrapper #chosen-colors{
        top:67px;
    }
}

#svg-plugin-wrapper ul.color-names{
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
#svg-plugin-wrapper li.selected{
    color:green;
}
#svg-plugin-wrapper .svg-panel-text{
    margin-bottom: 5px;
    font-weight: bold;
}
#svg-plugin-wrapper ul.color-names li a{
    text-decoration: none;
    color:inherit;
}
#svg-plugin-wrapper .svg-buttons{
    float:right;
    z-index: 1;
    top: 0;
    margin-top: 5px;
}
#svg-plugin-wrapper #svg-loading{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,1.0);
    z-index: 2;
}


#ajaxloader{
    position: absolute;
    width: 30px;
    height: 30px;
    left: 50%;
    top: 40%;
    margin: 0 0 0 -30px;
    border: 8px solid #2D5C88;
    border-right-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 25px 2px #2D5C88;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin
{
    from { transform: rotate(0deg); opacity: 0.4; }
    50%  { transform: rotate(180deg); opacity: 1; }
    to   { transform: rotate(360deg); opacity: 0.4; }
}

#svg-plugin-wrapper .square-box{
    position: relative;
    width: 4.35%;
    min-width:30px;
    float:left;
    margin:5px;
    cursor: pointer;
    border: 1px solid rgb(107, 107, 107);
    border-radius: 8.70%;
    vertical-align: middle;
}
#svg-plugin-wrapper .square-box:before{
    content: "";
    display: block;
    padding-top: 100%;
}
#svg-plugin-wrapper {
    position: relative;
}
#svg-plugin-wrapper .square-content{
    position:  absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    color: black;
    background: transparent;
    padding-top: 20%;
    text-align: center;
    font-size: 70%;
    user-select:none;
}
#svg-plugin-wrapper .square-content div {
    display: table;
    width: 100%;
    height: 100%;
}
#svg-plugin-wrapper .square-content span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    color: white;
}
#svg-plugin-wrapper .clear-divider {
    clear:both;
    width:100%;
    height:1px;
}
#svg-plugin-wrapper .btn{
    background-color: rgb(221, 221, 221);
}

/* Serial lookup section */
.serial-lookup-section{
    margin-top: 30px;
    clear: both;
}
.serial-lookup-section h3{
    margin-bottom: 4px;
}
.serial-filter-note{
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
#serial-table.dataTable{
    font-size: 12px;
    font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}
#serial-table.dataTable thead th,
#serial-table.dataTable thead td{
    padding: 6px 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
#serial-table.dataTable tbody td{
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}
#serial-table tbody tr{
    cursor: pointer;
}
#serial-table tbody tr:hover{
    background-color: #e8f0fe !important;
}
#serial-table tbody tr.selected-row{
    background-color: #cde0f7 !important;
}
/* Unmapped fabric code in chosen-colors */
#svg-plugin-wrapper .color-names .unmapped{
    color: #888;
    font-style: italic;
}

@media (min-width: 568px){
    #svg-plugin-wrapper .svg-buttons{
        top:-40px;
    }
}
@media (max-width: 997px){
    #svg-plugin-wrapper .square-content{
        padding-top: 15%;
    }
}
@media (min-width: 998px){
    #svg-plugin-wrapper .square-content{
        padding-top: 16%;
    }
}
@media (min-width: 1300px){
    #svg-plugin-wrapper .square-content{
        padding-top: 20%;
    }
}
@media (min-width: 1600px){
    #svg-plugin-wrapper .square-box{
        width: 4.48%;
    }
}
