﻿body {
    font-size: 0.75rem !important; /* Drops default font size from 16px down to 14px */
    background-color: #DDFFFF !important;
}
}
/*.IndList {
    max-height: 700px;*/  /*Limits the maximum height of the table area */
    /*overflow-y: auto;*/  /*Adds a vertical scrollbar only when content overflows */
    /*overflow-x: hidden;*/  /*Hides horizontal scrollbar if not needed */
/*}*/

.Parents {
    border-collapse: collapse; /* Merges cell borders into a single line */
}

    .Parents th, .Parents td {
        border: 1px solid #ccc;  /*Applies the visible border to cells */
        padding: 8px;  /*Adds breathing room inside cells */
    }

.Centre {
    text-align: center;
}
.FamilyHeader {
    background-color: black;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: white;
}

/*.GridItem {
    background-color: white;
}
*/
/* Layout structure settings */
.app-wrapper {
    display: flex;
    height: calc(100vh - 56px); /* Total viewport height minus navbar */
    overflow: hidden;
}

/* BOX 1: Strict Sidebar rules */
.sidebar-panel {
    width: 320px; /* Locked sidebar width on desktop */
    flex-shrink: 0; /* Prevents the sidebar from squishing */
    overflow-y: auto; /* Enables scrolling for the 2000 items */
    border-right: 1px solid #dee2e6;
    font-size: 0.6rem !important; /* Compacts text down to roughly 13px */
}

/* Scrollable Main Area for Box 2 and 3 */
.main-workspace {
    flex-grow: 1;
    overflow-y: auto; /* The workspace has its own scrollbar if needed */
    padding: 1.5rem;
}

/* Responsive layout flip for mobile/tablet screens */
@media (max-width: 991.98px) {
    .app-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .sidebar-panel {
        width: 100%;
        height: 300px; /* Constrain item list height on small viewports */
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .main-workspace {
        overflow-y: visible;
    }
}

.container {
    display: flex;
    align-items: flex-start; /* Aligns items to the very top */
    gap: 16px; /* Creates space between the table and the button */
}

.form-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px 16px;
    align-items: center;
    max-width: 400px;
}

    .form-grid .form-label {
        text-align: right;
        font-weight: bold;
    }

    .form-grid .submit-row {
        grid-column: 2;
        margin-top: 8px;
    }
