:root {
  --bg: #f4f6f9;
  --sidebar: #1e293b;
  --sidebar-text: #cbd5e1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #dc2626;
  --success: #16a34a;
  --border: #e2e8f0;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.sidebar {
  width: 260px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 24px 16px 28px;
  flex-shrink: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.sidebar-user {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.context-hint {
  font-size: 0.78rem;
  margin: 8px 0 0;
  line-height: 1.35;
}

.catalog-add-control {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.catalog-add-panel {
  flex: 1 1 100%;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.catalog-add-hint {
  margin: 0 0 8px;
  font-size: 0.82rem;
}

.catalog-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.catalog-add-select {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.catalog-active-panel {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.catalog-active-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-active-panel h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.catalog-active-subtitle {
  margin: 0;
  font-size: 0.85rem;
}

.catalog-active-table {
  width: 100%;
  margin-top: 4px;
}

.catalog-active-empty {
  margin: 0;
  font-size: 0.9rem;
}

.catalog-grant-groups {
  display: grid;
  gap: 16px;
}

.catalog-grant-group h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.platform-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.platform-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.platform-catalog-card:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.platform-catalog-count {
  font-size: 0.8rem;
  color: #64748b;
}

.sidebar-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebar-status {
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.nav-link-logout {
  margin-bottom: 0;
  color: #fca5a5;
}

.nav-link-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.sidebar h1 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.nav-section {
  margin-bottom: 20px;
}

.nav-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 8px 8px;
}

.nav-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
}

.main {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

input,
select,
textarea {
  min-width: 180px;
}

textarea {
  width: 100%;
  min-height: 80px;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
}

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

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

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

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

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

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

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f1f5f9; color: #475569; }
.badge-blocked { background: #fee2e2; color: #991b1b; }
.badge-available { background: #dbeafe; color: #1e40af; }

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

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

.form-group label {
  font-size: 0.85rem;
  color: var(--muted);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-error { background: #fee2e2; color: #991b1b; }

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

.module-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.module-card h3 {
  margin: 0 0 8px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-pill.ok { color: var(--success); }
.status-pill.error { color: var(--danger); }

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.modal {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}

.modal-wide {
  width: min(900px, 100%);
}

.detail-panel {
  margin-top: 20px;
  background: #f8fafc;
}

.detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.detail-panel-header h3 {
  margin: 0;
}

.steps-editor {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.steps-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.steps-editor-header h4 {
  margin: 0;
}

.step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-row-order {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 22px;
}

.step-row-content {
  flex: 1;
  min-width: 0;
}

.step-row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.step-row-fields .form-group input,
.step-row-fields .form-group select {
  width: 100%;
  min-width: 0;
}

.step-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.step-actions-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 4px;
}

.step-notify .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.step-notify .checkbox-label input {
  min-width: auto;
  width: auto;
  margin: 0;
}

@media (min-width: 700px) {
  .step-row-fields {
    grid-template-columns: 110px 2fr 1.5fr 1fr;
    align-items: end;
  }
}

.icon-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.icon-preview {
  font-size: 2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
}

.step-icon-field select {
  width: 100%;
  font-size: 0.85rem;
  padding: 8px;
}

@media (max-width: 500px) {
  .step-row-fields {
    grid-template-columns: 1fr;
  }

  .step-row-order {
    margin-top: 4px;
  }
}

.preview-box {
  margin-top: 16px;
  padding: 16px;
  background: #f1f5f9;
  border-radius: 10px;
}

.preview-box h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

code {
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal h3 {
  margin-top: 0;
}

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

.nav-link.soon {
  opacity: 0.65;
}

.nav-link .tag-soon {
  font-size: 0.65rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.process-timeline {
  margin: 24px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-track {
  display: flex;
  min-width: min(100%, 640px);
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 90px;
  padding: 0 4px;
}

.timeline-step.clickable {
  cursor: pointer;
}

.timeline-step.clickable:hover .timeline-label {
  color: var(--primary);
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 56px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.timeline-icon {
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.timeline-icon.pending {
  filter: grayscale(1);
  opacity: 0.4;
}

.timeline-icon.done,
.timeline-icon.current {
  filter: none;
  opacity: 1;
}

.timeline-icon.current {
  transform: scale(1.12);
}

.timeline-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.timeline-status-dot.pending {
  background: #cbd5e1;
  border-color: #e2e8f0;
  filter: grayscale(1);
  opacity: 0.55;
}

.timeline-status-dot.done,
.timeline-status-dot.current {
  background: #22c55e;
  border-color: #16a34a;
}

.timeline-status-dot.current {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 3px solid #e2e8f0;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease;
}

.timeline-dot.pending {
  background: #cbd5e1;
  border-color: #e2e8f0;
  filter: grayscale(1);
  opacity: 0.55;
}

.timeline-dot.done,
.timeline-dot.current {
  background: #22c55e;
  border-color: #16a34a;
}

.timeline-dot.current {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.timeline-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.timeline-line {
  position: absolute;
  top: 38px;
  left: calc(50% + 11px);
  width: calc(100% - 22px);
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-line.done {
  background: #22c55e;
}

.timeline-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.timeline-label.pending {
  color: #94a3b8;
  filter: grayscale(1);
  opacity: 0.65;
}

.timeline-label.done,
.timeline-label.current {
  color: var(--text);
  filter: none;
  opacity: 1;
}

.timeline-label.current {
  color: #15803d;
}

.timeline-date {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.2;
}

.timeline-date.pending {
  color: #cbd5e1;
}

.timeline-date.done {
  color: #475569;
}

.timeline-date.current {
  color: #15803d;
}

.timeline-code {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 4px;
}

.timeline-code.pending {
  color: #cbd5e1;
  filter: grayscale(1);
  opacity: 0.65;
}

.timeline-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.soon-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.form-group-wide small {
  display: block;
  margin-top: 6px;
}

.input-readonly {
  background: #f1f5f9;
  color: var(--text);
  cursor: default;
}

.tracking-detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .timeline-track {
    min-width: 520px;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
  }
}

.calendar-card {
  padding-bottom: 8px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.calendar-header h2 {
  margin: 0 0 4px;
}

.calendar-container {
  min-height: 620px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.calendar-sidebar {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
  max-height: 680px;
  overflow-y: auto;
}

.calendar-sidebar h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.upcoming-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.upcoming-item {
  padding: 10px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.upcoming-item:hover {
  border-color: var(--primary);
}

.upcoming-item strong {
  display: block;
  margin-bottom: 4px;
}

.upcoming-item span {
  display: block;
  color: var(--muted);
}

.upcoming-meta {
  margin-top: 4px;
  font-size: 0.8rem;
}

.empty-compact {
  padding: 16px 0;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-sidebar {
    max-height: none;
  }
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.calendar-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-draft { background: #94a3b8; }
.dot-pending { background: #2563eb; }
.dot-paid { background: #16a34a; }
.dot-cancelled { background: #dc2626; }
.dot-noshow { background: #f97316; }

.payment-register {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.payment-register-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.payment-register-row input,
.payment-register-row select {
  flex: 1;
  min-width: 120px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.notify-cell {
  white-space: nowrap;
}

.btn-icon {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 4px;
}

.btn-icon:hover:not(:disabled) {
  border-color: var(--primary);
  background: #eff6ff;
}

.btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fc {
  --fc-border-color: #e2e8f0;
  --fc-today-bg-color: #eff6ff;
  font-size: 0.9rem;
}

.fc .fc-toolbar-title {
  font-size: 1.15rem;
}

.fc .fc-button {
  background: var(--primary);
  border-color: var(--primary);
}

.fc .fc-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.fc .fc-event {
  cursor: pointer;
}

.fc .fc-bg-event {
  pointer-events: none;
}

.notify-group {
  margin-bottom: 12px;
}

.notify-group:last-of-type {
  margin-bottom: 0;
}

.notify-group strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fafc;
}

.row-overdue {
  background: #fef2f2;
}

.pricing-box,
.payment-box,
.notify-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pricing-box h4,
.payment-box h4,
.notify-box h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.notify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.notify-preview {
  margin-top: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
}

.notify-preview pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.notify-recipients-panel {
  margin: 12px 0 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.notify-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-recipients-panel .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
}

.notify-recipients-panel .checkbox-label input {
  margin-top: 3px;
}

.notify-contact-list .checkbox-label {
  margin: 0;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
}

.input-readonly {
  background: #f1f5f9;
  cursor: default;
}

/* Pantalla de login */
body.login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #1e293b 0%, #334155 45%, #0f172a 100%);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card-wrap {
  width: 100%;
  max-width: 420px;
}

.login-brand {
  text-align: center;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.login-brand h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.6rem;
}

.login-brand p {
  margin: 0;
  color: #94a3b8;
}

.login-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-card h2 {
  margin-top: 0;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.login-footer {
  text-align: center;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.nav-link-anchor {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.nav-link-logout small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 2px;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell .btn {
  margin: 2px;
}

[v-cloak] {
  display: none !important;
}

.app-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 1rem;
}

.app-loading-error {
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.app-loading-error .alert {
  margin-bottom: 16px;
}

.company-select {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
}

.company-select-inline {
  width: auto;
  min-width: 200px;
  margin-bottom: 0;
}

.active-company-label {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.module-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.module-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}

.module-check-item input {
  margin-top: 4px;
}
