.acc-actions { display: inline-flex; flex-wrap: wrap; gap: 10px; }

.acc-stats { grid-template-columns: repeat(4, 1fr); }
.acc-stats .student-stat:nth-child(1) strong { color: var(--success); }
.acc-stats .student-stat:nth-child(2) strong { color: #d64545; }
.acc-stats .student-stat.negative strong { color: #d64545; }
.acc-stats .student-stat.positive strong { color: var(--success); }

.acc-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}
.acc-date input {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
}

.acc-table th, .acc-table td { white-space: nowrap; }
.acc-table td.desc { white-space: normal; min-width: 200px; }
.acc-table td.desc small { display: block; color: var(--muted); }
.acc-table th.num, .acc-table td.num,
.acc-summary th.num, .acc-summary td.num { text-align: right; }
.acc-table td.income { color: var(--success); font-weight: 700; }
.acc-table td.expense { color: #d64545; font-weight: 700; }

.acc-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}
.acc-pill.income  { background: #e3f6ee; color: var(--success); }
.acc-pill.expense { background: #fdeaea; color: #d64545; }
.acc-pill.auto    { background: var(--primary-soft); color: var(--primary-dark); }

.acc-row-actions { display: inline-flex; gap: 12px; }
.acc-row-actions button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--primary);
    cursor: pointer;
}
.acc-row-actions button.danger { color: #d64545; }
.acc-locked { color: var(--muted); font-size: 0.85rem; }

.acc-summary { margin-top: 20px; }
.acc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.acc-summary tfoot td { font-weight: 700; background: var(--background); }

.acc-dialog {
    width: min(620px, calc(100% - 32px));
    padding: 24px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 60px rgba(23, 35, 62, 0.25);
}
.acc-dialog::backdrop { background: rgba(23, 35, 62, 0.45); }
.acc-dialog h2 { margin: 0 0 16px; }
.acc-error { margin: 10px 0 0; color: #d64545; font-size: 0.9rem; }
.acc-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.print-title { display: none; }

@media (max-width: 800px) {
    .acc-stats { grid-template-columns: repeat(2, 1fr); }
    .acc-summary-grid { grid-template-columns: 1fr; }
}

@media print {
    .no-print,
    .student-header,
    .demo-warning,
    .toast { display: none !important; }

    body { background: #fff; }
    .student-panel { box-shadow: none; border: 0; padding: 0; }
    .print-title { display: block; margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; }
    .table-wrapper { overflow: visible; }
    .acc-table th, .acc-table td { font-size: 11px; }
}

.acc-summary .student-table { min-width: 0; }
