/* https://codeshack.io/secure-login-system-php-mysql/ */

body {
  font-family: 'Calibri', 'Arial', 'sans-serif';
  font-size: 16px;
  margin: 0;
}
.navtop {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  color: #ffffff;
  z-index: 100;
  /* overflow: hidden; */
  background-color: #3b4656;
  background: linear-gradient(135deg, #0067c5, #2c3544);
  height: 40px;
  border: 0;
}
 .navtop div {
  font-size: medium;
  display: flex;
  margin: 0 auto;
  /* width: 800px; */
  height: 100%; 
}
.navtop div h1, .navtop div a , .navtop div h3 {
  display: inline-flex;
  align-items: center;
}
.navtop div h1 {
  flex: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
  color: #ebedee;
  font-weight: normal;
}
.navtop div h3 {
  flex: 1;
  font-size: 18px;
  padding: 0;
  margin: 0;
  color: #ebedee;
  font-weight: normal;
}
.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  /* color: #c4c8cc; */
  font-weight: bold;
}
.navtop div a i {
  padding: 2px 8px 0 0;
}
.navtop div a:hover {
  color: #ebedee;
}
.navtop p {
  padding-left: 20px; /* adjust the value to your desired spacing */
}
.navtop img {
  padding-left: 20px;
  box-sizing: content-box !important;
  /* padding-right: 20px; */
  cursor: pointer;
}
.filter-container {
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 4px;
  background: #3a4655;
  padding: 8px 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.navSearchBox:focus {
  outline: none;
}
.content {
  margin: 0 auto;
  line-height: 1.4;
}
.subtle-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f9f9f9e6;
}
.contentNarrow2 {
  margin: 20;
  padding-left: 40px;
  line-height: 1.4;
}
.contentNarrow {
  margin: 20; 
  line-height: 1.8;
}
.add_more {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 7px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-right: 8px;
  }
.add_more:hover {
  background-color: #45a049;
}

pre {
  overflow-x: scroll;
  line-height: 18px;
}
code {
  white-space: pre-wrap;
  word-break: break-all;
}
.my-form {
  width: 100%;
}
input[type="number"] {  
  display: block;
  width: 200px;
  padding: 5px;
  margin-bottom: 0px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="text"] {
  width: 400px;
  padding: 4px;
  margin-top: 0px;
  margin-bottom: 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
textarea {
  width: 90%;
  font-size: 16px;
  height: 200px;
  padding: 4px;
  margin-top: 0px;
  margin-bottom: 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login {
  width: 400px;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
  padding-bottom: 20px;
}
.login form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.login h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}
.login form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 52px;
  background-color: #3274d6;
  color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"], .login form input[type="email"] {
  width: 210px;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
  border-radius: 0;
  font-size: 16px;
}
.login form input[type="submit"] {
  width: 50%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
background-color: #3274d6;
  transition: background-color 0.2s;
}

.register {
  width: 800px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}
.register h1 {
  text-align: center;
  color: #5b6574;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}
.register form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}
.register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100px; */
  min-width: 200px;
  height: 50px;
  /* background-color: #3274d6; */
  /* color: #ffffff; */
}
.register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 210px;
  height: 50px;
  border: 1px solid #dee0e4;
  /* margin-bottom: 20px; */
  padding: 0 15px;
}
.register form input[type="submit"] {
  width: 50%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
}
.register form input[type="submit"]:hover {
background-color: #3274d6;
  transition: background-color 0.2s;
}
.register form input[type="cancel"] {
  width: 50%;
  padding: 15px;
  margin-top: 20px;
  background-color: #3274d6;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.2s;
}
.register form input[type="cancel"]:hover {
  background-color: #3274d6;
  transition: background-color 0.2s;
}

.button {    
  border: none;
  border-radius: 4px;
  color: white;
  background-color: #3274d6;
  padding: 6px 9px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}
.button:hover {
  color: white;
  border-color: white;
  font-weight: bold;
  /* text-transform: uppercase; */
}
.disabled {
  pointer-events: none;
  opacity: .5;
}
.button:active {
  color: blue;
  border-color: blue;
}
.button2 {background-color: #3274d6;} 
.button3 {background-color: #f44336;} 
.button4 {background-color: #e7e7e7; color: black;} 
.button5 {background-color: #555555;} 
.blue {background-color: #3274d6;} 
.red {background-color: #f44336;} 
.white {background-color: #e7e7e7; color: black;} 
.grey {background-color: #555555;} 
.green {background-color: #4CAF50;}

  .submit {
    width: 70px;
    height: 30px;
    border: 1px solid #3274d6;
    margin-bottom: 20px;
    padding: 0 0px;
  }
  .cancel {
    width: 70px;
    height: 30px;
    border: 1px solid red;
    margin-bottom: 20px;
    padding: 0 0px;
  }
  .delete {
    width: 70px;
    height: 30px;
    border: 1px solid red;
    margin-bottom: 20px;
    padding: 0 0px;
  }
  .nowrap {
    white-space: nowrap;
  }
  .remove-file {
    display: inline-block;
    background: #ff4444;
    position: relative;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 6px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    margin-right: 4px;
  }
  .file-container {
          margin: 5px 0;
    display: inline-flex;
      flex-wrap: wrap;
        }
  .file-display {
    display: flex;
    align-items: center;
    margin: 5px 0;
  }
  .remove-file:hover {
    background: #cc0000;
  }
  table {
    border-collapse: collapse;
  }
  thead tr th {
    position: sticky;
    top: 40px;
    z-index: 101;
    background-color: #707275;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #dddfe1;

    color: #f9f9f9;
    cursor: pointer;
    padding: 6px 3px;
    font-weight: 500;
    border: .5px solid rgba(0, 0, 0, 0.15);
    text-align: left;
  }
  thead tr td {
    position: sticky;
    top: 40px;
    z-index: 101;
    background-color: #707275;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #dddfe1;

    color: #f9f9f9;
    cursor: pointer;
    font-weight: 500;
    border: .5px solid rgba(0, 0, 0, 0.15);
    text-align: left;
  }

  table tbody td {
    color: #636363;
    border: 2px solid #dddfe1;
    /* white-space: nowrap; */
  }
  table tbody tr {
    background-color: #f9fafb;
  }
  table tbody tr:nth-child(odd) {
    background-color: #ffffff;
  }
  input[type="checkbox"] {
    height: 1.25rem;
    width: 1.25rem;
    background: #f1f5f9;
    transition: background 250ms;
    border: 1px solid #94a3b8;
    border-radius: 0.2rem;
  }
  .switch {
    position: relative;
    display: block;
    width: 120px;
    height: 30px;
    padding: 3px;
    margin: 0 10px 10px 0;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
    border-radius: 18px;
    box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
  }
  .switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
  }
  .switch-label {
    position: relative;
    display: block;
    height: inherit;
    font-size: 10px;
    text-transform: uppercase;
    background: #2196F3;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
  }
  .switch-label:before, .switch-label:after {
    position: absolute;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit;
  }
  .switch-label:before {
    content: attr(data-off);
    right: 11px;
    color: #FFFFFF;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  }
  .switch-label:after {
    content: attr(data-on);
    left: 11px;
    color: #FFFFFF;
    text-shadow: 0 1px rgba(0, 0, 0, 0.2);
    opacity: 0;
  } 
  .switch-input:checked ~ .switch-label {
    background: red;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
  }
  .switch-input:checked ~ .switch-label:before {
    opacity: 0;
  }
  .switch-input:checked ~ .switch-label:after {
    opacity: 1;
  }
  .switch-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
    background-image: -webkit-linear-gradient(top, #FFFFFF 40%, #f0f0f0);
    border-radius: 100%;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
  }
  .switch-handle:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    width: 12px;
    height: 12px;
    background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
    background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF);
    border-radius: 6px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
  }
  .switch-input:checked ~ .switch-handle {
    left: 94px;
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
  }
  /* Transition
      ========================== */
  .switch-label, .switch-handle {
    transition: All 0.3s ease;
    -webkit-transition: All 0.3s ease;
    -moz-transition: All 0.3s ease;
    -o-transition: All 0.3s ease;
  }
  div.b {
    margin: 20px;
    padding-left: 10px;
    margin-right: 10px;
    margin-left: 10px;
    /* display: flex; */
    /* margin: 0 auto; */
    line-height: 1.8;
  }  
.b-contain *,
.b-contain *::before,
.b-contain *::after {
  box-sizing: content-box !important;
}
.b-contain input {
  position: absolute;
  /* z-index: 1; */
  opacity: 0;
}
.b-contain span {
  line-height: 1.5;
  font-size: 1rem;
  font-family: inherit;
}
.b-contain {
  display: table;
  position: relative;
  cursor: pointer;
  margin-bottom: 0.4rem;
}
.b-contain input[type="checkbox"] ~ .b-input {
  position: absolute;
  top: 1px;
  left: -12px;
  height: 1.25rem;
  width: 1.25rem;
  background: #f1f5f9;
  transition: background 250ms;
  border: 1px solid #94a3b8;
  border-radius: 0.2rem;
  /* z-index: 1; */
}
.b-contain input[type="radio"] ~ .b-input {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.25rem;
  width: 1.25rem;
  background: #f1f5f9;
  transition: background 250ms;
  border: 1px solid #94a3b8;
  border-radius: 3rem;
  /* z-index: 1; */
}
.b-contain input[type="checkbox"] ~ .b-input::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 0.3rem;
  height: 0.6rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transition: background 250ms;
  transform: rotate(45deg);
}
.b-contain input[type="radio"] ~ .b-input::after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 4px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3rem;
  background: #ffffff;
  transition: background 250ms;
}
.b-contain input[type="checkbox"]:disabled ~ .b-input::after {
  border-color: #ffffff;
}
.b-contain input:checked ~ .b-input::after {
  display: block;
}
.b-contain:hover input[type="checkbox"]:not([disabled]) ~ .b-input,
.b-contain input[type="checkbox"]:focus ~ .b-input {
  background: #e2e8f0;
  border-color: #64748b;
}
.b-contain:hover input[type="radio"]:not([disabled]) ~ .b-input,
.b-contain input[type="radio"]:focus ~ .b-input {
  background: #e2e8f0;
  border-color: #64748b;
}
.b-contain input:focus ~ .b-input {
  box-shadow: 0 0 0 2px #60a5fa;
}
.b-contain input[type="checkbox"]:checked ~ .b-input {
  background: #3b82f6;
  border-color: #1d4ed8;
}
.b-contain input[type="radio"]:checked ~ .b-input {
  background: #3b82f6;
  border-color: #1d4ed8;
}
.b-contain input[type="checkbox"]:disabled ~ .b-input,
.b-contain input[type="radio"]:disabled ~ .b-input {
  opacity: 0.5;
  cursor: not-allowed;
}
.b-contain input[type="radio"]:disabled ~ .b-input::after {
  background: #ffffff;
}
.b-contain:hover input[type="checkbox"]:not([disabled]):checked ~ .b-input,
.b-contain input[type="checkbox"]:checked:focus ~ .b-input {
  background: #2563eb;
  border-color: #1e40af;
}
.b-contain:hover input[type="radio"]:not([disabled]):checked ~ .b-input,
.b-contain input[type="radio"]:checked:focus ~ .b-input {
  background: #2563eb;
  border-color: #1e40af;
}
.calendar {
  display: flex;
  flex-flow: column;
}
.calendar .header .month-year {
  font-size: 20px;
  font-weight: bold;
  color: #636e73;
  /* padding: 20px 0; */
}
.calendar .days {
  display: flex;
  flex-flow: wrap;
}
.calendar .days .day_name {
  width: calc(100% / 7);
  border-right: 1px solid #2c7aca;
  padding: 20px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  color: #818589;
  color: #fff;
  background-color: #448cd6;
}
.calendar .days .day_name:nth-child(7) {
  border: none;
}
.calendar .days .day_num {
  display: flex;
  flex-flow: column;
  width: calc(100% / 7);
  border-right: 1px solid #e6e9ea;
  border-bottom: 1px solid #e6e9ea;
  padding: 15px;
  font-weight: bold;
  color: #7c878d;
  min-height: 100px;
}
.calendar .days .day_num span {
  display: inline-flex;
  width: 30px;
  font-size: 14px;
}
.calendar .days .day_num .event {
  margin-top: 10px;
  font-weight: 500;
  font-size: 14px;
  padding: 3px 6px;
  border-radius: 4px;
  background-color: #f7c30d;
  color: #fff;
  word-wrap: break-word;
}
.calendar .days .day_num .event.green {
  background-color: #51ce57;
}
.calendar .days .day_num .event.blue {
  background-color: #518fce;
}
.calendar .days .day_num .event.red {
  background-color: #ce5151;
}
.calendar .days .day_num:nth-child(7n+1) {
  border-left: 1px solid #e6e9ea;
}
.calendar .days .day_num:hover {
  background-color: #fdfdfd;
}
.calendar .days .day_num.ignore {
  background-color: #fdfdfd;
  color: #ced2d4;
  cursor: inherit;
}
.calendar .days .day_num.selected {
  background-color: #f1f2f3;
  cursor: inherit;
}
.content {
  box-sizing: border-box;
  width: 900px;
  margin: 0 auto;
  margin-bottom: 10px;
}
.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 22px;
  border-bottom: 1px solid #ebebeb;
  color: #666666;
}

.myDivs {
  display: none;
}
div.container {
	width: 95%;
	margin-left: 10px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 102;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.myDivs {
  display: none;
  }
  div.container {
      width: 95%;
      margin-left: 10px;
  }
  /* The Modal (background) */
  .modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 102; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }

  /* Modal Content/Box */
  .modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  }

  /* The Close Button */
  .close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  }

  .close:hover,
  .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
  }

.select {
    position: relative;
    min-width: 200px;
    margin: 10px auto;
}

.select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 32px 8px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Custom arrow */
.select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

/* Hover state */
.select select:hover {
    border-color: #999;
}

/* Focus state */
.select select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

table.dataTable {
    width: auto !important;
    margin: 0 auto;  /* centers the container */
}

/* Keep the sorting arrows working */
table.dataTable thead>tr>th.sorting {
    position: static !important;
}
table.dataTable thead>tr>th.sorting, table.dataTable 
thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, 
table.dataTable thead>tr>th.sorting_asc_disabled, 
table.dataTable thead>tr>th.sorting_desc_disabled, table.dataTable 
thead>tr>td.sorting, table.dataTable thead>tr>td.sorting_asc, 
table.dataTable thead>tr>td.sorting_desc, table.dataTable 
thead>tr>td.sorting_asc_disabled, table.dataTable thead>tr>td.sorting_desc_disabled {
    cursor: pointer;
    position: sticky;
    padding-right: 26px;
}
