/* ==========================================
   LARIS MANIS - Food & Beverage POS
   Theme: Pink, Ungu Pastel, Putih
   ========================================== */

:root {
  --pink-primary: #e93f91;
  --pink-light: #fce4ec;
  --pink-dark: #c2185b;
  --purple-primary: #8b5cf6;
  --purple-light: #ede9fe;
  --purple-dark: #6d28d9;
  --white: #ffffff;
  --gray-50: #faf5ff;
  --gray-100: #f3f0f8;
  --gray-200: #e5e0eb;
  --gray-300: #d1c8db;
  --gray-400: #a89bb8;
  --gray-500: #7c6a8f;
  --gray-600: #5d4e6e;
  --gray-700: #3d324a;
  --gray-800: #2a2233;
  --gray-900: #1a1520;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 70px;
  --font-primary: "Plus Jakarta Sans", "Inter", sans-serif;
  --shadow-sm: 0 1px 3px rgba(139, 92, 246, 0.08);
  --shadow-md: 0 4px 12px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 8px 30px rgba(139, 92, 246, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Dark Mode */
[data-bs-theme="dark"] {
  --pink-primary: #f472b6;
  --pink-light: #3d1f2e;
  --purple-primary: #a78bfa;
  --purple-light: #2e1f3d;
  --white: #1a1520;
  --gray-50: #1a1520;
  --gray-100: #2a2233;
  --gray-200: #3d324a;
  --gray-300: #5d4e6e;
  --gray-400: #7c6a8f;
  --gray-500: #a89bb8;
  --gray-600: #d1c8db;
  --gray-700: #e5e0eb;
  --gray-800: #f3f0f8;
  --gray-900: #faf5ff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--gray-50);
  color: var(--gray-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========== LOGIN PAGE =========== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--pink-primary) 0%,
    var(--purple-primary) 100%
  );
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-wrapper::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.login-wrapper::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  color: white;
  box-shadow: 0 8px 24px rgba(233, 63, 145, 0.3);
}

.login-logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.login-logo p {
  color: var(--gray-500);
  font-size: 14px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.login-form .form-control {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.3s;
  background: var(--white);
}

.login-form .form-control:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 4px rgba(233, 63, 145, 0.15);
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 63, 145, 0.3);
}

.login-info {
  margin-top: 24px;
  padding: 16px;
  background: var(--purple-light);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
}

.login-info p {
  margin-bottom: 2px;
}

/* =========== APP LAYOUT =========== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.2;
}

.logo-text span {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-user {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.user-avatar {
  font-size: 32px;
  color: var(--pink-primary);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
}

.sidebar-nav {
  list-style: none;
  padding: 12px;
  flex: 1;
}

.sidebar-nav .nav-item {
  margin-bottom: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--gray-500);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.nav-link:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  color: white;
  box-shadow: 0 4px 12px rgba(233, 63, 145, 0.3);
}

.nav-divider {
  padding: 16px 14px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.theme-toggle:hover {
  background: var(--gray-200);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--danger);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .main-header {
  background: rgba(26, 21, 32, 0.9);
}

.page-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.page-title {
  flex: 1;
  min-width: 0;
}

/* User Profile Menu */
.user-profile-menu {
  position: relative;
}

.btn-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  color: var(--gray-800);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-user-avatar:hover {
  border-color: var(--pink-primary);
  box-shadow: 0 2px 8px rgba(233, 63, 145, 0.2);
}

.btn-user-avatar:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(233, 63, 145, 0.2);
}

.avatar-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[data-bs-theme="dark"] .profile-dropdown {
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.dropdown-header {
  padding: 16px;
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-avatar-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.dropdown-user-info i {
  font-size: 48px;
  color: var(--gray-400);
}

.user-full-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-800);
  margin: 0;
  word-break: break-word;
}

[data-bs-theme="dark"] .user-full-name {
  color: var(--gray-800);
}

.user-username {
  font-size: 12px;
  color: var(--gray-500);
  margin: 4px 0 0 0;
  word-break: break-word;
}

[data-bs-theme="dark"] .user-username {
  color: var(--gray-500);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

[data-bs-theme="dark"] .dropdown-divider {
  background: var(--gray-300);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 14px;
}

[data-bs-theme="dark"] .dropdown-item {
  color: var(--gray-800);
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--pink-primary);
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background: var(--gray-200);
}

.dropdown-item i {
  font-size: 18px;
}

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

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

.main-body {
  padding: 24px;
  flex: 1;
}

.main-footer {
  padding: 16px 24px;
  text-align: center;
  color: var(--gray-400);
  font-size: 12px;
  border-top: 1px solid var(--gray-200);
}

/* =========== CARDS =========== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* =========== STAT CARDS =========== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.stat-card.pink .stat-icon {
  background: linear-gradient(135deg, #e93f91, #f472b6);
}
.stat-card.purple .stat-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.stat-card.blue .stat-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.stat-card.green .stat-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-content .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-content .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-800);
  margin: 4px 0;
}

.stat-content .stat-sub {
  font-size: 12px;
  color: var(--gray-400);
}

/* =========== BEST SELLERS =========== */
.best-sellers-list {
  padding: 0;
}

.best-seller-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.best-seller-item:hover {
  background: var(--gray-50);
}
.best-seller-item:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 28px;
  height: 28px;
  background: var(--purple-light);
  color: var(--purple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
}
.item-info h6 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.item-info span {
  font-size: 11px;
}

.item-sales {
  text-align: right;
}
.item-sales strong {
  font-size: 16px;
  color: var(--pink-primary);
  display: block;
}
.item-sales span {
  font-size: 10px;
  color: var(--gray-400);
}

/* =========== POS =========== */
.pos-container {
  margin: -8px;
}

.pos-products {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.pos-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.btn-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-category i {
  font-size: 20px;
}
.btn-category:hover {
  background: var(--pink-light);
  color: var(--pink-primary);
}
.btn-category.active {
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  color: white;
  border-color: transparent;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-primary);
}

.product-card.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-image {
  height: 120px;
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  font-size: 40px;
  color: var(--purple-primary);
  opacity: 0.5;
}

.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.stock-badge.sold-out {
  background: var(--danger);
  color: white;
}
.stock-badge.low {
  background: var(--warning);
  color: var(--gray-800);
}

.product-info {
  padding: 10px;
}

.product-name {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-primary);
}

/* Cart */
.pos-cart {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  position: sticky;
  top: var(--header-height);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.cart-header h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray-400);
}

.cart-empty i {
  font-size: 48px;
  margin-bottom: 12px;
}
.cart-empty p {
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-empty span {
  font-size: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.cart-item-info h6 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-item-qty span {
  font-weight: 700;
  font-size: 14px;
  min-width: 24px;
  text-align: center;
}

.cart-notes {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}

.cart-notes label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.cart-notes textarea {
  font-size: 13px;
  resize: none;
}

.cart-summary {
  padding: 16px;
  border-top: 1px solid var(--gray-100);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink-primary);
  padding-top: 8px;
  border-top: 2px solid var(--gray-100);
  margin-top: 8px;
}

.discount-input {
  display: flex;
  gap: 4px;
  align-items: center;
}

.discount-input input {
  width: 80px;
  text-align: right;
}
.discount-input select {
  width: 70px;
}

.cart-payment {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}

.cart-payment label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 8px;
  display: block;
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.payment-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-600);
}

.payment-option i {
  font-size: 20px;
}

.payment-option:hover {
  background: var(--pink-light);
}

.payment-option.active {
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  color: white;
  border-color: transparent;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: all 0.3s;
}

.btn-checkout:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark));
  color: white;
}

.btn-checkout:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}

/* =========== TABLES =========== */
.table {
  margin-bottom: 0;
}

.table thead th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom-width: 1px;
}

.table td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 13px;
}

.table-hover tbody tr:hover {
  background: var(--pink-light);
}

.table-warning {
  background: rgba(245, 158, 11, 0.05) !important;
}

/* =========== RECEIPT =========== */
.receipt {
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.receipt-header {
  text-align: center;
  margin-bottom: 12px;
}

.receipt-header h6 {
  font-size: 16px;
  font-weight: 800;
}

.receipt-item {
  margin-bottom: 8px;
}

/* =========== SUMMARY ITEMS =========== */
.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item .label {
  color: var(--gray-500);
  font-size: 14px;
}

.summary-item .value {
  font-weight: 700;
  font-size: 16px;
}

/* =========== RESPONSIVE =========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .pos-cart {
    height: auto;
    position: static;
  }
}

@media (max-width: 767.98px) {
  .stat-card .stat-value {
    font-size: 18px;
  }

  .main-body {
    padding: 16px;
  }

  .main-header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .header-left {
    width: 100%;
    gap: 12px;
  }

  .page-title h2 {
    font-size: 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .header-date {
    display: none;
  }

  .profile-dropdown {
    width: 240px;
  }

  .product-image {
    height: 90px;
  }

  .product-card .product-name {
    font-size: 11px;
  }

  .btn-category {
    padding: 8px 12px;
    font-size: 10px;
  }
}

/* =========== SCROLLBAR =========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* =========== MISC =========== */
.form-control,
.form-select {
  border-color: var(--gray-200);
  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 4px rgba(233, 63, 145, 0.15);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--pink-primary),
    var(--purple-primary)
  );
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 63, 145, 0.3);
  color: white;
}

.btn-outline-primary {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

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

.badge {
  padding: 4px 10px;
  font-weight: 600;
  font-size: 11px;
}

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom-color: var(--gray-100);
}

.progress {
  background: var(--gray-100);
  border-radius: 4px;
}

.progress-bar {
  border-radius: 4px;
}
