/* styles.css */
body {
    display: flex;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
#sidebar {
    width: 200px;
    background-color: #1c166ef1;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#sidebar button {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#sidebar button:hover {
    background-color: #45a049;
}

#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #fff;
}

#logo {
    max-width: 100%;
    max-height: 100px;
}
#user-info {
    padding: 10px;
    background-color: #6e706e;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

/* ... Rest of your CSS code ... */
body {
    display: flex;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevents scrolling on the body */
}
#sidebar {
    width: 200px; /* Fixed width */
    min-width: 200px; /* Ensures the sidebar doesn't shrink */
    flex-shrink: 0; /* Prevents the sidebar from shrinking */
    background-color: #3c1b70f1;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allows scrolling if content exceeds height */
}
#main-content {
    flex: 1; /* Allows the main content to take up remaining space */
    /*overflow-x: auto; /* Allows horizontal scrolling if needed */
    display: flex;
    flex-direction: column;
    height: 100vh;
}
#header {
    padding: 20px;
    background-color: #e9e9e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
}
#content-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
button {
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
#search-bar {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#btn-new-customer {
    background-color: #008CBA;
    padding: 10px 20px;
    border-radius: 4px;
}

#btn-new-customer:hover {
    background-color: #007B9A;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #4CAF50;
    color: white;
}
.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: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* New styles for the repair form */
#new-repair-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#new-repair-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.customer-info {
    margin-bottom: 20px;
    background-color: #e9e9e9;
    padding: 10px;
    border-radius: 4px;
}

.customer-info p {
    margin: 5px 0;
    font-weight: bold;
}

.separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.form-group {
    margin-bottom: 15px;
}

#new-repair-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#new-repair-form input[type="text"],
#new-repair-form input[type="number"],
#new-repair-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#new-repair-form input[readonly] {
    background-color: #eee;
}

#new-repair-form textarea {
    resize: vertical;
}

#save-and-print-repair {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#save-and-print-repair:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #new-repair-form {
        max-width: 100%;
        margin: 0 10px;
    }
}
/* New Customer Form Styles */
#new-customer-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#new-customer-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#new-customer-form .form-group {
    margin-bottom: 15px;
}

#new-customer-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#new-customer-form input[type="text"],
#new-customer-form input[type="tel"],
#new-customer-form input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#save-new-customer {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#save-new-customer:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #new-customer-form {
        max-width: 100%;
        margin: 0 10px;
    }
}
/* Edit Customer Form Styles */
#edit-customer-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#edit-customer-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#edit-customer-form .form-group {
    margin-bottom: 15px;
}

#edit-customer-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#edit-customer-form input[type="text"],
#edit-customer-form input[type="tel"],
#edit-customer-form input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#save-edit-customer {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#save-edit-customer:hover {
    background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #edit-customer-form {
        max-width: 100%;
        margin: 0 10px;
    }
}
#partsGrandTotal {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: "\2714";
    font-size: 16px;
    color: white;
    position: absolute;
    right: 1px;
    top: -1px;
}
#invoiceBarcode {
    margin-top: 10px;
    width: 100%;
    max-width: 200px;
}
#edit-repair-form .form-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#edit-repair-form .left-side, 
#edit-repair-form .right-side {
    flex: 1;
}

#edit-repair-form .right-side {
    text-align: right;
}


#edit-repair-form .separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}
.small-button {
    font-size: 0.8em;
    padding: 2px 5px;
    margin-top: 5px;
}
cssCopy/* Edit Repair Form Styles */
#edit-repair-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#edit-repair-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

#edit-repair-form .form-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

#edit-repair-form .left-side, 
#edit-repair-form .right-side {
    flex: 1;
}

#edit-repair-form .right-side {
    text-align: right;
}

#edit-repair-form .separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

#edit-repair-form .repair-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#edit-repair-form .repair-issues {
    background-color: #fff5e6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#edit-repair-form .non-editable {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#edit-repair-form .form-group {
    margin-bottom: 20px;
}

#edit-repair-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#edit-repair-form input[type="text"],
#edit-repair-form input[type="number"],
#edit-repair-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#edit-repair-form input[type="checkbox"] {
    margin-right: 10px;
}

#edit-repair-form textarea {
    resize: vertical;
    min-height: 100px;
}

#save-edit-repair {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#save-edit-repair:hover {
    background-color: #45a049;
}

#notes-section, #parts-section {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

#notes-section h3, #parts-section h3 {
    margin-top: 0;
    color: #333;
}

#noteText, #add-part-form input, #add-part-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#saveNoteBtn, #addPartBtn {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#saveNoteBtn:hover, #addPartBtn:hover {
    background-color: #007B9A;
}

#partsList table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#partsList th, #partsList td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#partsList th {
    background-color: #2da55f;
    font-weight: bold;
}

#partsGrandTotal {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: right;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
}
#edit-repair-form {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#edit-repair-form h2 {
    text-align: left;
    color: #333;
}

.form-header .right-side {
    text-align: right;
}

.form-header .right-side p {
    margin: 5px 0;
}
.separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

.repair-summary {
    display: flex;
    justify-content: space-between;
}

.left-column {
    flex: 1;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.issues-section {
    margin-bottom: 15px;
}

.fees-section {
    align-self: flex-end;
}

#edit-repair-form strong {
    font-weight: bold;
}

#editRepairIssues {
    display: block;
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
    background-color: #c4c1c1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fees-section p {
    margin: 5px 0;
}
.reprint-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.reprint-btn:hover {
    background-color: #45a049;
}

.fees-section {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
/* Login Form Styles */
#login-form {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

#login-form form {
    display: flex;
    flex-direction: column;
}

#login-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#login-form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#login-form button[type="submit"]:hover {
    background-color: #45a049;
}

#forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #008CBA;
    text-decoration: none;
}

#forgot-password:hover {
    text-decoration: underline;
}

#rti-form {
    max-width: 500px;
    margin-left: 20px;
}

.rti-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rti-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    justify-content: space-between;
}

.rti-button,
.rti-button-subtract {
    height: 60px; /* Increased height to accommodate two lines of text */
    width: calc(50% - 10px);
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    line-height: 1.2; /* Adjusted line height */
}

.rti-button .pad-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 2px;
}

.rti-button .pad-text {
    font-size: 14px;
}

.rti-button.red,
.rti-button-subtract.red {
    background-color: #ff4136;
    color: white;
}

.rti-button.yellow,
.rti-button-subtract.yellow {
    background-color: #ffdc00;
    color: black;
}

.rti-button.green,
.rti-button-subtract.green {
    background-color: #2ecc40;
    color: white;
}

.rti-button:hover,
.rti-button-subtract:hover {
    opacity: 0.8;
}

.timestamp {
    font-size: 12px;
    margin: 0 10px;
    color: #666;
    background-color: #f2f2f2;
    padding: 5px 10px;
    border-radius: 5px;
}
/* Edit Invoice Form Styles */
#edit-invoice-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#edit-invoice-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

#edit-invoice-form .form-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

#edit-invoice-form .left-side, 
#edit-invoice-form .right-side {
    flex: 1;
}

#edit-invoice-form .right-side {
    text-align: right;
}

#edit-invoice-form .separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

#edit-invoice-form .invoice-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#edit-invoice-form .invoice-details p {
    margin: 10px 0;
}

#edit-invoice-form .form-group {
    margin-bottom: 15px;
}

#edit-invoice-form label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

#edit-invoice-form input[type="checkbox"] {
    margin-right: 10px;
}

#edit-invoice-form input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#edit-invoice-form button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

#edit-invoice-form button:hover {
    background-color: #45a049;
}

#invoice-notes-section {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

#invoice-notes-section h3 {
    margin-top: 0;
    color: #333;
}

#invoiceNoteText {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

#saveInvoiceNoteBtn {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#saveInvoiceNoteBtn:hover {
    background-color: #007B9A;
}

#invoiceNotesList {
    margin-top: 20px;
}

#invoiceNotesList .note {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

#invoiceNotesList .note p {
    margin: 0 0 5px 0;
}

#invoiceNotesList .note small {
    color: #666;
}
/* Styles for delete buttons */
button.delete-customer-btn,
button.delete-invoice-btn,
button.delete-repair-btn,
button[id^="delete-part-"],
#confirm-delete {
    background-color: #ff4136 !important; /* Red background */
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover effect for delete buttons */
button.delete-customer-btn:hover,
button.delete-invoice-btn:hover,
button.delete-repair-btn:hover,
button[id^="delete-part-"]:hover,
#confirm-delete:hover {
    background-color: #d50000 !important; /* Darker red on hover */
}
button {
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px; /* Add this line to apply the same border radius */
}

button:hover {
    background-color: #45a049;
}

button.delete-customer-btn,
button.delete-invoice-btn,
button.delete-repair-btn,
button[id^="delete-part-"],
#confirm-delete {
    background-color: #ff4136 !important; /* Red background */
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 4px; /* This is already present, no need to add it again */
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover effect for delete buttons */
button.delete-customer-btn:hover,
button.delete-invoice-btn:hover,
button.delete-repair-btn:hover,
button[id^="delete-part-"]:hover,
#confirm-delete:hover {
    background-color: #d50000 !important; /* Darker red on hover */
}
/* Customer View Form Styles */
#customer-view-form {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#customer-view-form h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#customer-view-form p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#customer-view-form strong {
    display: inline-block;
    width: 100px;
    color: #555;
}

#customer-view-form span {
    color: #333;
    font-weight: 500;
}

/* Wishlist Section Styles */
#wishlist-section {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

#wishlist-section h3 {
    color: #007bff;
    margin-bottom: 15px;
}

#wishInput {
    width: 70%;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#addWishButton {
    padding: 8px 15px;
    background-color: #5e5bf3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#addWishButton:hover {
    background-color: #218838;
}

#close-customer-view {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#close-customer-view:hover {
    background-color: #5a6268;
}

/* Responsive design */
@media (max-width: 768px) {
    #customer-view-form {
        padding: 15px;
    }

    #customer-view-form strong {
        width: 80px;
    }

    #wishInput {
        width: 60%;
    }
}
#invoice-section h3 {
    color: #28a745;  /* This is a Bootstrap-like green color */
    margin-bottom: 15px;
}

#invoiceTable th {
    background-color: #28a745;  /* Green background for header */
    color: white;  /* White text for better contrast */
    font-weight: bold;
    padding: 10px;
    border: 1px solid #1e7e34;  /* Darker green border */
}

#invoiceTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);  /* Subtle shadow for depth */
}

#invoiceTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#invoiceTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#invoiceTable tr:hover {
    background-color: #e9ecef;  /* Light grey background on hover */
}

/* Styling for the view button */
#invoiceTable button {
    padding: 5px 10px;
    background-color: #007bff;  /* Blue button */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s;
}

#invoiceTable button:hover {
    background-color: #0056b3;  /* Darker blue on hover */
}
/* Invoice View Form Styles */
#invoice-view-form {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#invoice-view-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.invoice-header {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.customer-info {
    flex: 1;
}

.invoice-info {
    text-align: right;
    flex: 1;
}

.invoice-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.status-completed-paid {
    background-color: #4CAF50;
    color: white;
}

.status-completed {
    background-color: #ff9800;
    color: white;
}

.status-in-progress {
    background-color: #2196F3;
    color: white;
}

.device-info, .financial-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 20px;
}

.long-text {
    grid-column: 1 / -1;
}

.long-text .info-value {
    min-height: 60px;
    white-space: pre-wrap;
}

.parts-section {
    margin-top: 30px;
}

.parts-section h3, .notes-section h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #4CAF50;
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.parts-table th {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    text-align: left;
}

.parts-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.parts-table tr:hover {
    background-color: #f5f5f5;
}

.total-row {
    font-weight: bold;
    background-color: #f5f5f5;
}

.notes-section {
    margin-top: 30px;
}

.note-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.note-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.note-text {
    color: #333;
    line-height: 1.4;
}

#close-invoice-view {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#close-invoice-view:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    #invoice-view-form {
        padding: 15px;
        margin: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .invoice-header {
        flex-direction: column;
    }

    .invoice-info {
        text-align: left;
        margin-top: 15px;
    }
}
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

#loading-indicator {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #bbdefb;
    text-align: center;
}

.warranty-btn {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 12px 20px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.warranty-btn:hover {
    background-color: #f57c00;
}

/* Warranty Form Styles */
#warranty-form {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#content-area {
    position: relative;
}

/* Rest of your warranty form styles remain the same */
.warranty-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.warranty-left-column,
.warranty-right-column {
    flex: 1;
}

.customer-info-section,
.warranty-form-section,
.device-info-section,
.warranty-fees-section,
.warranty-issues-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.customer-info {
    background-color: #e9e9e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.customer-info p {
    margin: 8px 0;
    font-size: 1.1em;
}

.customer-info span {
    font-weight: bold;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

#warranty-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

#warranty-form input[type="text"],
#warranty-form input[type="number"],
#warranty-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

#warranty-form input[readonly] {
    background-color: #f5f5f5;
    color: #666;
}

#warranty-form textarea {
    resize: vertical;
    min-height: 120px;
}

.warranty-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

#save-and-print-warranty,
#cancel-warranty {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#save-and-print-warranty {
    background-color: #4CAF50;
    color: white;
}

#save-and-print-warranty:hover {
    background-color: #45a049;
}

#cancel-warranty {
    background-color: #f44336;
    color: white;
}

#cancel-warranty:hover {
    background-color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .warranty-container {
        flex-direction: column;
    }

    .warranty-left-column,
    .warranty-right-column {
        width: 100%;
    }
}

.time-clock-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.time-clock-status {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.time-clock-status p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.btn-success {
    background-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
}

#clockInOutBtn {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#timeClockHistory {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#timeClockHistory th,
#timeClockHistory td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#timeClockHistory th {
    background-color: #4CAF50;
    color: white;
}

.text-success {
    color: #28a745;
}

.management-btn {
    position: relative;
}

#management-submenu {
    padding-left: 20px;
}

.submenu-btn {
    width: 100%;
    text-align: left;
    background-color: #d975f7f1;
    padding: 8px 15px;
    margin-bottom: 5px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submenu-btn:hover {
    background-color: #c164e0f1;
}
/* Employee Timecard Form Styles */
#employee-timecard-form {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#employee-timecard-form h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

#employee-timecard-form .bg-white {
    background-color: #ffffff;
}

#employee-timecard-form .p-4 {
    padding: 16px;
}

#employee-timecard-form .rounded {
    border-radius: 8px;
}

#employee-timecard-form .shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Pay Period Management Section */
#employee-timecard-form .grid {
    display: grid;
    gap: 16px;
}

#employee-timecard-form .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

#employee-timecard-form input[type="date"],
#employee-timecard-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 4px;
}

/* Action Buttons */
#employee-timecard-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

#employee-timecard-form #add-pay-period {
    background-color: #4CAF50;
    color: white;
}

#employee-timecard-form #export-timecard {
    background-color: #2196F3;
    color: white;
}

#employee-timecard-form button:hover {
    opacity: 0.9;
}

/* Time Records Table */
#employee-timecard-form table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

#employee-timecard-form th {
    background-color: #4CAF50;
    color: white;
    font-weight: 500;
    text-align: left;
    padding: 12px;
    font-size: 14px;
}

#employee-timecard-form td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#employee-timecard-form tbody tr:hover {
    background-color: #f5f5f5;
}

/* Total Hours Row */
#employee-timecard-form tfoot {
    font-weight: bold;
    background-color: #f9f9f9;
}

#employee-timecard-form tfoot td {
    border-top: 2px solid #ddd;
}

/* Filters Section */
#employee-timecard-form .filters {
    background-color: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Custom Date Range */
#employee-timecard-form #custom-date-range {
    margin-top: 8px;
}

#employee-timecard-form #custom-date-range input {
    width: calc(50% - 4px);
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    #employee-timecard-form {
        padding: 15px;
        margin: 10px;
    }

    #employee-timecard-form .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    #employee-timecard-form #custom-date-range input {
        width: 100%;
        margin-bottom: 8px;
    }

    #employee-timecard-form .overflow-x-auto {
        overflow-x: auto;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    margin: 15% auto;
    width: 90%;
    max-width: 500px;
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

/* Modal Content Container */
.modal-content {
    position: relative;
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

/* Form Group Styling */
.modal .form-group {
    margin-bottom: 1rem;
}

.modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.modal input[type="text"],
.modal input[type="datetime-local"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.modal input[type="text"]:focus,
.modal input[type="datetime-local"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Read-only Input Styling */
.modal input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* Button Container */
.modal .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Button Styles */
.modal button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal button[type="submit"] {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.modal button[type="submit"]:hover {
    background-color: #2563eb;
}

.modal button[type="button"] {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.modal button[type="button"]:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }

    .modal .button-group {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal button {
        width: 100%;
    }
}

.pay-period-calendar {
    margin-bottom: 20px;
}

.pay-period-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.pay-period-calendar th,
.pay-period-calendar td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: center;
}

.pay-period-calendar button {
    background-color: #f3f4f6;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.pay-period-calendar button:hover {
    background-color: #e5e7eb;
}
.pay-period-filter {
    background-color: white;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#pay-period-filter, 
#custom-start-date, 
#custom-end-date {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

#pay-period-filter:focus, 
#custom-start-date:focus, 
#custom-end-date:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

.receipt-number-group {
    margin-top: 10px;
}

.receipt-required-message {
    font-size: 0.875rem;
    margin-top: 4px;
}

#editInvoiceReceiptNumber.border-red-500 {
    border-color: #ef4444;
}

.printer-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
}

.printer-select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
}

#refreshPrinters {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#refreshPrinters:hover {
    background-color: #e0e0e0;
}

#printerStatus {
    font-size: 0.9em;
    color: #666;
}

/* Make sure printer selector aligns with other header items */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#refreshPrinters.available {
    background-color: #4CAF50;
    color: white;
}

#refreshPrinters.unavailable {
    background-color: #ff4136;
    color: white;
}

.reprint-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.reprint-btn:hover {
    background-color: #0056b3;
}