@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* conflict with old magento styles */
.admin__scope-old .use-tailwind input[type=text] {
    font-weight: 400;
    font-size: inherit;
    height: inherit;
}

.bms-panel-backdrop {
    z-index: 849;
    position: fixed;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0.6;
    background-color: #1F2937;
}

.bms-modal-backdrop {
    z-index: 859;
    position: fixed;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0.6;
    background-color: #1F2937;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

th.column-sorted-asc, th.column-sorted-desc {
    padding-right: 2.7rem;
}

th.column-sorted-asc:before, th.column-sorted-desc:before {
    margin-top: -1em;
    position: absolute;
    right: 1rem;
    top: 50%;
}

th.column-sorted-asc:before {
    content: '\2193';
}

th.column-sorted-desc:before {
    content: '\2191';
}


span.badge {
    width: 85%;
    border-radius: 6px;
    padding: 3px 6px;
    text-align: center;
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
}

span.badge-invisible {
    text-align: left;
}

span.badge-round {
    width: 50%;
    color: #303030 !important;
}

/* New: blue (suggests a fresh start) */
span.badge-blue {
    border: 1px solid #1e40af; /* blue-800 */
    background-color: #bfdbfe; /* blue-100 */
    color: #1e40af; /* blue-800 */
}

/* In progress: light-blue (indicates something is ongoing) */
span.badge-light-blue {
    border: 1px solid #3B82F6; /* blue-500 */
    background-color: #eff6ff; /* blue-50 */
    color: #3B82F6; /* blue-500 */
}

/* Canceled: gray (gray for neutrality) */
span.badge-gray {
    border: 1px solid #4b5563; /* gray-800 */
    background-color: #f3f4f6; /* gray-100 */
    color: #4b5563; /* gray-800 */
}

/* Disabled or Secondary: light-gray (suggests neutrality or disabled) */
span.badge-light-gray {
    border: 1px solid #a3a3a3; /* gray-500 for text and border */
    background-color: #f9fafb; /* gray-50 for background */
    color: #a3a3a3; /* gray-500 for text */
}

/* Error: red (red for an error or stop) */
span.badge-red {
    border: 1px solid #991b1b; /* red-800 */
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
}

/* Warning: light-red (suggests caution, not as severe as an error) */
span.badge-light-red {
    border: 1px solid #ef4444; /* red-500 for text and border */
    background-color: #fef2f2; /* red-50 for background */
    color: #ef4444; /* red-500 for text */
}

/* Complete: green (associated with success or completion) */
span.badge-green {
    border: 1px solid #065f46; /* green-800 */
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
}

/* New or In-Progress: light-green (suggests a fresh or ongoing process) */
span.badge-light-green {
    border: 1px solid #10b981; /* green-500 for text and border */
    background-color: #ecfdf5; /* green-50 for background */
    color: #10b981; /* green-500 for text */
}

/* Pending: yellow Yellow or Orange (implies waiting or caution) */
span.badge-yellow {
    border: 1px solid #854d0e; /* yellow-800 */
    background-color: #fef3c7; /* yellow-100 */
    color: #854d0e; /* yellow-800 */
}

span.badge-indigo {
    border: 1px solid #4f46e5; /* indigo-800 */
    background-color: #e0e7ff; /* indigo-100 */
    color: #4f46e5; /* indigo-800 */
}

span.badge-purple {
    border: 1px solid #6d28d9; /* purple-800 */
    background-color: #f3e8ff; /* purple-100 */
    color: #6d28d9; /* purple-800 */
}

span.badge-pink {
    border: 1px solid #be185d; /* pink-800 */
    background-color: #fbcfe8; /* pink-100 */
    color: #be185d; /* pink-800 */
}

span.badge-orange {
    border: 1px solid #f97316; /* orange-500 for text and border */
    background-color: #fff7ed; /* orange-50 for background */
    color: #f97316; /* orange-500 for text */
}

span.badge-dark-red {
    background: #ffc6c6;
    border: 1px solid #d00000;
    color: #d00000;
}

/* Hide the content divs by default */
.badge-tip {
    display: none;
}

/* Position the content divs absolutely (if you want them to appear over other content) */
.badge-tip {
    position: absolute;
    /* Position it where you want, e.g., top, right, bottom, left, z-index etc. */
}

/* Use the sibling combinator to display the content div when hovering the badge */
.badge:hover + .badge-tip,
.badge-tip:hover {
    display: block;
    z-index: 10;
    background-color: #fef3c7;
    color: #4b5563;
    padding: 1em;
    border: 1px solid #854d0e;
    border-radius: 10px;
    text-align: left;
}

.badge-tip p {
    margin: 0.2em 0;
    font-size: 1.0em;
}

.tooltip {
    position: relative;
    display: inline-block;
    width: 75%;
}

.tooltip .hover-me {
    border-radius: 6px;
    padding: 3px 6px;
    text-align: center;
    vertical-align: top;
    display: inline-block;
    margin-top: 0;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    opacity: 0;
    text-align: left;
    border-radius: 10px;
    padding: 1em;
    border: 1px solid #854d0e;
    background-color: #fef3c7;
    color: #4b5563;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 90%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: visibility 0.2s ease-in, opacity 0.2s ease-in;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext {
    scroll-behavior: smooth;
}

.tooltip:hover .hover-me:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 77%;
    visibility: visible;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #555;
}

.page-wrapper .laravel-content-page .page-title-wrapper {
    display: block;
    padding: 10px 0px;
    font-family: 'Roboto-Regular';
}

.page-wrapper .laravel-content-page .page-content {
    padding: 0;
}

.bms-page-button-disabled {
    cursor: default !important;
    opacity: 0.5;
}

.fas:before {
    font-family: 'Font Awesome 5 Free';
    padding-right: 5px;
}

.far:before {
    font-family: 'Font Awesome 5 Free';
    padding-right: 5px;
}

.fal:before {
    font-family: 'Font Awesome 5 Free';
    padding-right: 5px;
}

.fab:before {
    font-family: 'Font Awesome 5 Free';
    padding-right: 5px;
}

.fa:before {
    font-family: 'Font Awesome 5 Free';
    padding-right: 5px;
}

.thumbnail-image {
    width: 60px;
    height: 60px;
}

.zoomed-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) scale(0);
    width: 50rem;
    height: 50rem;
    border: 1px solid #ccc;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    z-index: 10;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.img-container .zoomed-image.visible {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(1);
}

.fa-arrow-up:before {
    text-align: center;
    padding: 2px 3px !important;
    transform: rotate(45deg) !important;
    display: inline-block;
}

.fa-arrow-down:before {
    text-align: center;
    padding: 2px 3px !important;
    transform: rotate(45deg) !important;
    display: inline-block;
}

#scanner-section {
    width: auto;
    float: left;
}

#sub-message {
    color: forestgreen;
}

#error-display {
    color: red;
}

html body .use-tailwind .bms-admingrid-grid thead th.mass-action .bms-select {
    height: 2.6rem;
    min-width: 5rem;
    text-indent: 999px;
    background-position: calc(100% - 6px) -44px, 100%, calc(100% - 3.2rem) 0;
}

html body .use-tailwind .bms-admingrid-grid thead th.mass-action .bms-select.checked {
    height: 2.6rem;
    min-width: 5rem;
    background-position: left, calc(100% - 6px) -44px, 100%, calc(100% - 20px) 0;
}

.admin__scope-old .bms-admingrid-grid input[type=date] {
    color: #888 !important;
    background-color: #fff;
    font-weight: unset;
    font-size: unset;
    height: unset;
}
div#BmsPanelContent .main-col {
    width: unset;
    float: unset;
}
