﻿/**
 * ponto_modal.css - Design Minimalista e Integrado do Ponto Eletrônico
 */

.modal-ponto-content {
    max-width: 480px !important;
    width: 92% !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.modal-ponto-content .modal-header {
    padding: 16px 20px !important;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.ponto-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ponto-header-left i {
    font-size: 1.35rem;
    color: #0f172a;
}

.ponto-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.ponto-header-store {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.ponto-modal-body {
    padding: 18px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafafa;
}

/* Card do Usuário Logado */
.ponto-user-card-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ponto-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ponto-user-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ponto-user-name-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.ponto-user-shift-desc {
    font-size: 0.78rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.ponto-user-shift-desc.closed {
    color: #64748b;
}

.ponto-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.ponto-pulse-dot.closed {
    background: #94a3b8;
}

.btn-ponto-compact {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ponto-compact.btn-danger-soft {
    background: #fee2e2;
    color: #dc2626;
}

.btn-ponto-compact.btn-danger-soft:hover {
    background: #fecaca;
}

.btn-ponto-compact.btn-primary-soft {
    background: #0f172a;
    color: #ffffff;
}

.btn-ponto-compact.btn-primary-soft:hover {
    background: #1e293b;
}

/* Botão Universal de QR Code */
.btn-ponto-qrcode-trigger {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ponto-qrcode-trigger:hover {
    border-color: #0f172a;
    color: #0f172a;
    background: #f8fafc;
}

/* Accordion de Quem Já Bateu Ponto Hoje */
.ponto-history-accordion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.ponto-history-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
    user-select: none;
    transition: background 0.2s ease;
}

.ponto-history-header:hover {
    background: #f8fafc;
}

.ponto-history-header i.arrow {
    transition: transform 0.2s ease;
    font-size: 1.1rem;
}

.ponto-history-header i.arrow.rotated {
    transform: rotate(180deg);
}

.ponto-history-list {
    display: none;
    flex-direction: column;
    border-top: 1px solid #f1f5f9;
    max-height: 180px;
    overflow-y: auto;
}

.ponto-history-list.open {
    display: flex;
}

.ponto-history-row {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.82rem;
}

.ponto-history-row:last-child {
    border-bottom: none;
}

.ponto-row-name {
    font-weight: 700;
    color: #0f172a;
}

.ponto-row-time {
    color: #64748b;
    font-size: 0.76rem;
}

.ponto-row-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
}

.ponto-row-badge.in {
    background: #dcfce7;
    color: #15803d;
}

.ponto-row-badge.out {
    background: #f1f5f9;
    color: #64748b;
}

/* Área do QR Code */
.ponto-qr-container-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.ponto-qr-box {
    width: 160px;
    height: 160px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.ponto-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ponto-qr-info-text {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 260px;
    margin: 0;
}
