/* Shared grid/table styles for Status and Products pages */

.gridTable {
    width: 100%;
    border-collapse: collapse;
}

.gridstyle {
    white-space: nowrap;
    padding: 4px 8px;
}

.altrowstyle {
    background-color: #f9f9f9;
}

/* Text alignment utilities for grid cells */
.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-centered {
    text-align: center;
}
/* Column width utilities */
.w-50 { width: 50px!important; }
.w-60 { width: 60px!important; }
.w-70 { width: 70px!important; }
.w-80 { width: 80px !important; }

.w-30-50 {width:50px; min-width:30px!important; }
.w- {width:auto!important;}
/* Hidden columns */
.hidden-col {
    display: none;
}

/* Priority column visibility (responsive) */
.priority_1_column {
    display: table-cell;
}

.priority_2_column {
    display: table-cell;
}

.priority_3_column {
    display: table-cell;
}

.priority_4_column {
    display: none;
}





/* Responsive column header labels – full (desktop) vs short (<=1024px) */
.col-short {
    display: none;
}

@container (max-width: 1401px) {
    .col-product, .w-auto-col {
        /* white-space: normal; */
        /* overflow-wrap: break-word; */
        overflow-wrap:none;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;        
    }
    .col-full {
        display: none;
    }
    .col-short {
        display: inline;
    }
}

/* @container (max-width: 960px) {
    .priority_3_column {
        display: none;
    }
} */
/* .fileref{
    visibility: hidden;
} */
/* Pager */
.GridPager {
    text-align: right;
    padding: 8px 0;
}

.GridPager a {
    padding: 2px 6px;
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
}

.GridPager a:hover {
    text-decoration: underline;
}

.GridPager strong {
    padding: 2px 6px;
    font-weight: bold;
}

@media (max-width: 665px) {
    /* ≥44px tap targets (project mobile rule) */
    .GridPager a,
    .GridPager strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 2px 10px;
    }
}

/* Expandable detail rows */
.data-row {
    cursor: pointer;
    /* background-color:#32CD3222; */
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
}

.product-cell {
    display: flex;
    align-items: center;
}

.row-number-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expand-indicator {
    margin-left: 0px;
    margin-right:3px;
    width: 20px;
    min-width: 20px !important;
    height: 15px;
    object-fit: fill;
    transition: transform 0.2s ease;
    color: var(--color-brand-text);
}

.expand-indicator.expanded {
    transform: rotate(180deg);
}

.detail-row {
    display: none;
}

.detail-row.active {
    display: table-row;
}

.detail-pane {
    display: flex;
    gap: 16px;
    padding: 3px 8px;
    align-items: flex-start;
}
.detail-row.active > td {
    padding-top: 0;
    margin-top: 0;
}
.detail-data {
    flex: 1;
    min-width: 0;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px;
}

.btn-reorder {
    white-space: nowrap;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-item {
    display: flex;
    gap: 6px;
}

.detail-label::after {
    content: ":";
}

.detail-label {
    font-weight: 600;
}

.detail-value {
    /* default styling */
}

/* Levert status indicator */
.levert-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #555;
    vertical-align: middle;
}

.levert-empty {
    background: white;
}

.levert-half {
    background: linear-gradient(to right, var(--color-success) 50%, white 50%);
}

.levert-full {
    background: var(--color-success);
}

.detail-updated {
    font-size: 0.85em;
    color: #666;
    padding: 4px 8px;
}



@media (max-width: 1024px) {
    .priority_3_column {
        display: none;
    }
}

@media (max-width: 768px) {

    .priority_2_column {
        display: none;
    }
    .gridstyle {
        padding: 15px 8px;
    }
    .wrapable {
        white-space: normal;
        overflow-wrap: break-word;
    }
    /* .w-auto-col {
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    } */
}

@media (max-width: 520px) {
    .col-product {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cart-col-prodnum {
        padding-left: 10px;
    }
    .cart-col-desc {
        margin-left: -7px;
    }
    .detail-item {
        margin-right: 5px;
    }
    .L_hide {
        display: none;
    }    

}
@media (max-width: 400px) {

    .site-container {
        padding-left: 3px !important;
    }
    .priority_1_column {
        padding: 15px 5px;
    }

}

@media (max-width: 358px) {

    .M_hide {
        display: none;
    }
}