/*
*
* ==========================================
* CUSTOM UTIL CLASSES
* ==========================================
*
*/

.vertical-nav {
  min-width: 270px;
  width: 270px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 3px 56px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
  overflow-y: auto;
}

.page-content {
  width: calc(100% - 270px);
  height: auto;
  min-height: calc(100vh - 136px);
  margin-left: 270px;
  transition: all 0.4s;
  background: white;
}

.footer {
  height: 80px;
}

/* for toggle behavior */

#sidebar.active {
  margin-left: -17rem;
}

#content.active {
  width: 100%;
  margin-left: 0rem;
}



.btn-primary {
  background-color: #282C58;
  border-color: #282C58;
  transition-duration: .3s;
  transition-property: transform;
  transition-timing-function: ease-out;
}
.btn-primary:hover {
  background-color: #282C58;
  border-color:1px solid #ced4da;
  transform: translateY(-4px);
}

.my-login-button {
  background: #DDAF0B;
  transition: 0.2s all;
  font-weight: bold;
  border-radius: 20px;
}

.my-login-button:hover {
  background: #DDAF0B;
  font-weight: bold;
}

.card-body .king-button {
  transition-duration: .3s;
  transition-property: transform;
  transition-timing-function: ease-out;
}
.king-button {
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 700;
  fill: #0C0E0D;
  color: #0C0E0D;
  background-color: #FEC90C;
  border-radius: 20px;
  transition-duration: 1s;
  border: 1px solid #FEC90C;
}

.king-button:hover {

  color: #0C0E0D;
  transform: translateY(-4px);
  background-color: #FEC90C;
  border: 1px solid #ced4da;
}

.btn-white {
    border: 1px solid #ced4da;
}

.modal-xxl {
  max-width: 1100px;
}


.my-separator {
  margin-top: -30px;
}

.my-separator span {
  background: white;
  padding-right: 10px;
}

.my-checkbox-form + .invalid-feedback {
  display: block !important;
}

table.table td.active {
  background: lightblue;
}

.table {
  background: white;
}

.table-sticky th {
  position: sticky;
  top: -1px;
  background: lightblue;
}

.bg-light-green {
  background: lightgreen !important;
}

.button-blue {
  background: #282C58;

}

.white-bg{
  background: white;
}

.dt-container>.dt-search {
  position: relative;
  left: 83%;
  bottom: 12px;
}
.dt-container>.dt-buttons {
  top: 20px;
  position: relative !important;
}

.custom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Distanță între elemente, similar cu margin */
}

.custom-grid .card-item {
  flex: 1 1 100%; /* Implicit pe ecrane mici: lățime 100% */
}

.min-h-200 {
  min-height: 200px;
}

.box-shadow-prim {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s;
}

.box-shadow-last {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  right: 0;
  bottom: 0;
  left: 0;
}

.h-70 {
  height: 70px;
}

#navbarNavDropdown {
  justify-content: space-between;
}

.br-20 {
  border-radius: 20px;
}

input.form-control, .btn, label.form-control, label.form-control::after, textarea.form-control, select.form-control {
  border-radius: 20px;
}

.border-dotted {
  border-style: dotted;
  border: 2px dotted black;
  background-color: white;
  color: inherit;
  transition-duration: .3s;
  transition-property: transform;
  transition-timing-function: ease-out;
}
.border-dotted:hover {
  border-style: dotted;
  border: 2px dotted black;
  background-color: white;
  color: inherit;

  transform: translateY(-4px);
}
.btn.btn-danger.btn-small {
  transition-duration: .3s;
  transition-property: transform;
  transition-timing-function: ease-out;
}
.btn.btn-danger.btn-small:hover {
  transform: translateY(-4px);
}

.table-responsive {
  margin-top: 30px;
}

.input-group-text {
  border-bottom-left-radius: 20px;
  border-top-left-radius: 20px;
  padding: 0 0.75rem;
}

.w-160 {
  width: 160px;
}

.table-responsive > .dt-container > .row.justify-content-between {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* CSS suplimentar pentru canvas */
#sig-canvas {
  border: 2px dashed #ddd;
  background-color: #fff;
  touch-action: none; /* Pentru evitarea problemelor de scroll pe touch */
}

.no-scroll {
  overflow: hidden;
}
/* search custom pe datatable */
.table-responsive > .dt-container.dt-bootstrap4 > .row.justify-content-between > .col-md-auto.ml-auto:last-child {
    margin-right: auto;
}
.table-responsive > .dt-container.dt-bootstrap4 > .row.justify-content-between > .col-md-auto.ml-auto:last-child > .dt-search > input {
    width: 250px;
}
/* end search custom pe datatable */

@media(max-width: 575.98px) {

  .logo-mobile {
    width: auto;
    height: 70px;
    display: flex;
  }
  .mobile-w-100 {
    width: 100%;
  }

  .font-mobile-bold {
    font-size: 24px;
    margin: 5px;
  }

  .container-mobile {
    padding: 5px!important;
    margin:  5px!important;
    overflow-x: hidden;
  }

  .hidden-sm {
    display: none!important;
  }
  #sidebar {
    margin-left: -17rem;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
    margin: 0;
  }
  #content.active {
    margin-left: 17rem;
    width: calc(100% - 17rem);
  }
  .embed-responsive-4by3 iframe {
    height: auto;
    width: 100%;
  }

  /* #sig-canvas {
    width: 90vw;
    height: 60vh;
  } */
}


@media(min-width: 576px) and (max-width: 767.98px) {
  .hidden-md {
    display: none!important;
  }
  .custom-grid .card-item {
    flex: 1 1 calc(50% - 15px); /* Echivalent cu col-sm-6 */
  }
  .font-mobile-bold {
    font-size: 20px;
    margin: 5px;
  }
  #sidebar {
    margin-left: -17rem;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
    margin: 0;
  }
  #content.active {
    margin-left: 17rem;
    width: calc(100% - 17rem);
  }
  /* #sig-canvas {
    width: 100%;
    height: 400px;
  } */
}

@media(min-width: 768px) and (max-width: 991.98px) {
  .hidden-md {
    display: none!important;
  }

  .custom-grid .card-item {
    flex: 1 1 calc(33.3333% - 15px); /* Echivalent cu col-md-4 */
  }
  .ml-270 {
    margin-left: 270px;
  }
  /* #sig-canvas {
    width: 100%;
    height: 400px;
  } */
}

@media(min-width: 992px) and (max-width: 1199.98px) {
  .hidden-lg {
    display: none!important;
  }
  .custom-grid .card-item {
    flex: 1 1 calc(25% - 15px); /* Echivalent cu col-lg-3 */
  }
  .ml-270 {
    margin-left: 270px;
  }
  /* #sig-canvas {
    width: 100%;
    height: 400px;
  } */
}

@media(min-width: 1200px) {
  .hidden-lg {
    display: none!important;
  }
  .custom-grid .card-item {
    flex: 1 1 calc(25% - 15px); /* Echivalent cu col-lg-3 */
  }
  .ml-270 {
    margin-left: 270px;
  }
  /* #sig-canvas {
    width: 100%;
    height: 400px;
  } */
}

.bootstrap-select.has-error .dropdown-toggle {
  border-color: #dc3545;
}

.bootstrap-select .dropdown-toggle.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Asigură că iconiţa de eroare nu se suprapune cu săgeata dropdown-ului */
.bootstrap-select.show-tick .dropdown-toggle.is-invalid {
  padding-right: calc(2em + 0.75rem);
}