/* ============================================================
   Kamdhenu ERP — Front-end Admin Portal CSS (v3.0)
   Professional white ERP design. Scoped under .acap-ap.
   ============================================================ */

.acap-ap {
    --acap-bg:             #f8fafc;
    --acap-bg-card:        #ffffff;
    --acap-bg-sidebar:     #0f172a;
    --acap-bg-sidebar-hover: rgba(255,255,255,.07);
    --acap-accent:         #2563eb;
    --acap-accent-hover:   #1d4ed8;
    --acap-accent-light:   #eff6ff;
    --acap-success:        #16a34a;
    --acap-success-bg:     #f0fdf4;
    --acap-warning:        #d97706;
    --acap-warning-bg:     #fffbeb;
    --acap-danger:         #dc2626;
    --acap-danger-bg:      #fef2f2;
    --acap-text:           #0f172a;
    --acap-text-muted:     #64748b;
    --acap-text-light:     #94a3b8;
    --acap-border:         #e2e8f0;
    --acap-shadow-sm:      0 1px 2px rgba(0,0,0,.05);
    --acap-shadow:         0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --acap-shadow-md:      0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --acap-shadow-lg:      0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --acap-radius:         12px;
    --acap-radius-sm:      8px;
    --acap-transition:     0.16s ease;
    --acap-font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --acap-font-heading:   'Sora', 'Inter', sans-serif;

    display: flex;
    min-height: 100vh;
    background: var(--acap-bg);
    color: var(--acap-text);
    font-family: var(--acap-font-body);
    -webkit-font-smoothing: antialiased;
}
.acap-ap *, .acap-ap *::before, .acap-ap *::after { box-sizing: border-box; }

/* ── Sidebar ─────────────────────────────────────────────── */
.acap-ap-sidebar {
    width: 256px;
    flex-shrink: 0;
    background: var(--acap-bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 20;
    transition: transform var(--acap-transition);
}

.acap-ap-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.35rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.acap-ap-brand-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--acap-accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--acap-font-heading); font-weight: 800;
    color: #fff; font-size: 0.9rem; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,.4);
}
.acap-ap-brand-text {
    font-family: var(--acap-font-heading);
    font-weight: 700; font-size: 0.95rem; color: #f1f5f9;
}
.acap-ap-brand-version {
    font-size: 0.68rem; color: #475569; font-weight: 400;
    display: block; line-height: 1;
}

.acap-ap-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 0.875rem 0.75rem; }
.acap-ap-nav-item {
    display: flex; align-items: center; gap: 0.65rem;
    background: transparent; border: none; cursor: pointer;
    color: #94a3b8; font-family: var(--acap-font-body);
    font-size: 0.875rem; font-weight: 500; text-align: left;
    padding: 0.625rem 0.75rem; border-radius: var(--acap-radius-sm);
    transition: all var(--acap-transition);
    width: 100%;
}
.acap-ap-nav-item:hover { background: var(--acap-bg-sidebar-hover); color: #e2e8f0; }
.acap-ap-nav-item.is-active { background: rgba(37,99,235,.2); color: #93c5fd; font-weight: 600; }
.acap-ap-nav-icon { font-size: 0.9rem; flex-shrink: 0; width: 18px; text-align: center; }
.acap-ap-nav-icon svg { width: 16px; height: 16px; }
.acap-ap-nav-label { flex: 1; }
.acap-ap-nav-badge {
    background: #dc2626; color: #fff; font-size: 0.7rem;
    font-weight: 700; border-radius: 10px; min-width: 20px;
    padding: 1px 6px; text-align: center; line-height: 1.5;
}

.acap-ap-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.acap-ap-home-link {
    display: flex; align-items: center; gap: 0.5rem;
    color: #64748b; font-size: 0.82rem; text-decoration: none;
    padding: 0.5rem 0.75rem; border-radius: var(--acap-radius-sm);
    transition: color var(--acap-transition);
}
.acap-ap-home-link:hover { color: #94a3b8; }

/* ── Main ────────────────────────────────────────────────── */
.acap-ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.acap-ap-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.75rem;
    border-bottom: 1px solid var(--acap-border);
    background: var(--acap-bg-card);
    position: sticky; top: 0; z-index: 10;
    box-shadow: var(--acap-shadow-sm);
}
.acap-ap-burger {
    display: none; background: none; border: none;
    color: var(--acap-text); font-size: 1.2rem; cursor: pointer;
    padding: 4px; border-radius: 6px;
}
.acap-ap-burger:hover { background: var(--acap-bg); }
.acap-ap-page-title {
    font-family: var(--acap-font-heading); font-size: 1.1rem;
    font-weight: 700; color: var(--acap-text); margin: 0; flex: 1;
}
.acap-ap-header-right { display: flex; align-items: center; gap: 0.875rem; }
.acap-ap-user {
    font-size: 0.84rem; color: var(--acap-text-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
.acap-ap-user-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
}

/* Toast */
.acap-ap-toast {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999;
    padding: 0.75rem 1.1rem; border-radius: var(--acap-radius-sm);
    font-size: 0.875rem; font-weight: 500; display: none;
    box-shadow: var(--acap-shadow-lg); max-width: 360px;
    animation: acapApSlideIn .18s ease;
}
.acap-ap-toast.is-success {
    background: var(--acap-success-bg);
    border: 1px solid #bbf7d0; color: #166534;
}
.acap-ap-toast.is-error {
    background: var(--acap-danger-bg);
    border: 1px solid #fecaca; color: #991b1b;
}
@keyframes acapApSlideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.acap-ap-content { padding: 1.75rem; flex: 1; }
.acap-ap-section { display: none; }
.acap-ap-section.is-active { display: block; animation: acapApFade .18s ease; }
@keyframes acapApFade { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* ── Stats cards ─────────────────────────────────────────── */
.acap-ap-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.acap-ap-stat-card {
    background: var(--acap-bg-card);
    border: 1px solid var(--acap-border);
    border-radius: var(--acap-radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--acap-shadow-sm);
    border-top: 3px solid var(--acap-accent);
    transition: box-shadow var(--acap-transition), transform var(--acap-transition);
}
.acap-ap-stat-card:hover { box-shadow: var(--acap-shadow-md); transform: translateY(-1px); }
.acap-ap-stat--blue   { border-top-color: #3b82f6; }
.acap-ap-stat--indigo { border-top-color: #6366f1; }
.acap-ap-stat--green  { border-top-color: #22c55e; }
.acap-ap-stat--amber  { border-top-color: #f59e0b; }
.acap-ap-stat--red    { border-top-color: #ef4444; }
.acap-ap-stat--teal   { border-top-color: #14b8a6; }
.acap-ap-stat--purple { border-top-color: #a855f7; }
.acap-ap-stat--cyan   { border-top-color: #06b6d4; }
.acap-ap-stat-label { font-size: 0.75rem; font-weight: 600; color: var(--acap-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.acap-ap-stat-value { display: block; font-family: var(--acap-font-heading); font-size: 1.9rem; font-weight: 800; color: var(--acap-text); line-height: 1.1; margin-top: 0.25rem; }

.acap-ap-quick-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }

/* ── Cards ───────────────────────────────────────────────── */
.acap-ap-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .acap-ap-grid-2 { grid-template-columns: 1fr; } }
.acap-ap-card {
    background: var(--acap-bg-card);
    border: 1px solid var(--acap-border);
    border-radius: var(--acap-radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--acap-shadow-sm);
}
.acap-ap-card--narrow { max-width: 560px; }
.acap-ap-card h3 { font-family: var(--acap-font-heading); font-size: 1rem; font-weight: 700; color: var(--acap-text); margin: 0 0 1rem; }
.acap-ap-card h4 { font-family: var(--acap-font-heading); font-size: 0.875rem; font-weight: 600; color: var(--acap-text-muted); margin: 1rem 0 0.5rem; }
.acap-ap-card-header { margin-bottom: 1rem; }
.acap-ap-card-header--split { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.acap-ap-muted { color: var(--acap-text-muted); font-size: 0.875rem; }

/* ── Tables ──────────────────────────────────────────────── */
.acap-ap-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.acap-ap-table th, .acap-ap-table td { padding: 0.75rem 0.875rem; text-align: left; border-bottom: 1px solid var(--acap-border); vertical-align: middle; }
.acap-ap-table thead th { color: var(--acap-text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--acap-bg); }
.acap-ap-table tbody tr:hover { background: #f8fafc; }
.acap-ap-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.acap-ap-kv { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.acap-ap-kv th { width: 38%; color: var(--acap-text-muted); font-weight: 500; font-size: 0.82rem; padding: 5px 8px 5px 0; vertical-align: top; border-bottom: 1px solid var(--acap-border); }
.acap-ap-kv td { font-size: 0.875rem; padding: 5px 0; border-bottom: 1px solid var(--acap-border); }

/* ── Badges ──────────────────────────────────────────────── */
.acap-ap-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.acap-ap-badge--pending       { background: #fef3c7; color: #92400e; }
.acap-ap-badge--under_review  { background: #dbeafe; color: #1e40af; }
.acap-ap-badge--approved      { background: #dcfce7; color: #166534; }
.acap-ap-badge--enrolled      { background: #ccfbf1; color: #0f766e; }
.acap-ap-badge--rejected      { background: #fee2e2; color: #991b1b; }
.acap-ap-badge--hold          { background: #ede9fe; color: #5b21b6; }
.acap-ap-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.acap-ap-dot--on  { background: #22c55e; }
.acap-ap-dot--off { background: #e2e8f0; }
.acap-ap-text-success { color: var(--acap-success); }
.acap-ap-text-cyan { color: #0284c7; }
.acap-ap-text-muted { color: var(--acap-text-muted); }

/* ── Buttons ─────────────────────────────────────────────── */
.acap-btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    border-radius: var(--acap-radius-sm); border: 1.5px solid transparent;
    font-family: var(--acap-font-body); font-weight: 600; font-size: 0.875rem;
    padding: 0.55rem 1rem; cursor: pointer; transition: all var(--acap-transition);
    text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.acap-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.acap-btn--primary {
    background: var(--acap-accent); color: #fff; border-color: var(--acap-accent);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.acap-btn--primary:hover { background: var(--acap-accent-hover); border-color: var(--acap-accent-hover); }
.acap-btn--secondary {
    background: #fff; color: var(--acap-text); border-color: var(--acap-border);
    box-shadow: var(--acap-shadow-sm);
}
.acap-btn--secondary:hover { background: var(--acap-bg); border-color: #cbd5e1; }
.acap-btn--ghost { background: transparent; border-color: var(--acap-border); color: var(--acap-text-muted); }
.acap-btn--ghost:hover { background: var(--acap-bg); color: var(--acap-text); border-color: #cbd5e1; }
.acap-btn--danger { background: transparent; border-color: #fecaca; color: var(--acap-danger); }
.acap-btn--danger:hover { background: var(--acap-danger-bg); }
.acap-btn--sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.acap-btn--full { width: 100%; }
.acap-ap-goto { display: inline-flex; }
.acap-ap-logout { color: #dc2626; border-color: #fecaca; }
.acap-ap-logout:hover { background: #fef2f2; }

/* ── Forms / filters ─────────────────────────────────────── */
.acap-ap-input {
    background: var(--acap-bg-card);
    border: 1.5px solid var(--acap-border);
    border-radius: var(--acap-radius-sm);
    color: var(--acap-text);
    padding: 0.55rem 0.875rem;
    font-family: var(--acap-font-body);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--acap-transition), box-shadow var(--acap-transition);
}
.acap-ap-input:focus { border-color: var(--acap-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.acap-ap-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.acap-ap-inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.acap-ap-checkbox-list {
    max-height: 180px; overflow-y: auto;
    border: 1.5px solid var(--acap-border);
    border-radius: var(--acap-radius-sm);
    padding: 0.6rem;
    background: var(--acap-bg);
}
.acap-ap-checkbox-list label { display: flex; align-items: center; gap: 0.5rem; padding: 4px; font-size: 0.875rem; cursor: pointer; border-radius: 6px; }
.acap-ap-checkbox-list label:hover { background: var(--acap-bg-card); }

.acap-ap-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.875rem; }
.acap-ap-form-group label { font-size: 0.82rem; font-weight: 600; color: var(--acap-text); }
.acap-ap-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
@media (max-width: 600px) { .acap-ap-form-row { grid-template-columns: 1fr; } }

/* ── Modal ───────────────────────────────────────────────── */
.acap-ap-modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(15,23,42,.4); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.acap-ap-modal-overlay.is-open { display: flex; animation: acapApFadeIn .15s ease; }
@keyframes acapApFadeIn { from { opacity:0; } to { opacity:1; } }
.acap-ap-modal {
    background: var(--acap-bg-card);
    border: 1px solid var(--acap-border);
    border-radius: var(--acap-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--acap-shadow-lg);
    position: relative;
    animation: acapApModalIn .18s ease;
}
@keyframes acapApModalIn { from { opacity:0; transform:scale(.97) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.acap-ap-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--acap-bg); border: 1px solid var(--acap-border);
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--acap-text-muted); transition: all var(--acap-transition); z-index: 1;
}
.acap-ap-modal-close:hover { background: var(--acap-bg-hover); color: var(--acap-text); }
.acap-ap-modal-body { padding: 1.5rem; }
.acap-ap-modal-title { font-family: var(--acap-font-heading); font-size: 1.1rem; font-weight: 700; margin: 0 0 1.25rem; color: var(--acap-text); }

/* ── Student detail ──────────────────────────────────────── */
.acap-ap-student-detail { }
.acap-ap-student-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.acap-ap-student-avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--acap-border); flex-shrink: 0;
}
.acap-ap-student-avatar--initials {
    background: var(--acap-accent);
    color: #fff; font-family: var(--acap-font-heading); font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.acap-ap-student-name { font-family: var(--acap-font-heading); font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.acap-ap-student-email { font-size: 0.84rem; color: var(--acap-text-muted); margin: 0; }

/* ── Section separator ────────────────────────────────────── */
.acap-ap-section-title {
    font-family: var(--acap-font-heading); font-size: 0.78rem; font-weight: 600;
    color: var(--acap-text-muted); text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0 0.75rem; margin: 0.5rem 0 4px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .acap-ap-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--acap-shadow-lg);
    }
    .acap-ap-sidebar.is-open { transform: translateX(0); }
    .acap-ap-burger { display: flex; }
    .acap-ap-content { padding: 1.25rem; }
    .acap-ap-header { padding: 0.875rem 1.25rem; }
    .acap-ap-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .acap-ap-stats { grid-template-columns: 1fr; }
}

/* ================================================================
   Kamdhenu ERP v1.7 — Notification Center, Email Templates,
   WhatsApp Templates, System Settings additions
   ================================================================ */

/* ── General v1.7 card narrow variant ─────────────────────── */
.acap-ap-card--narrow {
    max-width: 720px;
}

/* ── Notification center ───────────────────────────────────── */
.acap-notif-item {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: .875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.acap-notif-item:last-child { border-bottom: none; }
.acap-notif-item:hover      { background: #fafafa; }
.acap-notif-item.is-unread  { background: #faf5ff; }

.acap-notif-dot              { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.acap-notif-dot--info        { background: #3b82f6; }
.acap-notif-dot--success     { background: #22c55e; }
.acap-notif-dot--warning     { background: #f59e0b; }
.acap-notif-dot--error       { background: #ef4444; }
.acap-notif-dot--read        { background: #cbd5e1; }

.acap-notif-body             { flex: 1; min-width: 0; }
.acap-notif-meta             { font-size: .75rem; color: #94a3b8; margin-top: 2px; }

.acap-notif-badge            { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-right: 4px; }
.acap-notif-badge--student   { background: #ede9fe; color: #6d28d9; }
.acap-notif-badge--counselor { background: #dbeafe; color: #1e40af; }
.acap-notif-badge--admin     { background: #fef3c7; color: #92400e; }

.acap-notif-actions          { display: flex; gap: .375rem; flex: none; }
.acap-notif-act-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 5px;
    transition: all .12s;
    display: flex;
    align-items: center;
}
.acap-notif-act-btn:hover           { background: #f1f5f9; color: #475569; }
.acap-notif-act-btn--del:hover      { background: #fee2e2; color: #dc2626; }

/* ── Email template editor ─────────────────────────────────── */
.acap-email-tpl-nav-item:hover {
    background: #f5f3ff !important;
    color: #7c3aed !important;
}

/* ── WhatsApp templates ────────────────────────────────────── */
.acap-wa-tpl-nav-item:hover {
    background: #f0fdf4 !important;
    color: #15803d !important;
}

/* ── Settings tabs ─────────────────────────────────────────── */
.acap-settings-tab-btn:hover {
    background: #fff !important;
    color: #7c3aed !important;
}
.acap-settings-label {
    font-size: .78rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: block;
}

/* ── Sidebar brand: Kamdhenu ERP white label ───────────────── */
.acap-ap-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex: none;
    box-shadow: 0 4px 12px rgba(124,58,237,.35);
}
.acap-ap-brand-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: .92rem;
    color: #fff;
    line-height: 1.1;
    letter-spacing: .02em;
}
.acap-ap-brand-version {
    font-size: .65rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    letter-spacing: .04em;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

/* ── Quick links row ───────────────────────────────────────── */
.acap-ap-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    margin-bottom: 1.5rem;
}

/* ── General card header split ─────────────────────────────── */
.acap-ap-card-header--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Spinner animation ─────────────────────────────────────── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==========================================================================
   Kamdhenu ERP v1.8 — Security & Audit styles
   ========================================================================== */

/* ── Security section tab panel ─────────────────────────────── */
.acap-sec-panel { display: none; }
.acap-sec-panel.is-active { display: block; }

/* ── Audit log table ─────────────────────────────────────────── */
#acap-audit-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
#acap-audit-table thead tr { background: #f8fafc; }
#acap-audit-table th {
    text-align: left;
    padding: .625rem .875rem;
    font-size: .72rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
#acap-audit-table td {
    padding: .6rem .875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
#acap-audit-table tbody tr:hover { background: #f8fafc; }
#acap-audit-table tbody tr:last-child td { border-bottom: none; }

/* ── Permissions table ───────────────────────────────────────── */
.acap-perm-checkbox:hover { transform: scale(1.15); }

/* ── Backup drop-zone hover ──────────────────────────────────── */
#acap-import-drop-zone {
    transition: border-color .15s, background .15s;
}
#acap-import-drop-zone:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

/* ── Health check rows ───────────────────────────────────────── */
.acap-health-row {
    display: flex;
    align-items: center;
    gap: .875rem;
    border-radius: 8px;
    padding: .6rem .875rem;
    margin-bottom: .4rem;
}

/* ── Security nav item ───────────────────────────────────────── */
.acap-ap-nav-item[data-section="security"] .acap-ap-nav-icon svg {
    stroke: #7c3aed;
}

/* ── Responsive: stack backup cards ─────────────────────────── */
@media (max-width: 700px) {
    .acap-sec-tab-btn { font-size: .73rem; padding: 5px 9px; }
    #acap-audit-table { font-size: .77rem; }
}
