/* Basic table styling */
.technician-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

/* Header styling */
.technician-table thead th {
    background-color: #00BF00;
    color: white;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.technician-table.history thead th {
    background-color: #FF9B00;
}

/* Cell styling */
.technician-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Zebra striping for rows */
.technician-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Hover effect */
.technician-table tr:hover {
    background-color: #f1f1f1;
}

/* Styling for description cells */
.technician-table .description {
    font-style: italic;
    color: #555;
}

/* Align hours column to center */
.technician-table .hours {
    text-align: center;
    font-weight: bold;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .technician-table th, .technician-table td {
        padding: 8px;
        font-size: 16px;
    }
}

/* Flex container to align heading and button in the same row */
.header-container {
    display: flex;
    justify-content: space-between;  /* Aligns the items to the left and right */
    align-items: center;             /* Vertically centers the items */
    margin-bottom: 20px;             /* Adds some space below the container */
}

/* Style for the heading */
.header-container h2 {
    font-size: 24px;
    margin: 0;  /* Remove the default margin */
    color: #333;
}

/* Style for the button */
.download-csv-button {
    padding: 10px 20px;
    background-color: #007bff;  /* Button color (blue) */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;  /* Vertically center the icon and text */
    gap: 10px;  /* Space between the icon and text */
    transition: background-color 0.3s ease;
}

.download-csv-button i {
    margin-right: 8px;
}

.download-csv-button:hover {
    background-color: #0056b3;  /* Darker blue on hover */
    color: white;
}

.download-csv-button:focus {
    outline: none;
}

/* Container styling */
.details-container {
    display: flex;
    flex-wrap: wrap;  /* Allows items to wrap dynamically */
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Each item (label + value) */
.details-item {
    flex: 1 1 30%;  /* Take 30% of the container width, adjust as needed */
    margin-bottom: 20px;
    min-width: 250px;  /* Ensure items don't get too narrow */
    padding-right: 20px;  /* Padding between items */
    box-sizing: border-box;
}

/* Styling for the label */
.details-item .label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 20px;
}

/* Styling for the value */
.details-item .value {
    font-size: 18px;
    color: #555;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .details-item {
        flex: 1 1 100%;  /* Stack items vertically on smaller screens */
        margin-bottom: 15px;
        padding-right: 0;
    }
}