:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 0px;
  --header-height: 56px;
  --content-max-width: 1400px;
  --compact-spacing: 0.25rem;
  --card-border-radius: 0.375rem;
  --transition-speed: 0.2s;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-sidebar: #1e293b;
  --bg-sidebar-hover: #334155;
  --bg-sidebar-active: #3b82f6;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --text-sidebar: #cbd5e1;
  --text-sidebar-active: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --accent-primary: #3b82f6;
  --accent-success: #22c55e;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;
}

[data-bs-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-sidebar: #020617;
  --bg-sidebar-hover: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  z-index: 1040;
  transition: transform var(--transition-speed) ease;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-sidebar-hover) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-sidebar-hover);
  border-radius: 2px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--text-sidebar-active);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.sidebar-brand img,
.sidebar-brand .brand-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.625rem;
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 0.5rem 0;
}

.sidebar-nav .nav-section {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-nav .nav-item {
  margin: 1px 0.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  color: var(--text-sidebar);
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  font-size: 0.875rem;
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.sidebar-nav .nav-link.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
}

.sidebar-nav .nav-link .nav-icon {
  width: 1.25rem;
  margin-right: 0.625rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-nav .nav-link .nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.15em 0.5em;
  border-radius: 10px;
}

.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-speed) ease;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: var(--shadow-sm);
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  margin-right: 0.5rem;
}

.header-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-context .context-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.content-area {
  flex: 1;
  padding: 1rem;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.card-header {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-body {
  padding: 1rem;
}

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

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 0;
  color: var(--text-primary);
  border-color: var(--border-color);
  font-size: 0.875rem;
}

.table thead th {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
}

.table thead th.sortable:hover {
  background: var(--bg-tertiary);
}

.table thead th .sort-icon {
  margin-left: 0.25rem;
  opacity: 0.4;
  font-size: 0.7rem;
}

.table thead th.sorted-asc .sort-icon,
.table thead th.sorted-desc .sort-icon {
  opacity: 1;
}

.table tbody td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
  background: var(--bg-secondary);
}

.table tbody tr.selected {
  background: rgba(59, 130, 246, 0.08);
}

.table-sm td,
.table-sm th {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.form-control,
.form-select {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
  outline: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--accent-danger);
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.invalid-feedback {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.form-check-label {
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.input-group-sm .form-control,
.input-group-sm .form-select,
.input-group-sm .input-group-text {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.btn {
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  transition: all var(--transition-speed);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.btn-xs {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  line-height: 1.2;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

.btn-icon.btn-sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25em 0.6em;
  line-height: 1.4;
}

.badge-pill {
  border-radius: 10px;
}

.badge-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  background: currentColor;
}

.badge-soft-success {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.badge-soft-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.badge-soft-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.badge-soft-info {
  background: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.badge-soft-primary {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

[data-bs-theme="dark"] .badge-soft-success {
  color: #4ade80;
}

[data-bs-theme="dark"] .badge-soft-warning {
  color: #fbbf24;
}

[data-bs-theme="dark"] .badge-soft-danger {
  color: #f87171;
}

[data-bs-theme="dark"] .badge-soft-info {
  color: #22d3ee;
}

[data-bs-theme="dark"] .badge-soft-primary {
  color: #60a5fa;
}

.alert {
  font-size: 0.85rem;
  padding: 0.625rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.alert-dismissible .btn-close {
  padding: 0.75rem 1rem;
}

.flash-message {
  position: fixed;
  top: calc(var(--header-height) + 0.5rem);
  right: 1rem;
  z-index: 1050;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease;
}

.flash-message.fade-out {
  animation: fadeOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: toastSlideIn 0.3s ease;
}

.toast-item.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-item .toast-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.toast-item .toast-body {
  flex: 1;
  font-size: 0.85rem;
}

.toast-item .toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.progress {
  height: 0.5rem;
  border-radius: 0.25rem;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.progress-bar {
  transition: width 0.4s ease;
}

.progress-thin {
  height: 0.3rem;
}

.progress-thick {
  height: 0.75rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1035;
}

.modal-backdrop.show {
  opacity: 0.6;
}

.modal-content {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.modal-header {
  border-bottom-color: var(--border-color);
  padding: 0.75rem 1rem;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  border-top-color: var(--border-color);
  padding: 0.625rem 1rem;
}

.dropdown-menu {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
}

.dropdown-item {
  padding: 0.35rem 1rem;
  color: var(--text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-item:active {
  background: var(--accent-primary);
  color: #fff;
}

.nav-tabs .nav-link {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
}

.nav-tabs .nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

.pagination {
  font-size: 0.85rem;
}

.page-link {
  padding: 0.3rem 0.6rem;
  color: var(--accent-primary);
  background: var(--bg-primary);
  border-color: var(--border-color);
}

.page-link:hover {
  background: var(--bg-secondary);
}

.page-item.active .page-link {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.markdown-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 0.75rem;
  min-height: 100px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
}

.markdown-preview p {
  margin: 0.25rem 0;
}

.markdown-preview ul,
.markdown-preview ol {
  margin: 0.25rem 0;
  padding-left: 1.25rem;
}

.markdown-preview code {
  background: var(--bg-tertiary);
  padding: 0.1em 0.3em;
  border-radius: 2px;
  font-size: 0.8em;
}

.markdown-preview pre {
  background: var(--bg-tertiary);
  padding: 0.5rem;
  border-radius: 0.25rem;
  overflow-x: auto;
}

.file-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-upload-preview .file-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.file-upload-preview .file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-upload-preview .file-preview-item .file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.bulk-select-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.bulk-select-bar.visible {
  display: flex;
}

.confirmation-dialog .modal-body {
  text-align: center;
  padding: 1.5rem;
}

.confirmation-dialog .confirmation-icon {
  font-size: 3rem;
  color: var(--accent-warning);
  margin-bottom: 0.75rem;
}

.confirmation-dialog .confirmation-message {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.confirmation-dialog .confirmation-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.empty-state .empty-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.empty-state .empty-text {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.7rem !important;
}

.text-sm {
  font-size: 0.8rem !important;
}

.text-base {
  font-size: 0.875rem !important;
}

.fw-medium {
  font-weight: 500 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.bg-body {
  background-color: var(--bg-primary) !important;
}

.bg-body-secondary {
  background-color: var(--bg-secondary) !important;
}

.border-color {
  border-color: var(--border-color) !important;
}

.p-compact {
  padding: 0.5rem !important;
}

.px-compact {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.py-compact {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.m-compact {
  margin: 0.5rem !important;
}

.mx-compact {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

.my-compact {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.gap-compact {
  gap: 0.5rem !important;
}

.gap-xs {
  gap: 0.25rem !important;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.25rem;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

[data-bs-theme="dark"] .spinner-overlay {
  background: rgba(15, 23, 42, 0.7);
}

[data-bs-theme="dark"] .table thead th {
  background: var(--bg-tertiary);
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
  background: var(--bg-tertiary);
}

[data-bs-theme="dark"] .modal-content {
  background: var(--bg-primary);
}

[data-bs-theme="dark"] .dropdown-menu {
  background: var(--bg-primary);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: var(--bg-secondary);
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: var(--text-muted);
}

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

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

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

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

  .header-toggle {
    display: block;
  }

  .content-area {
    padding: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 13px;
  }

  .content-area {
    padding: 0.5rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .table-responsive {
    font-size: 0.8rem;
  }

  .table thead th {
    font-size: 0.7rem;
  }

  .table tbody td {
    padding: 0.4rem 0.5rem;
  }

  .btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .btn-group-responsive .btn {
    flex: 1;
    min-width: 0;
  }

  .flash-message {
    left: 0.5rem;
    right: 0.5rem;
    min-width: auto;
  }

  .toast-container {
    left: 0.5rem;
    right: 0.5rem;
  }

  .toast-item {
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 12px;
  }

  .header-context .context-text {
    display: none;
  }

  .pagination .page-link {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .sidebar,
  .app-header,
  .sidebar-overlay,
  .flash-message,
  .toast-container,
  .btn,
  .no-print,
  nav,
  footer,
  .pagination,
  .dropdown-menu {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
  }

  .content-area {
    padding: 0 !important;
    max-width: none !important;
  }

  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .card-header {
    border-bottom: 1px solid #ddd !important;
  }

  .table {
    border-color: #ddd !important;
    font-size: 10pt;
  }

  .table thead th {
    background: #f5f5f5 !important;
    border-bottom: 2px solid #333 !important;
  }

  .table tbody td {
    border-bottom: 1px solid #ddd !important;
  }

  .table td,
  .table th {
    padding: 4pt 6pt !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  .badge {
    border: 1px solid #333;
  }

  .receipt-header {
    text-align: center;
    margin-bottom: 1rem;
  }

  .receipt-header h2 {
    margin: 0;
    font-size: 14pt;
  }

  .receipt-header p {
    margin: 0.25rem 0;
    font-size: 9pt;
  }

  .receipt-details {
    margin: 1rem 0;
  }

  .receipt-details table {
    width: 100%;
  }

  .receipt-total {
    text-align: right;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #333;
  }

  .receipt-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 8pt;
    color: #666;
  }

  @page {
    margin: 1cm;
    size: A4;
  }
}
