@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark light;
  --bg-app: #060b16;
  --bg-elevated: #0c1426;
  --bg-card: #0f192e;
  --bg-card-hover: #15223d;
  --bg-input: #091020;
  --bg-subtle: #131f38;
  --border-subtle: #1e2f50;
  --border-strong: #2d4470;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #60a5fa;
  --accent-strong: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --navy-brand: #081d3b;
  --positive: #10b981;
  --positive-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, 0.15);
  --ring: #60a5fa;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.32);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-app: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-subtle: #dbe3ee;
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --accent: #1d4ed8;
  --accent-strong: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --positive: #047857;
  --positive-soft: rgba(4, 120, 87, 0.1);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.11);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.1);
  --ring: #1d4ed8;
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.06);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Accessibility utility (modern-web-guidance: validate-input-after-interaction) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

button, [role="button"], select, summary {
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   AUTH GATE
   ========================================================================== */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 420px at 18% 12%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(650px 420px at 85% 88%, rgba(16, 185, 129, 0.12), transparent 70%),
    var(--bg-app);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.auth-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.auth-logo {
  height: 34px;
  width: auto;
  display: block;
}

/* ==========================================================================
   APP LAYOUT
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  background: var(--bg-elevated);
  border-inline-end: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px 18px;
  border-block-end: 1px solid var(--border-subtle);
  margin-block-end: 16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: #081d3b;
  padding: 4px;
}

.brand-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 12px 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-btn[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.38);
}

.nav-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-block-start: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-pill {
  font-size: 0.74rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  flex: none;
}

.status-dot.warn {
  background: var(--warning);
}

/* ==========================================================================
   MAIN CONTENT & TOPBAR
   ========================================================================== */
.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
}

.page-heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.content-wrap {
  padding: 22px 24px 48px;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

/* ==========================================================================
   BANNERS, CARDS & KPI GRIDS
   ========================================================================== */
.sample-banner {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 180ms ease;
}

.kpi-card:hover {
  border-color: var(--border-strong);
}

.kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS & CHIPS
   ========================================================================== */
.btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-sm {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #60a5fa;
}

.btn-success {
  background: #059669;
  border-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background: #047857;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-paid, .badge-positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.badge-partial, .badge-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-overdue, .badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-neutral {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-info {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE DATA TABLES (modern-web-guidance: responsive-table)
   ========================================================================== */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(640px, 78vh);
  container-type: inline-size;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}

.data-table caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-block-end: 1px solid var(--border-subtle);
}

.data-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--bg-elevated);
}

.data-table thead th {
  padding: 11px 12px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-block-end: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table thead th.right,
.data-table tbody td.right {
  text-align: right;
}

.data-table tbody th,
.data-table tbody td {
  padding: 11px 12px;
  border-block-end: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--bg-card);
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
}

.data-table tbody tr:hover td,
.data-table tbody tr:hover th {
  background: var(--bg-card-hover);
}

.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

@container (width < 680px) {
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    margin: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .data-table tbody th {
    position: sticky;
    inset-block-start: 0;
    background: var(--bg-subtle);
  }

  .data-table tbody td,
  .data-table tbody td.right {
    text-align: left;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .data-table tbody td:nth-child(2)::before { content: var(--label-2, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(3)::before { content: var(--label-3, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(4)::before { content: var(--label-4, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(5)::before { content: var(--label-5, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(6)::before { content: var(--label-6, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(7)::before { content: var(--label-7, "") ": "; color: var(--text-muted); font-weight: 600; }
  .data-table tbody td:nth-child(8)::before { content: var(--label-8, "") ": "; color: var(--text-muted); font-weight: 600; }
}

/* ==========================================================================
   FORMS & INTERACTION-DEFERRED VALIDATION (validate-input-after-interaction)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.field .hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.input, select.input, textarea.input {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

textarea.input {
  min-height: 76px;
  resize: vertical;
}

.input:focus {
  border-color: var(--accent);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger) !important;
  background-color: var(--danger-soft);
}

:is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

/* ==========================================================================
   TABS (modern-web-guidance: tabs)
   ========================================================================== */
.tablist {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  border-block-end: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.tablist [role="tab"] {
  position: relative;
  flex: none;
  min-height: 42px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.tablist [role="tab"]:hover {
  color: var(--text-primary);
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--accent);
}

.tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--accent);
}

.tabpanel-inner {
  padding-top: 4px;
}

/* ==========================================================================
   NATIVE MODAL DIALOGS (modern-web-guidance: dialog & light-dismiss-a-dialog)
   ========================================================================== */
dialog {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

dialog.dialog-sm {
  width: min(520px, calc(100vw - 24px));
}

dialog.dialog-xl {
  width: min(1060px, calc(100vw - 24px));
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-header {
  padding: 16px 22px;
  border-block-end: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated);
}

.dialog-header h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.dialog-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.dialog-footer {
  padding: 14px 22px;
  border-block-start: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   INVOICE COMPOSER & A4 PAPER PREVIEW
   ========================================================================== */
.line-items-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--bg-elevated);
  margin-block: 16px;
}

.line-item-row {
  display: grid;
  grid-template-columns: 2.4fr 0.8fr 0.55fr 0.95fr 0.95fr 0.65fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.live-summary-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.88rem;
}

.summary-line.grand {
  border-block-start: 1px solid var(--border-strong);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--positive);
}

/* Crisp White A4 Printable Sheet */
.a4-sheet {
  background: #ffffff;
  color: #0f172a;
  max-width: 794px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.a4-band {
  background: #081d3b;
  color: #ffffff;
  padding: 24px 28px;
  border-bottom: 4px solid #0d5ae5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.a4-body {
  padding: 24px 28px;
}

.a4-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.a4-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 14px;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.a4-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  text-align: left;
}

.a4-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--positive);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem;
  font-weight: 600;
}

.toast.error {
  border-left-color: var(--danger);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & REDUCED MOTION
   ========================================================================== */
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    z-index: 40;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.5);
  }
  .sidebar.mobile-open {
    display: flex;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .line-item-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #previewDialog, #previewDialog * {
    visibility: visible !important;
  }
  .no-print, .no-print * {
    display: none !important;
    visibility: hidden !important;
  }
  #previewDialog {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
  }
  #previewDialog .dialog-header,
  #previewDialog .dialog-footer {
    display: none !important;
  }
  .a4-sheet {
    box-shadow: none !important;
    max-width: 100% !important;
  }
}
