.sdo-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.sdo-page-subtitle {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.sdo-back-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.sdo-back-link:hover { color: rgba(255,255,255,0.8); }

.sdo-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sdo-stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sdo-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sdo-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 3px;
}

.sdo-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.sdo-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.875rem;
    font-weight: 700;
    color: #E2E8F0;
}

.sdo-card-body {
    padding: 18px;
}

.sdo-table {
    width: 100%;
    border-collapse: collapse;
}

.sdo-table th {
    padding: 10px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.sdo-table td {
    padding: 11px 16px;
    font-size: 0.875rem;
    color: #E2E8F0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.sdo-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.sdo-table tbody tr:last-child td { border-bottom: none; }

.sdo-badge-success {
    display: inline-block;
    background: rgba(34,197,94,0.15);
    color: #4ADE80;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.sdo-badge-warning {
    display: inline-block;
    background: rgba(234,179,8,0.15);
    color: #FDE047;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.sdo-badge-danger {
    display: inline-block;
    background: rgba(239,68,68,0.15);
    color: #F87171;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.sdo-badge-neutral {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.sdo-badge-role {
    display: inline-block;
    background: rgba(99,102,241,0.15);
    color: #A5B4FC;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: capitalize;
}

.sdo-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(201,168,76,0.2);
    color: #C9A84C;
    font-weight: 700;
    font-size: 0.72rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sdo-avatar-lg {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(201,168,76,0.2);
    color: #C9A84C;
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sdo-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 5px;
}

.sdo-label-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
}

.sdo-form-control, .sdo-form-select {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    padding: 9px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.15s;
    outline: none;
}

.sdo-form-control::placeholder { color: rgba(255,255,255,0.25); }
.sdo-form-control:focus,
.sdo-form-select:focus {
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.sdo-form-select option { background: #1B2A6B; color: #fff; }

.sdo-field-error {
    font-size: 0.78rem;
    color: #F87171;
    margin-top: 4px;
}

.sdo-btn-primary {
    background: #2563EB;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    transition: background 0.15s;
    cursor: pointer;
}

.sdo-btn-primary:hover, .sdo-btn-primary:focus { background: #1D4ED8; color: #fff; }

.sdo-btn-outline {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #E2E8F0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.sdo-btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.sdo-btn-danger {
    background: rgba(239,68,68,0.8);
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}

.sdo-btn-danger:hover { background: #EF4444; color: #fff; }

.sdo-btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.sdo-icon-btn {
    width: 30px; height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.sdo-icon-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sdo-icon-btn.text-danger:hover { background: rgba(239,68,68,0.15); color: #F87171; border-color: rgba(239,68,68,0.3); }
.sdo-icon-btn.text-success:hover { background: rgba(34,197,94,0.15); color: #4ADE80; border-color: rgba(34,197,94,0.3); }

.sdo-link-sm {
    font-size: 0.8rem;
    color: #93C5FD;
    text-decoration: none;
    font-weight: 600;
}

.sdo-link-sm:hover { color: #BFDBFE; text-decoration: underline; }

.sdo-modal {
    background: #1B2A6B;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.sdo-modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.sdo-modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.modal-body { color: #E2E8F0; }

.sdo-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sdo-alert-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ADE80;
}

.sdo-alert-danger {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #F87171;
}

.sdo-info-box {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #93C5FD;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sdo-hint-text { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

.sdo-detail-table { width: 100%; font-size: 0.875rem; }
.sdo-detail-table th { color: rgba(255,255,255,0.4); font-weight: 600; width: 40%; padding: 6px 0; }
.sdo-detail-table td { color: #E2E8F0; padding: 6px 0; }

.sdo-code-block {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #93C5FD;
    line-height: 1.7;
}

.sdo-dropzone {
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sdo-dropzone:hover,
.sdo-dropzone.drag-over {
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.05);
}

.sdo-dropzone.has-file {
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.05);
}

.sdo-dropzone-icon { font-size: 2.5rem; color: rgba(255,255,255,0.25); display: block; margin-bottom: 10px; }
.sdo-dropzone-label { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.7); margin: 0; }
.sdo-dropzone-hint { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 4px 0 0; }
.sdo-dropzone-filename { font-size: 0.83rem; color: #4ADE80; font-weight: 600; margin-top: 8px; }

.sdo-tab-bar { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0; }

.sdo-tab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.83rem;
    font-weight: 600;
    padding: 8px 14px 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    font-family: 'Poppins', sans-serif;
}

.sdo-tab:hover { color: rgba(255,255,255,0.7); }
.sdo-tab.active { color: #93C5FD; border-bottom-color: #93C5FD; }
.sdo-tab-count { font-size: 0.72rem; opacity: 0.8; margin-left: 4px; }

.prism-student-lookup {
    position: relative;
}

.psl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--border-light);
}

.psl-item:last-child {
    border-bottom: none;
}

.psl-item:hover,
.psl-item.psl-item-focused {
    background: var(--blue-soft);
}

.psl-item-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8D1F0, #A0AEE0);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.psl-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.psl-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
    font-family: 'Poppins', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: 0;
    font-weight: 600;
}

.psl-item-program {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-top: 1px;
}

.psl-item-pending {
    display: inline-flex;
    align-items: center;
    background: #FFF8EC;
    color: #D97706;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    gap: 3px;
}

.psl-searching {
    padding: 16px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.psl-highlight {
    background: #FEF9C3;
    color: var(--text-primary);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}

:root {
    --blue: #2563eb;
    --blue-700: #1d4ed8;
    --blue-soft: #eff6ff;
    --orange: #f59e0b;
    --orange-soft: #fff7ed;
    --green: #16a34a;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --violet: #7c3aed;
    --navy: #1e3a8a;
    --danger: #dc2626;
    --text: #0f172a;
    --text-primary: #0f172a;
    --text-soft: #334155;
    --text-sub: #475569;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --prism-content-max: 1680px;
    --prism-content-gutter: clamp(20px, 2.4vw, 42px);
    --prism-section-gap: clamp(16px, 1.4vw, 24px);
}

.prism-content {
    width: min(100%, var(--prism-content-max));
    margin-inline: auto;
    padding: var(--prism-content-gutter);
}

.sdo-content > .p-4,
.gso-content > .p-4 {
    width: min(100%, var(--prism-content-max));
    margin-inline: auto;
    padding: var(--prism-content-gutter) !important;
}

.sdo-page-wrap {
    width: min(100%, var(--prism-content-max));
    margin-inline: auto;
    padding: var(--prism-content-gutter) !important;
}

.sdo-page-wrap > .p-4:only-child {
    padding: 0 !important;
}

.sdo-page-wrap > .prism-content {
    width: 100%;
    max-width: none;
    padding: 0;
}

.sdo-page-wrap > * + * {
    margin-top: var(--prism-section-gap);
}

.sdo-page-wrap > .mb-4,
.sdo-page-wrap > .row.mb-4,
.sdo-page-wrap > .sdo-card.mb-4 {
    margin-bottom: 0 !important;
}

.sdo-page-wrap > .row {
    --bs-gutter-x: clamp(16px, 1.5vw, 24px);
    --bs-gutter-y: clamp(16px, 1.5vw, 24px);
}

.sdo-content,
.gso-content {
    scroll-padding: var(--prism-content-gutter);
}

.prism-content > * + * {
    margin-top: var(--prism-section-gap);
}

.prism-content > .mb-4,
.prism-content > .row.mb-4,
.prism-content > .prism-card.mb-4,
.prism-content > .prism-filter-bar {
    margin-bottom: 0 !important;
}

.prism-content > .row {
    --bs-gutter-x: clamp(16px, 1.5vw, 24px);
    --bs-gutter-y: clamp(16px, 1.5vw, 24px);
}

.prism-page-header {
    width: 100%;
    margin-bottom: 0;
}

.prism-page-header.d-flex {
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.prism-page-header > div:first-child {
    min-width: 0;
}

.prism-page-header .prism-page-sub {
    max-width: 780px;
}

.prism-page-header .prism-btn,
.prism-page-header form,
.prism-page-header > .d-flex {
    flex-shrink: 0;
}

.prism-page-title {
    margin: 0;
    font-size: clamp(1.65rem, 1.25rem + 1.25vw, 2.15rem);
    line-height: 1.15;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.03em;
}

.prism-page-sub {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.prism-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.prism-back-link:hover {
    color: #1e293b;
}

.prism-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 40px;
    padding: 9px 15px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    transition: all 0.15s ease;
    cursor: pointer;
}

.prism-btn-primary {
    background: #2f4fbf;
    color: #ffffff;
    border-color: #2f4fbf;
    box-shadow: 0 8px 18px rgba(47, 79, 191, 0.18);
}

.prism-btn-primary:hover,
.prism-btn-primary:focus {
    background: #2846ad;
    color: #ffffff;
    border-color: #2846ad;
    box-shadow: 0 10px 22px rgba(47, 79, 191, 0.22);
}

.prism-btn-primary:active {
    background: #233f9c;
    border-color: #233f9c;
}

.prism-btn:disabled,
.prism-btn.disabled {
    opacity: 0.58;
    pointer-events: none;
    box-shadow: none;
}

.prism-btn-outline {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.prism-btn-outline:hover,
.prism-btn-outline:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.prism-btn-danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.prism-btn-danger:hover,
.prism-btn-danger:focus {
    background: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.prism-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.prism-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.prism-stat-icon.orange { background: #fff7ed; color: #f97316; }
.prism-stat-icon.blue { background: #eff6ff; color: #2563eb; }
.prism-stat-icon.green { background: #ecfdf3; color: #16a34a; }

.prism-stat-value {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text);
}

.prism-stat-desc {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 0.86rem;
    color: #334155;
}

.prism-stat-label {
    grid-column: 1 / -1;
    display: inline-block;
    width: fit-content;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 3px 8px;
}

.prism-stat-label.orange { color: #9a3412; background: #ffedd5; }
.prism-stat-label.blue { color: #1e40af; background: #dbeafe; }
.prism-stat-label.green { color: #166534; background: #dcfce7; }
.prism-stat-label.muted { color: #475569; background: #e2e8f0; }

.prism-filter-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(14px, 1.2vw, 20px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.prism-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.prism-label-opt {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.prism-input,
.prism-select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #0f172a;
    padding: 8px 10px;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
}

.prism-input:focus,
.prism-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.prism-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.prism-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.prism-card-header {
    padding: 14px clamp(16px, 1.4vw, 22px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.prism-card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.prism-count {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.prism-card-body {
    padding: clamp(16px, 1.4vw, 24px);
}

.prism-card-footer {
    padding: 14px clamp(16px, 1.4vw, 22px);
    border-top: 1px solid var(--border);
    background: #fbfdff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prism-card-footer.justify-content-end {
    justify-content: flex-end;
}

.student-lookup-card {
    overflow: visible;
    position: relative;
    z-index: 20;
}

.student-lookup-card .prism-card-body {
    overflow: visible;
}

.student-lookup-wrap {
    z-index: 30;
}

.prism-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.prism-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.prism-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1e293b;
    vertical-align: middle;
}

.prism-table tbody tr:hover {
    background: #fbfdff;
}

.prism-table tbody tr:last-child td {
    border-bottom: none;
}

.prism-table-empty {
    padding: 22px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.prism-audit-list {
    display: grid;
    gap: 12px;
    padding: clamp(14px, 1.2vw, 18px);
}

.prism-audit-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
    gap: 18px;
    padding: 14px;
    border: 1px solid #edf2f7;
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.prism-audit-main,
.prism-audit-actor {
    min-width: 0;
}

.prism-audit-topline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.prism-audit-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.prism-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 3px;
    font-size: 0.76rem;
    color: #64748b;
}

.prism-audit-reason {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.55;
}

.prism-audit-details {
    margin-top: 10px;
}

.prism-audit-details summary {
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.prism-audit-snapshot {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.prism-audit-snapshot-title {
    margin-bottom: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prism-audit-snapshot pre {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: #1e293b;
    padding: 10px;
    font-size: 0.75rem;
    line-height: 1.55;
}

.prism-audit-empty {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.prism-audit-actor {
    border-left: 1px solid #edf2f7;
    padding-left: 16px;
}

.prism-audit-actor-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 992px) {
    .prism-audit-item {
        grid-template-columns: 1fr;
    }

    .prism-audit-actor {
        border-left: 0;
        border-top: 1px solid #edf2f7;
        padding-left: 0;
        padding-top: 12px;
    }

    .prism-audit-snapshot {
        grid-template-columns: 1fr;
    }
}

.prism-cell-primary {
    font-weight: 600;
    color: #0f172a;
}

.prism-ref-number {
    font-family: 'Poppins', sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: 0;
    font-weight: 600;
}

.prism-cell-sub {
    margin-top: 2px;
    font-size: 0.76rem;
    color: #64748b;
}

.text-muted-cell {
    color: #64748b;
}

.prism-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.prism-badge-orange { background: #ffedd5; color: #9a3412; }
.prism-badge-blue { background: #dbeafe; color: #1e3a8a; }
.prism-badge-green { background: #dcfce7; color: #166534; }
.prism-badge-gray { background: #e2e8f0; color: #334155; }
.prism-badge-violet { background: #ede9fe; color: #5b21b6; }
.prism-badge-navy { background: #dbeafe; color: #1e40af; }

.prism-action-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.prism-action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.prism-alert {
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid;
    font-size: 0.85rem;
    line-height: 1.55;
}

.prism-alert-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.prism-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.prism-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.prism-note {
    border-radius: var(--radius-sm);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.prism-field-error {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #dc2626;
}

.prism-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.prism-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.prism-detail-table th,
.prism-detail-table td {
    padding: 8px 0;
    vertical-align: top;
    border-bottom: 1px solid #edf2f7;
}

.prism-detail-table th {
    width: 36%;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.prism-detail-table td {
    color: #0f172a;
    font-size: 0.9rem;
}

.prism-detail-table tr:last-child th,
.prism-detail-table tr:last-child td {
    border-bottom: none;
}

.prism-avatar {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1e3a8a;
    background: #dbeafe;
}

.prism-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.74rem;
}

.prism-avatar-md {
    width: 42px;
    height: 42px;
    font-size: 0.86rem;
}

.prism-modal .modal-content {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (max-width: 992px) {
    :root {
        --prism-content-gutter: clamp(16px, 4vw, 28px);
    }

    .prism-page-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    :root {
        --prism-content-gutter: 16px;
        --prism-section-gap: 14px;
    }

    .prism-page-header.d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .prism-page-header > .d-flex {
        width: 100%;
        flex-wrap: wrap;
    }

    .prism-page-header .prism-btn {
        flex: 1 1 160px;
    }

    .prism-card-header,
    .prism-card-body,
    .prism-filter-bar {
        padding: 14px;
    }

}

:root {
    --text-secondary: #475569;
    --text-tertiary: #9ca3af;
    --card-bg: #ffffff;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --teal: #0f766e;
    --teal-soft: #f0fdfa;
}

.prism-badge-red { background: #fee2e2; color: #991b1b; }

.prism-badge-teal { background: #ccfbf1; color: #0f766e; }

.prism-stat-icon.violet { background: #ede9fe; color: #7c3aed; }
.prism-stat-icon.red    { background: #fee2e2; color: #b91c1c; }
.prism-stat-icon.teal   { background: #ccfbf1; color: #0f766e; }

.prism-stat-label.violet { color: #5b21b6; background: #ede9fe; }
.prism-stat-label.red    { color: #991b1b; background: #fee2e2; }
.prism-stat-label.teal   { color: #0f766e; background: #ccfbf1; }

.prism-stat.accent-blue   { border-left: 3px solid #2563eb; }
.prism-stat.accent-orange { border-left: 3px solid #f59e0b; }
.prism-stat.accent-green  { border-left: 3px solid #16a34a; }
.prism-stat.accent-violet { border-left: 3px solid #7c3aed; }
.prism-stat.accent-red    { border-left: 3px solid #dc2626; }
.prism-stat.accent-teal   { border-left: 3px solid #0f766e; }

.prism-btn-sm { padding: 5px 10px; font-size: 0.8rem; }

.prism-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.prism-toast-region {
    position: fixed;
    top: 72px;
    right: clamp(16px, 2vw, 32px);
    z-index: 2140;
    display: grid;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.prism-toast-region .prism-toast {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-left: 4px solid #2563eb;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.prism-toast-region .prism-toast-success { border-left-color: #16a34a; }
.prism-toast-region .prism-toast-danger { border-left-color: #dc2626; }
.prism-toast-region .prism-toast-warning { border-left-color: #f59e0b; }
.prism-toast-region .prism-toast-info { border-left-color: #2563eb; }

.prism-toast-region .toast-header {
    gap: 10px;
    padding: 12px 14px 8px;
    border-bottom: 0;
    background: #ffffff;
    color: #0f172a;
}

.prism-toast-region .toast-body {
    padding: 0 14px 14px 46px;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
}

.prism-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    flex: 0 0 auto;
}

.prism-toast-success .prism-toast-icon {
    background: #ecfdf3;
    color: #16a34a;
}

.prism-toast-danger .prism-toast-icon {
    background: #fef2f2;
    color: #dc2626;
}

.prism-toast-warning .prism-toast-icon {
    background: #fffbeb;
    color: #d97706;
}

@media (max-width: 576px) {
    .prism-toast-region {
        top: 64px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

textarea.prism-input {
    resize: vertical;
    line-height: 1.6;
}
