* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f7fa;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    font-weight: 700;
}

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #3b82f6;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-box button:hover {
    background: #3b82f6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.modal-buttons button {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

#modal-yes {
    background: #1e3a8a;
    color: white;
}

#modal-yes:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

#modal-no {
    background: #dc2626;
    color: white;
}

#modal-no:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #1e3a8a;
    color: white;
    padding: 1rem;
    position: fixed;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1000;
    transform: translateX(-100%); /* Hidden by default in all views */
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.section-symbol {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background: #3b82f6;
}

/* Sidebar Search Styles */
#sidebar-search-container {
    display: none;
    padding: 10px 0;
}

#sidebar-search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#sidebar-search-input:focus {
    outline: none;
    border: 1px solid #3b82f6;
}

#sidebar-search-results {
    max-height: 200px;
    overflow-y: auto;
}

.sidebar-search-result {
    padding: 8px;
    cursor: pointer;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar-search-result:hover {
    background: #3b82f6;
}

.highlight-row {
    outline: 3px solid #3b82f6 !important; /* Prominent outline for highlighted row */
    background-color: #d1e7ff !important; /* Slightly darker background for visibility */
    transition: outline 0.3s ease, background-color 0.3s ease;
}

.content {
    margin-left: 0; /* No left margin to occupy full width */
    flex-grow: 1;
    padding: 2rem;
    background: #f4f7fa;
    width: 100%; /* Full width in all views */
}

.header {
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.header h1 {
    color: #1e3a8a;
    font-size: 2rem;
}

.manage-section, .weeks-section, .overdue-section, .sixtydue-section, .deleted-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

#customer-search {
    width: 250px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#customer-search:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
    margin-left: 0.5rem;
}

.search-button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.manage-section h3, .weeks-section h3, .overdue-section h3, .sixtydue-section h3, .deleted-section h3, .deleted-section h4 {
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.weeks-section .form-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    pointer-events: auto;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group button {
    padding: 0.75rem 1.5rem;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
}

.manage-section .form-group button {
    margin-top: 0.75rem;
}

.form-group button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.admin-list {
    margin-top: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-list div {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.admin-list div:hover {
    background: #e5e7eb;
}

.admin-list button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.admin-list button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Add Customer Form Styles */
.add-customer-form {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 2rem;
}

.add-customer-form h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.add-customer-form .form-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-customer-form .form-group input {
    max-width: 300px;
    width: 100%;
    padding: 0.75rem;
}

.add-customer-form .form-group:last-child {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.add-customer-form button {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
}

/* Customer Table Styles */
.customer-table-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.customer-table {
    width: 2300px;
    border-collapse: collapse;
    background: #fef3c7;
    margin-top: 1rem;
    border: 1px solid #1e3a8a;
}

.customer-table th, .customer-table td {
    border: 1px solid #1e3a8a;
    padding: 0.5rem;
    text-align: center;
}

.customer-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 500;
}

.customer-table th:nth-child(1),
.customer-table td:nth-child(1) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 0;
    min-width: 90px;
}

.customer-table th:nth-child(2),
.customer-table td:nth-child(2) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 90px;
    min-width: 130px;
}

.customer-table th:nth-child(3),
.customer-table td:nth-child(3) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 220px;
    min-width: 130px;
}

.customer-table th:nth-child(4),
.customer-table td:nth-child(4) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 350px;
    min-width: 150px;
}

.customer-table th:nth-child(n+5),
.customer-table td:nth-child(n+5) {
    min-width: 160px;
    background: #fef3c7;
    color: #000000;
}

.customer-table tr.active-row td:nth-child(n+5) {
    background: #bfdbfe;
}

.customer-table input {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.customer-table input:focus {
    outline: none;
    background: #e5e7eb;
}

.customer-table input.active-input {
    outline: 2px solid #3b82f6;
}

.customer-table input[readonly] {
    cursor: not-allowed;
}

.customer-table input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.customer-table input[type="text"]::placeholder {
    color: #6b7280;
}

.customer-table input[type="text"]:focus {
    outline: none;
    background: #e5e7eb;
    color: #000000;
}

.customer-table button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.customer-table button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.customer-table tfoot td {
    background: #1e3a8a;
    color: white;
    font-weight: 500;
}

.customer-table tfoot td:not(:nth-child(1)) {
    background: #fef3c7;
    color: #000000;
}

.customer-table tfoot tr.active-row td:not(:nth-child(1)) {
    background: #bfdbfe;
}

/* Overdue Table Styles */
.overdue-table-container {
    overflow-x: auto;
    width: 101%;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.overdue-table {
    width: 4200px;
    border-collapse: collapse;
    background: #fef3c7;
    margin-top: 1rem;
    border: 1px solid #1e3a8a;
}

.overdue-table th, .overdue-table td {
    border: 1px solid #1e3a8a;
    padding: 0.5rem;
    text-align: center;
}

.overdue-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 500;
}

.overdue-table th:nth-child(1),
.overdue-table td:nth-child(1) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 0;
    min-width: 90px;
}

.overdue-table th:nth-child(2),
.overdue-table td:nth-child(2) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 90px;
    min-width: 130px;
}

.overdue-table th:nth-child(3),
.overdue-table td:nth-child(3) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 220px;
    min-width: 130px;
}

.overdue-table th:nth-child(4),
.overdue-table td:nth-child(4) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 350px;
    min-width: 150px;
}

.overdue-table td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)) {
    background: #fef3c7;
    color: #000000;
}

.overdue-table tr.active-row td:nth-child(n+23) {
    background: #bfdbfe;
}

.overdue-table input {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.overdue-table input:focus {
    outline: none;
    background: #e5e7eb;
}

.overdue-table input.active-input {
    outline: 2px solid #3b82f6;
}

.overdue-table input[readonly], .overdue-table input[disabled] {
    cursor: not-allowed;
}

.overdue-table input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.overdue-table input[type="text"]::placeholder {
    color: #6b7280;
}

.overdue-table input[type="text"]:focus {
    outline: none;
    background: #e5e7eb;
    color: #000000;
}

.overdue-table button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.overdue-table button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Sixty Due Table Styles */
.sixtydue-table-container {
    overflow-x: auto;
    width: 101%;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.sixtydue-table {
    width: 4200px;
    border-collapse: collapse;
    background: #fef3c7;
    margin-top: 1rem;
    border: 1px solid #1e3a8a;
}

.sixtydue-table th, .sixtydue-table td {
    border: 1px solid #1e3a8a;
    padding: 0.5rem;
    text-align: center;
}

.sixtydue-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 500;
}

.sixtydue-table th:nth-child(1),
.sixtydue-table td:nth-child(1) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 0;
    min-width: 90px;
}

.sixtydue-table th:nth-child(2),
.sixtydue-table td:nth-child(2) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 90px;
    min-width: 130px;
}

.sixtydue-table th:nth-child(3),
.sixtydue-table td:nth-child(3) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 220px;
    min-width: 130px;
}

.sixtydue-table th:nth-child(4),
.sixtydue-table td:nth-child(4) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 350px;
    min-width: 150px;
}

.sixtydue-table td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)) {
    background: #fef3c7;
    color: #000000;
}

.sixtydue-table tr.active-row td:nth-child(n+5) {
    background: #bfdbfe;
}

.sixtydue-table input {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.sixtydue-table input:focus {
    outline: none;
    background: #e5e7eb;
}

.sixtydue-table input.active-input {
    outline: 2px solid #3b82f6;
}

.sixtydue-table input[readonly], .sixtydue-table input[disabled] {
    cursor: not-allowed;
}

.sixtydue-table input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    padding: 0.3rem;
}

.sixtydue-table input[type="text"]::placeholder {
    color: #6b7280;
}

.sixtydue-table input[type="text"]:focus {
    outline: none;
    background: #e5e7eb;
    color: #000000;
}

.sixtydue-table button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.sixtydue-table button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Deleted Table Styles */
.deleted-table-container {
    overflow-x: auto;
    width: 100%;
    max-width: calc(100% - 40px);
    margin: 0 auto 2rem;
}

.deleted-table, .deleted-overdue-table, .deleted-sixtydue-table {
    border-collapse: collapse;
    background: #fef3c7;
    margin-top: 80px;
    border: 1px solid #1e3a8a;
}

.deleted-table {
    width: 2300px;
}

.deleted-overdue-table, .deleted-sixtydue-table {
    width: 4200px;
}

.deleted-table th, .deleted-table td,
.deleted-overdue-table th, .deleted-overdue-table td,
.deleted-sixtydue-table th, .deleted-sixtydue-table td {
    border: 1px solid #1e3a8a;
    padding: 0.5rem;
    text-align: center;
}

.deleted-table th, .deleted-overdue-table th, .deleted-sixtydue-table th {
    background: #1e3a8a;
    color: white;
    font-weight: 500;
}

.deleted-table th:nth-child(1),
.deleted-table td:nth-child(1),
.deleted-overdue-table th:nth-child(1),
.deleted-overdue-table td:nth-child(1),
.deleted-sixtydue-table th:nth-child(1),
.deleted-sixtydue-table td:nth-child(1) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 0;
    min-width: 90px;
}

.deleted-table th:nth-child(2),
.deleted-table td:nth-child(2),
.deleted-overdue-table th:nth-child(2),
.deleted-overdue-table td:nth-child(2),
.deleted-sixtydue-table th:nth-child(2),
.deleted-sixtydue-table td:nth-child(2) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 90px;
    min-width: 130px;
}

.deleted-table th:nth-child(3),
.deleted-table td:nth-child(3),
.deleted-overdue-table th:nth-child(3),
.deleted-overdue-table td:nth-child(3),
.deleted-sixtydue-table th:nth-child(3),
.deleted-sixtydue-table td:nth-child(3) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 220px;
    min-width: 130px;
}

.deleted-table th:nth-child(4),
.deleted-table td:nth-child(4),
.deleted-overdue-table th:nth-child(4),
.deleted-overdue-table td:nth-child(4),
.deleted-sixtydue-table th:nth-child(4),
.deleted-sixtydue-table td:nth-child(4) {
    position: sticky;
    background: #1e3a8a;
    color: white;
    z-index: 3;
    left: 350px;
    min-width: 150px;
}

.deleted-table td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)),
.deleted-overdue-table td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)),
.deleted-sixtydue-table td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)) {
    background: #fef3c7;
    color: #000000;
}

.deleted-table-container button {
    position: sticky;
    top: 80px; /* Base top position, adjusted per button below */
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
}

.deleted-table-container button:hover {
    background: #b91c1c;
    transform: translateX(-50%) translateY(-2px);
}

.deleted-table-container .fixed-button-15-weeks {
    top: 80px;
}

.deleted-table-container .fixed-button-overdue {
    top: 120px;
}

.deleted-table-container .fixed-button-sixtydue {
    top: 160px;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a8a;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    transition: text-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.hamburger:hover {
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
    opacity: 0.8;
    transform: scale(1.1);
}

.hamburger.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.7);
    transform: scale(1.1);
}

.hamburger.active:hover {
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.9);
    opacity: 0.8;
    transform: scale(1.15);
}

/* Media Queries */
@media (min-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%); /* Hidden by default in desktop */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0; /* No left margin to occupy full width */
        width: 100%;
    }

    .hamburger {
        display: block; /* Show hamburger menu in desktop view */
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        transform: translateX(-100%); /* Hidden by default in mobile */
        background: #1e3a8a;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: none;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    .hamburger {
        display: block; /* Show hamburger menu in mobile view */
    }

    .login-box {
        padding: 1.5rem;
        max-width: 90%;
    }

    .weeks-section .form-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .weeks-section .form-group button {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .add-customer-form {
        max-width: 90%;
        padding: 1.5rem;
    }

    .add-customer-form .form-group input {
        max-width: 100%;
    }

    .customer-table-container, .overdue-table-container, .sixtydue-table-container, .deleted-table-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .customer-table {
        font-size: 0.9rem;
    }

    .customer-table th:nth-child(1),
    .customer-table td:nth-child(1) {
        display: none;
    }

    .customer-table th:nth-child(2),
    .customer-table td:nth-child(2) {
        min-width: 60px;
        left: 0;
    }

    .customer-table th:nth-child(3),
    .customer-table td:nth-child(3) {
        min-width: 80px;
        left: 60px;
    }

    .customer-table th:nth-child(4),
    .customer-table td:nth-child(4) {
        min-width: 100px;
        left: 140px;
    }

    .customer-table th:nth-child(n+5),
    .customer-table td:nth-child(n+5) {
        min-width: 135px;
    }

    .overdue-table th:nth-child(1),
    .overdue-table td:nth-child(1),
    .sixtydue-table th:nth-child(1),
    .sixtydue-table td:nth-child(1),
    .deleted-table th:nth-child(1),
    .deleted-table td:nth-child(1),
    .deleted-overdue-table th:nth-child(1),
    .deleted-overdue-table td:nth-child(1),
    .deleted-sixtydue-table th:nth-child(1),
    .deleted-sixtydue-table td:nth-child(1) {
        display: none;
    }

    .overdue-table th:nth-child(2),
    .overdue-table td:nth-child(2),
    .sixtydue-table th:nth-child(2),
    .sixtydue-table td:nth-child(2),
    .deleted-table th:nth-child(2),
    .deleted-table td:nth-child(2),
    .deleted-overdue-table th:nth-child(2),
    .deleted-overdue-table td:nth-child(2),
    .deleted-sixtydue-table th:nth-child(2),
    .deleted-sixtydue-table td:nth-child(2) {
        min-width: 60px;
        left: 0;
    }

    .overdue-table th:nth-child(3),
    .overdue-table td:nth-child(3),
    .sixtydue-table th:nth-child(3),
    .sixtydue-table td:nth-child(3),
    .deleted-table th:nth-child(3),
    .deleted-table td:nth-child(3),
    .deleted-overdue-table th:nth-child(3),
    .deleted-overdue-table td:nth-child(3),
    .deleted-sixtydue-table th:nth-child(3),
    .deleted-sixtydue-table td:nth-child(3) {
        min-width: 80px;
        left: 60px;
    }

    .overdue-table th:nth-child(4),
    .overdue-table td:nth-child(4),
    .sixtydue-table th:nth-child(4),
    .sixtydue-table td:nth-child(4),
    .deleted-table th:nth-child(4),
    .deleted-table td:nth-child(4),
    .deleted-overdue-table th:nth-child(4),
    .deleted-overdue-table td:nth-child(4),
    .deleted-sixtydue-table th:nth-child(4),
    .deleted-sixtydue-table td:nth-child(4) {
        min-width: 100px;
        left: 140px;
    }

    .overdue-table th:nth-child(n+5),
    .overdue-table td:nth-child(n+5),
    .sixtydue-table th:nth-child(n+5),
    .sixtydue-table td:nth-child(n+5),
    .deleted-table th:nth-child(n+5),
    .deleted-table td:nth-child(n+5),
    .deleted-overdue-table th:nth-child(n+5),
    .deleted-overdue-table td:nth-child(n+5),
    .deleted-sixtydue-table th:nth-child(n+5),
    .deleted-sixtydue-table td:nth-child(n+5) {
        min-width: 95px;
    }

    .deleted-table-container button {
        position: sticky;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
    }

    .deleted-table-container .fixed-button-15-weeks {
        top: 80px;
    }

    .deleted-table-container .fixed-button-overdue {
        top: 120px;
    }

    .deleted-table-container .fixed-button-sixtydue {
        top: 160px;
    }

    .deleted-table, .deleted-overdue-table, .deleted-sixtydue-table {
        margin-top: 80px;
        margin-bottom: 2rem;
    }

    .search-container {
        justify-content: center;
    }

    #customer-search {
        width: 200px;
    }

    .search-button {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
    }

    .content {
        padding: 1rem;
        margin-top: 3rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .weeks-section {
        padding: 1rem;
    }

    .customer-table {
        font-size: 0.8rem;
    }

    .customer-table th:nth-child(1),
    .customer-table td:nth-child(1) {
        display: none;
    }

    .customer-table th:nth-child(2),
    .customer-table td:nth-child(2) {
        min-width: 50px;
        left: 0;
    }

    .customer-table th:nth-child(3),
    .customer-table td:nth-child(3) {
        min-width: 60px;
        left: 50px;
    }

    .customer-table th:nth-child(4),
    .customer-table td:nth-child(4) {
        min-width: 80px;
        left: 110px;
    }

    .customer-table th:nth-child(n+5),
    .customer-table td:nth-child(n+5) {
        min-width: 115px;
    }

    .overdue-table, .sixtydue-table, .deleted-table, .deleted-overdue-table, .deleted-sixtydue-table {
        font-size: 0.8rem;
    }

    .overdue-table th:nth-child(1),
    .overdue-table td:nth-child(1),
    .sixtydue-table th:nth-child(1),
    .sixtydue-table td:nth-child(1),
    .deleted-table th:nth-child(1),
    .deleted-table td:nth-child(1),
    .deleted-overdue-table th:nth-child(1),
    .deleted-overdue-table td:nth-child(1),
    .deleted-sixtydue-table th:nth-child(1),
    .deleted-sixtydue-table td:nth-child(1) {
        display: none;
    }

    .overdue-table th:nth-child(2),
    .overdue-table td:nth-child(2),
    .sixtydue-table th:nth-child(2),
    .sixtydue-table td:nth-child(2),
    .deleted-table th:nth-child(2),
    .deleted-table td:nth-child(2),
    .deleted-overdue-table th:nth-child(2),
    .deleted-overdue-table td:nth-child(2),
    .deleted-sixtydue-table th:nth-child(2),
    .deleted-sixtydue-table td:nth-child(2) {
        min-width: 50px;
        left: 0;
    }

    .overdue-table th:nth-child(3),
    .overdue-table td:nth-child(3),
    .sixtydue-table th:nth-child(3),
    .sixtydue-table td:nth-child(3),
    .deleted-table th:nth-child(3),
    .deleted-table td:nth-child(3),
    .deleted-overdue-table th:nth-child(3),
    .deleted-overdue-table td:nth-child(3),
    .deleted-sixtydue-table th:nth-child(3),
    .deleted-sixtydue-table td:nth-child(3) {
        min-width: 60px;
        left: 50px;
    }

    .overdue-table th:nth-child(4),
    .overdue-table td:nth-child(4),
    .sixtydue-table th:nth-child(4),
    .sixtydue-table td:nth-child(4),
    .deleted-table th:nth-child(4),
    .deleted-table td:nth-child(4),
    .deleted-overdue-table th:nth-child(4),
    .deleted-overdue-table td:nth-child(4),
    .deleted-sixtydue-table th:nth-child(4),
    .deleted-sixtydue-table td:nth-child(4) {
        min-width: 80px;
        left: 110px;
    }

    .overdue-table th:nth-child(n+5),
    .overdue-table td:nth-child(n+5),
    .sixtydue-table th:nth-child(n+5),
    .sixtydue-table td:nth-child(n+5),
    .deleted-table th:nth-child(n+5),
    .deleted-table td:nth-child(n+5),
    .deleted-overdue-table th:nth-child(n+5),
    .deleted-overdue-table td:nth-child(n+5),
    .deleted-sixtydue-table th:nth-child(n+5),
    .deleted-sixtydue-table td:nth-child(n+5) {
        min-width: 75px;
    }

    .add-customer-form {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        max-width: 80%;
    }

    .modal-buttons button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .deleted-table-container button {
        position: sticky;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
    }

    .deleted-table-container .fixed-button-15-weeks {
        top: 80px;
    }

    .deleted-table-container .fixed-button-overdue {
        top: 120px;
    }

    .deleted-table-container .fixed-button-sixtydue {
        top: 160px;
    }

    .deleted-table, .deleted-overdue-table, .deleted-sixtydue-table {
        margin-top: 80px;
        margin-bottom: 2rem;
    }

    .search-container {
        justify-content: center;
    }

    .search-button {
        padding: 0.5rem 0.75rem;
    }

    #customer-search {
        width: 150px;
    }
}