html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body.gi-nc-page {
  margin: 0;
  background: #f4f7fb;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

body.gi-nc-page form {
  margin: 0;
}

body.gi-nc-page > form,
body.gi-nc-page #dvContenido {
  padding: 12px;
}

body.gi-nc-page #dvContenido > table,
body.gi-nc-page > form > table {
  width: 100% !important;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.gi-nc-page table {
  max-width: 100%;
}

body.gi-nc-page td {
  vertical-align: top;
}

body.gi-nc-page td.tit {
  height: 30px;
  padding: 7px 12px !important;
  background: #18A058 !important;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

body.gi-nc-page td[background] {
  background-image: none !important;
  background-color: #137A32 !important;
}

body.gi-nc-page table[style*="#5a7da7"],
body.gi-nc-page table[style*="background-color: #5a7da7"] {
  background: #eef4fb !important;
  border-top: 1px solid #d5dee9;
  border-bottom: 1px solid #d5dee9;
}

body.gi-nc-page table[style*="#5a7da7"] td,
body.gi-nc-page table[style*="background-color: #5a7da7"] td {
  padding: 6px 8px;
}

body.gi-nc-page input[type="button"],
body.gi-nc-page button {
  min-height: 28px;
  margin: 2px 3px 2px 0;
  padding: 5px 11px;
  border: 1px solid #b8c5d4;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.gi-nc-page input[type="button"]:hover,
body.gi-nc-page button:hover {
  border-color: #ff9700;
  background: #fff6ea;
}

body.gi-nc-page input[type="button"]:disabled,
body.gi-nc-page button:disabled,
body.gi-nc-page input[type="button"][disabled],
body.gi-nc-page button[disabled] {
  border-color: #c9d2dd !important;
  background: #eef2f6 !important;
  color: #7b8794 !important;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
}

body.gi-nc-page input[type="button"]:disabled:hover,
body.gi-nc-page button:disabled:hover,
body.gi-nc-page input[type="button"][disabled]:hover,
body.gi-nc-page button[disabled]:hover {
  border-color: #c9d2dd !important;
  background: #eef2f6 !important;
  color: #7b8794 !important;
}

body.gi-nc-page input[value="Buscar"],
body.gi-nc-page input[value="Grabar"],
body.gi-nc-page input[value="Nuevo"] {
  border-color: #ff9700;
  background: #ff9700;
  color: #ffffff;
}

body.gi-nc-page input[value="Buscar"]:hover,
body.gi-nc-page input[value="Grabar"]:hover,
body.gi-nc-page input[value="Nuevo"]:hover {
  border-color: #ff9700;
  background: #fff6ea;
  color: #1f2933;
}

body.gi-nc-page input[value="Cerrar"],
body.gi-nc-page input[value="Volver"] {
  border-color: #19984f;
  background: #effaf3 !important;
  color: #126b38 !important;
}

body.gi-nc-page select,
body.gi-nc-page input[type="text"],
body.gi-nc-page input[type="password"],
body.gi-nc-page textarea {
  min-height: 26px;
  border: 1px solid #b8c5d4;
  border-radius: 5px;
  background-color: #ffffff !important;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

body.gi-nc-page input[name="tbxFecDesde"],
body.gi-nc-page input[name="tbxFecHasta"],
body.gi-nc-page input[name="tbxFechaNC"],
body.gi-nc-page input[name="tbxFecACI"],
body.gi-nc-page input[name="tbxFecANC"],
body.gi-nc-page input[name="tbxFecACC"],
body.gi-nc-page input[name="tbxFecSEG"] {
  width: 82px !important;
  min-width: 82px;
  padding: 4px 6px;
  font-size: 12px;
  text-align: center;
}

body.gi-nc-page select:focus,
body.gi-nc-page input[type="text"]:focus,
body.gi-nc-page input[type="password"]:focus,
body.gi-nc-page textarea:focus {
  outline: 2px solid rgba(255, 151, 0, 0.25);
  border-color: #ff9700;
}

body.gi-nc-page textarea {
  width: 100% !important;
  max-width: 100%;
  min-height: 112px;
  padding: 8px;
  resize: vertical;
}

body.gi-nc-page table[border="1"] {
  border-color: #d5dee9 !important;
}

body.gi-nc-page table[border="1"] td {
  border-color: #d5dee9 !important;
}

body.gi-nc-page .tittable td,
body.gi-nc-page tr.tittable td {
  padding: 7px 6px;
  background: #e8eef6 !important;
  color: #1f2933;
  font-weight: 700;
}

body.gi-nc-page tr[bgcolor="#A6BBEE"] td {
  background: #dbeafe !important;
}

body.gi-nc-page tr[bgcolor="#CC9966"] td {
  background: #f3d2ad !important;
}

body.gi-nc-page a {
  color: #005ca8;
  font-weight: 700;
}

body.gi-nc-page a:hover {
  color: #ff9700;
}

body.gi-nc-page b,
body.gi-nc-page strong {
  color: #17212f;
}

body.gi-nc-page img {
  max-width: 100%;
}

body.gi-nc-page img.gi-date-icon {
  width: 18px;
  height: 18px;
  margin: 0 4px;
  vertical-align: middle;
  cursor: pointer;
}

.gi-date-picker {
  position: absolute;
  z-index: 9999;
  width: 222px;
  padding: 8px;
  border: 1px solid #b8c5d4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

.gi-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.gi-date-title {
  flex: 1;
  color: #17212f;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.gi-date-picker button {
  min-height: 0;
  margin: 0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}

.gi-date-nav {
  width: 28px;
  height: 26px;
  padding: 0;
}

.gi-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.gi-date-grid > * {
  min-width: 0;
}

.gi-date-week {
  margin-bottom: 5px;
  color: #5a6b7d;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.gi-date-empty {
  height: 25px;
}

.gi-date-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 25px;
  padding: 0;
  border: 1px solid transparent;
  background: #f7fafc;
  color: #1f2933;
}

.gi-date-day:hover {
  border-color: #ff9700;
  background: #fff6ea;
}

.gi-date-day.is-today {
  border-color: #19984f;
}

.gi-date-day.is-selected {
  border-color: #ff9700;
  background: #ff9700;
  color: #ffffff;
}

.gi-date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.gi-date-actions button {
  padding: 5px 7px;
}

body.gi-nc-param-head {
  background: #f4f7fb;
}

body.gi-nc-param-head > form {
  padding: 10px 16px 8px;
}

body.gi-nc-param-detail > form {
  padding: 8px 16px 16px;
}

body.gi-nc-param-empty {
  background: #f4f7fb;
}

body.gi-nc-param-empty > form {
  min-height: 100vh;
  background: #f4f7fb;
}

body.gi-nc-param-head > form > table,
body.gi-nc-param-detail > form > table {
  border-radius: 6px;
  box-shadow: none;
}

body.gi-nc-param-head table[style*="#5a7da7"],
body.gi-nc-param-head table[style*="background-color: #5a7da7"] {
  border-bottom: 0;
}

body.gi-nc-log-page {
  padding: 12px;
  background: #f4f7fb;
}

.gi-log-panel {
  overflow: hidden;
  border: 1px solid #d5dee9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gi-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d5dee9;
  background: #eef4fb;
}

.gi-log-head h1 {
  margin: 2px 0 0;
  color: #17212f;
  font-size: 18px;
  line-height: 1.2;
}

.gi-log-kicker {
  color: #5a6b7d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.gi-log-table {
  width: 100%;
  border-collapse: collapse;
}

.gi-log-table th,
.gi-log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3e9f1;
  text-align: left;
  vertical-align: top;
}

.gi-log-table th {
  background: #ffffff;
  color: #5a6b7d;
  font-size: 11px;
  text-transform: uppercase;
}

.gi-log-table tr:last-child td {
  border-bottom: 0;
}

.gi-log-date {
  width: 110px;
  color: #17212f;
}

.gi-log-date span {
  display: block;
  margin-top: 2px;
  color: #5a6b7d;
}

.gi-log-action {
  color: #1f2933;
}

.gi-log-user {
  width: 170px;
  color: #17212f;
  font-weight: 700;
}

.gi-log-empty {
  padding: 22px 16px !important;
  color: #5a6b7d;
  text-align: center !important;
}

body.gi-nc-attach-page {
  padding: 12px;
  background: #f4f7fb;
}

.gi-attach-panel {
  overflow: hidden;
  border: 1px solid #d5dee9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gi-attach-head {
  padding: 14px 16px;
  border-bottom: 1px solid #d5dee9;
  background: #eef4fb;
}

.gi-attach-head h1 {
  margin: 2px 0 0;
  color: #17212f;
  font-size: 18px;
  line-height: 1.2;
}

.gi-attach-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr);
  gap: 8px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d5dee9;
}

.gi-attach-form label {
  align-self: center;
  color: #17212f;
  font-weight: 700;
}

.gi-attach-form input[type="text"],
.gi-attach-form input[type="file"] {
  width: 100% !important;
}

.gi-attach-upload {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gi-attach-upload input[type="file"] {
  flex: 1 1 auto;
}

.gi-attach-message {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px solid #d5dee9;
  border-radius: 6px;
  background: #f7fafc;
  color: #17212f;
  font-weight: 700;
}

.gi-attach-list {
  max-height: 190px;
  overflow: auto;
}

.gi-attach-list-head {
  padding: 12px 16px 4px;
}

.gi-attach-list-head h2 {
  margin: 0;
  color: #17212f;
  font-size: 14px;
}

.gi-attach-table {
  width: 100%;
  border-collapse: collapse;
}

.gi-attach-table th,
.gi-attach-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e3e9f1;
  text-align: left;
  vertical-align: middle;
}

.gi-attach-table th {
  color: #5a6b7d;
  font-size: 11px;
  text-transform: uppercase;
}

.gi-attach-num {
  width: 48px;
  color: #5a6b7d;
  font-weight: 700;
}

.gi-attach-actions {
  width: 100px;
  white-space: nowrap;
}

.gi-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;
  border-color: #b8c5d4 !important;
  background: #ffffff !important;
}

.gi-icon-action:hover {
  border-color: #ff9700 !important;
  background: #fff6ea !important;
}

.gi-icon-action img {
  max-width: 16px;
  max-height: 16px;
}

@media (max-width: 900px) {
  body.gi-nc-page > form,
  body.gi-nc-page #dvContenido {
    padding: 8px;
  }

  body.gi-nc-page table,
  body.gi-nc-page tbody,
  body.gi-nc-page tr,
  body.gi-nc-page td {
    max-width: 100%;
  }

  body.gi-nc-page select,
  body.gi-nc-page input[type="text"] {
    max-width: 100%;
  }

  body.gi-nc-page input[id^="tbxPer"],
  body.gi-nc-page input[id^="tbxGrp"],
  body.gi-nc-page input[id^="tbxCar"] {
    width: 100% !important;
  }

  .gi-attach-form {
    grid-template-columns: 1fr;
  }

  .gi-attach-upload {
    align-items: stretch;
    flex-direction: column;
  }
}
/* NC ingreso/edicion: tipos de botones */
body.gi-nc-page input#btnNuevo {
  border-color: #b8c5d4 !important;
  background: #ffffff !important;
  color: #1f2933 !important;
}

body.gi-nc-page input#btnNuevo:hover {
  border-color: #ff9700 !important;
  background: #fff6ea !important;
  color: #1f2933 !important;
}

body.gi-nc-page input#btnGrabarEnviar,
body.gi-nc-page input[type="button"][value="Cerrar Caso"] {
  border-color: #ff9700 !important;
  background: #ff9700 !important;
  color: #ffffff !important;
}

body.gi-nc-page input#btnGrabarEnviar:hover,
body.gi-nc-page input[type="button"][value="Cerrar Caso"]:hover {
  border-color: #ff9700 !important;
  background: #fff6ea !important;
  color: #1f2933 !important;
}
/* NC listado: composicion de panel y barras SGI. */
body.gi-nc-list-page > form > table {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.gi-nc-list-page > form > table > tbody > tr > td > table {
  width: 100% !important;
  overflow: hidden;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.gi-nc-list-page > form > table > tbody > tr > td > table > tbody > tr:first-child > td,
body.gi-nc-list-page > form > table > tbody > tr > td > table > tbody > tr:nth-child(2) > td,
body.gi-nc-page #dvContenido > table > tbody > tr > td > table > tbody > tr:first-child > td,
body.gi-nc-page #dvContenido > table > tbody > tr > td > table > tbody > tr:nth-child(2) > td {
  padding: 0 !important;
}

body.gi-nc-list-page > form > table > tbody > tr > td > table > tbody > tr:first-child > td > table,
body.gi-nc-page #dvContenido > table > tbody > tr > td > table > tbody > tr:first-child > td > table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #18A058 !important;
}

body.gi-nc-list-page td[background],
body.gi-nc-page #dvContenido td[background] {
  width: 26px !important;
  min-width: 26px;
  background-color: #137A32 !important;
}

body.gi-nc-list-page td.tit,
body.gi-nc-page #dvContenido td.tit {
  height: 42px;
  padding: 10px 16px !important;
  background: #18A058 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
}

body.gi-nc-list-page table[style*="#5a7da7"],
body.gi-nc-list-page table[style*="background-color: #5a7da7"],
body.gi-nc-page #dvContenido table[style*="#5a7da7"],
body.gi-nc-page #dvContenido table[style*="background-color: #5a7da7"] {
  background: #f7fafc !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d5dee9 !important;
}

body.gi-nc-list-page table[style*="#5a7da7"] td,
body.gi-nc-list-page table[style*="background-color: #5a7da7"] td,
body.gi-nc-page #dvContenido table[style*="#5a7da7"] td,
body.gi-nc-page #dvContenido table[style*="background-color: #5a7da7"] td {
  padding: 8px 10px !important;
}

body.gi-nc-list-page input[value="Cerrar"],
body.gi-nc-page #dvContenido input[value="Volver"] {
  border-color: #18A058 !important;
  background: #effaf3 !important;
  color: #137A32 !important;
}
/* NC ingreso/edicion: composicion de panel y secciones. */
body.gi-nc-edit-page #dvContenido > table {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.gi-nc-edit-page #dvContenido > table > tbody > tr > td > table {
  width: 100% !important;
  overflow: hidden;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body.gi-nc-edit-page #dvContenido > table > tbody > tr > td > table > tbody > tr:first-child > td,
body.gi-nc-edit-page #dvContenido > table > tbody > tr > td > table > tbody > tr:nth-child(2) > td {
  padding: 0 !important;
}

body.gi-nc-edit-page table[style*="background-color: #ffffff"],
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"],
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] {
  width: 100% !important;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  background: #ffffff !important;
}

body.gi-nc-edit-page table[style*="background-color: #ffffff"] td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] td {
  padding: 7px 9px !important;
  border-color: #e3e9f1 !important;
}

body.gi-nc-edit-page table[style*="background-color: #ffffff"] tr:first-child td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] tr:first-child td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] tr:first-child td {
  background: #eef4fb !important;
  color: #17212f;
  font-weight: 700;
}

body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] + table[style*="background-color: #f5fdc8"],
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] + table[style*="background-color: #e0fdf8"] {
  margin-top: 0;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px;
  background: #fbfdff !important;
}

body.gi-nc-edit-page textarea {
  min-height: 86px;
}

body.gi-nc-edit-page input#btnAnular {
  border-color: #d94a3a !important;
  background: #fff4f2 !important;
  color: #9b1c12 !important;
}

body.gi-nc-edit-page input#btnAnular:hover {
  border-color: #d94a3a !important;
  background: #ffe5e0 !important;
  color: #7f1d1d !important;
}

/* NC parametros: paneles sin marco blanco heredado. */
body.gi-nc-param-head > form > table,
body.gi-nc-param-detail > form > table {
  width: 100% !important;
  overflow: hidden;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

body.gi-nc-param-head > form > table > tbody > tr:first-child > td,
body.gi-nc-param-head > form > table > tbody > tr:nth-child(2) > td,
body.gi-nc-param-detail > form > table > tbody > tr:first-child > td {
  padding: 0 !important;
}

body.gi-nc-param-head > form > table > tbody > tr:first-child > td > table,
body.gi-nc-param-detail > form > table > tbody > tr:first-child > td > table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #18A058 !important;
}

body.gi-nc-param-head td[background],
body.gi-nc-param-detail td[background] {
  width: 26px !important;
  min-width: 26px;
  background-color: #137A32 !important;
}

body.gi-nc-param-head td.tit,
body.gi-nc-param-detail td.tit {
  height: 42px;
  padding: 10px 16px !important;
  background: #18A058 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
}

body.gi-nc-param-head table[style*="#5a7da7"],
body.gi-nc-param-head table[style*="background-color: #5a7da7"] {
  background: #f7fafc !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d5dee9 !important;
}

body.gi-nc-param-head table[style*="#5a7da7"] td,
body.gi-nc-param-head table[style*="background-color: #5a7da7"] td {
  padding: 8px 10px !important;
}

body.gi-nc-param-detail > form > table + table,
body.gi-nc-param-detail form > table + table {
  margin-top: 10px;
  border: 1px solid #d5dee9 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
/* NC ingreso/edicion: margen externo homologado con listado. */
body.gi-nc-edit-page > form {
  padding: 0;
}

body.gi-nc-edit-page #dvContenido {
  padding: 12px;
}
/* NC parametros: contraste de barra de leyenda inferior. */
body.gi-nc-param-detail > form > table + table > tbody > tr:first-child > td,
body.gi-nc-param-detail form > table + table > tbody > tr:first-child > td,
body.gi-nc-param-detail > form > table + table > tbody > tr:first-child > td td,
body.gi-nc-param-detail form > table + table > tbody > tr:first-child > td td {
  color: #ffffff !important;
}

/* NC principal: bordes estructurales suaves. */
body.gi-nc-list-page .gi-nc-main-panel {
  border: 1px solid #d7e1ec !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

body.gi-nc-list-page .gi-nc-main-panel > tbody > tr > td,
body.gi-nc-list-page .gi-nc-main-panel > tr > td {
  border: 0 !important;
}

body.gi-nc-list-page .gi-nc-main-panel > tbody > tr + tr > td,
body.gi-nc-list-page .gi-nc-main-panel > tr + tr > td {
  border-top: 1px solid #d7e1ec !important;
}

body.gi-nc-list-page .gi-nc-main-panel > tbody > tr:nth-child(3) > td + td,
body.gi-nc-list-page .gi-nc-main-panel > tr:nth-child(3) > td + td {
  border-left: 1px solid #d7e1ec !important;
}

/* NC ingreso/edicion: marcos estructurales y secciones suaves. */
body.gi-nc-edit-page .gi-nc-edit-main-panel {
  border: 1px solid #d7e1ec !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

body.gi-nc-edit-page .gi-nc-edit-main-panel > tbody > tr > td,
body.gi-nc-edit-page .gi-nc-edit-main-panel > tr > td {
  border: 0 !important;
}

body.gi-nc-edit-page .gi-nc-edit-main-panel > tbody > tr + tr > td,
body.gi-nc-edit-page .gi-nc-edit-main-panel > tr + tr > td {
  border-top: 1px solid #d7e1ec !important;
}

body.gi-nc-edit-page table[style*="background-color: #ffffff"] > tbody > tr > td,
body.gi-nc-edit-page table[style*="background-color: #ffffff"] > tr > td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] > tbody > tr > td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] > tr > td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] > tbody > tr > td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] > tr > td {
  border: 0 !important;
}

body.gi-nc-edit-page table[style*="background-color: #ffffff"] > tbody > tr + tr > td,
body.gi-nc-edit-page table[style*="background-color: #ffffff"] > tr + tr > td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] > tbody > tr + tr > td,
body.gi-nc-edit-page table[style*="background-color: #f5fdc8"] > tr + tr > td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] > tbody > tr + tr > td,
body.gi-nc-edit-page table[style*="background-color: #e0fdf8"] > tr + tr > td {
  border-top: 1px solid #e3e9f1 !important;
}

/* NC parametros: contenedores y separadores suaves. */
body.gi-nc-param-head > form > table,
body.gi-nc-param-detail > form > table {
  border: 1px solid #d7e1ec !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

body.gi-nc-param-head > form > table > tbody > tr > td,
body.gi-nc-param-head > form > table > tr > td,
body.gi-nc-param-detail > form > table > tbody > tr > td,
body.gi-nc-param-detail > form > table > tr > td {
  border: 0 !important;
}

body.gi-nc-param-head > form > table > tbody > tr + tr > td,
body.gi-nc-param-head > form > table > tr + tr > td,
body.gi-nc-param-detail > form > table > tbody > tr + tr > td,
body.gi-nc-param-detail > form > table > tr + tr > td {
  border-top: 1px solid #d7e1ec !important;
}

/* NC parametros: franja verde limpia en grillas maestras. */
body.gi-nc-param-detail .gi-nc-param-table-strip > td {
  height: 24px;
  padding: 0 !important;
  border: 0 !important;
  background: #18A058 !important;
}

/* NC parametros: grilla legible en tablas maestras. */
body.gi-nc-param-detail .gi-nc-param-data-table {
  border: 1px solid #d7e1ec !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

body.gi-nc-param-detail .gi-nc-param-data-table > tbody > tr:not(.gi-nc-param-table-strip) > td,
body.gi-nc-param-detail .gi-nc-param-data-table > tr:not(.gi-nc-param-table-strip) > td {
  border-right: 1px solid #d7e1ec !important;
  border-bottom: 1px solid #d7e1ec !important;
}

body.gi-nc-param-detail .gi-nc-param-data-table > tbody > tr:not(.gi-nc-param-table-strip) > td:last-child,
body.gi-nc-param-detail .gi-nc-param-data-table > tr:not(.gi-nc-param-table-strip) > td:last-child {
  border-right: 0 !important;
}

body.gi-nc-param-detail .gi-nc-param-data-table > tbody > tr:last-child > td,
body.gi-nc-param-detail .gi-nc-param-data-table > tr:last-child > td {
  border-bottom: 0 !important;
}

/* Retorno NC: conserva la paleta verde suave y destaca el borde al hover. */
body.gi-nc-list-page input[value="Cerrar"]:hover,
body.gi-nc-page #dvContenido input[value="Volver"]:hover {
  border-color: #ff9700 !important;
  background: #effaf3 !important;
  color: #137A32 !important;
}

/* NC principal: acciones y retorno en una sola barra. */
body.gi-nc-list-page .gi-nc-main-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.gi-nc-list-page .gi-nc-main-toolbar input[type="button"] {
  margin: 0 !important;
}

body.gi-nc-list-page .gi-nc-main-toolbar-close {
  margin-left: auto !important;
}
/* NC principal: retorno en celda independiente para compatibilidad con tablas legacy. */
body.gi-nc-list-page td.gi-nc-main-toolbar {
  display: table-cell !important;
}

body.gi-nc-list-page td.gi-nc-main-toolbar-close-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

body.gi-nc-list-page .gi-nc-main-toolbar-close {
  margin-left: 0 !important;
}