:root {
  --sidebar-bg: #131a37;
  --sidebar-hover: #1f2750;
  --sidebar-active: #4f46e5;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: #f8f9fc;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

/* Sidebar */
.sidebar { background-color: var(--sidebar-bg); }
.sidebar-link { color: #cbd5e1; transition: background-color .15s, color .15s; }
.sidebar-link:hover { background-color: var(--sidebar-hover); color: #fff; }
.sidebar-link.active { background-color: var(--primary); color: #fff; }
.sidebar-submenu-link { color: #94a3b8; }
.sidebar-submenu-link:hover { color: #fff; }
.sidebar-submenu-link.active { color: #fff; font-weight: 600; }

/* Status badges */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* Card */
.card { background: #fff; border-radius: 14px; border: 1px solid #eef0f5; box-shadow: 0 1px 2px rgba(16,24,40,.04); }

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 280px; max-width: 380px; padding: 14px 16px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,.15); animation: toast-in .2s ease-out; display: flex; align-items: center; gap: 10px; }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-warning { background: #d97706; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }

/* Loading spinner */
.spinner { border: 3px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%; width: 28px; height: 28px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Table row hover */
tbody tr:hover { background-color: #f8fafc; }

/* Print */
@media print {
  body * {
    visibility: hidden;
  }

  .payment-method-print,
  .payment-method-print *,
  .printable-area,
  .printable-area * {
    visibility: visible;
  }

  .payment-method-print,
  .printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .no-print {
    display: none !important;
  }
}

.additional-info-value {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4rem;
  max-height: 3rem;
  word-break: break-word;
  cursor: pointer;
}