﻿/* ROOT LAYOUT */
.tt-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
}

/* DESKTOP SPLIT */
@media (min-width: 1024px) {
    .tt-panel {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    }
}

/* MAIN PANEL */
.tt-main {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

/* HEADER */
.tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .tt-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

.tt-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

.tt-refresh {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

    .tt-refresh:hover {
        opacity: 1;
    }

/* STATUS */
.tt-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

    .tt-status.is-in {
        background: #e8f5ee;
        color: #198754;
    }

    .tt-status.is-out {
        background: #f1f3f5;
        color: #495057;
    }

/* SELECTORS */
.tt-selectors {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .tt-selectors {
        grid-template-columns: 1fr 1fr;
    }
}

.tt-selectors label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.tt-selectors select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* ACTIONS */
.tt-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tt-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
}

    .tt-btn.primary {
        background: #0d6efd;
        color: #fff;
    }

    .tt-btn.danger {
        background: #dc3545;
        color: #fff;
    }

    .tt-btn.secondary {
        background: #f1f3f5;
        color: #212529;
    }

/* TOTALS */
.tt-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .tt-totals div {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 0.75rem;
        text-align: center;
    }

    .tt-totals span {
        display: block;
        font-size: 0.75rem;
        color: #6c757d;
    }

    .tt-totals strong {
        font-size: 1.1rem;
    }

/* TIMELINE PANEL */
.tt-timeline {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}

    .tt-timeline h4 {
        margin: 0 0 1rem 0;
        font-size: 0.95rem;
    }

/* TIMELINE LIST */
.tt-timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

    .tt-timeline-list::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #dee2e6;
    }

.tt-timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.25rem;
}

    .tt-timeline-item::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 0.4rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #adb5bd;
    }

    .tt-timeline-item.is-open::before {
        background: #198754;
    }

.tt-timeline-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid #eef0f3;
}

.tt-timeline-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.tt-timeline-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.tt-timeline-empty {
    font-size: 0.8rem;
    color: #6c757d;
    padding-left: 2rem;
}
