/* Yard Activity Tracker — Dashboard Styles */

body {
    background-color: #f5f6fa;
    font-size: 0.9rem;
}

.navbar-brand {
    font-weight: 700;
}

/* Timer styling */
.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    min-width: 75px;
    display: inline-block;
    text-align: center;
}

.timer-orange {
    background-color: #fd7e14 !important;
    color: #fff !important;
}

.timer-flagged {
    animation: pulse-flag 1.5s infinite;
    font-size: 0.95rem !important;
    border: 2px solid #dc3545 !important;
}

@keyframes pulse-flag {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Activity tables */
.activity-table th {
    font-size: 0.8rem;
    white-space: nowrap;
}

.activity-table td {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Draggable panels */
.table-panel {
    transition: opacity 0.2s;
}

.table-panel.border-primary {
    border: 2px dashed #0d6efd !important;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Inbound/Outbound row tinting */
.table-row-inbound {
    border-left: 3px solid #0dcaf0;
}

.table-row-outbound {
    border-left: 3px solid #0d6efd;
}

.activity-row:hover {
    background-color: #e8f4fd !important;
}

/* Detail/expandable row */
.detail-row td {
    padding: 0 !important;
}

.detail-row > td > div {
    border-left: 4px solid #0d6efd;
    background-color: #eaf2fd;
}

/* Metric cards */
.card.border-primary { border-left: 4px solid #0d6efd !important; }
.card.border-success { border-left: 4px solid #198754 !important; }
.card.border-warning { border-left: 4px solid #ffc107 !important; }
.card.border-secondary { border-left: 4px solid #6c757d !important; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.15rem 0.35rem;
        font-size: 0.75rem;
    }

    .card-body.py-2 {
        padding: 0.5rem !important;
    }

    .fs-2 {
        font-size: 1.5rem !important;
    }
}

/* Form styling on edit page */
.form-control-sm {
    font-size: 0.8rem;
}

#line-items-table th {
    font-size: 0.75rem;
}
