:root {
    --bg-grad-1: #B5B5B5;
    --bg-grad-2: #B5B5B5;
    --surface: #ffffff;
    --surface-soft: #f5fbff;
    --text: #0f2a3d;
    --text-muted: #4b6b80;
    --border: #bfeaff;
    --primary: #00BFFF;
    --primary-hover: #00a7de;
    --secondary: #78cfee;
    --secondary-hover: #57c2e8;
    --accent: #00BFFF;
    --accent-hover: #00a7de;
    --shadow: 0 10px 30px rgba(0, 191, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
    min-height: 100vh;
}

.app-shell {
    max-width: 1960px;
    margin: 0 auto;
    padding: 10px 10px 20px;
    display: grid;
    grid-template-columns: 280px minmax(860px, 1fr) 320px;
    gap: 12px;
    align-items: start;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

header {
    background: var(--surface);
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

header h1 {
    color: var(--text);
    font-size: 1.6rem;
    margin-bottom: 4px;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

h2 {
    color: #0f2a3d;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.form-modal-content {
    max-width: 96vw;
    width: 96vw;
}

.modal-header {
    padding: 20px 24px 0 24px;
}

.modal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.modal-body {
    padding: 12px 14px 14px 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

input, textarea, select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 56px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 2px;
}

.btn-primary, .btn-secondary, .btn-print {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #cf3f31;
}

.btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-print {
    background: #3498db;
    color: white;
    flex: 1;
}

.btn-print:hover {
    background: #2980b9;
}

.mini-btn {
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 6px;
}

.summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 14px;
    padding: 12px;
}

.summary-card h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #0f2a3d;
}

.summary-stale {
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.45);
}

.summary-today {
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.35);
}

.summary-list {
    max-height: 268px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 3px;
}

.summary-item {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 7px;
    font-size: 12.5px;
    color: #0f2a3d;
    cursor: pointer;
    margin-right: 2px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.summary-today .summary-item:hover {
    transform: translateY(-1px);
    border-color: #00BFFF;
    box-shadow: 0 6px 12px rgba(0, 191, 255, 0.16);
}

.summary-stale .summary-item:hover {
    transform: translateY(-1px);
    border-color: #f1c40f;
    box-shadow: 0 6px 12px rgba(241, 196, 15, 0.2);
}

.summary-desc {
    color: #4b6b80;
    margin-top: 2px;
}

.summary-age {
    color: #c17d00;
    font-weight: 700;
    margin-top: 3px;
    font-size: 12px;
}

.summary-empty {
    color: #7f8c8d;
    font-size: 13px;
    padding: 6px;
}

.table-section {
    background: var(--surface);
    padding: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.selection-toggle-item {
    min-width: 140px;
}

.selection-toggle-item .btn-secondary {
    width: 100%;
}

.batch-select-panel {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.batch-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.batch-select-head strong,
.batch-select-head span {
    display: block;
}

.batch-select-head span {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.batch-select-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1fr;
    gap: 12px;
}

.batch-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batch-filter-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-chip {
    position: relative;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.radio-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d6dee6;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.radio-chip input:checked + span {
    background: #e8f8ff;
    border-color: var(--accent);
    color: #0078a8;
}

.custom-date-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hidden {
    display: none !important;
}

.search-item input,
.filter-item select {
    width: 100%;
}

.table-container {
    overflow-x: auto;
}

.pagination-footer {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    align-items: center;
}

.pagination-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rows-block label {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.rows-block select {
    min-width: 110px;
    padding: 10px 12px;
}

.nav-block {
    justify-content: center;
    gap: 8px;
}

.pagination-btn {
    padding: 10px 14px;
    font-size: 14px;
}

.pagination-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.page-indicator {
    min-width: 86px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
}

.info-block {
    justify-content: flex-end;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.repair-row {
    cursor: pointer;
}

.repair-row.expanded {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 12px;
}

.repair-detail-row td {
    background: var(--surface-soft);
    border-bottom: 2px solid var(--border);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    border-radius: 0 0 12px 12px;
    animation: expandDetail 0.22s ease-out;
}

.repair-detail-box {
    padding: 12px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: var(--surface);
    animation: fadeDetail 0.22s ease-out;
}

@keyframes expandDetail {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDetail {
    from { opacity: 0; transform: scale(0.995); }
    to { opacity: 1; transform: scale(1); }
}

.repair-detail-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text);
}

.work-note-block label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.work-note-block textarea {
    width: 100%;
    margin-bottom: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

#repairTable tbody td {
    vertical-align: middle;
}

#repairTable td.status-cell,
#repairTable td.return-date-cell,
#repairTable td.select-cell,
#repairTable th.select-cell {
    text-align: center;
    vertical-align: middle;
}

#repairTable th:nth-last-child(-n + 2) {
    text-align: center;
}

#repairTable .status-select {
    display: block;
    width: min(100%, 148px);
    margin: 0 auto;
    padding: 10px 34px 10px 12px;
    text-align: center;
    text-align-last: center;
}

.select-cell {
    width: 54px;
}

.select-bullet {
    width: 20px;
    height: 20px;
    accent-color: #00BFFF;
    cursor: pointer;
}

.detail-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.detail-actions-row .btn-primary,
.detail-actions-row .btn-print,
.detail-actions-row .btn-secondary {
    margin: 0;
    min-width: 0;
    flex: 0 0 auto;
}

th {
    background: #34495e;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f8f9fa;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

#createModal .modal-content.form-modal-content {
    width: 96vw;
    max-width: 96vw;
    margin: 1.5vh auto;
    overflow-x: hidden;
}

#invoiceModal .modal-content.form-modal-content {
    width: min(980px, 96vw);
    max-width: min(980px, 96vw);
    margin: 2vh auto;
    overflow-x: hidden;
}

#invoiceModal .modal-body {
    overflow-x: hidden;
}

#invoiceModal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#invoiceModal .form-group {
    min-width: 0;
}

#invoiceModal input,
#invoiceModal select,
#invoiceModal textarea,
#invoiceModal .btn-primary,
#invoiceModal .btn-secondary {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#invoiceModal #invoiceLines {
    width: 100%;
    overflow-x: auto;
}

#invoiceModal .invoice-lines-table {
    width: 100%;
    table-layout: fixed;
}

#invoiceModal .invoice-lines-table th,
#invoiceModal .invoice-lines-table td {
    word-wrap: break-word;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.invoice-lines-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 14px;
}

.invoice-lines-table th,
.invoice-lines-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.invoice-lines-table th {
    background: #f5f5f5;
    color: #333;
    position: static;
}

/* MẪU IN THEO PHIẾU THAM CHIẾU */
.invoice-style {
    border: 1px solid #000;
    padding: 8px;
    line-height: 1.35;
    background: #fff;
    margin-top: 0 !important;
}

.invoice-logo {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}

.invoice-logo span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.invoice-center {
    text-align: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.invoice-title {
    text-align: center;
    font-size: 20px;
    line-height: 1.15;
    margin: 6px 0 0 0;
    color: #000 !important;
    text-transform: uppercase;
}

.invoice-code {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
}

.invoice-date {
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    margin: 5px 0 8px;
    font-weight: 700;
}

.invoice-block {
    font-size: 16px;
    margin-bottom: 8px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #000;
    padding: 4px;
    vertical-align: top;
}

.invoice-table th {
    text-align: center;
    background: #fff;
    color: #000;
    position: static;
}

.invoice-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
    margin: 8px 0;
    margin-top: 20px;
    border: 1px dashed #000;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    clear: both;
    page-break-inside: avoid;
    break-inside: avoid;
}

.invoice-summary {
    margin-top: 8px;
    font-size: 16px;
}

.invoice-summary > div {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
}

.invoice-status {
    margin-top: 8px;
    border-top: 1px dashed #000;
    padding-top: 6px;
    font-size: 12px;
}

.receipt-footer {
    margin-top: 10px;
}

.signature {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.signature > div {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.signature hr {
    margin-top: 24px;
    border: none;
    border-top: 1px solid #000;
}

.filters-sidebar,
.notes-sidebar {
    position: sticky;
    top: 8px;
    height: calc(99vh - 16px);
    max-height: calc(100vh - 16px);
    align-self: start;
}

.filters-card,
.notes-card {
    height: 100%;
    max-height: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.22);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.filters-header,
.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.filters-header h3,
.notes-header h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #111;
}

.filters-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 2px;
    padding-bottom: 12px;
}

.filters-body .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-body .filter-group > label {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
}

.time-mode-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#customDateGroup {
    display: flex !important;
}

.filters-body select,
.filters-body input[type="date"] {
    width: 100%;
}

.notes-add-btn {
    padding: 10px 14px;
    font-size: 14px;
}

.note-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
}

.note-item {
    background: #fff;
    border: 1px solid #f0b3b3;
    border-radius: 8px;
    padding: 10px;
    position: relative;
}

.note-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.note-content {
    white-space: pre-wrap;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.45;
    padding-right: 30px;
}

.note-actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.note-menu-btn {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.note-menu {
    position: absolute;
    right: 0;
    top: 30px;
    min-width: 120px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    display: none;
    overflow: hidden;
    z-index: 40;
}

.note-menu.open {
    display: block;
}

.note-menu button {
    width: 100%;
    border: none;
    background: #fff;
    text-align: left;
    padding: 10px;
    cursor: pointer;
}

.note-menu button:hover {
    background: #f6f6f6;
}

.notes-pagination {
    border-top: 1px solid #e9a8a8;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.fab-btn:hover {
    transform: translateY(-2px);
}

.fab-create {
    background: #00b894;
}

.fab-create:hover {
    background: #00a17f;
}

.fab-top {
    background: #34495e;
    opacity: 0;
    pointer-events: none;
}

.fab-top:hover {
    background: #263645;
}

@media print {
    @page { size: 80mm auto; margin: 0; }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* Ẩn toàn bộ phần không liên quan bằng display:none để tránh page trắng */
    .container,
    .floating-actions,
    #createModal,
    #invoiceModal,
    #printModal .modal-actions,
    #closePrintIcon {
        display: none !important;
    }

    /* Chỉ hiển thị vùng in */
    #printModal {
        display: block !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #fff !important;
        overflow: visible !important;
    }

    #printModal .modal-content {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fff !important;
    }

    #printContent {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .invoice-note {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #000 !important;
        border: 1px dashed #000 !important;
        padding: 10px !important;
        margin-top: 20px !important;
        clear: both !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .print-receipt {
        font-family: Arial, sans-serif;
        font-size: 12px;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        color: #000;
        border: none !important;
        page-break-before: auto !important;
        break-before: auto !important;
    }
}

@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .filters-sidebar,
    .notes-sidebar {
        position: static;
        height: auto;
    }

    .filters-card,
    .notes-card {
        min-height: 280px;
        max-height: none;
    }

    .filters-header h3,
    .notes-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .batch-select-grid,
    .custom-date-grid,
    .batch-select-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .summary-section {
        grid-template-columns: 1fr;
    }

    .pagination-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .pagination-block {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-block {
        justify-content: space-between;
    }

    .info-block {
        justify-content: flex-start;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    th, td {
        padding: 10px 5px;
        font-size: 14px;
    }

    .floating-actions {
        right: 12px;
        bottom: 12px;
    }

    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


#clearFilterBtn {
    background: white;          /* nền trắng */
    color: #e74c3c;             /* chữ đỏ */
    border: 1px solid #e74c3c;  /* viền đỏ */
    padding: 4px 8px;           /* nhỏ lại */
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;            /* nhỏ gọn */
    line-height: 1;
}

#clearFilterBtn:hover {
    background: #e74c3c;
    color: white;
}
.note-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-input-row input {
    flex: 1;
    min-width: 0;
    padding: 6px;
    border: none;
    border-bottom: 1px dashed #ccc;
    outline: none;
}

.note-add-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #cfd6dc;
    border-radius: 50%;
    background: #eef1f3;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 0 0 2px;
}

.note-add-btn:hover {
    background: #dfe5e8;
    color: #5f6b70;
}

.note-item {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.note-text {
    flex: 1;
    cursor: text;
}

.note-delete {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #e74c3c;
    color: white;
    cursor: pointer;
}
.note-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

/* chấm đầu dòng */
.note-dot {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    margin-right: 8px;
}

/* nội dung editable */
.note-text {
    flex: 1;
    outline: none;
    cursor: text;
}

/* edit input */
.note-edit-input {
    flex: 1;
    padding: 2px 4px;
    border: 1px solid #4CAF50;
    border-radius: 2px;
    outline: none;
    font-size: inherit;
    font-family: inherit;
}

/* nút X */
.note-delete {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    cursor: pointer;
}
