/* ========== 卡片样式 ========== */
.note-card {
    transition: all 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========== 联想输入框样式 ========== */
.autocomplete-container {
    position: relative;
}

.autocomplete-items {
    position: fixed !important;
    border: 1px solid #d4d4d4;
    border-radius: 0.5rem;
    z-index: 99999 !important;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.autocomplete-items div {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover {
    background-color: #f3f4f6;
}

.autocomplete-active {
    background-color: #0ea5e9 !important;
    color: #ffffff;
}

/* ========== 表格容器固定高度 + 隐藏滚动条 ========== */
.note-card .overflow-x-auto {
    height: calc(48px + 5 * 40px);
    overflow-y: auto;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.note-card .overflow-x-auto table thead {
    position: sticky;
    top: 0;
}

.note-card .overflow-x-auto table thead tr th:nth-of-type(1) {
    width: 50px;
}

.note-card .overflow-x-auto table thead tr th:nth-of-type(2),
th:nth-of-type(4) {
    width: 75px;
}

.note-card .overflow-x-auto::-webkit-scrollbar {
    display: none;
}

.note-card table {
    width: 100%;
    table-layout: fixed;
}

/* ========== 弹窗样式 ========== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-mask.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-mask.show .modal-content {
    transform: translateY(0);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.modal-desc {
    color: #666;
    line-height: 1.6;
}
