:root {
  --primary-color: #e69808;
  --accent-color: #e62908;
  --secondary-color: #0ac451;
  --border-color: #e0e0e0;
}

.custom-select option {
  color: rgb(93, 93, 134);
  /* Change this to your desired color */
}

#accordionSidebar.bg-custom-sidebar {
    background-color: #1D293D;
}

#sidebarToggle {
  color: #1D293D;        /* Changes the icon color */
  background-color: transparent; /* Keep background clear (optional) */
}

#sidebarToggle:hover {
  color: #0f172a; /* Darker shade on hover (optional) */
}

.custom-image-size {
  height: 120px;
  width: 400px;
}

.left-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.normal-text-table th,
.normal-text-table td {
  font-weight: normal;
  text-align: center;
  font-size: 12px;
  font-family: 'SutonnyOMJ';
}

.tag-on-time {
  background-color: #28a745;
  /* green */
  color: white;
  padding: 4px 8px;
  /* A bit more horizontal padding */
  border-radius: 8px;
  font-size: 0.80em;
  white-space: nowrap;
  /* Prevent line breaks */
  display: inline-flex;
  /* Use flex for centering */
  align-items: center;
  /* Vertically center */
  justify-content: center;
  /* Horizontally center */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 24px;
  /* Fix a height for vertical alignment */
  line-height: 1;
  /* Reset line height */
}

.tag-late {
  background-color: #dc3545;
  color: white;
  padding: 4px 8px;
  /* A bit more horizontal padding */
  border-radius: 8px;
  font-size: 0.80em;
  white-space: nowrap;
  /* Prevent line breaks */
  display: inline-flex;
  /* Use flex for centering */
  align-items: center;
  /* Vertically center */
  justify-content: center;
  /* Horizontally center */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 24px;
  /* Fix a height for vertical alignment */
  line-height: 1;
  /* Reset line height */
}


.tag-default {
  background-color: #6c757d;
  /* grey */
  color: white;
  padding: 4px 8px;
  /* A bit more horizontal padding */
  border-radius: 8px;
  font-size: 0.80em;
  white-space: nowrap;
  /* Prevent line breaks */
  display: inline-flex;
  /* Use flex for centering */
  align-items: center;
  /* Vertically center */
  justify-content: center;
  /* Horizontally center */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 24px;
  /* Fix a height for vertical alignment */
  line-height: 1;
  /* Reset line height */
}

.btn-view {
  background-color: #e69808;
  /* Bootstrap primary blue */
  color: white;
  padding: 4px 10px;
  /* Match tag padding */
  border: none;
  border-radius: 8px;
  /* Rounded like tag buttons */
  font-size: 0.80em;
  /* Same as tags */
  display: inline-flex;
  /* For icon alignment */
  align-items: center;
  justify-content: center;
  height: 28px;
  /* Slightly taller for better alignment */
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-view i {
  margin-right: 5px;
  /* Space between icon and text */
}

.btn-view:hover {
  background-color: #0ac451;
  /* Darker on hover */
  text-decoration: none;
}

.pending-header{
  text-align: left;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.complete-header{
  text-align: left;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.cancel-header{
  text-align: left;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.outlet-header{
  text-align: left;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.invoice-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.invoice-header h1 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 5px;
}

.invoice-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.info-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.section-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  margin-bottom: 10px;
}

.info-label {
  font-weight: 600;
  color: #555;
}

.order-summary {
  margin: 30px 0;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.order-table th {
  background-color: #f1f1f1;
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.order-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.order-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.totals-section {
  margin-top: 30px;
  margin-left: auto;
  width: 60%;
}

@media (max-width: 768px) {
  .totals-section {
    width: 100%;
  }
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.total-row.total-amount {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 2px solid #ddd;
  padding-top: 15px;
  margin-top: 10px;
}

.payment-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.status-pending {
  background-color: #ffcc00;
  color: #333;
}

.status-paid {
  background-color: #289c4f;
  color: #ffffff;
}

.invoice-actions {
  display: flex;
  justify-content: right;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.transfer-actions {
  display: flex;
  justify-content: left;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 5px;
}


.btn-back {
  background-color: #6c757d;
  color: white;
}

.btn-modify {
  background-color: #007bff;
  color: white;
}

.btn-transfer{
  background-color: #042a35;
  color: white;
}


.btn-print {
  background-color: #28a745;
  color: white;
}

.btn-accept {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.btn-cancel {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
}

.btn-view {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.90em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-view i {
  margin-right: 5px;
}

.btn-view:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.currency {
  font-weight: 600;
  color: #27ae60;
}

.highlight {
  color: #e74c3c;
  font-weight: 600;
}

.invoice-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.card-body {
    position: relative;
    padding-bottom: 20px; /* Space for bottom row */
}

.order-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
        
.transfer-form .form-select {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: all 0.3s;
}
        
.transfer-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
        
.transfer-form label {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

.marked-for-delete {
    background-color: #ffe6e6 !important;
    opacity: 0.7;
    position: relative;
  }
  .marked-for-delete::after {
    content: "MARKED FOR DELETION";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    pointer-events: none;
  }
  .new-product {
    background-color: #e6ffe6;
  }

@media print {
  /* All your print styles go here */
  .sidebar,
  .sticky-footer,
  .scroller,
  .invoice-actions,
  .navbar {
    display: none !important;
  }
}


/* Pending Orders Animation (pulse) */
.card-pending {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Completed Orders Animation (bounce in) */
.card-completed {
  animation: bounceIn 1s;
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Canceled Orders Animation (shake) */
.card-canceled {
  animation: shake 1s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}


/* Clock rotation for pending orders */
.card-pending .fa-clock {
  animation: rotateClock 2s linear infinite;
  color: #ffc107;
}

@keyframes rotateClock {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Completed Orders Animation */
.card-completed .fa-check-circle {
  animation: successBounce 1.5s ease-in-out infinite;
  color: #28a745;
}

@keyframes successBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}


/* Canceled Orders Animation */
.card-canceled .fa-times-circle {
  animation: cancelShake 1s ease-in-out infinite;
  color: #dc3545;
}

@keyframes cancelShake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
}

/* Monthly Sales Animation (glow pulse) */
.card-sell {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%   { box-shadow: 0 0 5px rgba(23, 162, 184, 0.4); }
  50%  { box-shadow: 0 0 20px rgba(23, 162, 184, 0.9); }
  100% { box-shadow: 0 0 5px rgba(23, 162, 184, 0.4); }
}

/* Coins icon rotation */
.card-sell .fa-coins {
  animation: spinCoins 3s linear infinite;
  color: #17a2b8; /* Bootstrap info color */
}

@keyframes spinCoins {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Specific Icon Color & Animation */
.android-spin {
  animation: spinCoins 3s linear infinite;
  color: #6c757d; /* matching text-secondary */
}

.ios-spin {
  animation: spinCoins 3s linear infinite;
  color: #343a40; /* matching text-dark */
}

.lastmonth-spin {
  animation: spinCoins 3s linear infinite;
  color: #007bff; /* matching text-primary */
}