﻿/*.form-container {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom:0px;
}*/

/* LAYOUT: split screen 60/40 */
.form-container {
    padding: 30px;
    display: flex;
    gap: 50px; /* replaces inline margin-left:50px */
    justify-content: center;
    align-items: flex-start;
}

/* LEFT: accountDetails (60%) */
.form-grid {
    flex: 0 0 60%;
    max-width: 850px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
    align-items: start;
    width: auto; /* don't fight flex sizing */
}

/* RIGHT: accountWorkItems (40%) */
.work-items {
    flex: 0 0 40%;
    align-self: flex-start;
}

/* Responsive: stack */
@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        gap: 20px;
    }

    .form-grid,
    .work-items {
        flex: 0 0 auto;
        width: 100%;
        max-width: 850px;
    }
}

/* EXISTING STYLES */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .form-group.textarea {
        grid-column: 1 / -1;
    }

.form-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .form-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .form-buttons button {
            width: 100%;
        }
}

input, select, textarea, option {
    padding: 5px;
    border: 1px solid #ccc;
    width: 100%;
    resize: none;
}

.Readonly {
    border: none;
    background-color: transparent;
}

button {
    padding: 8px;
    appearance: none;
    border: none;
    opacity: .8;
}

    button:hover {
        opacity: 1;
        cursor: pointer;
        background-color: #eee;
    }

    button.blu {
        color: blue;
        border: 1px solid blue;
    }

    button.red {
        color: red;
        border: 1px solid red;
    }

    button.redSolid {
        color: white;
        background-color: red;
        border: 1px solid red;
    }

    button.grn {
        color: green;
        border: 1px solid green;
    }

    button.grnSolid {
        color: white;
        background-color: green;
        border: 1px solid green;
    }

    button.gry {
        color: #333;
        border: 1px solid #333;
    }

.saved {
    animation: flash-fade 1.5s ease-out forwards;
}

.error {
    animation: flash-error 1.5s ease-out forwards;
}

@keyframes flash-fade {
    0% {
        background-color: #e6ffea;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flash-error {
    0% {
        background-color: #ffecec;
    }

    100% {
        background-color: transparent;
    }
}
