.ishtp-portal {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: #2c3e50;
}

.ishtp-portal--login {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ishtp-portal__card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
}

.ishtp-portal__intro {
  margin-bottom: 1.25rem;
  color: #5a6c7d;
  font-size: 0.95rem;
}

.ishtp-portal__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.ishtp-portal__header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.ishtp-portal__user {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6c7d;
}

.ishtp-portal-nav {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ishtp-portal-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #2c3e50;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ishtp-portal-nav a:hover {
  border-color: #4a7c9e;
  box-shadow: 0 2px 12px rgba(74, 124, 158, 0.12);
}

.ishtp-portal-nav span {
  font-size: 0.9rem;
  color: #5a6c7d;
}

.ishtp-portal-field {
  margin-bottom: 1rem;
}

.ishtp-portal-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.ishtp-portal-field input[type="text"],
.ishtp-portal-field input[type="password"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
}

.ishtp-portal-field--checkbox label {
  font-weight: 400;
}

.ishtp-portal-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.ishtp-portal-btn--primary {
  background: #4a7c9e;
  color: #fff;
  border-color: #4a7c9e;
}

.ishtp-portal-btn--secondary {
  background: #fff;
  color: #4a7c9e;
  border-color: #4a7c9e;
}

.ishtp-portal-btn--ghost {
  background: transparent;
  color: #5a6c7d;
  border-color: #cbd5e1;
}

.ishtp-portal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ishtp-portal-notice {
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.ishtp-portal-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ishtp-portal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ishtp-portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ishtp-portal-table th,
.ishtp-portal-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}

.ishtp-portal-table th {
  background: #f8faf8;
  font-weight: 600;
  white-space: nowrap;
}

.ishtp-portal-table tbody tr:hover {
  background: #fafafa;
}

.ishtp-portal-inline-form select {
  font-size: 0.85rem;
  padding: 0.25rem;
}
