/* ===============================
   BASE LABEL STYLES
   =============================== */

.label {
    width: 2.625in;
    height: 1in;
    padding: 0.1in 0.15in;
    box-sizing: border-box;
    border: 1px solid transparent; /* debugging: change to #ccc if needed */
    font-family: Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Label text lines */
.label-line1 {
    font-weight: bold;
    font-size: 12pt;
}
.label-line2 {
    font-size: 11pt;
}
.label-line3 {
    font-size: 10pt;
}

/* ===============================
   FULL SHEET (30 LABELS)
   =============================== */

.sheet {
    width: 8.5in;
    height: 11in;
    padding: 0.5in;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 2.625in);
    grid-template-rows: repeat(10, 1in);
    gap: 0;
    page-break-after: always;
}

/* ===============================
   COLUMN MODE (3 PLAYERS × 10 ROWS)
   =============================== */

.sheet-columns {
    display: flex;
    flex-direction: column;
    width: 8.5in;
    height: 11in;
    padding: 0.5in;
    box-sizing: border-box;
    page-break-after: always;
}

.label-row {
    display: grid;
    grid-template-columns: repeat(3, 2.625in);
    height: 1in;
}

/* ===============================
   PRINT RULES
   =============================== */

@media print {
    body {
        margin: 0;
        padding: 0;
    }
    .sheet,
    .sheet-columns {
        page-break-after: always;
    }
}
/* --- Prevent first-page drift --- */
@page {
    margin: 0;
}

@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    .sheet,
    .sheet-columns {
        page-break-after: always;
        break-inside: avoid;
        page-break-inside: avoid;
        height: 11in;
        max-height: 11in;
    }
}
.open-rosters-container {
    margin-bottom: 12px;
}

.open-rosters-btn {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.open-rosters-btn:hover {
    background-color: #005fa3;
}
