﻿body {
    height: 100%;
    margin: 0;
    padding: 0;
    /*padding-top: 118px;*/
    /* padding-bottom: 20px;*/
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    width: 80%;
}
#sidebarLeft {
    position: fixed;
    width: 150px;
    margin: 10px;
    border:solid, thin;
    border-color: black;
}

.app-shell {
    padding-top: 118px; /* match your fixed header height */
    box-sizing: border-box; /* IMPORTANT: padding counts toward 100vh */
    min-height: 100vh; /* you can keep min-vh-100 too, but this is explicit */
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 250px;
}

.text-warning {
    color: #ff6a00;
}
/*@media (min-width: 1600px) {
    .container {
        width: 1500px;
    }
}

@media (min-width: 1920px) {
    .container {
        width: 1875px;
    }
}*/

input[type=checkbox].trashCan {
    -webkit-appearance: none;
    -moz-appearance: none;
}

    input[type=checkbox].trashCan::-ms-check {
        display: none;
    }

input[type=checkbox].trashCan {
    position: relative;
    width: 1em;
    height: 1em;
    left: -1em;
    border: 1px solid black;
    /* Adjusts the position of the checkboxes on the text baseline */
    vertical-align: -2px;
    /* Set here so that Windows' High-Contrast Mode can override */
    color: black;
}

    input[type=checkbox].trashCan:checked {
        border: none;
    }

    input[type=checkbox].trashCan::before {
        border: none;
        font-family: 'FontAwesome';
        content: "\f1f8";
        position: absolute;
        font-size: 1.2em;
        top: -.2em;
        color: red;
        visibility: hidden;
    }

    input[type=checkbox].trashCan::after {
        border: none;
    }

    input[type=checkbox].trashCan:checked::before {
        /* Use `visibility` instead of `display` to avoid recalculating layout */
        visibility: visible;
    }

.trashCan.input[type=checkbox].trashCan:disabled {
    border-color: black;
    background: #ddd;
    color: gray;
}

input[type=checkbox].cb20 {
    position: relative;
    width: 20px;
    height: 20px;
    /* Adjusts the position of the checkboxes on the text baseline */
    /*vertical-align: -2px;*/
}

/*The following style informatoin is for the "Back to Top" button*/
.btnScollToTop {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 1050;
    background-color: rgba(200, 200, 200, 0.9);
    color: #333;
    border: none;
    outline: none;
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: background-color .15s ease, box-shadow .15s ease;
}
@media (min-width: 577px) {
    .btnScollToTop {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 4px;
    }
}
@media (max-width: 576px) {
    .btnScollToTop {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        font-size: 20px;
        line-height: 42px;
        text-align: center;
        bottom: 40px; /* clears footer safely */
        right: 12px;
        background-color: rgba(180, 180, 180, 0.85);
    }

        .btnScollToTop:hover {
            background-color: rgba(160, 160, 160, 0.95);
        }
}

.btnScollToTop:hover {
    background-color: #ddd;
    color: black;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
/*END: The following style informatoin is for the "Back to Top" button*/

/* BEGIN select2 styles */
span.imgCombo {
    position: relative;
    bottom: 2px;
    left: 2px;
}

span.imgCombo2 {
    position: relative;
    bottom: 15px;
    left: 2px;
    font-size: larger;
}

.my-select2-textarea {
    padding-right: 1px;
    border: none;
    margin-bottom: 3px;
    max-height: 21px;
    max-width: 28px;
    height: auto;
    width: auto;
}

.my-select2-textarea50 {
    padding-right: 1px;
    border: none;
    margin-bottom: 3px;
    max-height: 51px;
    max-width: 64px;
    /*height: auto;
    width: auto;*/
}

img.imgCombo {
    padding-right: 1px;
    border: none;
    margin-bottom: 2px;
    max-height: 39px;
    max-width: 52px;
    height: auto;
    width: auto;
}


img.imgCombo2 {
    height: 100px;
    padding-right: 1px;
    padding-top: 1px;
    border: none;
}

.my-select2-dropdown75 {
    /*height: auto;
    width: auto;*/
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: none;
    position: relative;
    bottom: 1px;
    max-height: 75px;
    max-width: 100px;
}

.my-select2-dropdown100 {
    /*height: auto;
    width: auto;*/
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: none;
    position: relative;
    bottom: 1px;
    max-height: 99px;
    max-width: 132px;
}


.imgBigCombo {
    height: 125px;
    padding-right: 1px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: none;
    position: relative;
    bottom: 1px;
    max-height: 100%;
    max-width: 100%;
}

canvas.colorCombo {
    height: 20px;
    width: 35px;
    border: solid 1px;
    position: relative;
    bottom: -3px;
    left: 3px;
}
/* END select2 styles */
.bg-lightgray {
    background-color: #aaaaaa;
}
/* END select2 styles */
.bg-verylightgray {
    background-color: #efefef;
    padding-left: .5em;
    margin-top: .5em;
}

.row-margin {
    margin-top: .5rem;
}

.imgsize-quartervga {
    max-height: 240px;
    max-width: 320px;
    height: auto;
    width: auto;
}
.imgsize-quartervga-alt {
    max-height: 210px;
    max-width: 290px;
    height: auto;
    width: auto;
}

.imgsize-sixthvga {
    max-height: 180px;
    max-width: 240px;
    height: auto;
    width: auto;
}

.imgsize-eighthvga {
    max-height: 120px;
    max-width: 160px;
    height: auto;
    width: auto;
}

.imgsize-sixteenthvga {
    max-height: 60px;
    max-width: 80px;
    height: auto;
    width: auto;
}

.imgsize-thritysecond32vga {
    max-height: 30px;
    max-width: 40px;
    height: auto;
    width: auto;
}

.imgsize-40 {
    max-height: 40px;
    max-width: 40px;
    height: auto;
    width: auto;
}

.imgsize-icon32 {
    max-height: 32px;
    max-width: 32px;
    height: auto;
    width: auto;
}

.imgsize-icon20 {
    max-height: 20px;
    max-width: 20px;
    height: auto;
    width: auto;
}

.select2-container {
    width: 100% !important;
}


.alternative_cls:nth-child(even) {
    background-color: whitesmoke
}

/*BEGIN Hopefully the next 2 styles fix issues with the dialog close button*/
/*.ui-dialog-titlebar-close {
    padding: 0 !important;
}

.ui-dialog-titlebar-close:after {
    content: '';
    width: 20px;
    height: 20px;
    display: inline-block;

    background-image: url(themes//base//images//ui-icons_777777_256x240.png);
    background-position: -196px -128px;
    background-repeat: no-repeat;
}
*/
/*END Hopefully the next 2 styles fix issues with the dialog close button*/

/* Wait Cursor class*/
html.wait, html.wait * {
    cursor: wait !important;
}

.no-leftright-padding{
    padding-left: 0px;
    padding-right:0px;
}
.control-label {
    padding-right: 0px;
}

.RDcheckbox input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
    display: inline;
    height: 1.5rem;
    bottom: -.25rem;
}

.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.center-vertical {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

[data-toggle="collapse"]:after {
    display: inline-block;
    
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f054";
    transform: rotate(0deg);
    transition: all linear 0.25s;
}

[data-toggle="collapse"].collapsed:after {
    transform: rotate(90deg);
}

.poppover-image {
    max-height: 340px;
    max-width: 480px;
    height: auto;
    width: auto;
}

/* table style*/
.table-xsm th,
.table-xsm td {    
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.noborder table, .noborder td {
    border: none !important;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}
.statusGood {
    color: darkgreen;
}

.statusWarning {
    color: darkorange;
}

.statusExpired {
    color: darkred;
}

.packaging-card {
    min-height: 44px;
    min-width: 44px;
    border-style: solid;
    border-width: 1px;
    /*margin-right: 3px;*/
    padding: 2px;
}

.popover {
    max-width: 100%;
}

.table-borderless > tbody > tr:first-child > td > a {
    display: inline-block; /* or block as needed */
    text-align: left;
}

.cell-center-horiz {
    width: 100%;
    text-align: center;
}

.cardProperties {
    min-width:330px;
    padding:0px;
    max-width:330px
}

.cardImage {
    max-height: 150px;
    max-width: 250px;
}
.cardImage2 {
    max-height: 140px;
    max-width: 230px;
}

.big-checkbox {
    transform: scale(2.0); /* makes it 2x bigger */
    margin-right: 8px;
}

/* Default layout */
.toy-number, .year-released {
    width: 65px;
}

.wx-100{
    width: 100%;
    max-width: 100%;
}

#tblStorages td .btn {
    margin-right: .25rem;
    margin-bottom: 0; /* keep them in one row */
}

.group-id {
    white-space: nowrap;
}
.casting-name, .variation-name {    
    word-wrap: break-word; /* for older browsers */
    overflow-wrap: break-word; /* modern standard */
}
/* put these in site.css (which now loads last) */
.popover {
    max-width: none;
}

.popover-body {
    padding: 0;
}

    .popover-body img.popover-image {
        display: block;
        width: auto;
        height: auto;
        max-width: 800px !important;
        max-height: 600px !important;
    }

/* Optional: modern browsers — scale to viewport */
@supports (max-width: min(90vw, 800px)) {
    .popover-body img.popover-image {
        max-width: min(90vw, 800px) !important;
        max-height: min(80vh, 600px) !important;
    }
}

.site-footer {
    background-color: whitesmoke;
    width: 100%;
    padding: 0.25rem 0;
    border-top:solid;
}

@media (max-width: 576px) {
    .site-footer {
        font-size: 0.95rem;
    }
}
@media print {
    body {
        color: black;
        font-size: 11pt;
    }

    table, tr, td, th {
        font-size: 8pt !important;
    }

    .cardProperties {
        width: 185px !important;
        min-width: 175px !important;
        max-width: 200px !important;
        margin: 0.5em !important;
        page-break-inside: avoid;
    }

    .cardImage {
        max-height: 100px;
        max-width: 150px;
    }

    .cardImage2 {
        max-height: 100px;
        max-width: 150px;
    }

    .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1em;
        justify-content: space-between;
        page-break-inside: avoid;
    }

    .card {
        width: calc(23% - 1em); /* 4 cards per row */
        box-sizing: border-box;
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ccc;
        padding: 0.5em;
        background: white;
    }

    .card-header {
        padding: 2px !important;
    }

    .toy-number, .year-released {
        width: 35px !important;
        font-size: 11pt;
    }

    .casting-link, .variation-link {
        white-space: normal !important;
        word-wrap: break-word; /* for older browsers */
        overflow-wrap: break-word; /* modern standard */
        display: inline-block;
        max-width: 100%;
    }

    .imgsize-icon32 {
        max-height: 20px;
        max-width: 20px;
        height: auto;
        width: auto;
    }
    .imgsize-40 {
        max-height: 28px;
        max-width: 28px;
        height: auto;
        width: auto;
    }
    .imgsize-quartervga {
        max-height: 160px;
        max-width: 240px;
        height: auto;
        width: auto;
    }

    .packaging-card {
        min-height: 32px;
        min-width: 32px;
        border-style: solid;
        border-width: 1px;
        /*margin-right: 3px;*/
        padding: 1px;
    }
    .col-span-2 {
        colspan: 2;
    }

    /* Hide non-print elements */
    nav, footer, .btn, .no-print {
        display: none !important;
    }

    /* Remove unnecessary styling */
    * {
        box-shadow: none !important;
        color: black !important;
    }

    a {
        color: inherit !important; /* remove link color */
        text-decoration: none !important; /* remove underline */
        pointer-events: none; /* disable clicking */
        cursor: default; /* default mouse cursor */
    }

        a.d-print-as-text::after {
            content: "" !important; /* no URL in print */
        }

        a.inventory-link {
            font-size: 0.65rem; /* adjust as needed */
            display: block; /* needed for text-align to work */
            text-align: right; /* right justify */
        }
    .card-header.newcase,
    .card-header.recolor,
    .card-header.thunt {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background-color: inherit !important;
        color: inherit !important;
    }

    .card-header,
    .card-header * {
        background: transparent !important;
    }

        .card-header a {
            background: transparent !important;
            color: inherit !important;
            text-decoration: none;
        }

    .card-header.newcase {
        background-color: lightyellow !important;
        color: darkblue !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

        .card-header.newcase a {
            color: darkblue !important;
        }

    .card-header.recolor {
        background-color: lightcyan !important;
        color: darkblue !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

        .card-header.recolor a {
            color: darkblue !important;
        }

    .card-header.thunt {
        background-color: #E6FFE6 !important;
        color: darkgreen !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

        .card-header.thunt a {
            color: darkgreen !important;
        }

    .card-footer {
        background-color: transparent !important;
    }


}
