.avatar-upload {
  position: relative;
  max-width: 205px;
  margin: 50px auto;
}

.avatar-upload .avatar-edit {
  position: absolute;
  top: 10px;
  right: 75px;
  z-index: 1;
}

.avatar-upload .avatar-edit input {
  display: none;
}

.avatar-upload .avatar-edit input + label {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 100%;
  background: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: normal;
  transition: all 0.2s ease-in-out;
}

.avatar-upload .avatar-edit input + label:hover {
  background: #f1f1f1;
  border-color: #d6d6d6;
}

.avatar-upload .avatar-edit input + label:after {
  content: "\f040";
  font-family: "FontAwesome";
  color: #757575;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  margin: auto;
}

.avatar-upload .avatar-preview {
  width: 7em;
  height: 7em;
  position: relative;
  border-radius: 100%;
  border: 6px solid #f8f8f8;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.avatar-upload .avatar-preview > div {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* datatable */
table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: left !important;
}

div.dt-container .dt-paging .dt-paging-button {
  padding: 0.2em 0.8em !important;
  background-color: #898888;
}

div.dt-container .dt-paging {
  color: white !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  border: 1px solid rgba(167, 166, 166, 0.123) !important;
  background-color: #fef2f2 !important;
  border-radius: 0.2em;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background-color: red !important;
}

div.dt-container .dt-paging .dt-paging-button:active {
  box-shadow: none !important;
}

div.dt-container .dt-search input {
  border: 1px solid #d1d5db;
  border-radius: 7px !important;
  padding: 5px;
  background-color: #f9fafb;
  color: #111827;
  margin-left: 3px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  padding: 0.625rem 1rem;
}

div.dt-container .dt-search input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.125rem rgba(220, 38, 38, 0.25);
}

table.dataTable {
  margin: 0 !important;
}

div.dt-container select.dt-input {
  border-radius: 7px;
  border: 1px solid #aaaaaaa1;
  padding: 5px;
}

.mask-scroll {
  scrollbar-color: transparent transparent;
  scrollbar-width: none;
}

.id_sous_secteur {
  display: none;
}

.id_typePoste {
  display: none;
}
.show_secteur {
  display: block !important;
}

.primary {
  overflow: auto;
  scroll-snap-type: both mandatory;
  /* height: 80vh; */
}

.primary table {
  border-collapse: collapse;
  border: 0;
}

.primary th,
.primary td {
  /* border: 1px solid #aaa; */
  background-clip: padding-box;
  scroll-snap-align: start;
}

.primary tbody tr:last-child th,
.primary tbody tr:last-child td {
  /* border-bottom: 0; */
}

.primary thead {
  z-index: 1000;
  position: relative;
}

.primary th,
.primary td {
  padding: 0.6rem;
  min-width: 6rem;
  text-align: left;
  margin: 0;
}

.primary thead th {
  position: sticky;
  top: 0;
  /* border-top: 0; */
  background-clip: padding-box;
}

.primary thead th.pin {
  left: 0;
  z-index: 1001;
  border-left: 0;
}

.primary tbody th {
  background-clip: padding-box;
  border-left: 0;
}

.primary tbody {
  z-index: 10;
  position: relative;
}

.primary tbody th {
  position: sticky;
  left: 0;
}

.primary tbody th.white {
  background-color: #ffffff;
}

.min-table{
min-width:120px;
}

@media (min-width: 40em) {
  .primary {
    order: 2;
  }
}
