/* r24k Control Panel */

/* ---- add bar ---- */

.r24k-cp-add-bar {
    background: var(--el-canvas);
    border-bottom: 1px solid var(--el-hairline-strong);
    padding: 14px 32px;
}

.r24k-cp-add-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.r24k-cp-add-row .uk-input {
    font-size: 1rem;
    height: 38px;
}

.r24k-cp-fi-label-w  { flex: 1.2; min-width: 120px; }
.r24k-cp-fi-url-w    { flex: 2.5; min-width: 200px; }
.r24k-cp-fi-sm       { flex: 0.8; min-width: 80px; }
.r24k-cp-fi-xs       { flex: 0.5; min-width: 70px; }
.r24k-cp-fi-secret-w { flex: 2; min-width: 180px; }

.r24k-cp-fi-btn {
    flex-shrink: 0;
    font-size: 1rem;
    height: 38px;
    line-height: 36px;
    padding: 0 16px;
    white-space: nowrap;
}

.r24k-cp-form-msg {
    color: #e2231a;
    font-size: 1rem;
    margin-top: 6px;
    min-height: 1.2em;
}

/* ---- body ---- */

.r24k-cp-body {
    padding: 28px 32px;
}

/* ---- cards grid ---- */

.r24k-cp-cards {
    /* gap handled by UIKit uk-grid gutters */
}

/* ---- card ---- */

.r24k-cp-card {
    background: var(--el-surface-card);
    border: 1px solid var(--el-hairline-strong);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 18px 20px;
}

.r24k-cp-card-header {
    align-items: center;
    display: flex;
    gap: 8px;
}

.r24k-cp-label {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r24k-cp-region {
    background: var(--el-primary);
    border-radius: 4px;
    color: var(--el-on-dark);
    flex-shrink: 0;
    font-size: 1rem;
    letter-spacing: 0.03em;
    padding: 1px 7px;
    text-transform: uppercase;
}

.r24k-cp-delete-instance {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.r24k-cp-delete-instance:hover {
    color: #e2231a;
}

/* ---- status ---- */

.r24k-cp-status {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.r24k-cp-count {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.r24k-cp-count-active {
    color: #222;
}

.r24k-cp-count-idle {
    color: #bbb;
}

.r24k-cp-count-error {
    color: #e2231a;
}

.r24k-cp-polled {
    color: #999;
    font-size: 1rem;
}

/* ---- updates ---- */

.r24k-cp-updates-output {
    flex: 1;
    font-size: 1rem;
    min-height: 1.4em;
}

.r24k-cp-all-current {
    color: #999;
}

.r24k-cp-update-row {
    align-items: baseline;
    display: flex;
    gap: 8px;
    margin-bottom: 3px;
}

.r24k-cp-plugin-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r24k-cp-versions {
    color: var(--el-muted);
    flex-shrink: 0;
    font-weight: 600;
}

/* ---- run output ---- */

.r24k-cp-run-output {
    font-size: 1rem;
}

.r24k-cp-run-row {
    display: flex;
    gap: 8px;
    margin-bottom: 3px;
}

.r24k-cp-run-ok   { color: var(--el-success); font-weight: 600; }
.r24k-cp-run-fail { color: #e2231a; font-weight: 600; }
.r24k-cp-run-skip { color: #bbb; }

/* ---- card actions ---- */

.r24k-cp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.r24k-cp-card-actions .uk-button-small {
    font-size: 1rem;
    line-height: 28px;
    padding: 0 10px;
}
