/* Basic reset */
/* Main container for the matrix */
.trip-checklist-matrix-container {
    display: flex;
    flex-direction: column;
    width: 300px; /* Fixed width of the container */
    height: 400px; /* Fixed height of the container */
    overflow: hidden; /* Hide overflow to control scrolling */
    border: 1px solid #ccc;
}

/* Header row for member names */
.trip-checklist-header-row {
    display: flex;
    position: sticky;
    top: 0;
    background-color: #f3f3f3;
    z-index: 10;
}

.trip-checklist-corner {
    width: 200px; /* Adjust the width of the corner */
    background-color: darkslategray;
}

.trip-checklist-member {
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    width: 200px; /* Minimum width for scrolling */
    min-width: 200px; /* Minimum width for scrolling */
    background-color: darkslategray;
    color: white;
    font-weight: bold;
    font-size: 8pt;
}

/* Scrollable container for items and matrix */
.trip-checklist-scroll-container {
    display: flex;
    overflow: auto; /* Enable scrolling for overflow content */
    width: 100%; /* Ensure it takes the full width of the parent */
    height: calc(100% - 40px); /* Adjust height based on header height */
}

/* Side column for items */
.trip-checklist-side-column {
    display: flex;
    flex-direction: column;
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #f3f3f3;
}

.trip-checklist-item {
    font-size: 8pt;
    width: 200px; /* Adjust the width of items */
    text-align: left;
    padding-left: 10px;
    height: 40px; /* Minimum height for scrolling */
    line-height: 40px; /* Minimum height for scrolling */
    display: flex;
    align-items: center;
    align-content: center;
    color: #333333;
    background-color: whitesmoke;
    border-bottom: 1px solid lightgrey;
}

.trip-checklist-item-header {
    color: white;
    background-color: #333333;
    border-bottom: 1px solid #333333;
}

/* Matrix for checkboxes */
.trip-checklist-matrix {
    display: flex;
    flex-direction: column;
    /*min-width: 600px; *//* Set a minimum width larger than container width */
    width: auto; /* Allow the width to expand based on content */
}

.trip-checklist-row {
    display: flex;
}

.trip-checklist-cell {
    font-size: 8pt;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid lightgrey;
    /*min-width: 150px; /* Ensure cells are wide enough for scrolling */
    width: 200px; /* Ensure cells are wide enough for scrolling */
    display: flex;
    align-items: center;
    background-color: white;
    justify-content: center;
}

/*  sdgfsdgsdgsdgsgdsdg sdg */

.checklists_menu_option_selected {
    background-color: #434343;
    color: white;
}

@media (max-width: 768px) {
    .users_settings_panel {
        z-index: 5100;
    }
}

.trip-checklist-settings-item {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 7pt;
    border-bottom: 1px solid lightgrey;
    padding: 4px 0;
    gap: 6px;
}

.trip-checklist-settings-category-header {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 7pt;
    border-bottom: 1px solid lightgrey;
    background-color: darkslategray;
    color: white;
    padding: 4px 0;
    gap: 6px;
}

/* NAME COLUMN – takes remaining width, ellipsis */
.trips-checklist-settings-item-column-name {
    flex: 1 1 auto;
    min-width: 0;                 /* REQUIRED for ellipsis */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

/* NORMAL FIXED COLUMNS */
.trips-checklist-settings-item-column {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    width: 50px;
}

/* BUTTON COLUMNS – fixed width */
.aonline-button-block {
    flex: 0 0 34px;               /* button column width */
    display: flex;
    justify-content: center;
}

.aonline-button {
    width: 28px;
    height: 28px;
    padding: 0;
}

.aonline-zebra {
    line-height: 40px;
    border-left: 1px solid lightgrey;
    border-right: 1px solid lightgrey;
}

.aonline-zebra.aonline-zebra-small {
    line-height: 25px;
    border-left: none !important;
    border-right: none !important;
}

.aonline-zebra.aonline-zebra-large {
    line-height: 40px;
    border-left: none !important;
    border-right: none !important;
}

.aonline-zebra> .trip-checklist-settings-item:nth-child(even) {
    background-color: white;
    border-bottom: 1px solid lightgrey;
    font-size: 8pt;
}
.aonline-zebra> .trip-checklist-settings-item:nth-child(odd) {
    background-color: #EBEBEB;
    border-bottom: 1px solid lightgrey;
    font-size: 8pt;
}