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;
}


/* Full-page overlay */
#loaderoverlay {
    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 */
}

/* Centered loader */
#loader {
    width: 3rem;
    height: 3rem;
}


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: 1055 !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);
}

/* ???????????????????????????????????????????
   UDM Admin Theme Overrides
   ??????????????????????????????????????????? */

/* ?? UDM Brand Color Overrides ?? */
.btn-primary {
    background-color: #ffcd00 !important;
    border-color: #ffcd00 !important;
    color: #212529 !important;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e6b800 !important;
    border-color: #e6b800 !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 205, 0, 0.35) !important;
}

.btn-soft-primary {
    background-color: rgba(255, 205, 0, 0.12) !important;
    color: #212529 !important;
    font-weight: 600;
}

.btn-soft-primary:hover {
    background-color: #ffcd00 !important;
    color: #212529 !important;
}

.btn-outline-primary {
    border-color: #ffcd00 !important;
    color: #b8860b !important;
}

.btn-outline-primary:hover {
    background-color: #ffcd00 !important;
    color: #212529 !important;
}

.text-primary {
    color: #b8860b !important;
}

.bg-primary {
    background-color: #212529 !important;
}

.border-primary {
    border-color: #ffcd00 !important;
}

.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 rgba(255, 205, 0, 0.4) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #ffcd00 !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 205, 0, 0.25) !important;
}

.spinner-border.text-primary {
    color: #ffcd00 !important;
}

/* Sidebar */
.vertical-menu {
    background: #1a1d21 !important;
}

#sidebar-menu ul li a {
    color: #c0c0c0 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.3px;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li a.active {
    color: #ffcd00 !important;
}

#sidebar-menu ul li a i {
    color: #ffcd00 !important;
    font-size: 1rem;
}

#sidebar-menu .menu-title {
    color: #ffcd00 !important;
    font-size: 0.7rem !important;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 12px 20px 6px;
}

.vertical-menu .navbar-brand-box {
    background: #212529 !important;
    border-bottom: 2px solid #ffcd00;
}

.sidebar-user-info {
    background: #212529 !important;
    border-top: 1px solid rgba(255, 205, 0, 0.15);
}

.sidebar-user-info .user-name-text {
    color: #e0e0e0 !important;
    font-size: 0.82rem;
}

/* Top navbar */
#page-topbar {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-title {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* Cards */
.card {
    border: none !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    border-radius: 8px !important;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.card-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
}

/* DataTable improvements */
.table thead th {
    background: #212529 !important;
    color: #ffcd00 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none !important;
    padding: 10px 12px !important;
    white-space: nowrap;
}

.table tbody td {
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa !important;
}

.table tbody tr:hover {
    background-color: #fffbea !important;
}

/* Status badges */
.badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px;
}

/* Modal improvements */
.modal-header {
    background: #212529;
    border-bottom: 2px solid #ffcd00;
    padding: 14px 20px;
}

.modal-title {
    color: #ffcd00 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-content {
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Filter section styling */
.filter-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #eee;
}

/* Footer */
.footer {
    background: #f8f9fa !important;
    border-top: 1px solid #eee !important;
    font-size: 0.78rem;
    color: #888;
}

/* Breadcrumb */
.breadcrumb {
    background: #fff !important;
    padding: 10px 16px !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    font-size: 0.82rem;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 3px solid #ffcd00;
}

.breadcrumb-item a {
    color: #b8860b !important;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: #ffcd00 !important;
    text-decoration: underline !important;
}

.breadcrumb-item.active {
    color: #555 !important;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #ccc !important;
}

/* Page content background */
.page-content {
    background: #f4f5f7;
}

/* Dropdown action menus */
.dropdown-menu {
    border: 1px solid #eee !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px !important;
    font-size: 0.82rem;
}

.dropdown-item:hover {
    background: #fffbea !important;
    color: #212529 !important;
}

/* ?? Section title (reusable) ?? */
.udm-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #b8860b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.udm-section-title .accent-bar {
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #ffcd00;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

/* ?? Profile / Settings card ?? */
.profile-card {
    border-radius: 10px !important;
    overflow: hidden;
}

.profile-card .profile-header {
    background: #212529;
    border-bottom: 3px solid #ffcd00;
    padding: 24px;
    text-align: center;
}

.profile-card .profile-header img {
    max-height: 56px;
    margin-bottom: 10px;
}

.profile-card .profile-header h5 {
    color: #ffcd00;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.profile-card .profile-header small {
    color: #aaa;
    font-size: 0.75rem;
}

.profile-card .profile-body {
    padding: 24px;
}

.profile-card .profile-body .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
}