﻿body, ul, fieldset, textarea, img, legend, button, i, pre {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background-color: #fafafa;
    font-family: Roboto, "Segoe UI", Oxygen-Sans, Ubuntu, Verdana, Tahoma, Arial, "Helvetica Neue", Helvetica, Sans-Serif;
    line-height: 1.42857143;
   /* font-size: 15px;*/
    color: #262626;
}

.awe-col, .elabel, .menu, h1, h2, h3, b {
    font-family: "Segoe UI", Oxygen-Sans, Ubuntu, Verdana, Tahoma, Arial, "Helvetica Neue", Helvetica, Sans-Serif;
}

h1, h2, h3 {
    font-size: 1.5em;
    color: #444;
    font-weight: normal;
}

.main {
    margin: 1em;
}

input[type="text"], textarea {
    margin: 0;
    padding: 5px 8px 6px;
    color: #333;
    border: 1px solid #D5D5D5;
    border-top-color: #B5B5B5;
    border-radius: 1px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    width: 200px;
}

/* Styles for validation helpers*/
@media (max-width: 767px) {
    .field-validation-error {
        display: block;
    }
}

.field-validation-error, .validation-summary-errors {
    color: #ff0000;
}

    .validation-summary-errors ul {
        list-style: none;
    }

.field-validation-valid {
    display: none;
}

.input-validation-error {
    background-color: #ffeeee;
}

.editbtn, .delbtn, .editnst, .delnst {
    padding: .2em .3em;
}

/* grid btns */
.awe-btn.editbtn, .awe-btn.delbtn, .editnst, .delnst {
    padding: .32em;
}

.ico-crud {
    background-image: url(editdel.png);
}
.ico-del {
    background-image: url(trashCan.png);
}
.black-cab .ico-crud, .met .ico-crud, .bts .ico-crud, .start .ico-crud, .ico-restore {
    background-image: url(editdel.png);
}

.ico-edit, .ico-del, .ico-restore, .ico-select, .ico-log {
    display: block;
    overflow: hidden;
    height: 18px;
    width: 18px;
    background-repeat: no-repeat;
}

.ico-edit {
    background-position: 0 -1px;
}

.ico-del {
    background-position: -17px -2px;
}
.ico-restore {
    background-position: -33px 0;
}
/* grid btns */

/* form layout */
.efield {
    padding: 5px 0;
}

.elabel {
    text-align: right;
    width: 150px;
    display: inline-block;
    zoom: 1;
    /* *display: inline; */ /* IE-specific, removed for modern browsers */
    vertical-align: top;
    margin-top: 1px;
    padding-right: 3px;
}

    .elabel label {
        font-weight: 600;
    }

@media (max-width: 480px) {
    .elabel {
        text-align: left;
        display: block;
    }
}

.einput {
    display: inline-block;
    /* *display: inline; */ /* IE-specific, removed for modern browsers */
    zoom: 1;
    vertical-align: top;
}

    .einput .o-dd, .einput .awe-datepicker-field, .einput .awe-lookup-field, .einput, .einput .awe-multilookup-field, .einput .etxt {
        min-width: 15em;
    }

.awe-popup .einput .awe-multilookup-field .awe-display {
    max-height: 7.3em;
    overflow-y: auto;
}

/* misc */
.bar {
    padding: 5px 0;
}

.mbtn {
    padding: 0.4em 0.9em;
}

/* Grid action buttons improvements */
.invoice-actions {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.invoice-actions .awe-btn {
    margin: 0;
    min-width: 32px;
    padding: 2px;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-weight: 500;
    margin: 10px 0;
}

.success-message {
    color: #28a745;
    font-weight: 500;
    margin: 10px 0;
}

.veh {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.veh-plate {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 600;
    letter-spacing: .5px;
    padding: .15rem .45rem;
    border-radius: .65rem;
    background: #eef2ff;
    color: #312e81; /* soft indigo badge */
    border: 1px solid #c7d2fe;
}

.veh-vin {
    font-size: .85em;
    color: #6b7280;
}
/* muted */
.veh-sep {
    color: #cbd5e1;
}
/* subtle dot */
.veh-spec a {
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed transparent;
}

    .veh-spec a:hover {
        border-bottom-color: #94a3b8;
    }

.cust {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.cust-name a {
    text-decoration: none;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px dashed transparent;
}

    .cust-name a:hover {
        border-bottom-color: #94a3b8;
    }

.cust-phone {
    font-size: .85em;
    padding: .1rem .4rem;
    border-radius: .5rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

    .cust-phone svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }

.invoice-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.name-link {
    color: #2563eb; /* link blue */
    font-weight: 500;
    text-decoration: none; /* no underline by default */
}

    .name-link:hover {
        text-decoration: underline; /* underline only on hover */
    }

.attachment-icon img {
    width: 18px;
    height: 18px;
}

.invoice-name.no-attachment .name-link {
    opacity: 0.9;
}

/* ===========================================
   VIN LOOKUP POPUP STYLES - REUSABLE ACROSS ALL PAGES
   =========================================== */

/* VIN Lookup Popup Container */
.vinLookupPopup {
    max-width: 90vw;
    max-height: 90vh;
}

/* Ensure VIN lookup popup opens properly */
.vinLookupPopup .awe-popup {
    height: 100vh !important;
    max-height: 100vh !important;
}

.vinLookupPopup .awe-popup-content {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto;
}

/* Override right-popup positioning for VIN lookup - higher specificity */
.vinLookupPopup.right-popup {
    right: 0 !important;
    left: auto !important;
    top: 0 !important;
    height: 100vh !important;
    width: 1200px !important;
    max-width: 90vw !important;
    position: fixed !important;
}

/* VIN Details Container */
.vin-details-container {
    padding: 20px;
    max-height: none;
    overflow: visible;
    height: 100%;
    min-height: 100vh;
}

/* VIN Details Sections */
.vin-details-section {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.vin-details-section h5 {
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* VIN Details Rows */
.vin-details-row {
    display: flex;
    margin-bottom: 8px;
}

.vin-details-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.vin-details-value {
    color: #333;
    flex: 1;
}

/* Two Column Layout for VIN Details */
.vin-details-row-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.vin-details-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Three Column Layout for VIN Details */
.vin-details-three-column-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.vin-details-three-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.vin-details-three-column .vin-details-section {
    margin-bottom: 0; /* Remove margin from sections inside three-column layout */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .vin-details-row-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vin-details-column {
        flex: none;
    }
    
    .vin-details-three-column-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vin-details-three-column {
        flex: none;
    }
}

/* VIN Lookup States */
.vin-loading, .vin-error, .vin-success {
    text-align: center;
    padding: 20px;
    margin: 10px 0;
    border-radius: 5px;
}

.vin-loading {
    background-color: #e3f2fd;
    color: #1976d2;
}

.vin-error {
    background-color: #ffebee;
    color: #c62828;
}

.vin-success {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* VIN Lookup Button Styling - matches delete button style */
.vinLookupBtn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-block;
    margin-left: 2px;
    line-height: 28px;
    text-align: center;
    vertical-align: middle;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #000000;
    transition: all 0.2s ease;
}

.vinLookupBtn:hover {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vinLookupBtn i {
    font-size: 12px;
    color: #000000;
    vertical-align: middle;
}

.vinLookupBtn:hover i {
    color: #000000 !important;
}

/* ===========================================
   END VIN LOOKUP POPUP STYLES
   =========================================== */


