.label {
  padding-right: .5rem;
}

.flashes {
  list-style-type: none;
  padding: 0;
}

.flash-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  margin-bottom: 10px;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 10px;
}

.flash-danger {
  background-color: whitesmoke;
  color: black;
  border: 2px solid orange;
  padding: 10px;
  margin-bottom: 10px;
}


.flash-warning {
  background-color: whitesmoke;
  color: black;
  border: 2px solid orange;
  padding: 10px;
  margin-bottom: 10px;
}

.flash-info {
  background-color: whitesmoke;
  color: black;
  font-weight: bold;
  border: 1px solid white;
  padding: 10px;
  margin-bottom: 10px;
}

table.tabla-forma td {
  vertical-align: top;
}

table.tabla-forma td.label {
  text-align: right;
}

span.asterisco-required {
  padding-left: .5rem;
  color: red;
}

.input-std {
  width: 240px;
}

img.link-caso-imagen {
  background-color: ghostwhite;
  border: 2px solid blue;
  margin: 1rem 0;
  padding: 1rem;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;

}

.flex-container .flex-internal {
  margin-left:
}

/* --- Basic Styles for DataTables Controls --- */

/* The main container for all table controls */
.dataTables_wrapper {
  position: relative;
  clear: both;
  padding: 15px 0;
  /* Add some space around the controls */
}

/* Container for top controls (Show Entries and Search) */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  float: left;
  /* Default DataTables behavior, we'll use Flexbox to improve it */
  text-align: left;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  /* Pushes the search box to the right */
  text-align: right;
}

/* Use Flexbox for better alignment and spacing */
.dataTables_wrapper::before,
.dataTables_wrapper::after {
  content: " ";
  display: table;
}

.dataTables_wrapper::after {
  clear: both;
}

/* Style for the "Show X entries" dropdown */
.dataTables_length label {
  font-weight: normal;
  white-space: nowrap;
}

.dataTables_length select {
  width: auto;
  display: inline-block;
  padding: 4px 8px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}

/* Style for the "Search" input field */
.dataTables_filter label {
  font-weight: normal;
  white-space: nowrap;
}

.dataTables_filter input {
  width: auto;
  display: inline-block;
  padding: 4px 8px;
  margin-left: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Container for bottom controls (Info and Pagination) */
.dataTables_info {
  float: left;
  padding-top: 8px;
  white-space: nowrap;
}

.dataTables_paginate {
  float: right;
  text-align: right;
  padding-top: 4px;
}

/* Individual pagination buttons */
.dataTables_paginate .paginate_button {
  box-sizing: border-box;
  display: inline-block;
  min-width: 1.5em;
  padding: 0.5em 1em;
  margin-left: 2px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: #007bff !important;
  /* Use !important to override inline styles if needed */
  border: 1px solid #dee2e6;
  border-radius: 2px;
  background: #fff;
  transition: all 0.2s ease-in-out;
}

/* Hover state for pagination buttons */
.dataTables_paginate .paginate_button:hover {
  color: #0056b3 !important;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Active (current page) button style */
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
  color: #fff !important;
  background-color: #007bff;
  border-color: #007bff;
}

/* Disabled button style (e.g., "Previous" on page 1) */
.dataTables_paginate .paginate_button.disabled,
.dataTables_paginate .paginate_button.disabled:hover,
.dataTables_paginate .paginate_button.disabled:active {
  color: #6c757d !important;
  pointer-events: none;
  cursor: default;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Style for the table itself to ensure consistency */
table.dataTable {
  width: 100%;
  margin: 0 auto;
  clear: both;
  border-collapse: separate;
  border-spacing: 0;
}

table.dataTable th {
  padding: 10px 18px;
  border-bottom: 2px solid #ddd;
}

table.dataTable td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}