.inas-profile-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inas-profile-btn {
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
  min-height: 42px;
  padding: 10px 16px;
  font: 850 13px Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.22);
}

.inas-profile-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.inas-profile-overlay {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.inas-profile-modal {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  background: #ffffff;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  color: #14213d;
  font-family: Inter, system-ui, sans-serif;
}

.inas-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  background: linear-gradient(135deg, #0f4c81, #0ea5e9);
  color: #ffffff;
}

.inas-profile-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
  font: 850 11px Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}

.inas-profile-head h2 {
  margin: 0 0 7px;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
}

.inas-profile-head p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.inas-profile-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

.inas-profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 26px;
  background: #f8fbff;
  border-bottom: 1px solid #dbe7f3;
}

.inas-profile-card {
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.inas-profile-card span {
  display: block;
  color: #64748b;
  font: 850 11px Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inas-profile-card strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 22px;
}

.inas-profile-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 700;
}

.inas-profile-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 280px) minmax(170px, 210px) auto;
  gap: 10px;
  padding: 16px 26px;
  border-bottom: 1px solid #dbe7f3;
}

.inas-profile-toolbar input,
.inas-profile-toolbar select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  padding: 0 12px;
  font: 750 13px Inter, system-ui, sans-serif;
  color: #14213d;
  background: #ffffff;
}

.inas-profile-toolbar button,
.inas-profile-footer button {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid #bfdbfe;
  padding: 0 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font: 850 13px Inter, system-ui, sans-serif;
  cursor: pointer;
}

.inas-profile-toolbar button.primary,
.inas-profile-footer button.primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.inas-profile-table-wrap {
  overflow: auto;
  padding: 0 26px 18px;
}

.inas-profile-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.inas-profile-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f7ff;
  color: #475569;
  text-align: left;
  padding: 12px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #dbe7f3;
}

.inas-profile-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5edf6;
  vertical-align: top;
}

.inas-profile-table td.num,
.inas-profile-table th.num {
  text-align: right;
  white-space: nowrap;
}

.inas-profile-table tbody tr:hover {
  background: #f8fbff;
}

.inas-profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 22px;
  border-top: 1px solid #dbe7f3;
  background: #ffffff;
}

.inas-profile-note {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.inas-profile-empty {
  padding: 28px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 900px) {
  .inas-profile-summary,
  .inas-profile-toolbar {
    grid-template-columns: 1fr;
  }

  .inas-profile-head,
  .inas-profile-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
