/* ===============================
   FES Modal
================================= */

#fes-modal{
    position:fixed;
    inset:0;
    display:none;
    z-index:999999;
}

.fes-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(4px);
}

.fes-popup{

    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);

    width:850px;
    max-width:92%;
    max-height:85vh;

    overflow:auto;

    background:#fff;
    border-radius:18px;

    padding:35px;

    box-shadow:0 25px 70px rgba(0,0,0,.25);

    animation:fesPopup .25s ease;

}

@keyframes fesPopup{

from{

opacity:0;
transform:translate(-50%,-40%) scale(.96);

}

to{

opacity:1;
transform:translate(-50%,-50%) scale(1);

}

}

.fes-popup h2{

margin:0 0 30px;
font-size:30px;
font-weight:700;
color:#222;
padding-bottom:20px;
border-bottom:1px solid #ececec;

}

.fes-close{

position:absolute;
right:22px;
top:18px;

width:42px;
height:42px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

font-size:26px;

background:#f5f5f5;

transition:.3s;

}

.fes-close:hover{

background:#111;
color:#fff;

}

/* ===============================
Rows
================================= */

.fes-row{

display:grid;
grid-template-columns:220px 1fr;
gap:25px;

padding:18px 0;

border-bottom:1px solid #efefef;

align-items:start;

}

.fes-row:last-child{

border:none;

}

.fes-label{

font-size:15px;
font-weight:700;
color:#666;

}

.fes-value{

font-size:16px;
color:#222;
line-height:1.7;
word-break:break-word;

}

.fes-row hr{

display:none;

}

/* ===============================
Attachments
================================= */

.fes-files{

display:flex;
flex-direction:column;
gap:12px;

}

.fes-file-btn{

display:inline-flex;
align-items:center;
gap:8px;

width:fit-content;

padding:12px 18px;

background:#0F62FE;

color:#fff !important;

text-decoration:none;

border-radius:10px;

font-weight:600;

transition:.25s;

}

.fes-file-btn:hover{

background:#0043CE;
transform:translateY(-2px);

}

/* ===============================
Scrollbar
================================= */

.fes-popup::-webkit-scrollbar{

width:8px;

}

.fes-popup::-webkit-scrollbar-thumb{

background:#d9d9d9;
border-radius:20px;

}

/* ===============================
Responsive
================================= */

@media(max-width:768px){

.fes-popup{

padding:22px;

}

.fes-popup h2{

font-size:24px;

}

.fes-row{

grid-template-columns:1fr;
gap:8px;

}

.fes-label{

font-size:14px;

}

}
.fes-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.fes-view,
.fes-delete{

    border:none;
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    transition:.25s;

}

.fes-view{

    background:#0F62FE;
    color:#fff;

}

.fes-view:hover{

    background:#0043CE;

}

.fes-delete{

    background:#dc3545;
    color:#fff;

}

.fes-delete:hover{

    background:#b02a37;

}

/* =====================================================
   CUSTOMER LOOKUP
===================================================== */

#form-field-customer_lookup{
    position: relative;
}

#fes-customer-results{

    position:absolute;
    top:100%;
    left:0;
    width:100%;

    background:#fff;

    border:1px solid #dcdcdc;

    border-radius:8px;

    box-shadow:0 8px 25px rgba(0,0,0,.12);

    z-index:99999;

    max-height:300px;

    overflow-y:auto;

    display:none;

    margin-top:6px;

}

.fes-customer-item{

    padding:14px 16px;

    cursor:pointer;

    border-bottom:1px solid #efefef;

    transition:.25s;

    line-height:1.5;

}

.fes-customer-item:last-child{

    border-bottom:none;

}

.fes-customer-item:hover{

    background:#f5f9ff;

}

.fes-customer-item strong{

    display:block;

    font-size:15px;

    color:#222;

    margin-bottom:3px;

    font-weight:600;

}

.fes-customer-item .fes-email{

    display:block;

    color:#777;

    font-size:13px;

    margin-bottom:6px;

}

.fes-customer-item .fes-vehicle{

    display:inline-block;

    background:#0d6efd;

    color:#fff;

    padding:3px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}

.fes-no-results{

    padding:15px;

    color:#888;

    text-align:center;

    font-size:14px;

}

#fes-customer-results::-webkit-scrollbar{

    width:8px;

}

#fes-customer-results::-webkit-scrollbar-thumb{

    background:#c8c8c8;

    border-radius:20px;

}

#fes-customer-results::-webkit-scrollbar-thumb:hover{

    background:#999;

}

.fes-name{

    font-size:16px;

    font-weight:700;

    color:#222;

    margin-bottom:6px;

}

.fes-email{

    color:#000;

    margin-bottom:6px;

    font-size:13px;

}

.fes-vehicle{

    display:inline-block;

    background:#0d6efd;

    color:#fff;

    padding:4px 10px;

    border-radius:30px;

    font-size:12px;

    margin-bottom:10px;

}

.fes-dates{

    color:#444;

    font-size:13px;

    line-height:1.6;

    margin-bottom:8px;

}
.fes-dates span{
    color:#000;
    font-weight:500;
}

.fes-premium{

    font-weight:700;

    color:#198754;

    font-size:14px;

}
/* Loading */

.fes-loading{

    padding:16px;

    text-align:center;

    color:#666;

    font-size:14px;

    font-weight:500;

}
mark{

    background:#e8f1ff;

    color:#0d6efd;

    padding:1px 4px;

    border-radius:3px;

    font-weight:600;

}