

body {
    font-family: 'Public Sans', 'Almarai', sans-serif !important;
}

/* Select2 Professional Styling */
.select2-container--default .select2-selection--single {
    border: 1px solid #d8d6de !important;
    border-radius: 8px !important;
    height: 44px !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #961111 !important;
    box-shadow: 0 3px 10px 0 rgba(150, 17, 17, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #6e6b7b !important;
    padding-inline-start: 12px !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 10px !important;
}

.select2-dropdown {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #961111 !important;
}

/* Datepicker Professional Styling */
.datepicker.dropdown-menu {
    padding: 15px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
    font-family: 'Public Sans', 'Almarai', sans-serif;
}

.datepicker table tr td.active, .datepicker table tr td.active:hover {
    background-image: none !important;
    background-color: #961111 !important;
    border-radius: 8px !important;
}

.datepicker table tr td.today {
    background-image: none !important;
    background-color: rgba(150, 17, 17, 0.1) !important;
    color: #961111 !important;
    border-radius: 8px !important;
}

/* Form floating outline refinement */
.form-floating-outline .form-control:focus ~ label,
.form-floating-outline .form-control:not(:placeholder-shown) ~ label {
    color: #961111 !important;
}

.form-floating-outline .form-control:focus {
    border-color: #961111 !important;
    box-shadow: 0 3px 10px 0 rgba(150, 17, 17, 0.1) !important;
}

.CodesTable table {
  width: 100%
}

.CodesTable thead {
  width: calc(100%-1em);
}

.CodesTable tbody {
  display: block;
  max-height: 300px;
  overflow-y: auto;
}
  
  .CodesTable thead, .CodesTable tbody tr {
    display: table;
    width: 98%;
    table-layout: fixed;
  }

.CodesTable thead, .CodesTable tbody, .CodesTable td {
  border: none !important;
}

#datatable-responsive {
  width: 100%;
  overflow: auto;
}
.datatable-responsive_wrapper {
  width: 100%;
  overflow: auto;
}
.page-item {
  display: inline-block;
  margin-right: 5px; /* Adjust as needed */
}

.page-link {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

  .page-link:hover {
    background-color: #f0f0f0;
  }

.page-item.disabled .page-link {
  color: #ccc;
  pointer-events: none;
}

.page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.table-responsive {
  overflow-x: auto;
}


.dialog-width {
  width:max-content !important;
}

.button.active {
  background-color: green;
}

.button.not-active {
  background-color: red;
}

.maxcontent{
    width:max-content !important;
}

.myTextBox {
  height: 35px;
  border-radius: 4px;
}


.pagination .page-item .page-link {
  color: rgba(98, 100, 160, 1);
}

.pagination .page-item.active .page-link {
  background-color: #BB7779;
  border-color: #BB7779;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
}
.car-container {
  overflow: hidden; /* Hide overflow content */
}

.car-image {
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.car-container:hover .car-image {
  transform: translateX(100%); /* Adjust this value to control the movement distance */
}

/*Pagination*/
#paginationControls a {
  margin: 0 5px;
  text-decoration: none;
  color: #007bff;
}

  #paginationControls a.disabled {
    pointer-events: none;
    color: #6c757d;
  }

  #paginationControls a.active {
    font-weight: bold;
    text-decoration: underline;
  }

.PagedList-skipToPrevious .waves-effect,
.PagedList-skipToNext .waves-effect {
  width: 40px;
  height: 40px;
  /*  padding: 8px 12px 8px 12px;*/
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1px solid rgba(180, 180, 180, 1) !important;
}
/*.PagedList-skipToFirst,
.PagedList-skipToLast {
    display:none;
}*/
@media(max-width:576px) {
  .CodesTable tbody .form-label {
      font-size:0.5rem;
  }
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.confirm-box {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

  .confirm-box button {
    margin: 5px;
  }
/* خلفيات واضحة للإشعارات */
#toast-container > .toast-success {
  background-color: #28a745 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1 !important;
}

#toast-container > .toast-error {
  background-color: #dc3545 !important;
  color: rgba(0,0,0,0.2) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1 !important;
}

#toast-container > .toast-info {
  background-color: #17a2b8 !important;
  color: #fff !important;
  opacity: 1 !important;
}

#toast-container > .toast-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
  opacity: 1 !important;
}

/* إصلاح التعتيم الذي يضيفه بعض القوالب */
#toast-container > div {
  opacity: 1 !important;
}
