body.acc-page {
    background: linear-gradient(160deg, #eef2f7 0%, #f8fafc 45%, #e8eef5 100%);
    height: 100%;
    overflow: hidden;
}

.acc-page-shell {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.acc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.acc-page-header__main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.acc-page-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.28);
}

.acc-page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0;
    letter-spacing: -0.02em;
}

.acc-page-subtitle {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.acc-back-link {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 500;
}

.acc-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.acc-filter-card {
    flex-shrink: 0;
}

.acc-grid-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.acc-grid-card > .acc-card-header {
    flex-shrink: 0;
}

.acc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(90deg, #f8fafc, #fff);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.acc-card-header i {
    color: #1976d2;
    margin-right: 0.35rem;
}

.acc-card-body {
    padding: 1.15rem;
}

.acc-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.acc-filter-input-wrap .form-control {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding-right: 2.2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.acc-filter-input-wrap .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15);
}

.acc-filter-input-wrap .calendar-icon {
    color: #64748b;
    transition: color 0.2s;
}

.acc-filter-input-wrap .calendar-icon:hover {
    color: #1976d2;
}

.acc-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.acc-filter-field {
    width: 180px;
    max-width: 100%;
}

.acc-filter-actions {
    display: flex;
    align-items: center;
}

.acc-filter-actions .btn {
    border-radius: 10px;
    min-height: 38px;
    padding: 0.4375rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.acc-btn-search {
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.25);
}

.acc-row-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1976d2;
    background: #e3f2fd;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.acc-grid-wrap {
    flex: 1;
    min-height: 0;
    padding: 0.5rem 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.acc-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.acc-grid .ag-cell.acc-num-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}

.acc-grid .ag-cell.acc-yn-y {
    color: #2e7d32;
    font-weight: 700;
}

.acc-grid .ag-cell.acc-yn-n {
    color: #94a3b8;
}

.acc-grid-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .acc-page-shell {
        padding: 1rem 0.75rem 1.5rem;
    }

    .acc-page-header h1 {
        font-size: 1.35rem;
    }

    .acc-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .acc-filter-field {
        width: 100%;
    }

    .acc-filter-actions .btn {
        width: 100%;
    }
}
