/* owns: loy-dv- */

/* PAIRED PHONES AND CLERKS (/loyalty/devices - docs/claude/LOYALTY.md 4.18). The page's own pieces (loy-dv-*): the pairing panel with the
   code, its QR and the countdown, the phones' and clerks' tables, inline rename and the asked-first revoke. Every colour a --theme-*
   token, so light and dark follow the theme. The Center's frame, cards, tables and forms are loyalty-center.css (loy-*). */

.loy-dv-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: var(--theme-radius-md, 8px);
    background: var(--theme-success-subtle, var(--theme-surface-alt));
    color: var(--theme-text-emphasis);
}

.loy-dv-panel { margin-bottom: 16px; }

.loy-dv-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.loy-dv-code { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }

.loy-dv-qr {
    flex: 0 0 auto;
    width: 184px;
    height: 184px;
    padding: 8px;
    border-radius: var(--theme-radius-md, 8px);
    background: var(--theme-surface); /* the QR draws its own light ground, so it reads in either theme */
    border: 1px solid var(--theme-border);
}


.loy-dv-code-main { flex: 1 1 240px; min-width: 0; }

.loy-dv-code-text {
    margin: 0;
    font-family: var(--theme-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--theme-text-emphasis);
}

.loy-dv-code-lead { margin: 6px 0 0; color: var(--theme-text-secondary); }

.loy-dv-countdown { margin: 8px 0 0; font-weight: 600; color: var(--theme-text-emphasis); }

.loy-dv-countdown.is-expired { color: var(--theme-danger); }

.loy-dv-link { margin: 6px 0 0; font-size: 12.5px; overflow-wrap: anywhere; }

.loy-dv-link a { color: var(--theme-link, var(--theme-primary)); }

.loy-dv-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.loy-dv-filters .form-select { min-width: 200px; }

.loy-dv-check { display: inline-flex; align-items: center; gap: 6px; color: var(--theme-text-secondary); font-size: 13px; }

.loy-dv-quiet { margin: 8px 0 0; color: var(--theme-text-secondary); }

.loy-dv-table tr.is-revoked td { color: var(--theme-text-secondary); }

.loy-dv-name { font-weight: 600; color: var(--theme-text-emphasis); margin-right: 6px; }

.loy-dv-actions-col { width: 34%; }

.loy-dv-actions { text-align: right; }

.loy-dv-actions .btn + .btn { margin-left: 6px; }

.loy-dv-rename, .loy-dv-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.loy-dv-rename .form-control { width: auto; min-width: 160px; }

.loy-dv-clerk-form { padding: 12px 0 4px; border-top: 1px solid var(--theme-border); margin-top: 12px; }

@media (max-width: 640px) {
    .loy-dv-qr { width: 156px; height: 156px; }
    .loy-dv-code-text { font-size: 28px; }
    .loy-dv-actions { text-align: left; }
    .loy-dv-actions-col { width: auto; }
}
