/* Alertes CSS styles */

/* General table styling */
td {
  word-wrap: break-word !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.table th,
.table td {
  padding: 8px;
  font-size: 14px;
  white-space: nowrap;
  text-wrap: balance;
}

.table th {
  text-overflow: inherit;
  width: auto !important;
  min-width: 100px !important;
}

/* Table responsive behavior */
.table-responsive {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

/* Alert styles */
.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.extra-data {
  font-weight: 600;
  color: #0011ff;
}

/* SweetAlert customization */
.swal2-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.swal2-checkbox-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  margin: 5px;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swal2-checkbox-button.checked {
  background-color: #4caf50;
  color: #fff;
  font-weight: bold;
}

.swal2-checkbox-button.checked::before {
  content: "\2713";
  font-size: 20px;
  padding-right: 4px;
  padding-bottom: 4px;
}

.swal2-confirm {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  margin-right: 10px;
}

.swal2-cancel {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
}

.swal2-deny {
  position: absolute;
  top: 0;
  left: 0;
}

.swal2-title {
  font-size: 25px !important;
}

.swal2-container {
  height: 100%;
}

/* Expiry date selection styles */
.expiry-date-selection {
  background-color: #f7f7f7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expiry-date-selection label,
#delAlert {
  font-size: 16px;
  text-align: left;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

.expiry-date-selection input[type="date"],
.expiry-date-selection input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Car data table styles */
.datemasina {
  width: 100%;
  background: #f8ffbb;
}

.datemasina tr td {
  padding: 8px;
  font-size: 13px;
}

.datemasina td:nth-child(1) {
  text-align: left;
  width: 80px;
  padding-left: 31px;
}

.datemasina .butoane {
  text-align: center !important;
  padding-left: 0 !important;
}

.datemasina .spatiu {
  font-weight: 700;
  font-size: 16px;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Other utility styles */
.rowlink::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5em;
}

.blur {
  font-size: 20px;
  color: transparent !important;
  text-shadow: 0 0 8px #000;
}

.extratablu {
  margin-top: -15px;
  margin-left: 7px;
}

/* Table category styles */
.tabrca {
  background-color: black;
  color: yellow;
  width: 226px;
}

.tabrca a {
  color: yellow;
  text-decoration: none;
}

.tabrov a {
  color: yellow;
  text-decoration: none;
}

.tabrov {
  background-color: #464646;
  color: yellow;
  width: 210px;
}

.undername {
  width: 77px;
  background-color: white !important;
}

/* Picker styles */
.picker__select--year {
  padding: 5px !important;
}

.picker__select--month {
  padding: 5px !important;
}

/* Custom container widths */

/*
@media (min-width: 1300px) {
  .container {
    width: 1300px !important;
  }

  .container-custom {
    max-width: 1300px;
  }
}

@media (min-width: 1400px) {
  .container {
    width: 1400px !important;
  }

  .container-custom {
    max-width: 1400px;
  }
}

@media (min-width: 1500px) {
  .container {
    width: 1500px !important;
  }

  .container-custom {
    max-width: 1500px;
  }
}
*/

/* Mobile-specific styles */
@media only screen and (min-width: 768px) {
  .disparetel {
    display: none !important;
  }

  .table.table-striped > tbody > tr > td {
    padding-top: 30px;
  }

  .nrmasina {
    font-size: 19px !important;
    padding: 0 !important;
    padding-top: 27px !important;
  }
}

@media only screen and (max-width: 600px) {
  .swal2-icon {
    margin-bottom: 15px !important;
  }

  #swal2-content .form-control {
    height: 20px;
  }

  .swal2-title {
    font-size: 1.275em;
  }

  .undername {
    width: 39px;
  }

  .tabrca {
    width: 82px;
    font-size: 12px;
  }

  .tabrov {
    width: 82px;
    font-size: 12px;
  }

  .swal2-popup {
    padding: 0.25em !important;
  }

  .swal2-content {
    font-size: 15px !important;
    padding-bottom: 28px;
  }
}

@media only screen and (max-width: 450px) {
  #masini > thead > tr > th:nth-child(1) {
    width: 12px !important;
  }
}

@media (max-width: 767px) {
  .table-responsive .table th {
    width: 41px !important;
  }

  .table th,
  .table td {
    font-size: 12px;
    padding: 5px;
  }

  .table .btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* DataTable overrides */
table.dataTable.no-footer {
  border-bottom: 0 !important;
}
