/* 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;
}

/*  sdgfsdgsdgsdgsgdsdg sdg */

.checklists_menu_option_selected {
    background-color: #434343;
    color: white;
}

@media (max-width: 768px) {
    .users_settings_panel {
        z-index: 5100;
    }
}

.trip-checklist-item {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 7pt;
    border-bottom: 1px solid lightgrey;
    padding: 4px 0;
    gap: 6px;
}

.trip-checklist-category-header {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 7pt;
    background-color: darkslategray;
    color: white;
    padding: 4px 0;
    gap: 6px;
}

.trip-checklist-item.optional {
}

.trip-checklist-item.recommended {
    background-color: #FFE0B2;
}

.trip-checklist-item.required {
    background-color: lightcoral;
}

/* NAME COLUMN – takes remaining width, ellipsis */
.trip-checklist-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 */
.trip-checklist-item-column {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    width: 50px;
}

.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> .trips-checklist-item:nth-child(even) {
    background-color: white;
    border-bottom: 1px solid lightgrey;
    font-size: 8pt;
}
.aonline-zebra> .trips-checklist-item:nth-child(odd) {
    background-color: #EBEBEB;
    border-bottom: 1px solid lightgrey;
    font-size: 8pt;
}

.trip-checklist-grid-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;

    display: grid;
    grid-template-columns: 150px auto;
    grid-template-rows: 40px auto;
    border-left: 1px solid lightgrey;
}

/* ───────── corner ───────── */
.trip-checklist-grid-corner {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 4;
    background: #e6e6e6;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 8px;
}

/* ───────── column headers ───────── */
.trip-checklist-grid-columns {
    position: sticky;
    top: 0;
    z-index: 3;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 150px;

    background: #f3f3f3;
    border-bottom: 1px solid #ccc;
}

/* ───────── row headers ───────── */
.trip-checklist-grid-rows {
    position: sticky;
    left: 0;
    z-index: 2;

    display: grid;
    grid-auto-rows: 40px;

    background: #f9f9f9;
    border-right: 1px solid #ccc;
}

/* ───────── main content ───────── */
.trip-checklist-grid-content {
    display: grid;
    grid-template-columns: repeat(3, 150px);
    grid-auto-rows: 40px;
}

/* ───────── cells ───────── */
.trip-checklist-cell {
    font-size: 7pt;
    display: flex;
    align-items: center;
    background-color: white;
    justify-content: center;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.trip-checklist-cell-item {
    background-color: #666666;
    color: white;
    border-bottom: 1px solid lightgrey;
    justify-content: flex-start;
    padding: 5px;
}

.trip-checklist-cell-header {
    background-color: darkslategray;
    color: white;
    font-weight: bold;
}

.trip-checklist-cell-complete {
    background-color: #c6efce;
    border-bottom: 1px solid #33a333;
    border-right: 1px solid #33a333;
    color: #006100;
}

.trip-checklist-cell-incomplete {
    background-color:#ffcccc;
    border-bottom: 1px solid #dd7777;
    border-right: 1px solid #dd7777;
    color:#A30000;
}