/* 20260816 20:19 */
/* =============================================================================
   maininit.css - Shared styles (main0 + main1)
   ============================================================================= */

/* Hero Section */
.hero-section h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
}

.hero-section h1 strong {
    font-weight: 700;
    color: #007bff;
}

.hero-section .lead {
    color: #666;
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-section h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefits-section p {
    color: #666;
    font-size: 0.95rem;
}

/* Auth Section */
.auth-section {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* Silent Mode Button */
.obv-silent-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.15s ease;
    line-height: 1;
}

.obv-silent-btn:hover {
    background-color: rgba(0,0,0,0.07);
}

.obv-silent-btn .fa-volume-high {
    font-size: 1.4rem;
    color: #06ac01;
}

.obv-silent-btn .fa-volume-xmark {
    font-size: 1.4rem;
    color: #adb5bd;
}

/* Status Badges - Geo and Mic */
.gclsStatusBadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    background-color: #adb5bd;
    color: #fff;
}

.gclsStatusBadge:hover {
    opacity: 0.85;
}

.gclsStatusBadge.cls-status-ok      { background-color: #06ac01; color: #fff; }
.gclsStatusBadge.cls-status-error   { background-color: #dc3545; color: #fff; }
.gclsStatusBadge.cls-status-unknown { background-color: #adb5bd; color: #fff; }
.gclsStatusBadge.cls-status-manual  { background-color: #0d6efd; color: #fff; }

/* Manual location override icon */
.gclsLocOverride {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.85rem;
    color: #adb5bd;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.gclsLocOverride:hover {
    color: #0d6efd;
}

/* Settings Bar */
.settings-bar {
    background-color: #f8f9fa;
}

.settings-bar .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

/* Input Area */
.input-area .input-group-lg .form-control {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.input-area .btn-success {
    padding: 0.5rem 1rem;
}

/* Status Area */
.status-area {
    min-height: 40px;
}

.status-area .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
}

/* Conversation Area */
.conversation-area .card-body {
    padding: 1rem;
}

.ai-response-question,
.ai-response-confirmation,
.ai-response-suggestion,
.ai-response-error {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.ai-response-error {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
}

.user-input {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e7f3ff;
    text-align: right;
}

/* Venue Area */
.venue-area .text-muted {
    font-size: 0.95rem;
}

/* Business Cards */
.business-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.business-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.business-card .badge-open {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.business-card .badge-closed {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Order Ticket Area */
.order-ticket {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    background-color: #fff;
}

.ticket-items {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    margin: 1rem 0;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.ticket-totals {
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.total-final {
    border-top: 2px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.payment-badge {
    text-align: center;
    padding: 0.75rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Footer Links */
.footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Test Controls */
.test-controls {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.test-controls h6 {
    margin-bottom: 1rem;
    color: #856404;
}

/* ===== Business Hero Header ===== */
.obv-biz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.obv-biz-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.obv-biz-nearby-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
}

.obv-biz-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.obv-biz-address {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* ===== AI Message Bar ===== */
.obv-ai-message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.obv-ai-confirmation {
    background-color: #d1e7dd;
    color: #0a3622;
    border-left: 3px solid #06ac01;
}

.obv-ai-question {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 3px solid #ffc107;
    font-weight: 500;
}

/* ===== Order Card ===== */
.obv-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 12px;
    background-color: #fff;
    overflow: hidden;
}

.obv-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.obv-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #130076;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.obv-order-remove {
    font-size: 0.8rem;
    color: #dc3545;
    text-decoration: none;
}

.obv-order-remove:hover { text-decoration: underline; }

.obv-order-footer {
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obv-order-instructions {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    font-size: 0.8rem;
    color: #555;
    resize: none;
    outline: none;
    min-height: 28px;
    max-height: 80px;
    overflow-y: auto;
    padding: 2px 0;
    line-height: 1.4;
    font-family: inherit;
}

.obv-order-instructions::placeholder {
    color: #bbb;
    font-style: italic;
}

.obv-add-item {
    font-size: 0.85rem;
    color: #06ac01;
    text-decoration: none;
    font-weight: 500;
}

.obv-add-item:hover { text-decoration: underline; }

/* ===== Add Order ===== */
.obv-add-order-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.obv-add-order-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px dashed #06ac01;
    background: #fff;
    color: #06ac01;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.obv-add-order-btn:disabled {
    border-color: #adb5bd;
    color: #adb5bd;
    cursor: not-allowed;
}

.obv-add-order-hint {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* ===== Empty State ===== */
.obv-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #555;
    font-size: 1.05rem;
}

.obv-empty-add-item {
    margin-top: 16px;
    font-size: 1rem;
}

/* ===== Item Row ===== */
.obv-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.obv-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.obv-item-info {
    flex: 1;
    min-width: 0;
}

.obv-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-item-size {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.obv-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

.obv-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.obv-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    line-height: 1;
}

.obv-qty-btn:hover { background-color: #f0f0f0; }

.obv-qty-val {
    font-weight: 600;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.obv-item-remove {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.obv-item-remove:hover { color: #dc3545; }

/* ===== Ticket Footer ===== */
.obv-ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    border-top: 2px solid #e0e0e0;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    background-color: #f5f6fa;
    gap: 8px;
}

.obv-menu-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.obv-total {
    font-size: 1.1rem;
    color: #222;
    flex: 1;
    text-align: center;
}

.obv-submit-btn {
    min-width: 110px;
    font-weight: 600;
}

/* ===== Add-on Accordion ===== */
.obv-menu-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.obv-addon-toggle {
    padding: 4px 0 4px 74px;
    font-size: 0.8rem;
    color: #06ac01;
    cursor: pointer;
    user-select: none;
}

.obv-addon-toggle:hover {
    text-decoration: underline;
}

.obv-addon-panel {
    padding: 6px 0 6px 74px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.obv-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.obv-addon-row:last-child {
    border-bottom: none;
}

.obv-addon-name {
    font-size: 0.85rem;
    color: #444;
}

.obv-addon-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obv-addon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    line-height: 1;
}

.obv-addon-btn:hover {
    background-color: #f0f0f0;
}

.obv-addon-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* ===== Type Selection Pills ===== */
.obv-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.obv-type-pill {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.obv-type-pill:hover {
    border-color: #888;
    color: #222;
}

.obv-type-pill-selected {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.obv-type-pill-selected:hover {
    border-color: #157347;
    background: #157347;
}

.obv-submit-hint {
    font-size: 0.78rem;
    color: #dc3545;
    text-align: center;
    margin-bottom: 4px;
    flex-basis: 100%;
}

/* ===== Menu Modal ===== */
.obv-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.obv-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 6px;
}

.obv-menu-item:last-child {
    border-bottom: none;
}

.obv-menu-item:hover,
.obv-menu-item-clickable:hover {
    background-color: #f5f9f5;
}

.obv-menu-item-clickable {
    cursor: pointer;
}

.obv-menu-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.obv-menu-item-info {
    flex: 1;
    min-width: 0;
}

.obv-menu-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.obv-menu-item-price {
    font-size: 0.88rem;
    color: #666;
    margin-top: 3px;
}

/* ===== Car Results ===== */
.obv-car-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.obv-car-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    align-items: flex-start;
}

.obv-car-img {
    width: 100px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.obv-car-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.obv-car-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.obv-car-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-car-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #06ac01;
    flex-shrink: 0;
}

.obv-car-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.obv-car-miles,
.obv-car-color {
    font-size: 0.8rem;
    color: #555;
}

.obv-car-cond-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
}

.obv-cond-poor      { background-color: #dc3545; }
.obv-cond-fair      { background-color: #fd7e14; }
.obv-cond-good      { background-color: #ffc107; color: #333; }
.obv-cond-verygood  { background-color: #20c997; }
.obv-cond-excellent { background-color: #06ac01; }
.obv-cond-likenew   { background-color: #0d6efd; }

.obv-car-dealer {
    font-size: 0.8rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-car-dealer-name {
    font-weight: 600;
}

.obv-car-dealer-addr {
    color: #888;
}

.obv-car-dealer-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.obv-car-phone,
.obv-car-web {
    font-size: 0.78rem;
    color: #0d6efd;
    text-decoration: none;
}

.obv-car-phone:hover,
.obv-car-web:hover {
    text-decoration: underline;
}

/* ===== Inventory ===== */
.obv-inventory-list {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.obv-item-location {
    font-size: 0.8rem;
    color: #06ac01;
    margin-top: 2px;
}

.obv-item-not-in-inventory {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 2px;
}

.obv-item-missing {
    opacity: 0.65;
}

.obv-item-missing .obv-qty-btn {
    cursor: not-allowed;
    opacity: 0.4;
}

/* ===== List Toolbar ===== */
.obv-list-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
    background-color: #f0f7f0;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    margin-bottom: 12px;
}

.obv-list-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.obv-list-toolbar-actions button {
    flex: 1 1 0;
    min-width: 0; /* let long translations ellipsize/shrink instead of forcing the row wide */
}

.obv-list-toolbar-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obv-list-toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.obv-list-select {
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid #b0d4b0;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: 140px;
    flex: 1;
}

.obv-list-name-input {
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid #b0d4b0;
    border-radius: 6px;
    background: #fff;
    color: #333;
    flex: 2;
    min-width: 120px;
    max-width: 220px;
    outline: none;
}

.obv-list-name-input:focus {
    border-color: #06ac01;
    box-shadow: 0 0 0 2px rgba(6,172,1,0.15);
}

.obv-list-save-btn {
    padding: 4px 14px;
    background-color: #06ac01;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.obv-list-save-btn:hover { background-color: #058a01; }

/* "Saved, nothing pending" state — reflects g_msCurrentList.BChanged,
   toggled by vfMSUpdateSaveBtnState() in mappedstore.js. Pale green
   rather than a different hue entirely: dark = needs attention, pale =
   calm/done, same green family throughout rather than switching color
   language for what's still fundamentally the same button. Text switches
   to dark green too — white doesn't read on a pale background. */
.obv-list-save-btn-saved {
    background-color: #d4edda;
    color: #155724;
}

.obv-list-save-btn-saved:hover { background-color: #c3e6cb; }

.obv-list-share-btn {
    padding: 4px 14px;
    background-color: #130076;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.obv-list-share-btn:hover { background-color: #0d0055; }

/* Create List / Manage — compact pills beside Save rather than full-width
   buttons matching it. Frequency asymmetry: Save gets used constantly,
   Create List mostly during initial setup then rarely once someone's
   lists are configured, and Manage only applies to list owners (already
   conditionally hidden — see vfApplyListPermissions in main1.js). Equal-
   weight buttons for all three overstated how often the latter two
   actually get reached for. Same navy as .obv-list-share-btn (still the
   "secondary list action" color), just pill-shaped and sized to content
   instead of stretching — the generic ".obv-list-toolbar-actions button"
   flex:1 rule above still applies to Save (kept on .obv-list-save-btn),
   so Save expands into whatever room the two fixed-width pills leave. */
.obv-list-toolbar-actions .obv-list-pill-btn {
    flex: 0 0 auto;
    padding: 4px 10px;
    background-color: #130076;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.obv-list-pill-btn:hover { background-color: #0d0055; }

/* Quick-action pills (AI, Voice Auto, Show Hints, Send, Clear) moved
   back down to the trip toolbar (mappedstore.js, sfMSBuildToolbar) — the
   #idMSQuickActions container they briefly lived in here is gone. That
   row couldn't comfortably hold Save/Create List/Manage plus 5 more
   elements; the store filter/picker pills joined them back down there
   too, so everything toolbar-related now lives in one place again. */

.obv-list-toolbar--guest {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-size: 0.88rem;
    color: #555;
}

.obv-list-toolbar--guest a {
    color: #06ac01;
    font-weight: 600;
}

/* ===== List Filter Dropdown ===== */
.obv-list-filter {
    font-size: 0.85rem;
    padding: 4px 8px;
    border: 1px solid #b0d4b0;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: 90px;
}

/* ===== Shopping Grid ===== */
.obv-shop-grid {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    font-size: 0.85rem;
}

.obv-shop-header,
.obv-shop-row {
    display: grid;
    grid-template-columns: 44px 1fr 70px 110px 110px 44px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
}

.obv-shop-header1 {
    background-color: #130076;
    color: #ff8605;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.obv-shop-header {
    background-color: #130076;
    color: #ff8605;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.obv-shop-header .obv-col-w,
.obv-shop-header .obv-col-name,
.obv-shop-header .obv-col-aisle,
.obv-shop-header .obv-col-p,
.obv-shop-header .obv-col-l { color: #ff8605; }

.obv-shop-row {
    border-bottom: 1px solid #f0f0f0;
}

.obv-shop-row:last-child { border-bottom: none; }

/* Column alignment */
.obv-col-img   { justify-self: center; }
.obv-col-name  { font-weight: 600; color: #222; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obv-col-aisle { font-size: 0.78rem; color: #06ac01; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.obv-aisle-votable { cursor: pointer; }
.obv-aisle-votable:active { opacity: 0.7; }
.obv-flag        { font-size: 1.0rem; flex-shrink: 0; line-height: 1; cursor: inherit; }
.obv-flag-orange { color: #f5a623; }
.obv-flag-green  { color: #06ac01; }
.obv-flag-red    { color: #e02020; }
.obv-flag-blue   { color: #1a7fd4; }

/* Inventory status picker */
#obv-inv-picker       { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; margin-top: 4px; width: 100%; }
.obv-picker-btn       { font-size: 0.72rem; padding: 3px 7px; border-radius: 4px; cursor: pointer; white-space: nowrap; border: 1px solid #ccc; background: #f5f5f5; }
.obv-picker-btn:active { opacity: 0.7; }
.obv-picker-empty     { color: #e02020; border-color: #e02020; }
.obv-picker-low       { color: #1a7fd4; border-color: #1a7fd4; }
.obv-picker-good      { color: #06ac01; border-color: #06ac01; }
.obv-picker-cancel    { color: #999;    border-color: #ccc; margin-left: auto; }
.obv-picker-count     { color: #06ac01; border-color: #06ac01; }
.obv-picker-qty       { width: 48px; font-size: 0.82rem; padding: 3px 4px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.obv-col-w     { display: flex; align-items: center; gap: 4px; justify-content: center; font-weight: 600; color: #555; }
.obv-col-p     { display: flex; align-items: center; gap: 4px; justify-content: center; }
.obv-col-l     { text-align: center; }

.obv-shop-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.obv-w-val,
.obv-p-val {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 18px;
    text-align: center;
    color: #222;
}

/* L button */
.obv-l-btn {
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid #130076;
    background: #fff;
    color: #130076;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 6px;
    transition: background 0.15s, color 0.15s;
}

.obv-l-btn:hover:not(:disabled) {
    background: #130076;
    color: #fff;
}

.obv-l-btn:disabled,
.obv-l-none {
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

/* Row states */
.obv-row-done         { background-color: #f0faf0; }
.obv-row-done .obv-col-name { color: #06ac01; }
.obv-row-partial      { background-color: #fffbf0; }
.obv-row-missing      { opacity: 0.6; background-color: #fff8f8; }
.obv-row-missing .obv-col-name { color: #dc3545; }
.obv-row-inactive     { opacity: 0.45; background-color: #f8f9fa; pointer-events: none; }
.obv-row-inactive .obv-col-name  { color: #888; font-weight: 400; }
.obv-row-inactive .obv-col-aisle { color: #aaa; }

/* ===== Store Section Headers ===== */
.obv-store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-top: 2px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.obv-store-active   { background-color: #eaf4ea; border-top-color: #06ac01; }
.obv-store-inactive { background-color: #f8f9fa; border-top-color: #dee2e6; }

.obv-store-logo-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.obv-store-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.obv-store-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #130076;
    color: #ff8605;
    font-size: 0.72rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

.obv-store-inactive .obv-store-logo-fallback {
    background-color: #adb5bd;
    color: #fff;
}

.obv-store-name {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.obv-store-active   .obv-store-name { color: #130076; }
.obv-store-inactive .obv-store-name { color: #888; }

.obv-store-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.obv-store-active   .obv-store-badge { background-color: #06ac01; color: #fff; }
.obv-store-inactive .obv-store-badge { background-color: #adb5bd; color: #fff; }

/* ===== Manage Modal Divider ===== */
.obv-manage-divider {
    border-top: 1px solid #f0f0f0;
    margin: 4px 0;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
    .hero-section h1        { font-size: 1.5rem; }
    .hero-section .lead     { font-size: 1rem; }
    .benefits-section h4    { font-size: 1.1rem; }
    .benefits-section p     { font-size: 0.9rem; }

    .auth-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .settings-bar .row > div  { margin-bottom: 0.5rem; }
    .input-area .input-group-lg .form-control { font-size: 1rem; }

    .btn              { min-height: 44px; }
    .form-check-input { width: 1.5rem; height: 1.5rem; }
    .form-check-label { padding-left: 0.5rem; }

    .obv-qty-btn  { width: 40px; height: 40px; }
    .obv-item-img { width: 55px; height: 55px; }
    .obv-car-img  { width: 80px; height: 60px; }
}

@media (max-width: 520px) {
    .obv-shop-header,
    .obv-shop-row {
        grid-template-columns: 32px minmax(55px,1fr) 40px 82px 82px 28px;
        font-size: 0.72rem;
        padding: 4px;
        gap: 2px;
    }

    .obv-shop-img  { width: 28px; height: 28px; border-radius: 4px; }
    .obv-list-toolbar { gap: 4px; padding: 5px 6px; }
    .obv-qty-btn   { min-width: 20px; height: 20px; font-size: 0.75rem; padding: 0 3px; }
    .obv-w-val,
    .obv-p-val     { min-width: 14px; font-size: 0.82rem; }
    .obv-l-btn     { min-width: 24px; height: 24px; font-size: 0.72rem; padding: 0 3px; }
    .obv-col-w,
    .obv-col-p     { gap: 2px; }
    .obv-col-aisle { font-size: 0.68rem; }
}

/* ===== Manage Lists Modal ===== */
.obv-manage-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
}

.obv-manage-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    background: var(--color-background-secondary, #f8f9fa);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    text-align: left;
    transition: background 0.15s;
}

.obv-manage-btn:hover { background: #eef0f2; }

.obv-manage-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.obv-manage-label { font-weight: 500; font-size: 14px; }

.obv-manage-sub { font-size: 12px; color: #888; margin-top: 1px; }

.obv-manage-btn--danger {
    background: #fff5f5;
    border-color: #f5c6c6;
    color: #c0392b;
}

.obv-manage-btn--danger:hover { background: #ffe0e0; }

.obv-manage-btn--danger .obv-manage-sub { color: #c0392b; opacity: 0.75; }

/* Auto-refresh row in manage modal */
.obv-manage-refresh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 12px;
}

.obv-manage-refresh-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.obv-manage-refresh-sel {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.obv-manage-divider { border-top: 1px solid #f0f0f0; margin: 6px 0; }

/* =============================================================================
   Share Modal — add to maininit.css
   ============================================================================= */

/* Container */
.obv-share-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mode toggle — Email / Name */
.obv-share-toggle {
    display: flex;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    align-self: flex-start;
}

.obv-share-toggle-btn {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.obv-share-toggle-btn:first-child { border-right: 1px solid #dee2e6; }

.obv-share-toggle-active {
    background: #130076;
    color: #fff;
}

/* Email input row */
.obv-share-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Name input row */
.obv-share-name-row {
    display: flex;
    gap: 8px;
}

/* Shared text input */
.obv-share-text-input {
    flex: 1;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
}

.obv-share-text-input:focus {
    border-color: #130076;
}

/* Find button */
.obv-share-find-btn {
    padding: 8px 16px;
    background: #130076;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.obv-share-find-btn:hover { background: #0e0056; }

/* Confirm card — shown on single match */
.obv-share-confirm-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 14px;
}

.obv-share-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #130076;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.obv-share-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.obv-share-confirm-info { flex: 1; }

.obv-share-confirm-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.obv-share-confirm-email {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Permission select — used in confirm card and active list */
.obv-share-perm-select {
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Action buttons row — cancel + confirm/invite */
.obv-share-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.obv-share-cancel-btn {
    padding: 7px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}

.obv-share-cancel-btn:hover { background: #e9ecef; }

.obv-share-confirm-btn {
    padding: 7px 16px;
    background: #06ac01;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.obv-share-confirm-btn:hover { background: #058a01; }

.obv-share-invite-btn {
    padding: 7px 16px;
    background: #130076;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.obv-share-invite-btn:hover { background: #0e0056; }

/* Multiple matches — security message */
.obv-share-multi-msg {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #7a5c00;
}

/* Not found */
.obv-share-notfound {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.obv-share-notfound-msg {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
}

/* Active shares list */
.obv-share-none {
    font-size: 13px;
    color: #aaa;
    padding: 4px 0;
}

.obv-share-recipient-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.obv-share-recipient-row:last-child { border-bottom: none; }

.obv-share-rec-info { flex: 1; min-width: 0; }

.obv-share-rec-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-share-rec-email {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-share-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.obv-share-remove-btn:hover { color: #a71d2a; }

/* Mobile */
@media (max-width: 520px) {
    .obv-share-confirm-card  { flex-wrap: wrap; }
    .obv-share-perm-select   { width: 100%; }
    .obv-share-name-row      { flex-direction: column; }
}
/* ===== Share Grid (unified add/edit) ===== */

.obv-share-grid-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.obv-share-grid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.obv-share-grid-row:last-child { border-bottom: none; }

.obv-share-grid-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.obv-share-save-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

@media (max-width: 520px) {
    .obv-share-grid-row { flex-wrap: wrap; }
    .obv-share-perm-select { width: 100%; }
}
/* =============================================================================
   Permission / Read-Only additions for maininit_additions.css
   20260508 07:55
   Append to end of maininit_additions.css
   ============================================================================= */

/* ===== Read-Only Badge ===== */
/* Shown in toolbar when user has read-only access to a shared list */
.obv-list-readonly-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== Share Permission Select ===== */
/* Dropdown in share grid — Edit / Read Only / Remove/Don't Add */
.obv-share-perm-select {
    font-size: 0.82rem;
    padding: 3px 6px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    min-width: 110px;
    cursor: pointer;
}

.obv-share-perm-select:focus {
    border-color: #130076;
    outline: none;
    box-shadow: 0 0 0 2px rgba(19,0,118,0.15);
}

/* =============================================================================
   Share via Link — add to maininit.css
   Standalone modal, opened directly from Manage (sibling to Share)
   ============================================================================= */

.obv-share-link-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.obv-share-link-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 14px;
}

.obv-share-link-hint-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.obv-share-link-hint-row label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.obv-share-link-hint-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
}

.obv-share-link-hint-input:focus {
    border-color: #130076;
}

.obv-share-link-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.obv-share-link-radio input[type="radio"] {
    cursor: pointer;
}

.obv-share-link-expiry-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obv-share-link-expiry-row label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.obv-share-link-expiry {
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.obv-share-link-create-btn {
    align-self: flex-start;
    padding: 7px 16px;
    background: #130076;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.obv-share-link-create-btn:hover { background: #0e0056; }
.obv-share-link-create-btn:disabled {
    background: #9a93c4;
    cursor: default;
}

/* Result state — link created */
.obv-share-link-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #b8d9ff;
    border-radius: 8px;
    padding: 12px 14px;
}

.obv-share-link-expiry-note {
    font-size: 12px;
    color: #1a5fa3;
    font-weight: 500;
}

.obv-share-link-url {
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    width: 100%;
}

.obv-share-link-actions {
    display: flex;
    gap: 8px;
}

.obv-share-link-action-btn {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #130076;
    color: #130076;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.obv-share-link-action-btn:hover { background: #f0f0ff; }

.obv-share-link-reset-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: #555;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* Divider between link-share and named-user share */

@media (max-width: 520px) {
    .obv-share-link-actions { flex-direction: column; }
}

/* =============================================================================
   OBV TOAST — single fixed message, replaces stacking Bootstrap alerts
   Success auto-dismisses (3s). Error stays until X tapped.
   ============================================================================= */

#idObvToast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 480px;
    pointer-events: none;
}

.obv-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    pointer-events: all;
    animation: obvToastIn 0.18s ease;
}

.obv-toast-success { background: #06ac01; }
.obv-toast-error   { background: #dc3545; }

.obv-toast-msg {
    flex: 1;
    line-height: 1.3;
}

.obv-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.obv-toast-close:hover {
    color: #fff;
}

@keyframes obvToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Toggle visibility of idToggableDiv (input/entry mode) */
.obv-hidden {
    display: none !important;
}

/* =============================================================================
   Amazon CTA — split into two pieces:
   - .obv-amazon-cta-message: text-only block for main0 hero (always) and
     main1 empty-list idle state (idMainInitContext). No button/link inside
     — the actionable button now lives permanently in the toolbar (below)
     so it's never subject to being overwritten by a grid re-render.
   - .obv-amazon-badge: the actual "Shop on Amazon" link, inserted once as
     a sibling of idMainInitGeoBadge's col-auto block and left there.
   20260808 09:05
   ============================================================================= */
.obv-amazon-cta-message {
    background: #fff8ec;
    border-top: 1px solid #f0e2c0;
    border-bottom: 1px solid #f0e2c0;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.85em;
    color: #444;
    line-height: 1.5;
}

/* Toolbar badge — reuses gclsStatusBadge sizing/spacing so it matches
   idMainInitGeoBadge exactly; overrides link + Amazon-orange color so it
   doesn't just look like a dim "unknown status" badge. */
.obv-amazon-badge {
    text-decoration: none;
    cursor: pointer;
    background-color: #ff9900;
    color: #111;
}
.obv-amazon-badge:hover {
    opacity: 0.85;
}
