/* Reset and Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    font-size: 12px;
}

.header-strip {
    background-color: #f1f1f1;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-strip img {
    max-width: 200px;
    height: auto;
}

.header-strip h1 {
    margin: 0;
    color: #000000;
    flex-grow: 1;
    text-align: center;
}

.button-blue {
    background-color: #27357d;
    border: 1px solid #27357d;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.button-default {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.container {
    width: calc(100% - 40px);
    margin: 100px auto 20px;
    padding: 20px;
    border: 2px solid #27357d;
    border-radius: 10px;
    background-color: #f9f9f9;
    overflow-x: auto;
    padding-right: 20px; /* Reduce right padding */
}

.container::-webkit-scrollbar {
    height: 10px;
}

.container::-webkit-scrollbar-thumb {
    background-color: #27357d;
    border-radius: 10px;
}

h1, h2, h3, h4, h5, h6 {
    color: #000000;
    text-align: left;
    font-size: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-right: 20px;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 2px; /* Reduce padding for narrower columns */
    vertical-align: top;
    white-space: nowrap;
    text-align: left;
    max-width: 100px; /* Add a max-width to ensure narrow columns */
}

table th {
    background-color: #27357d;
    color: #fff;
}

table td {
    background-color: #fff;
}

/* Narrow date picker */
table input[type="date"] {
    width: 85px; /* Reduce the width of the date picker */
    height: 28px; /* Narrow down the height */
    padding: 3px;
    font-size: 12px; /* Adjust font size for compactness */
}

table td input[type="date"]::-webkit-inner-spin-button,
table td input[type="date"]::-webkit-calendar-picker-indicator {
    width: 12px; /* Narrow down the calendar icon */
}

table td select, table td input[type="checkbox"] {
    width: 100%; /* Ensure dropdowns and checkboxes fit inside the cell */
    height: 28px; /* Consistent height with the date picker */
}

/* Narrow specific columns */
table td:nth-child(3), /* ODC-Color */
table td:nth-child(4), /* ODC-Position */
table td:nth-child(7) /* Agent */ {
    max-width: 60px; /* Further narrow down the Agent and ODC columns */
    width: 60px;
}

.status-checkbox:checked {
    background-color: #27357d !important;
    border-color: #27357d !important;
}

input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
}

input[type="checkbox"]:checked {
    background-color: #27357d; /* ITCER dark blue */
    border-color: #27357d;
}

input[type="checkbox"]:checked::before {
    content: '\2714'; /* Checkmark */
    color: white;
    font-size: 16px;
    display: block;
    text-align: center;
}

/* Flex layout for filter container */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.filter-container input,
.filter-container select {
    flex: 1;
    margin-right: 10px;
    min-width: 150px;
}

footer {
    display: flex;
    justify-content: center; /* Center footer content */
    padding: 10px 20px;
    border-top: 1px solid #ccc;
    color: #000000;
    font-size: 14px;
    width: calc(100% - 40px); /* Match footer width with container and header */
    margin: 0 auto;
    background-color: #27357d;
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-container button {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    cursor: pointer;
    border-radius: 4px;
}

/* Occurrence Dot Style */
.occurrence-dot {
    color: brown; /* Sets the color of the dots */
    radius: 4; /* Sets the radius of the dots */
    fillColor: brown;
    fillOpacity: 1;
    stroke: true;
    weight: 1;
    opacity: 1;
    z-index: 1200; /* Higher z-index to bring to the foreground */
}

.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .header-strip {
    background-color: #1e1e1e;
}

.dark-mode .form-container {
    background-color: #1e1e1e;
    border-color: #27357d;
}

.dark-mode .form-group input,
.dark-mode .form-group select {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #555555;
}

.dark-mode footer {
    border-color: #555555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        overflow-x: auto;
    }

    .header-strip img {
        max-width: 150px;
    }

    .button-blue, .button-default {
        font-size: 10px;
        padding: 8px;
    }

    table th, table td {
        padding: 3px;
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-container input,
    .filter-container select {
        flex: 1 0 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}
