/* Public salaries calculator — extends job application portal look */

.sc-portal .ja-lang-btn,
.sc-portal .sc-lang-btn {
  text-decoration: none;
}

.sc-portal .sc-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
}

.sc-portal .sc-lang-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.sc-form .ja-section {
  margin-bottom: 22px;
}

.sc-money {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-width: 100%;
}

.sc-money--wide {
  max-width: 28rem;
}

.sc-money__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.45);
}

.sc-money input {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0;
  padding: 12px 14px !important;
  font-weight: 700;
}

.sc-money:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.sc-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.sc-check input {
  width: 1.05rem;
  height: 1.05rem;
}

.sc-si-cap-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 600;
}

.sc-si-cap-warn.hidden {
  display: none;
}

.sc-actions {
  margin-top: 8px;
  margin-bottom: 8px;
}

.sc-results {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.55);
}

.sc-results__grid {
  display: grid;
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.sc-result-row,
.sc-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  font-size: 0.92rem;
  color: #334155;
}

button.sc-result-row {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
  border-radius: 0;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

button.sc-result-row:hover,
button.sc-result-row:focus-visible {
  background: #f8fafc;
  outline: none;
}

button.sc-result-row.is-open {
  background: #f1f5f9;
}

.sc-result-row__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sc-result-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.sc-result-row__chev {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

button.sc-result-row.is-open .sc-result-row__chev {
  transform: rotate(180deg);
  color: #0f766e;
}

.sc-result-explain {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-align: start;
}

.sc-result-explain[hidden] {
  display: none !important;
}

.sc-result-explain__title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f766e;
}

.sc-result-explain__line {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 8px;
}

.sc-fx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.84rem;
}

.sc-fx-table > tbody > tr > th,
.sc-fx-table > tbody > tr > td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.sc-fx-table > tbody > tr:last-child > th,
.sc-fx-table > tbody > tr:last-child > td {
  border-bottom: 0;
  background: #f8fafc;
}

.sc-fx-table > tbody > tr > th {
  font-weight: 600;
  color: #334155;
  text-align: start;
  width: 62%;
}

.sc-fx-table > tbody > tr > td {
  font-weight: 800;
  color: #0f172a;
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sc-fx-table__label {
  display: block;
}

.sc-fx-table__formula {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.sc-fx-brackets {
  margin-top: 4px;
  margin-bottom: 12px;
  padding-top: 0;
  padding-bottom: 10px;
  border-top: 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.55);
}

.sc-fx-brackets__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 8px;
}

.sc-fx-brackets__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sc-fx-brackets-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.75rem;
}

.sc-fx-brackets-table .sc-fx-col-slice { width: 26%; }
.sc-fx-brackets-table .sc-fx-col-range { width: 26%; }
.sc-fx-brackets-table .sc-fx-col-rate { width: 12%; }
.sc-fx-brackets-table .sc-fx-col-band { width: 18%; }
.sc-fx-brackets-table .sc-fx-col-tax { width: 18%; }

.sc-fx-brackets-table th,
.sc-fx-brackets-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  box-sizing: border-box;
}

.sc-fx-brackets-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-align: start;
  white-space: normal;
  line-height: 1.35;
}

.sc-fx-brackets-table tbody td {
  color: #0f172a;
  font-weight: 600;
}

.sc-fx-brackets-table__slice {
  text-align: start;
}

.sc-fx-brackets-table__label {
  font-weight: 700;
  color: #334155;
}

.sc-fx-brackets-table__note {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.sc-fx-brackets-table__num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.sc-fx-brackets-table__tax {
  font-weight: 800;
}

.sc-fx-brackets__skipped,
.sc-fx-brackets__idle {
  opacity: 0.55;
  background: #f8fafc;
}

.sc-fx-brackets__applied {
  background: #fffbeb;
}

.sc-fx-brackets__applied .sc-fx-brackets-table__tax {
  color: #b45309;
}

.sc-fx-brackets-table tbody tr:last-child th,
.sc-fx-brackets-table tbody tr:last-child td {
  border-bottom: 0;
}

.sc-result-explain__eq {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #0f172a;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
  margin-bottom: 4px;
  white-space: pre-wrap;
}

.sc-status--hint {
  color: #64748b;
  font-size: 0.85rem;
}

.sc-result-row:last-child,
.sc-result-meta:last-child {
  border-bottom: 0;
}

.sc-result-row--net {
  background: #ecfdf5;
  font-weight: 800;
  color: #065f46;
}

button.sc-result-row--net:hover,
button.sc-result-row--net:focus-visible,
button.sc-result-row--net.is-open {
  background: #d1fae5;
}

.sc-result-row--cost {
  background: #eef2ff;
  font-weight: 700;
  color: #3730a3;
}

button.sc-result-row--cost:hover,
button.sc-result-row--cost:focus-visible,
button.sc-result-row--cost.is-open {
  background: #e0e7ff;
}

.sc-result-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sc-result-val--deduct {
  color: #b45309;
}

.sc-result-meta {
  background: #f8fafc;
  font-size: 0.85rem;
  color: #64748b;
}

.sc-status {
  margin: 0 0 12px;
  font-weight: 600;
}

.sc-status--loading {
  color: #475569;
}

.sc-status--error {
  color: #b91c1c;
}

.sc-section--target .ja-section-title { color: #92400e; }
.sc-section--components .ja-section-title { color: #115e59; }
.sc-section--statutory .ja-section-title { color: #1e3a8a; }
.sc-section--si .ja-section-title { color: #3730a3; }

.sc-pension-panel[hidden],
.sc-pension-extra[hidden],
.emp-pension-panel[hidden],
.emp-pension-extra[hidden],
.sc-disability-panel[hidden],
.emp-disability-panel[hidden] {
  display: none !important;
}

.sc-disability-panel {
  margin-top: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 14px 16px;
}

.sc-disability-panel__check {
  margin: 0;
}

.sc-site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 16px 36px;
  margin: 0;
}

.sc-site-footer__pack {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.sc-site-footer__glow {
  margin: 0 auto;
  max-width: 920px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.75),
    0 0 24px rgba(148, 163, 255, 0.55),
    0 0 40px rgba(45, 212, 191, 0.35);
}

