@import url("feature-plus.css");

/* =============================================================================
   Multi-Branch, Franchise & White-Label page — .mbr-* mock internals
   Only the pieces the shared .fp-mk-* / .fx-* vocabulary does not already
   cover: the head-office → branch tree, the branch-scope switcher, the menu
   push dialog with its target-branch checkboxes, the scheduled-price rows,
   the consolidated all-branches report rows and the white-label address bar.
   Everything else reuses the shared classes.
   Prefix is .mbr- (not .mb-) so nothing collides with Bootstrap spacing.
   ========================================================================== */

/* --- Inline "read more" link --------------------------------------------- */
.mbr-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 700;
    color: #6f42c1;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.mbr-more:hover {
    gap: 12px;
    color: #9333ea;
}

.mbr-more:focus-visible {
    outline: 2px solid #6f42c1;
    outline-offset: 3px;
    border-radius: 8px;
}

.mbr-more:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 3px;
    border-radius: 8px;
}

.mbr-more i {
    font-size: 17px;
}

/* --- Head-office card sitting above the branch tree ---------------------- */
.mbr-hq {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    background: linear-gradient(120deg, #6f42c1, #9333ea);
    margin-bottom: 4px;
}

.mbr-hq-mark {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.mbr-hq-body {
    display: block;
    min-width: 0;
    line-height: 1.35;
}

.mbr-hq-name {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.mbr-hq-meta {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
}

/* --- Branch tree ---------------------------------------------------------- */
.mbr-tree {
    position: relative;
    margin: 0 0 8px 13px;
    padding-left: 15px;
}

.mbr-tree::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 21px;
    width: 2px;
    border-radius: 2px;
    background: #e4dbfa;
}

.mbr-node {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 9px;
    margin-top: 6px;
    border: 1px solid #efeaff;
    border-radius: 10px;
    background: #fff;
}

.mbr-node::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    width: 13px;
    height: 2px;
    border-radius: 2px;
    background: #e4dbfa;
}

.mbr-node-mark {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(111, 66, 193, .1), rgba(155, 92, 255, .15));
    color: #6f42c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mbr-node-body {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.4;
}

.mbr-node-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
}

.mbr-node-meta {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: #6b7280;
}

.mbr-node-val {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    color: #6f42c1;
    font-variant-numeric: tabular-nums;
}

/* --- Branch scope switcher ------------------------------------------------ */
.mbr-scope {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 9px;
    border-radius: 10px;
    background: #f6f2ff;
    border: 1px solid #eee7ff;
    margin-bottom: 9px;
}

.mbr-scope-lbl {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-right: 2px;
}

.mbr-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 700;
    color: #4b3f66;
    background: #fff;
    border: 1px solid #e7dfff;
}

.mbr-chip.is-on {
    color: #fff;
    background: linear-gradient(90deg, #6f42c1, #9333ea);
    border-color: transparent;
}

/* --- Locked / scoped-out row --------------------------------------------- */
.mbr-locked {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 9px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px dashed #ddd6e8;
    background: #fafafd;
    font-size: 9px;
    font-weight: 600;
    color: #8b8397;
}

.mbr-locked i {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.5;
    color: #a99fc0;
}

/* --- Menu-push dialog rows ------------------------------------------------ */
.mbr-pick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
    margin-top: 5px;
    border-radius: 9px;
    border: 1px solid #f0ecf8;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    color: #0f172a;
}

.mbr-pick-box {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 5px;
    border: 1.5px solid #d8cff0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
}

.mbr-pick.is-on .mbr-pick-box {
    background: linear-gradient(135deg, #6f42c1, #9333ea);
    border-color: transparent;
    color: #fff;
}

.mbr-pick-tail {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

/* --- Scheduled price change ---------------------------------------------- */
.mbr-sched {
    margin-top: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1px solid #ffe6cf;
    background: #fff7ed;
}

.mbr-sched-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #c2410c;
    margin-bottom: 6px;
}

.mbr-sched-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
    padding: 3px 0;
}

.mbr-sched-old {
    color: #9b9099;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.mbr-sched-new {
    color: #15803d;
    font-variant-numeric: tabular-nums;
}

.mbr-sched-when {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    color: #c2410c;
}

/* --- Consolidated report rows -------------------------------------------- */
.mbr-rep-row {
    margin-bottom: 9px;
}

.mbr-rep-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.mbr-rep-top span:last-child {
    font-variant-numeric: tabular-nums;
    color: #6f42c1;
    font-weight: 800;
}

/* --- White-label address bar --------------------------------------------- */
.mbr-addr {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 30px;
    background: #f3eeff;
    border: 1px solid #e7dfff;
    font-size: 9px;
    font-weight: 700;
    color: #4b3f66;
    margin-bottom: 9px;
    overflow: hidden;
}

.mbr-addr i {
    font-size: 12px;
    color: #15803d;
    flex: 0 0 auto;
}

.mbr-addr b {
    color: #6f42c1;
    font-weight: 800;
}

.mbr-addr span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Brand strip inside the white-label micro-site mock ------------------- */
.mbr-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #101828;
    margin-bottom: 8px;
}

.mbr-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #f59e0b;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex: 0 0 auto;
}

.mbr-brand-name {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

.mbr-brand-nav {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .mbr-more {
        transition: none;
    }

    .mbr-more:hover {
        gap: 7px;
    }
}
