.cert-view-toggle {
    display: flex;
    gap: 6px;
    padding: 10px 12px 0;
}

.toggle-btn {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #475569;
    transition: all 0.15s;

    &.active {
        background: #0f172a;
        color: #fff;
        border-color: #0f172a;
    }
}

/* ─── Register View ─── */
.cert-register {
    padding: 10px 12px;
}

.summary-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.strip-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
}

.strip-verified { border-left: 3px solid #059669; }
.strip-expiring { border-left: 3px solid #d97706; }

.strip-val {
    font-size: 20px;
    font-weight: 500;
    font-family: 'DM Mono', monospace;
    color: #0f172a;
}

.strip-lbl {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
}

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-input {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    min-width: 180px;
}

.filter-select {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    min-width: 120px;
}

.loading-state,
.error-state {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

.table-wrap { overflow-x: auto; }

.cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;

    th {
        background: #f8fafc;
        color: #475569;
        font-size: 10.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 8px 12px;
        border-bottom: 1px solid #e2e8f0;
        white-space: nowrap;
    }

    td {
        padding: 9px 12px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
    }

    tbody tr:hover { background: #f8fafc; }
}

.td-mono { font-family: 'DM Mono', monospace; font-size: 12px; }
.td-muted { color: #475569; font-size: 12px; }
.td-link { color: #1d4ed8; }

.cert-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.badge-inhouse { background: #f1f5f9; color: #334155; }
.badge-3p { background: #ede9fe; color: #4c1d95; }

/* Expiry status */
.expiry-valid { color: #475569; }
.expiry-expiring { color: #92400e; font-weight: 600; }
.expiry-expired { color: #dc2626; font-weight: 600; }

.verify-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;

    &.verified { background: #d1fae5; color: #065f46; }
}

.verify-btn {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    cursor: pointer;
    font-weight: 500;
    background: #fef3c7;
    color: #92400e;
    transition: all 0.15s;

    &:hover { background: #fde68a; }
}

.btn-icon {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;

    &:hover { background: #f1f5f9; }
}

.empty-row {
    text-align: center;
    color: #94a3b8;
    padding: 32px;
}

/* ─── Entry Form View ─── */
.FormOverView {
    padding: 8px 12px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.compact-section {
    background: #fff;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.blue-line {
    width: 3px;
    height: 14px;
    background-color: #3b82f6;
    margin-right: 6px;
    border-radius: 2px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
    align-items: start;
}

/* Expiry indicator */
.expiry-indicator {
    margin-top: 8px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
}

.expiry-indicator-valid { background: #d1fae5; color: #065f46; }
.expiry-indicator-expiring { background: #fef3c7; color: #92400e; }
.expiry-indicator-expired { background: #fee2e2; color: #991b1b; }

.verify-action-row { margin-top: 10px; }

.btn-verify {
    padding: 6px 16px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;

    &:hover { background: #1e293b; }
}

.verified-indicator {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #d1fae5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #065f46;
}

/* ─── RTL ─── */
[dir="rtl"] {
    .section-title { flex-direction: row-reverse; }
    .blue-line { margin-right: 0; margin-left: 6px; }
    .filter-bar { flex-direction: row-reverse; }
    .cert-table th,
    .cert-table td { text-align: right; }
    .summary-strip { flex-direction: row-reverse; }
}
