/* ==================== 值班签到签退二维码面板样式 ==================== */

.duty-qrcode-panel {
    background: var(--card-bg, #fff);
    border: 2px solid #e8a020;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(232,160,32,0.15);
}
.dqp-header {
    background: linear-gradient(135deg, #ff9a00 0%, #e8a020 100%);
    color: white;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.dqp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}
.dqp-icon { font-size: 20px; }
.dqp-badge {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
}
.dqp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.dqp-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    min-width: 200px;
    background: white;
    color: #333;
}
.dqp-refresh-btn, .dqp-toggle-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.dqp-refresh-btn:hover, .dqp-toggle-btn:hover {
    background: rgba(255,255,255,0.35);
}
.dqp-body {
    padding: 16px 18px;
}
.dqp-empty {
    text-align: center;
    color: #888;
    padding: 20px;
    font-size: 14px;
}
.dqp-info-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #444;
}
.dqp-info-item { display: flex; gap: 6px; align-items: center; }
.dqp-info-label { color: #888; }
.dqp-info-val { font-weight: 600; color: #333; }
.dqp-codes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .dqp-codes-row { grid-template-columns: 1fr; } }
.dqp-code-card {
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    border: 2px solid #e9ecef;
    background: #fdfdfd;
    transition: all 0.3s;
}
.dqp-code-card.active-window {
    border-color: #28a745;
    background: #f0fff4;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.15);
}
.dqp-code-card.signed {
    border-color: #007bff;
    background: #f0f7ff;
}
.dqp-code-card.expired {
    border-color: #dee2e6;
    background: #f8f9fa;
    opacity: 0.7;
}
.dqp-code-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}
.dqp-code-window {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}
.dqp-code-canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto;
    min-height: 170px;
}
.dqp-code-canvas-wrap canvas,
.dqp-code-canvas-wrap img,
.dqp-code-canvas-wrap table {
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}
.dqp-code-canvas-wrap table {
    border-collapse: collapse;
    line-height: 0;
    font-size: 0;
}
.dqp-code-canvas-wrap table td {
    padding: 0;
    border: none;
}
.dqp-code-status {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}
.status-waiting { background: #fff3cd; color: #856404; }
.status-active  { background: #d4edda; color: #155724; }
.status-signed  { background: #cce5ff; color: #004085; }
.status-missed  { background: #f8d7da; color: #721c24; }
.status-expired { background: #e2e3e5; color: #383d41; }
.dqp-status-row {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #6d4c00;
}
.dqp-countdown {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-top: 4px;
}
.dqp-not-yet {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}
/* 补签码区域 */
.dqp-makeup-row {
    margin-top: 14px;
    border-top: 2px dashed #fd7e14;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.dqp-makeup-title {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #fd7e14;
    margin-bottom: 4px;
}
.dqp-makeup-card {
    background: #fff8f2;
    border: 1px solid #fdd0a2;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 200px;
    flex: 1;
    text-align: center;
}
.dqp-makeup-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.dqp-makeup-btn {
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}
.dqp-makeup-btn:hover { background: #e8690e; }
.dqp-makeup-btn:disabled { background: #ccc; cursor: not-allowed; }
.dqp-makeup-qr {
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
}
.dqp-makeup-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
/* 多班次分块样式 */
.dqp-shift-block {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fafafa;
}
.dqp-shift-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}
.dqp-shift-area {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}
