/* General Reset */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Navbar */
nav {
    background-color: #004080; /* Code Blue deep navy */
    padding: 10px 20px;
    display: flex;
    align-items: center;
}
nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}
nav a:hover {
    text-decoration: underline;
}

/* Page Content */
h2 {
    color: #004080;
    margin-top: 0;
}
/* Scoped only to main content wrapper */
.page-content {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Forms */
form {
    margin-top: 15px;
}
form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}
form input, form button {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
form input {
    width: 100%;          /* default for standalone forms */
    max-width: 400px;     /* keep reasonable size */
}
form button {
    background-color: #004080;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
form button:hover {
    background-color: #0066cc;
}

/* Footer */
footer {
    background-color: #eee;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 40px;
}

/* Fix for CAT mark inputs inside tables */
.table input[type="number"] {
    width: auto !important;   /* don’t stretch across the cell */
    display: inline-block;    /* keep it inside the cell */
    position: relative;       /* ensure it’s clickable */
    z-index: 1;               /* sit above table cell background */
    max-width: 80px;          /* keep inputs compact */
}
td {
    position: relative;
}
td input {
    position: relative;
    z-index: 10;
    background: #fff;
}


/* Ensure table inputs are clickable and editable */
.table td {
    position: relative;
}

.table td input {
    position: relative;
    z-index: 10;       /* bring input above cell background */
    background: #fff;  /* ensure visible typing area */
    width: 80px;       /* compact width */
    display: inline-block;
}

input[type="number"], input[type="text"] {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999 !important;
}
