﻿ul#sortable {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0px;
}

    ul#sortable table {
        margin-bottom: 0px;
    }

    ul#sortable li {
        display: block;
        cursor: pointer;
    }

        ul#sortable li:before {
            content: counter(item) "  ";
            counter-increment: item
        }

.ep-estimate-dropdown-image {
    width: 50px
}

#ep-estimate-items option {
    background-repeat: no-repeat;
    background-position: bottom left;
    padding-left: 30px;
}

#pnlManualSize label {
    margin-bottom: 0;
}

.ep-div-size {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.ep-estimate-file-table tr {
    height: 30px;
}


#preflight-report-table {
    width: 100%;
}

    #preflight-report-table td {
        padding: 5px;
    }

#preflight-report-header {
    text-align: center;
    font-size: 20px;
    text-decoration: underline;
}

#preflight-report-approve-btn {
    float: right;
}

#preflight-progress-bar-title {
    text-align: center;
    font-size: 16pt;
}

.ajax-file-upload-error {
    color: red;
}

.modal-header-1 {
    display: -ms-flexbox;
    /*display: flex;*/
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        min-width: 1200px;
    }
}

iframe {
    min-height: 720px;
}

#fileuploader form {
    min-width: 160px;
}

.modal-header .close {
    position: absolute;
    right: 20px; /* or your desired spacing */
    top: 15px; /* adjust if necessary */
    z-index: 2; /* ensure it's above other elements */
}

.ff-control.is-invalid {
    border-color: #dc3545;
}

.ff-control.is-valid {
    border-color: #198754;
}

.ff-status {
    font-size: .8rem;
}

input:not([type=checkbox]).ff-control,
select.ff-control {
    min-width: 10rem;
}

.ep-upload-panel {
    margin-top: 0.8rem;
}
/* Card */
.ep-services-card .ep-estimate-service-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.ep-services-card .ep-service-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #1f2937;
}

.ep-services-card .ep-estimate-service {
    margin-bottom: 10px;
}

.ep-services-card .ep-estimate-service-text-div {
    margin-top: 8px;
}

.ep-services-card .ep-estimate-service-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.ep-services-card .ep-service-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #1f2937;
}

.ep-services-card .ep-estimate-service {
    margin-bottom: 10px;
}

.ep-services-card .ep-estimate-service-text-div {
    margin-top: 8px;
}
/* Compact */
.ep-services-compact .ep-estimate-service-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.ep-services-compact .ep-service-title {
    min-width: 130px;
    font-weight: 600;
    color: #374151;
}

.ep-services-compact .ep-estimate-service {
    width: auto !important;
    min-width: 180px;
}

.ep-services-compact .ep-estimate-service-text-div {
    width: 180px;
}
/* Title-Left */
.ep-services-title-left .ep-service-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.ep-services-title-left .ep-service-title-left {
    width: 180px;
    font-weight: 600;
    color: #374151;
    padding-top: 6px;
}

.ep-services-title-left .ep-service-content {
    flex: 1;
}

@media (max-width: 768px) {
    .ep-services-title-left .ep-service-row {
        flex-direction: column;
        gap: 5px;
    }

    .ep-services-title-left .ep-service-title-left {
        width: 100%;
        padding-top: 0;
    }
}

/* colorful-classic */

/* container */
.ep-services-colorful-classic {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
}

    /* service title */
    .ep-services-colorful-classic .ep-service-title {
        font-weight: 600;
        font-size: 14px;
        color: #1d4ed8;
        margin-bottom: 6px;
    }

    /* dropdown */
    .ep-services-colorful-classic .ep-estimate-service {
        border-radius: 8px;
        border: 1px solid #dbeafe;
        background: #eff6ff;
        transition: all 0.2s ease;
    }

        .ep-services-colorful-classic .ep-estimate-service:focus {
            border-color: #3b82f6;
            background: #fff;
            box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
        }

    /* textbox */
    .ep-services-colorful-classic .ep-estimate-service-text {
        border-radius: 8px;
        border: 1px solid #e0f2fe;
        background: #f0f9ff;
    }

    /* cascade spacing */
    .ep-services-colorful-classic .ep-estimate-service-block {
        margin-bottom: 12px;
        padding: 8px;
        border-left: 3px solid #3b82f6;
    }
    /* colourful card */
.ep-services-colorful-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .ep-services-colorful-card .ep-service-card {
        background: linear-gradient(135deg, #ffffff, #f8fafc);
        border: 1px solid #dbeafe;
        border-left: 5px solid #3b82f6;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    }

    .ep-services-colorful-card .ep-service-title {
        font-weight: 700;
        font-size: 15px;
        color: #1d4ed8;
        margin-bottom: 10px;
    }

    .ep-services-colorful-card .ep-estimate-service-block {
        margin-bottom: 0;
    }

    .ep-services-colorful-card .ep-estimate-service {
        border-radius: 10px;
        border: 1px solid #bfdbfe;
        background-color: #eff6ff;
        margin-bottom: 8px;
    }

        .ep-services-colorful-card .ep-estimate-service:focus {
            background-color: #ffffff;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
        }

    .ep-services-colorful-card .ep-estimate-service-text {
        border-radius: 10px;
        border: 1px solid #c7d2fe;
        background-color: #eef2ff;
    }

    /* arrow issue in select */
    .ep-services-colorful-classic .ep-estimate-service.form-select,
    .ep-services-colorful-card .ep-estimate-service.form-select {
        background-repeat: no-repeat;
        background-position: right .75rem center;
        background-size: 16px 12px;
        padding-right: 2.25rem;
    }