﻿
/* ===== Chuẩn chiều cao chung ===== */
:root {
    --control-height: 44px;
}

/* ===== Input ===== */
.form-input {
    height: var(--control-height);
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #033f9a;
    font-size: 15px;
    box-sizing: border-box;
}

/* ===== Button chung ===== */
.btn-large,
.btn-add {
    height: var(--control-height);
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-card {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.dash-label {
    font-size: 14px;
    opacity: 0.9;
}

.dash-value {
    font-size: 24px;
    font-weight: bold;
}

.primary {
    background: #3b82f6;
}

.warning {
    background: #f59e0b;
}

.danger {
    background: #ef4444;
}

.success {
    background: #10b981;
}

.custom-card {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.status-line {
    margin-bottom: 15px;
}

.ok-text {
    color: #16a34a;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.npt-form-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
}

.attachment-picker {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.task-create-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
}

.attachment-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #dbeafe;
    font-size: 18px;
}

.attachment-content {
    min-width: 0;
    flex: 1;
}

.attachment-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    color: #1e3a8a;
}

.attachment-label em {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
}

.attachment-label input[type="file"] {
    max-width: 285px;
    color: #475569;
    font-size: 13px;
}

.attachment-label input[type="file"]::file-selector-button {
    margin-right: 9px;
    padding: 6px 10px;
    border: 0;
    border-radius: 7px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.attachment-picker small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: white;
    border: 1px solid #bfdbfe;
    font-size: 13px;
}

.selected-file button {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 18px;
    line-height: 1;
}

.task-add-button {
    height: auto;
    min-width: 168px;
    gap: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.task-add-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.attachment-error {
    margin-top: 10px;
    color: #b91c1c;
    font-weight: 600;
}

.task-attachments {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.task-attachment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dbeafe;
    font-size: 13px;
}

.task-attachment > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-attachment a {
    margin-left: 8px;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.btn-add {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
}

.npt-btn-muted,
.npt-link-button {
    background: #6b7280;
    color: white;
    border: none;
    text-decoration: none;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.search-box {
    width: 300px;
    padding: 6px;
}

.hide-done {
    font-size: 14px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

    .custom-table th {
        background: #f3f4f6;
        padding: 10px;
        text-align: left;
    }

    .custom-table td {
        padding: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

.task-title {
    font-weight: 600;
}

.task-desc {
    font-size: 13px;
    color: #6b7280;
}

.btn-small {
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 5px;
    color: white;
    font-size: 12px;
}

    .btn-small.warning {
        background: #f59e0b;
    }

    .btn-small.danger {
        background: #ef4444;
    }

.table-danger {
    background: #fee2e2;
}

.table-success {
    background: #dcfce7;
    text-decoration: none !important;
}

.form-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
}

    .form-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
        outline: none;
    }

.btn-large {
    font-weight: 600;
}

.task-done-note {
    font-size: 12px;
    color: #16a34a;
    margin-top: 3px;
    font-style: italic;
}

/* =========================
           MOBILE RESPONSIVE
        ========================= */
/* ===== Task Grid ===== */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* ===== Task Card ===== */
.task-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

    .task-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }

/* ===== Content ===== */
.task-content {
    flex: 1;
}

.task-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.time-left {
    font-weight: 600;
}

/* ===== Actions ===== */
.task-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Trạng thái ===== */
.task-overdue {
    background: #fef2f2;
    border-color: #fecaca;
}

.task-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
    opacity: 0.8;
}

    .task-done .task-title {
        color: #6b7280;
    }

/* ===== Circle Complete Button ===== */
.task-left {
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.task-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .task-circle:hover {
        transform: scale(1.1);
        border-color: #2563eb;
    }

    .task-circle.done {
        background: #10b938;
        border-color: #055138;
        color: white;
    }

.checkmark {
    font-size: 14px;
    font-weight: bold;
}

.status-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;

}

.status-box {
    padding: 14px 28px;
    border-radius: 14px;
    border-color: #10b981;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.success-box {
    background: #ecfdf5; /* nền xanh lá rất nhẹ */
    color: #047857; /* chữ xanh lá đậm */
    border: 2px solid #10b981; /* viền xanh */
    border-radius: 12px;
}

.danger-box {
    background: #f8bebe; /* đỏ cực nhẹ */
    color: #1d4ed8; /* xanh dương */
    border: 2px solid #ef4444; /* viền đỏ */
    border-radius: 12px;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .dashboard-row {
        flex-direction: column;
    }

    .dash-card {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .npt-form-row {
        grid-template-columns: 1fr;
    }

    .attachment-label,
    .task-attachment {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-create-actions {
        flex-direction: column;
    }

    .attachment-label input[type="file"] {
        max-width: 100%;
        width: 100%;
    }

    .task-add-button {
        min-height: var(--control-height);
        width: 100%;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .search-box {
        width: 100%;
    }
    /* Ẩn header bảng */
    .custom-table thead {
        display: none;
    }
    /* Chuyển mỗi dòng thành card */
    .custom-table tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        padding: 10px;
    }

    .custom-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 6px 0;
    }

        .custom-table td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #6b7280;
        }

    .btn-small {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* ========================================================
   Trang quản lý nhắc việc - giao diện điều phối chuyên biệt
   Mọi selector đều đặt trong .nv-page để không ảnh hưởng trang khác.
   ======================================================== */
.nv-page {
    --nv-ink: #172033;
    --nv-muted: #667085;
    --nv-line: #e4e9f2;
    --nv-blue: #2563eb;
    --nv-blue-dark: #1647b8;
    --nv-surface: #ffffff;
    color: var(--nv-ink);
    max-width: 1500px;
    margin: 0 auto;
    padding: 4px 2px 32px;
}

.nv-page *, .nv-page *::before, .nv-page *::after { box-sizing: border-box; }

.nv-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 158px;
    padding: 28px 34px;
    border-radius: 22px;
    background: linear-gradient(120deg, #153fa1 0%, #2463de 58%, #4f8df5 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(30, 72, 156, .2);
}

.nv-hero::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -105px;
    width: 310px;
    height: 310px;
    border: 45px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.nv-hero-copy, .nv-hero-date { position: relative; z-index: 1; }
.nv-eyebrow { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #dbeafe; }
.nv-hero h1 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.nv-hero p { margin: 9px 0 0; max-width: 610px; color: #e5efff; font-size: 15px; }
.nv-hero-date { display: flex; align-items: center; gap: 12px; min-width: 174px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(10, 39, 104, .24); backdrop-filter: blur(4px); }
.nv-hero-date-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.15); }
.nv-hero-date small, .nv-hero-date strong { display: block; }
.nv-hero-date small { margin-bottom: 1px; color: #dbeafe; font-size: 11px; }
.nv-hero-date strong { font-size: 15px; }

.nv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.nv-stat { display: flex; align-items: center; gap: 14px; min-height: 94px; padding: 17px 19px; border: 1px solid var(--nv-line); border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(30, 45, 75, .06); }
.nv-stat-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; font-size: 22px; font-weight: 800; }
.nv-stat-copy small, .nv-stat-copy strong { display: block; }
.nv-stat-copy small { margin-bottom: 3px; color: var(--nv-muted); font-size: 12px; font-weight: 650; }
.nv-stat-copy strong { font-size: 27px; line-height: 1; }
.nv-stat-blue .nv-stat-icon { color: #1d4ed8; background: #e8f0ff; }
.nv-stat-amber .nv-stat-icon { color: #b45309; background: #fff4d6; }
.nv-stat-red .nv-stat-icon { color: #c92a2a; background: #fee9e7; }
.nv-stat-green .nv-stat-icon { color: #087f5b; background: #e3f9ee; }

.nv-alert { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 13px 17px; border: 1px solid; border-radius: 13px; }
.nv-alert-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; }
.nv-alert strong, .nv-alert span { display: block; }
.nv-alert div > span { margin-top: 2px; font-size: 13px; }
.nv-alert-danger { border-color: #fecaca; background: #fff5f5; color: #a61b1b; }
.nv-alert-danger .nv-alert-icon { background: #dc2626; color: #fff; }
.nv-alert-success { border-color: #a7f3d0; background: #f0fdf7; color: #087f5b; }
.nv-alert-success .nv-alert-icon { background: #059669; color: #fff; }

.nv-panel, .nv-workspace { border: 1px solid var(--nv-line); border-radius: 18px; background: var(--nv-surface); box-shadow: 0 7px 22px rgba(30, 45, 75, .06); }
.nv-composer { margin-bottom: 18px; padding: 22px; }
.nv-section-heading > div { display: flex; align-items: center; gap: 11px; }
.nv-section-heading strong, .nv-section-heading small { display: block; }
.nv-section-heading strong { font-size: 17px; }
.nv-section-heading small { margin-top: 2px; color: var(--nv-muted); font-size: 12px; }
.nv-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e9f1ff; color: var(--nv-blue); font-size: 24px; font-weight: 500; }
.nv-form-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .75fr 1.2fr; gap: 13px; margin-top: 18px; }
.nv-field { min-width: 0; margin: 0; }
.nv-field > span { display: block; margin: 0 0 7px; color: #364152; font-size: 12px; font-weight: 700; }
.nv-field > span b { color: #dc2626; }
.nv-page .form-input { width: 100%; height: 43px; padding: 9px 11px; border: 1px solid #ccd4e0; border-radius: 9px; background: #fff; color: var(--nv-ink); font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.nv-page .form-input::placeholder { color: #98a2b3; }
.nv-page .form-input:focus { border-color: #4b7bec; box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: none; }

.nv-page .task-create-actions { align-items: stretch; margin-top: 16px; }
.nv-page .attachment-picker { padding: 11px 13px; border: 1px dashed #b9c9e7; border-radius: 11px; background: #f8faff; box-shadow: none; }
.nv-page .attachment-icon { background: #e8f0ff; color: #1d4ed8; }
.nv-page .attachment-label { color: #344054; font-size: 13px; }
.nv-page .attachment-label em { margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: #edf1f7; font-size: 10px; text-transform: uppercase; }
.nv-page .attachment-label input[type="file"]::file-selector-button { background: #e8f0ff; color: #1d4ed8; font-weight: 700; }
.nv-page .task-add-button { min-width: 164px; border-radius: 11px; background: var(--nv-blue); box-shadow: 0 5px 12px rgba(37,99,235,.2); }
.nv-page .task-add-button:hover:not(:disabled) { background: var(--nv-blue-dark); transform: translateY(-1px); }
.nv-page .task-add-button:disabled { background: #9cb6e8; box-shadow: none; }
.nv-page .attachment-error { padding: 10px 12px; border-radius: 9px; background: #fff1f1; font-size: 13px; }

.nv-workspace { padding: 22px; }
.nv-list-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.nv-list-header h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.nv-list-header p { margin: 3px 0 0; color: var(--nv-muted); font-size: 12px; }
.nv-people-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid #cad5e5; border-radius: 9px; background: #fff; color: #344054; font-size: 13px; font-weight: 700; text-decoration: none; }
.nv-people-link:hover { border-color: #8cacdf; background: #f8faff; color: #174ea6; }
.nv-page .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0; padding: 12px; border-radius: 12px; background: #f5f7fb; }
.nv-search { position: relative; flex: 1; max-width: 560px; }
.nv-search > span { position: absolute; left: 12px; top: 50%; z-index: 1; transform: translateY(-52%); color: #667085; font-size: 22px; }
.nv-page .search-box { width: 100%; height: 40px; padding: 0 12px 0 39px; border: 1px solid #d0d7e3; border-radius: 9px; background: #fff; color: var(--nv-ink); outline: none; }
.nv-page .search-box:focus { border-color: #4b7bec; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.nv-page .hide-done { display: flex; align-items: center; gap: 8px; margin: 0; color: #475467; font-size: 13px; font-weight: 650; cursor: pointer; }
.nv-page .hide-done input { width: 17px; height: 17px; accent-color: var(--nv-blue); }

.nv-page .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.nv-page .task-card { position: relative; min-width: 0; min-height: 220px; padding: 18px; gap: 13px; border: 1px solid #dfe5ee; border-left: 4px solid #5b8def; border-radius: 14px; box-shadow: 0 4px 13px rgba(32, 48, 78, .055); background: #fff; }
.nv-page .task-card:hover { transform: translateY(-2px); border-color: #c5d2e5; border-left-color: #2563eb; box-shadow: 0 10px 24px rgba(32,48,78,.1); }
.nv-page .task-card.task-overdue { border-left-color: #dc2626; background: #fffafa; }
.nv-page .task-card.task-done { border-left-color: #16a36a; background: #fbfefc; opacity: .78; }
.nv-page .task-card.task-done:hover { opacity: 1; }
.nv-page .task-left { padding-top: 1px; }
.nv-page .task-circle { width: 25px; height: 25px; flex: 0 0 25px; padding: 0; border: 2px solid #aab4c3; background: #fff; }
.nv-page .task-circle:hover:not(:disabled) { border-color: var(--nv-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.09); }
.nv-page .task-circle:disabled { cursor: not-allowed; opacity: .55; }
.nv-page .task-circle.done { border-color: #059669; background: #059669; color: #fff; }
.nv-page .task-content { min-width: 0; padding-bottom: 42px; }
.nv-task-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 9px; }
.nv-status, .nv-repeat { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .015em; }
.nv-status.is-overdue { background: #fee2e2; color: #b42318; }
.nv-status.is-today { background: #fff0c2; color: #92400e; }
.nv-status.is-upcoming { background: #e8f0ff; color: #1d4ed8; }
.nv-status.is-done { background: #dcfce7; color: #087f5b; }
.nv-repeat { background: #f0eaff; color: #6941c6; }
.nv-page .task-title { margin: 0; color: #202939; font-size: 17px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.nv-page .task-desc { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: #667085; font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-page .task-meta { display: grid; grid-template-columns: minmax(125px, .8fr) minmax(170px, 1.3fr); gap: 9px; margin-top: 14px; }
.nv-page .task-meta > span { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 8px 9px; border-radius: 9px; background: #f7f8fb; }
.nv-page .task-meta i { font-style: normal; }
.nv-page .task-meta small, .nv-page .task-meta b { display: block; }
.nv-page .task-meta small { margin-bottom: 1px; color: #8490a3; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.nv-page .task-meta b { overflow: hidden; color: #3d4757; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nv-page .task-attachments { margin-top: 10px; }
.nv-page .task-attachment { border-color: #e0e7f1; background: #f8faff; }
.nv-page .task-attachment > span small { color: #8a94a5; }
.nv-page .task-actions { position: absolute; right: 16px; bottom: 15px; left: 55px; flex-direction: row; justify-content: flex-end; padding-top: 11px; border-top: 1px solid #edf0f5; }
.nv-page .btn-small { min-height: 29px; margin: 0; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 750; }
.nv-page .btn-small.warning { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.nv-page .btn-small.danger { border-color: #fecaca; background: #fff1f1; color: #c62828; }
.nv-page .btn-small.success { background: #059669; color: #fff; }
.nv-page .btn-small.secondary { border-color: #d0d5dd; background: #fff; color: #475467; }
.nv-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.nv-edit-form .nv-field:first-child, .nv-edit-form .nv-field:nth-child(2), .nv-edit-form .nv-field:last-child { grid-column: 1 / -1; }
.nv-edit-form .nv-field > span { margin-bottom: 4px; font-size: 10px; }
.nv-edit-form .form-input { height: 37px; font-size: 12px; }
.nv-empty { padding: 50px 20px; text-align: center; color: var(--nv-muted); }
.nv-empty > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 50%; background: #e8f7ef; color: #059669; font-size: 25px; font-weight: 800; }
.nv-empty h3 { margin: 0; color: #344054; font-size: 17px; }
.nv-empty p { margin: 5px 0 0; font-size: 13px; }

@media (max-width: 1180px) {
    .nv-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nv-field-title, .nv-field-desc { grid-column: span 1; }
}

@media (max-width: 900px) {
    .nv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nv-page .task-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .nv-page { padding-top: 0; }
    .nv-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 23px 20px; border-radius: 16px; }
    .nv-hero-date { min-width: 0; width: 100%; }
    .nv-stats { gap: 9px; margin: 13px 0; }
    .nv-stat { min-height: 79px; padding: 12px; gap: 10px; }
    .nv-stat-icon { flex-basis: 39px; width: 39px; height: 39px; border-radius: 10px; font-size: 18px; }
    .nv-stat-copy small { font-size: 10px; }
    .nv-stat-copy strong { font-size: 22px; }
    .nv-composer, .nv-workspace { padding: 16px; border-radius: 14px; }
    .nv-form-grid { grid-template-columns: 1fr; }
    .nv-page .task-create-actions, .nv-page .attachment-label { flex-direction: column; }
    .nv-page .task-add-button { min-height: 44px; width: 100%; }
    .nv-list-header { align-items: flex-start; }
    .nv-page .toolbar { align-items: stretch; flex-direction: column; }
    .nv-search { max-width: none; }
    .nv-page .task-card { min-height: 0; padding: 15px; }
    .nv-page .task-meta { grid-template-columns: 1fr; }
    .nv-page .task-content { padding-bottom: 47px; }
    .nv-page .task-actions { right: 13px; bottom: 12px; left: 50px; }
}

