/* =====================================================================
 * SentryGuard — application styles
 * Layered on top of Tailwind's utility classes (loaded from CDN).
 * ===================================================================== */

:root {
  --sg-navy: #0f172a;
  --sg-navy-soft: #1e293b;
  --sg-blue: #2563eb;
  --sg-blue-dark: #1d4ed8;
  --sg-amber: #f59e0b;
  --sg-green: #16a34a;
  --sg-red: #dc2626;
  --sg-slate-50: #f8fafc;
  --sg-slate-100: #f1f5f9;
  --sg-slate-200: #e2e8f0;
  --sg-slate-400: #94a3b8;
  --sg-slate-600: #475569;
  --sg-slate-800: #1e293b;
  --sg-radius: 12px;
  --sg-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sg-slate-100);
  color: var(--sg-slate-800);
  -webkit-font-smoothing: antialiased;
}

body.sg-modal-open { overflow: hidden; }

a { color: inherit; }

/* ------------------------------------------------------------- shell */

.sg-shell { display: flex; min-height: 100vh; }

.sg-sidebar {
  width: 250px;
  flex: 0 0 250px;
  background: var(--sg-navy);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sg-brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sg-blue), #38bdf8);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  flex: 0 0 34px;
}

.sg-brand-text strong { display: block; color: #fff; font-size: 15px; letter-spacing: .2px; }
.sg-brand-text span { font-size: 11px; color: var(--sg-slate-400); }

.sg-nav { padding: 10px 8px 24px; flex: 1; }

.sg-nav-group {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #64748b;
  padding: 16px 12px 6px;
  font-weight: 700;
}

.sg-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  color: #cbd5e1;
  transition: background .13s ease, color .13s ease;
}

.sg-nav a i { width: 16px; text-align: center; font-size: 13px; opacity: .85; }
.sg-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sg-nav a.active { background: var(--sg-blue); color: #fff; font-weight: 600; }
.sg-nav a.active i { opacity: 1; }
.sg-nav a .sg-nav-count {
  margin-left: auto;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}

.sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sg-topbar {
  background: #fff;
  border-bottom: 1px solid var(--sg-slate-200);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sg-topbar h1 { font-size: 17px; font-weight: 700; margin: 0; }
.sg-topbar .sg-sub { font-size: 12px; color: var(--sg-slate-600); margin-top: 1px; }
.sg-topbar-spacer { flex: 1; }

.sg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  flex: 0 0 34px;
}

.sg-user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--sg-slate-200);
  border-radius: 999px;
  background: #fff;
}
.sg-user-chip .sg-user-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.sg-user-chip .sg-user-role { font-size: 11px; color: var(--sg-slate-600); }

.sg-content { padding: 22px; max-width: 1500px; width: 100%; }

/* ------------------------------------------------------------ cards */

.sg-card {
  background: #fff;
  border: 1px solid var(--sg-slate-200);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
}

.sg-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--sg-slate-200);
  display: flex; align-items: center; gap: 12px;
}
.sg-card-head h2, .sg-card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.sg-card-head .sg-spacer { flex: 1; }
.sg-card-body { padding: 18px; }
.sg-card-body.tight { padding: 0; }

.sg-stat {
  background: #fff;
  border: 1px solid var(--sg-slate-200);
  border-radius: var(--sg-radius);
  padding: 16px;
  box-shadow: var(--sg-shadow);
}
.sg-stat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sg-slate-600); font-weight: 600; }
.sg-stat-value { font-size: 27px; font-weight: 800; line-height: 1.15; margin-top: 6px; color: var(--sg-navy); }
.sg-stat-foot { font-size: 12px; color: var(--sg-slate-600); margin-top: 4px; }
.sg-stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 15px;
}

/* ------------------------------------------------------------ table */

.sg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sg-table thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--sg-slate-50);
  border-bottom: 1px solid var(--sg-slate-200);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sg-slate-600);
  font-weight: 700;
  white-space: nowrap;
}
.sg-table tbody td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.sg-table tbody tr:last-child td { border-bottom: none; }
.sg-table tbody tr:hover { background: var(--sg-slate-50); }
.sg-row-clickable { cursor: pointer; }
.sg-empty { text-align: center; color: var(--sg-slate-400); padding: 34px 14px !important; font-size: 13.5px; }
.sg-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ----------------------------------------------------------- badges */

.sg-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sg-badge-green  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.sg-badge-red    { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.sg-badge-amber  { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.sg-badge-orange { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.sg-badge-blue   { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.sg-badge-purple { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.sg-badge-indigo { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.sg-badge-teal   { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.sg-badge-gray   { background: var(--sg-slate-100); color: var(--sg-slate-600); border-color: var(--sg-slate-200); }

/* ---------------------------------------------------------- buttons */

.sg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .13s ease, border-color .13s ease, color .13s ease, opacity .13s;
  white-space: nowrap;
  line-height: 1.2;
}
.sg-btn:disabled { opacity: .55; cursor: not-allowed; }
.sg-btn-primary { background: var(--sg-blue); color: #fff; }
.sg-btn-primary:hover:not(:disabled) { background: var(--sg-blue-dark); }
.sg-btn-ghost { background: #fff; border-color: var(--sg-slate-200); color: var(--sg-slate-800); }
.sg-btn-ghost:hover:not(:disabled) { background: var(--sg-slate-50); }
.sg-btn-danger { background: var(--sg-red); color: #fff; }
.sg-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.sg-btn-success { background: var(--sg-green); color: #fff; }
.sg-btn-success:hover:not(:disabled) { background: #15803d; }
.sg-btn-dark { background: var(--sg-navy); color: #fff; }
.sg-btn-dark:hover:not(:disabled) { background: var(--sg-navy-soft); }
.sg-btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.sg-btn-icon { padding: 6px 8px; }

.sg-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------ forms */

.sg-field { margin-bottom: 14px; }
.sg-field label, .sg-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sg-slate-600);
  margin-bottom: 5px;
}
.sg-field .sg-hint { font-size: 11.5px; color: var(--sg-slate-400); margin-top: 4px; }
.sg-req { color: var(--sg-red); }

.sg-input, .sg-select, .sg-textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fff;
  color: var(--sg-slate-800);
  transition: border-color .13s ease, box-shadow .13s ease;
}
.sg-input:focus, .sg-select:focus, .sg-textarea:focus {
  outline: none;
  border-color: var(--sg-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.sg-textarea { min-height: 84px; resize: vertical; }
.sg-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.2 7.5 10 12.3l4.8-4.8'  stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; padding-right: 30px; }

.sg-grid { display: grid; gap: 14px; }
.sg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-span-2 { grid-column: span 2; }
.sg-span-3 { grid-column: span 3; }
.sg-span-4 { grid-column: span 4; }

.sg-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sg-check input { width: 16px; height: 16px; accent-color: var(--sg-blue); }

.sg-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-radio-opt {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--sg-slate-200);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.sg-radio-opt:has(input:checked) { border-color: var(--sg-blue); background: #eff6ff; color: var(--sg-blue-dark); font-weight: 600; }
.sg-radio-opt input { accent-color: var(--sg-blue); }

/* ----------------------------------------------------------- modals */

.sg-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  z-index: 1000;
  overflow-y: auto;
  animation: sg-fade .12s ease;
}
.sg-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .45);
  animation: sg-pop .15s ease;
  margin: auto 0;
}
.sg-modal-wide { max-width: 980px; }
.sg-modal-head {
  padding: 15px 18px;
  border-bottom: 1px solid var(--sg-slate-200);
  display: flex; align-items: center; gap: 12px;
}
.sg-modal-head h2 { margin: 0; font-size: 15.5px; font-weight: 700; flex: 1; }
.sg-modal-close {
  border: none; background: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--sg-slate-400); padding: 0 4px;
}
.sg-modal-close:hover { color: var(--sg-slate-800); }
.sg-modal-body { padding: 18px; max-height: calc(100vh - 230px); overflow-y: auto; }
.sg-modal-foot { padding: 13px 18px; border-top: 1px solid var(--sg-slate-200); background: var(--sg-slate-50); border-radius: 0 0 14px 14px; }
.sg-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

@keyframes sg-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sg-pop { from { opacity: 0; transform: translateY(-8px) scale(.99) } to { opacity: 1; transform: none } }

/* ----------------------------------------------------------- toasts */

.sg-toast-host {
  position: fixed; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 9px;
  z-index: 2000; max-width: 380px;
}
.sg-toast {
  display: flex; align-items: flex-start; gap: 9px;
  background: #fff;
  border: 1px solid var(--sg-slate-200);
  border-left: 4px solid var(--sg-blue);
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .35);
  font-size: 13px;
  animation: sg-slide .16s ease;
}
.sg-toast-out { opacity: 0; transform: translateY(6px); transition: all .3s ease; }
.sg-toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sg-blue); margin-top: 5px; flex: 0 0 7px; }
.sg-toast-msg { flex: 1; }
.sg-toast-x { border: none; background: none; cursor: pointer; color: var(--sg-slate-400); font-size: 16px; line-height: 1; padding: 0 2px; }
.sg-toast-success { border-left-color: var(--sg-green); } .sg-toast-success .sg-toast-dot { background: var(--sg-green); }
.sg-toast-warning { border-left-color: var(--sg-amber); } .sg-toast-warning .sg-toast-dot { background: var(--sg-amber); }
.sg-toast-error   { border-left-color: var(--sg-red); }   .sg-toast-error .sg-toast-dot { background: var(--sg-red); }

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

/* ----------------------------------------------------------- login */

.sg-auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--sg-navy);
}
.sg-auth-hero {
  color: #e2e8f0;
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(37, 99, 235, .45), transparent 62%),
    radial-gradient(700px 420px at 88% 92%, rgba(56, 189, 248, .28), transparent 60%),
    var(--sg-navy);
}
.sg-auth-hero h1 { font-size: 38px; line-height: 1.12; margin: 22px 0 14px; color: #fff; font-weight: 800; letter-spacing: -.5px; }
.sg-auth-hero p { font-size: 15px; color: #b6c2d4; max-width: 460px; line-height: 1.65; }
.sg-auth-features { margin-top: 30px; display: grid; gap: 13px; max-width: 460px; }
.sg-auth-feature { display: flex; gap: 12px; align-items: flex-start; }
.sg-auth-feature i {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 9px; background: rgba(255,255,255,.09);
  display: grid; place-items: center; color: #7dd3fc; font-size: 13px;
}
.sg-auth-feature strong { display: block; color: #fff; font-size: 13.5px; font-weight: 600; }
.sg-auth-feature span { font-size: 12.5px; color: #93a3b8; }
.sg-auth-panel {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.sg-auth-card { width: 100%; max-width: 400px; }
.sg-auth-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.sg-auth-card .sg-auth-sub { color: var(--sg-slate-600); font-size: 13.5px; margin-bottom: 22px; }
.sg-demo-users { border-top: 1px dashed var(--sg-slate-200); margin-top: 20px; padding-top: 16px; }
.sg-demo-user {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid transparent; background: none; cursor: pointer;
}
.sg-demo-user:hover { background: var(--sg-slate-50); border-color: var(--sg-slate-200); }
.sg-demo-user .sg-user-name { font-size: 13px; font-weight: 600; }
.sg-demo-user .sg-user-role { font-size: 11.5px; color: var(--sg-slate-600); }

/* --------------------------------------------------------- printing */

.sg-print-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg-qr-card {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  background: #fff;
  break-inside: avoid;
  page-break-inside: avoid;
}
.sg-qr-card .sg-qr-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.sg-qr-card .sg-qr-code { font-size: 11.5px; color: var(--sg-slate-600); font-family: ui-monospace, monospace; }
.sg-qr-card .sg-qr-zone { font-size: 11px; color: var(--sg-slate-400); margin-top: 2px; }
.sg-qr-box { display: inline-block; padding: 8px; background: #fff; margin: 9px 0 6px; }
.sg-qr-box img, .sg-qr-box canvas { display: block; }
.sg-qr-token { font-size: 10.5px; color: var(--sg-slate-400); font-family: ui-monospace, monospace; word-break: break-all; }
.sg-qr-kind {
  display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 1px 7px; border-radius: 999px;
  background: var(--sg-slate-100); color: var(--sg-slate-600); margin-bottom: 7px;
}

/* ------------------------------------------------------ misc pieces */

.sg-muted { color: var(--sg-slate-600); font-size: 13px; }
.sg-dim { color: var(--sg-slate-400); }
.sg-empty-state { text-align: center; padding: 46px 20px; color: var(--sg-slate-400); }
.sg-empty-state i { font-size: 30px; margin-bottom: 12px; display: block; color: #cbd5e1; }
.sg-empty-state h3 { font-size: 15px; color: var(--sg-slate-600); margin: 0 0 5px; }
.sg-empty-state p { font-size: 13px; margin: 0 0 16px; }

.sg-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sg-toolbar .sg-spacer { flex: 1; }
.sg-search { position: relative; }
.sg-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--sg-slate-400); font-size: 12px; }
.sg-search input { padding-left: 32px; min-width: 230px; }

.sg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sg-slate-200); margin-bottom: 16px; flex-wrap: wrap; }
.sg-tab {
  padding: 9px 14px; border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--sg-slate-600);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sg-tab:hover { color: var(--sg-navy); }
.sg-tab.active { color: var(--sg-blue); border-bottom-color: var(--sg-blue); }

.sg-kv { display: grid; grid-template-columns: 132px 1fr; gap: 7px 14px; font-size: 13.5px; }
.sg-kv dt { color: var(--sg-slate-600); font-size: 12.5px; font-weight: 600; }
.sg-kv dd { margin: 0; }

.sg-progress { height: 7px; background: var(--sg-slate-200); border-radius: 999px; overflow: hidden; }
.sg-progress > span { display: block; height: 100%; background: var(--sg-blue); border-radius: 999px; transition: width .3s ease; }

.sg-scanner-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  min-height: 260px;
}
.sg-scan-line {
  position: absolute; left: 6%; right: 6%; height: 2px; top: 50%;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  animation: sg-scan 2.2s ease-in-out infinite;
}
@keyframes sg-scan { 0%,100% { top: 18% } 50% { top: 82% } }

.sg-verdict-valid { border-left: 4px solid var(--sg-green); background: #f0fdf4; }
.sg-verdict-bad   { border-left: 4px solid var(--sg-red); background: #fef2f2; }
.sg-verdict-warn  { border-left: 4px solid var(--sg-amber); background: #fffbeb; }

.sg-result-card { border: 1px solid var(--sg-slate-200); border-radius: 11px; padding: 14px; margin-bottom: 10px; }

.sg-map { height: 520px; border-radius: var(--sg-radius); overflow: hidden; border: 1px solid var(--sg-slate-200); }
.sg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--sg-slate-600); }
.sg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sg-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.sg-pin {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  color: #fff; font-size: 11px;
  border: 2px solid #fff;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .4);
}
.sg-pin > * { transform: rotate(45deg); }

.sg-q-item { border: 1px solid var(--sg-slate-200); border-radius: 11px; padding: 13px; margin-bottom: 11px; background: #fff; }
.sg-q-item-head { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.sg-q-num {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px;
  background: var(--sg-slate-100); color: var(--sg-slate-600);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.sg-q-label { font-size: 13.5px; font-weight: 600; flex: 1; }
.sg-q-help { font-size: 11.5px; color: var(--sg-slate-400); margin-top: 2px; }
.sg-q-actions { display: flex; gap: 4px; }
.sg-q-body { padding-left: 31px; }

.sg-table-scroll { overflow-x: auto; }

@media (max-width: 1080px) {
  .sg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sg-auth-wrap { grid-template-columns: 1fr; }
  .sg-auth-hero { display: none; }
  .sg-shell { flex-direction: column; }
  .sg-sidebar { width: 100%; flex: none; height: auto; position: static; }
  .sg-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 10px; }
  .sg-nav-group { width: 100%; padding: 8px 12px 2px; }
  .sg-nav a { flex: 0 0 auto; }
  .sg-grid-2, .sg-grid-3, .sg-grid-4 { grid-template-columns: 1fr; }
  .sg-span-2, .sg-span-3, .sg-span-4 { grid-column: span 1; }
  .sg-content { padding: 14px; }
  .sg-print-sheet { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .sg-sidebar, .sg-topbar, .sg-no-print, .sg-btn { display: none !important; }
  body { background: #fff; }
  .sg-content { padding: 0; }
  .sg-card { border: none; box-shadow: none; }
  .sg-print-sheet { grid-template-columns: repeat(3, 1fr); }
}
