:root {
  --background: 40 12% 94%;
  --foreground: 220 23% 10%;
  --primary: 247 100% 68%;
  --primary-foreground: 0 0% 100%;
  --secondary: 247 100% 68%;
  --secondary-foreground: 0 0% 100%;
  --muted: 40 10% 90%;
  --muted-foreground: 220 8% 42%;
  --destructive: 0 78% 54%;
  --border: 40 9% 86%;
  --card: 0 0% 100%;
  --sidebar: 240 26% 14%;
  --sidebar-muted: 236 14% 74%;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --app-font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.dark { --background: 222 36% 8%; --foreground: 42 36% 94%; --primary: 247 100% 72%; --muted: 222 28% 16%; --muted-foreground: 218 15% 70%; --border: 222 24% 22%; --card: 222 30% 12%; --sidebar: 240 26% 12%; --sidebar-muted: 236 14% 76%; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28); --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.34); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--app-font-family); }
button { transition: transform 140ms ease, opacity 140ms ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
.focus-ring:focus { outline: 3px solid hsl(var(--primary) / 0.25); outline-offset: 2px; }
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.glass { background: hsl(var(--sidebar)); border: 0; border-radius: 0; }
.print-area { background: white; color: #111827; margin-left: auto; margin-right: auto; border: 2px solid #111827 !important; box-sizing: border-box !important; }
.sma-print-sheet { padding: 15mm; border: 2px solid #111827 !important; font-family: Arial, sans-serif !important; box-sizing: border-box !important; }
.sma-doc-head { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 8px !important; min-height: 92px; padding: 6px 0 16px; text-align: center !important; width: 100% !important; }
.sma-logo-box { width: 82px; height: 82px; display: grid; place-items: center; font-weight: 900; color: #64748b; flex: none; margin: 0 auto !important; }
.sma-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sma-business-block { flex: 1; min-width: 0; text-align: center !important; width: 100% !important; margin: 0 auto !important; }
.sma-business-block h1 { margin: 0 auto !important; font-size: 28px; line-height: 1.22; font-weight: 900; letter-spacing: .04em; text-align: center !important; }
.sma-business-block p { margin: 5px auto 0 !important; max-width: 620px; font-size: 11px; color: #0f2942; line-height: 1.45; text-align: center !important; }
.sma-info-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 20px; border-bottom: 1.5px solid #111827; padding: 18px 0 16px; margin-bottom: 4px; }
.sma-info-grid h3, .sma-bottom-grid h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; color: #111827; font-weight: 900; line-height: 1.45; text-align: left; }
.sma-info-grid p { margin: 5px 0; font-size: 12px; line-height: 1.5; text-align: left; }
.sma-strong { font-weight: 900; }
.sma-items-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 14px; }
.sma-items-table th { color: #111827; padding: 10px 7px; border-top: 1.5px solid #111827; border-bottom: 1.5px solid #111827; text-align: center; font-weight: 900; line-height: 1.45; vertical-align: middle; }
.sma-items-table td { padding: 10px 7px; border-bottom: 1px solid #111827; text-align: center; line-height: 1.45; vertical-align: middle; }
.sma-bottom-grid { display: grid; grid-template-columns: 1fr 290px; gap: 22px; padding-top: 18px; }
.sma-bottom-grid p { line-height: 1.5; text-align: left; }
.sma-total-box p { display: flex; justify-content: space-between; gap: 10px; margin: 9px 0; font-size: 12px; line-height: 1.45; }
.sma-total-box .sma-grand { border-top: 2px solid #111827; padding-top: 12px; margin-top: 12px; font-size: 18px; font-weight: 900; }
.sma-sign-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 76px; font-size: 12px; font-weight: 900; }
.sma-sign-row div { border-top: 1px solid #111827; padding-top: 12px; text-align: center; line-height: 1.45; }
.bg-emerald-600 { background-color: #25D366 !important; color: #ffffff !important; }
@page { size: A4; margin: 15mm !important; }
@media screen and (max-width: 767px) { .print-area { width: 794px !important; max-width: 794px !important; min-width: 794px !important; transform: scale(calc((100vw - 32px) / 794)); transform-origin: top center; } }
@media print {
  html, body { width: 210mm !important; min-height: 297mm !important; background: white !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  .no-print, aside, nav, button, select, input[type="file"] { display: none !important; }
  .print-area { position: static !important; display: block !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 auto !important; transform: none !important; box-shadow: none !important; border-radius: 0 !important; background: white !important; color: #111827 !important; overflow: visible !important; border: 2px solid #111827 !important; }
  .sma-print-sheet { padding: 15mm !important; border: 2px solid #111827 !important; }
  .print-area table { border-collapse: collapse !important; width: 100% !important; }
  .print-area th, .print-area td { text-align: center !important; vertical-align: middle !important; line-height: 1.45 !important; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
