/* Shared component classes (plain CSS so they work with the Tailwind CDN) */
.btn-primary, .btn-light, .btn-danger, .btn-success {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 600;
    cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-danger { background: #e11d48; color: #fff; }
.btn-danger:hover { background: #be123c; }
.btn-light { background: #fff; color: #334155; border-color: #cbd5e1; }
.btn-light:hover { background: #f1f5f9; }
.btn-sm { padding: .3rem .65rem; font-size: .78rem; }

.card { background: #fff; border-radius: .75rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .3rem; }
.input {
    width: 100%; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .5rem .75rem;
    font-size: .875rem; background: #fff; color: #0f172a; outline: none;
}
.input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; background: #f8fafc; padding: .65rem .85rem; border-bottom: 1px solid #e2e8f0; }
.table td { padding: .65rem .85rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:hover td { background: #fafcff; }
.qr-box canvas, .qr-box img { margin: 0 auto; }

/* Printing */
@media print {
    @page { margin: 12mm; }
    body { background: #fff !important; }
    .no-print { display: none !important; }
    main { padding: 0 !important; }
    .card { border: none !important; box-shadow: none !important; }
    .print-area { width: 100% !important; max-width: none !important; }
    a { text-decoration: none; color: inherit; }
}
