﻿:root {
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --color-local: #3b82f6;
    --color-trip: #f59e0b;
    --color-off: #10b981;
    --color-vla: #10b981;
    --color-vla-bk: #e6fdf5;
    --color-ob: #3b82f6;
    --color-ob-bk: #ebf5ff;
    --color-bt: #f59e0b;
    --color-bt-bk: #fffbeb;
}

/* --------------------------------------------------------------------------
    TODAY_OUT_OF_OFFICE
   -------------------------------------------------------------------------- */

/* 頂部數據看板：解決人多時抓不到重點的問題 */
.stats-row {
    display: flex;
    flex-direction: row;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    padding: 0px 15px;
    margin: 0px 15px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
}

    .stat-card:hover {
        border-color: var(--border-color);
    }

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-info .num {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 具體顏色定義 */
.stat-total .stat-icon {
    background: #eef2f6;
    color: #64748b;
}

.stat-local .stat-icon {
    background: #e6fdf5;
    color: var(--color-local);
}

.stat-trip .stat-icon {
    background: #ebf5ff;
    color: var(--color-trip);
}

.stat-pending .stat-icon {
    background: #fffbeb;
    color: var(--color-pending);
}

/* 主內容區塊：分組瀑布流 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.column-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 極緊湊卡片 */
.user-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #edf2f7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

    .user-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.docid {
    font-size: 0.6rem;
    color: var(--text-primary);
}

.time-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.loc-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 特殊標記：審核中 */
.user-card.pending {
    border-left: 3px solid var(--color-pending);
}

.user-card.local {
    border-left: 3px solid var(--color-local);
}

.user-card.trip {
    border-left: 3px solid var(--color-trip);
}


/* 隱藏的彈窗背景 */
#office_model {
    display: none; /* 預設隱藏 */
    position: absolute;
    top: 200px;
    right: 44px;
    transform: translate(-50%, -50%);
    background: white !important;
    padding: 20px;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 140px;
    max-height: 80vh;
    overflow-y: auto;
}

