/* =========================================================
   ASPIRIN CRM V168
   CRM CONTACTS + VEHICLE CATALOG
   ========================================================= */

/*
 * V166 small hard-coded vehicle picker is superseded by V168.
 * Floating back button and other V166 fixes remain active.
 */
.a166-vehicle-open,
.a166-vehicle-help,
#a166VehicleOverlay {
    display: none !important;
}


/* ---------- Form buttons ---------- */

.a168-inline-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 9px;
    padding: 0 14px;

    border: 1px solid rgba(215,255,53,.20);
    border-radius: 14px;

    background: rgba(215,255,53,.07);
    color: #d7ff35;

    font-size: 14px;
    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.a168-inline-btn:active {
    transform: scale(.99);
}


/* ---------- Overlay ---------- */

.a168-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;

    display: none;
    align-items: flex-end;

    padding: 12px;

    background: rgba(0,0,0,.62);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.a168-overlay.open {
    display: flex;
}


.a168-sheet {
    width: 100%;
    max-height: 86vh;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;

    background: #111419;

    box-shadow:
        0 28px 70px rgba(0,0,0,.50);
}


.a168-head {
    min-height: 66px;

    padding: 13px 15px 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


.a168-head-title {
    color: #fff;

    font-size: 19px;
    font-weight: 900;
}


.a168-head-sub {
    margin-top: 3px;

    color: rgba(255,255,255,.52);

    font-size: 11px;
}


.a168-close {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;

    background: rgba(255,255,255,.04);
    color: #fff;

    font-size: 23px;
}


/* ---------- Search ---------- */

.a168-search-wrap {
    padding: 4px 15px 11px;
}

.a168-search {
    width: 100%;
    min-height: 49px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;

    outline: none;

    background: rgba(255,255,255,.045);
    color: #fff;

    font-size: 15px;
}

.a168-search:focus {
    border-color: rgba(215,255,53,.45);
}

.a168-search::placeholder {
    color: rgba(255,255,255,.38);
}


/* ---------- Content ---------- */

.a168-list {
    max-height: 62vh;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 0 12px 18px;
}


.a168-loading,
.a168-empty {
    margin: 8px 3px;
    padding: 18px;

    border-radius: 16px;

    background: rgba(255,255,255,.035);

    color: rgba(255,255,255,.60);

    font-size: 14px;
    line-height: 1.5;
}


/* ---------- CRM client ---------- */

.a168-client {
    width: 100%;

    margin-top: 8px;
    padding: 14px;

    text-align: left;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 17px;

    background: rgba(255,255,255,.038);
    color: #fff;
}

.a168-client:active {
    transform: scale(.995);
}


.a168-client-name {
    font-size: 15px;
    font-weight: 850;
}

.a168-client-phone {
    margin-top: 4px;

    color: #d7ff35;

    font-size: 13px;
}

.a168-client-car {
    margin-top: 6px;

    color: rgba(255,255,255,.55);

    font-size: 12px;
}


/* ---------- Existing client vehicles ---------- */

.a168-client-selected {
    margin: 3px 3px 10px;
    padding: 13px 14px;

    border: 1px solid rgba(215,255,53,.13);
    border-radius: 16px;

    background: rgba(215,255,53,.055);
}

.a168-client-selected-name {
    color: #fff;
    font-weight: 850;
}

.a168-client-selected-phone {
    margin-top: 3px;
    color: rgba(255,255,255,.60);
    font-size: 12px;
}

.a168-vehicle-row {
    width: 100%;

    margin-top: 8px;
    padding: 13px 14px;

    text-align: left;

    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;

    background: rgba(255,255,255,.038);
    color: #fff;
}

.a168-vehicle-row-name {
    font-size: 14px;
    font-weight: 800;
}

.a168-vehicle-row-plate {
    margin-top: 4px;

    color: #d7ff35;

    font-size: 12px;
}


/* ---------- Global vehicle search ---------- */

.a168-car-result {
    width: 100%;

    margin-top: 7px;
    padding: 12px 14px;

    text-align: left;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 15px;

    background: rgba(255,255,255,.035);
    color: #fff;
}

.a168-car-result:active {
    transform: scale(.995);
}

.a168-car-make {
    font-size: 14px;
    font-weight: 850;
}

.a168-car-model {
    margin-top: 3px;

    color: rgba(255,255,255,.61);

    font-size: 12px;
}


.a168-manual {
    width: 100%;

    margin: 7px 0 4px;
    padding: 13px 14px;

    text-align: left;

    border: 1px solid rgba(215,255,53,.20);
    border-radius: 15px;

    background: rgba(215,255,53,.075);
    color: #d7ff35;

    font-size: 14px;
    font-weight: 800;
}


.a168-credit {
    padding: 10px 15px 15px;

    text-align: center;

    color: rgba(255,255,255,.33);

    font-size: 10px;
}

.a168-credit a {
    color: rgba(255,255,255,.45);
}
