
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f4f4f4;
}
body.floating {
    display: flex;
    justify-content: center;
    align-items: center;
}
.input-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    min-width: 300px;
    max-width: 400px;
}
.input-container,
.wrapper {
    margin: 3rem auto;
}
/*.input-container {
    width: auto;
    top: 1em;
}*/
.search-input-container {
    width: 80%;
    min-width: 300px;
    max-width: 400px;
    margin: auto;
}
h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.input-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
#search-container {
    margin-bottom: 2em;
}
#results {
    margin-top: 1em;
}
.report-link {
    display: block;
    padding: 0.5em 20px;
    margin: 0.5em auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    width: 80%;
    min-width: 300px;
    max-width: 400px;
}
.report-link:hover {
    background: #e0e7ff;
}
.autosave {
    color: #b91c1c;
    font-style: italic;
    float:right;
}
.top-btn {
    position: absolute;
    top: -0.5rem;
}

/* index */

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
#index-grid {
    padding-top: 2em;
    gap: 2em;
}
#index-grid .card {
    min-height: unset;
}
.card-grid.cardlist-index {
    gap: 2rem;
}
#index-grid .card {
    border-radius: 12px;
    width: 260px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
}
#index-grid .card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-4px) scale(1.03);
}
#submission-grid .card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0;
}
.card-desc {
    font-size: .8rem;
    color: #555;
    margin: 0;
    margin-bottom: .2rem;
}
#submission-grid .card {
    border-style: double;
    border-color: #fff;
    align-items: unset;
}
/* create */
button { padding: 0.5em 1em; }
#createReportBtn {
    right: 0.5em;
}
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2em 1.2em 2.5em 1.2em;
    width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    align-items: center;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.card.card-unselected {
    background-image: repeating-linear-gradient(
    45deg,
    #f4f4f9,
    #f4f4f9 10px,
    #e0e0e0 10px,
    #e0e0e0 20px
    );
}
#submission-grid .card.jobid-match {
    border-color: #3a8ef5;
}
.card-checkbox {
    position: absolute;
    top: 1em;
    right: 1em;
    transform: scale(1.3);
    z-index: 2;
}
#index-grid .card-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0.2rem;
    color: #2d3a4a;
}
.card-title {
    margin-bottom: 0.7rem;
}
.card-subtitle {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.7em;
    margin-top: -0.5em;
    color: #2d3a4a;
}
.card-jobid {
    font-size: 1em;
    margin-bottom: 0.7em;
    margin-top: 0.2em;
    color: #2d3a4a;
    position: absolute;
    right: 2.5em;
}
.card-lines {
    margin-bottom: auto;
    padding-left: 1em;
}
.card-lines li {
    margin-bottom: 0.3em;
    color: #444;
}
.card-info {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 1.2em;
}
.card-popout-btn {
    position: absolute;
    bottom: 0.7em;
    right: 1em;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    color: #3a6ea5;
    padding: 0.2em;
    border-radius: 25%;
    transition: background 0.15s;
}
.card-popout-btn:hover {
    background: #e6f0fa;
}
/* Overlay styles */
.submission-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
}
.submission-overlay-content {
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 95vw;
    max-height: 90vh;
    overflow: auto;
    padding: 2em 2em 1em 2em;
    position: relative;
}
.submission-overlay-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
}
.submission-overlay-close:hover {
    color: #222;
}
/* login */
#login-container {
    width: 300px;
}
#login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#login-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
#login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#login-container button:hover {
    background-color: #0056b3;
}
.message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}
.logout-button {
    margin-top: 10px;
    background-color: #dc3545;
    color: white;
}
.logout-button:hover {
    background-color: #c82333;
}
#toggle-readonly-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 8px 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* new */
.input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.input-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button { margin-top: 1.5em; padding: 0.5em 1em; }

.jobid-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
}

.jobid-label-col {
    flex: 1 1 auto;
    width: 50%;
}

.checkbox-container {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 50%
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    gap: 0.5em;
    width: 100%;
}

#jobID {
    width: 100%;
    margin-bottom: 15px;
}
