﻿.scoresheet-card {
    position: fixed;
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: Arial, sans-serif;
}


.scoresheet-card-header {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scoresheet-card-title {
    font-size: 18px;
    font-weight: bold;
}

.scoresheet-card-close {
    background: #6c757d; /* Neutral gray */
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scoresheet-card-close:hover {
    background: #5a6268; /* Slightly darker on hover */
}
.scoresheet-card-body {
    width: 400px;
    padding: 15px;
    overflow: auto;
    box-sizing: border-box;
}
.scoresheet-card-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.75em;
    color: #999;
    text-align: right;
}

.scoresheet-header-content {
    font-size: 1.6em; /* 20% bigger */
    padding-bottom:0.5em;
}

.scoresheet-body-content {
    /* Your existing ScoreCard table styles apply here */
}
/* Desktop sizing */
@media (min-width: 769px) {
    .scoresheet-card {
        width: auto;
        max-height: 85vh;
    }
}
/* Mobile sizing */

/* Mobile */
@media (max-width: 768px) {
    .scoresheet-card {
        width: 96vw;
        max-height: 85vh;
        left: 2vw;
        top: 2vh;
    }

    .scoresheet-card-header {
        padding: 6px 10px;
    }

    .scoresheet-card-title {
        font-size: 14px;
    }

    .scoresheet-card-close {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    .scoresheet-card-body {
        width: 100%;
        max-height: calc(85vh - 45px);
        padding: 5px;
        overflow-x: auto; /* Let user scroll horizontally */
        overflow-y: auto;
        box-sizing: border-box;
    }

    .scoresheet-header-content {
        font-size: 1.0em; 
        padding-bottom: 0.4em;
    }
        /* Make table smaller but don't force fixed layout */
        .scoresheet-card-body table.ScoreCard {
            font-size: 0.7em; /* Just smaller text */
        }
}
