.bhxh1lan,
.bhxh1lan * {
  box-sizing: border-box;
}

.bhxh1lan {
  --bhxh-text: #17212b;
  --bhxh-muted: #607080;
  --bhxh-line: #d9e1e8;
  --bhxh-soft: #f6f8fb;
  --bhxh-accent: #0f766e;
  --bhxh-accent-strong: #0b5d56;
  --bhxh-blue: #1d4ed8;
  --bhxh-danger: #b42318;
  --bhxh-warning-bg: #fff8e6;
  --bhxh-warning-line: #f0c36d;
  color: var(--bhxh-text);
  border: 1px solid var(--bhxh-line);
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
  background: #ffffff;
  font-family: inherit;
}

.bhxh1lan__header {
  padding: 24px;
  background: #f8fbfc;
  border-bottom: 1px solid var(--bhxh-line);
}

.bhxh1lan__eyebrow {
  margin: 0 0 8px;
  color: var(--bhxh-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.bhxh1lan h2,
.bhxh1lan h3 {
  color: var(--bhxh-text);
  line-height: 1.25;
}

.bhxh1lan h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.bhxh1lan h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.bhxh1lan p {
  margin: 0 0 12px;
  color: var(--bhxh-muted);
}

.bhxh1lan__notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--bhxh-blue);
  background: #eef5ff;
  color: #183a68;
  font-size: 14px;
}

.bhxh1lan__toolbar,
.bhxh1lan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--bhxh-line);
}

.bhxh1lan__toolbar {
  justify-content: flex-end;
}

.bhxh1lan__actions {
  justify-content: space-between;
  border-top: 1px solid var(--bhxh-line);
  border-bottom: 0;
}

.bhxh1lan__actions .bhxh1lan__toolbar-group {
  flex: 1 1 auto;
}

.bhxh1lan__toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bhxh1lan__button,
.bhxh1lan__upload {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bhxh-line);
  border-radius: 8px;
  padding: 9px 14px;
  background: #ffffff;
  color: var(--bhxh-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bhxh1lan__button:hover,
.bhxh1lan__upload:hover {
  border-color: #aab8c5;
  background: #f3f7f9;
  color: var(--bhxh-text);
}

.bhxh1lan__button--primary {
  border-color: var(--bhxh-accent);
  background: var(--bhxh-accent);
  color: #ffffff;
}

.bhxh1lan__button--primary:hover {
  border-color: var(--bhxh-accent-strong);
  background: var(--bhxh-accent-strong);
  color: #ffffff;
}

.bhxh1lan__button--ghost {
  background: var(--bhxh-soft);
}

.bhxh1lan__button--light {
  color: var(--bhxh-blue);
}

.bhxh1lan__upload {
  position: relative;
  color: var(--bhxh-blue);
}

.bhxh1lan__upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.bhxh1lan__message {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--bhxh-line);
  background: var(--bhxh-soft);
  color: var(--bhxh-text);
  font-size: 14px;
}

.bhxh1lan__message[data-type="success"] {
  border-color: #9ed6bd;
  background: #eefbf4;
  color: #14532d;
}

.bhxh1lan__message[data-type="error"] {
  border-color: #f1aaa4;
  background: #fff1f0;
  color: var(--bhxh-danger);
}

.bhxh1lan__message[data-type="info"] {
  border-color: #b8cef7;
  background: #f0f6ff;
  color: #17458a;
}

.bhxh1lan__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bhxh1lan__input-table,
.bhxh1lan__detail-table,
.bhxh1lan__coefficient-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.bhxh1lan__input-table th,
.bhxh1lan__input-table td,
.bhxh1lan__detail-table th,
.bhxh1lan__detail-table td,
.bhxh1lan__coefficient-table th,
.bhxh1lan__coefficient-table td {
  border-bottom: 1px solid var(--bhxh-line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.bhxh1lan__input-table th,
.bhxh1lan__detail-table th,
.bhxh1lan__coefficient-table th {
  background: var(--bhxh-soft);
  color: #314150;
  font-weight: 800;
}

.bhxh1lan__input-table select,
.bhxh1lan__input-table input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c8d3dd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--bhxh-text);
  font: inherit;
}

.bhxh1lan__input-table tr.bhxh1lan__row--new td {
  background: #fff8e6;
  color: #7a4b00;
}

.bhxh1lan__input-table tr.bhxh1lan__row--new select,
.bhxh1lan__input-table tr.bhxh1lan__row--new input {
  border-color: #e0ad4f;
  background: #fffdf6;
  color: #7a4b00;
}

.bhxh1lan__input-table tr.bhxh1lan__row--new input::placeholder {
  color: #9b6b19;
}

.bhxh1lan__input-table select {
  min-width: 104px;
}

.bhxh1lan__year {
  min-width: 96px;
}

.bhxh1lan__salary {
  min-width: 150px;
}

.bhxh1lan__note {
  min-width: 130px;
}

.bhxh1lan__icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1aaa4;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--bhxh-danger);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.bhxh1lan__results {
  padding: 0 24px 24px;
}

.bhxh1lan__summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 8px;
}

.bhxh1lan__summary-card {
  min-height: 126px;
  border: 1px solid var(--bhxh-line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.bhxh1lan__summary-card span,
.bhxh1lan__summary-card small {
  display: block;
  color: var(--bhxh-muted);
  font-size: 13px;
}

.bhxh1lan__summary-card strong {
  display: block;
  margin: 8px 0;
  color: var(--bhxh-text);
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.bhxh1lan__warning {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--bhxh-warning-line);
  border-radius: 8px;
  background: var(--bhxh-warning-bg);
  color: #6f4b00;
}

.bhxh1lan__warning ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.bhxh1lan__formula,
.bhxh1lan__detail {
  margin-top: 18px;
}

.bhxh1lan__formula {
  border: 1px solid var(--bhxh-line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
}

.bhxh1lan__formula-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bhxh1lan__formula-lines div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--bhxh-line);
}

.bhxh1lan__formula-lines span {
  color: var(--bhxh-muted);
}

.bhxh1lan__formula-lines strong {
  max-width: 70%;
  text-align: right;
  overflow-wrap: anywhere;
}

.bhxh1lan__detail-table tfoot th,
.bhxh1lan__detail-table tfoot td {
  background: #eef7f5;
  color: var(--bhxh-text);
}

.bhxh1lan__coefficients {
  border-top: 1px solid var(--bhxh-line);
  padding: 16px 24px 24px;
}

.bhxh1lan__coefficients summary {
  cursor: pointer;
  font-weight: 800;
}

.bhxh1lan__coefficient-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.bhxh1lan__coefficient-table {
  min-width: 920px;
}

.bhxh1lan__coefficient-table th,
.bhxh1lan__coefficient-table td {
  text-align: center;
}

.bhxh1lan-article {
  color: #17212b;
}

.bhxh1lan-article h1,
.bhxh1lan-article h2,
.bhxh1lan-article h3 {
  color: #17212b;
  line-height: 1.25;
}

.bhxh1lan-article h1 {
  margin: 0 0 16px;
  font-size: 34px;
}

.bhxh1lan-article h2 {
  margin-top: 32px;
  font-size: 26px;
}

.bhxh1lan-article h3 {
  margin-top: 20px;
  font-size: 20px;
}

.bhxh1lan-article p,
.bhxh1lan-article li {
  color: #455463;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .bhxh1lan__summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bhxh1lan__header,
  .bhxh1lan__toolbar,
  .bhxh1lan__actions,
  .bhxh1lan__results,
  .bhxh1lan__coefficients {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bhxh1lan h2 {
    font-size: 23px;
  }

  .bhxh1lan__toolbar,
  .bhxh1lan__actions {
    align-items: stretch;
  }

  .bhxh1lan__toolbar-group,
  .bhxh1lan__button,
  .bhxh1lan__upload {
    width: 100%;
  }

  .bhxh1lan__summary-grid {
    grid-template-columns: 1fr;
  }

  .bhxh1lan__formula-lines div {
    display: block;
  }

  .bhxh1lan__formula-lines strong {
    display: block;
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }

  .bhxh1lan-article h1 {
    font-size: 28px;
  }
}
