/* ==================================================================== */
/* genschedule.css - HamXposition Convention Schedule Grid & Dock      */
/* ==================================================================== */

/* 1. Page Baseline & Scrolling Setup */
body {
    background-color: #1e73be;
    color: yellow;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 300px !important;
    overflow: hidden;
}

/* 2. Scroll Viewport */
.schedule-viewport {
    display: block !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #1e73be !important;
    height: 90% !important;
    width: 100% !important;
    margin-bottom: 100px !important;
    padding: 0 !important;
}

/* 3. Section and Table Spacing */
.day-section {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 60px !important;
    margin-bottom: 40px !important;
}

.day-section:first-child {
    margin-top: 0 !important;
}

/* 4. Interactive Grids and Cells */
div.grid, .grid {
    border: 1px solid #000000;
    background-color: #ffffff; /* Restores the missing white background */
    display: grid !important;
    width: 1600px !important;
    max-width: 95vw !important;
    margin: 0 auto !important; /* Forces center alignment */
    grid-auto-columns: minmax(100px, 1fr); /* Forces columns to distribute evenly */
    column-gap: 0 !important;
    row-gap: 0 !important;
    clear: both !important;
}

div.gridcell {
    min-width: 100px;
    box-sizing: border-box; /* Prevents border from expanding grid tracks */
    border: 1px solid #000000;
    margin: -1px;
    padding: 5px 3px;
    text-align: center; 
    font-weight: normal;
    font-size: 14px; 
    background-color: #ffffff; 
    color: #000000;
}

div.gci {
    background-color: grey !important;
}

/* 5. Unassigned Bottom Dock */
.uagrid-container {
    position: fixed !important;  
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 150px;
    height: auto !important;
    overflow-y: hidden;
    overscroll-behavior: contain !important;
    background-color: #0e438e !important; 
    border-top: 3px solid #000000 !important;
    border-bottom: 3px solid #000000 !important;
    z-index: 9999 !important; 
    box-sizing: border-box !important;
    padding: 5px 10px 15px 10px !important;
    margin: 0 0 35px 0 !important;
    transition: max-height 0.50s ease-in-out, box-shadow 0.25s ease-in-out;
}

.uagrid-container:hover {
    max-height: 900px;
    height: 900px;
    overflow-y: hidden;
    z-index: 1000 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.uagrid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 6px;
    width: 1600px;
    max-width: 98vw;
    margin: auto;
}

/* 6. Unassigned Drag/Dock Tiles */
.unassigned_v {
    border: 1px solid #000000; 
    box-sizing: border-box;
    margin-top: 0;
    padding: 8px;
    vertical-align: middle;
    height: 50px;
    font-size: 12px; 
    font-weight: normal; 
    color: #000000; 
    width: 200px; 
    background-color: #ffffff; 
    display: block;
}

.unassigned {
    border: 1px solid #000000; 
    box-sizing: border-box;
    vertical-align: middle;
    height: 60px;
    padding: 8px;
    font-size: 12px; 
    font-weight: normal; 
    color: #000000; 
    background-color: #ffffff; 
    display: inline-block;
}

.unassigned_v, .unassigned {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    position: relative;
}

.unassigned_v:hover, .unassigned:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* 7. Tooltips & Overlap Conflicts */
div.tooltipbox {
    display: none; 
    z-index: 200;
    color: #000000;
    font-weight: normal;
    font-size: 14px; 
    text-align: left;
    float: left;
    border: 3px solid #000000;
    padding: 10px; 
    width: 400px; 
    background-color: #ffffff; 
    position: fixed; 
    left: 100px; 
    top: 100px; 
}

.schedule-conflict {
    border: 4px solid red !important;
    background-color: #ffcccc !important;
    opacity: 0.85 !important;
    box-shadow: 0 0 10px red;
    z-index: 999 !important;
}

/* 8. Print Overrides */
@media print {
    body, html {
        overflow: visible !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important;
        background: #ffffff !important;
    }

    .schedule-viewport {
        overflow: visible !important;
        height: auto !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        position: static !important;
        background: #ffffff !important; 
    }

    .uagrid-container, 
    .olduagrid-container,
    #LOCKBUTTON,
    div[onclick*="Go('PUBLISH')"],
    div[onclick*="/Schedule"],
    div[style*="color:lightgrey"] {
        display: none !important;
    }

    .day-section {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    div.gci {
        background-color: #eef5ff !important; 
    }
}