@import 'https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700';
@font-face {
  font-family: diebel;
  src: url(../fonts/diebel.woff);
}
html,
body {
  background: #f2f3f8;
  color: #3d5170;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  height: 100%;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

/* ---------------------------------------------------
    ICONS STYLE
----------------------------------------------------- */
.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feather-sm {
  width: 13px;
  height: 13px;
}

.feather-md {
  width: 16px;
  height: 16px;
  vertical-align: text-top;
}

.feather-lg {
  width: 18px;
  height: 18px;
  vertical-align: text-top;
}

.feather-spin {
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

/* ---------------------------------------------------
    Colors
----------------------------------------------------- */
.bg-dark-metal {
  background-color: #282a3c;
}

.bg-yellow {
  background-color: #f6aa1c;
}

.bg-green {
  background-color: #17a2b8;
}

.bg-gray {
  background-color: #f2f3f8;
}

.text-dark-metal {
  color: #282a3c;
}

.text-yellow {
  color: #f6aa1c;
}

.text-green {
  color: #17a2b8;
}

.text-grey {
  color: #f2f3f8;
}

/* ---------------------------------------------------
    Buttons
----------------------------------------------------- */
.btn-green {
  color: #fff;
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.btn-green:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-green:not(:disabled):not(.disabled).active,
.btn-green:not(:disabled):not(.disabled):active,
.show > .btn-green.dropdown-toggle {
  color: #fff;
  background-color: #00899f;
  border-color: #00566c;
}

/* ---------------------------------------------------
    Fonts
----------------------------------------------------- */

.font-diebel {
  font-family: Diebel;
}

/* ---------------------------------------------------
    LOADER STYLE
----------------------------------------------------- */
/*#loader {*/
/*  border: 3px solid #f3f3f3;*/
/*  border-radius: 50%;*/
/*  border-top: 3px solid #17a2b8;*/
/*  width: 50px;*/
/*  height: 50px;*/
/*  -webkit-animation: spin 1.5s linear infinite;*/
/*  animation: spin 1.5s linear infinite;*/
/*}*/

/*@-webkit-keyframes spin {*/
/*  0% { -webkit-transform: rotate(0deg); }*/
/*  100% { -webkit-transform: rotate(360deg); }*/
/*}*/

/*@keyframes spin {*/
/*  0% { transform: rotate(0deg); }*/
/*  100% { transform: rotate(360deg); }*/
/*}*/

#loader-overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Black background with opacity */
  z-index: 1200; /* Specify a stack order in case you're using a different order for other elements */
}

.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1201;
  margin: -40px 0 0 -40px;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #17a2b8;
  width: 80px;
  height: 80px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------
    ALERT STYLE
----------------------------------------------------- */
.alert-messages {
  z-index: 1070;
}
.msg {
  display: none;
  height: 70px;
  line-height: 55px;
  vertical-align: middle;
}

/* ---------------------------------------------------
    LOGIN STYLE
----------------------------------------------------- */

.form-signin {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  margin: 0 auto;
}

/* ---------------------------------------------------
    NAVBAR STYLE
----------------------------------------------------- */

.navbar {
  padding: 0;
  height: 70px;
  background: #282a3c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  height: 70px;
  width: 250px;
  padding-left: 20px;
  /* background: #282a3c; */
  color: #cfd2da;
  font-family: Diebel;
  font-size: 1.1rem;
  outline: none;
}
.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

/* .navbar-nav .dropdown-menu {
  position: absolute;
} */

#navbarDropdown {
  font-size: 1.1rem;
  color: #cfd2da;
  padding: 0 20px;
  height: 70px;
  outline: none;
}

#navbarDropdown:hover,
#navbarDropdown:focus {
  color: #fff;
}

#navbarDropdown::after {
  display: none;
}

#navLinks .nav-link {
  padding: 12px 15px;
  color: #cfd2da;
  outline: none;
  font-size: 1.02rem;
}

#navLinks .nav-link .feather {
  margin-right: 5px;
  color: #51586a;
  width: 18px;
  height: 18px;
  vertical-align: text-top;
}

#navLinks .nav-link:hover {
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  background-color: #292b3a;
}

#navLinks .nav-link:hover .feather {
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  color: #9ea5b7;
}

#navLinks .nav-link.active {
  /* background-color: #292b3a; */
  color: #fff;
}

#navLinks .nav-link.active .feather {
  color: #f6aa1c;
}

#navLinks .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
}

#navLinks .dropdown-menu {
  background-color: #282a3c;
  border: 1px solid #35384d;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  min-width: 12rem;
}

#navLinks .dropdown-menu .dropdown-item {
  padding: 0.5rem 0.875rem;
  color: #cfd2da;
  line-height: 1.5;
  border-radius: 0.375rem;
}

#navLinks .dropdown-menu .dropdown-item .feather {
  width: 16px;
  height: 16px;
  margin-right: 0.625rem;
  color: #51586a;
  flex: 0 0 auto;
}

#navLinks .dropdown-menu .dropdown-item:hover,
#navLinks .dropdown-menu .dropdown-item:focus {
  color: #fff;
  background-color: #292b3a;
}

#navLinks .dropdown-menu .dropdown-item:hover .feather,
#navLinks .dropdown-menu .dropdown-item:focus .feather {
  color: #9ea5b7;
}

#navLinks .dropdown-menu .dropdown-item.active {
  color: #fff;
  background-color: #282a3c;
}

#navLinks .dropdown-menu .dropdown-item.active .feather {
  color: #f6aa1c;
}

.overlay {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
  /* width: calc(100% - 250px); */
  width: 100%;
  padding: 30px;
  min-height: calc(100% - 70px);
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 70px;
}

.card-small {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  border: none;
  border-radius: 10px;
}

.card-header {
  padding: 0 1.25rem;
  height: 4.1rem;
  border-bottom: 1px solid #ebedf2;
}

.card-header:first-child {
  border-radius: 10px 10px 0 0;
}

.card-title {
  font-size: 1.1rem;
  margin: 0;
}

.date-range-btn {
  background: #f2f3f8;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 100px;
}

/* ---------------------------------------------------
    DATATABLE
----------------------------------------------------- */
.table-striped tbody tr:nth-of-type(2n + 1) {
  background-color: rgba(163, 183, 214, 0.1);
}
.table-hover tbody tr:hover {
  background-color: rgba(163, 183, 214, 0.15);
}

.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

/*.dataTables_wrapper .dataTable {*/
/*    width: 100% !important;*/
/*    border-collapse: initial !important;*/
/*    border-spacing: 0 !important;*/
/*    margin: 1rem 0 !important;*/
/*}*/

.dataTables_wrapper .dataTables_paginate .pagination .page-item {
  margin-left: 0.4rem;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item > .page-link {
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  vertical-align: middle;
  height: 2.25rem;
  min-width: 2.25rem;
  vertical-align: middle;
  padding: 0.5rem;
  text-align: center;
  position: relative;
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 400;
  border: none;
}

.dataTables_wrapper .pagination .page-item > .page-link {
  color: #3d5170;
  border: 0;
}

.dataTables_paginate .pagination > li > .page-link:focus {
  box-shadow: none;
}

.dataTables_wrapper .pagination .page-item.active > .page-link {
  background: #17a2b8;
  color: #fff;
}

.dataTables_wrapper .text-right .dataTables_filter,
.dataTables_wrapper .text-left .dataTables_filter {
  display: inline-block;
}

div.dataTables_wrapper div.dataTables_filter input {
  width: 180px !important;
}

#departmentTable_info {
  padding-top: 0.5em;
}

.dataTables_wrapper .pagination .page-item.previous > .page-link,
.dataTables_wrapper .pagination .page-item.next > .page-link,
.dataTables_wrapper .pagination .page-item.last > .page-link,
.dataTables_wrapper .pagination .page-item.first > .page-link {
  background: #ebe9f2;
}

.dataTables_wrapper .pagination .page-item.disabled > .page-link,
.dataTables_wrapper .pagination .page-item.disabled:hover > .page-link {
  opacity: 0.6;
  filter: alpha(opacity=60);
}
.dataTables_wrapper .pagination .page-item:hover > .page-link {
  background: #17a2b8;
  color: #fff;
}

.dataTables_wrapper .dataTables_processing {
  background: none;
  border: none;
}

.table td {
  vertical-align: middle;
  font-weight: 300;
}

.feather-pill {
  line-height: 0;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
}

.btn-pill {
  border-radius: 60px;
}

.btn-icon {
  display: inline-block;
  position: relative;
  padding: 0 !important;
  width: 28px;
  height: 28px;
}

.btn-icon:focus {
  box-shadow: none;
}

.update {
  color: #17a2b8 !important;
}

.update:hover {
  color: #fff !important;
  background-color: #17a2b8 !important;
}

.delete {
  color: #dc3545 !important;
}

.delete:hover {
  color: #fff !important;
  background-color: #dc3545 !important;
}

.view {
  color: #f6aa1c !important;
}

.view:hover {
  color: #fff !important;
  background-color: #f6aa1c !important;
}

.assoc {
  color: #3d5170 !important;
}

.assoc:hover {
  color: #fff !important;
  background-color: #3d5170 !important;
}

table.dataTable.dtr-column > tbody > tr > td.control::before,
table.dataTable.dtr-column > tbody > tr > th.control::before {
  height: auto;
  width: auto;
  margin-top: 0;
  margin-left: 0;
  color: #3d5170;
  border: none;
  box-shadow: none;
  background-color: transparent;
  position: static;
  font-family: inherit;
  font-size: 20px;
  line-height: inherit;
}

.control {
  /*height: 28px;*/
  width: 28px;
}

table.dataTable.dtr-column > tbody > tr.parent td.control::before,
table.dataTable.dtr-column > tbody > tr.parent th.control::before {
  content: '-';
  background-color: transparent;
}

.dot {
  margin-right: 10px;
  height: 10px;
  width: 10px;
  display: inline-block;
  border-radius: 100%;
}

.delete-field:hover,
.delete-choice:hover {
  color: #dc3545 !important;
}

.delete-field:focus,
.delete-choice:focus {
  box-shadow: none;
}

.dt-checkboxes {
  vertical-align: middle;
}

.btn-group-calendar {
  border: var(--bs-border-width) solid var(--bs-border-color);
}

#calendar-navigator .js-month-select {
  flex: 0 0 auto;
  width: 11rem;
}

#calendar-navigator .js-year-select {
  flex: 0 0 auto;
  width: 6rem;
}

/* ---------------------------------------------------
    FORMS
----------------------------------------------------- */

#form .card:hover {
  /*box-shadow: 0 2px 0 rgba(90,97,105,.11),0 4px 8px rgba(90,97,105,.12),0 10px 10px rgba(90,97,105,.06),0 7px 70px rgba(90,97,105,.1);*/
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  cursor: move;
}

#form .choices li:hover {
  background-color: rgba(163, 183, 214, 0.3) !important;
  cursor: move;
}

.field {
  /*box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.3);*/
  /*border-radius: 0;*/
  border: 1px solid #dadce0;
}

#form .choices {
  background: #f2f3f8;
  border: 1px solid #ddd;
}

#form .choices li:nth-child(even) {
  background-color: rgba(163, 183, 214, 0.1);
}

/*Image form container*/
.img-form {
  object-fit: cover;
  width: 100%;
  height: 5vw;
}

.img-form1 {
  width: 100%;
}

/* Celula destinație când ții cardul deasupra ei */
/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 992px) {
  /*Navbar*/
  .navbar {
    background: #282a3c;
  }
  .navbar-brand {
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  .navbar-brand img {
    display: none;
  }
  #navbarToggler {
    font-size: 1.1em;
    color: #cfd2da;
    /* padding: 0 20px; */
    height: 70px;
    outline: none;
  }
  #navbarToggler:hover,
  #navbarToggler:focus {
    color: #fff;
  }

  #navbarDropdown {
    color: #cfd2da;
  }
  #navbarDropdown:hover,
  #navbarDropdown:focus {
    color: #fff;
  }

  #navLinks {
    background: #2c2e3e;
  }

  .overlay.active {
    display: block;
    opacity: 1;
  }

  /*Content*/
  #content {
    padding: 20px;
    width: 100%;
  }

  /*Datatable*/
  .dataTables_wrapper .dataTables_paginate .pagination {
    -moz-justify-content: center !important;
    -ms-justify-content: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }

  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter,
  div.dataTables_wrapper div.dataTables_info,
  div.dataTables_wrapper div.dataTables_paginate {
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate .pagination .page-item:first-child {
    margin-left: 0 !important;
  }

  /*Image form container*/
  .img-form {
    height: 10vw;
  }
}

/* ===========================================================
   SHIFT DETAILS OFFCANVAS - DETALII TURE SI INVOIRI
=========================================================== */

/* Bootstrap Offcanvas Width Customization */
.offcanvas.offcanvas-end {
  width: 450px !important;
}

/* Detalii Shift - Items Layout */
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #6c757d;
}

.detail-value {
  font-weight: 600;
  color: #212529;
}

/* Leave Items - Lista Invoiri */
.leave-item {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  background: white;
  transition: background 0.2s;
}

.leave-item:hover {
  background: #f8f9fa;
}

.leave-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leave-time-range {
  font-weight: 600;
  color: #0d6efd;
  font-size: 0.95rem;
}

.leave-duration {
  font-size: 0.875rem;
  color: #6c757d;
}

.leave-reason {
  font-size: 0.875rem;
  color: #495057;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Empty State - Cand nu exista invoiri */
.empty-leaves-message {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

/* Responsive - Mobile View */
@media (max-width: 768px) {
  .offcanvas.offcanvas-end {
    width: 100% !important;
  }
}
