*
{
    font-family: sans-serif;
    box-sizing: border-box;
}

body
{
    margin: 0;
    padding: 0;
    display: inline-block;
    min-width: 100%;
}

.main
{
    background-color: #dddddd;
    padding: 20px;
}

.row-top
{
    display: flex;
    background-color: #2a3a8f;
    color: white;
    padding: 10px 5px;
    justify-content: space-between;
}

.row-top > span:nth-child(2)
{
    font-size: 12px;
}

.row-nav
{
    background: linear-gradient(#e1e1e1, #c1c1c1);
    border-top: 1px solid white;
    border-bottom: 1px solid #303030;
}

.desktop-nav
{
    display: flex;
    flex-direction: row;
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
    max-height: 24px;
}

.header
{
    z-index: 100;
    position: relative;
}

.desktop-nav ul
{
    list-style: none;
}

.desktop-nav > li > a
{
    text-decoration: none;
    text-shadow: -1px -1px rgba(0,0,0,0.5), 1px 1px rgba(255,255,255,0.5);
    color: rgba(0,0,0,0.5);
    font-size: 12px;
    padding: 5px 0;
}

.submenu a
{
    font-size: 12px;
    color: black;
    text-decoration: none;
    padding: 3px;
}

.desktop-nav > li > a
{
    text-transform: uppercase;
    width: 100px;
    border-right: 1px solid #303030;
    transition: all 0.2s;
}

.desktop-nav > li:nth-child(n+2)
{
    border-left: 1px solid white;
}

.desktop-nav > li > a:hover
{
    background: linear-gradient(#c1c1c1, #e1e1e1);
}

.desktop-nav > li.has-submenu
{
    display: flex;
    flex-direction: column;
}

.desktop-nav .submenu
{
    display: none;
    opacity: 0;
    transition: all 0.2s;
    background-color: #d1d1d1;
    padding: 0;
    border: 1px solid black;
    box-shadow: 1px 1px 1px 1px #00000080;
    position: relative;
    left: -1px;
}

.submenu li:nth-child(n+2)
{
    border-top: 1px solid #303030;
}

.submenu > li > a
{
    display: block;
    transition: all 0.2s;
}

.submenu > li > a:hover
{
    background-color: #2a3a8f;
    color: white;
}

.message-content
{
    margin-bottom: 50px;
}

.desktop-nav .has-submenu:hover .submenu
{
    display: block;
    opacity: 1;
}

.tox-tinymce-aux {
    z-index: 100000 !important;
}

.footer
{
    background-color: #2a3a8f;
    color: white;
    text-align: center;
    padding: 5px;
}

.main
{
    padding-top: 30px;
    padding-bottom: 30px;
}

.boxed
{
    max-width: 1200px;
    margin: 0 auto;
}

.quote-scroll-wrapper
{
    overflow-x: auto;
    max-width: 8.4in;
    padding-top: 20px;
    margin: 0 auto;
}

.quote-page-wrapper
{
    box-shadow: 2px 2px 2px 2px #00000080;
    width: 8.0in;
    margin: 0 auto;
    padding: 0.5in;
}

h1
{
    font-size: 20px;
    margin: 0;
    text-shadow: 1px 1px 1px #00000080;
}

h2
{
    font-size: 14px;
    margin: 0;
}

.quote-form-top
{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.info-line
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 5px;
}

.info-line span:nth-child(2)
{
    text-align: right;
}

.address
{
    border: 1px solid #c1c1c1;
    padding: 10px;
    position: relative;
    min-width: 200px;
}

.address a
{
    position: absolute;
    top: 0;
    right: 0;
}

.address h3
{
    font-size: 12px;
    margin: 0;
    margin-top: 5px;
}

.address span
{
    font-size: 12px;
}

h1:after
{
    content: '';
    display: block;
    background-color: #9a9a9a;
    border-bottom: 1px solid white;
    height: 1px;
    margin-top: 10px;
}

.product-activity:after
{
    content: '';
    display: block;
    background-color: #9a9a9a;
    border-bottom: 1px solid white;
    height: 1px;
    margin-top: 10px;
}

.sep-bottom:after
{
    content: '';
    display: block;
    background-color: #9a9a9a;
    border-bottom: 1px solid white;
    height: 1px;
    margin-top: 10px;
}

.sep-top:before
{
    content: '';
    display: block;
    background-color: #9a9a9a;
    border-bottom: 1px solid white;
    height: 1px;
    margin-top: 10px;
}

.spaced
{
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn-page
{
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid black;
    margin: 5px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: bold;
    color: #303030;
}

.btn-page.page-current
{
    color: #2a3a8f;
}

.btn-page:hover
{
    background-color: #c1c1c1;
}

.form-section
{

}

.form-section:after
{
    content: '';
    display: block;
    background-color: #9a9a9a;
    border-bottom: 1px solid white;
    height: 1px;
    margin-top: 30px;
}

.form-small-wrapper
{
    width: 300px;
    margin: 0 auto;
    padding: 20px;
}

.form-header
{
    border-bottom: 1px solid black;
}

.form-footer
{
    display: flex;
    flex-direction: row;
}

.form-title
{
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 10px;
    text-align: center;
}

.form-body
{
    padding-top: 20px;
    padding-bottom: 20px;
}

.form-field
{
    margin: 10px 0;
    font-size: 14px;
}

.field-title
{
    font-weight: bold;
}

.form-wrapper input:not([type="checkbox"])
{
    width: 100%;
    height: 20px;
    border: 1px solid black;
    display: inline-block;
}

.progress-outer
{
    padding: 1px;
    width: 500px;
    height: 20px;
    border: 1px solid black;
    background-color: #DDDDDD;
    border-radius: 5px;
}

.progress-inner
{
    height: 16px;
    width: 0;
    background-color: #00ff80;
}

.form-wrapper textarea
{
    width: 100%;
    height: 200px;
    border: 1px solid black;
}

.form-wrapper textarea.size-medium
{
    height: 50px;
}

.form-field[data-type="HIDDEN"]
{
    display: none;
}

.form-multi
{
    display: flex;
    column-gap: 20px;
    flex-wrap: wrap;
}

.form-multi > *
{
    flex-grow: 1;
}

.form-multi .form-field
{
    margin-top: 0;
}

.field-note
{
    font-size: 12px;
    color: #303030;
}

.form-wrapper select
{
    height: 20px;
    border: 1px solid black;
    width: 400px;
}

.form-submit
{
    display: inline-block;
    background-color: #2a3a8f;
    padding: 5px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.2s;
    font-size: 20px;
}

.form-image
{
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.form-break {
    flex-basis: 100%;
    height: 0;
}

.drop-target
{
    width: 100%;
    padding: 5px;
    border: 1px dashed black;
}

#quote-assign-form
{
    background-color: white;
    border: 1px solid black;
    padding: 5px;
}

#quote-assign-form h3
{
    margin: 0;
}

.rep-none-text
{
    display: none;
}

#quote-assign-form.rep-none .rep-none-text
{
    display: block;
}

#quote-assign-form > div
{
    display: inline;
}

#quote-assign-form.rep-none
{
    background-color: #e5b8b8;
    border-color: #d04e4e;
}

.image-select-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 10px;
    padding-top: 10px;
}

.image-select-grid img
{
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    position: relative;
}

.image-select-grid img.active
{
    border: 2px solid black;
}

.image-select-grid img:after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.image-select-grid img:hover::after
{
    opacity: 1;
    background-color: #FFFFFF80;
}

.image-select-grid img.active:after
{
    opacity: 1;
    background-color: #2a3a8f40;
}

.image-select-filters .form-image
{
    width: 150px;
    height: 150px;
    border: 1px solid black;
}

.image-select-filters
{
    margin-top: 10px;
    border-top: 1px solid black;
    display: flex;
    gap: 20px;
    align-items: center;
}

.image-select-search
{
    border-bottom: 1px solid black;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 10px;
}

.section-hidden
{
    display: none !important;
}

.field-hidden
{
    display: none !important;
}

.search-form-wrapper
{
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.filter-list
{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-list p
{
    margin: 0;
}

.totals-row
{
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 5px;
}

.totals-row.sep
{
    border-top: 1px solid black;
    font-weight: bold;
}

.totals-sep
{
    border-bottom: 1px solid black;
}

.totals-value
{
    text-align: right;
}

.quote-text-wrapper
{

}

.quote-text pre
{

}

.quote-text
{
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.quote-text p
{
    margin: 0;
}

.quote-text ul
{
    margin: 0;
}

.quote-text-header
{
    font-size: 12px;
}

.quote-text-footer
{
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid darkgray;
    font-size: 11px;
    color: darkgray;
}

.button
{
    display: inline-block;
    padding: 5px;
    background-color: #d1d1d1;
    border-top: 2px solid #f1f1f1;
    border-left: 2px solid #f1f1f1;
    border-right: 2px solid #a1a1a1;
    border-bottom: 2px solid #a1a1a1;
    color: black;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.button:hover
{
    background-color: white;
}

.form-submit:hover
{
    background-color: #49559a;
}

.quick-search-wrapper
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 12px;
    margin-top: 10px;
}

.table-wrapper
{
    display: table;
    font-size: 12px;
    width: 100%;
}

.table-row
{
    display: table-row;
    text-decoration: none;
    transition: all 0.2s;
}

.table-row:not(.table-header):hover
{
    box-shadow: 0px 0px 2px 2px #00000080;
    z-index: 10;
    position: relative;
}

.table-row:not(.table-header) .table-cell
{
    color: black;
}

.table-text
{
    width: 100px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-text-long
{
    max-width: 300px;
}

.table-img img
{
    width: 100px;
    height: auto;
    object-fit: contain;
}

.table-text br
{
    display: none;
}

.table-cell
{
    display: table-cell;
    padding: 5px;
    text-decoration: none;
    position: relative;
    vertical-align: middle;
}

.table-cell > label
{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    display: flex;
    left: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.table-cell > label:hover
{
    background-color: #d1d1d1;
}

.table-row:nth-child(2n)
{
    background-color: aliceblue;
}

.table-header
{
    background-color: #49559a;
    color: white;
}

body.dialog-open
{
    overflow: hidden;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #00000040;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-window
{
    background-color: white;
    padding: 10px;
    box-shadow: 2px 2px 2px 2px #00000080;
    border-radius: 10px;
}

.dialog-form
{
    width: 80%;
    height: 80%;
    overflow-y: auto;
}

.dialog-window h3
{
    margin: 0;
}

.dialog-buttons
{
    text-align: center;
}

.dialog-button
{
    display: inline-block;
    width: 100px;
    background-color: black;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.dialog-button:hover
{
    background-color: #bfbfbf;
    color: black;
}

.loading
{
    position: relative;
    padding: 10px;
}

.loading:after
{
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    background-image: url('/img/loading.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-clip: content-box;
    opacity: 0;
    transition: all 0.2s;
}

.loading-visible:after
{
    opacity: 1;
}

.form-popup
{
    height: 100%;
}

.form-popup iframe
{
    width: 100%;
    height: calc(100% - 32px);
}

.additem-table
{
    margin-top: 20px;
}

.additem-table td
{
    min-width: 150px;
    vertical-align: top;
    padding-bottom: 20px;
}

.additem-table td:nth-child(1)
{
    font-weight: bold;
}

.additem-table td:nth-child(3)
{
    text-align: right;
}

.categories-outer
{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.category-list
{
    margin-top: 20px;
}

.category-form
{
    margin-top: 20px;
}

.sub-category
{
    margin-left: 20px;
}

.sub-category.has-subitems.closed:before
{
    content: '+';
}

.sub-category.has-subitems.open:before
{
    content: '-';
}

.sub-category.has-subitems:before
{
    width: 14px;
    height: 14px;
    border: 1px solid black;
    border-radius: 1px;
    line-height: 14px;
    font-size: 14px;
    font-weight: bold;
    color: black;
    position: absolute;
    left: -14px;
    text-align: center;
    display: inline-block;
}

.sub-category
{
    cursor: pointer;
    color: black;
    position: relative;
}

.sub-category:hover
{
    color: blue;
}

.sub-category
{
    padding-left: 5px;
}

.sub-category[data-depth="0"]:before
{
    display: none;
}

.category-list-wrap
{
    border-right: 1px solid black;
}

.cat-select-list
{
    max-height: 600px;
    overflow: auto;
    margin-top: 20px;
}

.edit-section
{
    position: relative;
    top: -12px;
}

.editable-section
{
    text-align: right;
}

.ship-field
{
    display: grid;
    gap: 20px;
    grid-template-columns: 200px 100px;
}

.totals-value
{
    min-width: 100px;
}

.staff-image
{
    width: 50px;
    height: 50px;
    object-fit: cover;
    object-position: center;
}

.staff-row:nth-child(2) .btn-up
{
    display: none;
}

.staff-row:last-child .btn-down
{
    display: none;
}

.tabs
{
    margin-top: 50px;
    font-size: 20px;
    display: flex;
    gap: 2px;
    z-index: 20;
    position: relative;
}

.tab
{

}

.tab-content
{
    position: relative;
    top: -1px;
    display: none;
    padding: 10px;
}

.tab-content.tab-active
{
    display: block;
}

.tab-active
{

}

.tox-tinymce
{
    min-height: 350px;
}

.image-grid
{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.image-grid-pos-wrap {
    display :flex;
    flex-direction: column;
    gap: 5px;
}

.image-grid-pos-wrap a {
    display :flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid black;
    color :black;
    font-size: 24px;
    font-weight :bold;
    background-color :white;
    text-decoration: none;
}

.image-grid img
{
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

.image-grid-item
{
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: #FFF;
    align-items: center;
}

.image-grid-item:first-child .btn-doc-up {
    pointer-events: none;
    color: grey;
    background-color: lightgray;
}

.image-grid-item:last-child .btn-doc-down {
    pointer-events: none;
    color: grey;
    background-color: lightgray;
}

.image-grid-item:first-child .btn-img-up {
    pointer-events: none;
    color: grey;
    background-color: lightgray;
}

.image-grid-item:last-child .btn-img-down {
    pointer-events: none;
    color: grey;
    background-color: lightgray;
}

.image-grid-item:nth-child(2n)
{
    background-color: #EEE;
}

.image-select-grid .image-caption
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    background-color: #00000080;
    color: white;
    font-size: 10px;
    pointer-events: none;
}

.image-select-grid .item-wrapper
{
    position: relative;
    width: 100px;
    height: 100px;
}

.image-grid .btn-del-image
{
    background-color: white;
    border: 1px solid black;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding: 5px 20px;
    height: 30px;
}

.image-grid .btn-del-doc
{
    background-color: white;
    border: 1px solid black;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding: 5px 20px;
    height: 30px;
}

.tab.tab-active {
    border-bottom: 2px solid #f1f1f1;
    border-right: 2px solid #f1f1f1;
    border-left: 2px solid #a1a1a1;
    border-top: 2px solid #a1a1a1;
}

.form-repeater
{
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 100px;
    align-items: center;
}

.form-repeater > .button
{
    height: 30px;
    position: relative;
    top: -10px;
}

@media only screen and (max-width: 1240px)
{
    .boxed
    {
        margin: 0 20px;
    }
}