.modal { overflow: auto !important; }

/*
 * Legacy modules frequently set modal widths inline. Keep every dialog inside
 * the viewport, then use the explicit GEO helpers for table-heavy/form modals.
 */
.modal .modal-dialog {
  max-width: calc(100vw - 30px);
}

.geo-modal-table-dialog {
  width: calc(100% - 30px) !important;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.geo-modal-form-dialog {
  width: calc(100% - 30px) !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.geo-modal-table-dialog .modal-content,
.geo-modal-form-dialog .modal-content,
.geo-modal-table-dialog .modal-body,
.geo-modal-form-dialog .modal-body,
.geo-modal-table-dialog .box-body,
.geo-modal-form-dialog .box-body,
.geo-modal-table-dialog .dataTables_wrapper {
  min-width: 0;
  max-width: 100%;
}

.geo-modal-table-wrap,
.modal-body .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fallback for legacy modal DataTables that are not inside table-responsive. */
.modal-body .dataTables_wrapper > .row:nth-child(2) > [class*="col-"] {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.geo-modal-table-dialog table.dataTable th.all,
.geo-modal-table-dialog table.dataTable > tbody > tr > td:last-child:not(.child) {
  white-space: nowrap;
}

.geo-modal-payment-help {
  max-width: calc(100% - 100px);
  padding-top: 7px;
  text-align: left;
}

@media (max-width: 767px) {
  /* Inline width declarations otherwise override Bootstrap's mobile layout. */
  .modal .modal-dialog[style*="width"],
  .modal .modal-dialog.geo-modal-table-dialog,
  .modal .modal-dialog.geo-modal-form-dialog {
    width: auto !important;
    max-width: none !important;
    margin: 10px;
  }

  .geo-modal-table-dialog .modal-body,
  .geo-modal-form-dialog .modal-body {
    padding: 12px;
  }

  .geo-modal-payment-help {
    display: block;
    float: none !important;
    max-width: none;
    margin-bottom: 10px;
    padding-top: 0;
  }
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

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

.dt-body-right {
  text-align: right;
}

#tblCapitulosConsulta .indent-0>td:first-child {
  padding-left: 0px;
}

#tblCapitulosConsulta .indent-1>td:first-child {
  padding-left: 20px;
}

#tblCapitulosConsulta .indent-2>td:first-child {
  padding-left: 40px;
}

#tblCapitulosConsulta .indent-3>td:first-child {
  padding-left: 60px;
}

#tblCapitulosConsulta .indent-4>td:first-child {
  padding-left: 80px;
}

.red-dot {
  position: absolute;
  top: -4px;
  /* Adjusted to align better */
  left: -4px;
  /* Adjusted to align better */
  width: 8px;
  height: 8px;
  background-color: red;
  /* Ensure red color */
  border-radius: 50%;
  display: none;
}

/* Keep long menu labels inside the mini-sidebar flyout instead of overflowing. */
.sidebar-menu .treeview-menu,
.sidebar-menu .treeview-menu > li > a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar-menu .treeview-menu > li > a {
  line-height: 1.3;
  padding-top: 7px;
  padding-bottom: 7px;
}

@media (min-width: 768px) {
  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    width: 300px;
    max-width: calc(100vw - 60px);
    white-space: normal;
  }

  .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
    left: 300px !important;
  }
}

@media (max-width: 767px) {
  .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
  .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    left: auto !important;
    top: auto !important;
    margin-left: 0 !important;
    display: block !important;
  }

  .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
    position: absolute !important;
    float: none !important;
    left: auto !important;
    right: 10px !important;
    top: 50% !important;
    margin-top: -7px !important;
  }

  .sidebar-menu .treeview-menu {
    padding-left: 10px;
  }
}

.main-header .navbar .nav > li.geo-tool-launch-single > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 50px;
  padding: 0;
  color: #eef6fb;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-header .navbar .nav > li.geo-tool-launch-single > a:hover,
.main-header .navbar .nav > li.geo-tool-launch-single > a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main-header .navbar .nav > li.geo-tool-launch-single > a i {
  font-size: 22px;
}

.geo-system-help-modal {
  width: 92%;
  max-width: 1180px;
}

.geo-system-help-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.geo-system-help-modal .modal-header {
  border: 0;
  background: #16324f;
  color: #fff;
}

.geo-system-help-modal .modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}

.geo-system-help-body {
  padding: 16px;
  background: #f5f7fa;
}

.geo-system-help-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 280px);
  gap: 10px;
  margin-bottom: 10px;
}

.geo-system-help-search {
  position: relative;
}

.geo-system-help-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #607284;
  transform: translateY(-50%);
}

.geo-system-help-search .form-control {
  height: 42px;
  border-radius: 8px;
  padding-left: 36px;
  padding-right: 40px;
  border-color: #c9d3dc;
  box-shadow: none;
}

.geo-system-help-clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #607284;
  transform: translateY(-50%);
}

.geo-system-help-clear.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.geo-system-help-clear:hover,
.geo-system-help-clear:focus {
  background: #e3ebf2;
  color: #16324f;
  outline: none;
}

.geo-system-help-clear i {
  position: static;
  transform: none;
}

.geo-system-help-filter .form-control {
  height: 42px;
  border-radius: 8px;
  border-color: #c9d3dc;
  box-shadow: none;
}

.geo-system-help-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 10px;
  color: #607284;
  font-size: 12px;
}

.geo-system-help-meta .btn {
  border-radius: 8px;
}

.geo-system-help-layout {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  gap: 14px;
  min-height: 440px;
}

.geo-system-help-results,
.geo-system-help-detail {
  min-height: 440px;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #fff;
}

.geo-system-help-results {
  padding: 8px;
}

.geo-system-help-result {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 11px 12px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #24384a;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.geo-system-help-result:hover,
.geo-system-help-result:focus,
.geo-system-help-result.is-active {
  border-color: #2c7fb8;
  background: #eef6fb;
  outline: none;
}

.geo-system-help-result-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #607284;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.geo-system-help-result strong {
  display: block;
  margin-bottom: 4px;
  color: #16324f;
  font-size: 14px;
}

.geo-system-help-result span:last-child {
  display: block;
  color: #405568;
  font-size: 12px;
  line-height: 1.4;
}

.geo-system-help-badge {
  display: inline-block;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 8px;
  background: #dff3e4;
  color: #1d6f42;
  font-size: 10px;
  text-transform: none;
}

.geo-system-help-detail {
  padding: 18px;
}

.geo-system-help-detail-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e7ed;
}

.geo-system-help-detail-head span {
  color: #607284;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.geo-system-help-detail-head h3 {
  margin: 5px 0 8px;
  color: #16324f;
  font-size: 22px;
  line-height: 1.2;
}

.geo-system-help-detail-head p {
  margin: 0;
  color: #405568;
  line-height: 1.5;
}

.geo-system-help-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.geo-system-help-keywords span {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #d8e0e7;
  border-radius: 999px;
  background: #f7fafc;
  color: #53687b;
  font-size: 11px;
}

.geo-system-help-section {
  margin-top: 16px;
}

.geo-system-help-section h4 {
  margin: 0 0 8px;
  color: #203d5a;
  font-size: 15px;
  font-weight: 800;
}

.geo-system-help-section ul {
  margin: 0;
  padding-left: 18px;
}

.geo-system-help-section li {
  margin-bottom: 7px;
  color: #2f4355;
  line-height: 1.45;
}

.geo-system-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e1e7ed;
}

.geo-system-help-actions .btn {
  border-radius: 8px;
}

.geo-system-help-empty,
.geo-system-help-placeholder {
  padding: 28px 16px;
  color: #607284;
  text-align: center;
}

.geo-tools-modal {
  width: 96%;
  max-width: 1220px;
}

.geo-tools-modal .modal-content {
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #0f141a;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.geo-tools-modal .modal-header {
  padding: 18px 24px 0 !important;
  border: 0;
  background: transparent !important;
  color: #edf6fd !important;
}

.geo-tools-modal .modal-header .close {
  color: #fff;
  opacity: 0.88;
  text-shadow: none;
}

.geo-tools-modal .modal-title {
  color: #edf6fd;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.geo-tools-modal .modal-footer {
  padding: 0 24px 22px;
  border: 0;
  background: transparent;
}

.geo-tools-modal .modal-footer .btn-default {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.11);
  color: #edf6fd;
  font-weight: 700;
}

.geo-tools-modal-body {
  padding: 0 24px 18px;
  background:
    radial-gradient(circle at 50% -12%, rgba(118, 157, 193, 0.22) 0, rgba(118, 157, 193, 0) 34%),
    radial-gradient(circle at 50% 118%, rgba(63, 89, 114, 0.22) 0, rgba(63, 89, 114, 0) 28%),
    linear-gradient(180deg, #1a2129 0%, #090d12 100%);
}

.geo-tools-shell {
  padding: 8px 0 10px;
}

.geo-calc-toolbar {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.geo-calc-toolbar:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 220px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.geo-tools-tabs {
  display: inline-flex;
  gap: 7px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 16px 32px rgba(0, 0, 0, 0.16);
}

.geo-tools-tabs > li {
  float: none;
  margin: 0;
}

.geo-tools-tabs > li > a {
  margin: 0;
  border: 0 !important;
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: #c2d0dc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geo-tools-tabs > li > a:hover,
.geo-tools-tabs > li > a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.geo-tools-tabs > li.active > a,
.geo-tools-tabs > li.active > a:hover,
.geo-tools-tabs > li.active > a:focus {
  background: linear-gradient(180deg, #f9fbfd 0%, #dfe7ef 100%);
  color: #0d1720;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 20px rgba(0, 0, 0, 0.22);
}

.geo-calculator-content > .tab-pane {
  min-height: 560px;
}

.geo-calc-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 0 28px;
}

.geo-calc-stage:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0) 72%);
  filter: blur(7px);
}

.geo-calc-stage:after {
  content: "";
  position: absolute;
  inset: 0 6% 18px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.geo-calc-device,
.geo-tape-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 34px 34px;
}

.geo-calc-device {
  width: 100%;
  padding: 20px 18px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 26px rgba(0, 0, 0, 0.24),
    0 28px 48px rgba(0, 0, 0, 0.34);
  z-index: 1;
}

.geo-calc-device:before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 18px 18px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0.7;
}

.geo-calc-device:after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 16px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.geo-calc-device-basic {
  max-width: 392px;
  margin: 0 auto;
  transform: rotate(-0.9deg);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 239, 244, 0.98) 24%, rgba(170, 179, 188, 0.98) 74%, #7f8892 100%);
}

.geo-calc-device-scientific {
  max-width: 462px;
  margin: 0 auto;
  transform: rotate(0.5deg);
  background:
    linear-gradient(165deg, rgba(123, 144, 164, 0.95) 0%, rgba(60, 75, 91, 0.98) 30%, #1a232d 100%);
}

.geo-calc-device-tape {
  max-width: 392px;
  transform: rotate(-0.7deg);
  background:
    linear-gradient(165deg, rgba(245, 231, 202, 0.96) 0%, rgba(213, 191, 153, 0.98) 26%, #a18462 72%, #6e5844 100%);
}

.geo-calc-device-top,
.geo-tape-panel-top {
  position: relative;
  z-index: 1;
}

.geo-calc-device-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.geo-calc-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo-calc-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.geo-calc-model {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.geo-calc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
}

.geo-calc-device-basic .geo-calc-brand,
.geo-calc-device-basic .geo-calc-model,
.geo-calc-device-basic .geo-calc-label {
  color: #23303a;
}

.geo-calc-device-basic .geo-calc-model,
.geo-calc-device-basic .geo-calc-label {
  opacity: 0.72;
}

.geo-calc-device-scientific .geo-calc-brand,
.geo-calc-device-scientific .geo-calc-label,
.geo-calc-device-tape .geo-calc-brand {
  color: #f3f8fd;
}

.geo-calc-device-scientific .geo-calc-model,
.geo-calc-device-scientific .geo-calc-label,
.geo-calc-device-tape .geo-calc-model,
.geo-calc-device-tape .geo-calc-label {
  color: rgba(243, 248, 253, 0.68);
}

.geo-calc-device-tape .geo-calc-brand {
  color: #2f2417;
}

.geo-calc-device-tape .geo-calc-model,
.geo-calc-device-tape .geo-calc-label {
  color: rgba(47, 36, 23, 0.68);
}

.geo-calc-topdeck {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 23px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24),
    0 14px 18px rgba(0, 0, 0, 0.16);
}

.geo-calc-device-basic .geo-calc-topdeck {
  background: linear-gradient(180deg, #d4dce3 0%, #b7c0c8 22%, #7f8994 100%);
}

.geo-calc-device-scientific .geo-calc-topdeck {
  background: linear-gradient(180deg, #32414f 0%, #18212a 100%);
}

.geo-calc-display-cluster {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.geo-calc-indicators {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.geo-calc-indicators span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.geo-calc-device-basic .geo-calc-indicators span {
  background: rgba(29, 42, 52, 0.09);
  color: #495864;
}

.geo-calc-device-scientific .geo-calc-indicators span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 243, 249, 0.78);
}

.geo-calc-device-tape .geo-calc-indicators span {
  background: rgba(53, 35, 17, 0.08);
  color: #4c3a28;
}

.geo-calc-solar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-content: stretch;
  padding: 7px;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 8px rgba(0, 0, 0, 0.38);
}

.geo-calc-device-basic .geo-calc-solar,
.geo-calc-device-scientific .geo-calc-solar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #344453 0%, #12181e 100%);
}

.geo-calc-device-tape .geo-calc-solar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #5a4c3d 0%, #241d18 100%);
}

.geo-calc-solar span {
  display: block;
  min-height: 24px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(90deg, #44576b 0, #44576b 6px, #2a3744 6px, #2a3744 12px);
}

.geo-calc-lcd {
  position: relative;
  margin-bottom: 0;
  min-height: 86px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 14px rgba(0, 0, 0, 0.3),
    0 10px 14px rgba(0, 0, 0, 0.18);
}

.geo-calc-device-basic .geo-calc-lcd,
.geo-calc-device-scientific .geo-calc-lcd,
.geo-calc-device-tape .geo-calc-lcd {
  background: linear-gradient(180deg, #1f271b 0%, #12180f 100%);
}

.geo-calc-lcd:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 35%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 2px, rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px),
    linear-gradient(180deg, #dce9b9 0%, #abc279 100%);
  box-shadow:
    inset 0 1px 8px rgba(58, 76, 29, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.geo-calculator-expression {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  min-height: 16px;
  color: #4d592e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-calculator-display {
  position: relative;
  z-index: 1;
  height: 46px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1a2411;
  font-family: "Courier New", monospace;
  font-size: 35px;
  font-weight: 700;
  text-align: right;
  letter-spacing: 0.08em;
  text-shadow: 0 0 1px rgba(52, 65, 24, 0.9);
  pointer-events: none;
}

.geo-keypad,
.geo-tape-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.geo-keypad-basic,
.geo-keypad-tape {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.geo-keypad-scientific {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.geo-calc-keybed {
  position: relative;
  z-index: 1;
  padding: 15px 13px;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 18px rgba(0, 0, 0, 0.28),
    0 10px 16px rgba(0, 0, 0, 0.16);
}

.geo-calc-device-basic .geo-calc-keybed {
  background: linear-gradient(180deg, #7d8892 0%, #4d5660 100%);
}

.geo-calc-device-scientific .geo-calc-keybed {
  background: linear-gradient(180deg, #24303a 0%, #0c1015 100%);
}

.geo-calc-device-tape .geo-calc-keybed {
  background: linear-gradient(180deg, #cab08b 0%, #8f7453 100%);
}

.geo-calc-keybed:before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.geo-key {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: #f3f7fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 5px 0 rgba(8, 12, 16, 0.7),
    0 10px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  outline: none;
}

.geo-key:before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 68%);
  pointer-events: none;
}

.geo-key:focus,
.geo-key:hover {
  filter: brightness(1.04);
}

.geo-key:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 2px 0 rgba(8, 12, 16, 0.7),
    0 5px 8px rgba(0, 0, 0, 0.16);
}

.geo-calc-device-basic .geo-key-number,
.geo-calc-device-scientific .geo-key-number {
  background: linear-gradient(180deg, #424b54 0%, #141b21 100%);
}

.geo-calc-device-basic .geo-key-fn,
.geo-calc-device-scientific .geo-key-fn {
  background: linear-gradient(180deg, #cdd4dc 0%, #98a4af 100%);
  color: #182029;
}

.geo-calc-device-basic .geo-key-action,
.geo-calc-device-scientific .geo-key-action {
  color: #fff4f2;
  background: linear-gradient(180deg, #da5a4d 0%, #8c251d 100%);
}

.geo-calc-device-basic .geo-key-operator,
.geo-calc-device-scientific .geo-key-operator {
  color: #fff7e7;
  background: linear-gradient(180deg, #f3b257 0%, #d57217 100%);
}

.geo-calc-device-basic .geo-key-equals {
  color: #eef7ff;
  background: linear-gradient(180deg, #3f91de 0%, #124f95 100%);
}

.geo-calc-device-scientific .geo-key-equals {
  color: #ecfff7;
  background: linear-gradient(180deg, #33b173 0%, #17623d 100%);
}

.geo-calc-device-tape .geo-key-number {
  color: #21170e;
  background: linear-gradient(180deg, #fff9ef 0%, #d8c2a0 100%);
}

.geo-calc-device-tape .geo-key-fn {
  color: #2f2216;
  background: linear-gradient(180deg, #f0dcc0 0%, #c3a175 100%);
}

.geo-calc-device-tape .geo-key-action {
  color: #fff5f1;
  background: linear-gradient(180deg, #d15b48 0%, #8a2b1e 100%);
}

.geo-calc-device-tape .geo-key-operator {
  color: #fff9ec;
  background: linear-gradient(180deg, #a86a2e 0%, #704112 100%);
}

.geo-calc-device-tape .geo-key-equals {
  color: #f9fff2;
  background: linear-gradient(180deg, #5f9d38 0%, #39621a 100%);
}

.geo-key-fn,
.geo-key-action {
  font-size: 14px;
}

.geo-key-operator,
.geo-key-equals {
  font-size: 24px;
}

.geo-keypad-basic .geo-key:nth-child(-n+4),
.geo-keypad-tape .geo-key:nth-child(-n+4) {
  min-height: 48px;
  height: 48px;
  font-size: 13px;
}

.geo-calc-device-scientific .geo-keypad .geo-key:nth-child(-n+15) {
  min-height: 44px;
  height: 44px;
  font-size: 12px;
  border-radius: 10px;
}

.geo-calc-device-scientific .geo-keypad .geo-key:nth-child(-n+15):before {
  bottom: 7px;
}

.geo-calc-device-scientific .geo-keypad .geo-key:nth-child(n+16) {
  min-height: 56px;
  height: 56px;
}

.geo-key-backspace i {
  font-size: 18px;
}

.geo-key-wide-2 {
  grid-column: span 2;
}

.geo-calc-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
}

.geo-calc-status-row .geo-calc-indicators {
  flex: 1 1 auto;
  justify-content: flex-start;
  margin-top: 0;
}

.geo-calc-status-row .geo-calc-solar {
  width: 118px;
  flex: 0 0 118px;
}

.geo-calc-device-tape .geo-calc-lcd {
  margin-bottom: 14px;
}

.geo-tape-station {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 392px);
  gap: 0;
  align-items: end;
}

.geo-tape-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.geo-tape-actions .geo-key {
  min-height: 50px;
  height: 50px;
  font-size: 13px;
}

.geo-tape-actions .geo-key-equals {
  font-size: 13px;
}

.geo-tape-panel {
  order: 1;
  margin-left: 0;
  margin-right: -26px;
  padding: 20px 46px 0 20px;
  border-radius: 30px 24px 24px 30px;
  background: linear-gradient(180deg, #5c6874 0%, #303b46 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 22px rgba(0, 0, 0, 0.18),
    0 24px 44px rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.geo-calc-device-tape {
  order: 2;
}

.geo-tape-panel:before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.geo-tape-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.geo-tape-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.geo-tape-kicker {
  display: inline-block;
  color: rgba(230, 239, 247, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.geo-tape-title {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.geo-tape-lead {
  margin: 0;
  color: rgba(225, 234, 242, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.geo-tape-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.geo-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0 14px;
  color: #edf6fd;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 16px rgba(0, 0, 0, 0.12);
  transition: filter 0.16s ease, transform 0.16s ease;
}

.geo-mini-btn:hover,
.geo-mini-btn:focus {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.geo-mini-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2f8ed7 0%, #15508e 100%);
}

.geo-tape-paper-slot {
  position: relative;
  height: 26px;
  margin-bottom: -8px;
  z-index: 1;
}

.geo-tape-paper-slot:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 5px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0d1115 0%, #27313b 100%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.geo-tape-paper {
  position: relative;
  max-height: 500px;
  overflow-y: auto;
  margin-top: 0;
  padding: 18px 18px 18px 36px;
  border-radius: 8px 8px 22px 22px;
  background:
    repeating-linear-gradient(
      180deg,
      #fcfbf7 0,
      #fcfbf7 31px,
      #e0e4e8 31px,
      #e0e4e8 32px
    );
  box-shadow:
    inset 0 0 0 1px rgba(122, 138, 153, 0.2),
    0 12px 18px rgba(0, 0, 0, 0.12);
}

.geo-tape-paper:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 2px;
  background: rgba(206, 88, 66, 0.45);
}

.geo-tape-paper:after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 4px;
  width: 10px;
  background: radial-gradient(circle, rgba(183, 190, 198, 0.9) 0 2px, transparent 2.5px) center top / 10px 18px repeat-y;
}

#geoTapeTable {
  margin-bottom: 0;
  background: transparent;
  font-family: "Courier New", monospace;
}

#geoTapeTable thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #3b4958;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 0;
  z-index: 2;
}

#geoTapeTable th,
#geoTapeTable td {
  border-color: rgba(145, 156, 168, 0.22);
}

#geoTapeTable td:last-child,
#geoTapeTable th:last-child {
  text-align: right;
}

.geo-tape-empty td {
  color: #667788;
  text-align: center;
  padding: 32px 16px;
}

@media (max-width: 991px) {
  .geo-tools-modal {
    width: calc(100% - 16px);
    max-width: none;
  }

  .geo-calc-device,
  .geo-tape-panel {
    transform: none;
  }

  .geo-tape-station {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .geo-calc-device-tape,
  .geo-tape-panel {
    order: initial;
  }

  .geo-tape-panel {
    margin-right: 0;
    padding: 20px 20px 0 20px;
    border-radius: 24px;
  }

  .geo-tape-panel {
    margin-left: 0;
    padding-left: 22px;
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .geo-system-help-modal {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .geo-system-help-body {
    padding: 12px;
  }

  .geo-system-help-toolbar {
    grid-template-columns: 1fr;
  }

  .geo-system-help-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .geo-system-help-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .geo-system-help-results,
  .geo-system-help-detail {
    min-height: auto;
    max-height: 38vh;
  }

  .geo-system-help-detail-head h3 {
    font-size: 19px;
  }

  .geo-tools-modal .modal-header {
    padding: 16px 18px 0 !important;
  }

  .geo-tools-modal-body {
    padding: 0 18px 16px;
  }

  .geo-tools-modal .modal-footer {
    padding: 0 18px 18px;
  }

  .main-header .navbar .nav > li.geo-tool-launch-single > a {
    width: 46px;
    height: 50px;
  }

  .geo-tools-shell {
    padding: 6px 0 10px;
  }

  .geo-tools-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .geo-tools-tabs > li {
    flex: 1 1 auto;
  }

  .geo-tools-tabs > li > a {
    padding: 10px 0;
    text-align: center;
  }

  .geo-calculator-content > .tab-pane {
    min-height: auto;
  }

  .geo-calc-display-cluster {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .geo-calculator-display {
    font-size: 27px;
  }

  .geo-key {
    min-height: 52px;
    height: 52px;
    font-size: 18px;
  }

  .geo-keypad-basic .geo-key:nth-child(-n+4),
  .geo-keypad-tape .geo-key:nth-child(-n+4) {
    min-height: 44px;
    height: 44px;
    font-size: 12px;
  }

  .geo-calc-device-scientific .geo-keypad .geo-key:nth-child(-n+15) {
    min-height: 40px;
    height: 40px;
    font-size: 11px;
  }

  .geo-calc-device-scientific .geo-keypad .geo-key:nth-child(n+16) {
    min-height: 50px;
    height: 50px;
    font-size: 18px;
  }

  .geo-tape-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .geo-calc-device,
  .geo-tape-panel {
    border-radius: 22px 22px 28px 28px;
  }

  .geo-calc-device {
    padding: 18px 12px 16px;
  }

  .geo-calc-topdeck,
  .geo-calc-keybed {
    padding-left: 10px;
    padding-right: 10px;
  }

  .geo-calc-device-top {
    gap: 8px;
  }

  .geo-calc-label {
    font-size: 10px;
  }

  .geo-calc-solar span {
    min-height: 18px;
  }

  .geo-calc-lcd {
    min-height: 76px;
    padding: 12px;
  }

  .geo-calculator-expression {
    font-size: 9px;
  }

  .geo-calculator-display {
    height: 40px;
    font-size: 23px;
  }

  .geo-keypad,
  .geo-tape-actions {
    gap: 7px;
  }

  .geo-key {
    min-height: 48px;
    height: 48px;
    font-size: 16px;
  }

  .geo-key-fn,
  .geo-key-action {
    font-size: 11px;
  }
}

/* Guided parametric workflow: keep its three screens visually aligned with
 * GEO's standard light forms while leaving legacy modules untouched. */
.parametric-content-header h1,
.parametric-content-header h1 small {
  color: #333;
}

.parametric-flow-nav {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.parametric-flow-nav .parametric-flow-step {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #d2d6de;
  border-radius: 5px;
  background: #fff;
  color: #455a64;
  text-decoration: none;
}

.parametric-flow-nav a.parametric-flow-step:hover,
.parametric-flow-nav a.parametric-flow-step:focus {
  border-color: #3c8dbc;
  color: #2f6f96;
  box-shadow: 0 1px 4px rgba(60, 141, 188, .18);
}

.parametric-flow-nav .parametric-flow-step.is-active {
  border-color: #3c8dbc;
  background: #eef7fc;
  color: #245f82;
}

.parametric-flow-nav .parametric-flow-step.is-disabled {
  background: #f7f7f7;
  color: #9aa4a9;
}

.parametric-flow-nav .parametric-flow-number {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d2d6de;
  color: #455a64;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.parametric-flow-nav .is-active .parametric-flow-number {
  background: #3c8dbc;
  color: #fff;
}

.parametric-flow-nav strong,
.parametric-flow-nav small {
  display: block;
}

.parametric-flow-nav small {
  margin-top: 2px;
  color: inherit;
}

#parametric-projection-page .parametric-profile-advanced-panel {
  margin: 0;
}

#parametric-projection-page .parametric-profile-advanced-panel .panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 4px 10px;
}

#parametric-projection-page .parametric-profile-advanced-panel .btn-link {
  padding-left: 0;
}

#parametric-projection-page #parametric-profile-json {
  min-height: 420px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 12px;
}

#parametric-system-page {
  color: #333;
  min-height: calc(100vh - 150px);
}

#parametric-system-page .parametric-user-guide-panel {
  margin-bottom: 20px;
  border-color: #d2d6de;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

#parametric-system-page .parametric-user-guide-panel .panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px 12px;
  background: #fff;
}

#parametric-system-page .parametric-user-guide-toggle {
  padding-left: 0;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

#parametric-system-page .parametric-guide-steps {
  margin: 0;
  padding-left: 24px;
}

#parametric-system-page .parametric-guide-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.5;
}

#parametric-system-page .parametric-guide-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #00a65a;
  background: #f5fbf7;
  color: #27633b;
}

#parametric-system-page .parametric-builder-box {
  box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}

#parametric-system-page .parametric-builder-section {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #dfe5e8;
  border-radius: 6px;
  background: #fff;
}

#parametric-system-page .parametric-builder-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

#parametric-system-page .parametric-builder-heading h4 {
  margin: 1px 0 3px;
  color: #2c3b41;
  font-weight: 600;
}

#parametric-system-page .parametric-builder-heading p {
  margin: 0;
  color: #65737e;
}

#parametric-system-page .parametric-section-number {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3c8dbc;
  color: #fff;
  line-height: 32px;
  text-align: center;
  font-weight: 700;
}

#parametric-system-page .parametric-add-button {
  margin-left: auto;
  white-space: nowrap;
}

#parametric-system-page .parametric-builder-card {
  margin-bottom: 14px;
  padding: 14px 14px 3px;
  border: 1px solid #d9e0e4;
  border-left: 4px solid #3c8dbc;
  border-radius: 4px;
  background: #f8fafb;
}

#parametric-system-page .parametric-builder-card:last-child {
  margin-bottom: 0;
}

#parametric-system-page .parametric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 8px;
  color: #2c3b41;
  font-size: 15px;
}

#parametric-system-page .parametric-remove-card {
  padding: 2px 5px;
}

#parametric-system-page .parametric-required-group {
  padding-top: 26px;
  white-space: nowrap;
}

#parametric-system-page .parametric-check-label {
  font-weight: 400;
  cursor: pointer;
}

#parametric-system-page .parametric-check-label input {
  margin-right: 4px;
}

#parametric-system-page .parametric-formula-help {
  margin-bottom: 14px;
}

#parametric-system-page .parametric-hidden-dimension {
  display: none;
}

#parametric-system-page .parametric-advanced-panel {
  margin-bottom: 0;
  border-color: #d2d6de;
}

#parametric-system-page .parametric-advanced-panel .panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 3px 10px;
}

#parametric-system-page .parametric-advanced-panel .btn-link {
  padding-left: 0;
}

#parametric-system-page #parametric-system-json {
  min-height: 360px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 12px;
}

#parametric-system-page .parametric-json-actions {
  margin-top: 10px;
}

#parametric-system-page .form-control {
  border-radius: 4px;
}

@media (max-width: 767px) {
  .parametric-flow-nav {
    display: block;
  }

  .parametric-flow-nav .parametric-flow-step {
    margin-bottom: 8px;
  }

  #parametric-system-page .parametric-builder-section {
    padding: 13px;
  }

  #parametric-system-page .parametric-builder-heading {
    flex-wrap: wrap;
  }

  #parametric-system-page .parametric-add-button {
    width: 100%;
    margin: 8px 0 0;
  }

  #parametric-system-page .parametric-required-group {
    padding-top: 0;
  }
}

/* Generales: agrupación por contexto sin separar el envío de parámetros. */
.generales-page .generales-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 15px 15px 0;
}
.generales-page .generales-grupo {
  border: 1px solid #d9e2e8;
  border-radius: 6px;
  padding: 16px;
  margin: 20px 0;
  min-width: 0;
  scroll-margin-top: 20px;
}
.generales-page .generales-grupo legend {
  width: auto;
  max-width: 100%;
  padding: 0 8px;
  margin: 0;
  border: 0;
  font-size: 17px;
  font-weight: 600;
  color: #28556f;
}
.generales-page .generales-grupo legend .fa { margin-right: 6px; }
.generales-page .generales-campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 24px;
}
.generales-page .generales-campos .form-group { min-width: 0; margin: 0; }
.generales-page .generales-campos label { display: block; }
.generales-page .switch input:focus-visible + .slider { outline: 2px solid #145b8e; outline-offset: 3px; }
.generales-page .generales-campos small { display: block; margin-top: 6px; color: #596970; }
.generales-page .generales-campos .form-control { height: 34px; border-radius: 10px; }
.generales-page .form-row { display: flex; flex-wrap: wrap; }
.generales-page .form-row > .form-group { float: none; flex: 1 1 240px; min-width: 0; }
.generales-page .form-row img { max-width: 100%; height: auto; margin-top: 10px; }
.generales-page .generales-guardar { padding: 16px; background: #f5f8fa; border-top: 1px solid #d9e2e8; }
@media (max-width: 600px) {
  .generales-page .generales-campos { grid-template-columns: minmax(0, 1fr); }
  .generales-page .generales-grupo { padding: 12px; }
  .generales-page .generales-nav .btn { white-space: normal; text-align: left; }
}

/* Pendientes de Logística: una sola barra para la selección, visible al desplazarse. */
#logistica_lote_contenedor { margin-bottom: 12px; }
#logistica_lote_barra {
  padding: 14px 16px;
  border: 1px solid #ccd6df;
  border-left: 5px solid #a9b8c5;
  border-radius: 6px;
  background: #f7f9fb;
}
#logistica_lote_barra .logistica-lote-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: #33495a;
}
#logistica_lote_barra .logistica-lote-cabecera > strong { font-size: 17px; }
#logistica_lote_barra .logistica-lote-contador { margin-left: auto; }
#logistica_lote_barra .logistica-lote-estado { font-weight: 600; }
#logistica_lote_barra .logistica-lote-botones { padding-top: 25px; }
#logistica_lote_barra .form-control,
#logistica_lote_barra .btn { min-height: 42px; }
#logistica_lote_barra .help-block { color: #40586b; }
#logistica_lote_barra.logistica-lote-activa {
  background: #eef7ff;
  border-color: #1769aa;
  box-shadow: 0 4px 16px rgba(24, 67, 100, .22);
}
#logistica_lote_barra.logistica-lote-activa .logistica-lote-cabecera { color: #124f80; }
#logistica_lote_barra.logistica-lote-disponible .logistica-lote-estado {
  padding: 4px 10px;
  border-radius: 4px;
  background: #145c95;
  color: #fff;
}
#logistica_lote_barra #logistica_lote_accion:enabled {
  border: 2px solid #1769aa;
  background: #fff;
  color: #124f80;
  font-size: 16px;
  font-weight: 600;
}
#logistica_lote_barra #logistica_lote_accion:focus {
  outline: 2px solid #124f80;
  outline-offset: 2px;
}
#logistica_lote_barra #btn_logistica_lote_aplicar:enabled { background: #145c95; font-weight: 600; }
#logistica_lote_barra.logistica-lote-fija { position: fixed; z-index: 1030; }
@media (max-width: 991px) {
  #logistica_lote_barra { padding: 10px 12px; }
  #logistica_lote_barra .logistica-lote-botones { padding-top: 10px; }
  #logistica_lote_barra #logistica_lote_ruta_grupo { margin-top: 10px; }
}
@media print {
  #logistica_lote_barra { display: none; }
  #logistica_lote_contenedor { min-height: 0 !important; }
}
