/* ==========================================================================
   Hockey Sheets — App-Level Layout & Shared Styles
   ========================================================================== */

body {
    font-family: var(--font-mono);
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;      /* override reset.css overflow: hidden */
    scrollbar-gutter: stable; /* prevent layout shift when scrollbar appears */
}

.app-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: var(--space-6);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex: 1;               /* fill remaining viewport space */
}

.app-container.detail-open .table-column {
    max-width: 1440px;
}

/* --------------------------------------------------------------------------
   Content area — table + detail split
   -------------------------------------------------------------------------- */

.content-area {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.table-column {
    flex: 7;
    min-width: 0;
}

.detail-column {
    flex: 3;
    min-width: 240px;
    max-width: 340px;
    position: sticky;
    top: 66px;             /* 28px app-bar + 29px breadcrumb + 9px gap */
    max-height: calc(100vh - 78px);
    overflow-y: auto;
}

/* --------------------------------------------------------------------------
   Collection panel
   -------------------------------------------------------------------------- */

.collection-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.label-text {
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, var(--text-muted));
}

.label-error {
    color: var(--color-error);
}

/* --------------------------------------------------------------------------
   Progress bar — override shared base with flex layout
   -------------------------------------------------------------------------- */

.progress-track {
    flex: 1;
}

/* ==========================================================================
   Mobile-only elements (hidden at desktop, shown in app-mobile.css)
   ========================================================================== */

.mobile-back-bar { display: none; }
.mobile-list { display: none; }
