
@media only screen and (max-width : 1920px) {
   header, main, footer {
       padding-left: 20px;
      }
  }

.configuracion-card {
  max-width: 900px;
  margin: 0 auto;
}

.configuracion-color {
  width: 65px;
  padding: 2px;
}

.configuracion-preview {
  border: 1px solid #ddd;
  border-radius: 6px;
  min-height: 190px;
  padding: 20px;
  background: #fafafa;
}

.configuracion-preview img {
  display: block;
  width: auto !important;
  max-width: 260px !important;
  height: 115px !important;
  max-height: 115px !important;
  margin: 0 auto 14px !important;
  object-fit: contain !important;
}

.logo-sistema-menu {
  display: block;
  width: 195px !important;
  max-width: 195px !important;
  height: 75px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.side-nav .logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  overflow: visible !important;
}

.side-nav .logo-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.side-nav .logo-sistema-menu {
  transform: scale(1.7);
  transform-origin: center center;
}

.logo-sistema-inicio {
  display: block;
  width: 300px !important;
  max-width: 100%;
  height: 145px !important;
  margin: 12px auto 14px !important;
  object-fit: contain;
}

.titulo-bienvenida {
  margin: 0 0 8px !important;
}

.subtitulo-bienvenida {
  margin: 0 !important;
}

.logo-sistema-login {
  display: block;
  width: 300px !important;
  height: 190px !important;
  padding: 0;
  margin: 0 auto -10px !important;
  object-fit: contain;
}

.configuracion-preview p {
  margin: 0;
  color: var(--color-principal, #0d47a1);
  font-weight: 600;
}

body .btn-primary,
body .btn-default {
  background-color: var(--color-principal, #0d47a1) !important;
}

body.modo-oscuro {
  background: #1d2125;
  color: #e9ecef;
}

body.modo-oscuro main,
body.modo-oscuro .card,
body.modo-oscuro .modal-content,
body.modo-oscuro .configuracion-preview {
  background: #272c31;
  color: #e9ecef;
}

body.modo-oscuro .form-control,
body.modo-oscuro .custom-select {
  background: #343a40;
  color: #fff;
  border-color: #59636d;
}

/* Keep the order customer search and its actions visually as one control. */
.cliente-picker-input-group {
  flex-wrap: nowrap;
  align-items: stretch;
}

.cliente-picker-input-group > .input-group-prepend,
.cliente-picker-input-group > .input-group-append {
  display: flex;
  margin: 0;
}

.cliente-picker-input-group > .input-group-prepend > .input-group-text {
  width: 32px;
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
  border-radius: .25rem 0 0 .25rem;
}

.cliente-picker-input-group > #buscarClienteOrden {
  min-width: 0;
  height: auto;
  margin: 0;
  border-radius: 0;
}

.cliente-picker-actions > .cliente-picker-button {
  min-width: 42px;
  margin: 0;
  padding: .375rem .65rem;
  border: 1px solid #ced4da;
  border-left: 0;
  border-radius: 0;
  background: #fff;
  color: #495057;
  box-shadow: none;
}

.cliente-picker-actions > .cliente-picker-button:hover,
.cliente-picker-actions > .cliente-picker-button:focus {
  border-color: #adb5bd;
  background: #f1f3f5;
  color: #343a40;
  box-shadow: none;
}

.cliente-picker-actions > #btnDesplegarClientesOrden {
  width: 28px;
  min-width: 28px;
  padding-right: 0;
  padding-left: 0;
  border-radius: 0 .25rem .25rem 0;
}

#resultadosBusquedaCliente {
  width: 100%;
  margin-left: 0;
}

#resultadosBusquedaCliente .list-group-item {
  padding: .3rem .75rem;
  line-height: 1.2;
}

.cliente-picker-select-indicator {
  display: inline-flex;
  width: 10px;
  height: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  vertical-align: middle;
}

.cliente-picker-select-indicator::before,
.cliente-picker-select-indicator::after {
  width: 0;
  height: 0;
  content: "";
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.cliente-picker-select-indicator::before {
  border-bottom: 4px solid #495057;
}

.cliente-picker-select-indicator::after {
  border-top: 4px solid #495057;
}

.cliente-registro-link {
  margin: 0 0 .5rem;
  padding: .45rem .8rem;
}

#seleccionarCliente[hidden] {
  display: none !important;
}

body.modo-oscuro .cliente-picker-actions > .cliente-picker-button {
  background: #343a40;
  color: #e9ecef;
  border-color: #59636d;
}

body.modo-oscuro .cliente-picker-select-indicator::before {
  border-bottom-color: #e9ecef;
}

body.modo-oscuro .cliente-picker-select-indicator::after {
  border-top-color: #e9ecef;
}

/* Keep the order expand control compact so the order code starts near the left edge. */
.tablaOrdenes > thead > tr > th:first-child,
.tablaOrdenes > tbody > tr:not(.child) > td:first-child {
  width: 28px !important;
  min-width: 28px;
  max-width: 28px;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.tablaOrdenes > thead > tr > th:nth-child(2),
.tablaOrdenes > tbody > tr:not(.child) > td:nth-child(2) {
  padding-left: 10px !important;
  text-align: left !important;
  white-space: nowrap;
}

.tablaOrdenes > tbody > tr.child > td {
  padding-right: 28px !important;
}
