/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #f4f4f4;
    color: #333;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
            height: 100vh;
            background-color: #10452d;
            color: white;
            position: fixed;
            top: 0;
            left: 0;
            transition: transform 0.3s ease-in-out;
            padding: 20px;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background: #1c5c3e;
}

/* Main Dashboard */
.container {
   margin-left: 260px;
            padding: 20px;
            width: calc(100% - 260px);
            transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
}
.container2 {
   
    padding: 20px;
    width: calc(100% - 270px);
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    margin-top: 15px;
    color: #10452d;
}

/* Form Styling */
form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}





button:hover {
    background: #1c5c3e;
}

/* Charts */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100px;
    }
    
    .sidebar h2 {
        font-size: 18px;
    }
    
    .container {
        margin-left: 120px;
        width: calc(100% - 120px);
        
    }
   
}
/* Table Container */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    overflow-x: auto;
}

/* General Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* Table Headers */
thead {
    background-color: #10452d;
    color: white;
    font-weight: bold;
}

/* Table Rows */
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Alternating Row Colors */
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #e1f5e1;
}

/* Table Buttons (Edit, Delete) */
.table-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.edit-btn {
    background-color: #f0ad4e;
    color: white;
}

.delete-btn {
    background-color: #d9534f;
    color: white;
}

.edit-btn:hover {
    background-color: #ec971f;
}

.delete-btn:hover {
    background-color: #c9302c;
}

/* Responsive Table */
@media (max-width: 768px) {
    th, td {
        font-size: 14px;
        padding: 10px;
    }
}

/* Task Form Container */
.task-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Form Heading */
.task-form h2 {
    text-align: center;
    color: #10452d;
    margin-bottom: 10px;
}

/* Form Group (Spacing & Layout) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Labels */
.task-form label {
    font-weight: bold;
    color: #333;
}

/* Input & Select Fields */
.task-form input,
.task-form textarea,
.task-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}

/* Focus Effect */
.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus {
    border-color: #10452d;
    outline: none;
    box-shadow: 0px 0px 5px rgba(16, 69, 45, 0.3);
}

/* Textarea Resizing */
.task-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Submit Button */
.submit-btn {
    background: #10452d;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

/* Button Hover Effect */
.submit-btn:hover {
    background: #0d3b23;
}
.titletop {
            text-align: center;
            margin-bottom: 10px;
        }

        /* Hide Sidebar */
.sidebar.hidden {
            transform: translateX(-100%);
        }

        /* Menu Button */
.menu-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #10452d;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 16px;
            z-index: 1000;
            border-radius: 5px;
            width: 100px;
        }

.menu-btn:hover {
            background-color: #15683e;
        }
         .container.expanded {
            margin-left: 0;
            width: 100%;
           
        }

@media print {
    /* Hide the sidebar and menu button */
    .sidebar, .menu-btn {
        display: none;
    }

    /* Ensure content takes full width */
    .content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Avoid page breaks in important sections */
    h1, h2, h3, table, .chart {
        page-break-inside: avoid;
    }

    /* Improve table readability */
    table {
        width: 100%;
        border-collapse: collapse;
    }

    table, th, td {
        border: 1px solid black;
        padding: 8px;
        text-align: left;
    }
}
/* Weekly Collections Form */
/* Table Styling */
.arrears-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.arrears-table th {
    background: #10452d;
    color: #fff;
    padding: 12px;
    text-align: left;
}

.arrears-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.arrears-table tr:nth-child(even) {
    background: #f9f9f9;
}

.arrears-table tr:hover {
    background: #f1f1f1;
}

/* Investor Key (Legend) */
#arrearsKey {
    margin-top: 15px;
    background: #e6f2e6;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid #10452d;
}

#arrearsKey h4 {
    margin-bottom: 10px;
    color: #10452d;
}

#arrearsKey div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#arrearsKey span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
}
