﻿/* =========================
   VEHICLE OVERLAY
========================= */
.VehicleBoxoverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100003;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.18);
    box-sizing: border-box;
}

.VehicleBoxoverlay.hidden {
    display: none;
}

/* =========================
   WINDOW
========================= */
.Vehicle-window {
    width: 400px;
    height: 670px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);

    background: #eef3f8;
    border: 1px solid #7f9db9;
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.7),
        0 5px 18px rgba(0,0,0,.35);

    padding: 8px;
    box-sizing: border-box;

    font: 11px Tahoma, Arial, sans-serif;
    color: #000;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =========================
   TITLE BAR
========================= */
.VehicTitleBar {
    height: 27px;
    min-height: 27px;

    margin: -8px -8px 8px -8px;

    background: linear-gradient(
        to bottom,
        #eaf5ff 0%,
        #c9e2f7 45%,
        #a7c8e7 100%
    );

    border-bottom: 1px solid #7f9db9;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 4px 0 9px;
    box-sizing: border-box;
}

.VehicTitleText {
    color: #263d56;
    font: bold 12px Tahoma, Arial;
}

/* =========================
   CLOSE BUTTON
========================= */
.btnVehicClose {
    width: 25px !important;
    height: 20px !important;

    padding: 0 !important;
    margin: 0 !important;

    background: linear-gradient(
        to bottom,
        #ffb9ad,
        #ef7561 45%,
        #d64934 100%
    ) !important;

    border: 1px solid #9b3325 !important;
    border-radius: 2px !important;

    color: #fff !important;
    font: bold 11px Tahoma, Arial !important;
    cursor: pointer;
}

.btnVehicClose:hover {
    background: linear-gradient(
        to bottom,
        #ffc8bf,
        #f98570,
        #df4b35
    ) !important;
}
.VDrop{width:100%!important;height:22px!important;padding:0 6px!important;border-radius:2px!important;font:9px Tahoma,Arial,sans-serif!important;box-sizing:border-box!important;outline:none}

/* DropDown نشط */
.VDrop:not(:disabled){background:linear-gradient(180deg,#f5f6f6 0%,#e5e7e8 30%,#d0d3d5 62%,#b7bbbe 100%)!important;border:1px solid #9b813f!important;color:#34393c!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.98),0 1px 2px rgba(0,0,0,.07)!important;cursor:pointer!important;opacity:1!important}

/* DropDown Hover */
.VDrop:not(:disabled):hover{background:linear-gradient(180deg,#fff 0%,#f0f1f2 32%,#dcdfe0 65%,#c5c9cb 100%)!important;border-color:#92742f!important}

/* DropDown Focus */
.VDrop:not(:disabled):focus{background:linear-gradient(180deg,#fff 0%,#f3f4f4 35%,#dfe1e2 70%,#c8ccce 100%)!important;border:1px solid #806221!important;color:#24282a!important;box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(100,105,108,.16),0 0 4px rgba(75,80,83,.25)!important}
/* =========================
   SEARCH AREA
========================= */
.VehicTop {
    display: grid;
    grid-template-columns: minmax(0,1fr) 35px;
    gap: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.VehicSearch {
    width: 100%;
    height: 22px;
    padding: 0 6px;

    background: #fff;
    border: 1px solid #b8c0cf;
    box-sizing: border-box;

    font: 10px Tahoma, Arial;
    color: #2d3640;
    outline: none;
}

.VehicSearch:focus {
    border-color: #7c9fc7;
    box-shadow: 0 0 0 1px rgba(124,159,199,.18);
}

.VehicCount {
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    background: linear-gradient(#f8fafc,#dde4ec);
    border: 1px solid #b8c0cf;

    color: #26384a;
    font: bold 10px Tahoma, Arial;
}

/* =========================
   HEADER
========================= */
.VehicHeader {
    width: 100%;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* =========================
   VEHICLE INFO
========================= */
.VehicInfo {
    display: grid;
    grid-template-columns: 102px minmax(0,1fr);
    grid-auto-rows: 22px;
    column-gap: 7px;
    row-gap: 4px;
}

/* LABELS */
.VehicInfo > span,
.VehicInfo > label {
    height: 22px;
    display: flex;
    align-items: center;

    padding: 0 8px;
    box-sizing: border-box;

    background: linear-gradient(
        to bottom,
        #f4f7fb,
        #d7dde8
    );

    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #b5bdca;
    border-bottom: 1px solid #a5afbd;

    color: #26384b;
    font: bold 10px Tahoma, Arial;
    white-space: nowrap;
}

/* TEXTBOXES */
.VehicInfo > input[type="text"] {
    width: 100%;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #b8c0cf;

    color: #292f36;
    font: 10px Tahoma, Arial;
    outline: none;
}

.VehicInfo > input[type="text"]:focus {
    border-color: #7b9fc7;
}

.VehicInfo > input[type="text"]:disabled {
    background: #edf0f4;
    color: #666;
    border-color: #c3c8d0;
}

/* =========================
   BUTTON AREA
========================= */
.VehicBtns {
    grid-column: 1 / 3;

    display: grid;
    grid-template-columns: 102px minmax(0,1fr);
    gap: 7px;
}

.VehicBtns input {
    height: 22px;
    box-sizing: border-box;
    border-radius: 3px;

    font: bold 10px Tahoma, Arial !important;
    cursor: pointer;

    transition:
        background .15s,
        border-color .15s,
        transform .05s;
}

/* =========================
   NEW BUTTON
========================= */
.VehicBtns input.btnVehicNew {
    background: linear-gradient(
        to bottom,
        #f7f5ff,
        #ded9f1 50%,
        #c9c1e7 100%
    ) !important;

    border: 1px solid #9487bc !important;
    color: #3d345e !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);
}

.VehicBtns input.btnVehicNew:hover:not(:disabled) {
    background: linear-gradient(
        to bottom,
        #ffffff,
        #ebe7f8,
        #d4cdef
    ) !important;

    border-color: #7f70ae !important;
}

/* =========================
   SAVE BUTTON
========================= */
.VehicBtns input.btnVehicSave {
    background: linear-gradient(
        to bottom,
        #fff8e9,
        #f1d69d 50%,
        #dfb65e 100%
    ) !important;

    border: 1px solid #b88a36 !important;
    color: #51380f !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);
}

.VehicBtns input.btnVehicSave:hover:not(:disabled) {
    background: linear-gradient(
        to bottom,
        #fffdf6,
        #f8e3b7,
        #e9c372
    ) !important;

    border-color: #a97925 !important;
}

/* BUTTON PRESS */
.VehicBtns input:active:not(:disabled) {
    transform: scale(.98);
}

/* DISABLED */
.VehicBtns input:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

/* =========================
   GRID CONTAINER
========================= */
.VehicGridScroll {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    border: 1px solid #adb8c6;
    background: #fff;
    box-sizing: border-box;
}

/* =========================
   GRIDVIEW
========================= */
.GVVehicCompact {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;

    font: 11px Tahoma, Arial;
    color: #111;
}

/* HEADER */
.GVVehicCompact th {
    height: 25px;
    padding: 0 6px;
    box-sizing: border-box;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f1f1f1 50%,
        #dcdcdc 100%
    );

    border-right: 1px solid #b6b6b6;
    border-bottom: 1px solid #a9a9a9;

    text-align: left;
    font: bold 10px Tahoma, Arial;
    color: #202020;
    white-space: nowrap;
}

/* CELLS */
.GVVehicCompact td {
    height: 21px;
    padding: 0 6px;
    box-sizing: border-box;

    border-right: 1px solid #c3c3c3;
    border-bottom: 1px solid #c7c7c7;

    font: 10px Tahoma, Arial;
    color: #202020;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ODD ROWS */
.GVVehicCompact tr:nth-child(odd) td {
    background: #e3e3e3;
}

/* EVEN ROWS */
.GVVehicCompact tr:nth-child(even) td {
    background: #fafafa;
}

/* HOVER */
.GVVehicCompact tr:hover td {
    background: #d1e0f3;
}

/* SELECTED */
.GVVehicCompact tr.selected td {
    background: #9fc1e7 !important;
    color: #102f50 !important;
    font-weight: bold;
}

/* POINTER */
.GVVehicCompact tr {
    cursor: pointer;
}

/* HIDE SELECT COLUMN */
.GVVehicCompact th:first-child,
.GVVehicCompact td:first-child {
    display: none;
}

/* =========================
   SCROLLBAR
========================= */
.VehicGridScroll::-webkit-scrollbar {
    width: 11px;
}

.VehicGridScroll::-webkit-scrollbar-track {
    background: #e7ebef;
}

.VehicGridScroll::-webkit-scrollbar-thumb {
    background: #b6c0ca;
    border: 2px solid #e7ebef;
    border-radius: 5px;
}

.VehicGridScroll::-webkit-scrollbar-thumb:hover {
    background: #929eaa;
}