/* ==========================================================================
   LAP I.T. SOLUTIONS INC. — Internal Admin CMS Stylesheet
   Enterprise Management Theme
   ========================================================================== */

:root {
  --admin-primary: #0B56D8;
  --admin-primary-dark: #0843aa;
  --admin-accent: #E5252A;
  
  --admin-bg-sidebar: #0f172a;
  --admin-bg-page: #f8fafc;
  --admin-surface: #ffffff;
  
  --admin-border: #e2e8f0;
  --admin-border-dark: #334155;
  
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-text-light: #94a3b8;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--admin-bg-page);
  color: var(--admin-text-main);
  line-height: 1.5;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Login Screen
   ========================================================================== */

.login-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--admin-surface);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 32px;
}

.login-logo-area {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-img {
  height: 52px;
  width: auto;
  max-width: 280px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.login-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--admin-text-main);
}

.login-subhead {
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
}

/* ==========================================================================
   Admin Layout & Sidebar
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--admin-bg-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--admin-border-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-name {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #ffffff;
}

.sidebar-badge {
  font-size: 0.6875rem;
  background-color: var(--admin-primary);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
}

.sidebar-nav {
  padding: 16px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--admin-text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.sidebar-nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

.sidebar-nav-item.active {
  background-color: var(--admin-primary);
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border-dark);
  font-size: 0.8125rem;
  color: var(--admin-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Admin Main Content
   ========================================================================== */

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

.admin-topbar {
  background-color: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-page-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.admin-body {
  padding: 28px;
  flex-grow: 1;
  overflow-y: auto;
}

/* ==========================================================================
   Dashboard Metrics
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--admin-text-main);
  line-height: 1.1;
}

/* ==========================================================================
   Data Tables & Badges
   ========================================================================== */

.admin-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 24px;
  overflow: hidden;
}

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

.admin-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  background-color: #f8fafc;
  color: var(--admin-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-new { background-color: #dbeafe; color: #1e40af; }
.badge-contacted { background-color: #fef3c7; color: #92400e; }
.badge-prepared { background-color: #e0e7ff; color: #3730a3; }
.badge-won { background-color: #d1fae5; color: #065f46; }
.badge-lost { background-color: #fee2e2; color: #991b1b; }
.badge-archived { background-color: #f1f5f9; color: #475569; }

/* Alerts */
.admin-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.admin-alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.admin-alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Responsive */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
}

/* Quotation Clickable Links & Detail Modal */
.rfq-clickable-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.rfq-clickable-btn:hover {
  background: #bfdbfe;
  color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.15);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: adminModalSlide 0.2s ease-out;
}

@keyframes adminModalSlide {
  from { transform: translateY(14px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.admin-modal-header {
  padding: 18px 24px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}

.admin-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.875rem;
}

.admin-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


/* ==========================================================================
   Quotation Builder — Whole-Page Workspace View (Executive WebPOS Engine)
   ========================================================================== */

body.qed-page-active {
  overflow: hidden !important;
}
body.qed-page-active #wpadminbar {
  display: none !important;
}

/* Whole-page takeover container — full screen dedicated workspace */
.qed-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #090d16 !important;
  z-index: 9999999 !important;
  display: none;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.qed-overlay.active {
  display: block !important;
}

/* Whole-page panel container */
.qed-panel {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  background: #090d16 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

/* Sticky top navigation bar */
.qed-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #0f172a !important;
  color: #fff;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.qed-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
}
.qed-back-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}
.qed-topbar-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.qed-topbar-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}
.qed-ref-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(11, 86, 216, 0.25);
  border: 1px solid rgba(11, 86, 216, 0.5);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.qed-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qed-status-select {
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #1e293b;
  color: #f8fafc;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.qed-status-select:focus {
  border-color: #38bdf8;
}
.qed-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.15s;
}
.qed-close-btn:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* Whole-page workspace body canvas */
.qed-body {
  flex: 1;
  padding: 36px 24px 80px;
  background: #090d16;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* Paper document (Executive WebPOS Style) */
.qed-paper {
  width: 100%;
  max-width: 1160px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 44px 50px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.qed-paper::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #0B56D8 0%, #38bdf8 100%);
}

/* Document Formal Header */
.qed-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 28px;
}
.qed-brand-col {
  flex: 1;
  min-width: 0;
}
.qed-doc-meta {
  text-align: right;
  flex-shrink: 0;
}
.qed-doc-badge {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.qed-meta-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.qed-meta-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
}
.qed-meta-label {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.qed-meta-val {
  color: #0f172a;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Step sections */
.qed-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.qed-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.qed-section-kicker {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #0B56D8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.qed-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.qed-section-summary {
  font-size: 11px;
  color: #64748b;
  text-align: right;
}
.qed-section-body {
  padding: 20px;
}

/* Grids & Form Fields */
.qed-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.qed-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.qed-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qed-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.qed-input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: var(--font-main);
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.qed-input:focus {
  outline: none;
  border-color: #0B56D8;
  box-shadow: 0 0 0 3px rgba(11, 86, 216, 0.12);
}
.qed-input.qed-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

/* Items Table */
.qed-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}
.qed-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.qed-items-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}
.qed-items-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.qed-items-table tr:last-child td {
  border-bottom: none;
}
.qed-items-table .num {
  text-align: right;
  font-family: var(--font-mono);
}

.qed-item-img-box {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: inline-block;
}
.qed-item-title-input {
  width: 100%;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  background: #ffffff;
  box-sizing: border-box;
}
.qed-item-title-input:focus {
  border-color: #0B56D8;
  outline: none;
}
.qed-item-sub-input {
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  color: #64748b;
  background: #f8fafc;
  box-sizing: border-box;
}
.qed-item-sub-input:focus {
  border-color: #0B56D8;
  background: #fff;
  outline: none;
}

.qed-item-qty-input {
  width: 64px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  box-sizing: border-box;
}
.qed-item-price-input {
  width: 110px;
  text-align: right;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  box-sizing: border-box;
}

.qed-item-del {
  background: #fef2f2;
  border: 1px solid #fecaca;
  cursor: pointer;
  color: #dc2626;
  font-size: 0.95rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qed-item-del:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.qed-add-line-btn {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  color: #0B56D8;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qed-add-line-btn:hover {
  border-color: #0B56D8;
  background: #eff6ff;
}

/* Totals Box (WebPOS Style) */
.qed-totals-box {
  width: 320px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.qed-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.qed-total-row:last-child {
  border-bottom: none;
}
.qed-total-row.grand {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 16px;
  border-bottom: none;
}
.qed-total-row.grand span:last-child {
  color: #38bdf8;
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.qed-total-input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  width: 90px;
  text-align: right;
  font-family: var(--font-mono);
  background: #ffffff;
}
.qed-total-input:focus {
  outline: none;
  border-color: #0B56D8;
}

/* Sign-off grid */
.qed-signoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}
.qed-signoff-card {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qed-signoff-line {
  height: 44px;
  border-bottom: 1px solid #94a3b8;
  margin-bottom: 4px;
}
.qed-signoff-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Panel Sticky Footer */
.qed-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 999 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid #1e293b !important;
  padding: 14px 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-shrink: 0;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
}
.qed-save-feedback {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  display: none;
}
.qed-save-feedback.ok {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.qed-save-feedback.err {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .qed-topbar { padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .qed-topbar-actions { justify-content: flex-end; }
  .qed-body { padding: 16px 8px 60px; }
  .qed-paper { padding: 20px 14px; border-radius: 8px; }
  .qed-doc-header { flex-direction: column; text-align: left; }
  .qed-doc-meta { text-align: left; }
  .qed-meta-table { text-align: left; }
  .qed-meta-row { justify-content: flex-start; }
  .qed-grid-2, .qed-grid-3, .qed-signoff-grid { grid-template-columns: 1fr; }
  .qed-totals-box { width: 100%; }
  .qed-footer { padding: 12px 16px !important; }
}

/* Print styles for formal quotation */
@media print {
  .qed-overlay, .admin-sidebar, .admin-topbar, .admin-modal-overlay,
  .no-print, .rfq-status-select, .qed-footer, .qed-topbar-actions { display: none !important; }
}
