/* ================================================================
   FriendsByChance — components/outbox.css
   FBC.outbox's bar (js/outbox.js): one line under the top bar while the
   connection is down or changes wait to be saved — what waits a press
   away.  Over the page, not pushing it: it comes and goes without moving
   what the user is working on.
   ================================================================ */
.fbc-outbox-bar {
    position:      fixed;
    top:           var(--top-bar-height);
    left:          50%;
    transform:     translateX(-50%);
    z-index:       99;                      /* under the top bar (100), over the panes */
    width:         max-content;
    max-width:     min(640px, calc(100% - 16px));
    padding:       6px 8px 6px 14px;
    border-radius: 0 0 8px 8px;
    background:    var(--color-secondary);
    color:         var(--color-text-on-primary);
    font-size:     0.86rem;
    box-shadow:    0 2px 8px rgba(0, 0, 0, 0.25);
}
.fbc-outbox-bar[hidden] { display: none; }
.fbc-outbox-line {
    display:     flex;
    align-items: center;
    gap:         8px;
}
.fbc-outbox-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fbc-outbox-bar .fbc-icon-btn { color: inherit; flex: none; }
.fbc-outbox-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.fbc-outbox-list {
    margin:     6px 0 2px;
    padding:    0 0 0 16px;
    max-height: 40vh;
    overflow:   auto;
}
.fbc-outbox-item { padding: 2px 0; }
.fbc-outbox-item--refused {
    display:     flex;
    align-items: center;
    gap:         8px;
    list-style:  none;
    margin-left: -16px;
    font-weight: 600;
}

/* THE waiting mark (Q7): the clock glyph after the name of what waits to be saved. */
.fbc-waiting-mark {
    display:        inline-flex;
    vertical-align: middle;
    margin-left:    4px;
    color:          var(--color-text-muted);
}
.fbc-waiting-mark svg { width: 12px; height: 12px; }

/* A button that needs the server, on something made offline not named yet
   (FBC.outbox.waitingOff): shown, disabled, the mark in its corner. */
.fbc-waiting-off { position: relative; }
.fbc-waiting-off > .fbc-waiting-mark {
    position:      absolute;
    right:         -3px;
    bottom:        -3px;
    margin:        0;
    border-radius: 50%;
    background:    var(--color-surface);
}
