.shgt-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem;
}

.shgt-wrap {
  width: 100%;
}

.shgt-config-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.shgt-field {
  flex: 1;
  min-width: 200px;
}

.shgt-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin-bottom: 0.35rem;
}

.shgt-input,
.shgt-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text, #1e293b);
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}

.shgt-input:focus,
.shgt-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.shgt-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.shgt-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.shgt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.shgt-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #1e293b);
}

.shgt-head-actions {
  display: flex;
  gap: 0.5rem;
}

.shgt-hint {
  font-size: 0.85rem;
  color: var(--muted, #64748b);
  margin-top: 0;
  margin-bottom: 1rem;
}

.shgt-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

.shgt-btn-primary:hover {
  background: #1d4ed8;
}

.shgt-btn-ghost {
  background: transparent;
  color: var(--text, #1e293b);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

.shgt-btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

.shgt-btn-action {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.shgt-btn-action:hover {
  background: #1e293b;
}

.shgt-btn-del {
  background: transparent;
  color: #ef4444;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  min-height: 32px;
}

.shgt-btn-del:hover {
  background: #fee2e2;
}

.shgt-table-wrap {
  overflow-x: auto;
}

.shgt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.shgt-table th {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  font-weight: 600;
  color: var(--muted, #64748b);
  white-space: nowrap;
}

.shgt-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}

.shgt-th-action,
.shgt-td-action {
  text-align: center;
  width: 36px;
}

.shgt-in-date {
  min-width: 125px;
}

.shgt-in-type {
  min-width: 110px;
}

.shgt-in-platform {
  min-width: 160px;
}

.shgt-in-desc {
  min-width: 150px;
}

.shgt-in-amount {
  min-width: 90px;
  text-align: right;
}

/* KPI Summary */
.shgt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.shgt-kpi-card {
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.shgt-kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.shgt-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.shgt-kpi-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.shgt-kpi-gross {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.shgt-kpi-exp {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.shgt-kpi-net {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.shgt-kpi-tax {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Take-Home Card */
.shgt-takehome-card {
  background: #1e1b4b;
  color: #ffffff;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.shgt-takehome-text {
  flex: 1;
}

.shgt-takehome-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.shgt-takehome-desc {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
}

.shgt-takehome-amount {
  font-size: 1.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #a7f3d0;
  white-space: nowrap;
}

/* Platform Bars */
.shgt-breakdown-section {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border, #e2e8f0);
  padding-top: 1rem;
}

.shgt-breakdown-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text, #1e293b);
}

.shgt-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shgt-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shgt-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text, #1e293b);
  font-weight: 600;
}

.shgt-bar-track {
  width: 100%;
  height: 8px;
  background: var(--border, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

.shgt-bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Export actions */
.shgt-export-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.shgt-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
  min-height: 1.2rem;
  margin: 0.5rem 0 0 0;
}
