/* Contatos gerais e solicitações agrupadas em Notas fiscais. */

.general-contacts-nav {
  display: contents;
}

.general-contact-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.general-contact-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.general-contact-status.active {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.general-contact-status.waiting {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.general-contact-status.recovered {
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(16, 185, 129, 0.09);
  color: #047857;
}

.general-contact-status.done {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.general-contact-status.paused {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.phone-unavailable {
  color: #94a3b8 !important;
  font-style: italic;
}

.general-contact-context {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #f8fafc;
}

.general-contact-context small {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.general-contact-context p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.general-contact-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.contact-control-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.contact-control-heading,
.contact-hidden-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.contact-control-heading small,
.contact-hidden-heading small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-control-heading h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.contact-control-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-control-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.contact-control-state.active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.contact-control-state.paused {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.contact-control-state.human {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.contact-control-state.hold {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.contact-control-panel > p {
  margin: 10px 0 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.contact-control-actions {
  display: grid;
  gap: 9px;
}

.contact-control-actions.primary-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-control-actions.utility-actions {
  grid-template-columns: 1fr;
}

.contact-control-divider {
  height: 1px;
  margin: 16px 0 13px;
  background: #e5e7eb;
}

.contact-control-subheading {
  margin-bottom: 9px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-control-help {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.45;
}

.contact-hidden-toggle {
  flex: 0 0 auto;
}

.contact-hidden-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
}

.contact-hidden-heading strong {
  color: #0f172a;
  font-size: 14px;
}

.contact-hidden-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.contact-hidden-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.contact-hidden-item strong,
.contact-hidden-item small {
  display: block;
}

.contact-hidden-item strong {
  color: #1e293b;
  font-size: 13px;
}

.contact-hidden-item small {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.contact-fiscal-action {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.contact-fiscal-action.waiting {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(245, 158, 11, 0.06);
}

.contact-fiscal-action.review,
.contact-fiscal-action.correction,
.contact-fiscal-action.error {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.05);
}

.contact-fiscal-action.emitting {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.05);
}

.contact-fiscal-action.sent {
  border-color: rgba(5, 150, 105, 0.2);
  background: rgba(16, 185, 129, 0.05);
}

.contact-fiscal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.contact-fiscal-heading small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-fiscal-heading h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.contact-fiscal-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-fiscal-action > p {
  margin: 10px 0 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.contact-fiscal-buttons {
  display: grid;
  gap: 9px;
}

.contact-nf-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.contact-nf-waiting.emitting {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.contact-nf-waiting i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.fiscal-notes-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.fiscal-notes-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.fiscal-notes-tabs a:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.72);
}

.fiscal-notes-tabs a.active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.fiscal-notes-tabs a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 11px;
}

@media (max-width: 760px) {
  .general-contact-main-actions,
  .contact-control-actions.primary-actions {
    grid-template-columns: 1fr;
  }

  .contact-hidden-item {
    align-items: stretch;
    flex-direction: column;
  }

  .fiscal-notes-tabs {
    width: 100%;
  }

  .fiscal-notes-tabs a {
    flex: 1 0 auto;
  }
}
