
/* Modal Styling */
      .modal {
          background: rgba(0, 0, 0, 0.5) !important; /* Ensures dark overlay */
          
      }
    	
    	.modal-dialog {
    max-width: 80% !important; /* Adjust width (e.g., 60%, 70%, 80%) */
    width: auto;
}
    	

 /* Modal Header */
 .modal-header {
     background: #015296; 
     color: #fff;
     text-align: center;
     font-size: 14px;
     font-weight: bold;
     padding: 15px;
     width: 100%;
     position: relative;
 }
 
  .modal-title
 {
 	text-align: center;
     font-size: 16px;
     font-weight: 500;
     
 }
    
/* Search Bar Container */
.search-container 
{
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 100%; /* Reduced width for better fit */
    margin-bottom: 10px; /* Added margin to create space between search bar and table */
}

/* Search Input */
.search-bar {
    flex: 1;
    padding: 6px 10px; /* Adjusted padding */
    border: none;
    outline: none;
    font-size: 14px;
}

/* Search Button */
.search-btn {
    background-color: #febd69; /* Amazon-like color */
    border: none;
    padding: 11px 12px; /* Adjusted padding */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
}

/* Search Icon */
.search-btn i {
    color: #111;
    font-size: 14px; /* Reduced size */
}

/* Hover Effect */
.search-btn:hover {
    background-color: #f3a847;
}


 /* Print and Download Buttons */
     .modal-footer {
         text-align: right;
         margin-top: 15px;
     }

     .btn-print {
         background-color: #28a745;
         color: white;
     }

     .btn-download {
         width: auto;
         padding: 8px;                                
         border-radius: 4px;
         cursor: pointer;
         font-size: 12px;
         
         border: 1px solid #008BFF;
   background-color: #e4f2fd;
   color: #008bff;
   margin: 0px 0;   
     }
     
     .btn-download:hover {
     
     background-color: #008bff;
   color: #e4f2fd;
      background-color: #008bff;
color: #e4f2fd;
     }

     .btn:hover {
         opacity: 0.8;
     }

      /* Position Close Button to Top-Right Corner */
.modal-header .close {
   position: absolute;
   top: -12px; /* Move slightly above the modal header */
   right: -8px; /* Move outside the modal */
   background: #183b63; /* Dark blue background */
   color: #fff !important;
   opacity: 1;
   font-size: 18px;
   width: 32px;  /* Set fixed width */
   height: 32px; /* Set fixed height */
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%; /* Circular shape */
   border: 2px solid white; /* Optional: White border for better visibility */
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
   cursor: pointer;
   transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.modal-header .close:hover {
    background: #0c2b4e; /* Darker shade on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}        	

/* Table Container */
.table-responsive {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}				
.table-custom thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #e4f2fd;
    color: #004681;
}

/* Sort Icon Styling */
.table-custom thead th i {
    margin-left: 5px;
    transition: all 0.2s;
}

.table-custom th {
    padding: 12px;
    text-align: left;
    font-size: 14px;   
    cursor: pointer;
    position: relative;
}

.table-custom th:hover {
    background: #4b7394;
    color:white;
}

.table-custom th i {
    margin-left: 8px;
    font-size: 12px;
}

.table-custom td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.table-custom tbody tr:hover {
    background: #f1f1f1;
}

/* Scrollbar Customization */
.table-responsive::-webkit-scrollbar {
     height: 7px;
    width: 7px;
}				
.table-responsive::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 2px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}