/* Default jquery-loading styles */

.loading-overlay {
  display: table;
  opacity: 0.7;
}

.loading-overlay-content {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 1.15em;
  font-weight: bold;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
}

.loading-overlay.loading-theme-light {
  background-color: #fff;
  color: #000;
}

.loading-overlay.loading-theme-dark {
  background-color: #000;
  color: #fff;
}

.fieldset {
  border: 1px solid #9f9f9f  !important;
  padding: 10px !important;
}

.legend {
  border: 1px solid #9f9f9f;
}

.Stock_UnderLimit
{
font-weight: bold;
color:Blue;
font-style: italic;
/* background-color: #AED6F1; */
}

.OutOfStock
{
font-weight: bold;
color:red;
font-style: italic;
/* background-color: #FADBD8; */
}

.Inactive
{
font-weight: bold;
color:red;
font-style: italic;
/* background-color: #FADBD8; */
}

.Invoice_return_row
{
font-weight: bold;
color:magenta;
font-style: italic;
}

.Expired
{
font-weight: bold;
color:red;
font-style: italic;
}

.Remaining
{
color:blue;
}

.fade {
opacity: 1000;
}


.bg {
background-color: #e5e5f7;
opacity: 0.8;
background: linear-gradient(135deg, #444cf755 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(225deg, #444cf7 25%, transparent 25%) -10px 0/ 20px 20px, linear-gradient(315deg, #444cf755 25%, transparent 25%) 0px 0/ 20px 20px, linear-gradient(45deg, #444cf7 25%, #e5e5f7 25%) 0px 0/ 20px 20px;
}

.Invoice_LessThenSysPrice_row
{
font-weight: bold;
color:orange;
font-style: italic;
}

/* Custom Theme Switcher Dark Mode / Light Mode */

/* Hide body initially to prevent white flash */
body {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Ensure dark mode applies correctly */
body.dark-mode {
    background-color: #343a40 !important;
    color: white !important;
}

/* Show body after theme is set */
body.loaded {
    visibility: visible;
    opacity: 1;
}

/* Fix for cards */
body.dark-mode .card {
    background-color: #454d55 !important;
    color: white !important;
}

/* Navbar */
body.dark-mode .navbar {
    background-color: #222 !important;
}

/* Sidebar */
body.dark-mode .sidebar {
    background-color: #333 !important;
}

/* Content Wrapper */
body.dark-mode .content-wrapper {
    background-color: #2d2d2d !important;
    color: white !important;
}

/* Form Elements */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #444 !important; /* Dark input background */
    color: #fff !important; /* White text */
    border: 1px solid #666 !important; /* Slightly lighter border */
}

/* Fix for placeholders */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #bbb !important; /* Light gray placeholders */
}

/* Fix Login Page Turning White */
body.dark-mode .login-box,
body.dark-mode .login-card {
    background-color: #222 !important;
    color: white !important;
}

/* Fix for Buttons */
body.dark-mode .btn {
    background-color: #555 !important;
    color: white !important;
    border: 1px solid #777 !important;
}

/* Fix links */
body.dark-mode a {
    color: #1e90ff !important;
}

#salereportModal .modal-dialog {
    height: 90vh;               /* 90% of viewport height */
    display: flex;
    flex-direction: column;
}

#salereportModal .modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#salereportModal .modal-header,
#salereportModal .modal-footer {
    flex-shrink: 0;             /* keep fixed size */
}

#salereportModal .modal-body {
    flex: 1;                    /* take all remaining space */
    overflow-y: auto;           /* scroll only inside body */
}
