﻿a {
    color: #0000FF;
    text-decoration: underline !important;
}

.Center {
    margin: 10px auto;
}

.DataTable {
    border: 1px solid black;
    padding: 0px;
}

    .DataTable td {
        padding: 2px;
        border: 0px;
    }

.DataTableHeader td {
    padding: 2px;
}

.Heading {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    /*text-shadow: 5px 5px 2px silver, 0px 0px 4px darkgreen;*/
}

.Instructions {
    background-color: rgba(255, 248, 220,.7);
}

.Warning {
    display: block;
    border: 1px dashed red;
    padding: 5px;
    width: 800px;
    color: red;
    font-weight: bold;
    margin: 4px auto;
    text-align: center;
    font-size: 1.2em;
}

.GridView {
    margin: 2px auto;
}

    .GridView table {
        border: 1px solid black;
        empty-cells: show;
        border-collapse: collapse;
    }

    .GridView td, .GridView th {
        border: 1px solid black;
    }

.glow {
    -moz-animation: myglow 2s infinite;
    -o-animation: myglow 2s infinite;
    -webkit-animation: myglow 2s infinite;
    animation: myglow 2s infinite;
}

@-moz-keyframes myglow {
    0% {
        box-shadow: 0 0 0 red;
    }

    50% {
        box-shadow: 0 0 10px red;
    }

    100% {
        box-shadow: 0 0 0 red;
    }
}

@-webkit-keyframes myglow {
    0% {
        box-shadow: 0 0 0 red;
    }

    50% {
        box-shadow: 0 0 10px red;
    }

    100% {
        box-shadow: 0 0 0 red;
    }
}

@keyframes myglow {
    0% {
        box-shadow: 0 0 0 red;
    }

    50% {
        box-shadow: 0 0 10px red;
    }

    100% {
        box-shadow: 0 0 0 red;
    }
}

.InputBoxes {
    background-color: rgba(255, 248, 220,.7);
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.SubmitButton {
    padding: 5px;
    font-size: 1.5em;
}

#gvItems input, #gvItems textarea {
    font-family: Arial, sans-serif;
}

input[type="checkbox"] {
    transform: scale(1.4);
    cursor: pointer;
    margin-right: 10px;
}


.item-card {
    border: 1px solid #d6d6d6;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    background: #fff;
}

.item-legend {
    font-size: 1rem;
    font-weight: 600;
    padding: 0 0.25rem;
}

.form-grid {
    display: grid;
    /* More compact responsive columns */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 0.75rem;
    align-items: start;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    box-sizing: border-box;
    font-size: 0.95rem;
    line-height: 1.2;
}

textarea.form-input {
    min-height: 60px;
    resize: vertical;
}

.field-help {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.15rem;
}

.item-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-remove,
.btn-add {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}


.item-section {
    margin: 0.5rem 0;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (max-width: 640px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .item-actions {
        justify-content: stretch;
    }

    .btn-remove,
    .btn-add {
        width: 100%;
    }
}



/*more*/

.section-header {
    background: #000;
    color: #fff;
    font-size: 1.25rem;
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-card {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 5px;
    background: #fff;
}

.attachment-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 0.2rem;
}

.attachment-description {
    word-break: break-word;
}

.attachment-actions {
    text-align: right;
}

.upload-section {
    margin: 0.5rem 0;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 0.4rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-field-button {
    display: flex;
    align-items: end;
}

.btn-delete {
    background: transparent;
    color: #b00020;
    border: 1px solid #b00020;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.empty-state {
    padding: 0.75rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .attachment-grid {
        grid-template-columns: 1fr;
    }

    .attachment-actions {
        text-align: left;
    }
}

.checkbox-style {
    margin: 0.5rem;
    display: inline-flex;
}

.required-indicator {
    color: #b00020;
    font-weight: bold;
    margin-left: 0.15rem;
}

.validation-error {
    color: #b00020;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}
