/* ==========================================================================
   3D Print Price Calculator - Modern PWA Stylesheet
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-app: #0b1120;
  --bg-surface: #131c2e;
  --bg-surface-soft: #1a263d;
  --bg-surface-elevated: #223250;
  --bg-input: #0e1726;
  --border-subtle: #24344d;
  --border-focus: #38bdf8;
  --ink-primary: #f8fafc;
  --ink-secondary: #94a3b8;
  --ink-muted: #64748b;
  --brand: #0284c7;
  --brand-light: #38bdf8;
  --brand-dark: #0369a1;
  --brand-gradient: linear-gradient(135deg, #0284c7, #06b6d4);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-soft: rgba(244, 63, 94, 0.15);
  --accent-purple: #a855f7;
  --accent-purple-soft: rgba(168, 85, 247, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.2);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-input: #ffffff;
  --border-subtle: #cbd5e1;
  --border-focus: #0284c7;
  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --brand: #0284c7;
  --brand-light: #0ea5e9;
  --brand-dark: #0369a1;
  --brand-gradient: linear-gradient(135deg, #0284c7, #0284c7);
  --accent-emerald: #059669;
  --accent-emerald-soft: #d1fae5;
  --accent-amber: #d97706;
  --accent-amber-soft: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-soft: #ffe4e6;
  --accent-purple: #9333ea;
  --accent-purple-soft: #f3e8ff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 15px rgba(2, 132, 199, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--ink-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Base Elements & Form Controls
   ========================================================================== */

button, input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 38px;
  padding: 0 14px;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
}

.secondary {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
}

.secondary:hover {
  background: var(--bg-surface-soft);
  border-color: var(--brand-light);
}

.accent-success {
  background: var(--accent-emerald);
  color: #ffffff;
}

.accent-success:hover {
  filter: brightness(1.1);
}

.danger {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.danger:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w-100 {
  width: 100%;
}

.file-action {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-action input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   App Grid Shell
   ========================================================================== */

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #090e1a;
  border-right: 1px solid var(--border-subtle);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
  overflow-y: auto;
}

:root[data-theme="light"] .sidebar {
  background: #0f172a;
  color: #f8fafc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand-text span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.nav-badge {
  font-size: 11px;
  background: var(--bg-surface-elevated);
  padding: 2px 7px;
  border-radius: 12px;
  color: #cbd5e1;
}

.nav-item.active .nav-badge {
  background: #0284c7;
  color: #ffffff;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.storage-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.storage-indicator strong {
  display: block;
  color: #f1f5f9;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Main Content & Topbar
   ========================================================================== */

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-app);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
}

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

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  line-height: 1;
  margin-bottom: 3px;
}

h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view {
  padding: 24px 28px;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   Calculator Grid & Sections
   ========================================================================== */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title svg {
  color: var(--brand-light);
}

.card-action-link {
  font-size: 12px;
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-action-link:hover {
  text-decoration: underline;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

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

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.field-hint {
  font-size: 11px;
  color: var(--ink-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  pointer-events: none;
}

.input-suffix {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  pointer-events: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--ink-primary);
  transition: all var(--transition-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.has-prefix input {
  padding-left: 32px;
}

.has-suffix input {
  padding-right: 44px;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-row .field {
  flex: 1;
}

/* ==========================================================================
   Sticky Quote Summary Card
   ========================================================================== */

.quote-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-card {
  background: var(--bg-surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--brand-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.quote-total-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-mono), var(--font-sans);
}

.quote-per-unit {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 6px;
  margin-bottom: 18px;
  font-weight: 500;
}

.quote-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.quote-kpi-box {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-kpi-label {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.quote-kpi-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.quote-kpi-val.profit {
  color: var(--accent-emerald);
}

/* Donut Chart & Visual Breakdown */
.chart-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.donut-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.1;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  font-size: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-secondary);
}

.legend-dot-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Itemized Cost Breakdown Table */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.breakdown-table td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--ink-secondary);
}

.breakdown-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-primary);
}

.breakdown-table tr.total-row td {
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
  padding-top: 10px;
  font-weight: 700;
  color: var(--ink-primary);
  font-size: 14px;
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Materials & Machines Tab
   ========================================================================== */

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

.view-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.view-header p {
  color: var(--ink-secondary);
  font-size: 14px;
  margin-top: 2px;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  max-width: 280px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.item-card:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
}

.item-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  color: var(--brand-light);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.item-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: var(--radius-md);
}

.item-prop-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-prop-label {
  font-size: 11px;
  color: var(--ink-muted);
}

.item-prop-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.item-notes {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
  min-height: 34px;
}

.item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Saved Quotes / History Tab
   ========================================================================== */

.quotes-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.quotes-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.quotes-table th {
  background: var(--bg-surface-soft);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.quotes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--ink-primary);
  vertical-align: middle;
}

.quotes-table tr:last-child td {
  border-bottom: none;
}

.quotes-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Analytics / Visualizer Tab
   ========================================================================== */

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.batch-tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.batch-tier-table th,
.batch-tier-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
}

.batch-tier-table th:first-child,
.batch-tier-table td:first-child {
  text-align: left;
}

/* ==========================================================================
   Modal Dialogs & Drawers
   ========================================================================== */

.modal-root {
  position: relative;
  z-index: 1000;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--transition-normal);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .quote-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .topbar {
    padding: 12px 16px;
  }

  .view {
    padding: 16px;
  }

  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Print Styles (Clean PDF Customer Quotation)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .sidebar,
  .topbar,
  .top-actions,
  .quote-actions,
  .modal-backdrop,
  .toast,
  .btn-sm,
  .card-action-link,
  #nav,
  .storage-indicator {
    display: none !important;
  }

  .app {
    display: block !important;
  }

  .main {
    margin: 0 !important;
    padding: 0 !important;
  }

  .view {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .calc-layout {
    display: block !important;
  }

  .calc-inputs {
    display: none !important;
  }

  .quote-card {
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid;
  }

  .quote-card::before {
    display: none !important;
  }

  .quote-total-price {
    color: #0284c7 !important;
  }

  .breakdown-table td {
    color: #222222 !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }
}
