.title-header {
    top: 0;
    padding: 22px 10px;
    color: rgb(0, 0, 0);
}


/* TOOLTIP BTN ICON*/
.tooltip-icon {
    position: relative;
    display: inline-block;
    padding: .47rem .75rem;
}

.tooltip-icon .tooltip-text {
    visibility: hidden;
    min-width: 90px;
    background-color: var(--vz-primary);
    font-size: 1em;
    font-weight: 450;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 3.7px;
    position: absolute;
    z-index: 9999;
    top: 118%;
    left: 95%;
    margin-left: -60px;
}

.tooltip-icon .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -3px;
    border-width: 3px;
    border-style: solid;
    border-color: transparent transparent var(--vz-primary) transparent;
    z-index: 9999;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
}

.form-group.required .control-label:after {
    content:" *";
    color:red;
}


.disabled-field_custom {
    background-color: #eff2f7 !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    cursor: default !important;
}
.disabled-field_custom:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary {
    color: #fff;
    background-color: #1A3362;
    border-color: #1A3362
}

.dataTable table thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_1 thead {
    background-color: #6e6e6e;
    color: #ffffff;
}
.datatable_2 thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_3 thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_4 thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_scroll thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_scroll_edit thead{
    background-color: #6e6e6e;
    color: #ffffff;
}

#datatable thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

#datatable_gred thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_kehadiran thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

.datatable_ajax thead {
    background-color: #6e6e6e;
    color: #ffffff;
}

table thead  thead.bg-gradient{
    background-color: #6e6e6e;
    color: #ffffff;
}

.bg-mustard{
    background-color: #6e6e6e;
}

.center {
    margin: auto;
    width: 20%;
    padding: 10px;
}

.btn-light {
    /* background-color: #c2c5c7; */
    background-color: #6B7280;
    color: white;
    --vz-btn-hover-bg: #A8ACAF;
}

/* Hide the arrow added by Popper.js */
.dropdown-toggle::after {
    display: none;
}

/* Center loading spinner */
.tmp-loading {
    border: 20px solid rgb(211, 211, 211);
    position: absolute;
    left: 45%;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border-top: 1px solid #eb4335;
    border-bottom: 1px solid #4285f4;
    border-right: 1px solid #fbbc05;
    border-left:1px solid #34a853;
}

/* Example checkbox display :
    Status Penjawatan*     []Tetap           []Kontrak
                           []Sambilan        []Praktikal
    *boleh refer SenaraiLaporanElaun
*/
.flex-container {
    display: flex;
    flex-wrap: wrap;
}

.flex-item {
    flex: 0 0 50%; /* Two items per row */
    margin-bottom: 10px; /* Adjust spacing between rows */
}

.flex-item input[type="checkbox"] {
    margin-right: 5px; /* Adjust spacing between checkbox and label */
}

/* 3 columns per row */
.flex-item-3 {
    flex: 0 0 33.33%; /* Three items per row */
    margin-bottom: 10px; /* Adjust spacing between rows */
}

.flex-item-3 input[type="checkbox"] {
    margin-right: 5px; /* Adjust spacing between checkbox and label */
}

.readonlybg:read-only {
    background-color: var(--vz-tertiary-bg);
    opacity: 1;
}


/* End checkbox display */
@media (max-width: 1000px) {
    .block_dashboard{
        display: block;
    }
}

.disabled-field_custom {
    background-color: #eff2f7 !important;
    color: #212529 !important;
    border: 1px solid #ced4da !important;
    cursor: default !important;
}
.disabled-field_custom:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Style to make the checkbox look disabled */
.readonly-checkbox {
    pointer-events: none; /* Prevent interaction */
    opacity: 0.6; /* Make it look grayed out, like disabled */
}

.readonly-checkbox:checked {
    background-color: #ccc;
}

.custom-label-colon::after {
    /* content: ""; Adds the colon automatically */
    /* padding-right: 0px; /* Optional space between colon and input */
    /* float: right; */ */
}

/* accessibility css start */
/* Position the entire widget on the left side */
#accessibility-widget {
  position: fixed;
  top: 20%;
  left: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
}

/* The main toggle button */
#accessibility-toggle {
  background: #004085;
  color: white;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: background 0.3s ease;
}

#accessibility-toggle:hover {
  background: #0056b3;
}

/* Make the icon spin continuously (caution this will make the icon puke) */
    /* #accessibility-toggle i {
    animation: spin 0.5s linear infinite;
    }

    @keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
    } */

/* The sliding panel */
#accessibility-widget {
    position: fixed;
    top: 30%;
    left: 0;
    transform: translateY(-50%) translateX(-230px); /* hide almost everything */
    display: flex;
    align-items: center;
    transition: transform 0.4s ease;
    z-index: 9999;
}

/* When open: slide out fully */
#accessibility-widget.open {
  transform: translateY(-50%) translateX(0);
}

/* PANEL */
#accessibility-panel {
    /* position: relative; */
    width: 230px;
    background: #fff;
    /* border-radius: 0 10px 10px 0; */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    opacity: 0.98;
}

/* OPEN STATE */
/* #accessibility-panel.open {
    transform: translateX(0);
} */

/* PANEL CONTENT */
.panel-content {
    padding: 10px;
}

/* TOGGLE BUTTON (attached to panel edge) */
#accessibility-toggle {
    position: absolute;
    top: 0;
    right: -47px; /* stick out */
    /* transform: translateY(-50%); */
    background: #1A3362;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 6px 6px;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#accessibility-toggle:hover {
    background: #695eef;
}

#accessibility-toggle i {
  font-size: 35px;
  text-align: center;
  vertical-align: middle;
}

/* Buttons inside panel */
.a11y-btn {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #ccc;
    background: #f8f8f8;
    padding: 10px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.a11y-btn:hover {
    background: #e0e0e0;
}

/* #accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }

  #accessibility-toggle {
  background: #fff;
  color: #1a3362;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 50px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#accessibility-toggle:hover {
  background: #fff;
  transform: scale(1.1);
}

#accessibility-toggle i {
  font-size: 50px;
}

  #accessibility-panel {
    display: none;
    background: #fff;
    color: #000;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 10px;
    width: 200px;
  }

  #accessibility-panel.active {
    display: block;
  }

  .a11y-btn {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 6px;
  } */

  .high-contrast {
    background-color: #000 !important;
    color: #ff0 !important;
  }

  .dark-mode {
    background-color: #121212 !important;
    color: #f5f5f5 !important;
  }

    /* Apply readable font to everything EXCEPT the accessibility widget */
    body.readable-font *:not(#accessibility-widget):not(#accessibility-widget *){
    font-family: "Arial", "Verdana", "Tahoma", sans-serif !important;
    letter-spacing: 0.3px !important;
    word-spacing: 1px !important;
    line-height: 1.6 !important;
    }
  /* accessibility css end */
