/**
 * Placeholder thickness minimized
 * */
.form-control::placeholder {
  color: rgba(168, 170, 173, 0.75);
  opacity: 1;
}
/**
 * Change Group Button size - (Right Side Buttons)
 * */
 .cc-group-btn-size{
  padding: .375rem .15rem;
 }

 /**
  * Print page minimum width
 */
 .min-width-600{
  min-width: 600px;
 }

 /**
 * Autocomplete css
 * */
 .ui-autocomplete {
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden; /* prevent horizontal scrollbar */
}

/**
 * Autocomplete Loader for input box
 * */
.ui-autocomplete-loading {
  background: white url("autocomplete-loader/ui-anim_basic_16x16.gif") right center no-repeat;
}

/**
 * Cursor not allowed
 * */
 .cursor-not-allowed{
  cursor:not-allowed;
 }

 /**
  * Input box border color change to primary class color
  * */
.custom-border-primary {
    border-color: #1e3a8a !important;
}

/**
 * Page Loader , Spinner
 * */
 #spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#spinner-content {
    text-align: center;
}
#loading-message {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}

/**
 * Highlight last added table row
 * */
tr.highlight {
  animation: popIn 0.5s ease-out;
}
@keyframes popIn {
  0% {
    transform: scale(1.05);
    background-color: rgb(0 140 255 / 5%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  100% {
    transform: scale(1);
    background-color: rgb(0 140 255 / 5%);
    box-shadow: none;
  }
}

/**
* no code
* */
.text-transform-none{
text-transform: none;
}

/**
* input group input box, in one group i need to show some of the select or
* input box 30 %
* */
.cu-flex-30{
  flex: 0 0 30% !important;
}

.cu-w-500-px{
  width: 500px !important;
}

/* Auto width utility: use .cu-w-400-px, .cu-w-300-px, or create your own size */
.cu-w-400-px {
    width: 400px !important;
}


/**
 * POS Page Items Selected Table Resize
 * */
 .resizable-vertical {
  resize: vertical;
  overflow: auto; /* Required for the resize property to work */
  min-height: 270px;
}

/**
 * No Padding for invoice tables
 * */
 #invoiceItemsTable input.form-control {
    padding-left: 0rem;
    padding-right: 0rem;
    font-size: 18px;
}

/**
 * Typography Enhancement - Stronger, More Prominent Fonts
 * */
body {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card-header h5 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.page-wrapper .page-content {
  background: linear-gradient(135deg, #f5f7fa 0%, #f8fafb 100%);
}

/* Logo and brand text styling */
.logo-text {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

/* Table headers - more prominent */
table thead th {
  font-weight: 700;
  background-color: #1e3a8a !important;
  color: #ffffff !important;
  letter-spacing: 0.3px;
  padding: 1rem !important;
}

/* Form labels - stronger styling */
.form-label {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2px;
}

/* Input and textarea styling */
.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-select {
  border: 2px solid #e5e7eb;
  font-weight: 500;
}

.form-select:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/**
 * Dashboard Enhancement Styles
 * */

/* Dashboard Cards */
.widgets-icons-2 {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.widgets-icons-2:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Dashboard Buttons */
.btn-outline-primary {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Card Styling */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-radius: 0.75rem;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #f5f7fa 0%, #f8fafb 100%);
  border-bottom: 2px solid #e5e7eb;
  padding: 1.25rem !important;
}

.card-header h6 {
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.3px;
}

/* Table Enhancements */
.table thead th {
  font-weight: 700;
  background-color: #1e3a8a !important;
  color: #ffffff !important;
  letter-spacing: 0.2px;
  padding: 1rem !important;
  border: none;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(30, 58, 138, 0.05) !important;
}

.table td {
  font-weight: 500;
  padding: 0.875rem !important;
  border-color: #e5e7eb;
}

/* Badge Styling */
.badge {
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 0.5rem;
}

.bg-light-success {
  background-color: rgba(15, 129, 7, 0.1) !important;
}

.bg-light-danger {
  background-color: rgba(253, 53, 80, 0.1) !important;
}

.bg-light-warning {
  background-color: rgba(255, 152, 0, 0.1) !important;
}

/* Gradient Backgrounds for Dashboard Icons */
.bg-gradient-blues {
  background: linear-gradient(135deg, #1e3a8a 0%, #2d5aa8 100%) !important;
}

.bg-gradient-ohhappiness {
  background: linear-gradient(135deg, #15ca20 0%, #0eb018 100%) !important;
}

.bg-gradient-burning {
  background: linear-gradient(135deg, #fd3550 0%, #d10b1e 100%) !important;
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

/* Chart Container Styling */
.chart-container {
  position: relative;
  height: 300px;
  margin: 1rem 0;
}

/* Status Badge Enhancements */
.text-success {
  color: #15ca20 !important;
  font-weight: 700;
}

.text-danger {
  color: #fd3550 !important;
  font-weight: 700;
}

.text-warning {
  color: #ff9800 !important;
  font-weight: 700;
}

/**
 * Mobile Responsiveness for POS, Purchase, and Sale Forms
 * */

/* Page wrapper adjustments for mobile */
@media (max-width: 768px) {
  .page-wrapper .page-content {
    padding: 0.75rem;
  }
  
  .card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  /* Form inputs on mobile */
  .form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .input-group {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .input-group-text {
    padding: 0.5rem;
    background-color: #f5f7fa;
  }
  
  /* Buttons mobile friendly */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  
  .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Table responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
  }
  
  .table {
    font-size: 0.875rem;
    min-width: 600px;
  }
  
  .table th, .table td {
    padding: 0.5rem !important;
    white-space: nowrap;
  }
  
  .table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #1e3a8a !important;
    color: white;
  }
  
  /* Invoice items table mobile */
  #invoiceItemsTable {
    min-width: 800px;
  }
  
  #invoiceItemsTable input.form-control {
    padding: 0.375rem 0.25rem;
    font-size: 14px;
  }
  
  /* Grid layout adjustments */
  .row {
    margin-right: -0.375rem;
    margin-left: -0.375rem;
  }
  
  .col-sm-12, [class*="col-"] {
    padding-right: 0.375rem;
    padding-left: 0.375rem;
  }
  
  /* POS specific mobile adjustments */
  .col-sm-12.col-md-5 {
    margin-bottom: 1rem;
  }
  
  .col-sm-12.col-md-7 {
    margin-bottom: 1rem;
  }
  
  /* Item grid mobile friendly */
  .row-cols-2 {
    --bs-columns: 2;
  }
  
  .row-cols-md-4 {
    --bs-columns: 2; /* Override to 2 columns on mobile */
  }
  
  .row.row-cols-auto {
    flex-direction: column;
  }
  
  .row.row-cols-auto > [class*="col"] {
    flex: 0 0 100%;
  }
  
  /* Summary section mobile */
  .row > [class*="col-md-3"] {
    flex: 0 0 50%;
    margin-bottom: 0.75rem;
  }
  
  /* Sticky footer for mobile */
  .invoice-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid #e5e7eb;
    padding: 1rem;
    z-index: 10;
  }
  
  /* Action buttons on mobile */
  .btn-group, .input-group-append {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .page-wrapper .page-content {
    padding: 0.5rem;
  }
  
  .card-header {
    padding: 0.75rem !important;
  }
  
  .card-body {
    padding: 0.5rem;
  }
  
  .form-control, .form-select {
    font-size: 16px;
    padding: 0.625rem;
  }
  
  .table {
    font-size: 0.75rem;
    min-width: 500px;
  }
  
  .table th, .table td {
    padding: 0.375rem !important;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Single column layout on extra small screens */
  .col-sm-12.col-md-5,
  .col-sm-12.col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Dropdown menus mobile */
  .dropdown-menu {
    max-width: calc(100vw - 2rem);
    font-size: 0.875rem;
  }
  
  /* Grid items stacking */
  .row-cols-md-4 {
    --bs-columns: 2;
  }
  
  .row-cols-md-2 {
    --bs-columns: 1;
  }
  
  /* Summary text stacking */
  .row > [class*="col-md-3"],
  .row > [class*="col-sm-6"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Label responsiveness */
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  
  /* Input group on mobile */
  .input-group {
    display: flex;
    flex-wrap: wrap;
  }
  
  .input-group .form-control,
  .input-group .form-select,
  .input-group .btn {
    flex: 1;
    min-width: 100px;
  }
}

/* Landscape mode adjustments for phones */
@media (max-width: 768px) and (orientation: landscape) {
  .page-wrapper .page-content {
    padding: 0.5rem;
  }
  
  .card-body {
    padding: 0.5rem;
  }
  
  .table {
    font-size: 0.75rem;
  }
  
  .row > [class*="col-"] {
    flex: 0 0 50%;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }
}






