﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

label {
    margin-bottom: 0 !important;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-width {
    max-width: 500px; /* Adjust the width as needed */
}

.receipt {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

    .item:last-child {
        border-bottom: none;
    }


@page {
    /*   size: 2.8in 11in;*/
    margin-top: 0cm;
    margin-left: 0cm;
    margin-right: 0cm;
    size: auto;
    margin: 0mm;
}

/* Remove padding and margin from the Select2 container */
.select2-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: Reduce spacing inside the Select2 dropdown */
.select2-selection {
    min-height: 1.5rem; /* Adjust this value if needed */
    padding: 0 !important;
    margin: 0 !important;
}
/* Remove extra spacing between form controls */
.form-control {
    margin-bottom: 0 !important;
}

/* Remove border-radius from the select control inside Select2 */
.select2-container .select2-selection--single {
    border-radius: 0 !important;
}

/* Remove border-radius from the actual form control */
.form-control {
    border-radius: 0 !important;
}

/*.small-image img {
    width: 16px;
    height: 8px;
}*/


.btn-custom-small {
    font-size: 12px;
    padding: 4px 8px;
}


.alert-sm {
    font-size: 0.875rem; /* Smaller text */
    padding: 0.5rem 0.75rem; /* Less padding */
    border-radius: 0.25rem; /* Optional: slightly rounded */
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it is above all other elements */
}

#loader {
    width: 3rem;
    height: 3rem;
}

.btn-default {
    border-radius: 0;
}


.btn {
    border-radius: 0; /* Removes the corner radius */
}

.select2-container {
    z-index: 500 !important; /* Higher than Bootstrap modal */
}

.offcanvas {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    margin: 20px;
}

    .offcanvas:hover {
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
        transform: translateY(-5px);
    }


hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}



/* Full-page overlay */
#dashboardloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears above all other elements */
    pointer-events: none; /* Allows interaction with elements underneath */
}

/* Centering only the spinner */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Makes spinner clickable if needed */
    background: none; /* Removes any background */
    position: relative; /* Ensures it doesn’t take full screen */
}

/* Adjust spinner size */
.spinner-border {
    width: 4rem; /* Larger size */
    height: 4rem;
    border-width: 0.4rem;
}

.custom-spinner {
    border-top-color: #0c768a !important;
}


@keyframes typing {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.custom-spinner {
    display: flex;
    gap: 30px; /* Increase space between dots */
}

    .custom-spinner div {
        width: 40px; /* Increased size */
        height: 40px; /* Increased size */
        background-color: #0c768a;
        border-radius: 50%;
        animation: typing 1.5s infinite ease-in-out;
    }

        .custom-spinner div:nth-child(1) {
            animation-delay: 0s;
        }

        .custom-spinner div:nth-child(2) {
            animation-delay: 0.2s;
        }

        .custom-spinner div:nth-child(3) {
            animation-delay: 0.4s;
        }



.user-name-text {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

input[readonly] {
    background-color: #e9ecef !important; /* Bootstrap's disabled bg */
    color: #6c757d; /* muted text */
    cursor: not-allowed; /* show it's not editable */
}


/* generic numeric alignment; strong specificity so DataTables won't override */
/*.table th.numeric,
.table td.numeric {
    text-align: right !important;*/ /* use !important only if overridden by other rules */
    /*vertical-align: middle;
}*/