body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    /*text-transform: uppercase;*/
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333f48;
    color: white;
    padding: 15px 30px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.vehicle-list {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    background-color: #fff;
}

.vehicle-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.vehicle-item:last-child {
    border-bottom: none;
}

.vehicle-item:hover {
    background-color: #f3f4f6;
}

/* New job table styling */
.search-container {
    margin-bottom: 15px;
}

/* Events Module Styles */
.tab-container {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tabs {
    display: flex;
    gap: 0;
}

.tab-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    font-weight: 600;
    color: #007bff;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #007bff;
}

.stat-card.urgent {
    border-left-color: #dc3545;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.info {
    border-left-color: #17a2b8;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.filter-btn.urgent.active {
    background: #dc3545;
    border-color: #dc3545;
}

.filter-btn.warning.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.filter-btn.info.active {
    background: #17a2b8;
    border-color: #17a2b8;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.event-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.event-summary p {
    margin: 5px 0;
    color: #6c757d;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-renewed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.urgent {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.selection-info {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.btn-link:hover {
    color: #0056b3;
}

.bulk-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bulk-info ul {
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
    padding-left: 20px;
}

.bulk-info li {
    margin-bottom: 5px;
    font-size: 14px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 5px;
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background: #5a6268;
}

.btn-small.btn-success {
    background: #28a745;
}

.btn-small.btn-success:hover {
    background: #218838;
}

.dashboard-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #28a745 !important;
}

.event-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form styling for events module */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.form-group input[type="color"] {
    width: 50px;
    padding: 2px;
    height: 40px;
}

.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* Responsive design for events module */
@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

/* Vehicle Events Integration */
.section-actions {
    display: flex;
    gap: 8px;
}

.btn.small {
    padding: 4px 8px;
    font-size: 12px;
}

.event-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.event-stat {
    text-align: center;
    flex: 1;
}

.event-stat .count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.event-stat .label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .event-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .event-stat .count {
        font-size: 18px;
    }
}

.search-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f7;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: #333f48;
    color: white;
    border-color: #333f48;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

#pageInfo {
    font-size: 14px;
}

.vehicle-list {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    background-color: #fff;
}

.vehicle-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.vehicle-item:last-child {
    border-bottom: none;
}

.vehicle-item:hover {
    background-color: #f3f4f6;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    cursor: pointer;
    transition: color 0.3s;
}

.nav-links li:hover {
    color: #a8dadc;
}

.container {
    padding: 40px 20px;
    text-align: center;
}

h1 {
    margin-bottom: 40px;
    font-size: 32px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 20px;
    color: #555;
}

.btn {
    padding: 10px 20px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2563eb;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.section {
    margin-top: 40px;
}

h2 {
    margin-bottom: 10px;
}

.search {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
}

.job-table th, .job-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.job-table th {
    background-color: #f3f3f3;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.header-text {
    font-size: 24px;
    font-weight: bold;
}

.admin-controls {
    display: flex;
    align-items: center;
}

.admin-controls select,
.admin-controls button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.section {
    margin-top: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.job-details,
.admin-meta,
.list-container,
.labor-analytics,
.parts-analytics,
.defects-analytics,
.inspection-analytics,
.admin-actions {
    margin-bottom: 10px;
}

.list-container {
    list-style-type: none;
    padding: 0;
}

.list-container li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.admin-meta span {
    display: block;
    margin-bottom: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

select {
    padding: 5px;
    font-size: 14px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.header-text {
    font-size: 24px;
    font-weight: bold;
}

.admin-controls {
    display: flex;
    align-items: center;
}

.admin-controls button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.section {
    margin-top: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.list-container {
    list-style-type: none;
    padding: 0;
}

.list-container li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.parts-analytics span {
    display: block;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.header-text {
    font-size: 24px;
    font-weight: bold;
}

.admin-controls {
    display: flex;
    align-items: center;
}

.admin-controls button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.section {
    margin-top: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.list-container {
    list-style-type: none;
    padding: 0;
}

.list-container li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.parts-analytics span {
    display: block;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section h2 {
    margin-bottom: 10px;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-content > div {
    flex: 1;
    min-width: 300px;
}

.list-container {
    width: 100%;
    border-collapse: collapse;
}

.list-container th, .list-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.list-container th {
    background-color: #f2f2f2;
}

.list-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.list-container tr:hover {
    background-color: #f1f1f1;
}

.btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.btn:hover {
    background-color: #0056b3;
}
.navbar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    cursor: pointer;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
}

.navbar .logo a {
    color: #fff;
    text-decoration: none;
}


.navbar .nav-links li a:hover {
    text-decoration: underline;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.section {
    margin-top: 20px;
}

.section h2 {
    margin-bottom: 10px;
}

.list-container {
    width: 100%;
    border-collapse: collapse;
}

.list-container th, .list-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.list-container th {
    background-color: #f2f2f2;
}

.list-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.list-container tr:hover {
    background-color: #f1f1f1;
}

.btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

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

/* Inspections Management Specific Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.search {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.list-container {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.list-container th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.list-container td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.list-container tr:hover {
    background-color: #f8f9fa;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .list-container th,
    .list-container td {
        padding: 8px;
    }
    
    .btn {
        padding: 6px 12px;
    }
}
.dashboard-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 60px);
}

.sidebar {
    flex: 0 0 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: auto;
}

/* Tools Section */
.tools-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-group label {
    font-weight: bold;
    color: #666;
}

/* Table Styles */
.table-container {
    margin-top: 20px;
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#pageInfo {
    font-weight: bold;
}

/* Modal Improvements */
.modal-content {
    max-width: 600px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        width: 100%;
    }
}

.css
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.status.open {
    background-color: #fef3c7;
    color: #92400e;
}

.status.resolved {
    background-color: #d1fae5;
    color: #065f46;
}

.status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status.in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Calendar Styles */
#calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event {
    cursor: pointer;
    padding: 4px;
}

.fc-event:hover {
    opacity: 0.9;
}

/* Filter Styles */
.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* People Management Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.badge.admin {
    background-color: #e3f2fd;
    color: #1e88e5;
}

.badge.technician {
    background-color: #f3e5f5;
    color: #8e24aa;
}

.badge.driver {
    background-color: #e8f5e9;
    color: #43a047;
}


.badge.customer {
    background-color: #e8f5e9;
    color: #f5871f;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input,
.filter-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-input {
    flex: 1;
}

.btn.small {
    padding: 4px 8px;
    font-size: 0.9em;
}

.btn.danger {
    background-color: #dc3545;
    color: white;
}

.btn.danger:hover {
    background-color: #c82333;
}
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.875em;
    color: #6c757d;
}

.form-group input[type="password"] {
    margin-bottom: 5px;
}

/* Action Items Table Styles */
#actionItemsTable input[type="text"],
#actionItemsTable select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#actionItemsTable td {
    padding: 8px;
    vertical-align: middle;
}

#actionItemsTable .btn.small {
    padding: 4px 8px;
    font-size: 0.9em;
}

#actionItemsTable tfoot td {
    text-align: right;
    padding: 16px;
}

.action-item td:first-child {
    width: 50%;
}

.action-item td:nth-child(2) {
    width: 30%;
}

.action-item td:last-child {
    width: 20%;
    text-align: right;
}

/* Management Grid Styles */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.management-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.management-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-icon {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2563eb;
}

.management-card h2 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.management-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9em;
}

/* Job Card Edit Styles */
.linked-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.linked-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
    margin-bottom: 10px;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.editable-value {
    white-space: pre-wrap;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}

.editable-value:hover {
    background-color: #f3f4f6;
}

#settingValue {
    font-family: monospace;
    resize: vertical;
}

.data-table td {
    vertical-align: top;
}
/* Grid.js customization */
.gridjs-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 1rem;
}

.gridjs-search {
    float: none;
    margin-bottom: 1rem;
}

.gridjs-search input {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 8px 12px;
}

.gridjs-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.gridjs-pages {
    margin-left: auto;
}

.gridjs-pages button {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    margin: 0 4px;
    background: white;
}

.gridjs-pages button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.gridjs-pages button.gridjs-currentPage {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.gridjs-footer {
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.gridjs-pages button {
    color: black;
}
.gridjs-pages > button .gridjs-currentPage {
    color: black;
}
.section.collapsible .section-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.section.collapsible .section-header:hover {
    background: #f3f4f6;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title h2 {
    margin: 0;
}

.collapse-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.section-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 2000px; /* Arbitrary large height */
}

.section.collapsed .section-content {
    max-height: 0;
}

/* Preserve button clickability */
.section-header button {
    pointer-events: all;
}

.section-header .section-title {
    flex: 1;
}

.job-type-counts {
    margin-top: 1rem;
}

.job-type-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-color: #f9fafb;
}

.job-type-name {
    font-weight: bold;
    color: #374151;
}

.job-type-count {
    font-size: 1rem;
    color: #1f2937;
}

/* Warning text styling */
.warning-text {
    color: red;
    font-weight: bold;
    text-align: center;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
}

.modal-content .form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-content .btn.danger {
    background-color: red;
    color: white;
}

.modal-content .btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}
/* Highlight the selected job type */
.job-type-box.selected {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

.list-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.list-item:hover {
    background-color: #f5f5f5;
}

.item-main {
    margin-bottom: 5px;
}

.item-meta {
    font-size: 0.9em;
    color: #666;
}

.search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.parts-list-content {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #eee;
}

.page-info {
    color: #666;
    font-size: 0.9em;
}

.pagination button {
    min-width: 80px;
}

/* Add to your styles.css or in a style tag in index.html */
.defects-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.defect-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.instruction-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.instruction-input input {
    flex: 1;
}

.master-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.master-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

textarea.full-width {
    width: 90%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

#saveNotes {
    margin-top: 10px;
}

.dashboard-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 60px); /* Adjust 60px based on your navbar height */
    overflow: hidden; /* Prevent container scroll */
}

.sidebar {
    flex: 0 0 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto; /* Make sidebar scrollable */
    height: 100%; /* Take full height of container */
}

.main-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto; /* Keep main content scrollable */
    height: 100%; /* Take full height of container */
}

.pdf-status {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.pdf-status span {
    display: block;
    font-size: 0.9em;
}

#pdfFileName {
    font-weight: bold;
}

#pdfUploadDate {
    color: #666;
    font-size: 0.8em;
}

.pdf-buttons {
    display: flex;
    gap: 8px;
}
/* Add this to your styles.css or you can inline it in your HTML */
.rate-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-rate {
    font-weight: bold;
    color: #4f46e5; /* Indigo color for custom rates */
}

.info-message {
    text-align: center;
    color: #6b7280;
    padding: 10px;
}

.error-message {
    text-align: center;
    color: #ef4444;
    padding: 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Events module specific styles */
.no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 20px;
}

.text-danger {
    color: #dc2626;
    font-weight: 600;
}

.text-warning {
    color: #d97706;
    font-weight: 600;
}

.text-success {
    color: #059669;
    font-weight: 600;
}

/* Timesheet Module Styles */
.timesheet-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.timesheet-status.draft {
    background: #f3f4f6;
    color: #374151;
}

.timesheet-status.submitted {
    background: #dbeafe;
    color: #1e40af;
}

.timesheet-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.timesheet-status.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.analytics-card.warning {
    border-left-color: #ffc107;
}

.analytics-card.danger {
    border-left-color: #dc3545;
}

.analytics-card.success {
    border-left-color: #28a745;
}

.analytics-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.analytics-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.analytics-label {
    font-size: 12px;
    color: #6c757d;
}

.review-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-section h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.review-section p {
    margin: 5px 0;
    color: #6c757d;
}

.time-entries {
    margin-top: 15px;
}

.time-entry {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.time-entry:last-child {
    border-bottom: none;
}

.entry-date {
    font-weight: 500;
}

.entry-hours {
    color: #007bff;
    font-weight: 500;
}

.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.timesheet-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chart-container h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.employee-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.employee-info .label {
    font-weight: 500;
}

.comment-section {
    margin-top: 20px;
}

.comment-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.overtime-info {
    background: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.overtime-info h5 {
    margin: 0 0 8px 0;
    color: #856404;
}

.overtime-hours {
    font-weight: 500;
    color: #856404;
}

/* Responsive adjustments for timesheet module */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-actions button {
        width: 100%;
    }
    
    .approval-actions {
        flex-direction: column;
    }
    
    .time-entry {
        flex-direction: column;
        gap: 5px;
    }
    
    .employee-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-placeholder {
        height: 200px;
    }
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-dropdown {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

/* Searchable Select Styles */
.searchable-select-container {
    position: relative;
}

.searchable-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: text;
}

.searchable-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item.selected {
    background-color: #3b82f6;
    color: white;
}

.dropdown-loading {
    padding: 12px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.dropdown-no-results {
    padding: 12px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* =================== TIMESHEET ADMIN STYLES =================== */

.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #dee2e6;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    background-color: #f8f9fa;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.employee-name {
    font-weight: 600;
    color: #212529;
}

.hours-cell {
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #007bff;
    font-weight: 500;
}

.total-hours {
    font-weight: 600;
    color: #212529;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.25;
    border-radius: 0.2rem;
}

.timesheet-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.timesheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.employee-info {
    display: flex;
    flex-direction: column;
}

.employee-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.employee-role {
    font-size: 0.875rem;
    color: #6c757d;
}

.timesheet-status {
    display: flex;
    align-items: center;
}

.timesheet-details-grid {
    padding: 1.5rem;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.hours-grid h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.daily-hours-table {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.day-row {
    display: grid;
    grid-template-columns: 120px 150px 200px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.day-row:last-child {
    border-bottom: none;
}

.day-label {
    font-weight: 600;
    color: #495057;
}

.hours-input, .notes-input, .location-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

.hours-input:focus, .notes-input:focus, .location-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.hours-display, .notes-display, .location-display {
    font-size: 0.875rem;
    color: #495057;
}

/* Modal timesheet table styling */
.modal-timesheet-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.modal-timesheet-table thead {
    background: #007bff;
    color: white;
}

.modal-timesheet-table th,
.modal-timesheet-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.modal-timesheet-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-timesheet-table tbody tr:hover {
    background: #f8f9fa;
}

.modal-timesheet-table tbody tr:last-child td {
    border-bottom: none;
}

.modal-timesheet-table .day-label {
    font-weight: 600;
    color: #495057;
    width: 100px;
}

.modal-timesheet-table .hours-input,
.modal-timesheet-table .location-input,
.modal-timesheet-table .notes-input {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

.modal-timesheet-table .hours-input:focus,
.modal-timesheet-table .location-input:focus,
.modal-timesheet-table .notes-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-timesheet-table .hours-display,
.modal-timesheet-table .location-display,
.modal-timesheet-table .notes-display {
    font-size: 0.875rem;
    color: #495057;
}

.hours-summary {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: #007bff;
}

.timesheet-metadata {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.timesheet-metadata h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metadata-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
}

.edit-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal.large .modal-content {
    max-width: 800px;
    width: 90%;
}

/* Loading overlay for timesheet operations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timesheet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .day-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .week-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .week-actions {
        margin-left: 0;
        justify-content: stretch;
    }
    
    .week-actions button {
        flex: 1;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-sm {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Hide some columns on mobile */
    .data-table th:nth-child(n+4):nth-child(-n+9),
    .data-table td:nth-child(n+4):nth-child(-n+9) {
        display: none;
    }
    
    .table-container {
        overflow-x: auto;
    }
}