/* ROOT302 workspace header. Customer theme only; module templates stay original. */
body.root302-console #header.header {
    background: #fff;
    border-bottom: 1px solid var(--r3-line);
}
.root302-console .r3-console-bar {
    min-height: var(--r3-header-height);
    padding: 8px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    margin: 0 auto;
}
.r3-console-location, .r3-console-tools {
    display: flex;
    align-items: center;
    min-width: 0;
}
.r3-console-location { flex: 1; gap: 12px; }
.r3-console-tools { flex-shrink: 0; gap: 6px; }
.r3-console-crumb { min-width: 0; }
.root302 .r3-console-crumb .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}
.r3-console-crumb .breadcrumb-item { min-width: 0; white-space: nowrap; }
.r3-console-crumb .breadcrumb-item:nth-last-child(n+3) { display: none; }
.r3-console-crumb .breadcrumb-item:nth-last-child(2) { padding-left: 0; }
.r3-console-crumb .breadcrumb-item:nth-last-child(2)::before { display: none; }
.root302 .r3-console-crumb a { color: var(--r3-muted); }
.root302 .r3-console-crumb .active {
    color: var(--r3-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.root302 .r3-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #526580;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.root302 .r3-icon-button:hover, .r3-header-search[open] > summary {
    background: #f1f5fd;
    border-color: #e6ecf4;
    color: #2456c7;
}
.r3-header-search { position: relative; }
.r3-header-search > summary { list-style: none; }
.r3-header-search > summary::-webkit-details-marker { display: none; }
.r3-search-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 340px;
    padding: 20px;
    z-index: 1050;
    background: white;
    border: 1px solid var(--r3-line);
    border-radius: 14px;
    box-shadow: 0 16px 48px #1726401a;
}
.root302 .r3-search-panel label { color: var(--r3-ink); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.r3-search-field { display: flex; gap: 8px; }
.r3-search-field input { min-width: 0; }
.r3-search-field .btn { min-width: 44px; min-height: 44px; }
.r3-search-panel p { color: var(--r3-muted); margin: 10px 0 0; font-size: 12px; }
.r3-notification-dot { position: absolute; right: 10px; top: 9px; width: 7px; height: 7px; background: #3168f5; border-radius: 50%; box-shadow: 0 0 0 2px white; }
.r3-cart-count { position: absolute; top: 3px; right: 0; min-width: 16px; padding: 0 4px; border-radius: 6px; background: #edf3ff; color: #2456c7; font: 600 10px/16px "Segoe UI", sans-serif; }
.r3-tools-divider { height: 24px; width: 1px; background: var(--r3-line); margin: 0 10px; }
.r3-account-icon { font-size: 27px; color: #7991b4; margin-left: 2px; }
.r3-account-menu { flex-direction: row; min-width: 0; }
.r3-account-menu > li { position: relative; }
.root302 .r3-account-menu > li > a {
    min-height: 44px;
    max-width: 180px;
    padding: 10px 8px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--r3-ink);
    font-size: 13px;
    border-radius: 8px;
}
.root302 .r3-account-menu > li > a:hover { background: #f1f5fd; text-decoration: none; }
.r3-account-menu .dropdown-menu {
    width: 176px;
    min-width: 176px;
    max-width: calc(100vw - 24px);
    padding: 8px;
    margin-top: 8px;
    border: 1px solid #e5ebf3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px #17264018;
}
.r3-account-menu .dropdown-item { margin: 1px 0; padding: 0; border-radius: 6px; }
.r3-account-menu .dropdown-item a {
    min-height: 36px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    padding: 7px 10px !important;
    border-radius: 6px;
    color: var(--r3-ink);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}
.r3-account-menu .r3-account-item-icon {
    width: 18px;
    color: #7f91a9;
    font-size: 13px;
    text-align: center;
}
.r3-account-menu .r3-account-item-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.r3-account-menu .dropdown-item .badge { justify-self: end; }
.r3-account-menu .dropdown-item a:hover,
.r3-account-menu .dropdown-item a:focus-visible {
    background: #f3f7fd;
    color: #2456c7;
    text-decoration: none;
}
.r3-account-menu .dropdown-item a:focus-visible { outline: 2px solid #e1ebfa; outline-offset: -2px; }
.r3-account-menu .dropdown-menu .dropdown-divider { margin: 5px 4px; border-color: #edf1f6; }
@media (min-width: 1200px) {
    .root302-console .r3-console-bar .r3-menu-toggle { display: none; }
}
@media (max-width: 1199px) {
    .root302-console .r3-console-bar { padding: 8px 24px; }
    .root302-console .r3-console-bar .r3-menu-toggle { margin: 0; }
}
@media (max-width: 767px) {
    .root302-console .r3-console-bar { min-height: var(--r3-header-height); padding: 8px 12px; gap: 6px; }
    .r3-console-location { gap: 4px; }
    .r3-console-tools { gap: 0; }
    .r3-console-crumb .breadcrumb-item:not(:last-child) { display: none; }
    .r3-console-crumb .breadcrumb-item:last-child { padding-left: 0; }
    .r3-console-crumb .breadcrumb-item:last-child::before { display: none; }
    .r3-tools-divider, .r3-account-icon, .r3-switch-account { display: none !important; }
    .root302 .r3-account-menu > li > a { max-width: 78px; font-size: 12px; padding: 12px 6px; }
    .r3-search-panel { position: fixed; top: calc(var(--r3-header-height) + 8px); left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .root302 .r3-icon-button { transition: none; }
}


.r3-mobile-user { display: none; }
@media (max-width: 767px) {
    .root302 .r3-account-menu > li > a { font-size: 0; width: 44px; max-width: 44px; padding: 8px; text-align: center; }
    .r3-account-menu .r3-mobile-user { display: inline-block; font-size: 24px; line-height: 28px; }
    .r3-account-menu > li > a::after { display: none; }
}
@media (max-width: 359px) {
    .r3-console-crumb { display: none; }
}

/* Finance navigation: one disclosure and one active child, shared focus rules. */
.r3-sidebar .r3-nav-finance { flex-shrink:0; }
.r3-sidebar .r3-nav-finance summary { list-style:none; cursor:pointer; }
.r3-sidebar .r3-nav-finance summary::-webkit-details-marker { display:none; }
.r3-sidebar .r3-nav-finance summary > span { flex:1; }
.r3-sidebar .r3-nav-finance .r3-nav-chevron { width:12px; font-size:10px; color:#a5b3ca; transform:rotate(-90deg); }
.r3-sidebar .r3-nav-finance[open] .r3-nav-chevron { transform:rotate(0); }
.r3-sidebar .r3-nav-finance.is-current > summary { color:#b7cfff; background:#ffffff08; }
.r3-sidebar .r3-nav-children { display:flex; flex-direction:column; gap:3px; margin:0 0 8px; }
.r3-sidebar .r3-nav-children a { display:flex; align-items:center; min-height:42px; padding:9px 14px 9px 48px; border-radius:7px; color:#a5b3ca; font-size:13px; }
.r3-sidebar .r3-nav-children a:hover { background:#ffffff08; color:#fff; text-decoration:none; }
.r3-sidebar .r3-nav-children a.active { background:#243653; color:#d2e2ff; }


/* Guest shopping uses the workspace frame with explicit sign-in actions. */
.r3-guest-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.root302 .r3-guest-login { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 7px; color: var(--r3-muted); font-size: 13px; white-space: nowrap; }
.root302 .r3-guest-login:hover { background: #f1f5fd; color: #2456c7; text-decoration: none; }
.root302 .r3-guest-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; }
@media (max-width: 767px) {
    body.root302-console:has(.r3-guest-actions) .r3-header-search { display: none; }
    .r3-guest-actions { gap: 4px; margin-left: 4px; }
    .root302 .r3-guest-login, .root302 .r3-guest-actions .btn { padding-inline: 10px; font-size: 12px; }
}

/* A fixed account trigger keeps personal names out of the shared top bar. */
.root302 .r3-account-menu > li > a.r3-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: #7991b4;
}
.root302 .r3-account-menu > li > a.r3-account-trigger::after { display: none; }

/* Service navigation groups the inventory by product module. */
.r3-sidebar .r3-nav-services .r3-nav-children a { gap:8px; }
.r3-sidebar .r3-nav-services .r3-nav-children a > i { width:14px; color:#8fa6c8; font-size:12px; text-align:center; }
.r3-sidebar .r3-nav-services .r3-nav-children a.active > i { color:#b9d2ff; }