/**
 * KŞH Göğüs Cerrahisi Vizit - Component Styles
 * Buttons, Cards, Modals, Forms, and UI Components
 */

/* --- PRINT DOCUMENT HEADER (Hide on screen) --- */
.print-document-header {
  display: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-add {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
}

.btn-add:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-print {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-color: transparent;
}

.btn-print:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.btn-io {
  background-color: white;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-io:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.btn-sync {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white;
  border-color: transparent;
}

.btn-sync:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.btn-quick-action {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-main);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quick-action:hover {
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  color: white;
  border-color: var(--info);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-quick-action:active {
  transform: translateY(0) scale(0.97);
}

.btn-toolbar {
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toolbar:hover,
.btn-toolbar.active {
  background: #eff6ff;
  border-color: var(--info);
  color: var(--info);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

.btn-toolbar:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

/* Legacy edit-btn styles - kept for compatibility */
.edit-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-red {
  color: var(--accent);
  border-color: #fecaca;
  background: #fef2f2;
}

.qa-btn {
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qa-btn:hover {
  border-color: var(--info);
  color: var(--info);
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.qa-btn:active {
  transform: translateY(0) scale(0.98);
}

/* --- HEADER --- */
.main-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient overlay */
.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed 0%, #3b82f6 50%, #10b981 100%);
  opacity: 0.8;
}

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

.logo-container {
  flex-shrink: 0;
}

.app-logo {
  width: 48px;
  height: 48px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.app-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.app-name-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-version {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

.app-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  opacity: 0.8;
}

.main-header > .header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: static;
  align-items: center;
}

/* --- FILTER BAR --- */
.filter-bar {
  background: white;
  padding: 10px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-box {
  flex: 1;
  position: relative;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.search-input:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-select {
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: white;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- PATIENT CARD --- */
.patient-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  margin-bottom: 18px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  z-index: 10;
}

/* When date popup is active, boost the card's z-index */
.patient-card.popup-active {
  z-index: 9999 !important;
}

/* Card collapse functionality */
.patient-card .patient-card-body {
  max-height: 5000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.patient-card.collapsed {
  z-index: 10;
}

.patient-card.collapsed .patient-card-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* CRITICAL: Ensure card-header stays visible and can show popups */
.patient-card .card-header {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.patient-card.collapsed .card-header {
  overflow: visible;
  z-index: 1;
}

.card-collapse-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #bfdbfe;
}

.card-collapse-indicator:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-collapse-indicator:active {
  transform: scale(0.95);
}

.card-collapse-indicator:hover i {
  color: white !important;
}

.card-collapse-indicator i {
  font-size: 0.9rem;
  color: var(--info);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  font-weight: 700;
}

.patient-card.collapsed .card-collapse-indicator {
  background: white;
  border-color: #e2e8f0;
}

.patient-card.collapsed .card-collapse-indicator:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
}

.patient-card.collapsed .card-collapse-indicator i {
  transform: rotate(-90deg);
  color: #64748b;
}

.patient-card.collapsed .card-collapse-indicator:hover i {
  color: white !important;
}

.card-header {
  user-select: none;
}

.patient-card:hover {
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.patient-card.is-preop {
  border-left-color: var(--preop);
  border-left-width: 4px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.patient-card.is-preop:hover {
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.18);
}

.patient-card.is-preop .patient-name {
  color: var(--preop);
}

.patient-card.is-preop .card-header {
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.patient-card:not(.collapsed) .card-header {
  border-bottom: 1px solid var(--border-color);
}

.patient-card .card-header {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s ease;
}

/* Header top row - Name and Actions */
.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.patient-name-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  margin-right: 8px;
}

/* Header second row - Location selector */
.header-second-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.patient-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  outline: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: all 0.2s ease;
}

.patient-name:hover {
  overflow: visible;
  white-space: normal;
  word-break: break-word;
}

.patient-name:focus {
  white-space: normal;
  overflow: visible;
}

/* Patient meta info (location, room, doctor) - Always visible */
.patient-meta-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
  align-items: center;
  padding: 0;
  font-size: 0.65rem;
  line-height: 1.4;
}

.meta-info-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  position: relative;
  padding: 0 6px 0 0;
}

/* Hide empty meta info items */
.meta-info-item.meta-info-empty {
  display: none !important;
}

/* Show separator between items */
.meta-info-item::after {
  content: "|";
  color: #cbd5e1;
  font-weight: 400;
  margin: 0 6px;
}

/* Hide separator after last item */
.meta-info-item:last-child::after {
  display: none;
}

.meta-info-icon {
  font-size: 0.65rem;
  color: #94a3b8;
  flex-shrink: 0;
  width: 10px;
  text-align: center;
}

.meta-info-text {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--text-main);
  max-width: 180px;
}

/* Placeholder styles for contenteditable */
[contenteditable][data-placeholder]:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
  pointer-events: none;
}

[contenteditable][data-placeholder]:empty:focus:before {
  color: #cbd5e1;
}

.diagnosis {
  font-size: 0.85rem;
  color: var(--text-light);
  display: block;
  outline: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.5;
  min-height: 20px;
  transition: background 0.2s ease;
  padding: 2px 0;
  border-radius: 4px;
}

.diagnosis:hover {
  background: #f8fafc;
}

.diagnosis:focus {
  background: white;
}

/* New compact location selector in top right */
.header-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Location selector - used as modal */
.location-selector-compact {
  display: none !important;
  border: 2px solid var(--info);
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  background: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

.location-selector-compact:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2),
    0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Header action grid - 3x2 layout */
.header-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  align-items: center;
}

.action-grid-row {
  display: contents;
}

.header-action-btn {
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.header-action-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header-action-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- TASKS --- */
.task-bar {
  padding: 12px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.task-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.task-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-item:active {
  transform: scale(0.97) translateY(0);
}

.task-today {
  background: var(--task-today-bg);
  border-color: var(--task-today-border);
  color: var(--task-today-text);
}

.task-tomorrow {
  background: var(--task-tmm-bg);
  border-color: var(--task-tmm-border);
  color: var(--task-tmm-text);
}

.task-future {
  background: var(--task-future-bg);
  border-color: var(--task-future-border);
  color: var(--task-future-text);
}

.task-done {
  background: var(--task-done-bg);
  border-color: var(--task-done-border);
  color: var(--task-done-text);
  text-decoration: line-through;
  opacity: 0.7;
}

/* --- TOOLBAR --- */
.action-toolbar {
  padding: 10px 14px;
  background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.action-toolbar::-webkit-scrollbar {
  height: 4px;
}

.action-toolbar::-webkit-scrollbar-track {
  background: transparent;
}

.action-toolbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.action-toolbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- TREND TABLE --- */
.trend-details {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  transition: all 0.3s ease;
}

.trend-summary {
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.trend-summary:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: #3b82f6;
}

.trend-details[open] .trend-summary {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--info);
  border-left-color: var(--info);
  border-bottom: 2px solid var(--info);
}

.trend-summary i.trend-arrow {
  margin-left: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9em;
  padding: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.trend-details[open] .trend-arrow {
  transform: rotate(180deg);
  background: var(--info);
  color: white;
}

.trend-content {
  padding: 0;
  overflow-x: auto;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.trend-details[open] .trend-content {
  max-height: 2000px;
  opacity: 1;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 100%;
}

.trend-table th {
  background: #f8fafc;
  text-align: left;
  padding: 8px 12px;
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.trend-table td {
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  white-space: nowrap;
  color: var(--text-main);
}

.val-high {
  color: var(--accent);
  font-weight: 700;
}

/* Trend table CRUD controls */
.trend-header-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.trend-date-label {
  flex: 1;
  min-width: 0;
  outline: none;
}

.trend-delete-col {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.trend-delete-col:hover {
  background: #fee2e2;
  color: var(--accent);
}

.trend-param-cell {
  position: relative;
}

.trend-param-name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.trend-param-name {
  flex: 1;
  min-width: 0;
  outline: none;
  font-weight: 600;
}

.trend-delete-row {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.trend-delete-row:hover {
  background: #fee2e2;
  color: var(--accent);
}

.trend-actions {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-trend-action {
  background: white;
  color: var(--info);
  border: 1px solid var(--info);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-trend-action:hover {
  background: var(--info);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-trend-action:active {
  transform: translateY(0);
  box-shadow: none;
}

/* --- REPORTS SECTION --- */
.reports-details {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  transition: all 0.3s ease;
}

.reports-summary {
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.reports-summary:hover {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #10b981;
}

.reports-details[open] .reports-summary {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--success);
  border-left-color: var(--success);
  border-bottom: 2px solid var(--success);
}

.reports-summary i.trend-arrow {
  margin-left: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9em;
  padding: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.reports-details[open] .trend-arrow {
  transform: rotate(180deg);
  background: var(--success);
  color: white;
}

.reports-content {
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.reports-details[open] .reports-content {
  max-height: 5000px;
  opacity: 1;
}

.reports-list {
  padding: 16px 20px;
}

/* --- PROGRESS NOTES --- */
.progress-notes-details {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.progress-notes-summary {
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.progress-notes-summary:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  border-left-color: #f59e0b;
}

.progress-notes-details[open] .progress-notes-summary {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-left-color: #f59e0b;
  border-bottom: 2px solid #f59e0b;
}

.progress-notes-content {
  padding: 8px 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.progress-notes-details[open] .progress-notes-content {
  max-height: 3000px;
  opacity: 1;
}

.progress-note-item {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #fbbf24;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.progress-note-item:last-child {
  margin-bottom: 0;
}

.progress-note-item:hover {
  background: white;
  border-left-color: #f59e0b;
  box-shadow: 0 1px 4px rgba(251, 191, 36, 0.12);
}

.progress-note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.progress-note-date {
  font-weight: 700;
  font-size: 0.8rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.progress-note-delete {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.progress-note-delete:hover {
  background: #fee2e2;
  color: var(--accent);
}

.progress-note-content {
  outline: none;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
  white-space: pre-wrap;
}

.progress-note-content:hover {
  background: rgba(255, 255, 255, 0.6);
}

.progress-note-content:focus {
  background: white;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

/* --- CLINICAL NOTES --- */
.clinical-body {
  padding: 16px 20px;
  min-height: 70px;
  outline: none;
  transition: background 0.2s ease;
}

.clinical-body:hover {
  background: #fafbfc;
}

.clinical-body:focus {
  background: white;
}

details {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

details summary {
  padding: 12px 20px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.2s ease;
  position: relative;
}

details summary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

details[open] summary {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--info);
  border-bottom: 2px solid var(--info);
}

/* --- ORDER SECTION --- */
.order-section {
  margin: 0;
  border-top: 2px solid var(--border-color);
  background: white;
  position: relative;
  transition: all 0.2s ease;
}

.order-title {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.order-title:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.order-title::before {
  content: "📋";
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.order-input {
  width: 100%;
  border: none;
  padding: 12px 14px;
  min-height: 80px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  background: #f8fafc;
  color: var(--text-main);
  outline: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  transition: all 0.2s ease;
}

.order-input:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
}

.order-input:hover {
  background: #f1f5f9;
}

.order-input:focus {
  background: white;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* --- HEADER ACTIONS --- */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-actions i {
  font-size: 1.15rem;
  transition: all 0.2s;
  padding: 4px;
  cursor: pointer;
}

.header-actions i:hover {
  transform: scale(1.15);
}

.header-actions [data-action="toggle-preop"]:hover {
  color: var(--preop) !important;
}

.header-actions [data-action="remove-patient"]:hover {
  color: var(--accent) !important;
}

/* --- META & BADGES --- */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  align-items: center;
}

.meta-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: #fef2f2;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #fee2e2;
  white-space: nowrap;
}

.date-settings-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.date-trigger {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--info);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: white;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.date-trigger:hover {
  background: #eff6ff;
  border-color: var(--info);
}

.date-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  width: 300px;
}

.date-popup.active {
  display: block;
  animation: datePopupIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes datePopupIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.date-row:last-child {
  margin-bottom: 0;
}

.date-row label {
  flex-shrink: 0;
  width: 70px;
  color: var(--primary);
}

.date-row input[type="date"] {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: white;
}

.date-row input[type="date"]:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.date-row input[type="date"]:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

/* Modern date input styling */
.date-row input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.date-row input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* --- MODALS --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease forwards;
}

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

.modal-content {
  background: white;
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  opacity: 0;
  animation: modalContentIn 0.3s ease 0.1s forwards;
}

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

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px 16px 0 0;
  color: var(--primary);
}

.modal-header i.fa-times {
  font-size: 1.3rem;
  transition: all 0.2s ease;
  padding: 6px;
  border-radius: 6px;
}

.modal-header i.fa-times:hover {
  background: #fee2e2;
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* --- FORMS --- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
  background: white;
}

/* Lab info banner */
.lab-info-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.lab-info-banner i {
  font-size: 1.4rem;
  color: var(--info);
  flex-shrink: 0;
  margin-top: 2px;
}

.lab-info-banner strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.lab-paste-area {
  width: 100%;
  min-height: 240px;
  border: 2px dashed #cbd5e1;
  background: #fafbfc;
  padding: 16px;
  border-radius: 10px;
  resize: vertical;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.lab-paste-area:focus {
  outline: none;
  border-color: var(--info);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lab-paste-area::placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* --- CHIP & LAB SETTINGS --- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.choice-chip {
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  background: white;
}

.choice-chip.selected {
  background: var(--info);
  color: white;
  border-color: var(--info);
}

.lab-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.9rem;
}

.lab-group-actions {
  display: flex;
  gap: 4px;
}

.lab-group-actions .lab-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  background: white;
  color: var(--info);
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--info);
  transition: all 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lab-group-actions .lab-action-btn:hover {
  background: var(--info);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.lab-group-actions .lab-action-btn:active {
  transform: translateY(0);
}

.lab-group-actions .lab-action-btn i {
  font-size: 0.85em;
}

.lab-settings-container {
  margin-bottom: 15px;
}

/* --- REPORTS --- */
.report-item {
  border-left: 4px solid #3b82f6;
  padding: 12px 12px 12px 16px;
  margin-bottom: 16px;
  position: relative;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.report-item:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left-color: #2563eb;
}

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

.report-date-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-date-label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-type-editable {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  outline: none;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: text;
  display: inline-block;
  min-width: 60px;
}

.report-type-editable:hover {
  background: #eff6ff;
  color: var(--info);
}

.report-type-editable:focus {
  background: #dbeafe;
  color: var(--info);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.report-contrast-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #7c3aed;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 2px;
}

.report-delete-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.report-delete-btn:hover {
  background: #fee2e2;
  color: var(--accent);
  transform: scale(1.1);
}

.report-text {
  white-space: pre-wrap;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  line-height: 1.6;
  min-height: 40px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.report-text:hover {
  background: #f8fafc;
}

.report-text:focus {
  background: white;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* --- QA GRID --- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

/* --- SYNC COMPONENTS --- */
.sync-container {
  text-align: center;
  padding: 10px;
}

.sync-step {
  display: none;
  animation: fadeIn 0.3s;
}

.sync-step.active {
  display: block;
}

.sync-code-display {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.5em;
  letter-spacing: 5px;
  margin: 15px 0;
  border: 2px dashed #cbd5e1;
}

.sync-status {
  margin-top: 10px;
  font-weight: bold;
  color: var(--info);
}

.sync-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

#reader {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary);
}

/* --- FLOATING EDITOR TOOLBAR --- */
.floating-editor-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10001;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2),
    0 4px 10px -2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.floating-editor-toolbar.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-editor-toolbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #f59e0b 100%);
  border-radius: 10px 10px 0 0;
}

.toolbar-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: #64748b;
  font-size: 0.9rem;
}

.toolbar-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolbar-btn:active {
  transform: translateY(0) scale(0.95);
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 500px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.toast-show {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.toast-hide {
  opacity: 0;
  transform: translateX(400px);
}

.toast-notification i:first-child {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-success i:first-child {
  color: var(--success);
}

.toast-error {
  border-left: 4px solid var(--accent);
}

.toast-error i:first-child {
  color: var(--accent);
}

.toast-warning {
  border-left: 4px solid var(--warning);
}

.toast-warning i:first-child {
  color: var(--warning);
}

.toast-info {
  border-left: 4px solid var(--info);
}

.toast-info i:first-child {
  color: var(--info);
}

.toast-message {
  flex: 1;
  color: var(--text-main);
  font-weight: 500;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: 0.2s;
}

.toast-close:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

/* --- CONFIRM DIALOG --- */
.confirm-overlay,
.prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.confirm-overlay.confirm-show,
.prompt-overlay.prompt-show {
  opacity: 1;
}

.confirm-overlay.confirm-hide,
.prompt-overlay.prompt-hide {
  opacity: 0;
}

.confirm-dialog,
.prompt-dialog {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.confirm-overlay.confirm-show .confirm-dialog,
.prompt-overlay.prompt-show .prompt-dialog {
  transform: scale(1);
}

.confirm-icon {
  text-align: center;
  margin-bottom: 16px;
}

.confirm-icon i {
  font-size: 3rem;
  color: var(--info);
}

.confirm-message,
.prompt-message {
  text-align: center;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions,
.prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Responsive prompt actions */
@media (max-width: 480px) {
  .prompt-dialog {
    width: 95%;
    padding: 20px;
  }

  .prompt-message {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .prompt-input {
    font-size: 0.95rem;
    padding: 10px;
  }

  .prompt-actions {
    margin-top: 14px;
    gap: 8px;
  }

  .prompt-actions .btn {
    flex: 1;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
    min-height: auto !important;
  }

  .prompt-actions .btn i {
    display: none;
  }

  .confirm-dialog {
    width: 95%;
    padding: 20px;
  }

  .confirm-icon i {
    font-size: 2.5rem;
  }

  .confirm-message {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .confirm-actions {
    margin-top: 14px;
    gap: 8px;
  }

  .confirm-actions .btn {
    flex: 1;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
    min-height: auto !important;
  }

  .confirm-actions .btn i {
    display: none;
  }
}

.prompt-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.prompt-input:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- PRINT SETTINGS MODAL --- */
.print-settings-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.print-settings-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.print-option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.print-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.print-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateX(4px);
}

.print-option-card input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.print-option-card input[type="radio"]:checked {
  accent-color: var(--info);
}

.print-option-card:has(input:checked) {
  border-color: var(--info);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.option-content i {
  font-size: 1.5rem;
  color: var(--info);
  flex-shrink: 0;
}

.option-content > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-content strong {
  font-size: 0.95rem;
  color: var(--primary);
}

.option-content span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.print-checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.print-checkbox-option:hover {
  background: #f1f5f9;
}

.print-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--success);
}

.print-checkbox-option span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.patient-checklist-container {
  margin-top: 12px;
}

.patient-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.patient-check-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.patient-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--info);
}

.patient-check-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.patient-check-item strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.patient-check-item span {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- LOCATION SELECTOR MODAL --- */
.location-selector-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.9rem;
}

.location-selector-info i {
  font-size: 1.2rem;
  color: var(--info);
  flex-shrink: 0;
}

/* --- DOCTOR SELECTOR MODAL --- */
.doctor-selector-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
}

.doctor-selector-info i {
  color: var(--success);
}

.doctor-selector-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding: 2px;
}

.doctor-option-card {
  min-height: 85px;
  background: #fafbfc;
  user-select: none;
}

.doctor-option-card:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.doctor-option-card .location-option-icon {
  color: #d1d5db;
}

.doctor-option-card .location-option-text {
  color: #1e293b;
  font-weight: 600;
}

/* Doctor card hover - Green theme with high contrast */
.doctor-option-card:hover {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.doctor-option-card:hover .location-option-icon {
  color: white;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.doctor-option-card:hover .location-option-text {
  color: white;
  font-weight: 700;
}

/* Doctor card selected - Green theme with high contrast */
.doctor-option-card.selected {
  border-color: var(--success);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.doctor-option-card.selected::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  z-index: -1;
}

.doctor-option-card.selected .location-option-icon {
  color: white;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.doctor-option-card.selected .location-option-text {
  color: white;
  font-weight: 700;
}

/* Doctor card selected + hover - Lighter green */
.doctor-option-card.selected:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.doctor-option-card.selected:hover .location-option-icon {
  transform: scale(1.2);
}

.doctor-option-card.selected:hover .location-option-text {
  color: white;
}

.location-selector-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding: 2px;
}

.location-option-card {
  background: #fafbfc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.location-option-card:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

/* Location card hover - Blue theme with high contrast */
.location-option-card:hover {
  border-color: var(--info);
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.location-option-card:hover .location-option-icon {
  color: white;
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.location-option-card:hover .location-option-text {
  color: white;
  font-weight: 700;
}

/* Location card selected - Blue theme with high contrast */
.location-option-card.selected {
  border-color: var(--info);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.location-option-card.selected::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  z-index: -1;
}

.location-option-card.selected .location-option-icon {
  color: white;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.location-option-card.selected .location-option-text {
  color: white;
  font-weight: 700;
}

/* Location card selected + hover - Lighter blue */
.location-option-card.selected:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.location-option-card.selected:hover .location-option-icon {
  transform: scale(1.2);
}

.location-option-card.selected:hover .location-option-text {
  color: white;
}

.location-option-icon {
  font-size: 1.8rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
  filter: none;
}

.location-option-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.location-selector-new {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid #f1f5f9;
}

.location-new-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.location-new-input:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-new-input::placeholder {
  color: #cbd5e1;
  font-style: italic;
}

/* Responsive location/doctor selector */
@media (max-width: 480px) {
  .location-selector-list,
  .doctor-selector-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .location-option-card,
  .doctor-option-card {
    padding: 12px 10px;
  }

  .location-option-icon {
    font-size: 1.5rem;
  }

  .location-option-text {
    font-size: 0.8rem;
  }

  .location-selector-new {
    flex-direction: column;
  }

  .location-new-input {
    width: 100%;
  }
}

/* --- BULK DELETE MODAL --- */
.bulk-info-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.15);
}

.bulk-info-banner i {
  font-size: 1.4rem;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

.bulk-info-banner strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.bulk-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.bulk-patient-list {
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  background: white;
  margin-bottom: 16px;
}

.bulk-patient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.bulk-patient-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.bulk-patient-item:has(input:checked) {
  border-color: var(--accent);
  background: #fef2f2;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.bulk-patient-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.bulk-patient-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-patient-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.bulk-patient-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-archive-option {
  margin-bottom: 16px;
}

/* --- UTILITY CLASSES --- */
/* .no-print class is used to hide elements during printing - rules in print.css */

/* --- RESPONSIVE DESIGN --- */
/* --- FLOATING TOOLBAR RESPONSIVE --- */
@media (max-width: 768px) {
  .floating-editor-toolbar {
    padding: 4px 6px;
    gap: 3px;
    max-width: 95vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .floating-editor-toolbar::-webkit-scrollbar {
    display: none;
  }

  .toolbar-btn {
    min-width: 32px;
    height: 32px;
    padding: 6px 8px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .toolbar-divider {
    height: 20px;
    margin: 0 2px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .floating-editor-toolbar {
    padding: 3px 4px;
    gap: 2px;
  }

  .toolbar-btn {
    min-width: 30px;
    height: 30px;
    padding: 5px 7px;
    font-size: 0.8rem;
  }

  .toolbar-divider {
    height: 18px;
  }
}

/* Medium screens: 768px - 990px */
@media (min-width: 768px) and (max-width: 990px) {
  .main-header {
    padding: 12px 16px;
  }

  .header-left {
    width: 100%;
    margin-bottom: 8px;
  }

  .main-header > .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }

  .btn {
    padding: 7px 11px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .btn i {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* Progress notes responsive */
  .progress-notes-summary {
    padding: 8px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .progress-notes-content {
    padding: 6px 8px;
  }

  .progress-note-item {
    padding: 7px 8px;
    margin-bottom: 8px;
  }

  .progress-note-header {
    margin-bottom: 5px;
    gap: 6px;
  }

  .progress-note-date {
    font-size: 0.75rem;
    gap: 4px;
  }

  .progress-note-delete {
    padding: 2px 5px;
  }

  .progress-note-content {
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 5px 6px;
    min-height: 28px;
  }

  .progress-notes-summary .btn {
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
  }

  /* Main header */
  .main-header {
    padding: 12px 14px;
    gap: 12px;
    margin-bottom: 12px;
  }

  .header-left {
    width: 100%;
    margin-bottom: 5px;
  }

  .app-logo {
    width: 40px;
    height: 40px;
  }

  .header-title {
    gap: 2px;
  }

  .header-title h2 {
    font-size: 1.2rem;
  }

  .app-subtitle {
    font-size: 0.8rem;
  }

  .header-date {
    font-size: 0.75rem;
  }

  .main-header > .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Tablet: Smaller buttons with text */
  .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    flex: 0 1 auto;
    gap: 5px;
  }

  .btn i {
    font-size: 0.9em;
  }

  /* Patient name container */
  .patient-name-container {
    flex: 1;
    min-width: 120px;
    max-width: calc(100% - 140px);
  }

  .header-top-row {
    gap: 8px;
  }

  /* Header actions right */
  .header-actions-right {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Action grid responsive */
  .header-action-grid {
    gap: 4px;
  }

  .header-action-btn {
    font-size: 0.8rem;
    width: 28px;
    height: 28px;
    padding: 5px;
  }

  /* Patient meta info on tablet */
  .patient-meta-info {
    font-size: 0.63rem;
    margin-top: 3px;
  }

  .meta-info-item {
    gap: 3px;
    padding: 0 5px 0 0;
  }

  .meta-info-item:not(:last-child)::after {
    margin: 0 5px;
  }

  .meta-info-icon {
    font-size: 0.63rem;
    width: 9px;
  }

  .meta-info-text {
    max-width: 140px;
  }

  /* Filter bar */
  .filter-bar {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 15px;
  }

  .search-box {
    min-width: 150px;
  }

  .search-input {
    padding: 7px 8px 7px 28px;
    font-size: 0.85rem;
  }

  .filter-select {
    padding: 7px 25px 7px 8px;
    font-size: 0.85rem;
  }

  /* Patient card */
  .patient-card {
    margin-bottom: 14px;
    border-left-width: 3px;
  }

  /* Card header */
  .card-header {
    padding: 10px;
  }

  .header-top-row {
    gap: 10px;
  }

  .patient-name {
    font-size: 1rem;
    line-height: 1.3;
  }

  .diagnosis {
    font-size: 0.8rem;
  }

  .location-selector {
    font-size: 0.75rem;
    padding: 4px 28px 4px 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions i {
    font-size: 1rem;
  }

  .meta-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .date-trigger {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .task-bar {
    padding: 8px 10px;
    gap: 6px;
  }

  .task-item {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .action-toolbar {
    padding: 8px 10px;
    gap: 6px;
  }

  .btn-toolbar {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .clinical-body {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .order-title {
    font-size: 0.7rem;
    padding: 6px 10px;
    gap: 6px;
  }

  .order-title::before {
    font-size: 0.9rem;
  }

  .order-input {
    padding: 10px 12px;
    min-height: 65px;
    font-size: 0.85rem;
  }

  details summary {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .trend-table {
    font-size: 0.8rem;
  }

  .trend-table th,
  .trend-table td {
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  /* Progress notes mobile */
  .progress-notes-summary {
    padding: 8px 10px;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 5px;
  }

  .progress-notes-content {
    padding: 5px 6px;
  }

  .progress-note-item {
    padding: 6px 8px;
    margin-bottom: 7px;
    border-radius: 5px;
  }

  .progress-note-header {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }

  .progress-note-date {
    font-size: 0.72rem;
    gap: 3px;
  }

  .progress-note-date i {
    font-size: 0.85em;
  }

  .progress-note-delete {
    padding: 2px 4px;
  }

  .progress-note-content {
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 4px 6px;
    min-height: 24px;
  }

  .progress-notes-summary .btn {
    padding: 3px 7px !important;
    font-size: 0.7rem !important;
    gap: 3px !important;
  }

  /* Main header */
  .main-header {
    padding: 10px 12px;
    gap: 10px;
  }

  .header-left {
    width: 100%;
    gap: 10px;
  }

  .app-logo {
    width: 36px;
    height: 36px;
  }

  .header-title {
    gap: 1px;
  }

  .header-title h2 {
    font-size: 1.05rem;
    gap: 6px;
  }

  .app-version {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .app-subtitle {
    font-size: 0.75rem;
  }

  .header-date {
    font-size: 0.7rem;
  }

  .main-header > .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: wrap;
    display: flex;
  }

  /* Mobile: Smaller compact buttons */
  .main-header > .header-actions .btn {
    padding: 6px 9px;
    font-size: 0.7rem;
    gap: 3px;
    min-width: auto;
    min-height: auto;
    white-space: nowrap;
  }

  .main-header > .header-actions .btn i {
    font-size: 0.9rem;
  }

  /* Ensure all modal buttons are visible and properly sized */
  .modal-content .btn,
  .sync-container .btn,
  .qa-grid .qa-btn {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    min-height: auto !important;
    gap: 6px !important;
  }

  .modal-content .btn i,
  .sync-container .btn i {
    font-size: 1rem !important;
  }

  /* Patient card optimizations for small screens */
  .patient-name {
    font-size: 0.9rem;
  }

  .patient-name-container {
    flex: 1;
    min-width: 80px;
    max-width: calc(100% - 100px);
  }

  .card-collapse-indicator {
    width: 26px;
    height: 26px;
  }

  .card-collapse-indicator i {
    font-size: 0.75rem;
  }

  /* Header actions right - küçük ekranlarda sağa yaslanmış */
  .header-actions-right {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Action grid responsive - mobile */
  .header-action-grid {
    gap: 3px;
  }

  .header-action-btn {
    font-size: 0.75rem;
    width: 26px;
    height: 26px;
    padding: 4px;
    border-width: 1px;
  }

  /* Patient meta info on mobile */
  .patient-meta-info {
    font-size: 0.6rem;
    margin-top: 3px;
  }

  .meta-info-item {
    gap: 2px;
    padding: 0 4px 0 0;
  }

  .meta-info-item:not(:last-child)::after {
    margin: 0 4px;
    font-size: 0.58rem;
  }

  .meta-info-icon {
    font-size: 0.6rem;
    width: 8px;
  }

  .meta-info-text {
    max-width: 90px;
  }

  /* Date popup adjustments */
  .date-popup {
    width: 280px;
    padding: 14px;
  }

  .date-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .date-row label {
    width: auto;
  }

  .date-row input[type="date"] {
    width: 100%;
  }

  /* Filter bar */
  .filter-bar {
    padding: 6px 8px;
    gap: 6px;
    margin-bottom: 12px;
  }

  .search-input {
    padding: 6px 8px 6px 26px;
    font-size: 0.8rem;
  }

  .filter-select {
    padding: 6px 22px 6px 8px;
    font-size: 0.8rem;
  }

  /* Patient card */
  .patient-card {
    margin-bottom: 12px;
    border-radius: 8px;
  }

  /* Card header */
  .card-header {
    padding: 8px;
  }

  .header-top-row {
    gap: 8px;
  }

  .patient-name {
    font-size: 0.95rem;
  }

  .diagnosis {
    font-size: 0.75rem;
  }

  .location-selector {
    font-size: 0.7rem;
    padding: 4px 26px 4px 8px;
    background-size: 9px;
    background-position: right 8px center;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions i {
    font-size: 0.95rem;
    padding: 2px;
  }

  .meta-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .date-trigger {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .task-bar {
    padding: 6px 8px;
    gap: 5px;
  }

  .task-item {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .action-toolbar {
    padding: 6px 8px;
    gap: 5px;
  }

  .btn-toolbar {
    font-size: 0.75rem;
    padding: 4px 8px;
    gap: 4px;
  }

  .order-title {
    font-size: 0.68rem;
    padding: 6px 10px;
    gap: 5px;
  }

  .order-title::before {
    font-size: 0.85rem;
  }

  .order-input {
    padding: 8px 10px;
    min-height: 55px;
    font-size: 0.8rem;
  }
}
