.app-root {
    position: relative;
    min-height: 100vh;
    background-image: url('/Images/1567762.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}
.cmdBar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}
.cmdBar a {
    background: transparent;
    border: none;
    font-size: 36px;
    padding: 6px 10px;
    color: Snow;
    text-decoration: none;
}
.cmdBar.shopMode .normalOnly {
    display: none;
}
.cmdBar.shopMode .shopOnly {
    display: flex;
}
.shopOnly {
    display: none;
}
.cmdBar .allModes {
    display: inline-flex;
}
.cmdBar i {
    background: transparent;
}
.cmdBar a:hover {
    color:yellow;
}
.cmdBar .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    cursor: pointer;
}
.cmdBar a:focus,
.cmdBar a:active {
    background:transparent;
    outline:none;
    box-shadow:none;
}
.icon-wrapper {
    display: inline-block;
}
.icon-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.icon-stack i {
    font-size: 22px;
}
.icon-count {
    font-size: 10px;
    font-weight: bold;
    color: #00FF00;
    margin-top: -2px;
}
.hiddenCol {
    display: none;
}
.icon-active {
    color: dodgerblue;
}
.icon-off {
    color: white;
    opacity: 0.6;
}
.icon-btn {
    background: none;
    border: none;
    padding: 2px 6px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 16px;
}
.icon-btn:hover {
    opacity: 0.7;
}
.icon-btn:active {
    transform: scale(0.9);
}
.chooserOverlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0,0,0,0.4);
}
.shoppingHeader {
    display: grid !important;
    grid-template-columns: 140px 40px 1fr 120px 100px 100px;
    column-gap: 10px;
    padding: 6px 8px;
    font-weight: bold;
    border-bottom: 2px solid #888;
    margin-bottom: 4px;
    width: 100%
}
.sortable {
    cursor: pointer;
    user-select: none;
}
.shoppingGrid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    align-items: stretch;
}
/* Mobile first */
.shoppingRow {
    text-align: left !important;
    display: grid;
    grid-template-columns: 140px 40px 1fr 120px 100px 100px;
    column-gap: 10px;
}
    .shoppingRow .col {
        overflow: hidden;
        text-align: left !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
.shoppingRow .qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.shoppingRow .picked {
    display: flex;
    align-items: center;
    gap: 6px;
}
.shoppingRow .product,
.shoppingRow .location,
.commentText {
    text-align: left !important;
}
.shoppingRow .product,
.commentText {
    justify-content: flex-start;
}
.shoppingRow .price,
.shoppingRow .notes,
.shoppingRow .actions {
    display: flex;
    justify-content: center;
}
.quickHelpPanel {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    width: 100%;
    max-width: 500px;
    min-height: 120px;
    overflow-y: auto;
    resize: none;
}
.quickHelpPanel p {
    margin: 8px 0;
}
@media (max-width: 1024px) {
    .cmdBar {
        width: 80%;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        column-gap: 10px;
        row-gap: 4px;
        margin: 0 auto;
    }
    .cmdBar .icon-wrapper {
        min-width: 52px;
        min-height: 52px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cmdBar i {
        font-size: 1.7rem;
    }
    .cmdBar a {
        background: transparent;
        border: none;
        font-size: 28px;
        padding: 6px 10px;
        color: Snow;
        text-decoration: none;
    }
    .cmdBar.shopMode .normalOnly {
        display: none;
    }
    .cmdBar.shopMode .shopOnly {
        display: flex;
    }
    .shopOnly {
        display: none;
    }
    #ResultsPanel {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 8px;
        background: #202020;
        border-radius: 12px;
    }
    /* Header row */
    .shoppingHeader {
        display: grid !important;
        grid-template-columns: 100px 40px 1fr 120px 100px 100px;
        column-gap: 10px;
        width: 100%;
        padding: 8px 10px;
        margin-bottom: 6px;
        background: #111;
        color: #ffd800;
        font-weight: bold;
        border-bottom: 2px solid #666;
        border-radius: 8px;
    }

    /* Grid container */
    .shoppingGrid {
        display: flex !important;
        flex-direction: column;
        text-align: left;
        gap: 6px;
        width: 100%;
        border: none !important;
    }
    /* Data rows */
    .shoppingRow {
        display: grid;
        grid-template-columns: 100px 40px 1fr 120px 100px 100px;
        column-gap: 4px;
        padding: 8px 10px;
        transition: background-color 0.2s ease;
        color: #f0f0f0;
        border: 1px solid #444;
        border-radius: 8px;
        text-align: left;
    }
    .shoppingHeader,
    .shoppingRow {
        box-sizing: border-box;
    }
    .currentShoppingRow {
        background: rgba(255,255,0,.15);
        outline: 2px solid gold;
        scroll-margin-top: 120px;
    }
    .completedShoppingRow {
        opacity: 0.65;
    }
    .skippedShoppingRow {
        opacity: 0.45;
    }
    /* Slight row separation */
    .shoppingRow:nth-child(even) {
        background: #383838;
    }

    /* Explicitly force readable text on iPhone */
    .shoppingRow .col {
        color: #f0f0f0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
    }

    .shoppingRow .qty {
        display: flex;
        align-items: center;
        gap: 3px;
        padding-right: 0;
    }
    .shoppingRow .picked {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .shoppingRow .product,
    .shoppingRow .location,
    .commentText {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        padding-left: 2px;
        text-align:left
    }

    .shoppingRow .price,
    .shoppingRow .notes,
    .shoppingRow .actions {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .commentRow {
        display: grid;
        grid-template-columns: 100px 40px 1fr 120px 100px 100px;
        column-gap: 10px;
    }
    .commentText {
        grid-column: 3;
        justify-self: stretch;
        text-align: left;
        padding-left: 10px;
        font-style: italic;
        opacity: 0.9;
    }
}
/* Override Bootstrap default body typography color */
html body {
    color: var(--color-text);
}
