.formCont {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px 30px;
    /* row-gap column-gap */
}

.inputCont {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 10px;
    margin: 0;
    /* width: calc(100% - 24px); */
    margin-bottom: 5px;
}

.customInputCont {
    grid-template-columns: 100px 200px 1fr !important;
}

/* twoCardCont */
.twoCardCont {
    display: flex;
    justify-content: space-around;
    align-content: center;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
}

.twoCardCont .card {
    width: 100%;
}

.card-split-cont {
    display: flex;
    gap: 20px;
    width: 100%;
}

.card-split {
    width: 50%;
}

.remarksCont {
    grid-template-columns: 100px 1fr;
    margin: 0;
}

.remarksCont textarea {
    height: 100%;
}

.messengerCont,
.deptCont {
    grid-template-columns: 100px 100px 1fr;
}

@media (max-width: 1023px) {

    .customInputCont,
    .messengerCont,
    .deptCont {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px !important;
    }

.customInputCont button {
    width: 100%;
}

.inputCont,
.remarksCont {
    gap: 0;
    width: 100%;
}

.inputCont label {
    margin: 0;
}

.twoCardCont {
    flex-direction: column;
    gap: 0px;
}

.twoCardCont .card {
    width: auto;
}

.card-split-cont {
    flex-direction: column;
    gap: 0;
}

.card-split {
    width: 100%;
}

.remarksCont textarea {
    height: auto;
}

input[type="submit"] {
    grid-column: 1 / -1;
    font-size: 16px;
}
}


.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    animation: fadeout 4s forwards;
}

.alert.success {
    background-color: #4CAF50;
    color: white;
}

.alert.error {
    background-color: #f44336;
    color: white;
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}


.qr {
    width: 150px;
    height: 150px;
    border: 2px dashed #ccc;
    /* placeholder border */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    justify-self: center;
}

.qr .placeholder {
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

.qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    /* remove border for actual QR */
}

/* FILTER */
/* Default - filters hidden, toggle button visible */
#filter-toggle {
    display: block;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Hide form by default */
#filter-form {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* When visible */
#filter-form.show {
    max-height: 2000px;
    opacity: 1;
}

/* CUSTOM FILE */
.custom-file-btn {
    background: var(--light-blue3);
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: var(--black);
    transition: background 0.2s;
    text-align: center;
}

.custom-file-btn:hover {
    background: var(--light-blue2);
    color: var(--white2);
}

.file-text {
    font-size: 0.9em;
    color: #333;
    word-break: break-word;
    /* wrap long filenames */
}