/* 每日必做 - 首页卡片 & 管理页 */

.daily-checklist-card {
    grid-column: 1 / -1;
    cursor: default !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 55%, #eff6ff 100%) !important;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.daily-checklist-card .stat-action,
.daily-checklist-card:hover .stat-action {
    display: none;
}

.daily-checklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.daily-checklist-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.daily-checklist-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.daily-checklist-progress {
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.daily-checklist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.daily-checklist-item.is-done {
    opacity: 0.72;
}

.daily-checklist-item.is-done .daily-checklist-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.daily-checklist-item input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.daily-checklist-title {
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
}

.daily-checklist-empty,
.daily-checklist-loading {
    font-size: 13px;
    color: #64748b;
    padding: 8px 2px;
}

.daily-checklist-tip {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

/* 登录提示弹窗 */
.daily-checklist-modal .modal-content {
    max-width: 460px;
}

.daily-checklist-modal .modal-body {
    padding: 16px 18px;
}

.daily-checklist-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.daily-checklist-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.daily-checklist-modal-list li.is-done {
    opacity: 0.65;
    text-decoration: line-through;
}

/* 管理页 */
.dcl-admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: start;
}

.dcl-user-panel,
.dcl-items-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 14px;
}

.dcl-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.dcl-user-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.dcl-user-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 560px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dcl-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    color: #334155;
    width: 100%;
}

.dcl-user-item:hover {
    background: #f1f5f9;
}

.dcl-user-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.dcl-user-count {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 999px;
}

.dcl-items-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.dcl-items-toolbar input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.dcl-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 8px;
}

.dcl-item-row.is-disabled {
    opacity: 0.55;
}

.dcl-item-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
}

.dcl-item-row .dcl-sort {
    width: 64px;
    padding: 7px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.dcl-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dcl-empty {
    color: #94a3b8;
    font-size: 13px;
    padding: 20px 8px;
    text-align: center;
}

@media (max-width: 900px) {
    .dcl-admin-layout {
        grid-template-columns: 1fr;
    }

    .dcl-user-list {
        max-height: 220px;
    }
}
