
.classy-nav-container {
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
}

.classy-nav-container .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.classy-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: auto;
}

.nav-logo {
  width: 140px;
  height: auto;
  display: block;
}

.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.navbar-toggler-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #0f172a;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  top: 6px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.nav-item {
  margin: 0;
}

.nav-link {
  padding: 8px 16px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-item.active .nav-link {
  background: #eff6ff;
  color: #be123c;
  font-weight: 600;
}

.hero-strip {
  padding: 20px 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.hero-strip__img {
  width: min(544px, 100%);
  max-height: 238px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  margin-inline: auto;
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.settings-hero__text h2 {
  margin: 0;
}

.settings-hero__img {
  width: min(306px, 100%);
  max-height: 187px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.settings-hero__text .muted {
  margin-top: 8px;
}

.settings-hero__text {
  position: relative;
  z-index: 1;
}

.page-creditobancario .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  min-height: 120px;
}
.page-creditobancario .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  opacity: 0.85;
  pointer-events: none;
}
.page-creditobancario .settings-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-creditobancario .card #settings-form,
.page-creditobancario .card .grid--3 {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .page-creditobancario .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-creditobancario .settings-hero__img {
    justify-self: center;
  }
}

.disclaimer-section {
  background: #f8fafc;
  padding: 20px 14px;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.disclaimer-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer-section strong {
  color: #be123c;
  text-transform: uppercase;
}

.contact-section {
  padding: 60px 20px;
  background: #ffffff;
}

.contact-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
}

.contact-content {
  width: 100%;
  max-width: 800px;
}

.contact-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.contact-content > .text-center p {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-section form {
  margin-top: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-col-half {
  flex: 1;
}

.form-col-full {
  width: 100%;
  margin-bottom: 16px;
}

.contact-section .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-section .form-control:focus {
  outline: none;
  border-color: #be123c;
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

.contact-section textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  padding: 12px 32px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #16a34a;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #15803d;
  color: #ffffff;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-content h2 {
    font-size: 24px;
  }

  .contact-section {
    padding: 40px 20px;
  }
}

.footer-area {
  background: #f8fafc;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  padding: 28px 14px;
  margin-top: 0;
}

.footer-area .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.copywrite-text {
  flex: 1;
  min-width: 250px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  text-align: left;
}

.copywrite-text p {
  margin: 0 0 8px 0;
}

.copywrite-text p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.copywrite-text p:last-child strong:first-child {
  font-size: 13px;
}

.copywrite-text strong {
  color: #64748b;
  font-weight: 600;
}

.copywrite-text a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.copywrite-text a:hover {
  color: #be123c;
}

.footer-logo img {
  height: 50px;
  width: auto;
  display: block;
  opacity: 1;
}

.social-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
  color: #475569;
}

.social-info > div {
  font-size: 12px;
  margin-bottom: 0;
  color: #64748b;
  padding-right: 4px;
}

.social-info > div + * {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.social-info a {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.social-info a:hover {
  opacity: 0.7;
}

.social-info svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  display: block;
}

.social-info a svg {
  fill: #475569;
}

.scroll-top,
#scrollUp {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 40px;
  background-color: #fc6060;
  color: #ffffff;
  text-align: center;
  transition-duration: 500ms;
  border-radius: 50%;
  box-shadow: 0 2px 40px 8px rgba(15, 15, 15, 0.15);
  z-index: 15962536;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top:hover,
#scrollUp:hover {
  background-color: #fc6060;
}

.scroll-top.show,
#scrollUp.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top::before,
#scrollUp::before {
  content: "^";
  display: block;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
  color: #ffffff;
}

.scroll-top .arrow_carrot-up,
#scrollUp .arrow_carrot-up,
.scroll-top i.arrow_carrot-up,
#scrollUp i.arrow_carrot-up {
  display: none;
}

.support-footer {
  text-align: center;
  padding: 24px 12px 48px;
  font-size: 14px;
  color: #475569;
  background: #f8fafc;
}

.support-footer a {
  color: #be123c;
  text-decoration: none;
  font-weight: 600;
}

.support-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    padding: 16px 20px;
    margin-top: 8px;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .copywrite-text {
    text-align: center;
  }
}
:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

html {
  -webkit-text-size-adjust: 100%;
}

.card,
.copywrite-text,
.muted,
.nav-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-link,
button,
.hub-btn,
.hub-link,
.scroll-top {
  min-height: 44px;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-nomina #employees-table.table-wrapper {
  scrollbar-width: auto;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar {
  height: 20px;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-button {
  width: 32px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 0;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-button:hover {
  background: #cbd5e1;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.page-nomina #employees-table.table-wrapper::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.page-nomina .cell-amount,
.page-nomina .cell-net {
  white-space: nowrap;
  min-width: 95px;
}

.page-nomina .cell-pct {
  max-width: 72px;
}
.page-nomina .cell-pct-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-nomina .cell-pct-wrap input {
  width: 2.8em;
  min-width: 2.5em;
  max-width: 100%;
  box-sizing: border-box;
}
.page-nomina .cell-pct .pct-suffix {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.page-nomina .employment-panel table thead th {
  overflow: visible !important;
  position: relative;
}
.page-nomina .employment-panel table thead th .tooltip-trigger {
  position: relative;
  z-index: 2;
}
.page-nomina .employment-panel table thead th .tooltip-trigger::after {
  top: auto;
  bottom: -8px;
  transform: translate(-50%, 100%);
  z-index: 10000;
}

.page-nomina .collapsible .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  min-height: 120px;
}
.page-nomina .collapsible .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  grid-column: 2;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  opacity: 0.85;
  pointer-events: none;
}
.page-nomina .collapsible #settings-form {
  position: relative;
  z-index: 1;
}

.page-nomina .collapsible .tooltip-trigger {
  position: relative;
  z-index: 2000;
}

.page-nomina .collapsible .tooltip-trigger::after {
  z-index: 2001;
}

@media (max-width: 720px) {
  .page-nomina .collapsible .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-nomina .collapsible .settings-hero__img {
    grid-column: auto;
    justify-self: center;
  }
}

@keyframes float-help-bounce {
  0%, 3.5%, 100% { transform: translateY(0); }
  1.5% { transform: translateY(-10px); }
  2.5% { transform: translateY(2px); }
}

.float-help {
  position: fixed;
  right: calc(40px + env(safe-area-inset-right, 0px));
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.15);
  z-index: 15962535;
  transition: box-shadow 0.2s ease, color 0.2s ease;
  animation: float-help-bounce 15s ease-in-out infinite;
}
.float-help:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.scroll-top {
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
}

#scrollUp {
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  right: calc(40px + env(safe-area-inset-right, 0px));
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
}

.branding {
  display: flex;
  gap: 18px;
  align-items: center;
}

.home-icon-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  align-self: flex-end;
  padding-bottom: 5px !important;
}

.home-icon-nav:hover {
  opacity: 1;
  background: #f1f5f9;
}

.home-icon-nav svg {
  width: 24px;
  height: 24px;
  stroke: #0f172a;
  display: block;
}

.logo {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.2));
}

.legend {
  margin: 12px 0 0;
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  background: #d4dafe;
  color: #312e81;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-illustration {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 180px;
  opacity: 0.35;
  pointer-events: none;
}

.eyebrow {
  letter-spacing: 0.35em;
  font-size: 12px;
  font-weight: 600;
  color: #be123c;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.muted {
  color: #64748b;
  margin: 4px 0 0;
}

.actions {
  display: flex;
  gap: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  background: #16a34a;
  color: white;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

#export-btn,
#export-all-btn,
button.actions-footer-export {
  background: #16a34a;
  color: white;
}

#export-btn:hover:not(:disabled),
#export-all-btn:hover:not(:disabled),
button.actions-footer-export:hover:not(:disabled) {
  background: #15803d;
}

.ghost {
  background: transparent;
  border: 1px solid #cbd5f5;
  color: #0f172a;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.collapsible details {
  border-radius: 16px;
}

.collapsible summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.collapsible summary::-webkit-details-marker {
  display: none;
}

.employment-panel {
  border: 2px solid #fcd34d;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
}

.policy-item-inline,
.policy-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.switch.inline {
  margin-top: 6px;
}

.tiny {
  font-size: 12px;
  margin: 0;
}

.label-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #0f172a;
}

.tooltip-trigger {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  border-radius: 50%;
  border: none;
  background: #e0e7ff;
  color: #312e81;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding: 0;
  margin-left: 4px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 1;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translate(-50%, -100%);
  background: #0f172a;
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  white-space: normal;
  text-align: left;
}

.tooltip-trigger:focus-visible::after,
.tooltip-trigger:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .tooltip-trigger {
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }

  .tooltip-trigger::after {
    width: 280px;
    max-width: calc(100vw - 32px);
    font-size: 13px;
  }

  .tooltip-trigger:active::after,
  .tooltip-trigger:focus::after {
    opacity: 1;
  }
}

.eyebrow--mini {
  letter-spacing: 0.2em;
  font-size: 11px;
}

.chip {
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: white;
}

.chip--expand {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.chip--expand:hover {
  background: #15803d;
  border-color: #15803d;
  color: white;
}

.summary-title--large {
  font-size: 1.35rem;
}

.advanced-settings {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
}

.advanced-settings summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.advanced-settings summary strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}

.advanced-settings__description {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.advanced-settings__grid {
  padding: 0 20px 20px;
}

.advanced-settings__body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.advanced-settings--full {
  padding: 0;
}

.advanced-settings--full summary {
  padding: 20px 24px;
}

input,
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
}

input:focus,
select:focus {
  outline: 2px solid rgba(190, 18, 60, 0.2);
  border-color: rgba(190, 18, 60, 0.4);
}

.editable {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.numeric-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.editable[disabled] {
  background: #f1f5f9;
  color: #94a3b8;
}

.editable:focus {
  background: #dbeafe;
  border-color: #3b82f6;
  outline-color: rgba(59, 130, 246, 0.35);
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

td input[type="number"],
td input[type="text"] {
  width: 100%;
  min-width: 160px;
  overflow-x: auto;
  text-overflow: clip;
}

table thead th {
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 6px;
  min-width: 70px;
}

table thead th:first-child {
  min-width: 40px;
}

table thead th:nth-child(2),
table thead th:nth-child(3) {
  min-width: 120px;
}

table thead th.bonus-column {
  min-width: 80px;
}

td input.small {
  width: 80px;
  min-width: 80px;
}

.currency {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.delete-btn,
.duplicate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  min-width: 32px;
  height: 32px;
}

.delete-btn svg,
.duplicate-btn svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  display: block;
  transition: stroke 0.2s ease;
}

.delete-btn:hover svg {
  stroke: #dc2626;
}

.duplicate-btn:hover svg {
  stroke: #2563eb;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed #cbd5f5;
  border-radius: 16px;
  color: #94a3b8;
}

.hide {
  display: none;
}

.bonus-column.hide {
  display: none;
}

.totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.totals .total-box {
  background: #0f172a;
  color: white;
  border-radius: 14px;
  padding: 16px;
}

.totals .total-box--gross {
  background: #111827;
}

.totals .total-box--net {
  background: #0f172a;
}

.totals .total-box--bonus {
  background: #ca8a04;
}

.totals .total-box--imss {
  background: #3b82f6;
}

.totals .total-box--isr {
  background: #ef4444;
}

.totals .total-box--infonavit {
  background: #f97316;
}

.totals .total-box--savings {
  background: #10b981;
}

.totals p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.totals strong {
  font-size: 20px;
}

.cost-visual .chart-wrapper {
  height: 320px;
}

.cost-visual canvas {
  width: 100%;
  height: 100%;
}

.cost-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-size: 14px;
}

.cost-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cost-legend strong {
  margin-left: auto;
}

.error {
  border-color: #f87171 !important;
  background: #fef2f2;
}

.error-message {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.switch input {
  width: auto;
}

@media (max-width: 720px) {
  .hero-strip {
    display: none;
  }

  .settings-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 187px;
    margin-bottom: 18px;
  }

  .settings-hero__img {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    align-self: center;
    width: min(306px, 100%);
    max-height: 187px;
  }
}

@media (max-width: 640px) {
  .app__header {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  table {
    font-size: 13px;
  }

  td input[type="number"],
  td input[type="text"] {
    width: 100%;
    min-width: 160px;
  }

  input[type="text"],
  input[type="number"],
  input.editable {
    min-height: 44px;
    font-size: 16px;
    padding: 12px;
  }

  input.numeric-input {
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .hero-illustration {
    position: static;
    width: 140px;
    margin-left: auto;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .copywrite-text {
    text-align: center;
    min-width: auto;
    width: 100%;
  }

  .social-info {
    align-items: center;
    width: 100%;
  }

  .social-info > div {
    padding-right: 0;
  }

  .float-help {
    right: 16px;
    bottom: 64px;
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
  }

  #scrollUp {
    width: 36px;
    height: 36px;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
    line-height: 36px;
  }

  .app {
    padding: 20px 14px 60px;
  }

  .card {
    padding: 16px;
  }

  .table-wrapper {
    margin: 0 -14px;
    padding: 0 14px;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.page-inventarios .hero-strip {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.page-inventarios .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  overflow: visible;
}

.page-inventarios .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  object-fit: contain;
  opacity: 0.85;
  pointer-events: none;
}

.page-inventarios .settings-hero > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-inventarios .card .grid--3,
.page-inventarios .card .table-wrapper {
  position: relative;
  z-index: 1;
}

.page-inventarios table thead th:nth-child(7),
.page-inventarios table tbody td:nth-child(7) {
  min-width: 85px;
  white-space: nowrap;
}

.page-inventarios table thead th:nth-child(8),
.page-inventarios table tbody td:nth-child(8) {
  min-width: 85px;
  white-space: nowrap;
}

.page-inventarios table th {
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 6px;
  position: relative;
  overflow: visible !important;
}

.page-inventarios table td {
  padding: 8px 6px;
}

.page-inventarios .table-wrapper {
  overflow-x: auto;
  position: relative;
}

.page-inventarios table {
  position: relative;
}

.page-inventarios table thead {
  position: relative;
  overflow: visible !important;
}

.page-inventarios .card {
  overflow: visible !important;
}

.page-inventarios .tooltip-trigger {
  position: relative;
  z-index: 100;
}

.page-inventarios table th .tooltip-trigger::after {
  z-index: 9999 !important;
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: 220px;
  max-width: 280px;
}

.page-inventarios table th .tooltip-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #0f172a;
  margin-top: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9998;
  pointer-events: none;
}

.page-inventarios table th .tooltip-trigger:hover::before,
.page-inventarios table th .tooltip-trigger:focus-visible::before,
.page-inventarios table th .tooltip-trigger:active::before {
  opacity: 1;
}

.page-inventarios .grid .tooltip-trigger::after {
  z-index: 9999 !important;
}

.page-inventarios table tfoot th {
  font-weight: 700;
  color: #0f172a;
}

.page-inventarios table tfoot .currency {
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 720px) {
  .page-inventarios .hero-strip {
    display: none;
  }

  .page-inventarios .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-inventarios .settings-hero__img {
    justify-self: center;
  }
}

@media (max-width: 500px) {
  .page-inventarios table th {
    font-size: 10px;
    padding: 6px 4px;
  }

  .page-inventarios table td {
    font-size: 12px;
    padding: 6px 4px;
  }

  .page-inventarios table input {
    font-size: 12px;
    min-width: 60px;
    padding: 4px;
  }

  .page-inventarios .tooltip-trigger {
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 50%;
  }

  .page-inventarios .tooltip-trigger:active::after,
  .page-inventarios .tooltip-trigger:focus::after {
    opacity: 1;
  }

  .page-inventarios .grid--3 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .page-inventarios .delete-btn svg {
    width: 14px;
    height: 14px;
  }
}

.page-cuotas-patronales .hero-strip {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.page-cuotas-patronales .delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  min-width: 32px;
  height: 32px;
}

.page-cuotas-patronales .delete-btn svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  display: block;
  transition: stroke 0.2s ease;
}

.page-cuotas-patronales .delete-btn:hover svg {
  stroke: #dc2626;
}

.page-cuotas-patronales .employment-panel {
  padding-top: 16px;
}

.page-cuotas-patronales .employment-panel .card__header {
  margin-bottom: 12px;
}

.page-cuotas-patronales .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  min-height: 120px;
}
.page-cuotas-patronales .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  grid-column: 2;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  opacity: 0.85;
  pointer-events: none;
}
.page-cuotas-patronales .employment-panel .table-wrapper {
  margin-top: 0;
}

.page-cuotas-patronales table thead th {
  position: relative;
  overflow: visible !important;
  white-space: nowrap;
}

.page-cuotas-patronales .employment-panel .table-wrapper {
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.page-cuotas-patronales .employment-panel table {
  position: relative;
  table-layout: auto;
  min-width: 100%;
}

.page-cuotas-patronales .employment-panel table thead {
  position: relative;
  z-index: 1;
}

.page-cuotas-patronales .employment-panel table thead th {
  overflow: visible !important;
  position: relative;
}

.page-cuotas-patronales .employment-panel table thead th .tooltip-trigger {
  position: relative;
  z-index: 2;
}

.page-cuotas-patronales .employment-panel table thead th .tooltip-trigger::after {
  top: auto;
  bottom: -8px;
  transform: translate(-50%, 100%);
  z-index: 10000;
}

.page-cuotas-patronales .employment-panel table tbody td {
  padding: 4px 6px !important;
  vertical-align: middle;
}

.page-cuotas-patronales .employment-panel table .currency {
  white-space: nowrap;
  min-width: 7em;
}
.page-cuotas-patronales .employment-panel table tbody td.currency {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.page-cuotas-patronales .employment-panel table tbody td input {
  padding: 4px 6px !important;
  height: 32px !important;
  margin: 0 !important;
}

.page-cuotas-patronales .employment-panel table tbody td .risk-select {
  min-width: 100%;
  padding: 4px 6px;
  height: 32px;
  font-size: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}

.page-cuotas-patronales .employment-panel table tbody tr {
  line-height: 1.2;
}

.page-cuotas-patronales .employment-panel table thead th.col-total-highlight,
.page-cuotas-patronales .employment-panel table tbody td.col-total-highlight {
  background: #faf5eb;
}

.page-cuotas-patronales .employment-panel table thead th {
  padding: 8px 6px !important;
}

@media (max-width: 720px) {
  .page-cuotas-patronales .hero-strip {
    display: none;
  }

  .page-cuotas-patronales .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-cuotas-patronales .settings-hero__img {
    grid-column: auto;
    justify-self: center;
  }
}

.page-isr-resico-fisica-alt .hero-strip {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.page-isr-resico-fisica-alt .summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.page-isr-resico-fisica-alt .summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-isr-resico-fisica-alt .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.page-isr-resico-fisica-alt .summary-card__icon {
  font-size: 28px;
  line-height: 1;
}

.page-isr-resico-fisica-alt .summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-isr-resico-fisica-alt .summary-card__label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.page-isr-resico-fisica-alt .summary-card__value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-fisica-alt .summary-card--income {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-fisica-alt .summary-card--income .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-fisica-alt .summary-card--isr {
  border-left: 4px solid #be123c;
}

.page-isr-resico-fisica-alt .summary-card--isr .summary-card__value {
  color: #be123c;
}

.page-isr-resico-fisica-alt .summary-card--rate {
  border-left: 4px solid #f59e0b;
}

.page-isr-resico-fisica-alt .summary-card--rate .summary-card__value {
  color: #d97706;
}

.page-isr-resico-fisica-alt .summary-card--balance {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-fisica-alt .summary-card--balance .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-fisica-alt .summary-card--positive .summary-card__value {
  color: #2563eb !important;
}

.page-isr-resico-fisica-alt .summary-card--negative .summary-card__value {
  color: #be123c !important;
}

.page-isr-resico-fisica-alt .income-table thead th,
.page-isr-resico-fisica-alt .isr-table thead th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.page-isr-resico-fisica-alt .isr-table thead th {
  background: #f8fafc;
  color: #475569;
}

.page-isr-resico-fisica-alt .income-table tfoot th,
.page-isr-resico-fisica-alt .isr-table tfoot th {
  background: #f1f5f9;
  font-weight: 600;
}

@media (max-width: 900px) {
  .page-isr-resico-fisica-alt .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .page-isr-resico-fisica-alt .summary-cards {
    grid-template-columns: 1fr;
  }

  .page-isr-resico-fisica-alt .summary-card {
    padding: 16px;
  }

  .page-isr-resico-fisica-alt .summary-card__value {
    font-size: 18px;
  }
}

.page-isr-resico-moral-alt .hero-strip {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}

.page-isr-resico-moral-alt .income-table th,
.page-isr-resico-moral-alt .isr-table th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.page-isr-resico-moral-alt .income-table tbody td,
.page-isr-resico-moral-alt .isr-table tbody td {
  text-align: center;
  padding: 12px 8px;
}

.page-isr-resico-moral-alt .income-table tbody input {
  text-align: center;
  width: 100%;
  min-width: 90px;
}

.page-isr-resico-moral-alt .income-table tfoot th,
.page-isr-resico-moral-alt .isr-table tfoot th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: right;
  padding: 12px 16px;
}

.page-isr-resico-moral-alt .income-table tfoot .currency,
.page-isr-resico-moral-alt .isr-table tfoot .currency {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-moral-alt .summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.page-isr-resico-moral-alt .summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-isr-resico-moral-alt .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.page-isr-resico-moral-alt .summary-card__icon {
  font-size: 28px;
  line-height: 1;
}

.page-isr-resico-moral-alt .summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-isr-resico-moral-alt .summary-card__label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.page-isr-resico-moral-alt .summary-card__value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-moral-alt .summary-card--income {
  border-left: 4px solid #8b5cf6;
}

.page-isr-resico-moral-alt .summary-card--income .summary-card__value {
  color: #7c3aed;
}

.page-isr-resico-moral-alt .summary-card--isr {
  border-left: 4px solid #be123c;
}

.page-isr-resico-moral-alt .summary-card--isr .summary-card__value {
  color: #be123c;
}

.page-isr-resico-moral-alt .summary-card--rate {
  border-left: 4px solid #f59e0b;
}

.page-isr-resico-moral-alt .summary-card--rate .summary-card__value {
  color: #d97706;
}

.page-isr-resico-moral-alt .summary-card--balance {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-moral-alt .summary-card--balance .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-moral-alt .summary-card--positive .summary-card__value {
  color: #059669 !important;
}

.page-isr-resico-moral-alt .summary-card--negative .summary-card__value {
  color: #be123c !important;
}

.page-isr-resico-moral-alt .income-table thead th {
  background: #8b5cf6 !important;
  color: #fff !important;
}

.page-isr-resico-moral-alt .isr-table thead th {
  background: #be123c !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .page-isr-resico-moral-alt .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .page-isr-resico-moral-alt .summary-cards {
    grid-template-columns: 1fr;
  }

  .page-isr-resico-moral-alt .summary-card {
    padding: 16px;
  }

  .page-isr-resico-moral-alt .summary-card__value {
    font-size: 18px;
  }
}

.page-isr-resico-fisica .hero-strip {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.page-isr-resico-fisica .summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.page-isr-resico-fisica .summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-isr-resico-fisica .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.page-isr-resico-fisica .summary-card__icon {
  font-size: 28px;
  line-height: 1;
}

.page-isr-resico-fisica .summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-isr-resico-fisica .summary-card__label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.page-isr-resico-fisica .summary-card__value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-fisica .summary-card--income {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-fisica .summary-card--income .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-fisica .summary-card--isr {
  border-left: 4px solid #be123c;
}

.page-isr-resico-fisica .summary-card--isr .summary-card__value {
  color: #be123c;
}

.page-isr-resico-fisica .summary-card--rate {
  border-left: 4px solid #f59e0b;
}

.page-isr-resico-fisica .summary-card--rate .summary-card__value {
  color: #d97706;
}

.page-isr-resico-fisica .summary-card--balance {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-fisica .summary-card--balance .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-fisica .summary-card--positive .summary-card__value {
  color: #2563eb !important;
}

.page-isr-resico-fisica .summary-card--negative .summary-card__value {
  color: #be123c !important;
}

.page-isr-resico-fisica .income-table thead th,
.page-isr-resico-fisica .isr-table thead th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.page-isr-resico-fisica .isr-table thead th {
  background: #f8fafc;
  color: #475569;
}

.page-isr-resico-fisica .isr-fisica-tasas-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  grid-column: 1 / -1;
}

.page-isr-resico-fisica .isr-fisica-tasas-split {
  grid-column: 1 / -1;
}

.page-isr-resico-fisica .isr-fisica-tasas-block {
  padding-left: 20px;
  border-left: 1px solid #e2e8f0;
}

.page-isr-resico-fisica .isr-fisica-tasas-block:first-child {
  padding-left: 0;
  border-left: none;
}

.page-isr-resico-fisica .isr-fisica-tasas-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
}

.page-isr-resico-fisica #brackets-details table {
  font-size: 12px;
}

.page-isr-resico-fisica #brackets-details table thead th {
  padding: 7px 6px;
  font-size: 11px;
}

.page-isr-resico-fisica #brackets-details table tbody td {
  padding: 7px 6px;
}

.page-isr-resico-fisica #brackets-details table input.editable {
  min-width: 82px;
  font-size: 12px;
  padding: 6px 8px;
}

@media (max-width: 720px) {
  .page-isr-resico-fisica .isr-fisica-tasas-block {
    padding-left: 0;
    border-left: none;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
  }

  .page-isr-resico-fisica .isr-fisica-tasas-block:first-child {
    padding-top: 0;
    border-top: none;
  }
}

.page-isr-resico-fisica .income-table tfoot th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: right;
  padding: 12px 16px;
  color: #0f172a;
}

.page-isr-resico-fisica .income-table tfoot .currency {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-fisica .isr-table tfoot th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: right;
  padding: 12px 16px;
  color: #0f172a;
}

.page-isr-resico-fisica .isr-table tfoot #saldo {
  font-weight: 800;
  color: #0f172a;
}

.page-isr-resico-fisica .isr-table tfoot th .tooltip-trigger,
.page-isr-resico-moral .isr-table tfoot th .tooltip-trigger {
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .page-isr-resico-fisica .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .page-isr-resico-fisica .summary-cards {
    grid-template-columns: 1fr;
  }

  .page-isr-resico-fisica .summary-card {
    padding: 16px;
  }

  .page-isr-resico-fisica .summary-card__value {
    font-size: 18px;
  }

  .page-isr-resico-fisica .income-table,
  .page-isr-resico-fisica .isr-table {
    font-size: 12px;
  }

  .page-isr-resico-fisica .income-table input,
  .page-isr-resico-fisica .isr-table input {
    font-size: 14px;
    min-width: 70px;
    padding: 6px 4px;
  }

  .page-isr-resico-fisica .income-table td,
  .page-isr-resico-fisica .isr-table td,
  .page-isr-resico-fisica .income-table th,
  .page-isr-resico-fisica .isr-table th {
    padding: 8px 4px;
  }

  .page-isr-resico-fisica .tooltip-trigger {
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }

  .page-isr-resico-fisica .tooltip-trigger:active::after,
  .page-isr-resico-fisica .tooltip-trigger:focus::after {
    opacity: 1;
  }

  .page-isr-resico-fisica .tooltip-trigger::after {
    width: 200px;
    max-width: calc(100vw - 40px);
    left: auto;
    right: 0;
    transform: translateY(-100%);
  }
}

.page-isr-resico-moral .hero-strip {
  background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
}

.page-isr-resico-moral .income-table th,
.page-isr-resico-moral .isr-table th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.page-isr-resico-moral .income-table tbody td,
.page-isr-resico-moral .isr-table tbody td {
  text-align: center;
  padding: 12px 8px;
}

.page-isr-resico-fisica .income-table tbody td:nth-child(1),
.page-isr-resico-moral .income-table tbody td:nth-child(1) {
  text-align: right;
  padding-right: 4px;
}

.page-isr-resico-fisica .income-table tbody td:nth-child(2),
.page-isr-resico-moral .income-table tbody td:nth-child(2) {
  padding-left: 4px;
}

.page-isr-resico-fisica .income-table tbody td:nth-child(3),
.page-isr-resico-moral .income-table tbody td:nth-child(3) {
  text-align: right;
  padding-right: 4px;
}

.page-isr-resico-fisica .income-table tbody td:nth-child(4),
.page-isr-resico-moral .income-table tbody td:nth-child(4) {
  padding-left: 4px;
}

.page-isr-resico-fisica .isr-table tbody td:nth-child(1),
.page-isr-resico-fisica .isr-table tbody td:nth-child(3) {
  text-align: right;
  padding-right: 4px;
}

.page-isr-resico-fisica .isr-table tbody td:nth-child(2),
.page-isr-resico-fisica .isr-table tbody td:nth-child(4) {
  text-align: center;
  padding-left: 4px;
}

.page-isr-resico-moral .income-table tbody input {
  text-align: center;
  width: 100%;
  min-width: 90px;
}

.page-isr-resico-moral .income-table tfoot th,
.page-isr-resico-moral .isr-table tfoot th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: right;
  padding: 12px 16px;
  color: #0f172a;
}

.page-isr-resico-moral .income-table tfoot .currency,
.page-isr-resico-moral .isr-table tfoot .currency {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-moral .summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.page-isr-resico-moral .summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-isr-resico-moral .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.page-isr-resico-moral .summary-card__icon {
  font-size: 28px;
  line-height: 1;
}

.page-isr-resico-moral .summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-isr-resico-moral .summary-card__label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.page-isr-resico-moral .summary-card__value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.page-isr-resico-moral .summary-card--income {
  border-left: 4px solid #8b5cf6;
}

.page-isr-resico-moral .summary-card--income .summary-card__value {
  color: #7c3aed;
}

.page-isr-resico-moral .summary-card--isr {
  border-left: 4px solid #be123c;
}

.page-isr-resico-moral .summary-card--isr .summary-card__value {
  color: #be123c;
}

.page-isr-resico-moral .summary-card--rate {
  border-left: 4px solid #f59e0b;
}

.page-isr-resico-moral .summary-card--rate .summary-card__value {
  color: #d97706;
}

.page-isr-resico-moral .summary-card--balance {
  border-left: 4px solid #3b82f6;
}

.page-isr-resico-moral .summary-card--balance .summary-card__value {
  color: #2563eb;
}

.page-isr-resico-moral .summary-card--positive .summary-card__value {
  color: #059669 !important;
}

.page-isr-resico-moral .summary-card--negative .summary-card__value {
  color: #be123c !important;
}

.page-isr-resico-moral .income-table thead th {
  background: #f8fafc;
  font-weight: 600;
  text-align: center;
  color: #0f172a;
}

.page-isr-resico-fisica .income-table thead th,
.page-isr-resico-fisica .isr-table thead th,
.page-isr-resico-moral .income-table thead th,
.page-isr-resico-moral .isr-table thead th {
  text-align: center;
}

.page-isr-resico-fisica .income-table thead th:nth-child(1),
.page-isr-resico-fisica .income-table thead th:nth-child(3),
.page-isr-resico-moral .income-table thead th:nth-child(1),
.page-isr-resico-moral .income-table thead th:nth-child(3) {
  text-align: right;
  padding-right: 12px;
}

.page-isr-resico-fisica .isr-table thead th:nth-child(1),
.page-isr-resico-fisica .isr-table thead th:nth-child(3) {
  text-align: right;
  padding-right: 12px;
}

.page-isr-resico-fisica .income-table thead th:nth-child(2),
.page-isr-resico-fisica .income-table thead th:nth-child(4),
.page-isr-resico-moral .income-table thead th:nth-child(2),
.page-isr-resico-moral .income-table thead th:nth-child(4) {
  text-align: center;
}

.page-isr-resico-fisica .isr-table thead th:nth-child(2),
.page-isr-resico-fisica .isr-table thead th:nth-child(4) {
  text-align: center;
}

.page-isr-resico-moral .isr-table thead th {
  background: #f8fafc;
  color: #475569;
}

@media (max-width: 900px) {
  .page-isr-resico-moral .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .page-isr-resico-moral .summary-cards {
    grid-template-columns: 1fr;
  }

  .page-isr-resico-moral .summary-card {
    padding: 16px;
  }

  .page-isr-resico-moral .summary-card__value {
    font-size: 18px;
  }

  .page-isr-resico-moral .income-table,
  .page-isr-resico-moral .isr-table {
    font-size: 12px;
  }

  .page-isr-resico-moral .income-table input,
  .page-isr-resico-moral .isr-table input {
    font-size: 14px;
    min-width: 70px;
    padding: 6px 4px;
  }

  .page-isr-resico-moral .income-table td,
  .page-isr-resico-moral .isr-table td,
  .page-isr-resico-moral .income-table th,
  .page-isr-resico-moral .isr-table th {
    padding: 8px 4px;
  }

  .page-isr-resico-moral #rate-input {
    max-width: 100px;
  }

  .page-isr-resico-moral .tooltip-trigger {
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }

  .page-isr-resico-moral .tooltip-trigger:active::after,
  .page-isr-resico-moral .tooltip-trigger:focus::after {
    opacity: 1;
  }

  .page-isr-resico-moral .tooltip-trigger::after {
    width: 200px;
    max-width: calc(100vw - 40px);
    left: auto;
    right: 0;
    transform: translateY(-100%);
  }
}

.page-salud-financiera .rf-table th {
  background: #be123c;
  color: #fff;
}

.page-salud-financiera .table-wrapper {
  overflow: visible;
}

.page-salud-financiera .rf-table {
  overflow: visible;
}

.page-salud-financiera .rf-table thead th {
  overflow: visible;
  position: relative;
}
.page-salud-financiera .rf-table thead th .tooltip-trigger {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: #be123c;
}
.page-salud-financiera .rf-table thead th .tooltip-trigger:hover {
  background: #fff;
}
.page-salud-financiera .rf-table thead th .tooltip-trigger::after {
  top: auto;
  bottom: -8px;
  left: 0;
  transform: translate(0, 100%);
  z-index: 10000;
  width: 280px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-salud-financiera .rf-group {
  background: #ffe4e6;
  font-weight: 700;
  text-transform: uppercase;
  color: #9f1239;
  overflow: visible;
  position: relative;
}
.page-salud-financiera .rf-group .tooltip-trigger {
  position: relative;
  z-index: 2;
}
.page-salud-financiera .rf-group .tooltip-trigger::after {
  top: auto;
  bottom: -8px;
  left: 0;
  transform: translate(0, 100%);
  z-index: 10000;
  width: 280px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-salud-financiera .rf-formula {
  color: #475569;
  font-size: 13px;
}

.page-salud-financiera .rf-output {
  font-weight: 700;
}

.page-salud-financiera .health-legend {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.page-salud-financiera .health-legend-item {
  display: inline-flex;
  align-items: center;
}

.page-salud-financiera .rf-health-good {
  color: #15803d;
  background: #dcfce7;
}

.page-salud-financiera .rf-health-warning {
  color: #b45309;
  background: #fef3c7;
}

.page-salud-financiera .rf-health-bad {
  color: #be123c;
  background: #ffe4e6;
}

.page-salud-financiera .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
}
.page-salud-financiera .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  opacity: 0.85;
  pointer-events: none;
}
.page-salud-financiera .settings-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-salud-financiera .card .health-legend,
.page-salud-financiera .card .table-wrapper {
  position: relative;
  z-index: 1;
}

.page-salud-financiera .hero-strip {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

@media (max-width: 720px) {
  .page-salud-financiera .hero-strip {
    display: none;
  }

  .page-salud-financiera .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-salud-financiera .settings-hero__img {
    justify-self: center;
  }
}

@media (max-width: 500px) {
  .page-salud-financiera .health-legend {
    padding: 10px 12px;
  }

  .page-salud-financiera .health-legend p {
    font-size: 12px !important;
  }

  .page-salud-financiera .health-legend > div {
    flex-direction: column;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .page-salud-financiera .rf-table th,
  .page-salud-financiera .rf-table td {
    font-size: 11px;
    padding: 6px 4px;
  }

  .page-salud-financiera .rf-formula {
    font-size: 10px !important;
  }

  .page-salud-financiera .rf-group {
    font-size: 10px;
  }

  .page-salud-financiera .grid--3 {
    grid-template-columns: 1fr !important;
  }

  .page-salud-financiera .tooltip-trigger {
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }

  .page-salud-financiera .tooltip-trigger:active::after,
  .page-salud-financiera .tooltip-trigger:focus::after {
    opacity: 1;
  }
}

.page-razones-financieras-alt .rf-table th {
  background: #be123c;
  color: #fff;
}

.page-razones-financieras-alt .rf-group {
  background: #ffe4e6;
  font-weight: 700;
  text-transform: uppercase;
  color: #9f1239;
}

.page-razones-financieras-alt .rf-formula {
  color: #475569;
  font-size: 13px;
}

.page-razones-financieras-alt .rf-output {
  font-weight: 700;
}

.page-razones-financieras-alt .rf-health-good {
  color: #15803d;
  background: #dcfce7;
}

.page-razones-financieras-alt .rf-health-warning {
  color: #b45309;
  background: #fef3c7;
}

.page-razones-financieras-alt .rf-health-bad {
  color: #be123c;
  background: #ffe4e6;
}

.page-razones-financieras-alt .hero-strip {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

@media (max-width: 720px) {
  .page-razones-financieras-alt .hero-strip {
    display: none;
  }

  .page-razones-financieras-alt .settings-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-razones-financieras-alt .settings-hero__img {
    align-self: center;
    width: min(306px, 100%);
    max-height: 187px;
  }
}

.page-hub {
  --hub-max: 1120px;
}

.page-hub main.app {
  max-width: var(--hub-max);
  margin: 0 auto;
}

.page-hub main.app .app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-hub main.app .app__header .branding {
  flex: 1 1 520px;
  min-width: 280px;
}

.page-hub main.app .app__header h1 {
  margin-bottom: 0;
}

.page-hub .hub-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 1100px) {
  .page-hub .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-hub .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hub .hub-grid {
    gap: 12px;
  }

  .page-hub .hub-card .card {
    padding: 16px;
  }

  .page-hub .hub-actions {
    flex-direction: column;
  }

  .page-hub .hub-btn {
    width: 100%;
    text-align: center;
  }

  .page-hub .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .page-hub .copywrite-text {
    text-align: center;
    min-width: auto;
    width: 100%;
  }

  .page-hub .social-info {
    align-items: center;
    width: 100%;
  }

  .page-hub .social-info > div {
    padding-right: 0;
  }

  .page-hub .scroll-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
  }

  .page-hub #scrollUp {
    width: 36px;
    height: 36px;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
    line-height: 36px;
  }
}

.page-hub .hub-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-hub .hub-card:hover {
  transform: translateY(-4px);
}

.page-hub .hub-card .card {
  height: 100%;
  border: 2px solid #fbbf24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  padding: 16px;
}

.page-hub .hub-card:hover .card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #f59e0b;
  background: #fff7ed;
}

.page-hub .hub-card .card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hub .hub-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #f59e0b;
  font-size: 36px;
  transition: all 0.3s ease;
  border: 2px solid #fbbf24;
}

.page-hub .hub-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: #f59e0b;
  display: block;
}

.page-hub .hub-card:hover .hub-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
}

.page-hub .hub-card:hover .hub-card-icon svg {
  stroke: #d97706;
}

.page-hub .hub-card .card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  text-align: center;
}

.page-hub .hub-card .card .muted {
  flex: 1;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}

.page-hub .hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.page-hub .hub-badge strong {
  color: #0f172a;
}

.page-hub .hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.page-hub .hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  color: #0f172a;
  text-decoration: none;
}

.page-hub .hub-link:hover {
  background: #f8fafc;
}

.page-hub .hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.page-hub .hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 40px;
  min-width: 140px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-hub .hub-btn:hover {
  background: #f8fafc;
}

.page-hub .hub-btn--primary {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.page-hub .hub-btn--primary:hover {
  background: #15803d;
  border-color: #15803d;
}

.page-hub .hub-btn--excel {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.page-hub .hub-btn--excel:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.page-hub .hub-btn--two-lines {
  flex-direction: column;
  line-height: 1.4;
}
.page-hub .hub-btn--two-lines span,
.page-hub .hub-btn--two-lines strong {
  display: block;
}

.page-hub .hub-title-link {
  color: inherit;
  text-decoration: none;
}

.page-hub .hub-title-link:hover {
  text-decoration: underline;
}

.page-hub .macro-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page-hub .macro-modal-overlay.show {
  display: flex;
}

.page-hub .macro-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-hub .macro-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.page-hub .macro-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.page-hub .macro-modal__icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.page-hub .macro-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  text-align: center;
}

.page-hub .macro-modal__message {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
}
.page-hub .macro-modal__message p {
  margin: 0 0 10px;
}
.page-hub .macro-modal__message p:last-of-type {
  margin-bottom: 0;
}
.page-hub .macro-modal__message ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.page-hub .macro-modal__message li {
  margin-bottom: 6px;
}

.page-hub .macro-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.page-hub .macro-modal__btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-hub .macro-modal__btn--primary {
  background: #0f172a;
  color: #fff;
}

.page-hub .macro-modal__btn--primary:hover {
  background: #111827;
}

.page-hub .macro-modal__btn--secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.page-hub .macro-modal__btn--secondary:hover {
  background: #e2e8f0;
}

@media (max-width: 640px) {
  .page-hub .macro-modal {
    padding: 24px;
    margin: 20px;
  }

  .page-hub .macro-modal__title {
    font-size: 18px;
  }

  .page-hub .macro-modal__message {
    font-size: 14px;
  }
}

.video-section {
  margin-top: 24px;
}

.video-section__embed {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.video-section__embed video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-section__pdf-wrap {
  max-width: 100%;
  width: 100%;
  height: 420px;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.video-section__pdf {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.actions--footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.glossary-section {
  padding: 32px 20px 40px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.glossary-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.glossary-section__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.glossary-section__intro {
  margin: 0 0 20px;
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
}

.glossary-search {
  margin-bottom: 20px;
}

.glossary-search__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.glossary-search__input {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 12px 16px 12px 40px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px 50%;
  background-size: 20px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glossary-search__input::placeholder {
  color: #94a3b8;
}

.glossary-search__input:hover {
  border-color: #cbd5e1;
}

.glossary-search__input:focus {
  outline: none;
  border-color: #B8860B;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
}

.glossary-letter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50%;
  border: 2px solid #B8860B;
  background: #fff;
  color: #B8860B;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.glossary-letter-btn:hover {
  background: #F5E6B3;
  color: #8B6914;
  border-color: #8B6914;
  transform: translateY(-1px);
}

.glossary-letter-btn.is-active {
  background: #B8860B;
  color: #fff;
  border-color: #B8860B;
}

.glossary-letter-btn--all {
  min-width: auto;
  padding: 0 16px;
  border-radius: 20px;
}

.glossary-terms {
  margin: 0;
  padding: 0;
  list-style: none;
}

.glossary-terms dt,
.glossary-terms dd {
  margin: 0;
}

.glossary-terms dt.is-hidden,
.glossary-terms dd.is-hidden {
  display: none;
}

.glossary-term__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #5C4A1A;
  margin-top: 20px;
  padding: 12px 16px;
  padding-left: 20px;
  background: #fff;
  border-left: 4px solid #B8860B;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(184, 134, 11, 0.15);
  letter-spacing: 0.01em;
}

.glossary-terms dt.glossary-term__name:first-of-type {
  margin-top: 0;
}

.glossary-term__def {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-top: 0;
  padding: 14px 16px 18px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #B8860B;
}

.glossary-empty {
  margin: 16px 0 0;
  padding: 16px 20px;
  font-size: 15px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.glossary-empty.is-hidden {
  display: none;
}

.glossary-section__link {
  margin: 0;
}

.glossary-section__link a {
  font-weight: 600;
  color: #be123c;
  text-decoration: none;
}

.glossary-section__link a:hover {
  text-decoration: underline;
}

.page-isr [hidden] {
  display: none !important;
}

.page-isr .settings-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
  min-height: 120px;
}
.page-isr .settings-hero__img {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  justify-self: end;
  width: min(306px, 100%);
  max-height: 187px;
  opacity: 0.85;
  pointer-events: none;
}
.page-isr .settings-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-isr .card .table-wrapper {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .page-isr .settings-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-isr .settings-hero__img {
    justify-self: center;
  }
}

.page-isr .isr-selector {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-isr .isr-selector__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .page-isr .isr-selector__cards {
    grid-template-columns: 1fr;
  }
}

.page-isr .isr-selector__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font: inherit;
}

.page-isr .isr-selector__card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-isr .isr-selector__card strong {
  font-size: 1.1rem;
}

.page-isr .isr-selector__card .muted {
  font-size: 13px;
  line-height: 1.4;
}

.page-isr .isr-selector__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
  transition: all 0.3s ease;
}

.page-isr .isr-selector__icon svg {
  width: 32px;
  height: 32px;
  stroke: #f59e0b;
  display: block;
}

.page-isr .isr-selector__card:hover .isr-selector__icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
}

.page-isr .isr-selector__card:hover .isr-selector__icon svg {
  stroke: #d97706;
}

.page-isr .isr-rate-block {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
}

.page-isr .isr-rate-block .label-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-isr .link-ghost {
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
}

.page-isr .link-ghost:hover {
  color: #0f172a;
  text-decoration: underline;
}

.disclaimer-inline {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  padding: 16px 20px;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 0 auto;
}
