
.wpchef-attendance-dashboard {
    width: 100%;
    max-width: 100%;
    margin: 18px auto;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: #0f172a;
    font-size: 13px;
}

.wpchef-attendance-card,
.wpchef-attendance-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.wpchef-attendance-main-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 18px;
}

.wpchef-attendance-history-card {
    width: 95%;
    max-width: 95%;
    box-sizing: border-box;
    margin: 16px auto 0;
    padding: 18px;
}

.wpchef-attendance-message {
    padding: 18px 20px;
}

.wpchef-attendance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wpchef-attendance-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #0f766e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .03em;
}

.wpchef-attendance-identity {
    flex: 1 1 220px;
    min-width: 0;
}

.wpchef-attendance-welcome {
    font-size: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 3px;
}

.wpchef-attendance-name {
    font-size: 19px;
    line-height: 1.1;
    margin: 0 0 4px;
    font-weight: 800;
    color: #0f172a;
}

.wpchef-attendance-subtext {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.wpchef-attendance-employee-id {
    display: inline-block;
    color: #0f766e;
    font-weight: 800;
}

.wpchef-attendance-status-chip {
    margin-left: auto;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

.wpchef-attendance-status-chip.is-in { background: #dcfce7; color: #166534; border-color: #86efac; }
.wpchef-attendance-status-chip.is-break { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.wpchef-attendance-status-chip.is-out { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.wpchef-attendance-duration-panel {
    max-width: 460px;
    margin: 14px auto 0;
    background: linear-gradient(135deg, #0b1530 0%, #0f172a 100%);
    border-radius: 15px;
    padding: 16px 16px;
    color: #fff;
    text-align: center;
}

.wpchef-attendance-panel-label {
    font-size: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #cbd5e1;
    font-weight: 800;
    margin-bottom: 7px;
}

.wpchef-attendance-duration-value {
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.wpchef-attendance-panel-meta {
    margin-top: 7px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
}

.wpchef-attendance-dot { opacity: .65; }

.wpchef-attendance-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.wpchef-attendance-stat-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 68px;
}

.wpchef-attendance-stat-card-wide {
    grid-column: span 2;
}

.wpchef-attendance-stat-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 5px;
}

.wpchef-attendance-stat-value {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 800;
}

.wpchef-attendance-stat-help {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.wpchef-attendance-note-wrap {
    margin-top: 14px;
}

.wpchef-attendance-note-wrap[hidden] {
    display: none !important;
}

.wpchef-attendance-note-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.wpchef-attendance-note-wrap textarea {
    width: 100%;
    min-height: 76px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    padding: 12px;
    box-sizing: border-box;
    font-size: 13px;
    resize: vertical;
}

.wpchef-attendance-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.wpchef-attendance-button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.wpchef-attendance-button:hover { transform: translateY(-1px); }
.wpchef-attendance-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.wpchef-attendance-button-primary { background: #16a34a; color: #fff; }
.wpchef-attendance-button-break { background: #f97316; color: #fff; }
.wpchef-attendance-button-danger { background: #dc2626; color: #fff; }

.wpchef-attendance-evidence-note {
    margin-top: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 11px 14px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.wpchef-attendance-feedback {
    margin-top: 11px;
    font-weight: 700;
}

.wpchef-attendance-feedback.is-success { color: #15803d; }
.wpchef-attendance-feedback.is-error { color: #b91c1c; }

.wpchef-attendance-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.wpchef-attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wpchef-attendance-table th,
.wpchef-attendance-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.wpchef-attendance-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.wpchef-attendance-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.wpchef-attendance-note-icon:hover {
    background: #f8fafc;
}

.wpchef-attendance-note-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .45);
}

.wpchef-attendance-note-modal {
    width: min(92vw, 440px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
    padding: 22px;
}

.wpchef-attendance-note-modal h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.wpchef-attendance-note-modal p {
    margin: 0 0 18px;
    white-space: pre-wrap;
    color: #334155;
    line-height: 1.55;
}

.wpchef-attendance-note-modal-close {
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 16px;
}

.wpchef-attendance-dashboard.is-loading { opacity: .75; }

@media (max-width: 700px) {
    .wpchef-attendance-main-card,
    .wpchef-attendance-history-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .wpchef-attendance-status-chip {
        margin-left: 0;
    }

    .wpchef-attendance-stats-grid {
        grid-template-columns: 1fr;
    }

    .wpchef-attendance-stat-card-wide {
        grid-column: span 1;
    }

    .wpchef-attendance-actions {
        flex-direction: column;
    }

    .wpchef-attendance-button {
        width: 100%;
    }
}

.wpchef-attendance-note-wrap textarea[readonly] {
    background: #f8fafc;
    color: #334155;
    cursor: not-allowed;
}

.wpchef-attendance-location-list {
    min-width: 240px;
    max-width: 420px;
    white-space: normal;
    line-height: 1.45;
}

.wpchef-attendance-location-row {
    margin-bottom: 6px;
}

.wpchef-attendance-location-row strong {
    color: #0f766e;
}

.wpchef-attendance-table th,
.wpchef-attendance-table td {
    vertical-align: top;
}

.wpchef-attendance-panel-now strong {
    color: #ffffff;
    font-weight: 900;
}
