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

:root {
  --navy: #1a2744;
  --navy-hover: #2d3d66;
  --accent: #4f8ef7;
  --accent-hover: #3a7af5;
  --bg: #f4f6fb;
  --surface: #fff;
  --text: #1a2744;
  --muted: #6b7a99;
  --border: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --journal: #8b5cf6;
  --journal-light: #ede9fe;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Segoe UI',system-ui,sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg,#1a2744 0%,#2d4a8a 100%);
}

.auth-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.auth-logo p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  transition: all .2s;
}

.auth-tab.active {
  background: var(--navy);
  color: #fff;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

input[type=text],input[type=email],input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border .2s;
  margin-bottom: 14px;
}

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

.btn-primary {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-primary:hover { background: var(--accent-hover); }

.auth-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
  color: var(--danger);
}

.auth-msg.success { color: var(--success); }

#app-shell {
  display: none;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-header p {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  margin-top: 2px;
}

.nav-section { padding: 12px 0; }

.nav-label {
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--navy-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--navy-hover);
  color: #fff;
  border-left-color: var(--accent);
}

.nav-icon {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
}

.btn-signout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 18px;
  padding: 2px;
}

.btn-signout:hover { color: #fff; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.topbar h3 {
  font-size: 16px;
  font-weight: 600;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .15s;
}

.btn-sm:hover { background: var(--bg); }

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

.btn-sm.primary:hover { background: var(--accent-hover); }

.btn-sm.danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

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

.welcome-banner {
  background: linear-gradient(135deg,var(--navy) 0%,#2d4a8a 100%);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-banner h2 {
  font-size: 20px;
  font-weight: 700;
}

.welcome-banner p {
  font-size: 13px;
  opacity: .7;
  margin-top: 4px;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.stat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 14px;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}

.module-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.1);
}

.module-card.enabled {
  border-color: var(--accent);
  background: #f0f7ff;
}

.module-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.module-card p {
  font-size: 12px;
  color: var(--muted);
}

.module-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  transition: all .2s;
}

.module-card.enabled .module-check {
  background: var(--accent);
  border-color: var(--accent);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

tr:hover td { background: #f8fafc; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-yellow {
  background: #fef9c3;
  color: #a16207;
}

.badge-red {
  background: #fee2e2;
  color: #dc2626;
}

.badge-gray {
  background: #f1f5f9;
  color: #64748b;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-purple {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-orange {
  background: #ffedd5;
  color: #c2410c;
}

.empty-state {
  text-align: center;
  padding: 36px 24px;
  color: var(--muted);
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.empty-state h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.empty-state p { font-size: 12px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 660px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin: auto;
}

.modal-lg { max-width: 920px; }

.modal-xl { max-width: 1100px; }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-close:hover { background: var(--bg); }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-radius: 0 0 14px 14px;
  background: var(--surface);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full { grid-column: 1/-1; }

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}

.form-group input,.form-group select,.form-group textarea {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border .2s;
}

.form-group input:focus,.form-group select:focus,.form-group textarea:focus {
  border-color: var(--accent);
}

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

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.error { background: var(--danger); }

.toast.success { background: #15803d; }

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--text);
  background: transparent;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
  color: var(--muted);
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

.section-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.page-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--muted);
  text-align: center;
}

.page-coming h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 6px;
}

.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.vendor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 14px;
}

.vendor-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.1);
}

.vendor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg,#4f8ef7,#2d4a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.vendor-info {
  flex: 1;
  min-width: 0;
}

.vendor-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.vendor-sub {
  font-size: 12px;
  color: var(--muted);
}

.vendor-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.vstat { text-align: center; }

.vstat-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.vstat-label {
  font-size: 10px;
  color: var(--muted);
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

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

.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.contact-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.comm-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
}

.comm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.comm-date {
  font-size: 11px;
  color: var(--muted);
}

.contact-builder {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
}

.contact-builder-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}

.contact-builder-remove:hover { color: var(--danger); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.addr-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
}

.addr-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}

.addr-remove:hover { color: var(--danger); }

.combo-wrap { position: relative; }

.combo-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
  transition: border .2s;
}

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

.combo-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.combo-dropdown.open { display: block; }

.combo-option {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.combo-option:hover { background: var(--bg); }

.combo-option.add-new {
  color: var(--accent);
  font-weight: 600;
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.settings-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 7px;
  margin-bottom: 6px;
  font-size: 13px;
}

.add-option-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.add-option-row input {
  flex: 1;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  outline: none;
}

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

/* Repair cards */
.repair-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.repair-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.repair-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Document cards */
.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: all .15s;
}

.doc-card:hover { border-color: var(--accent); }

.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* History entries */
.history-entry {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.history-dot.manual { background: var(--warn); }

.history-content { flex: 1; }

.history-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.history-detail {
  font-size: 12px;
  color: var(--muted);
}

.history-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* File upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}

.upload-zone:hover,.upload-zone.dragover {
  border-color: var(--accent);
  background: #f0f7ff;
}

.upload-zone p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.upload-progress {
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.upload-progress-bar {
  background: var(--accent);
  height: 100%;
  border-radius: 99px;
  transition: width .3s;
}

/* Image thumbnails */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
  gap: 8px;
  margin-top: 10px;
}

.img-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid var(--border);
}

/* ── PRINT STYLES ─────────────────────────── */
@media print {
  body { background: #fff !important;
  overflow: visible !important;
  height: auto !important;
  }
  #app-shell { display: block !important;
  height: auto !important;
  overflow: visible !important;
  }
  .sidebar, .topbar, #topbar-actions, #ed-range-panel, .tab-bar { display: none !important;
  }
  .main { display: block !important;
  overflow: visible !important;
  }
  .content { overflow: visible !important;
  padding: 0 !important;
  }
  #print-only { display: block !important;
  }
  #ed-calendar, #ed-summary, #ed-log-wrap { display: block !important;
  }
  .modal-overlay { display: none !important;
  }
  #app-shell .btn-sm, #app-shell .btn-signout, #app-shell .tab-btn, #app-shell .modal-close, #app-shell .filter-chip, #app-shell .module-check { display: none !important;
  }
  .stat-card { border: 1px solid #ddd !important;
  box-shadow: none !important;
  }
  table { width: 100% !important;
  border-collapse: collapse !important;
  font-size: 12px !important;
  }
  th, td { border: 1px solid #ddd !important;
  padding: 6px 10px !important;
  }
  .badge { border: 1px solid #ddd !important;
  }
  @page { margin: 0.75in;
  size: letter;
  };
}

#print-only { display: none; }
