
/* ── Applications page ────────────────────────────────────────────────────── */
.apps-body {
    max-width: 1200px; margin: 0 auto; width: 100%;
    padding: 24px; box-sizing: border-box;
}

.apps-header-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
}

.apps-title {
    font-size: 22px; font-weight: 700; color: #1e293b; letter-spacing: -0.5px;
}

.apps-subtitle { font-size: 13px; color: #94a3b8; margin-top: 4px; }

.new-app-btn {
    padding: 10px 20px; border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border: none; color: #fff; font-family: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s;
}
.new-app-btn:hover { opacity: 0.9; }

.refresh-btn {
    padding: 8px 16px; border-radius: 8px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    color: #64748b; font-family: inherit;
    font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.refresh-btn:hover { background: #e2e8f0; }

.apps-empty {
    text-align: center; padding: 60px 20px;
    color: #94a3b8; font-size: 14px;
}

/* Table */
.apps-table-wrap {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; overflow: hidden;
}

.apps-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}

.apps-table thead tr {
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}

.apps-table th {
    padding: 12px 14px; text-align: left;
    font-size: 11px; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.app-row { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.app-row:last-child { border-bottom: none; }
.app-row:hover { background: #f8fafc; }

.apps-table td { padding: 14px; color: #1e293b; vertical-align: middle; }

.app-orgname { font-weight: 600; color: #1e293b; }
.app-date    { color: #94a3b8; font-size: 12px; }

/* Score pill */
.score-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 700;
}
.score-eligible   { background: rgba(59,130,246,0.1); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.2); }
.score-ineligible { background: rgba(239,68,68,0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }

/* Stage badge */
.stage-badge {
    display: inline-flex; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.stage-complete   { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.stage-collecting { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.stage-summary    { background: rgba(99,102,241,0.1); color: #4f46e5; border: 1px solid rgba(99,102,241,0.2); }
.stage-routing    { background: rgba(148,163,184,0.1);color: #64748b; border: 1px solid rgba(148,163,184,0.2); }
.stage-ineligible { background: rgba(239,68,68,0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }

/* Action buttons */
.action-btns { display: flex; gap: 6px; }

.action-btn {
    padding: 6px 12px; border-radius: 7px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.2s; font-family: inherit;
    display: inline-flex; align-items: center;
}
.review-btn {
    background: #f1f5f9; border: 1px solid #e2e8f0; color: #475569;
}
.review-btn:hover { background: #e2e8f0; }

.pdf-btn {
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    border: none; color: #fff;
}
.pdf-btn:hover { opacity: 0.9; }

/* Dot pulse loader */
.dot-pulse {
    display: flex; gap: 6px; justify-content: center; margin-bottom: 12px;
}
.dot-pulse span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3b82f6; animation: bounce 1.2s ease-in-out infinite;
}
.dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.4s; }
