/* ==========================================================================
   Generic Invoice & Billing Manager - Master Design System
   Sleek Glassmorphism, Dark UI Command Center, & Strict Single-Page A4 Canvas
   ========================================================================== */

:root {
  /* Brand & Theme Colors */
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-card: rgba(31, 41, 55, 0.7);
  --bg-glass: rgba(17, 24, 39, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --border-accent: rgba(99, 102, 241, 0.3);
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --secondary: #3b82f6;
  --accent: #06b6d4;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);
  
  /* Text */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-inverse: #111827;
  
  /* Layout Dimensions */
  --header-height: 64px;
  --sidebar-width: 480px;
  --a4-width: 794px;
  --a4-min-height: 1123px;
  
  /* Transitions & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #a5b4fc;
}

/* ==========================================================================
   Typography & Badges
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.25;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-paid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-unpaid {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-overdue {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-draft {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  outline: none;
  user-select: none;
}
.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-main), 0 0 0 4px var(--primary);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-icon-only {
  padding: 8px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Form Controls & Inputs
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group.inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(17, 24, 39, 0.85);
}

textarea {
  resize: vertical;
  min-height: 72px;
}

/* ==========================================================================
   Application Header & Navigation
   ========================================================================== */
.app-header {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}
.brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.nav-tab-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}
.nav-tab-btn.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Dashboard Metrics
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}
.metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
}
.metric-value.highlight-paid {
  color: var(--success);
}
.metric-value.highlight-unpaid {
  color: var(--warning);
}

/* ==========================================================================
   Admin Container & Split Layout
   ========================================================================== */
.admin-workspace {
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.admin-panel {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* Invoice Composer Layout */
.composer-split-view {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--header-height));
}

.composer-sidebar {
  width: var(--sidebar-width);
  min-width: 420px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.composer-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.composer-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-viewport {
  flex: 1;
  background: #080c14;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-toolbar {
  width: 100%;
  max-width: var(--a4-width);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Line Item Row Editor
   ========================================================================== */
.line-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.line-items-table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.line-items-table td {
  padding: 6px 4px;
  vertical-align: top;
}
.line-items-table input {
  padding: 6px 8px;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Strict Single-Page A4 Invoice Canvas (Print & Screen Engine)
   ========================================================================== */
.a4-canvas-container {
  width: var(--a4-width);
  min-height: var(--a4-min-height);
  background: #ffffff;
  color: #1f2937;
  padding: 42px 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-family);
  position: relative;
  box-sizing: border-box;
}

/* A4 Header */
.a4-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.a4-biz-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.a4-biz-details {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.45;
}

.a4-doc-meta {
  text-align: right;
}
.a4-doc-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.a4-meta-table {
  font-size: 0.8125rem;
  margin-left: auto;
  border-collapse: collapse;
}
.a4-meta-table td {
  padding: 2px 6px;
}
.a4-meta-table .meta-label {
  font-weight: 600;
  color: #6b7280;
}
.a4-meta-table .meta-val {
  font-weight: 700;
  color: #111827;
  text-align: right;
}

/* Bill To Block */
.a4-bill-to-section {
  display: flex;
  justify-content: space-between;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.a4-bill-to-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.a4-client-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}
.a4-client-info {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.4;
}

/* Line Items Table on A4 */
.a4-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.a4-items-table th {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 2px solid #d1d5db;
}
.a4-items-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #1f2937;
}
.a4-items-table tr:last-child td {
  border-bottom: 2px solid #e5e7eb;
}

.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

/* Totals & Stamp Summary Area */
.a4-summary-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.a4-payment-instructions {
  width: 52%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 16px;
}
.a4-instr-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}
.a4-instr-text {
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.45;
  white-space: pre-line;
}

.a4-totals-box {
  width: 42%;
}
.a4-totals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.a4-totals-table td {
  padding: 4px 8px;
}
.a4-totals-table .total-label {
  color: #4b5563;
  text-align: right;
}
.a4-totals-table .total-val {
  font-weight: 600;
  color: #111827;
  text-align: right;
}
.a4-totals-table .grand-total {
  font-size: 1.125rem;
  font-weight: 800;
  border-top: 2px solid #111827;
  padding-top: 6px;
}
.a4-totals-table .balance-due-row {
  color: #dc2626;
  font-weight: 700;
  border-top: 1px dashed #e5e7eb;
}

/* Rubber Stamp Styling */
.rubber-stamp {
  position: absolute;
  right: 280px;
  bottom: 120px;
  transform: rotate(-12deg);
  border: 4px double;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
}
.stamp-paid {
  border-color: #16a34a;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.05);
}
.stamp-unpaid {
  border-color: #ea580c;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.05);
}
.stamp-overdue {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

/* A4 Footer */
.a4-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* ==========================================================================
   Public Landing & Client Portal Pages
   ========================================================================== */
.public-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hero-section {
  text-align: center;
  margin-bottom: 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px auto;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

/* Client Portal Header Bar */
.client-portal-header {
  width: 100%;
  max-width: var(--a4-width);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.portal-status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}

/* Table in Admin View */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.data-table th {
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.25s ease;
}
@keyframes toastSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Mobile Responsiveness & Media Queries
   ========================================================================== */
@media (max-width: 980px) {
  .composer-split-view {
    flex-direction: column;
    height: auto;
  }
  .composer-sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .preview-viewport {
    padding: 16px 8px;
  }
  .a4-canvas-container {
    transform-origin: top center;
    max-width: 100%;
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Strict Single-Page A4 Print CSS
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header,
  .composer-sidebar,
  .preview-toolbar,
  .client-portal-header,
  .modal-overlay,
  .toast-container,
  .nav-tabs,
  .btn,
  .public-landing {
    display: none !important;
  }
  .composer-split-view,
  .preview-viewport,
  .admin-workspace {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    height: auto !important;
    overflow: visible !important;
  }
  .a4-canvas-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    min-height: 100% !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
}
