/* Modern, responsive UI for Komisyon Hesaplama — hub ile aynı yumuşak/pastel dil */

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #F8FAFC;
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --card-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 12px 30px -10px rgba(15, 23, 42, 0.1);
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #D1FAE5;
  --primary-bg: #F0FDF4;
  --secondary: #e2e8f0;
  --secondary-dark: #cbd5f5;
  --success: #22c55e;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --surface-muted: #f8fafc;
  --border-radius: 20px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0 24px 48px;
  position: relative;
  overflow-x: hidden;
}

/* Soft blurred background blobs — hub ile aynı imza */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  pointer-events: none;
}

.bg-blob--1 {
  width: 560px;
  height: 560px;
  background-color: #D1FAE5;
  top: -220px;
  left: -180px;
}

.bg-blob--2 {
  width: 480px;
  height: 480px;
  background-color: #E0E7FF;
  bottom: -180px;
  right: -160px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
  margin: 0 -24px 32px;
}

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

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.title-group h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ── Header action buttons ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.header-btn--primary {
  background: var(--primary);
  color: #fff;
}
.header-btn--primary:hover { background: var(--primary-dark); }

.header-btn--ghost {
  background: var(--surface-muted);
  color: var(--text-secondary);
}
.header-btn--ghost:hover { background: var(--secondary); color: var(--text-primary); }

.header-btn--danger {
  background: #fef2f2;
  color: #dc2626;
}
.header-btn--danger:hover { background: #fee2e2; }

.header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--card-border);
  margin-left: 4px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Page body: side nav + main content ── */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.side-nav {
  position: sticky;
  top: 24px;
  width: 192px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 12px 8px;
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(5, 150, 105, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.nav-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 16px;
}

.panel header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.panel header p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Upload List Styles */
.upload-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.upload-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 2px dashed rgba(5, 150, 105, 0.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.upload-item:hover {
  background: #f8fafc;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.1);
}

.upload-item.has-file {
  border-style: solid;
  border-color: var(--success) !important;
  background: #f0fdf4;
}

.upload-icon-wrapper {
  background: #ecfdf5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.upload-icon {
  width: 26px;
  height: 26px;
  color: var(--primary);
  flex-shrink: 0;
}

.upload-item:hover .upload-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.upload-item.has-file .upload-icon-wrapper {
  background: #dcfce7;
}

.upload-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.upload-details h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.upload-details p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.file-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.upload-item.has-file .status-icon {
  opacity: 1;
  transform: scale(1);
  background: var(--success);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.check-icon {
  width: 14px;
  height: 14px;
  color: white;
}

.upload-item input {
  display: none !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

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

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.25);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.secondary-btn {
  background: var(--surface-muted);
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.secondary-btn:hover:not(:disabled) {
  background: var(--secondary);
}

.danger-btn {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

.ghost-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
}

.ghost-btn:hover {
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.15);
}

.status-indicator {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.progress-container {
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #34d399, #059669);
  transition: width 0.3s ease;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.results-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-card {
  background: var(--surface-muted);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.result-card-full {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input,
.filter-select,
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Detaylı Rapor için sabit yükseklik ve scroll */
#detailTable {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
}

#detailTable table {
  position: relative;
}

/* Sticky header for detail table */
#detailTable thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--surface-muted);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

tbody tr:hover {
  background: rgba(5, 150, 105, 0.04);
}

.summary-total,
.detail-totals {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc, #ecfdf5);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.summary-total-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-totals-title {
  margin: 0 0 12px;
  font-weight: 600;
}

.detail-totals-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.detail-totals-content div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.placeholder {
  margin: 0;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
}

.app-footer {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 16px 32px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: 0.85rem;
}

/* Modal styling */
.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(640px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
}

.modal-content {
  background: #fff;
  border-radius: inherit;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-content header,
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 12px;
}

.modal-actions,
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 16px;
}

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

.form-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group,
.form-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.close-btn {
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

.converter-controls {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.converter-field input:disabled {
  background: rgba(15, 23, 42, 0.05);
  cursor: not-allowed;
}

.converter-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.conversion-result {
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(16, 185, 129, 0.12));
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
}

.conversion-result-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.conversion-result-header h3 {
  margin: 0;
}

.conversion-result-header p {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.conversion-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversion-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
  padding-bottom: 6px;
}

.conversion-breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.report-generator-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.report-output {
  margin-top: 20px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface-muted);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.report-table th,
.report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.report-table th {
  font-weight: 600;
  color: var(--text-secondary);
}

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

.report-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.stat-card h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-card p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .app-header {
    flex-direction: column;
    text-align: center;
  }

  .branding {
    flex-direction: column;
  }

  .layout {
    gap: 24px;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1 1 100%;
  }

  .result-actions {
    width: 100%;
  }

  .filter-controls {
    width: 100%;
  }

  .panel {
    padding: 20px;
  }

  .modal-content {
    padding: 24px;
  }
}

/* Billing Panel Styles */
#billingPanel {
  background: linear-gradient(135deg, #f8fafc, #edf2f7);
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.billing-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.billing-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.billing-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* ── Neutral button ── */
.neutral-btn {
  background: #e9ecef;
  color: #495057;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.neutral-btn:hover:not(:disabled) {
  background: #dee2e6;
}

/* ── Result card header with controls ── */
.result-card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Accordion toggle button ── */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.25s ease;
}
.accordion-toggle:hover {
  background: var(--secondary);
  color: var(--text-primary);
}
.accordion-toggle svg {
  transition: transform 0.25s ease;
}
.accordion-toggle[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

/* ── Accordion body ── */
.accordion-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 9999px;
  opacity: 1;
}
.accordion-body.collapsed {
  max-height: 0;
  opacity: 0;
}

/* ── Type badges ── */
.type-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.type-badge--bon {
  background: #dcfce7;
  color: #166534;
}
.type-badge--direct {
  background: #dbeafe;
  color: #1e40af;
}
.type-badge--metasearch {
  background: #ffedd5;
  color: #9a3412;
}
.type-badge--metasearch-mod {
  background: #fef9c3;
  color: #713f12;
}
.type-badge--call-center {
  background: #ede9fe;
  color: #5b21b6;
}

/* ── Alert items (native CSS, no Tailwind) ── */
.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.alert-item:last-child { margin-bottom: 0; }
.alert-item--medium {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}
.alert-item--high {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.alert-item__body { flex: 1; min-width: 0; }
.alert-item__type {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.alert-item__msg { font-size: 0.9rem; }
.alert-item__meta {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}
.alert-item__action {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.15);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.alert-item__action:hover { background: var(--surface-muted); }

/* ── Responsive: collapse side nav on narrow screens ── */
@media (max-width: 900px) {
  .page-body {
    flex-direction: column;
    gap: 16px;
  }
  .side-nav {
    position: static;
    width: 100%;
  }
  .side-nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-item {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}