html {
    height: 100%;
    margin: 0;
    font-size: 14px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    margin: 0;
}

.main {
    flex: 1;
    padding: 20px;
    margin-top: -10px;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

footer {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
}

.job-card {
    background-color: #ffeecb;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.job-card:hover {
    cursor: pointer;
    background-color: #fff5e1;
}

.job-card.expanded {
    border-color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.job-description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.job-card.expanded .job-description {
    -webkit-line-clamp: unset;
    max-height: none;
}

.job-details {
    display: none;
    margin-top: 10px;
}

.img-preview {
    max-width: 120px;
    max-height: 120px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
}

.header-bg {
    background-color: #4682b4;
}

.table-container {
    max-width: 900px;
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Modal overlay */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

#imageModal img {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

#imageModal .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#imageModal .close-btn:hover {
    color: #ffdddd;
}

.thumb-box {
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
}

.img-fit {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-thumb {
    font-size: 36px;
    text-align: center;
}

.comment-box {
    background-color: #f8f9fa;
    /* light gray */
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.jc-lbl {
    line-height: 22pt;
}

.btn {
    margin-top: 5px;
}

.big-checkbox {
    transform: scale(2.25);
    margin-right: 30px;
    margin-left: -1.2rem !important
}

input.form-control,
input.form-control-sm,
input.form-control-lg {
    border: 1px solid #ced4da;
}

.user-chip {
    background-color: #c6dafe;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.quick-links-box {
    position: absolute;
    /* or fixed if you want it always visible */
    top: 5.5rem;
    right: 1rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    #preview-[task_id]>div {
        width: 70px !important;
    }
}

#luckysheet-wa-calculate {
    display: none !important;
}

#partyAddress {
    height: 0px;
    width: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    left: 0px;
}

.ui-autocomplete {
    z-index: 1055 !important;
    /* Slightly higher than Bootstrap modal (which is usually 1050) */
}