.ci-hdr-due {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    /* padding: 6px 14px; */
}
.ci-popup-close span.material-symbols-outlined {
    font-size: 1.2rem;
}
/* ── Batch details readability ── */
.ci-batch-dot.active   { background-color: #019001; }
.ci-batch-dot.completed { background-color: #6c757d; }

.ci-batch-badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    border-radius: 0.5rem;
    font-weight: 600;
}

.ci-batch-badge.bg-active {
    color: #0f5132;
    background-color: #d1e7dd;
}

.ci-batch-badge.bg-completed {
    color: #495057;
    background-color: #e9ecef;
}

.ci-batch-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ci-batch-dates-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* ── Form row alignment ── */
.ci-form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.ci-form-row .control-label {
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
    margin-bottom: 0;
    font-weight: 600;
}
.ci-form-row .form-control,
.ci-form-row .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Reminder inline fields ── */
.ci-reminder-inline {
    display: flex;
    gap: 1rem;
    flex: 1;
    align-items: center;
}
.ci-reminder-inline > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}
.ci-in-sm {
    width: 80px;
    text-align: end;
}

/* ── Tabulator header filters ── */
.tabulator-header-filter {
    visibility: hidden;
    padding-top: 4px;
}
.tab-visible {
    visibility: visible !important;
}
.tabulator-header.tab-filter-wrap {
    height: auto !important;
    min-height: 60px;
}
.tabulator-header-filter input,
.tabulator-header-filter select {
    width: 100%;
    font-size: 0.78rem;
}

/* ── detail panel content ── */

.detail-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ci-black);
    margin-bottom: .2rem;
}
.detail-author-meta {
    font-size: .78rem;
    color: #6c757d;
}
.detail-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.detail-field {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.detail-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}
.detail-val {
    font-size: .82rem;
    color: var(--ci-black);
    word-break: break-word;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: .25rem; }


.a-name   { font-weight: 700; font-size: .875rem; color: var(--ci-black); margin-bottom: .15rem; }
.a-affil  { font-size: .75rem; color: #6c757d; margin-bottom: .4rem; }

.a-pubs { font-size: .72rem; color: var(--ci-orange); margin-top: auto; }

/* ── KPI Card Active State ── */

.ci-kpi-card {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── Selected authors reorder modal icons (mirrors Peer-Review) ── */
.pm-icon {
    text-align: center;
}
.drag-icon {
    cursor: grab;
    color: #6c757d;
    font-size: 1.1rem;
}
.drag-icon:active {
    cursor: grabbing;
}
.delete-icon {
    cursor: pointer;
    color: #dc3545;
    font-size: 1.1rem;
}
.delete-icon:hover {
    color: #a71d2a;
}

/* ── Already-selected (existing) authors in search results ── */
.a-card.disabled-selected {
    opacity: 0.85;
    cursor: default;
}
.a-card.disabled-selected .card-checkbox {
    cursor: not-allowed;
}
.a-existing-badge {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* ── Inline inputs inside Tabulator cells ── */
.tab-in {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
}
.tab-in:focus {
    background: #fff;
}
.tab-in:disabled,
.tab-in[readonly] {
    opacity: 0.85;
    cursor: not-allowed;
}

/* ── Modal close button (visible replacement for Bootstrap btn-close) ── */
.ci-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: -0.5rem -0.5rem -0.5rem auto;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5a5a5a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ci-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}
.ci-modal-close .material-symbols-outlined {
    font-size: 20px;
}

/* ── Issue specification panel on create/edit commission ── */
.ci-issue-spec {
    margin-left: 0;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: transparent;
    border: 3px solid #f0c669;
    border-radius: 12px;
    height: calc(100vh - 330px);
}
.ci-issue-spec .sub-head {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
/* ── Issue Dashboard grouped layout ── */
.ci-issue-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Issue specification card (Volume Planner style) ── */
.ci-issue-spec-loading {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.75rem 1rem;
}
.ci-issue-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: #1a1a1a;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}
.ci-issue-spec-header-left {
    flex: 1;
}
.ci-issue-spec-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}
.ci-issue-spec-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}
.ci-issue-spec-pagecount {
    background: transparent;
    color: #254D6E;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}
.ci-issue-spec-deadlines {
    padding: 0.75rem 1rem;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}
.ci-issue-spec-deadline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}
.ci-issue-spec-deadline:last-child {
    margin-bottom: 0;
}
.ci-issue-spec-deadline-label {
    color: #495057;
}
.ci-issue-spec-deadline-date {
    color: #254D6E;
    font-weight: 600;
}
.ci-issue-spec-articles {
    background: transparent;
    padding: 0.5rem 1rem;
}
.ci-issue-spec-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.85rem;
}
.ci-issue-spec-article:last-child {
    border-bottom: none;
}
.ci-issue-spec-article-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}
.ci-issue-spec-article-name::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #212529;
    border-radius: 50%;
}
.ci-issue-spec-article-count {
    font-weight: 700;
    color: #254D6E;
    min-width: 1.5rem;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════
   REUSABLE CENTERED POPUP — matches Peer Review .popup-container
   ═══════════════════════════════════════════════════════════════ */

.ci-popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.ci-popup-overlay.open { display: flex; }

.ci-popup {
    background-color: #FFF;
    width: 52%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 105;
}

.ci-popup-head {
    background-color: #ffcd67;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    flex-shrink: 0;
}

.ci-popup-header {
    color: #1D1F21;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
}

.ci-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1D1F21;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0.2rem;
    margin-left: 0.5rem;
}
.ci-popup-close:hover { color: #ff5b5b; }

.ci-popup-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.2rem;
    min-height: 0;
}

.ci-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.ci-popup-footer .btn {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
}

.pm-vplanner-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    flex: 1 0 0;
}

.pm-vplanner-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gap-0 {
  gap: 0;
}

.pm-vplanner-card-header {
    background: #f0c669;
    padding: 16px 18px;
}
.pm-vplanner-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.pm-vplanner-issue-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}
.pm-vplanner-issue-subtitle {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.8;
}
.pm-vplanner-page-badge {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
}
.pm-vplanner-deadlines {
    margin-top: 10px;
}
.pm-vplanner-deadline {
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
}
.pm-vplanner-card-body {
    background: #f5f5f5;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.pm-vplanner-article-list, .pm-vplanner-other-details-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #333;
    background: #fffbeb;
}

.pm-vplanner-other-details-list {
    background: beige;
}

.pm-vplanner-article-name {
    flex: 1;
}
.pm-vplanner-article-count {
    font-weight: 700;
    min-width: 28px;
    text-align: right;
}
.pm-vplanner-other-details-list strong {
    font-weight: 700;
}

.pm-vplanner-period {
  margin-left: auto;
}
.pm-vplanner-period-label 
.pm-vplanner-empty,
.pm-vplanner-loading,
.pm-vplanner-error {
  padding: 40px 46px;
  text-align: center;
  font-size: 15px;
  color: #6c757d;
}
.pm-vplanner-error {
  color: #8B3A3A;
}

@media (max-width: 991px) {
    .ci-popup {
        width: 80%;
        max-height: 92vh;
    }
}

@media (max-width: 576px) {
    .ci-popup {
        width: 100%;
        max-height: 95vh;
    }
    .ci-popup-overlay {
        padding: 0.5rem;
    }
}

/* ── Issue Dashboard main layout (spec + table) ── */
.ci-dashboard-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.ci-dashboard-spec {
    padding: 0.75rem;
    background: transparent;
    border: 3px solid #f0c669;
    border-radius: 12px;
    height: calc(100vh - 330px);
    gap: 0.4rem;
    display: flex;
    flex-direction: column;
}
.ci-dashboard-spec .ci-issue-spec {
    margin-bottom: 0;
}
.ci-dashboard-table {
    flex: 1 1 auto;
}
