/**
 * MVD Timeclock — Styles
 *
 * Phase 3A.4: Employee punch widget styles.
 * Phase 3A.5: Manager grid, detail modal, correction form styles.
 *
 * Core provides base styles via core.css (container, toolbar, buttons,
 * badges, grid container, utilities). This file adds timeclock-specific
 * overrides and new components not covered by core.
 */

/* ─── Widget Container ─── */
.mvd-punch-widget {
    max-width: 360px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: none;       /* Flat: no border */
    box-shadow: none;   /* Flat: no shadow */
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Status Display ─── */
.mvd-punch-status {
    margin-bottom: 8px;
}

.mvd-punch-status-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mvd-punch-status-text.state-working {
    color: #16a34a;
}

.mvd-punch-status-text.state-at_lunch {
    color: #2563eb;
}

.mvd-punch-status-text.state-on_break {
    color: #2563eb;
}

.mvd-punch-status-text.state-clocked_out {
    color: #94a3b8;
}

/* ─── Duration / Hours Display ─── */
.mvd-punch-info {
    /* Visually hidden: keeps the "Today's Hours" section functional in the
       DOM/JS without reserving layout space, so the office selector and
       punch button shift up naturally. */
    display: none !important;
}

.mvd-punch-duration-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.mvd-punch-hours {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    letter-spacing: 0.5px;
}

/* ─── Office Selector ─── */
.mvd-punch-office {
    margin-bottom: 16px;
}

.mvd-punch-office-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background-color: #fff;
    cursor: pointer;
    /* Remove native browser chevron; keep only the custom one. */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.mvd-punch-office-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mvd-punch-office-name {
    display: inline-block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ─── Primary Punch Button ─── */
.mvd-punch-actions {
    margin-bottom: 8px;
}

.mvd-btn-punch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mvd-btn-punch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Green variant (clock in) */
.mvd-btn-punch--clock-in {
    background: #16a34a;
    color: #fff;
}

.mvd-btn-punch--clock-in:hover:not(:disabled) {
    background: #15803d;
}

/* Blue variant (lunch/break actions) */
.mvd-btn-punch--action {
    background: #2563eb;
    color: #fff;
}

.mvd-btn-punch--action:hover:not(:disabled) {
    background: #1d4ed8;
}

/* Loading state */
.mvd-btn-punch--loading {
    position: relative;
    color: transparent !important;
}

.mvd-btn-punch--loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mvd-spin 0.6s linear infinite;
}

@keyframes mvd-spin {
    to { transform: rotate(360deg); }
}

/* ─── Secondary Actions Menu ─── */
.mvd-punch-secondary {
    position: relative;
    display: flex;
    justify-content: center;
}

.mvd-btn-secondary-trigger {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    transition: all 0.15s ease;
}

.mvd-btn-secondary-trigger:hover {
    background: #f8fafc;
    color: #334155;
}

.mvd-punch-secondary-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
    overflow: hidden;
    margin-bottom: 4px;
}

.mvd-punch-secondary-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background 0.1s ease;
}

.mvd-punch-secondary-menu button:hover {
    background: #f1f5f9;
}

.mvd-punch-secondary-menu button + button {
    border-top: 1px solid #f1f5f9;
}

/* ─── Last Punch Info ─── */
.mvd-punch-last-event {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
}

/* ─── Error / Success Notifications ─── */
.mvd-punch-notification {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.mvd-punch-notification--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.mvd-punch-notification--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Phase 3A.5 — Manager Grid Styles
   ========================================================================== */

/* ─── Filter Toolbar ─────────────────────────────────────────────── */

.mvd-grid-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mvd-grid-controls .mvd-filter-input,
.mvd-grid-controls .mvd-filter-select {
    padding: 7px 12px;
    border: 1px solid var(--mvd-border, #dcdcde);
    border-radius: var(--mvd-radius, 4px);
    font-size: 13px;
    color: var(--mvd-text, #1d2327);
    background: var(--mvd-bg, #fff);
}

.mvd-grid-controls .mvd-filter-input:focus,
.mvd-grid-controls .mvd-filter-select:focus {
    outline: none;
    border-color: var(--mvd-primary, #2271b1);
    box-shadow: 0 0 0 1px var(--mvd-primary, #2271b1);
}

.mvd-grid-controls .mvd-filter-select {
    cursor: pointer;
}

/* ─── Secondary Button Variant ───────────────────────────────────── */

.mvd-btn-secondary {
    background: var(--mvd-bg-alt, #f6f7f7);
    border-color: var(--mvd-border, #dcdcde);
    color: var(--mvd-text, #1d2327);
}

.mvd-btn-secondary:hover {
    background: #e5e7eb;
    border-color: var(--mvd-border-dark, #8c8f94);
}

/* ─── Status Badges (Grid) ───────────────────────────────────────── */

.mvd-badge-success {
    background: #d5f5e3;
    color: #1e8449;
}

.mvd-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.mvd-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.mvd-badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.mvd-badge-danger {
    background: #fadbd8;
    color: #c0392b;
}

/* ─── Grid Action Buttons ────────────────────────────────────────── */

#mvd-timeclock-grid .mvd-btn-icon {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--mvd-radius, 4px);
    padding: 4px 8px;
    cursor: pointer;
    color: var(--mvd-text-light, #646970);
    font-size: 14px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    margin: 0 1px;
}

#mvd-timeclock-grid .mvd-btn-icon:hover {
    color: var(--mvd-primary, #2271b1);
    background: rgba(34, 113, 177, 0.06);
    border-color: var(--mvd-border, #dcdcde);
}

#mvd-timeclock-grid .mvd-btn-edit:hover {
    color: #b45309;
    background: rgba(180, 83, 9, 0.06);
}

/* ─── Detail Modal (SweetAlert2 content) ─────────────────────────── */

.mvd-detail-modal {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.mvd-detail-office {
    font-size: 13px;
    color: var(--mvd-text-light, #646970);
    margin-bottom: 8px;
}

/* FIX-011: Shift Status Badge in Detail Modal */
.mvd-detail-shift-status {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--mvd-text, #1d2327);
}

.mvd-detail-shift-status .mvd-badge {
    margin-left: 4px;
}

/* ─── Detail Events Table ────────────────────────────────────────── */

.mvd-detail-events {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.mvd-detail-events th {
    text-align: left;
    padding: 6px 10px;
    background: var(--mvd-bg-alt, #f6f7f7);
    border-bottom: 2px solid var(--mvd-border, #dcdcde);
    font-weight: 600;
    color: var(--mvd-text, #1d2327);
}

.mvd-detail-events td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--mvd-border, #dcdcde);
    color: var(--mvd-text, #1d2327);
}

.mvd-detail-events tr:hover td {
    background: var(--mvd-bg-alt, #f6f7f7);
}

.mvd-detail-events tr.text-danger td {
    color: #999;
    text-decoration: line-through;
}

/* ─── Detail Summary Row ─────────────────────────────────────────── */

.mvd-detail-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--mvd-border, #dcdcde);
    font-size: 13px;
    font-weight: 600;
    color: var(--mvd-text, #1d2327);
}

.mvd-detail-summary span {
    white-space: nowrap;
}

/* ─── Corrections Section in Detail Modal ────────────────────────── */

.mvd-detail-corrections {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--mvd-border, #dcdcde);
}

.mvd-detail-corrections strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--mvd-text, #1d2327);
}

.mvd-correction-item {
    padding: 6px 0;
    font-size: 12px;
    color: var(--mvd-text-light, #646970);
    border-bottom: 1px dotted var(--mvd-border, #dcdcde);
}

.mvd-correction-item:last-child {
    border-bottom: none;
}

.mvd-correction-item .mvd-badge {
    margin-right: 6px;
}

/* ─── Correction Form (SweetAlert2 content) ──────────────────────── */

.mvd-correction-form {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.mvd-form-group {
    margin-bottom: 16px;
}

.mvd-form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mvd-text, #1d2327);
}

.mvd-form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--mvd-border, #dcdcde);
    border-radius: var(--mvd-radius, 4px);
    font-size: 14px;
    color: var(--mvd-text, #1d2327);
    background: var(--mvd-bg, #fff);
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mvd-form-control:focus {
    outline: none;
    border-color: var(--mvd-primary, #2271b1);
    box-shadow: 0 0 0 1px var(--mvd-primary, #2271b1);
}

textarea.mvd-form-control {
    resize: vertical;
    min-height: 60px;
}

select.mvd-form-control {
    cursor: pointer;
    appearance: auto;
}

/* ─── Grid Overrides ─────────────────────────────────────────────── */

#mvd-timeclock-grid .tabulator {
    border-radius: var(--mvd-radius, 4px);
    overflow: hidden;
}

/* Payable column slightly bolder for emphasis */
#mvd-timeclock-grid .tabulator-cell[data-field="payable_minutes"] {
    font-weight: 600;
}

/* ─── Phase 2: Anomaly Indicators (Grid) ────────────────────────── */

.mvd-anomaly-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.mvd-anomaly-critical {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mvd-anomaly-warning {
    color: #d97706;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mvd-anomaly-flagged {
    color: #7c3aed;
    font-size: 12px;
}

/* ─── Phase 2: Payroll Indicators (Grid) ────────────────────────── */

.mvd-payroll-eligible {
    color: #16a34a;
    font-size: 14px;
}

.mvd-payroll-locked {
    color: #dc2626;
    font-size: 14px;
}

.mvd-payroll-blocked {
    color: #94a3b8;
    font-size: 14px;
}

/* ─── Phase 2: Anomaly Section (Detail Modal) ───────────────────── */

.mvd-detail-anomalies {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.mvd-detail-anomalies strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
}

.mvd-anomaly-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #f8fafc;
    border-left: 3px solid #d97706;
    font-size: 13px;
}

.mvd-anomaly-item .mvd-anomaly-critical {
    font-size: 14px;
}

.mvd-anomaly-item .mvd-anomaly-warning {
    font-size: 14px;
}

.mvd-anomaly-resolved {
    opacity: 0.6;
    border-left-color: #94a3b8;
}

.mvd-anomaly-time {
    color: #94a3b8;
    font-size: 11px;
    margin-left: 4px;
}

.mvd-anomaly-message {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
    padding-left: 22px;
}

.mvd-anomaly-resolved-info {
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
    padding-left: 22px;
    font-style: italic;
}

.mvd-btn-resolve-anomaly {
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 11px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mvd-btn-resolve-anomaly:hover {
    background: #1d4ed8;
}

/* ─── Phase 2: Payroll Status (Detail Modal) ────────────────────── */

.mvd-detail-payroll-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.mvd-payroll-reason {
    color: #64748b;
    font-size: 12px;
}

/* ─── Utility ────────────────────────────────────────────────────── */

.text-danger {
    color: #dc2626 !important;
}

/* ─── Phase 3A: Open Shift Recovery ─────────────────────────────── */

/* Recovery action block inside the Shift Detail modal. */
.mvd-detail-recovery {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.mvd-recovery-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

.mvd-recovery-notice i {
    margin-right: 6px;
}

/* Warning (amber) button variant — used by the recovery action. */
.mvd-btn-warning {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.mvd-btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
}

/* Recovery modal form (rendered inside SweetAlert2). */
.mvd-recovery-form {
    text-align: left;
}

.mvd-recovery-help {
    margin: 0 0 14px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    border-radius: 6px;
}

.mvd-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d2327;
}

.mvd-form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #ffffff;
    color: #1d2327;
}

.mvd-form-input:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.mvd-req {
    color: #dc2626;
}

/* ==========================================================================
   Phase 5 — TC-023A / TC-030: Self-Service & Issues Styles
   ========================================================================== */

/* ─── Widget Self-Service Buttons ────────────────────────────────── */

.mvd-punch-self-service {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.mvd-btn-self-service {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.mvd-btn-self-service:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}

.mvd-btn-self-service i {
    margin-right: 4px;
}

/* ─── Self-Service Form Modal (widget) ───────────────────────────── */

.mvd-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.mvd-form-msg {
    font-size: 12px;
    min-height: 14px;
    margin-top: 4px;
}

.mvd-form-hint-p {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
}

/* ─── Issues Section (Manager Detail Modal) ──────────────────────── */

.mvd-detail-issues {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.mvd-detail-issues strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
}

.mvd-issue-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #f8fafc;
    border-left: 3px solid #7c3aed;
    font-size: 13px;
}

.mvd-issue-flag {
    color: #7c3aed;
    margin-right: 4px;
}

.mvd-issue-resolved {
    opacity: 0.6;
    border-left-color: #94a3b8;
}

/* Issue resolve button — scoped (does not touch the anomaly resolve button). */
.mvd-btn-resolve-issue {
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 11px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    background: #16a34a;
    transition: background 0.15s ease;
}

.mvd-btn-resolve-issue:hover {
    background: #15803d;
}

/* ==========================================================================
   0.5.1 — Split Button & View Timecard
   ========================================================================== */

/* ─── Punch Actions: anchor for the dropdown menu ────────────────── */
.mvd-punch-actions {
    position: relative;
}

/* ─── Split Button container ─────────────────────────────────────── */
/* The main action (~90%) and the chevron (~10%) form ONE visual button.
   Same height, border radius, blue color and typography as the primary
   punch button — presentation only, no redesign of the action itself. */
.mvd-punch-split-button {
    display: flex;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* The main section takes up the bulk of the button. */
.mvd-punch-split-button .mvd-punch-main-action {
    flex: 1 1 auto;
    width: auto;
    border-radius: 0;
}

/* The chevron section is a narrow ~10% strip of the same button. */
.mvd-punch-split-button .mvd-punch-more-action {
    flex: 0 0 12%;
    max-width: 56px;
    min-width: 40px;
    width: auto;
    padding: 14px 8px;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Inherit the active color variant so the chevron visually belongs to the
   same button (it does not look like a second button). */
.mvd-punch-split-button .mvd-punch-more-action.mvd-btn-punch--clock-in {
    background: #16a34a;
    color: #fff;
}

.mvd-punch-split-button .mvd-punch-more-action.mvd-btn-punch--clock-in:hover:not(:disabled) {
    background: #15803d;
}

.mvd-punch-split-button .mvd-punch-more-action.mvd-btn-punch--action {
    background: #2563eb;
    color: #fff;
}

.mvd-punch-split-button .mvd-punch-more-action.mvd-btn-punch--action:hover:not(:disabled) {
    background: #1d4ed8;
}

/* When only the main action exists (no alternatives), let it keep the
   standard rounded look. */
.mvd-punch-split-button:has(.mvd-punch-more-action[style*="display: none"]) .mvd-punch-main-action {
    border-radius: 10px;
}

/* Fallback for browsers without :has(): the main action keeps rounded
   ends because the split-button has overflow hidden + its own radius. */

/* Dropdown menu — anchored to the actions block, full width, above button. */
.mvd-punch-secondary-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    transform: none;
    margin-bottom: 6px;
    min-width: 100%;
}

/* ─── View Timecard button ───────────────────────────────────────── */
.mvd-punch-timecard {
    margin-bottom: 8px;
}

.mvd-punch-timecard .mvd-btn-self-service {
    flex: none;
    width: 100%;
}

/* ─── Timecard Modal (rendered inside SweetAlert2) ───────────────── */
.mvd-timecard {
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Date navigation row */
.mvd-timecard-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.mvd-timecard-nav-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mvd-timecard-nav-btn:hover {
    background: #eef2f7;
    border-color: #94a3b8;
}

.mvd-timecard-date {
    flex: 1 1 auto;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.mvd-timecard-date-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Timeline of events */
.mvd-timecard-timeline {
    border-left: 2px solid #e2e8f0;
    margin: 0 0 16px 4px;
    padding-left: 16px;
}

.mvd-timecard-event {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.mvd-timecard-event::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #2563eb;
}

.mvd-timecard-time {
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    min-width: 88px;
}

.mvd-timecard-label {
    font-size: 14px;
    color: #475569;
}

/* Summary row */
.mvd-timecard-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
}

.mvd-timecard-summary strong {
    color: #1e293b;
}

/* States: loading + empty */
.mvd-timecard-loading,
.mvd-timecard-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 28px 8px;
}

/* Reserved space for future (Request Correction / Issue history / Anomaly
   warnings). Intentionally empty in 0.5.1. */
.mvd-timecard-future:empty {
    display: none;
}

/* Mobile: keep the split button full width, no horizontal overflow. */
@media (max-width: 480px) {
    .mvd-punch-widget {
        max-width: 100%;
    }

    .mvd-punch-split-button {
        width: 100%;
    }
}
