html,
body {
  background-color: #f9f6ee;
  margin: 5px 0px 5px 2px;
  padding: 5px 0px 5px 2px;
  overflow: hidden;
  padding-top: 0.3rem; 
  display: flex;
  height: 100%;
  flex-direction: column;
}

footer {
    position: fixed;           
    bottom: 0;                 
    left: 0;                   
    width: 100%;               
    height: 40px;              
    display: flex;             
    justify-content: center;   
    align-items: center;       
    background-color: #f9f6ee;
    z-index: 1000;            
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding-bottom: 0;
    max-height: calc(100vh - 180px); 
    padding-right: 15px; 
    box-sizing: border-box;
}

.tab-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; 
    background-color: #f9f6ee; 
    z-index: 1000;
}

@media (max-width: 576px) {
    footer {
      height: 30px;
    }
    .personnelTable
     {
      padding-bottom: 60px; 
    }
    .tab-content {
        flex: 1; 
        overflow-y: auto; 
        position: relative;
        padding-bottom: 0px;
        max-height: calc(100vh - 140px); 
      }
    .tab-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0%; 
        background-color: #f9f6ee; 
        z-index: 1000; 
    }
  }


.disabled-filter-btn {
    opacity: 0.5; 
    pointer-events: none; 
    cursor: not-allowed; 
}

section {
  display: flex;
  flex-flow: column;
  height: calc(100vh - 20px);
}

.tab-content {
  flex: 1;
  overflow-y: scroll;
}

tr {
  cursor: default;
}

.myBtn {
  width: 70px;
}

.modal-backdrop {
    display: none !important; 
}

#searchModal .modal-dialog {
    max-width: 800px; 
    margin: 30px auto; 
}

#searchModal .modal-content {
    border-radius: 8px; 
    background-color: #fff; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

#searchModal .modal-header {
    background-color: #007bff;
    color: #fff; 
    border-top-left-radius: 8px;
    border-top-right-radius: 8px; 
    padding: 15px 20px; 
}

#searchModal .modal-title {
    font-size: 1.5rem; 
    font-weight: 600; 
}

#searchModal .btn-close {
    background-color: #fff; 
    border-radius: 50%; 
    border: none;
    font-size: 1.2rem; 
    padding: 0.4rem 0.8rem;
}

#searchModal .modal-body {
    padding: 20px;
    font-family: 'Arial', sans-serif; 
    color: #333; 
    background-color: #f9f9f9; 
    border-radius: 8px;
    min-height: 200px; 
    overflow-y: auto; 
}

#searchModal .search-result-item {
    background-color: #fff; 
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out; 
}

#searchModal .search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); 
}

#searchModal .search-result-item h6 {
    font-size: 1.2rem; 
    font-weight: 500; 
    color: #333;
    margin-bottom: 10px; 
}

#searchModal .search-result-item p {
    font-size: 1rem;
    color: #666; 
    margin: 5px 0;
}

#searchModal .search-result-item p strong {
    font-weight: 600; 
    color: #333; 
}

#searchModal .modal-footer {
    background-color: #f1f1f1; 
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px; 
    padding: 15px 20px; 
    text-align: right; 
}

#searchModal .btn-secondary {
    background-color: #007bff; 
    color: white;
    border: none; 
    border-radius: 5px; 
    padding: 10px 20px;
    font-size: 1rem; 
    transition: background-color 0.2s ease-in-out;
}

#searchModal .btn-secondary:hover {
    background-color: #0056b3; /
}

#searchModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#searchModal .modal-body::-webkit-scrollbar-thumb {
    background-color: #007bff; 
    border-radius: 4px;
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 100%;
        align-items: center; 
    }
    
    .modal-header, .modal-footer {
        text-align: center; 
    }
}

.tab-pane .table {
    margin-bottom: 0; 
}

.btn {
    margin-right: 5px;  
}

.mainButtons {
    margin-right: 0 !important;
}

.tab-content::-webkit-scrollbar {
    width: 10px; 
}

.tab-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;     
    min-height: 15px;       
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background-color: #555; 
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}

#successMessage {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage.show {
    display: block;
    opacity: 1;
}

#successMessage2.show {
    display: block;
    opacity: 1;
}

#successMessage3.show {
    display: block;
    opacity: 1;
}

#successMessage4.show {
    display: block;
    opacity: 1;
}

#successMessage5.show {
    display: block;
    opacity: 1;
}

#successMessage6.show {
    display: block;
    opacity: 1;
}

#successMessage7.show {
    display: block;
    opacity: 1;
}

#successMessage8.show {
    display: block;
    opacity: 1;
}

#successMessage9.show {
    display: block;
    opacity: 1;
}

#successMessage10.show {
    display: block;
    opacity: 1;
}

#successMessage2 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage3 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage4 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage5 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage6 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage7 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage8 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage9 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#successMessage10 {
    display: none;  
    position: fixed; 
    top: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1050; 
    width: auto; 
    max-width: 90%;
    padding: 10px;
    font-size: 16px;
}

#personnelTable .email-column {
    padding-left: 150px; 
}

#personnelTable .location-column {
    padding-left: 150px; 
}

#personnelTable .department-column {
    padding-left: 48px; 
}

#departments-tab-pane .table {
    table-layout: fixed; 
    width: 100%; 
}

#departments-tab-pane .table td.d-none.d-md-table-cell {
    width: 200px;  
}

#departments-tab-pane .table td {
    padding: 8px; 
}

#departments-tab-pane .table td.text-end {
    text-align: right;
} 