/* ---- Attendance ---- */
.att-v6-filter-user { min-width: 180px; }

.att-v6-timesheet-head h3 i { color: #ea580c; }

.att-v6-ts-controls { margin-bottom: 16px; }

.att-v6-ts-std { max-width: 120px; }

.att-v6-btn-orange {
    background: #ea580c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.att-v6-btn-orange:hover { background: #c2410c; }

.att-v6-ts-table { margin-top: 4px; }

.att-v6-summary-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .att-v6-summary-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (min-width: 1024px) {
    .att-v6-summary-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.att-v6-summary-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.att-v6-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.att-v6-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.att-v6-summary-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.att-v6-summary-avatar {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.att-v6-summary-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid white;
}

.att-v6-summary-status.online { background: #10b981; }
.att-v6-summary-status.offline { background: #94a3b8; }

.att-v6-summary-name {
    font-weight: 700;
    font-size: 12px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.att-v6-summary-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.att-v6-summary-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.att-v6-summary-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.att-v6-summary-stat-label i { font-size: 11px; }

.att-v6-summary-stat-value {
    font-size: 13px;
    font-weight: 800;
}


.att-v6-log-table { max-height: 600px; }

/* ---- Activity Timeline Feed ---- */
.att-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.att-log-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.att-log-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.att-view-toggle {
    display: inline-flex;
    background: var(--ov6-bg);
    border: 1px solid var(--ov6-border-soft);
    border-radius: 8px;
    overflow: hidden;
}

.att-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ov6-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.att-view-btn:hover { color: var(--ov6-text); background: rgba(0,0,0,0.03); }

.att-view-btn.active {
    color: #fff;
    background: var(--ov6-brand);
    box-shadow: 0 1px 4px rgba(0,113,188,0.3);
}

.att-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.att-search-wrap > i {
    position: absolute;
    left: 9px;
    font-size: 11px;
    color: var(--ov6-text-muted);
    pointer-events: none;
}

.att-search-input {
    width: 160px;
    max-width: 100%;
    height: 30px;
    padding: 0 10px 0 28px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ov6-text);
    background: var(--ov6-bg);
    border: 1px solid var(--ov6-border-soft);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, width 0.2s;
}

.att-search-input:focus {
    border-color: var(--ov6-brand);
    box-shadow: 0 0 0 2px rgba(0,113,188,0.08);
    width: 200px;
}

.att-showing-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ov6-text-muted);
    white-space: nowrap;
}

/* Timeline Feed Container */
.att-timeline-feed {
    padding: 8px 16px 16px;
}

.att-day-group {
    margin-bottom: 8px;
}

.att-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 6px;
    margin-bottom: 2px;
}

.att-day-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0284c7;
    flex-shrink: 0;
}

.att-day-header-text {
    font-size: 12px;
    font-weight: 800;
    color: var(--ov6-text);
    letter-spacing: 0.01em;
}

.att-day-header-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--ov6-text-muted);
}

.att-day-entries {
    position: relative;
    margin-left: 13px;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.att-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    transition: background 0.15s;
    cursor: default;
}

.att-entry:hover {
    background: #f8fafc;
}

/* Timeline dot */
.att-entry::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    z-index: 1;
}

.att-entry.att-entry--login::before {
    border-color: #10b981;
    background: #d1fae5;
}

.att-entry.att-entry--logout::before {
    border-color: #ef4444;
    background: #fee2e2;
}

/* Live pulse for latest entry */
.att-entry.att-entry--live::before {
    animation: att-pulse 2s ease-in-out infinite;
}

@keyframes att-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.att-entry-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.att-entry--login .att-entry-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
}

.att-entry--logout .att-entry-avatar {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.att-entry-body {
    flex: 1;
    min-width: 0;
}

.att-entry-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.att-entry-user {
    font-size: 13px;
    font-weight: 800;
    color: var(--ov6-text);
}

.att-entry-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--ov6-text-secondary);
}

.att-entry-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.att-entry--login .att-entry-action-badge {
    background: #d1fae5;
    color: #065f46;
}

.att-entry--logout .att-entry-action-badge {
    background: #fee2e2;
    color: #991b1b;
}

.att-entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--ov6-text-muted);
}

.att-entry-meta i {
    font-size: 10px;
}

.att-entry-time {
    font-weight: 600;
    font-family: ui-monospace, monospace;
    font-size: 11px;
}

.att-entry-relative {
    font-weight: 600;
    color: var(--ov6-brand);
    font-size: 11px;
}

.att-entry-performer {
    font-weight: 600;
}

.att-entry-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

/* Load More */
.att-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.att-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ov6-brand);
    background: var(--ov6-brand-soft);
    border: 1px solid rgba(0,113,188,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.att-load-more-btn:hover {
    background: rgba(0,113,188,0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,113,188,0.15);
}

.att-load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.att-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 12px;
    color: var(--ov6-text-muted);
}

.att-no-data i {
    font-size: 32px;
    opacity: 0.3;
}

.att-no-data span {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .att-log-header { flex-direction: column; align-items: stretch; }
    .att-log-header-right { justify-content: space-between; }
    .att-search-input { width: 100%; flex: 1; }
    .att-search-input:focus { width: 100%; }
    .att-day-entries { margin-left: 6px; padding-left: 16px; }
    .att-entry { padding: 6px 8px; }
    .att-entry-avatar { width: 28px; height: 28px; font-size: 11px; }
}

/* ---- Compact Attendance Overrides ---- */
.att-v6 .ov6-hero {
    padding: 12px 16px;
    margin-bottom: 12px;
}
.att-v6 .ov6-hero-title {
    font-size: 16px;
}
.att-v6 .ov5-card-head {
    padding: 10px 16px;
}
.att-v6 .ov5-card-body {
    padding: 12px 16px;
}
.att-v6 .st-v6-table th, 
.att-v6 .st-v6-table td {
    padding: 4px 8px !important;
}
.att-v6 .st-v6-filter-grid {
    gap: 8px;
}
.att-v6 .st-v6-filter-input {
    height: 30px;
    font-size: 11px;
}
.att-v6 .st-v6-filter-btn {
    height: 30px;
    padding: 0 16px;
}

/* Timeline Filter Buttons */
.timeline-filter-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.timeline-filter-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}
.timeline-filter-btn.active {
    color: #fff;
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.dark-theme .timeline-filter-btn {
    color: #94a3b8;
    background: #0f172a;
    border-color: #334155;
}
.dark-theme .timeline-filter-btn:hover {
    color: #f8fafc;
    background-color: #1e293b;
    border-color: #475569;
}
.dark-theme .timeline-filter-btn.active {
    color: #fff;
    background-color: #6366f1;
    border-color: #6366f1;
}

/* Unified Timeline Styling */
.unified-timeline-date-group {
    font-size: 11px;
    font-weight: 800;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 15px;
    margin-bottom: 5px;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}
.dark-theme .unified-timeline-date-group {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.unified-timeline-item {
    position: relative;
    padding-left: 36px;
}
.unified-timeline-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background-color: #e2e8f0;
}
.dark-theme .unified-timeline-item::before {
    background-color: #334155;
}

.unified-timeline-dot {
    position: absolute;
    left: 8px;
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    border: 2px solid #fff;
    z-index: 10;
}
.dark-theme .unified-timeline-dot {
    border-color: #0f172a;
}

/* Colors for dots */
.ut-dot-blue { background-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.ut-dot-amber { background-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.ut-dot-teal { background-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2); }
.ut-dot-emerald { background-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.ut-dot-slate { background-color: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2); }
.ut-dot-rose { background-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2); }

.unified-timeline-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.dark-theme .unified-timeline-card {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(51, 65, 85, 0.5);
}
.unified-timeline-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ut-card-blue { border-left: 4px solid #3b82f6; }
.ut-card-amber { border-left: 4px solid #f59e0b; }
.ut-card-teal { border-left: 4px solid #14b8a6; }
.ut-card-emerald { border-left: 4px solid #10b981; }
.ut-card-slate { border-left: 4px solid #64748b; }
.ut-card-rose { border-left: 4px solid #f43f5e; }

.unified-timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.unified-timeline-title {
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dark-theme .unified-timeline-title {
    color: #f1f5f9;
}
.unified-timeline-time {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}
.dark-theme .unified-timeline-time {
    color: #94a3b8;
}
.unified-timeline-desc {
    color: #475569;
    line-height: 1.5;
}
.dark-theme .unified-timeline-desc {
    color: #cbd5e1;
}
.unified-timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
}
.dark-theme .unified-timeline-footer {
    border-top-color: rgba(51, 65, 85, 0.5);
    color: #64748b;
}



