/* === FLIP CARD STYLES === */
.flip-card {
  background-color: transparent;
  width: 220px;
  height: 300px;
  perspective: 1000px;
  margin: 10px auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  cursor: pointer;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.flip-card-front {
  color: #333;
}

.flip-card-front img.profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

.flip-card-back {
  background: #34495e;
  color: white;
  transform: rotateY(180deg);
  font-size: 14px;
  line-height: 1.4;
  padding: 20px;
  box-sizing: border-box;
}

.flip-card-back h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

.flip-card-back p {
  margin: 5px 0;
}

/* === DATATABLES === */
table.dataTable > thead {
  background-color: green;
  color: white;
}

table.dataTable td {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 14px;
}

table.dataTable > thead th {
  padding: 6px;
}

.dataTables_length,
.dataTables_filter {
  margin-left: 10px;
}

table.dataTable tbody tr.selected {
  color: white;
}

.tablas_bajeras > thead {
  background-color: green;
  color: white;
}

div.dataTables_wrapper {
  width: 95%;
  margin: 0 auto;
}

table.table.dataTable > :not(caption) > * > * {
  background-color: #fff;
  color: black;
}

div.dt-buttons {
  float: right;
}

div.dt-buttons > .dt-button {
  font-size: 12px;
  border-radius: 5px;
  padding: 2px 6px;
}

div.dt-buttons > .dt-button1 {
  color: #1f2d3d;
  background: white;
  border-color: #f8f9fa;
  box-shadow: none;
  font-size: 12px;
  font-family: "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
}

div.dt-buttons > .dt-button1:hover:not(.disabled) {
  border: none;
}

/* === TABLAS === */
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #e9ecef;
  padding: 8px 15px;
  white-space: nowrap;
}

.grises {
  background: #e9ecef;
}

/* === LAYOUT / SCROLL === */
#botonera {
  float: right;
}

.card-body {
  box-shadow: 20px 20px 15px rgba(0, 0, 0, 0.3);
}

.modal-open {
  overflow: scroll;
}

.este {
  height: 850px;
  overflow-y: scroll;
}

.sureste {
  height: 450px;
  overflow-y: scroll;
}

.surest2 {
  height: 250px;
  overflow-y: scroll;
}

.reportes_profile {
  height: 300px;
  overflow-y: scroll;
  align-items: center;
}

.fixTableHead,
.fixTableHead2 {
  overflow-y: auto;
  height: 240px;
}

.fixTableHead {
  height: 510px;
}

.fixTableHead3 {
  height: 310px;
  overflow-y: auto;
}

.fixTableHead5 {
  height: 310px;
}

.fixTableHead thead th,
.fixTableHead2 thead th {
  position: sticky;
  top: 0;
}

/* === INPUTS / FORM === */
.input-group-text {
  background-color: white;
  color: black;
}

.form-control:disabled {
  text-align: center;
}

.center_datapiker {
  background: #fff;
  cursor: pointer;
  border: 1px solid #ccc;
  padding-right: 10px;
  padding-left: 10px;
}

/* === GRÁFICOS / FONDOS === */
#wipDetailChart {
  max-height: 220px;
  width: 100% !important;
}

.background-radial-gradient {
  background-image: url("{% static 'img/logo-solo.jpg' %}");
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.container {
  background-image: url("{{ text.picture.url }}");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 2rem;
  opacity: 0.98;
}

/* === TABLE 1 (extra) === */
table-1 {
  margin: 15px;
  padding: 15px;
  width: 500px;
}

tr {
  margin: 5px;
  padding: 5px;
}
/* Por defecto claro */
body {
    background-color: #fff;
    color: #000;
}

/* Dark mode */
body.dark-mode,
body.dark-mode .bg-light,
body.dark-mode .card {
    background-color: #121212 !important;
    color: #eee !important;
}

body.dark-mode a,
body.dark-mode .btn,
body.dark-mode .dt-button1,
body.dark-mode .dt-paging-button {
    color: #90caf9 !important; /* enlaces y botones más visibles */
}
body.dark-mode #reportrange {
    background: #3f474e !important;
    color: #fff !important;

}

body.dark-mode #idUser {
    background: #3f474e !important;
    color: #fff !important;

}

/* ================== DARK MODE: Tablas full dark ================== */
body.dark-mode table.table {
    background-color: #0e0e0e !important;
    color: #f0f0f0 !important;
    border-color: #222 !important;
}

body.dark-mode table.table th {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

body.dark-mode table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #121212 !important;
}

body.dark-mode table.table-striped tbody tr:nth-of-type(even) {
    background-color: #181818 !important;
}

body.dark-mode table.table-striped tbody tr:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}


/* --- Estilos para modo oscuro --- */
body.dark-mode table.table.dataTable > :not(caption) > * > * {
  background-color: #121212 !important;
  color: #f4f4f4 !important;
}

body.dark-mode div.dt-buttons > .dt-button1 {
  color: #f4f4f4 !important;
  background: #121212 !important;
  border-color: #333 !important;
  box-shadow: none;
  font-size: 12px;
  font-family: "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
}


/* === Tamaños de fuente === */
body.font-small {
  font-size: 12px;
}

body.font-normal {
  font-size: 16px;
}

body.font-large {
  font-size: 18px;
}

#bill_to_select.is-invalid {
  border-color: #dc3545 !important;
  background-color: #f8d7da33;
}
.page-item .page-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    min-width: 20px;
}
.page-item.active .page-link {
    background-color: #007bff;
    color: white;
}

.modal-dialog-top-left {
    position: fixed;
    top: 20px;       /* separación desde arriba */
    left: 20px;      /* separación desde la izquierda */
    margin: 0;       /* elimina el margen automático de Bootstrap */
    transform: none; /* evita que se centre automáticamente */
}
