/**
 * Mastex SchoolOS — product shell polish (a11y, print, empty states, footer dock).
 * Loaded after design-system / styles.
 */

/* ---- Skip link ---- */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 0.75rem;
    z-index: 100001;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #022c22;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}
.skip-to-main:focus {
    left: 0.75rem;
    outline: 2px solid var(--accent, #22c55e);
    outline-offset: 2px;
}

#main-content:focus {
    outline: none;
}
#main-content:focus-visible {
    outline: 2px solid var(--accent, #22c55e);
    outline-offset: 2px;
}

/* ---- Empty states (404, lists) ---- */
.erp-empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 32rem;
    margin: 0 auto;
}
.erp-empty-state__icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.erp-empty-state__code {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent, #22c55e);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}
.erp-empty-state__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 650;
}
.erp-empty-state__msg {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text-soft, #94a3b8);
    line-height: 1.55;
}
.erp-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* ---- Footer quick dock (authenticated staff) ---- */
.erp-footer-dock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}
.erp-footer-dock a {
    color: var(--accent, #22c55e);
    text-decoration: none;
    font-weight: 500;
}
.erp-footer-dock a:hover {
    text-decoration: underline;
}
.erp-footer-dock__label {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* ---- Print: hide chrome, widen content ---- */
@media print {
    .skip-to-main,
    #page-progress,
    #page-splash,
    .sidebar-overlay,
    .sidebar-close,
    header,
    .sidebar,
    .erp-footer-dock,
    .nav-toggle,
    .notification-bell,
    .profile-menu {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #111 !important;
    }
    .app-shell,
    .layout,
    .main-panel {
        display: block !important;
        max-width: 100% !important;
    }
    .main-panel {
        padding: 0 !important;
    }
    .page-heading {
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    a[href]::after {
        content: none !important;
    }
}
