/* GTD INCOME */
.inanalysis-gtd-income .inanalysis-header {
  text-align: center;
  width: 100%;
  background: #2a3f54;
  color: #fff;
  padding: 1rem;
  border-radius: .25rem .25rem 0 0;
}

.inanalysis-gtd-columns {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.inanalysis-column {
  flex: 1;
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inanalysis-column-title {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2a3f54;

}

.inanalysis-titul{
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
  text-align: center;
}

.inanalysis-rate-type {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: .25rem;
  margin-bottom: .5rem;
}

.inanalysis-formula-text,
.inanalysis-formula-display {
  font-style: italic;
  font-size: .95rem;
  min-height: 1.4em;
  margin: .5rem 0;
  color: #000000;
}

.inanalysis-inputs {
  display: flex;
  gap: .5rem;
  margin: .5rem 0;
}

.inanalysis-inputs label {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: .9rem;
  color: #000000;
}

.inanalysis-inputs input {
  margin-top: .25rem;
  padding: .4rem;
  border: 1px solid #ccc;
  border-radius: .25rem;
}

.inanalysis-result-wrapper {
  display: block;
  margin-top: .75rem;
  font-size: .9rem;
  color: #000000;
}

.inanalysis-result {
  width: 100%;
  margin-top: .25rem;
  padding: .5rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: bold;
  color: #2a3f54;
  pointer-events: none;
}

/* Sub-tabs nav */
.inanalysis-subtabs-nav {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0 1rem;
  background: #f5f7fa;
  border-bottom: 2px solid #ddd;
}

.inanalysis-subtabs-nav li {
  margin: 0;
}

.inanalysis-subtabs-nav button {
  background: transparent;
  border: none;
  padding: .5rem 1rem;
  font-weight: 600;
  color: #2a3f54;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}

.inanalysis-subtabs-nav button.active,
.inanalysis-subtabs-nav button:hover {
  border-color: #2a3f54;
}

/* Save button */
.inanalysis-save-btn {
  display: block;
  margin: 2rem auto;
  padding: .75rem 1.5rem;
  background: #2a3f54;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: .375rem;
  cursor: pointer;
  transition: background .2s;
}

.inanalysis-save-btn:hover {
  background: #1e2e40;
}

/* Currency fields */
.inanalysis-input-rate.inanalysis-currency,
.inanalysis-result.inanalysis-currency {
  text-align: left;
  font-family: monospace;
}


.inanalysis-result {
    background: none !important;
    border: none !important;
    font-weight: 800 !important;
    color: #000000 !important;
    font-size: 2em !important;
    padding: 0 !important;
}

.inanalysis-result-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* por si hay texto suelto */
  flex-wrap: wrap;
}
.inanalysis-result-wrapper .inanalysis-result {
  text-align: center;  /* asegura que el input también centre su valor */
}

.inanalysis-qualifying-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  flex-wrap: wrap;
  flex-direction: column;
}
.inanalysis-qualifying-value {
  width: 14ch;            /* ajusta según cuántos dígitos necesites mostrar */
  min-width: 150px;       /* un ancho mínimo fijo si prefieres */
  height: 1.4em;          /* altura suficiente para tu font-size */
  line-height: 1.2;       /* garantiza que el texto quede centrado verticalmente */
  padding: 0 .2em;        /* un poco de espacio interno para que no raspe el borde */
  box-sizing: border-box; /* incluye padding en el ancho total */
}


.inanalysis-qualifying-value{
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 2em !important;
    padding: 0 !important;
    text-align: center;
}


/*segundo formulario*/
/* OTHER INCOME */
.inanalysis-other-income-header {
  width: 100%;
  background: #2a3f54;
  color: #fff;
  padding: .75rem;
  text-align: center;
  border-radius: .25rem .25rem 0 0;
  font-weight: 600;
}
.inanalysis-other-income-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.inanalysis-other-income-table th,
.inanalysis-other-income-table td {
  border: 1px solid #ddd;
  padding: .5rem;
  text-align: center;
  font-size: .9rem;
}
.inanalysis-other-income-table th {
  background: #f5f7fa;
  font-weight: 600;
}
.inanalysis-other-income-table input,
.inanalysis-other-income-table select {
  width: 100%;
  padding: .25rem;
  box-sizing: border-box;
}
.inanalysis-other-income-table input.inanalysis-currency {
  text-align: left;
}
.inanalysis-add-line-btn {
  display: inline-block;
  margin: .5rem 0;
  padding: .4rem .8rem;
  background: #2a3f54;
  color: #fff;
  border: none;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .9rem;
}
.inanalysis-total-income-container {
  display: flex;
    font-weight: 600;
    
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.inanalysis-total-income-container input {
  width: 170px;
  text-align: left;
}

/* Oculta todas las sub-tabs por defecto */
.inanalysis-subtabs-content .inanalysis-subtab {
  display: none;
}

/* Muestra solo la sub-tab activa */
.inanalysis-subtabs-content .inanalysis-subtab.active {
  display: block;
}

.inanalysis-other-income-table input.inanalysis-other-ytd,
.inanalysis-other-income-table input.inanalysis-other-ytd2,
.inanalysis-other-income-table input.inanalysis-other-ytd3,
.inanalysis-other-income-table input.inanalysis-other-total,
.inanalysis-other-income-table input.inanalysis-other-months,
.inanalysis-other-income-table input.inanalysis-other-monthly,
.inanalysis-other-income-table input.inanalysis-other-text {
  background: none !important;
  border: none !important;
  color: #000 !important;
}

.inanalysis-total-income {
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 2em !important;
    padding: 0 !important;
    text-align: center;
}



.inanalysis-other-income {
  
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.inanalysis-other-income-table th:nth-child(1),
.inanalysis-other-income-table td:nth-child(1) {
  width: 25%;
}

/*tercer formulario*/
/* SCHEDULE C */
.inanalysis-schedule-c-header {
  text-align: center;
  background: #2a3f54;
  color: #fff;
  padding: 1rem;
  border-radius: .25rem .25rem 0 0;
}

.inanalysis-schedule-c-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.inanalysis-schedule-c-table th,
.inanalysis-schedule-c-table td {
  border: 1px solid #ddd;
  padding: .5rem;
  text-align: left;
}

.inanalysis-schedule-c-table th {
  background: #f5f7fa;
  font-weight: 600;
}

.inanalysis-schedule-c-table input {
  
  padding: .25rem;
  box-sizing: border-box;
 
}

.inanalysis-schedule-c-results {
 display: flex;
    gap: 5rem;
    align-items: center;
    margin-top: 1rem;
    justify-content: center;
    background-color: #2a3f54;
    color: #ffffff;
}

.inanalysis-schedule-c-total,
.inanalysis-schedule-c-monthly {
    background: none !important;
    border: none !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 2em !important;
    padding: 0 !important;
    text-align: center;
}


.inanalysis-schedule-c-results label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
      align-items: center;
}



.inanalysis-schedule-c-y1,
.inanalysis-schedule-c-y2 {
  background: none !important;
  border: none !important;
  color: #000 !important;
}

.inanalysis-schedule-c-select-year1,
.inanalysis-schedule-c-select-year2 {
 width: 100%;
}

.inanalysis-schedule-c {
  
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

/*formulario 4*/
.inanalysis-business-miles-header {
  background: #2a3f54;
  color: #fff;
  padding: .75rem;
  text-align: center;
  border-radius: .25rem .25rem 0 0;
  font-weight: 600;
}
.inanalysis-business-miles-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.inanalysis-business-miles-table th,
.inanalysis-business-miles-table td {
  border: 1px solid #ddd;
  padding: .5rem;
  text-align: center;
}
.inanalysis-business-miles-table th span {
  display: block;
  margin-top: .25rem;
  font-size: .8rem;
  font-weight: 400;
}
.inanalysis-business-miles-table select,
.inanalysis-business-miles-table input {
  width: 100%;
  box-sizing: border-box;
  padding: .25rem;
  text-align: center;
}
.inanalysis-business-miles-total {
  display: flex;
    font-weight: 600;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    color: #000000;
}
.inanalysis-business-miles-total input {
  width: 140px;
  text-align: left;
}

.bm-pct1, .bm-amt1, .bm-res1,
.bm-pct2, .bm-amt2, .bm-res2,
.bm-pct3, .bm-amt3, .bm-res3,
.bm-res4, .bm-res5 {
  background: none !important;
  border: none !important;
  color: #000 !important;
}

.bm-total {
  background: none !important;
  border: none !important;
  color: #000 !important;
  font-size: 20px;
    font-weight: 600;
}

.inanalysis-business-miles {
  
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

/*formulario 5*/
/* SCHEDULE E Styles */

.inanalysis-schedule-e-header {
  width: 100%;
  background: #2a3f54;
  color: #fff;
  padding: 0.75rem;
  text-align: center;
  border-radius: 0.25rem 0.25rem 0 0;
  font-weight: 600;
}

.inanalysis-schedule-e-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.inanalysis-schedule-e-table th,
.inanalysis-schedule-e-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.inanalysis-schedule-e-table thead tr:nth-child(1) th {
  background: #f5f7fa;
}

.inanalysis-schedule-e-table thead tr:nth-child(2) th,
.inanalysis-schedule-e-table thead tr:nth-child(3) th {
  background: #eef1f5;
}

.inanalysis-schedule-e-table th select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem;
}

.inanalysis-schedule-e-table input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem;

}

.inanalysis-schedule-e-table input.inanalysis-currency {
  text-align: left;
}

.inanalysis-schedule-e-table th[colspan] {
  text-align: center;
}

.inanalysis-schedule-e-table th:nth-child(1),
.inanalysis-schedule-e-table td:nth-child(1) {
  width: 15%;
}

.inanalysis-schedule-e-table th:nth-child(2),
.inanalysis-schedule-e-table td:nth-child(2),
.inanalysis-schedule-e-table th:nth-child(5),
.inanalysis-schedule-e-table td:nth-child(5) {
  width: 12.5%;
}

.inanalysis-schedule-e-table th:nth-child(3),
.inanalysis-schedule-e-table td:nth-child(3),
.inanalysis-schedule-e-table th:nth-child(6),
.inanalysis-schedule-e-table td:nth-child(6) {
  width: 12.5%;
}

.inanalysis-schedule-e-table th:nth-child(4),
.inanalysis-schedule-e-table td:nth-child(4),
.inanalysis-schedule-e-table th:nth-child(7),
.inanalysis-schedule-e-table td:nth-child(7) {
  width: 12.5%;
}

.inanalysis-schedule-e-table .se-currency-row input {
  text-align: left;
}

/*segunda tabla del quinto formulario*/
/* Grid Layout */
.inanalysis-schedule-e-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.se-grid-main {
  grid-column: span 10;
}
.se-grid-side {
 display: flex;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
}

/* Additional Table */
.se-schedule-e-additional {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.se-schedule-e-additional th,
.se-schedule-e-additional td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}
.se-schedule-e-additional select,
.se-schedule-e-additional input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem;
  text-align: center;
}

.se-schedule-e-additional tr:first-child {
  color: #ffffff;
  background-color: #2a3f54;
}


/* Side Net Rental Income */
.se-grid-side label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}
.se-grid-side input {
  margin-top: 0.5rem;
  text-align: left;
}
 /*ver que rollo*/

 /* Hacer que la tabla principal ocupe las 12 columnas */
.inanalysis-schedule-e-grid > .inanalysis-schedule-e-table {
  grid-column: 1 / -1;
}

/* La tabla adicional sigue dentro de .se-grid-main (span 10) */
.se-grid-main {
  grid-column: span 10;
  margin-top: 0; /* elimina márgenes sobrantes */
}

/* El panel lateral ocupa las 2 columnas restantes */
.se-grid-side {
  grid-column: span 2;
}

/*tercera tabla*/ 
/* Wrapper para la nueva tabla de direcciones */
.se-address-table-wrapper {
  margin-top: 2rem;
}

/* Estilos de la tabla de direcciones */
.se-address-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  border: none;
}

.se-address-table td {
  border:none;
  padding: 0.5rem;
  vertical-align: middle;
  font-size: 0.95rem;
}

/* Anchos según grid de 12 cols: 1ª y 2ª = 2 cols (16.667%), 3ª = 8 cols (66.667%) */
.se-address-table td:nth-child(1) {
  width: 16.67%; /* 2/12 */
}

.se-address-table td:nth-child(2) {
  width: 8.33%; /* 1/12 */
}

.se-address-table td:nth-child(3) {
  width: 75%; /* 9/12 */
}
/* Input de dirección ocupando todo el ancho de su celda */
.se-address-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.95rem;
}

/*magia de arreglo*/
.se-currency-input,
.se-monthly1, .se-monthly2, .se-monthly3, .se-monthly4, .se-monthly5, .se-monthly6,
 .se-res19, .se-res20, .se-res21, .se-sum1, .se-sum2, .se-sum3, .se-sum4, .se-sum5, .se-sum6,
 .se-res13, .se-res14, .se-res15, .se-res16, .se-res17, .se-res18{
  background: none !important;
  border: none !important;
  color: #000 !important;
}

.inanalysis-schedule-e{
  
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.se-address-input{
box-shadow: 0 0 0 transparent;
    border-radius: 3px !important;
    border: 2px solid #12140f !important;
    background-color: #2a3f54 !important;
    color: #ffffff !important;
    }

/* Aplica estilos solo a las dos primeras celdas de cada fila */
.se-address-table tr td:nth-child(-n+2) {
 font-weight: 700;
 color: #000000;
}

/* Asegura que todos los <select> dentro de Schedule E muestren texto negro */
.inanalysis-schedule-e select {
  color: #000 !important;
  border: 1px solid #060606;
}

/* Si quieres también forzar las opciones dentro del desplegable */
.inanalysis-schedule-e select option {
  color: #000;
}


/* Todos los <select> y los <input type="text"> dentro de GTD Income en negro y con borde */
.inanalysis-gtd-income select,
.inanalysis-other-income select,
.inanalysis-business-miles select, 
.inanalysis-schedule-c select,
.inanalysis-gtd-income input[type="text"],
.inanalysis-gtd-income input[type="number"],
.inanalysis-schedule-e input[type="number"] {
  color: #000 !important;
  border: 1px solid #060606;
}


.inanalysis-gtd-income select option,
.inanalysis-other-income select option,
.inanalysis-schedule-c select option,
.inanalysis-business-miles select option {
  color: #000;
}

.se-net-total {
background: none !important;
    border: none !important;
    color: #000 !important;
    font-size: 25px;
    font-weight: 700;
    padding: 0 !important;
}

/*formulario seis*/
/* SELF-EMPLOYMENT With YTD P&L */
.inanalysis-self-employment {
  margin: 1.5rem 0;
}
.inanalysis-self-employment h2 {
  background: #2a3f54;
  color: #fff;
  padding: 0.75rem;
  text-align: center;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
}
.inanalysis-self-employment-table {
  width: 100%;
  border-collapse: collapse;
}
.inanalysis-self-employment-table th,
.inanalysis-self-employment-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}
.inanalysis-self-employment-table input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem;
  
}
.inanalysis-self-employment-table input.inanalysis-currency {
  text-align: left;
}
.inanalysis-self-employment-table select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.25rem;
  color: #000;
}

/* Summary below */
.se-self-summary {
  text-align: center;
  margin-top: 1rem;
}
.se-self-summary-result {
  font-size: 1.25em;
  font-weight: 700;
  border: none;
  background: none;
  text-align: left;
}
 /*la magia*/
 .inanalysis-self-employment{
  
  background: #ffffff;
  padding: 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.se-self-summary-result{
background: none !important;
    border: none !important;
    color: #000 !important;
    font-size: 25px;
    font-weight: 700;
    padding: 0 !important;
}

.se1-income, .se1-months, .se1-result,
.se2-income, .se2-months, .se2-result,
.se3-income, .se3-months, .se3-result,
.se-self-total-income, .se-self-total-months, .se-self-total-result{
  background: none !important;
  border: none !important;
  color: #000 !important;
}



/*general botones B*/
/* Oculta todos los paneles por defecto… */
.inanalysis-b-panel {
  display: none;
}

/* …y sólo muestra el que tenga la clase .active */
.inanalysis-b-panel.active {
  display: block;
}


/* Flex container for the UL holding the tabs and the “+” button */
#inanalysis-borrower-tabs.inanalysis-tabs {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 2px solid #e2e8f0;
}

/* Style for each tab button */
.inanalysis-b-tab {
  background: #ffffff;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #2a3f54;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.inanalysis-b-tab:hover {
  background: #f0f4f8;
}
.inanalysis-b-tab.active {
  background: #2a3f54;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: #2a3f54;
}

/* Style for the “+” button and push it to the right */
.inanalysis-add-tab {
  margin-left: auto;
  background: #2a3f54;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.inanalysis-add-tab:hover {
  background: #1f2d3a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
