* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
  overflow-y: scroll;
  height: 100%;
}
body {
    background-color: #FFFFFF;
    margin: 0;
    height: 100%;
    display: flex;
  flex-direction: column;
}

.button-disabled {
    background-color: #d3d3d3; /* light gray */
    opacity: 0.5;
    color: black;
    border: 2px solid black;
    border-radius: 8px; /* Rounded corners */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 150px;
    text-align: center;
}

.button-nice {
    background-color: #d3d3d3; /* light gray */
    color: black;
    border: 2px solid black;
    border-radius: 8px; /* Rounded corners */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 150px;
    text-align: center;
}

.button-nice:hover {
    background-color: #bfbfbf; /* darker gray on hover */
    transform: scale(1.02);
}

.button-nice:active {
    transform: scale(0.98);
}

.button-nice:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.button-nice-grn {
    background-color: #65e765; /* light green */
    color: black;
    border: 2px solid black;
    border-radius: 8px; /* Rounded corners */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 150px;
    text-align: center;
}

.button-nice-grn:hover {
    background-color: #51d351; /* darker green on hover */
    transform: scale(1.02);
}

.button-nice-grn:active {
    transform: scale(0.98);
}

.button-nice-grn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.button-nice-red {
    background-color: #FF474C; /* light red */
    color: black;
    border: 2px solid black;
    border-radius: 8px; /* Rounded corners */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 150px;
    text-align: center;
}

.button-nice-red:hover {
    background-color: #E23F44; /* darker red on hover */
    transform: scale(1.02);
}

.button-nice-red:active {
    transform: scale(0.98);
}

.button-nice-red:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
.form-container form {
    display: flex;
    flex-direction: column;
    max-width: 1000px; /* wider form */
    width: 90%;         /* makes it responsive */
    padding: 30px;
    margin: 0 auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-item label {
    margin-bottom: 6px;
    font-weight: bold;
    color: #444;
}

.form-item select,
.form-item input[type="text"],
.form-item textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-button-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #65e765;
  color: black;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid black;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

/* Hover effects */
.file-button-label:hover {
  background-color: #51d351; /* darker green on hover */
  transform: scale(1.02);
}

/* Active press effects */
.file-button-label:active {
  transform: scale(0.98);
}

/* Accessible focus ring when using keyboard navigation */
.hidden-file-input:focus-visible + .file-button-label {
  outline: 3px solid black;
  outline-offset: 2px;
}

textarea {
    resize: vertical;
}

#submit {
    margin-top: 20px;
    width: 200px;
    background-color: #d3d3d3;
    color: black;
    border: 2px solid black;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#submit:hover {
    background-color: #bfbfbf;
    transform: scale(1.02);
}

#submit:disabled {
    background-color: #eeeeee;
    color: #888888;
    border-color: #aaaaaa;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.navtop {
    background-color: #3f69a8;
    height: 60px;
    width: 100%;
    border: 0;
}
.navtop div {
    display: flex;
    margin: 0;
    width: 100%;
    height: 100%;
    place-content: center;
}
.navtop div h1, .navtop div a {
    display: inline-flex;
    align-items: center;
}
.navtop div h1 {
    flex: 1;
    font-size: 24px;
    padding: 0;
    margin: 0;
    color: DimGrey;
    font-weight: normal;
}
.navtop div a {
    padding: 0 0px;
    text-decoration: none;
    font-size: 16px;
    color: DimGrey;
    font-weight: bold;
}
.navtop div a i {
    font-size: 16px;
    padding: 2px 8px 0 0;
}
.navtop div a:hover {
    color: #ecf0f6;
}

.site-footer {
  background-color: #cbcbcb;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  font-size: 18px;
  color: #555;
}

.site-footer a {
  color: #555;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #333;
}


.content {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
}
.contentTbl {
    width: auto;
    margin-left: 10%;
    margin-right: 20%;
}
.content h2 {
    margin: 0;
    padding: 25px 0;
    font-size: 30px;
    border-bottom: 1px solid #ebebeb;
    color: #666666;
}
.read .create-contact {
    display: inline-block;
    text-decoration: none;
    background-color: #38b673;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 15px 0;
}
.read .create-contact:hover {
    background-color: #32a367;
}

.read .pagination {
    display: flex;
    justify-content: flex-end;
}
.read .pagination a {
    display: inline-block;
    text-decoration: none;
    background-color: #a5a7a9;
    font-weight: bold;
    color: #FFFFFF;
    padding: 5px 10px;
    margin: 15px 0 15px 5px;
}
.read .pagination a:hover {
    background-color: #999b9d;
}
.read table {
    width: 120%;
    padding-top: 30px;
    border-collapse: collapse;
}
.read table thead {
    background-color: #ebeef1;
    border-bottom: 1px solid #d3dae0;
}
.read table thead td {
    font-weight: bold;
    color: #767779;
    font-size: 14px;
}
.read table tbody tr {
    border-bottom: 1px solid #d3dae0;
}
.read table tbody tr:nth-child(even) {
    background-color: #fbfcfc;
}
.read table tbody tr:hover {
    background-color: #376ab7;
}
.read table tbody tr:hover td {
    color: #FFFFFF;
}
.read table tbody tr:hover td:nth-child(1) {
    color: #FFFFFF;
}
.read table tbody tr td {
}
.read table tbody tr td:nth-child(1) {
    color: #a5a7a9;
}
.read table tbody tr td.actions {
    padding: 8px;
    text-align: right;
}
.read table tbody tr td.actions .edit, .read table tbody tr td.actions .trash, .read table tbody tr td.actions .disable, .read table tbody tr td.actions .outage, .read table tbody tr td.actions .enable {
    display: inline-flex;
    text-align: right;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    padding: 10px 13px;
    max-width: 34.5px;
    max-height: 30.5px;
}
.read table tbody tr td.actions .trash {
    background-color: #b73737;
}
.read table tbody tr td.actions .trash:hover {
    background-color: #a33131;
}
.read table tbody tr td.actions .edit {
    background-color: #37afb7;
}
.read table tbody tr td.actions .edit:hover {
    background-color: #319ca3;
}

.read table tbody tr td.actions .disable {
    background-color: #b73737;
}
.read table tbody tr td.actions .disable:hover {
    background-color: #a33131;
}

.read table tbody tr td.actions .outage {
    background-color: #FFBD33;
}
.read table tbody tr td.actions .outage:hover {
    background-color: #FFB000;
}

.read table tbody tr td.actions .enable {
    background-color: #4cbb17;
}
.read table tbody tr td.actions .enable:hover {
    background-color: #228B22;
}
.form-container {
    display: flex;
    flex-wrap: wrap;
}

.update_button {
    display: block;
    background-color: #38b673;
    border: 0;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    width: 200px;
    margin-top: 30px;
}

.delete .yesno {
    display: flex;
}
.delete .yesno a {
    display: inline-block;
    text-decoration: none;
    background-color: #38b673;
    font-weight: bold;
    color: #FFFFFF;
    padding: 10px 15px;
    margin: 15px 10px 15px 0;
}
.delete .yesno a:hover {
    background-color: #32a367;
}
.update form {
    padding: 15px 0;
    display: flex;
    flex-flow: wrap;
}
.update form label {
    display: inline-flex;
    padding: 10px 0;
    margin-right: 25px;
}
.update form input {
    padding: 10px;
    margin-right: 25px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    height: fit-content;
}
.update form select {
    padding: 10px;
    margin-right: 25px;
    margin-bottom: 15px;
    border: 1px solid #cccccc;
    height: fit-content;
}
.update form input[type="submit"] {
    display: block;
    background-color: #38b673;
    border: 0;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    width: 200px;
    margin-top: 30px;
}
.update form input[type="submit"]:hover {
    background-color: #32a367;
}
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

.accordion::before {
  content: '⮞';
  font-size: 18px;
  display: inline-block; 
  transition: transform 0.1s ease;
}

/* Rotate the arrow when the accordion is open */
.accordion.active::before {
  /*content: '⮟';*/
  transform: rotate(90deg);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  display: none;
  overflow: hidden;
}





a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}

.edit {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 13px;
  background-color: #37afb7;
  max-width: 34.5px;
  max-height: 30.5px;
}
.edit:hover {
  background-color: #319ca3;
}

.trash {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 13px;
  background-color: #b73737;
  max-width: 34.5px;
  max-height: 30.5px;
}
.trash:hover {
  background-color: #a33131;
}

.disable {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 13px;
  background-color: #b73737;
  max-width: 34.5px;
  max-height: 30.5px;
}
.disable:hover {
  background-color: #a33131;
}

.enable {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 13px;
  background-color: #4cbb17;
  max-width: 34.5px;
  max-height: 30.5px;
}
.enable:hover {
  background-color: #228B22;
}

.outage {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 13px;
  background-color: #FFBD33;
  max-width: 34.5px;
  max-height: 30.5px;
}
.outage:hover {
    background-color: #FFB000;
}


.required:after {
    content:" *";
    color: red;
  }

.required-before:before {
    content:" *";
    color: red;
}

.table_container {
  overflow:auto; 
  width: 100%;
}

.table_container table{
    width: 100%;
}

.content.delete h1 {
  font-size: xx-large;
  text-decoration: underline;
}

.dataTables_filter {
    position: relative;
}

.dataTables_filter input {
    width: 85%;
    margin-top: 18px;
    padding: 18px;
    height: 40px;
    background: #fcfcfc;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 0 0 3px #ccc, 0 10px 15px #ebebeb inset;
    text-indent: 10px;
}

.dataTables_filter .fa-search {
    position: absolute;
    top: 31px;
    left: auto;
    right: 164px;
}

.float-container{
    display: flex;
    border: 3px solid #fff;
}

.float-child{
    width: 50%;
    float:left;
    min-height: fit-content;
}

div.sticky{
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
  position: sticky;
  top: 0;
  padding: 1%;
  background-color:#f0f0f0
}

.tooltip_super {
    vertical-align: baseline !important;
    font-size: 1em;
    position: relative;
}
.tooltip_super .tooltip_content {
    visibility: hidden;
    width: auto !important;
    white-space: nowrap;
    background: #fff;
    border-radius: 6px;
    padding: 7px;
    position: absolute;
    border: 2px solid gray;
    z-index: 1;
    right: 110%;
    bottom: 20px;
}
.tooltip_super:hover .tooltip_content {
    visibility: visible;
}

.select2-selection  {
    padding: 7px !important;  
    height: fit-content !important;
    
}
.select2-selection--multiple
{
    padding: 9.5px !important;  
    height: fit-content !important;
    
}
.select2-container {
    height: fit-content !important;
}

.ktooltip {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.ktooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px;
  position: absolute;
  bottom: 110%; /* show above */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.ktooltiptext::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.ktooltip:hover .ktooltiptext {
  visibility: visible;
  opacity: 1;
}

.ktooltip-bottom {
  position: relative;
  cursor: pointer;
  height: 100%;
  display: inline-block;
  color: #0077cc;
  vertical-align: middle;
}

.ktooltiptext-bottom {
  visibility: hidden;
  width: 250px;
  max-width: 250px;
  background-color: #555;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  top: 125%;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
  word-wrap: break-word;
}

.ktooltiptext-bottom::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.ktooltip-bottom:hover .ktooltiptext-bottom {
  visibility: visible;
  opacity: 1;
}

.ktooltiptext-global {
  visibility: hidden;
  opacity: 0;
  z-index: 999999;
  background-color: #555;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  max-width: none;
  width: auto;
  white-space: nowrap;
  pointer-events: none; /* important: lets mouse events pass through */
  transition: opacity 0.2s;
  position: absolute; /* this will be overridden by JS on hover */
}

.ktooltiptext-global::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}
.ktooltip.follow-mouse .ktooltiptext-global::after {
  display: none;
}

.ec-event-title {
  height: 100%;
}

.appointment-buttons {
    position: absolute;
    top: 2px;
    right: 4px;
    display: flex;
    gap: 4px;
    z-index: 99999;
}

.appointment-cancellation,
.appointment-edit,
.appointment-type {
    visibility: hidden;
    background: transparent;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
}

.appointment-cancellation { color: FireBrick; }
.appointment-edit { color: Ivory; }
.appointment-type { color: whitesmoke}

.ec-event:hover .appointment-cancellation,
.ec-event:hover .appointment-edit,
.ec-event:hover .appointment-type {
    visibility: visible;
}

.ec-event-time:hover .appointment-cancellation {
visibility: visible;
opacity: 1;
}

.ec-event.ec-blocker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

#global-tooltip {
  position: fixed;
  z-index: 99999;
  background-color: #555;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#global-tooltip::after {
  display: none;
}

input[type="checkbox"].checkbox-modern {
  appearance: none;
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border: 2px solid #555;
  border-radius: 50%; /* Makes it circular */
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-grid;
  place-content: center;
}

input[type="checkbox"].checkbox-modern:checked {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

/* Custom indicator using a pseudo-element */
input[type="checkbox"].checkbox-modern::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em white;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"].checkbox-modern:checked::before {
  transform: scale(1);
}

.fancy {
  position: relative;
  display: inline-block;
  padding-right: 40px;
}

.fancy::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0%;
  width: 300px;
  height: 2px;
  background: #666666;
  transform: translateY(-50%);
}