:root {
  --rrhh-surface-2: rgba(14, 26, 46, 0.72);
  --rrhh-border-strong: rgba(118, 169, 255, 0.28);
}

.hero.compact {
  grid-template-columns: 1fr;
  padding-top: 32px;
}

.content.stack-layout {
  grid-template-columns: 1fr;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  color: #d8e4ff;
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.72);
  color: var(--text);
  padding: 14px 16px;
}

.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
  border-color: rgba(255, 122, 122, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 122, 122, 0.18);
}

.field-error {
  min-height: 1.1em;
  font-size: 0.84rem;
  color: #ffb3b3;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.surface-soft {
  background: var(--rrhh-surface-2);
}

.panel-head,
.inline-row,
.request-top,
.request-actions,
.session-row,
.summary-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric.small {
  padding: 18px;
}

.metric.small strong {
  font-size: 1.7rem;
  display: block;
}

.metric.small span {
  color: var(--muted);
}

.priority-list,
.timeline,
.assistant-feed,
.request-list,
.employee-list,
.source-list {
  display: grid;
  gap: 12px;
}

.priority-item,
.timeline-item,
.assistant-bubble,
.request-card,
.employee-card,
.source-card,
.status-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.priority-item strong,
.employee-card strong,
.request-card strong,
.source-card strong,
.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.priority-item p,
.employee-card p,
.request-card p,
.source-card p,
.timeline-item p,
.assistant-bubble p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.request-card.active,
.employee-card.active,
.status-banner.ok {
  border-color: var(--rrhh-border-strong);
  box-shadow: 0 12px 30px rgba(61, 114, 255, 0.16);
}

.status-banner.warn {
  border-color: rgba(255, 183, 94, 0.4);
}

.status-banner.danger {
  border-color: rgba(255, 122, 122, 0.4);
}

.pill-row,
.source-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: #d5e3ff;
}

.status-chip.ok {
  border-color: rgba(95, 211, 161, 0.4);
  color: #b9f0d7;
}

.status-chip.warn {
  border-color: rgba(255, 183, 94, 0.45);
  color: #ffd7a2;
}

.status-chip.danger {
  border-color: rgba(255, 122, 122, 0.45);
  color: #ffc0c0;
}

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

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.assistant-bubble.user {
  border-color: rgba(118, 169, 255, 0.36);
}

.assistant-bubble.assistant {
  border-color: rgba(244, 201, 93, 0.25);
}

.assistant-bubble small {
  display: block;
  margin-bottom: 6px;
  color: #c7d8fa;
}

.request-card button,
.employee-card button,
.request-actions button,
.inline-row .button,
.inline-row .button-secondary {
  cursor: pointer;
}

.table-like {
  display: grid;
  gap: 10px;
}

.table-like .row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(159, 182, 220, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.table-like .row.header {
  color: #dbe8ff;
  font-weight: 700;
  background: rgba(118, 169, 255, 0.08);
}

.app-install {
  display: none;
}

.app-install.visible {
  display: inline-flex;
}

.footer-inline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.inline-form .field {
  flex: 1 1 220px;
}

.mb-confirmation-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.mb-confirmation-modal.visible {
  display: block;
}

.mb-confirmation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(6px);
}

.mb-confirmation-dialog {
  position: relative;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  border-radius: 24px;
  border: 1px solid var(--rrhh-border-strong);
  background: rgba(8, 17, 31, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  padding: 22px;
}

.mb-confirmation-head,
.mb-confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.mb-confirmation-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mb-confirmation-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.mb-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mb-confirmation-table-wrap {
  overflow: auto;
  border: 1px solid rgba(159, 182, 220, 0.12);
  border-radius: 16px;
}

.mb-confirmation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.mb-confirmation-table th,
.mb-confirmation-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(159, 182, 220, 0.12);
}

.mb-confirmation-table th {
  color: #dbe8ff;
  background: rgba(118, 169, 255, 0.08);
}

.mb-confirmation-actions {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .grid-2,
  .form-grid,
  .kpi-strip,
  .mb-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .table-like .row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .content,
  .hero,
  .section {
    width: min(100%, calc(100% - 24px));
  }

  .hero-main,
  .panel,
  .card,
  .metric,
  .table-card {
    border-radius: 18px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .button,
  .button-secondary {
    width: 100%;
  }
}
