/* 今日待办（模板、重复任务、当天待办、拍照完成、看板）的样式。紧跟在 meals.css 之后加载。 */

.daily-task-proof-modal-actions {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.daily-task-proof-modal-actions.hidden {
    display: none;
}

.daily-task-proof-modal-history {
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

.daily-task-proof-modal-history.hidden {
    display: none;
}

.daily-task-proof-history-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.daily-task-proof-history-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.daily-task-proof-history-item {
    flex: 0 0 118px;
    border: none;
    border-radius: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.daily-task-proof-history-item.is-current {
    background: rgba(37, 99, 235, 0.82);
}

.daily-task-proof-history-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.daily-task-proof-history-item span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .daily-task-proof-modal-history {
        margin-top: 8px;
        padding: 8px;
    }

    .daily-task-proof-history-item {
        flex-basis: 96px;
    }
}

.daily-task-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.daily-task-assignee-control {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: #f8fafc;
}

.daily-task-section-label {
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 700;
}

.daily-task-create-details {
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    background: var(--ui-bg-soft);
    overflow: hidden;
}

.daily-task-create-details > summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.daily-task-create-details > summary::-webkit-details-marker,
.daily-task-optional-details > summary::-webkit-details-marker {
    display: none;
}

.daily-task-create-details > summary::after {
    content: "+";
    margin-left: auto;
    color: var(--ui-text-soft);
    font-size: 20px;
    font-weight: 400;
}

.daily-task-create-details[open] > summary::after {
    content: "−";
}

.daily-task-create-details > summary:focus-visible,
.daily-task-optional-details > summary:focus-visible {
    outline: 2px solid var(--ui-focus);
    outline-offset: -3px;
}

.daily-task-create-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--ui-border);
}

.daily-task-create-details > .list {
    margin-top: 0;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--ui-border);
}

.daily-task-create-body .daily-task-assignee-control {
    padding: 0;
    border: 0;
    background: transparent;
}

.daily-task-simple-action-cell {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-task-form-back {
    display: block;
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ui-text-soft);
    font-size: 13px;
    text-align: left;
}

.daily-task-optional-details > summary {
    min-height: 44px;
    padding: 10px 0;
    color: var(--ui-text-soft);
    font-size: 13px;
    cursor: pointer;
    list-style: none;
}

.daily-task-optional-details > summary::before {
    content: "+ ";
}

.daily-task-optional-details[open] > summary::before {
    content: "− ";
}

.daily-task-card,
.daily-task-item-card,
.daily-task-user-card,
.daily-task-template-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.daily-task-card--done {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: none;
    opacity: 0.92;
    padding-block: 12px;
}

.daily-task-card--not-done {
    background: #fffaf4;
    border-color: rgba(251, 146, 60, 0.24);
}

.daily-task-main-row,
.daily-task-item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.daily-task-item-head {
    justify-content: space-between;
}

.daily-task-check-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.daily-task-check-icon--pending {
    border: 2px solid #cbd5e1;
    background: #ffffff;
}

.daily-task-check-icon--done {
    background: #22c55e;
    color: #ffffff;
}

.daily-task-check-icon--done::before {
    content: "";
    width: 9px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translate(1px, -1px);
}

.daily-task-check-icon--not-done {
    background: #fed7aa;
    color: #9a3412;
}

.daily-task-check-icon--not-done::before {
    content: "!";
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}

.daily-task-content {
    flex: 1 1 auto;
    min-width: 0;
}

.daily-task-title-wrap {
    min-width: 0;
}

.daily-task-title {
    font-size: 18px;
    line-height: 1.24;
    font-weight: 800;
    color: #172033;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.daily-task-title--collapsed {
    max-height: calc(1.24em * 2);
    overflow: hidden;
}

@supports (-webkit-line-clamp: 2) {
    .daily-task-title,
    .daily-task-title--collapsed {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

.daily-task-title--expanded {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

.daily-task-title-expand-btn {
    min-height: 28px;
    margin-top: 7px;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.daily-task-title-expand-btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.daily-task-assignee {
    margin-top: 6px;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-word;
}

.daily-task-assignee--unassigned {
    color: #94a3b8;
    font-weight: 600;
}

.daily-task-title--done {
    color: #8a95a6;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(34, 197, 94, 0.58);
}

.daily-task-sub {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.daily-task-status {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
}

.daily-task-status--done,
.daily-task-status.done {
    background: #dcfce7;
    color: #166534;
}

.daily-task-status--pending,
.daily-task-status.pending {
    background: #eaf2ff;
    color: #1d4ed8;
}

.daily-task-status--not-done,
.daily-task-status.not-done {
    background: #ffedd5;
    color: #9a3412;
}

.daily-task-actions,
.daily-task-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.daily-task-actions {
    padding-left: 32px;
}

.daily-task-actions--done,
.daily-task-actions--boss {
    margin-top: 9px;
}

.daily-task-completion-form {
    margin-left: 32px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #f8fafc;
}

.daily-task-completion-form.hidden {
    display: none;
}

.daily-task-proof-file-input {
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
}

.daily-task-completion-summary {
    margin-left: 32px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .daily-task-completion-form,
    .daily-task-completion-summary {
        margin-left: 0;
    }
}

.daily-task-primary-action {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.daily-task-primary-action:disabled {
    cursor: wait;
    background: #dbeafe;
    color: #64748b;
    box-shadow: none;
}

.daily-task-more-action,
.daily-task-proof-btn {
    min-height: 34px;
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.daily-task-proof-btn {
    background: #eef4fb;
    color: #334155;
}

.daily-task-proof-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
}

.daily-task-proof-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.daily-task-proof-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border-radius: 12px;
    padding: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.daily-task-proof-image-fallback--modal {
    min-width: min(76vw, 420px);
    min-height: 180px;
    background: #f8fafc;
    color: #475569;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.daily-task-fixed-field {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eaf2fb;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.daily-task-progress {
    margin-top: 8px;
}

.daily-task-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.daily-task-progress-track {
    margin-top: 7px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.daily-task-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    transition: width 0.24s ease;
}

.daily-task-empty {
    border-radius: 16px;
    padding: 18px 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.daily-task-empty strong,
.daily-task-empty span {
    display: block;
}

.daily-task-empty strong {
    color: #172033;
    font-size: 16px;
    margin-bottom: 4px;
}

@media (prefers-reduced-motion: no-preference) {
    .daily-task-card {
        transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
    }

    .daily-task-card--done {
        animation: daily-task-done-pop 0.24s ease-out;
    }
}

@keyframes daily-task-done-pop {
    0% { transform: scale(1); }
    55% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.daily-task-incomplete-form {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.daily-task-incomplete-select {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.daily-task-incomplete-readonly {
    color: #374151;
    line-height: 1.45;
}

.daily-dash-assigned-badge--notdone {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
    font-weight: 600;
}

.daily-dash-assigned-card--notdone {
    background: #fffbeb;
    border-color: #fde68a;
}

.daily-dash-incomplete-dash {
    margin-top: 8px;
    line-height: 1.45;
}

.daily-dash-user-task-dot--notdone {
    background: #ea580c;
}

.daily-task-note-input {
    width: 100%;
    min-height: 58px;
    margin-top: 8px;
}

.daily-task-assign-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.daily-task-assign-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-dash-assigned-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daily-dash-shared-card .daily-dash-assigned-completed {
    margin-top: 8px;
}

.daily-dash-shared-hint {
    margin-top: 8px;
}

.daily-dash-shared-scope {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.45;
    word-break: break-word;
}

.daily-dash-by-user-heading-wrap .small {
    color: #9ca3af;
}

.daily-dash-by-user-list .daily-task-user-card {
    background: #f9fafb;
    border-color: #e8eaed;
}

.daily-dash-by-user-list .daily-task-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.daily-dash-by-user-list .daily-task-status {
    font-size: 11px;
    padding: 2px 7px;
}

/* 每日待办：低频配置区可折叠标题 */
.daily-task-collapsible-head {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 8px;
    margin: -4px -4px 0;
    padding: 4px 4px 0;
}

.daily-task-collapsible-head:focus {
    outline: none;
}

.daily-task-collapsible-head:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.daily-task-collapsible-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.daily-task-collapsible-heading-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.daily-task-collapsible-chevron {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    color: #6b7280;
    transition: transform 0.15s ease;
}

.daily-task-collapsible-head.is-open .daily-task-collapsible-chevron {
    transform: rotate(90deg);
}

.daily-task-collapsible-body:not(.hidden) {
    margin-top: 10px;
    padding-top: 2px;
}

/* 每日待办：Boss 专属「开放给店长/店员」设置项 */
.daily-tasks-boss-setting-card {
    padding: 16px 14px;
    background: #fafbfc;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05);
}

.daily-tasks-setting-head {
    margin-bottom: 0;
}

.daily-tasks-setting-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 8px;
}

.daily-tasks-setting-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #6b7280;
}

.daily-tasks-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8eaef;
}

.daily-tasks-setting-status {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

.daily-tasks-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.daily-tasks-switch-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.daily-tasks-switch-track {
    display: block;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background 0.2s ease;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.daily-tasks-switch-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.daily-tasks-switch-input:checked + .daily-tasks-switch-track {
    background: #22c55e;
}

.daily-tasks-switch-input:checked + .daily-tasks-switch-track .daily-tasks-switch-thumb {
    transform: translateX(18px);
}

.daily-tasks-switch-input:focus-visible + .daily-tasks-switch-track {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .daily-tasks-boss-setting-card {
        padding: 14px 12px;
    }

    .daily-tasks-setting-title {
        font-size: 14px;
    }

    .daily-tasks-setting-desc {
        font-size: 11px;
    }

    .daily-tasks-setting-row {
        gap: 10px;
    }

    .daily-tasks-setting-status {
        font-size: 12px;
    }

    .daily-tasks-switch-track {
        width: 42px;
        height: 26px;
    }

    .daily-tasks-switch-thumb {
        width: 22px;
        height: 22px;
    }

    .daily-tasks-switch-input:checked + .daily-tasks-switch-track .daily-tasks-switch-thumb {
        transform: translateX(16px);
    }
}

@media (max-width: 360px) {
    .daily-tasks-setting-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .daily-tasks-switch {
        align-self: flex-end;
    }
}

.daily-dash-assigned-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafbfc;
}

.daily-dash-assigned-card--done {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.daily-dash-assigned-card--done .daily-dash-assigned-title {
    color: #6b7280;
}

.daily-dash-assigned-card--done .daily-dash-assigned-meta {
    color: #9ca3af;
}

.daily-dash-assigned-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.daily-dash-assigned-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.daily-task-oneoff-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #4338ca;
    margin-right: 8px;
    vertical-align: middle;
}

.daily-dash-oneoff-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    margin-right: 8px;
    vertical-align: middle;
}

.daily-dash-assigned-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.daily-dash-assigned-badge--pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.daily-dash-assigned-badge--done {
    background: #dcfce7;
    color: #166534;
    font-weight: 500;
}

.daily-dash-assigned-meta {
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    word-break: break-word;
}

.daily-dash-assigned-invalid {
    color: #b45309;
    font-size: 12px;
}

.daily-dash-assigned-completed {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.daily-dash-assigned-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.daily-dash-assigned-actions-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.daily-assignee-btn {
    padding: 6px 10px;
    border-radius: 999px;
}

button.daily-assignee-btn--active {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.daily-dash-assigned-actions--locked .daily-task-assign-btns button:disabled,
.daily-dash-assigned-actions--locked button.daily-assignee-btn:disabled {
    cursor: not-allowed;
    opacity: 0.88;
}

button.daily-assignee-btn--active.daily-assignee-btn--locked:disabled {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.28);
}

.daily-dash-user-summary .daily-dash-user-stats {
    margin-top: 6px;
}

.daily-dash-user-task-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.daily-dash-user-task-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    margin-top: 4px;
}

.daily-dash-user-task-item:first-child {
    margin-top: 0;
}

.daily-dash-user-task-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    margin-top: 6px;
    flex-shrink: 0;
}

.daily-dash-user-task-dot--pending {
    background: #f59e0b;
}

.daily-dash-user-task-dot--done {
    background: #22c55e;
}

.daily-dash-user-task-name {
    word-break: break-word;
}

.daily-weekly-chips {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 2px 0;
}

.daily-weekly-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}

.daily-weekly-chip input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.daily-weekly-chip-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.15;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.daily-weekly-chip:hover .daily-weekly-chip-text {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.daily-weekly-chip input[type="checkbox"]:checked + .daily-weekly-chip-text {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.daily-weekly-chip input[type="checkbox"]:focus-visible + .daily-weekly-chip-text {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .daily-weekly-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .daily-task-item-head {
        align-items: flex-start;
    }

    .daily-task-status {
        margin-top: 2px;
    }

    #tab-daily-tasks {
        padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
    }

    .daily-task-card {
        padding: 13px 12px;
        border-radius: 15px;
    }

    .daily-task-main-row {
        gap: 9px;
    }

    .daily-task-title {
        font-size: 17px;
    }

    .daily-task-actions {
        padding-left: 31px;
    }

    .daily-task-primary-action {
        min-height: 43px;
    }

    .daily-task-item-card,
    .daily-task-user-card,
    .daily-task-template-card {
        padding: 10px 9px;
    }
}
