/* System Maintenance Page Styles */
body {
    /* background-color: #ffffff; */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23b3e0e8' fill-opacity='0.15' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
    font-family: Arial, sans-serif;
}

/* .container {
    max-width: 1200px;
    width: 100%;

    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
}

@media screen and (min-width: 1281px) {
    .container {
        max-width: 70%;
    }
} */

/* Header styling */
.header-section {
    padding: 10px 0 20px 0;
    margin-bottom: 20px;
}

.system-title {
    font-size: 24px;
    font-weight: normal;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge {
    color: white;
    font-weight: 400;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 14px;
}

.blue.darken-3 {
    background-color: #1565c0;
}

/* Filter container */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* margin-bottom: 20px; */
}

/* Filter sections */
.filter-section {
    display: flex;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.filter-column {
    flex: 1;
    padding: 0;
    border-right: 1px solid #e0e0e0;
}

.filter-container {
    width: 50%;
}

#right-container {
    width: 50%;
    margin-left: 32px;
}

.left-container {
    width: 50%;
    /* margin-left: 32px; */
}

.filter-column:last-child {
    border-right: none;
}

.filter-header {
    /* background-color: #f5f5f5; */
    padding: 20px 16px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-header .material-icons {
    font-size: 18px;
    color: var(--primary-blue);
}

.filter-options {
    padding: 10px 15px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-options label {
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.filter-options p {
    margin: 8px 0;
}

/* Custom checkbox styling */
.filled-in,
.title-checkbox {
    position: absolute;
    opacity: 0;
    /* pointer-events: none; */
    z-index: 2;
}

.title-checkbox {
    position: relative;
}

.title-checkbox + span,
.filled-in + span {
    position: relative;
    white-space: nowrap;
}

.title-checkbox + span:before,
.filled-in + span:before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #9e9e9e;
    border-radius: 2px;
    background-color: transparent;
    transition: all 0.3s;
}

.title-checkbox:checked + span:before,
.filled-in:checked + span:before {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    border-radius: 4px;
}

.title-checkbox:checked + span:after,
.filled-in:checked + span:after {
    content: "";
    position: absolute;
    left: -22px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.title-checkbox:checked + span:after {
    border-width: 0 2px 0px 0;
    transform: rotate(90deg);
}

/* Date range section */
.date-range-section {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 20px;
}

.date-range-title {
    padding: 0 16px;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 0;
}

/* .date-range-header {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 5px;
} */

.date-range-header::before {
    content: "date_range";
    font-family: "Material Icons";
    font-size: 18px;
    color: #1565c0;
}

.date-range-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 16px; */
    margin: 0 16px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border-bottom: solid 1px #e0e0e0;
    margin-bottom: 16px;
}

.date-display-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.date-display {
    /* padding: 8px 12px; */
    /* border: 1px solid #e0e0e0; */
    border-radius: 4px;
    /* background-color: #f9f9f9; */
    /* font-family: monospace; */
    font-size: 16px;
    color: #333;
    min-width: 80px;
    width: 50%;
    /* text-align: center; */
    text-align: left;
}

/* .date-arrow {
    color: #1565c0;
    font-weight: bold;
    font-size: 16px;
    font-size: 24px;
} */

.date-picker-icon {
    color: #1565c0;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-icon:hover {
    background-color: #f0f7ff;
}

.date-picker-icon .material-icons {
    color: var(--primary-blue);
    font-size: 20px;
}

/* Maintenance schedule */
.maintenance-schedule {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

table {
    width: 100%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.maintenance-schedule {
    max-height: 500px;
    overflow: scroll;
}

thead {
    background-color: #f5f5f5;
}

th {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

th.sortable {
    cursor: pointer;
    /* display: flex; */
    align-items: center;
}

th.sortable .material-icons {
    margin-left: 5px;
    color: var(--primary-blue);
    font-size: 16px;
}

td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.procedure-text {
    margin: 0;
}

/* Custom radio button styling */
.frequency-options {
    display: flex;
    align-items: center;
}

.frequency-options label {
    margin-right: 15px;
    padding-left: 25px;
    position: relative;
}

.with-gap {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.with-gap + span {
    position: relative;
}

.with-gap + span:before {
    content: "";
    position: absolute;
    left: -25px;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #9e9e9e;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s;
}

.with-gap:checked + span:before {
    border-color: #1565c0;
}

.with-gap:checked + span:after {
    content: "";
    position: absolute;
    left: -21px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #1565c0;
}

/* Making specific columns widths match the screenshot */
.procedure-column {
    width: 40%;
}

.frequency-column {
    width: 25%;
}

.due-date-column,
.last-performed-column {
    width: 17.5%;
}

/* Add up/down arrow for sortable columns */
.sortable {
    position: relative;
}

.sortable i {
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-section {
        flex-direction: column;
    }

    .filter-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .filter-column:last-child {
        border-bottom: none;
    }
}
