/* Modern UI CSS - Shared Styles for All Pages */

/* Modern CSS Variables */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.2s ease-in-out;
}

/* Modern Container */
.modern-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

/* White background style */
.modern-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: -1;
  pointer-events: none;
}

/* Alternative: Background GIF with class */
.modern-container.with-gif-background::before {
  background-image: url('/images/batter_demo.gif');
  opacity: 0.4;
}

/* Different GIF options */
.modern-container.khetika-background::before {
  background-image: url('/images/khetika-background.gif');
  opacity: 0.5;
}

.modern-container.animated-background::before {
  background-image: url('/images/animated-background.gif');
  opacity: 0.3;
}

/* Login Page Layout */
.login-page-container {
  min-height: 100vh;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: calc(2rem - 150px);
  background: transparent;
  position: relative;
  z-index: 1;
}

.login-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 2400px;
  position: relative;
  min-height: 500px;
  margin-top: -150px;
}

.product-image-left,
.product-image-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 400px;
  align-self: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Placeholder for missing images */
.product-image-left .product-image {
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
}

.product-image-left .product-image::after {
  content: "KHETIKA SPICES";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.product-image-right .product-image {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
}

.product-image-right .product-image::after {
  content: "KHETIKA BATTER";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.product-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.login-card-container {
  flex: 0 0 auto;
  width: 70%;
  min-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.login-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  text-align: center;
}

.login-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-body {
  padding: 2rem;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.header-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.search-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 1.5rem;
}

.search-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-body {
  padding: 2rem;
}

.search-form {
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Actions Section */
.actions-section {
  margin-bottom: 2rem;
}

.actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
}

/* Horizontal List Groups for Dashboard */
.horizontal-list-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
}

.horizontal-list-group .list-group {
  margin: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-start;
}

.horizontal-list-group .list-group button {
  white-space: nowrap;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-bottom: 0.5rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.horizontal-list-group .list-group a {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  margin-bottom: 0.25rem;
  transition: var(--transition);
  background: white;
  color: var(--dark-color);
  border: 1px solid var(--border-color);
  height: 45px;
  width: 100%;
  box-sizing: border-box;
}

.horizontal-list-group .list-group a:hover {
  background: var(--light-color);
  color: var(--primary-color);
  text-decoration: none;
}

/* Regular list groups in modern container */
.modern-container .list-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
}

.modern-container .list-group-item {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--dark-color);
  transition: var(--transition);
  text-decoration: none;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  width: 150px;
  height: 45px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-self: flex-start;
}

.modern-container .list-group-item:hover {
  background: var(--light-color);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  background: white;
  color: var(--dark-color);
  box-shadow: var(--shadow-sm);
  width: 200px;
  height: 60px;
  justify-content: center;
  box-sizing: border-box;
  align-self: flex-start;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
}

.action-btn.secondary {
  background: white;
  color: var(--secondary-color);
  border-color: var(--border-color);
}

.action-btn.success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.action-btn.warning {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  color: white;
}

.action-btn.danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
}

.action-btn.info {
  background: linear-gradient(135deg, var(--info-color), #0891b2);
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.action-btn.primary:hover,
.action-btn.success:hover,
.action-btn.warning:hover,
.action-btn.danger:hover,
.action-btn.info:hover {
  color: white;
}

.action-btn.secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Data Section */
.data-section {
  margin-bottom: 2rem;
}

.data-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.data-header {
  background: linear-gradient(135deg, var(--dark-color), #334155);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-body {
  padding: 1.5rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Ensure widgets and child elements match parent width */
.data-body > *,
.data-body > div,
.data-body #dashboardid,
.data-body [id*="dashboard"],
.data-body [class*="widget"],
.data-body [class*="Widget"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Bulk Update Forms - Aligned Layout */
.bulk-update-form {
  margin-bottom: 2rem;
}

.bulk-update-form .form-row {
  display: grid;
  grid-template-columns: 180px 1fr 150px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bulk-update-form .form-label-col {
  flex-shrink: 0;
}

.bulk-update-form .form-input-col {
  max-width: 500px;
}

.bulk-update-form .form-button-col {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.bulk-update-form .form-group {
  margin-top: 1.5rem;
}

/* Order Action Buttons - Evenly Spaced */
.order-action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.order-action-buttons .btn {
  flex: 0 0 auto;
  min-width: 150px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Order Filter Controls - Horizontal Evenly Spaced */
.order-filter-controls {
  display: flex !important;
  align-items: center !important;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.order-filter-controls > * {
  margin: 0 !important;
  vertical-align: middle;
  flex-shrink: 0;
}

.order-filter-controls .dropdown {
  margin: 0;
  display: inline-block;
}

.order-filter-controls .dropdown .btn,
.order-filter-controls .dropdown .btn.btn-outline-secondary,
.order-filter-controls #reset {
  height: 34px;
  line-height: 1.42857143;
  padding: 6px 12px;
  font-size: 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: white !important;
  color: var(--dark-color) !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.order-filter-controls .dropdown .btn:hover,
.order-filter-controls .dropdown .btn:focus,
.order-filter-controls .dropdown .btn.btn-outline-secondary:hover,
.order-filter-controls .dropdown .btn.btn-outline-secondary:focus,
.order-filter-controls #reset:hover {
  background: var(--light-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
  outline: none !important;
}

.order-filter-controls #search_bar {
  width: 250px;
  height: 34px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.42857143;
  outline: none;
}

.order-filter-controls #search_bar:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Order Feedback Actions - Horizontal Alignment */
.order-feedback-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.order-feedback-actions .btn {
  min-width: 150px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.order-feedback-actions form {
  margin: 0;
}

/* Fix table wrapper for proper display */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
  position: relative;
}

.table-wrapper table {
  width: 100%;
  table-layout: auto;
}

/* DataTable scrollX wrapper */
.dataTables_wrapper {
  overflow-x: auto;
  width: 100%;
}

.dataTables_scrollHead,
.dataTables_scrollBody {
  overflow-x: auto;
  width: 100%;
}

/* Ensure table-fixed doesn't break scrolling */
.table-fixed {
  table-layout: auto !important;
  min-width: 100%;
}

/* Short Supply Orders - Form Layout */
.short-supply-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.short-supply-form input {
  width: 300px;
  max-width: 100%;
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.short-supply-form .btn {
  height: 38px;
  min-width: 120px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.short-supply-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.short-supply-actions .btn {
  min-width: 150px;
  height: 38px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* KPI Master - Filter Form Layout */
.kpi-filter-form {
  margin-bottom: 2rem;
}

.kpi-filter-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.kpi-filter-group {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kpi-filter-group label {
  font-weight: 500;
  margin-bottom: 0;
  color: var(--dark-color);
}

.kpi-filter-group input,
.kpi-filter-group select {
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.kpi-filter-group input:focus,
.kpi-filter-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* KPI Master - Export Buttons */
.kpi-export-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.kpi-export-buttons .btn {
  min-width: 180px;
  height: 38px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.data-stats {
  display: flex;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

/* Modern Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
  border: 1px solid var(--border-color);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.modern-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
}

.modern-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  color: white;
  border: none;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-table th:first-child {
  border-top-left-radius: var(--border-radius-lg);
}

.modern-table th:last-child {
  border-top-right-radius: var(--border-radius-lg);
}

.modern-table th i {
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}

.modern-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  background: white;
  transition: var(--transition);
}

.modern-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.modern-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(29, 78, 216, 0.05));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Striping */
.modern-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.modern-table tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(29, 78, 216, 0.08));
}

/* Table Status Indicators */
.table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.table-status.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.table-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Table Badges */
.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--light-color);
  color: var(--dark-color);
  border: 1px solid var(--border-color);
}

.table-badge.primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-color: rgba(37, 99, 235, 0.2);
}

.table-badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.2);
}

.table-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border-color: rgba(245, 158, 11, 0.2);
}

.table-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.2);
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--light-color);
  color: var(--secondary-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.table-action-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

.table-action-btn.edit:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info-color);
}

.table-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.table-action-btn.view:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

/* Table Pagination */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--light-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.pagination-info {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Table Loading State */
.table-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--secondary-color);
}

.table-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Table Empty State */
.table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--secondary-color);
  text-align: center;
}

.table-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.table-empty h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 1.25rem;
}

.table-empty p {
  margin: 0;
  font-size: 0.875rem;
}

/* Table Row States */
.normal-row {
  background: white;
}

.blacklisted-row {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(220, 38, 38, 0.05));
  box-shadow: inset 4px 0 0 var(--danger-color);
}

.blacklisted-row td {
  background: rgba(239, 68, 68, 0.04);
}

.blacklisted-row:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  transform: translateY(-1px);
  box-shadow:
    inset 4px 0 0 var(--danger-color),
    0 4px 12px rgba(239, 68, 68, 0.2);
}

.blacklisted-row:hover td {
  background: rgba(239, 68, 68, 0.08);
}

/* Table Row Variants */
.table-row-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
  border-left: 4px solid var(--success-color);
}

.table-row-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
  border-left: 4px solid var(--warning-color);
}

.table-row-info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(8, 145, 178, 0.05));
  border-left: 4px solid var(--info-color);
}

/* Table Sorting */
.table-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.table-sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.table-sortable::after {
  content: '↕';
  position: absolute;
  right: 0.5rem;
  opacity: 0.5;
  font-size: 0.8rem;
}

.table-sortable.asc::after {
  content: '↑';
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

.table-sortable.desc::after {
  content: '↓';
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
}

/* Table Filters */
.table-filters {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--light-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  align-items: center;
}

.table-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.table-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background: white;
  transition: var(--transition);
}

.table-filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Table Export */
.table-export {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: white;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}

.export-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Table Responsive */
@media (max-width: 768px) {
  .table-container {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
  }
  
  .modern-table th,
  .modern-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .table-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .table-filter-group {
    min-width: auto;
  }
  
  .table-export {
    margin-left: 0;
    justify-content: center;
  }
  
  .table-pagination {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .pagination-controls {
    justify-content: center;
  }
}

/* Table Cell Styles */
.shop-name-cell {
  min-width: 200px;
}

.shop-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.shop-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  flex: 1;
}

.shop-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.retailer-id-cell {
  min-width: 120px;
}

.retailer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.retailer-id {
  font-weight: 600;
  color: var(--dark-color);
}

.address-cell {
  max-width: 200px;
  word-wrap: break-word;
  line-height: 1.4;
}

.area-cell {
  min-width: 150px;
}

.area-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.action-cell {
  text-align: center;
  min-width: 60px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.25rem;
}

.action-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.action-icon:hover {
  transform: scale(1.1);
}

.edit-btn {
  color: var(--info-color);
}

.edit-btn:hover {
  background: rgba(6, 182, 212, 0.1);
}

.phone-btn {
  color: var(--success-color);
}

.phone-btn:hover {
  background: rgba(16, 185, 129, 0.1);
}

.location-btn {
  color: var(--warning-color);
}

.location-btn:hover {
  background: rgba(245, 158, 11, 0.1);
}

.blacklist-btn {
  color: var(--danger-color);
}

.blacklist-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* No Data State */
.no-data {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--secondary-color);
}

.no-data-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-data h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.no-data p {
  margin: 0;
  font-size: 1rem;
}

/* Form Styles */
.modern-form {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  cursor: pointer;
  height: 45px;
  box-sizing: border-box;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dropdown/Select Styling for all pages */
select,
.dropdown,
select.form-control,
select.form-select {
  height: 50px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 55px;
}

select:focus,
.dropdown:focus,
select.form-control:focus,
select.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Bootstrap select compatibility */
select.form-control-sm {
  height: 38px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

select.form-control-lg {
  height: 52px;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
}

/* Custom dropdown styling */
.custom-select {
  height: 50px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") no-repeat right 0.75rem center/16px 12px;
  cursor: pointer;
  box-sizing: border-box;
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--secondary-color);
  border: 2px solid var(--border-color);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color), #0891b2);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-info:hover {
  color: white;
}

.btn-secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Modern Dropdown Button Styling */
.btn-group .btn.dropdown-toggle {
  position: relative;
  padding-right: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-md);
  border: none;
}

/* Hide any duplicate carets from Bootstrap pseudo-elements */
.btn-group .btn.dropdown-toggle::before,
.btn-group .btn.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

.btn-group .btn.dropdown-toggle .caret {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  margin-right: 0;
  border-top: 5px solid;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.2s ease;
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: middle;
}

.btn-group.open .btn.dropdown-toggle .caret {
  transform: translateY(-50%) rotate(180deg);
}

.btn-group .btn-info.dropdown-toggle {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  border: none;
}

.btn-group .btn-info.dropdown-toggle:hover,
.btn-group .btn-info.dropdown-toggle:focus {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-group.open .btn-info.dropdown-toggle {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: var(--shadow-lg);
}

/* Modern Dropdown Menu Styling */
.dropdown-menu {
  min-width: 200px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  animation: dropdownFadeIn 0.2s ease-out;
  z-index: 1000;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu > li {
  list-style: none;
}

.dropdown-menu > li > a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
  color: var(--info-color);
  border-left-color: var(--info-color);
  padding-left: 1.5rem;
}

.dropdown-menu > li > a:active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.1));
  color: var(--info-color);
}

/* Dropdown divider */
.dropdown-menu .divider {
  height: 1px;
  margin: 0.5rem 0;
  overflow: hidden;
  background-color: var(--border-color);
}

/* Modal Styles */
.modern-modal .modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modern-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  border-bottom: none;
}

.modern-modal .modal-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-modal .modal-body {
  padding: 2rem;
}

.modern-modal .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info-color);
  border-left: 4px solid var(--info-color);
}

/* Card Styles */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  background: var(--light-color);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: var(--light-color);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-container {
    padding: 1rem 0.5rem;
  }
  
  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-input-group {
    flex-direction: column;
  }
  
  .actions-grid {
    flex-direction: column;
  }
  
  .horizontal-list-group {
    flex-direction: column;
  }
  
  .modern-container .list-group {
    flex-direction: column;
  }
  
  /* Login Page Responsive */
  .login-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .product-image-left,
  .product-image-right {
    width: 250px;
    height: 300px;
  }
  
  .product-image {
    width: 100%;
    height: 100%;
  }
  
  .login-card-container {
    width: 95%;
    min-width: 400px;
    max-width: 700px;
  }
  
  .login-card {
    width: 100%;
  }
  
  .login-header {
    padding: 1rem 1.5rem;
  }
  
  .login-body {
    padding: 1.5rem;
  }
  
  .data-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .modern-table {
    font-size: 0.75rem;
  }
  
  .modern-table th,
  .modern-table td {
    padding: 0.5rem 0.25rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .modern-table th,
  .modern-table td {
    padding: 0.25rem;
  }
  
  .shop-info,
  .retailer-info,
  .area-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Switch Component (keeping existing functionality) */
.switch {
  position: relative;
  display: block;
  width: 100px;
  height: 30px;
  padding: 3px;
  margin: 0 10px 10px 0;
  background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
  background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
  border-radius: 18px;
  box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.switch-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.switch-label {
  position: relative;
  display: block;
  height: inherit;
  font-size: 10px;
  text-transform: uppercase;
  background: #eceeef;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
}

.switch-label:before, .switch-label:after {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  line-height: 1;
  -webkit-transition: inherit;
  -moz-transition: inherit;
  -o-transition: inherit;
  transition: inherit;
}

.switch-label:before {
  content: attr(data-off);
  right: 11px;
  color: #aaaaaa;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.switch-label:after {
  content: attr(data-on);
  left: 11px;
  color: #FFFFFF;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.switch-input:checked ~ .switch-label {
  background: #E1B42B;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.switch-input:checked ~ .switch-label:before {
  opacity: 0;
}

.switch-input:checked ~ .switch-label:after {
  opacity: 1;
}

.switch-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
  background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
  border-radius: 100%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-handle:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -6px 0 0 -6px;
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
  background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}

.switch-input:checked ~ .switch-handle {
  left: 74px;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-label, .switch-handle {
  transition: All 0.3s ease;
  -webkit-transition: All 0.3s ease;
  -moz-transition: All 0.3s ease;
  -o-transition: All 0.3s ease;
}
/* Button Toolbar - Consistent Spacing for Bootstrap 2.3.0 */
.btn-toolbar {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.btn-toolbar .btn-group {
  margin-right: 10px;
  margin-bottom: 5px;
}

.btn-toolbar .btn-group:last-child {
  margin-right: 0;
}

/* Ensure buttons in toolbar are aligned properly */
.btn-toolbar .btn-group .btn {
  vertical-align: middle;
}

/* Enhanced dropdown styling for toolbar */
.btn-toolbar .btn-group .dropdown-menu {
  margin-top: 0.5rem;
  box-shadow: var(--shadow-xl);
}

.btn-toolbar .btn-group.open .dropdown-toggle {
  z-index: 1001;
}

/* Responsive adjustments for button toolbar */
@media (max-width: 979px) {
  .btn-toolbar {
    display: block;
  }
  
  .btn-toolbar .btn-group {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 8px;
  }
}

@media (max-width: 767px) {
  .btn-toolbar .btn-group {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .btn-toolbar .btn-group .btn {
    width: 100%;
  }
}

/* Offers Listing - Search Controls Styling */
#myCategoryOffersTable_filter .btn-toolbar,
.offers-search-controls {
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-bottom: 15px;
  padding: 5px 0;
}

.offers-search-controls > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offers-search-controls label {
  margin: 0;
  font-weight: normal;
  line-height: 30px;
  white-space: nowrap;
  color: #333;
}

.offers-search-controls #search_bar {
  width: 250px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.offers-search-controls .btn-group {
  margin: 0;
  vertical-align: middle;
}

.offers-search-controls .btn {
  height: 30px;
  line-height: 1.42857143;
  padding: 5px 12px;
  font-size: 12px;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.offers-search-controls .btn-group .btn {
  min-width: 140px;
  text-align: left;
}

.offers-search-controls .btn-group .btn .caret {
  margin-left: 5px;
  float: right;
  margin-top: 7px;
}

.offers-search-controls .btn-group:last-child .btn {
  min-width: 80px;
  text-align: center;
}

/* Ensure buttons are same height */
.offers-search-controls .form-control-sm {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  box-sizing: border-box;
}

/* Ensure all elements align properly */
.offers-search-controls * {
  box-sizing: border-box;
}

/* DataTable filter wrapper alignment */
#myCategoryOffersTable_filter .btn-group,
#myCategoryOffersTable_filter,
#myCustomOffersTable_filter {
  text-align: right;
  margin-bottom: 15px;
}

#myCategoryOffersTable_filter label,
#myCustomOffersTable_filter label {
  display: flex;
}

#myCategoryOffersTable_filter #search_bar,
.table td {
  vertical-align: middle;
}

.table td[style*="word-wrap"] {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}
/* Discrepancy Orders - Search Controls Styling */
.discrepancy-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.discrepancy-controls .btn-group {
  margin: 0;
}

.discrepancy-controls .btn {
  height: 30px;
  line-height: 1.42857143;
  padding: 5px 12px;
  font-size: 12px;
  box-sizing: border-box;
}

.discrepancy-controls .btn-group .btn {
  min-width: 140px;
}

.discrepancy-controls .btn-group:last-child .btn {
  min-width: 80px;
}

.discrepancy-controls .form-control-sm {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  box-sizing: border-box;
}

/* Modal Close Button Styling - Bootstrap 2.3.0 Compatible */
.modal-footer .btn-default,
.modal-footer button[data-dismiss="modal"].btn-default {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

.modal-footer .btn-default:hover,
.modal-footer .btn-default:focus,
.modal-footer .btn-default:active,
.modal-footer button[data-dismiss="modal"].btn-default:hover,
.modal-footer button[data-dismiss="modal"].btn-default:focus {
  background-color: #5a6268;
  border-color: #545b62;
  color: #ffffff;
}

