/* Site-wide small overrides, loaded after the Vite bundle so they win.
   Kept as a static file so changes don't need an npm build. */

/* The theme's warning colour is a dark amber (#d97706), so badges on it need white
   text. Also overrides the "text-dark" several views add to warning badges. */
.badge.bg-warning,
.badge.bg-warning.text-dark {
    color: #fff !important;
}

/* ─── Collapsible sidebar (desktop only) ─────────────────────────────────
   <html class="sidebar-collapsed"> shrinks the sidebar to its icons. Hovering it
   slides the full menu out over the page so sub-menus stay usable. */
.sidebar-collapse-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.sidebar-collapse-btn:hover { background: #f1f5f9; color: #14213d; }
.sidebar-collapse-btn i { font-size: 1.1rem; transition: transform 0.3s ease; }
.sidebar-collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

/* ─── Sidebar scrollbar: thin, dark-theme, only noticeable on hover ─── */
/* Firefox only — in Chrome these standard properties would override the styling below */
@supports (-moz-appearance: none) {
    .sidebar { scrollbar-width: thin; scrollbar-color: rgba(143, 194, 255, 0.25) transparent; }
    .sidebar:hover { scrollbar-color: rgba(143, 194, 255, 0.45) transparent; }
}
.sidebar::-webkit-scrollbar { width: 6px; }                  /* Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(143, 194, 255, 0.18);
    border-radius: 10px;
    transition: background 0.2s;
}
.sidebar:hover::-webkit-scrollbar-thumb { background: rgba(143, 194, 255, 0.4); }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(143, 194, 255, 0.65); }
.sidebar::-webkit-scrollbar-button { display: none; height: 0; }

@keyframes sidebarLabelIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 992px) {
    .sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }
    .sidebar-collapsed .topbar { left: var(--sidebar-collapsed-width); }
    .sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed-width); }

    /* ── Icons-only rail (sidebar not hovered) ── */
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-brand {
        justify-content: center;
        padding: 0;
    }
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-brand i { margin-right: 0 !important; }

    /* Take labels, arrows, headers and sub-menus out of the layout entirely,
       so every icon sits in the same centred column */
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-brand h5,
    .sidebar-collapsed .sidebar:not(:hover) .nav-header,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-label,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-arrow,
    .sidebar-collapsed .sidebar:not(:hover) .nav-link > span,
    .sidebar-collapsed .sidebar:not(:hover) .nav-link > .badge,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-toggle > .badge,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-items {
        display: none !important;
    }
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-nav { padding-top: 0.75rem; }

    /* Uniform square-ish buttons, centred, with a soft pill highlight */
    .sidebar-collapsed .sidebar:not(:hover) .nav-link,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-toggle {
        position: relative;
        justify-content: center;
        width: calc(100% - 16px);
        height: 44px;
        margin: 2px 8px;
        padding: 0;
        border-left: 0;
        border-radius: 10px;
    }
    .sidebar-collapsed .sidebar:not(:hover) .nav-link i,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-toggle i.nav-group-icon {
        margin: 0;
        width: auto;
        font-size: 1.15rem;
    }
    .sidebar-collapsed .sidebar:not(:hover) .nav-link.active,
    .sidebar-collapsed .sidebar:not(:hover) .nav-group.has-active > .nav-group-toggle {
        background: rgba(92, 152, 255, 0.22);
        box-shadow: inset 0 0 0 1px rgba(92, 152, 255, 0.35);
    }
    .sidebar-collapsed .sidebar:not(:hover) .nav-group.has-active > .nav-group-toggle i.nav-group-icon { color: #fff; }

    /* Pending counts become a small dot on the icon's top-right */
    .sidebar-collapsed .sidebar:not(:hover) .nav-group-toggle:has(> .badge)::after,
    .sidebar-collapsed .sidebar:not(:hover) .nav-link:has(> .badge)::after {
        content: '';
        position: absolute;
        top: 9px;
        left: calc(50% + 7px);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #f59e0b;
        box-shadow: 0 0 0 2px #1a2849;
    }

    /* ── Hover: the full menu slides out over the page ── */
    .sidebar-collapsed .sidebar:hover {
        width: var(--sidebar-width);
        box-shadow: 8px 0 28px rgba(15, 23, 42, 0.28);
    }
    .sidebar-collapsed .sidebar:hover .sidebar-brand h5,
    .sidebar-collapsed .sidebar:hover .nav-header,
    .sidebar-collapsed .sidebar:hover .nav-group-label,
    .sidebar-collapsed .sidebar:hover .nav-link > span {
        animation: sidebarLabelIn 0.25s ease both;
    }
}

/* Formatted review comments (App\Support\RichText::render) */
.rich-text { margin-top: 0.15rem; }
.rich-text p { margin: 0 0 0.4rem; }
.rich-text ul, .rich-text ol { margin: 0 0 0.4rem; padding-left: 1.25rem; }
.rich-text li { margin-bottom: 0.15rem; }
.rich-text h2, .rich-text h3, .rich-text h4 { font-size: 1em; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.rich-text blockquote { margin: 0 0 0.4rem; padding-left: 0.6rem; border-left: 3px solid #cbd5e1; color: #475569; }
.rich-text > :last-child { margin-bottom: 0; }

/* ─── Table toolbar: count + search inside the table card (EIC article lists) ─── */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eef2f6;
}
.table-toolbar-info { font-size: 0.8125rem; color: #64748b; }
.table-toolbar-info strong { color: #0f172a; font-weight: 600; }
.table-toolbar-info a { font-weight: 500; text-decoration: none; }
.table-toolbar-info a:hover { text-decoration: underline; }
.table-toolbar-sep { margin: 0 0.35rem; color: #cbd5e1; }

.table-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 0.35rem 0 2.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: text;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.table-search:hover { border-color: #cbd5e1; }
.table-search:focus-within { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.table-search-icon { position: absolute; left: 0.75rem; font-size: 0.85rem; color: #94a3b8; pointer-events: none; }
.table-search:focus-within .table-search-icon { color: #2563eb; }
.table-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.8125rem;
    color: #0f172a;
}
.table-search input::placeholder { color: #94a3b8; }
.table-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.table-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    color: #64748b;
    font-size: 1.05rem;
    text-decoration: none;
}
.table-search-clear:hover { background: #eef2f6; color: #0f172a; }
/* "Enter ↵" appears once something is typed */
.table-search-hint {
    display: none;
    flex-shrink: 0;
    padding: 0.1rem 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    font-family: inherit;
    font-size: 0.6875rem;
    box-shadow: none;
}
.table-search input:not(:placeholder-shown) ~ .table-search-hint { display: inline-block; }
@media (max-width: 575.98px) {
    .table-search { width: 100%; }
}

/* ─── Terminated reviews (reviewer / editor panels, EIC article page) ─── */
.terminated-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #475569;
}
.terminated-note > i { color: #64748b; font-size: 1rem; line-height: 1.3; }
.termination-line {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin-top: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #b91c1c;
}
.termination-line > i { line-height: 1.35; }

/* ─── Peer Review panel + review dialog (admin / EIC article pages) ─── */
.pr-summary { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.pr-list { border-top: 0; }
.pr-item { display: flex; gap: 0.85rem; padding: 0.95rem 1.1rem; border-top: 1px solid #eef2f6; }
.pr-item:first-child { border-top: 0; }
.pr-item:hover { background: #fafbfd; }
.pr-avatar {
    width: 36px; height: 36px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.pr-avatar-reviewer { background: #eef2ff; color: #4338ca; }
.pr-avatar-external { background: #ecfeff; color: #0e7490; }
.pr-avatar-editorial { background: #fef3c7; color: #92400e; }
.pr-main { flex: 1; min-width: 0; }
.pr-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pr-name { font-size: 0.875rem; font-weight: 600; color: #0f172a; }
.pr-kind {
    padding: 0.12rem 0.45rem; border-radius: 4px;
    background: #f1f5f9; color: #475569;
    font-size: 0.625rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.pr-status {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.18rem 0.6rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.pr-modal .pr-status { margin-left: 0; }
.pr-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pr-tone-success { background: #dcfce7; color: #15803d; }
.pr-tone-info { background: #dbeafe; color: #1d4ed8; }
.pr-tone-warning { background: #fef3c7; color: #a16207; }
.pr-tone-danger { background: #fee2e2; color: #b91c1c; }
.pr-tone-muted { background: #f1f5f9; color: #64748b; }
.pr-tone-text-success { color: #15803d; }
.pr-tone-text-warning { color: #b45309; }
.pr-tone-text-danger { color: #b91c1c; }
.pr-tone-text-muted { color: #64748b; }
.pr-meta { margin-top: 0.15rem; font-size: 0.75rem; color: #64748b; word-break: break-word; }
.pr-decision { margin-top: 0.45rem; font-size: 0.8125rem; color: #0f172a; font-weight: 500; }
.pr-decision span { color: #64748b; font-weight: 400; }
.pr-note {
    display: flex; gap: 0.4rem; align-items: flex-start;
    margin-top: 0.5rem; padding: 0.45rem 0.65rem; border-radius: 6px; font-size: 0.75rem;
}
.pr-note-warning { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.pr-foot { display: flex; align-items: center; gap: 0.35rem 0.9rem; flex-wrap: wrap; margin-top: 0.55rem; font-size: 0.75rem; color: #475569; }
.pr-timeline { display: inline-flex; align-items: center; gap: 0.3rem; }
.pr-timeline > i { color: #94a3b8; }
.pr-sep { color: #cbd5e1; }
.pr-date { color: #94a3b8; }
.pr-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.pr-actions form { margin: 0; }
.btn-pr { padding: 0.25rem 0.7rem; border-radius: 6px; font-size: 0.75rem; font-weight: 500; line-height: 1.4; }

.pr-modal .modal-content { border: 0; border-radius: 12px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); }
.pr-modal .modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid #eef2f6; align-items: flex-start; }
.pr-modal .modal-title { font-size: 1rem; font-weight: 600; color: #0f172a; }
.pr-modal .modal-body { padding: 1.1rem 1.25rem 1.25rem; font-size: 0.8125rem; color: #334155; }
.pr-modal .modal-footer { padding: 0.75rem 1.25rem; border-top: 1px solid #eef2f6; }
.pr-modal .min-w-0, .rw-card .min-w-0 { min-width: 0; }
.pr-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.85rem 1.25rem;
    margin-bottom: 1rem; padding: 0.9rem 1rem; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 8px;
}
.pr-fact-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.2rem; }
.pr-fact-value { font-size: 0.8125rem; font-weight: 600; color: #0f172a; word-break: break-word; }
.pr-fact-sub { font-size: 0.75rem; color: #64748b; word-break: break-word; }
.pr-recommendation {
    margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 8px;
    background: #eff6ff; border: 1px solid #dbeafe; border-left: 3px solid #2563eb;
}
.pr-recommendation-value { font-size: 0.9rem; font-weight: 600; color: #1e3a8a; }
.pr-section-title { margin: 1.1rem 0 0.45rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #475569; }
.pr-quality { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.pr-q { padding: 0.7rem 0.8rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.pr-q-label { margin-bottom: 0.4rem; font-size: 0.7rem; font-weight: 500; color: #64748b; }
.pr-q-value { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; color: #0f172a; }
.pr-q-value > i { font-size: 0.95rem; }
.pr-q-sub { margin-top: 0.2rem; font-size: 0.7rem; color: #94a3b8; }
.pr-q-yes { color: #15803d; }
.pr-q-no { color: #b91c1c; }
.pr-q-warn { color: #b45309; }
.pr-q-neutral { color: #334155; }
.pr-q-meter { display: inline-flex; gap: 3px; }
.pr-q-meter > span { width: 12px; height: 6px; border-radius: 2px; background: #e2e8f0; }
.pr-q-meter-good > span.on { background: #16a34a; }
.pr-q-meter-fair > span.on { background: #f59e0b; }
.pr-q-meter-poor > span.on { background: #dc2626; }
@media (max-width: 767.98px) { .pr-quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-comment { padding: 0.85rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; line-height: 1.65; color: #1e293b; word-break: break-word; }
.pr-comment-confidential { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Re-write requests */
.rw-card .card-body { padding: 0.9rem 1rem; font-size: 0.8125rem; }
.rw-item + .rw-item { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid #eef2f6; }
.rw-previous .rw-item { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid #eef2f6; }
.rw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.45rem; }
.rw-by { font-weight: 600; color: #0f172a; }
.rw-date { font-size: 0.72rem; color: #94a3b8; }
.rw-badge { padding: 0.1rem 0.45rem; border-radius: 4px; background: #fef3c7; color: #a16207; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.rw-text { padding: 0.6rem 0.75rem; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 6px; color: #334155; line-height: 1.55; word-break: break-word; }
.rw-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rw-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.45rem; }
.rw-more { font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.rw-file { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: #b45309; text-decoration: none; }
.rw-file:hover { text-decoration: underline; }
.rw-previous { margin-top: 0.85rem; }
.rw-previous > summary { cursor: pointer; font-size: 0.75rem; font-weight: 600; color: #475569; list-style: none; padding: 0.4rem 0; border-top: 1px solid #eef2f6; }
.rw-previous > summary::-webkit-details-marker { display: none; }
.rw-previous > summary::before { content: "\25B8"; display: inline-block; margin-right: 0.4rem; transition: transform 0.15s; }
.rw-previous[open] > summary::before { transform: rotate(90deg); }
@media (max-width: 575.98px) {
    .pr-item { padding: 0.85rem; gap: 0.65rem; }
    .pr-actions { margin-left: 0; width: 100%; }
}

/* ─── Files card (admin / EIC article pages) ─── */
.af-count { margin-left: 0.25rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 0.68rem; font-weight: 600; }
.af-btn { font-size: 0.75rem; font-weight: 500; border-radius: 6px; }
.af-group { padding: 0.35rem 1.1rem 0.6rem; border-top: 1px solid #eef2f6; }
.af-card .af-group:first-of-type { border-top: 0; }
.af-group-head { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; padding: 0.65rem 0 0.35rem; }
.af-group-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #334155; }
.af-group-count { font-size: 0.68rem; font-weight: 600; color: #94a3b8; }
.af-group-sub { font-size: 0.72rem; color: #94a3b8; }
.af-group-sub::before { content: "·"; margin-right: 0.45rem; color: #cbd5e1; }
.af-group-final { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.af-row { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.5rem; margin: 0 -0.5rem; border-radius: 8px; }
.af-row + .af-row { border-top: 1px solid #f1f5f9; border-top-left-radius: 0; border-top-right-radius: 0; }
.af-row:hover { background: #f8fafc; }
.af-row-old .af-name { color: #64748b; }
.af-row-old .af-icon { opacity: 0.55; }
.af-icon { font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }
.pf-word { color: #2563eb; } .pf-pdf { color: #dc2626; } .pf-excel { color: #16a34a; }
.pf-image { color: #9333ea; } .pf-zip { color: #b45309; } .pf-ppt { color: #ea580c; } .pf-other { color: #64748b; }
.af-main { flex: 1; min-width: 0; }
.af-name-line { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.af-name { font-size: 0.8125rem; font-weight: 600; color: #0f172a; text-decoration: none; word-break: break-word; }
.af-name:hover { color: #2563eb; text-decoration: underline; }
.af-badge { padding: 0.08rem 0.45rem; border-radius: 4px; font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.af-badge-success { background: #dcfce7; color: #15803d; }
.af-badge-info { background: #dbeafe; color: #1d4ed8; }
.af-badge-muted { background: #f1f5f9; color: #64748b; }
.af-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0; margin-top: 0.15rem; font-size: 0.72rem; color: #64748b; }
.af-meta > span + span::before { content: "·"; margin: 0 0.4rem; color: #cbd5e1; }
.af-type { color: #475569; font-weight: 500; }
.af-comment { display: flex; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.72rem; color: #475569; }
.af-comment > i { color: #94a3b8; }
.af-download {
    width: 30px; height: 30px; flex-shrink: 0; margin-top: 0.05rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; background: #fff; text-decoration: none; font-size: 0.8rem;
}
.af-download:hover { border-color: #2563eb; color: #2563eb; }

/* ─── Timeline card + full history dialog (admin / EIC article pages) ─── */
.tl-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; padding: 0.85rem 1rem; border-bottom: 1px solid #eef2f6; background: #f8fafc; }
.tl-s-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.2rem; }
.tl-s-value { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: #0f172a; line-height: 1.3; }
.tl-s-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.tl-s-sub { font-size: 0.7rem; color: #64748b; margin-top: 0.1rem; }
.tl-list { padding: 0.9rem 1rem 0.2rem; }
.tl-item { position: relative; display: flex; gap: 0.75rem; padding-bottom: 0.95rem; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: #e2e8f0; }
.tl-item:last-child::before { display: none; }
.tl-marker { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 3px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 2px solid var(--tl-color, #94a3b8); }
.tl-current .tl-marker { background: var(--tl-color, #2563eb); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tl-color, #2563eb) 18%, transparent); }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tl-title { font-size: 0.8125rem; font-weight: 600; color: #0f172a; }
.tl-gap { flex-shrink: 0; padding: 0.05rem 0.4rem; border-radius: 4px; background: #f1f5f9; color: #64748b; font-size: 0.65rem; font-weight: 600; white-space: nowrap; }
.tl-meta { margin-top: 0.1rem; font-size: 0.72rem; color: #64748b; }
.tl-role { display: inline-block; padding: 0 0.35rem; border-radius: 4px; background: #eef2ff; color: #4338ca; font-size: 0.65rem; font-weight: 600; vertical-align: 1px; }
.tl-sep { margin: 0 0.35rem; color: #cbd5e1; }
.tl-note { margin-top: 0.25rem; font-size: 0.75rem; color: #475569; line-height: 1.45; }
.tl-footer { padding: 0 1rem 0.9rem; }
.tl-more-note { margin-bottom: 0.45rem; font-size: 0.7rem; color: #94a3b8; text-align: center; }
.tl-history-btn { font-size: 0.75rem; font-weight: 500; border-radius: 6px; }

.hx-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.7rem 1.25rem; border-bottom: 1px solid #eef2f6; }
.hx-chip { padding: 0.25rem 0.65rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: 0.72rem; font-weight: 500; }
.hx-chip span { color: #94a3b8; margin-left: 0.15rem; }
.hx-chip:hover { border-color: #cbd5e1; }
.hx-chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.hx-chip.active span { color: #cbd5e1; }
.hx-body { padding-top: 0.5rem !important; }
.hx-day + .hx-day { margin-top: 0.4rem; }
.hx-day-label { position: sticky; top: -0.5rem; z-index: 1; padding: 0.45rem 0; background: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.hx-item { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid #f1f5f9; }
.hx-icon { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; }
.hx-icon-status { background: #eef2ff; color: #4338ca; }
.hx-icon-review { background: #ecfeff; color: #0e7490; }
.hx-icon-file { background: #f5f3ff; color: #7c3aed; }
.hx-icon-email { background: #f1f5f9; color: #475569; }
.hx-icon-payment { background: #f0fdf4; color: #15803d; }
.hx-main { flex: 1; min-width: 0; }
.hx-title { font-size: 0.8125rem; font-weight: 600; color: #0f172a; word-break: break-word; }
.hx-detail { margin-top: 0.1rem; font-size: 0.75rem; color: #475569; word-break: break-word; }
.hx-meta { margin-top: 0.15rem; font-size: 0.7rem; color: #94a3b8; }

/* Author guidelines sent (same card style as re-write requests) */
.gl-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; }
.gl-tag { padding: 0.1rem 0.5rem; border-radius: 999px; background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; font-size: 0.68rem; font-weight: 600; }
.gl-label { margin-bottom: 0.25rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; }
.gl-file { color: #0e7490; }

/* ─── Admin article list: status chips, toolbar, columns ─── */
.al-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.al-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.7rem; border: 1px solid #e2e8f0; border-radius: 999px;
    background: #fff; color: #334155; font-size: 0.75rem; font-weight: 500; text-decoration: none;
}
.al-chip > i { width: 7px; height: 7px; border-radius: 50%; }
.al-chip > span { color: #94a3b8; font-weight: 600; }
.al-chip:hover { border-color: #cbd5e1; color: #0f172a; }
.al-chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.al-chip.active > span { color: #cbd5e1; }
.al-tools { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.al-select { width: auto; height: 36px; font-size: 0.78rem; border-color: #e2e8f0; border-radius: 8px; background-color: #f8fafc; }
.al-table td { vertical-align: top !important; }
.al-manuscript { min-width: 240px; max-width: 360px; }
.al-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 600; color: #0f172a; text-decoration: none; line-height: 1.4;
}
.al-title:hover { color: #2563eb; text-decoration: underline; }
.al-sub { font-size: 0.72rem; color: #64748b; }
.al-name { font-weight: 500; color: #0f172a; }
.al-author { max-width: 220px; word-break: break-word; }
.al-days { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.al-days-ok { background: #dcfce7; color: #15803d; }
.al-days-warning { background: #fef3c7; color: #a16207; }
.al-days-danger { background: #fee2e2; color: #b91c1c; }
.al-days-muted { background: #f1f5f9; color: #64748b; }
@media (max-width: 767.98px) { .al-tools { width: 100%; } .al-tools .table-search { flex: 1 1 100%; } }

/* ─── Sidebar logo (replaces the "MPRP" text) ─── */
.sidebar-logo { display: inline-flex; align-items: center; text-decoration: none; }
.sidebar-logo img { height: auto; }
.sidebar-logo .sidebar-logo-full { display: block; width: 100px; max-width: 100%; }
.sidebar-logo .sidebar-logo-icon { display: none; width: 38px; }
@media (min-width: 992px) {
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-logo-full { display: none; }
    .sidebar-collapsed .sidebar:not(:hover) .sidebar-logo-icon { display: block; }
}

/* ─── Re-review: earlier round card (reviewer / editorial board pages) ─── */
.rr-card { border-color: #fde68a; }
.rr-card > .card-header { background: #fffbeb; }
.rr-card > .card-header h6 { color: #92400e; font-weight: 600; }
.rr-sub { font-size: 0.75rem; color: #a16207; }
.rr-card .card-body { font-size: 0.8125rem; }
.rr-intro { color: #475569; margin-bottom: 0.75rem; }
.rr-block { border: 1px solid #eef2f6; border-radius: 8px; padding: 0.55rem 0.8rem; margin-bottom: 0.6rem; background: #fff; }
.rr-block > summary { cursor: pointer; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; list-style: none; }
.rr-block > summary::-webkit-details-marker { display: none; }
.rr-block > summary::before { content: "\25B8"; color: #94a3b8; transition: transform 0.15s; }
.rr-block[open] > summary::before { transform: rotate(90deg); }
.rr-title { font-weight: 600; color: #0f172a; }
.rr-date { font-size: 0.72rem; color: #94a3b8; }
.rr-decision { margin-left: auto; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.7rem; font-weight: 600; }
.rr-label { margin: 0.7rem 0 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.rr-text { padding: 0.6rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #1e293b; line-height: 1.55; word-break: break-word; }
.rr-confidential { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.rr-note { display: flex; gap: 0.45rem; align-items: baseline; padding: 0.45rem 0.65rem; margin-bottom: 0.35rem; border-radius: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.rr-note > i { color: #16a34a; }
.rr-note > .rr-date { margin-left: auto; white-space: nowrap; }
.rr-badge { display: inline-block; padding: 0.08rem 0.45rem; border-radius: 4px; background: #fef3c7; color: #a16207; font-size: 0.65rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }

/* Admin journals list: status chips next to the search box */
.jl-status { display: flex; gap: 0.35rem; }
.jl-status .hx-chip { text-decoration: none; }

/* ─── Book Store page (reviewer / editor panel) ─── */
.bs-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 1.75rem; border-radius: 12px; background: linear-gradient(135deg, #14213d 0%, #1e3a5f 55%, #2563eb 100%); color: #fff; overflow: hidden; }
.bs-hero-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #93c5fd; }
.bs-hero-title { margin: 0.25rem 0 0.4rem; font-weight: 700; color: #fff; }
.bs-hero-text { margin: 0; max-width: 560px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.bs-hero-icon { font-size: 3.5rem; color: rgba(255, 255, 255, 0.18); flex-shrink: 0; }
.bs-card { border: 1px solid #e5e9f0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.bs-card-header { background: #fff; border-bottom: 1px solid #eef2f6; font-size: 0.8125rem; font-weight: 600; color: #0f172a; padding: 0.8rem 1.1rem; }
.bs-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.bs-amount { font-size: 2rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.bs-sub, .bs-note { font-size: 0.78rem; color: #64748b; }
.bs-pill { display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.bs-pill-ok { background: #ecfdf5; color: #047857; }
.bs-pill-wait { background: #fffbeb; color: #b45309; }
.bs-unlock-text { font-size: 0.78rem; color: #475569; margin-bottom: 0.35rem; }
.bs-progress { height: 6px; background: #f1f5f9; }
.bs-progress .progress-bar { background: #2563eb; }
.bs-steps { margin: 0; padding-left: 1.25rem; font-size: 0.84rem; color: #334155; line-height: 1.6; }
.bs-steps li + li { margin-top: 0.55rem; }
.bs-steps strong { color: #0f172a; }
.bs-go { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.bs-go-btn { padding: 0.6rem 1.25rem; font-weight: 600; border-radius: 8px; }
.bs-link { font-size: 0.75rem; font-weight: 500; text-decoration: none; }
.bs-order { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.1rem; border-top: 1px solid #f1f5f9; }
.bs-order:first-child { border-top: 0; }
.bs-order-ref { font-size: 0.8125rem; font-weight: 600; color: #0f172a; }
.bs-order-date, .bs-order-kind { font-size: 0.72rem; color: #64748b; }
.bs-order-amount { font-size: 0.85rem; font-weight: 600; color: #b91c1c; }
.bs-order-amount.bs-plus { color: #047857; }
.bs-empty { padding: 1.75rem 1rem; text-align: center; font-size: 0.8rem; color: #94a3b8; }
.bs-empty i { display: block; font-size: 1.5rem; margin-bottom: 0.35rem; }
@media (max-width: 575.98px) { .bs-hero { padding: 1.25rem; } .bs-hero-icon { display: none; } .bs-amount { font-size: 1.6rem; } }

/* Admin topbar: Back to the page you came from (layouts/app) */
.topbar-back-btn { display: inline-flex; align-items: center; flex-shrink: 0; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 500; color: #334155; background: #fff; border: 1px solid #dbe3ef; border-radius: 8px; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.topbar-back-btn:hover, .topbar-back-btn:focus-visible { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.topbar-back-btn i { font-size: 0.95rem; }
