/*front end css starts*/
.exit-form-container {
    width: 75%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.exit-form-text-center {
    text-align: center ;
}

.exit-from-text-center h2 {
    font-family: Arial, sans-serif;
    color: #333;
}

.exit-form-container label strong {
    font-size: 1.05rem;
    font-weight: 600;
}

.exit-form-container .form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}


.exit-form-disabled-field {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.exit-form-container .required-asterisk {
    color: red;
    font-weight: bold;
    margin-left: 2px;
}

.exit-form-container .camel-case {
    text-transform: capitalize;
}

.exit-form-control.is-invalid {
    border-color: #dc3545; 
    background-color: #f8d7da; 
    color: #721c24; 
}

.exit-form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); 
}

.exit-form-container .text-danger {
    font-size: 0.875rem;
    color: #dc3545;
}

.exit-form-container .hidden {
    display: none;
}

.exit-form-container .disabled-field,
.exit-form-container input[readonly] {
    background-color: #ceccca !important;
    color: #6c757d !important;
    cursor: not-allowed;
    border: 1px solid #ced4da;
    pointer-events: none;
    opacity: 1; 
}

.exit-form-container input[readonly]:focus {
    background-color: #ceccca !important;
    color: #6c757d !important;
    box-shadow: none;
}

.exit-form-popup-message.popup-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.exit-form-popup-message .popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

.exit-form-popup-message .popup-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.exit-form-popup-message .popup-close-button {
    background-color: #FF6600;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.exit-form-popup-message .popup-close-button:hover {
    background-color: #FF6600;
}

#exit-form-loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden; 
    z-index: 9999; 
    background: rgba(255, 255, 255, 0.8); 
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.exit-form-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

.dark-overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

#custom-timesheet-client {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6c757d;
  background-color: #f8f9fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5L8 12l6.5-6.5' stroke='%236c757d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #b8bac6;
  border-radius: 0.800rem;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
  user-select: none;
  flex-wrap: wrap;
}

#custom-timesheet-client .selected-values {
  flex: 1;
  max-height: 1.6em; /* Approx 1 line */
  overflow-y: scroll; 
  padding-right: 8px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  scrollbar-width: none; 
}


#custom-timesheet-client .selected-values::-webkit-scrollbar {
  display: none;
}

/* Selected text style */
#custom-timesheet-client .selected-text {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #495057 !important;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Placeholder text */
#custom-timesheet-client .text-muted {
  color: #495057 !important;
}

/* Dropdown container */
#timesheet_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-top: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.8rem 0.8rem 0 0.8rem 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 18px;
  font-weight: 400;
}

/* Dropdown options */
#timesheet_dropdown label {
  display: block;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 400;
  color: #495057;
  line-height: 1.4;
  margin: 0;
  cursor: pointer;
}

/* Hover effect on options */
#timesheet_dropdown label:hover {
  background-color: #0d6efd;
  color: white;
}

/* Disabled (read-only) styling */
#custom-timesheet-client.disabled-field {
  background-color: #e9ecef;
}

/* Scrollable in readonly, scrollbar hidden */
#custom-timesheet-client.disabled-field .selected-values {
  pointer-events: auto;
  overflow-y: scroll !important;
  scrollbar-width: none;
}

#custom-timesheet-client.disabled-field .selected-values::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
    #emp_hire_date,
    #last_date {
        display: grid !important;
        justify-content: start !important;
    }
}


/*front end css ends*/

/*admin side css starts*/
#exit-form-table .reset-form-button.loading {
    cursor: wait;
    position: relative;
    pointer-events: none;
}

#exit-form-table .reset-form-button.loading .spinner-border {
    display: inline-block;
    vertical-align: middle;
}

#exit-form-table .reset-form-button:disabled {
    cursor: not-allowed;
    background-color: #ddd;
    color: #888;
}

#exit-form-table .opened-button {
    cursor: not-allowed;
    background-color: #ddd;
    color: #888;
}

#exit-form-table {
    white-space: nowrap;
}

.employee-table-container {
    max-width: 100%;
}

.date-filter-container #export-button{
    height: 33px;
    margin-left: 10px
}
.date-filter-container #reset-filter{
    height: 33px;
    margin-left: 10px
}
.date-filter-container #apply-filter {
    height: 33px;
    margin-left: 10px
}
.date-filter-container {
    margin-top:15px;
}

@media (min-width: 320px) and (max-width: 1200px)  {
    .exit-form-container{
        width: 100%;
    }
    #page-wrapper #main-header{
        padding-top: 10px !important;
    }
}