﻿body {
}

/* ── Wrapper ── */
.vrt-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    padding: 12px 16px;
    background: #f4f6fb !important;
    box-sizing: border-box;
    gap: 10px;
}

/* ── Header ── */
.vrt-header {
    font-size: 20px;
    font-weight: 700;
    color: #1a4b8c !important;
    letter-spacing: 0.5px;
}

.vrt-header .fa {
    color: #e53935 !important;
    margin-right: 6px;
}

/* ── Body: sidebar + map side by side ── */
.vrt-body {
    display: flex;
    flex: 1;
    gap: 10px;
    overflow: hidden;
}

/* ── Sidebar ── */
.vrt-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #ffffff !important;
    border: 1px solid #dde3ef;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.vrt-sidebar-title {
    background: #1a4b8c !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position:relative;
}

.vrt-sidebar-title .fa {
    margin-right: 6px;
}

.vrt-status-live {
    color: #a5d6a7 !important;
    font-size: 11px;
    animation: vrt-blink 1.2s step-start infinite;
}


#vanCards {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff !important;
    position:relative;
}

/* ── Van card ── */
.vrt-van-card {
    background: #f4f6fb !important;
    border: 1px solid #dde3ef;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.vrt-van-card:hover {
    background: #e8edf7 !important;
    box-shadow: 0 2px 6px rgba(26,75,140,0.12);
}

.vrt-van-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a4b8c !important;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vrt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.vrt-van-detail {
    font-size: 12px !important;
    color: #444444 !important;
    line-height: 1.7;
}

.vrt-van-status {
    font-size: 11px !important;
    color: #2e7d32 !important;
    margin-top: 2px;
    animation: vrt-blink 1.2s step-start infinite;
}

/* ── Map ── */
#vanMap {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dde3ef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 300px;
}

@keyframes vrt-blink {
    50% { opacity: 0.3; }
}

/* ── Tabs ── */
.vrt-tabs {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    position:relative;
}

.vrt-tab {
    padding: 8px 20px;
    border: 2px solid #1a4b8c;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    color: #1a4b8c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.vrt-tab:hover {
    background: #e8edf7;
}

.vrt-tab.active {
    background: #1a4b8c !important;
    color: #ffffff !important;
    border-color: #1a4b8c;
}

.vrt-tab .fa {
    margin-right: 6px;
}

/* ── Punch panel ── */
.vrt-punch-panel {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position:relative;
}

.vrt-punch-label {
    font-size: 12px;
    font-weight: 600;
    color: #1a4b8c;
}

.vrt-emp-select {
    width: 100%;
    padding: 2px 6px;
    border: 1px solid #dde3ef;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #f4f6fb;
    outline: none;
    cursor: pointer;
}

.vrt-emp-select:focus {
    border-color: #1a4b8c;
}

.vrt-punch-info {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vrt-punch-card {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.8;
    border: 1px solid #dde3ef;
}

.vrt-punch-card.punch-in {
    background: #e8f5e9 !important;
    border-color: #a5d6a7;
}

.vrt-punch-card.punch-out {
    background: #fdecea !important;
    border-color: #ef9a9a;
}

.vrt-punch-card-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

.vrt-punch-card.punch-in .vrt-punch-card-title {
    color: #2e7d32;
}

.vrt-punch-card.punch-out .vrt-punch-card-title {
    color: #c62828;
}
