.legacy-datearea-area {
    display: none;
}

.datearea-v2-column {
    padding-top: 8px;
}

.datearea-v2-panel {
    overflow: hidden;
    border: 1px solid #e4e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 45, 66, 0.06);
}

.datearea-v2-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #eaecf2;
    background: linear-gradient(135deg, #fff 0%, #fff7f9 100%);
}

.datearea-v2-panel__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.datearea-v2-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 24px;
    margin-top: 1px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ff596f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.datearea-v2-panel__title {
    margin: 0;
    color: #283252;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.datearea-v2-panel__helper {
    margin: 4px 0 0;
    color: #7f8494;
    font-size: 13px;
    line-height: 1.55;
}

.datearea-v2-add-button.button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #ff596f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(255, 89, 111, 0.22);
}

.datearea-v2-add-button.button:hover,
.datearea-v2-add-button.button:focus {
    background: #f24b63;
    color: #fff;
}

.datearea-v2-add-button svg {
    width: 17px;
    height: 17px;
}

.datearea-v2-table {
    width: 100%;
}

.datearea-v2-table__header,
.datearea-v2-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr) 92px 84px;
    align-items: center;
    column-gap: 12px;
}

.datearea-v2-table__header > *,
.datearea-v2-row > * {
    min-width: 0;
}

.datearea-v2-table__header {
    min-height: 42px;
    padding: 0 22px;
    background: #f7f8fb;
    color: #8a8f9f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.datearea-v2-table__header > :nth-child(3) {
    text-align: center;
}

.datearea-v2-table__header > :last-child {
    text-align: right;
}

.datearea-v2-row {
    min-height: 66px;
    padding: 10px 22px;
    border-top: 1px solid #eef0f4;
    transition: background-color 0.18s ease;
}

.datearea-v2-row:hover {
    background: #fffafb;
}

.datearea-v2-mobile-label {
    display: none;
}

.datearea-v2-title {
    display: block;
    overflow: hidden;
    color: #283252;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.datearea-v2-time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f0f3f9;
    color: #3d4663;
    font-size: 13px;
    font-weight: 700;
}

.datearea-v2-time svg {
    width: 15px;
    height: 15px;
    color: #7d8498;
}

.datearea-v2-sort-cell {
    text-align: center;
}

.datearea-v2-index-input.input,
.datearea_v2_index_id {
    width: 84px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9dde7;
    border-radius: 9px;
    background: #fff;
    color: #283252;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
}

.datearea-v2-index-input.input:focus,
.datearea_v2_index_id:focus {
    border-color: #ff596f;
    box-shadow: 0 0 0 3px rgba(255, 89, 111, 0.12);
    outline: none;
}

.datearea-v2-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.datearea-v2-actions-cell {
    min-width: 84px;
}

.datearea-v2-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #dfe3eb;
    border-radius: 50%;
    background: #fff;
    color: #4f5873;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.datearea-v2-action:hover,
.datearea-v2-action:focus {
    border-color: #ff9aaa;
    background: #fff2f5;
    color: #ff596f;
    outline: none;
}

.datearea-v2-action--delete {
    color: #df5266;
}

.datearea-v2-action i {
    font-size: 17px;
}

.datearea-v2-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 146px;
    padding: 26px 20px;
    border-top: 1px solid #eef0f4;
    color: #858b9d;
    text-align: center;
}

.datearea-v2-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #fff0f3;
    color: #ff596f;
}

.datearea-v2-empty__icon svg {
    width: 20px;
    height: 20px;
}

.datearea-v2-empty__title {
    color: #4d5671;
    font-size: 14px;
    font-weight: 800;
}

.datearea-v2-empty__helper {
    margin-top: 4px;
    font-size: 12px;
}

#datearea_v2-panel .modal-card,
#datearea_v2_edit-panel .modal-card {
    overflow: hidden;
    border-radius: 14px;
}

#datearea_v2-panel .modal-card-head,
#datearea_v2_edit-panel .modal-card-head {
    border-bottom: 1px solid #eaecf2;
    background: #fff7f9;
}

#datearea_v2-panel .modal-card-head h3,
#datearea_v2_edit-panel .modal-card-head h3 {
    color: #283252;
    font-size: 17px;
    font-weight: 800;
}

#datearea_v2-panel .input,
#datearea_v2_edit-panel .input,
#datearea_v2-panel .modal-card-foot .button,
#datearea_v2_edit-panel .modal-card-foot .button {
    height: 36px;
}

#datearea_v2-panel .modal-card-foot .button,
#datearea_v2_edit-panel .modal-card-foot .button {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .datearea-v2-panel__header {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .datearea-v2-add-button.button {
        width: 100%;
    }

    .datearea-v2-table__header {
        display: none;
    }

    .datearea-v2-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 16px;
        padding: 18px;
    }

    .datearea-v2-title-cell {
        grid-column: 1 / -1;
    }

    .datearea-v2-sort-cell {
        text-align: left;
    }

    .datearea-v2-actions-cell {
        grid-column: 1 / -1;
        padding-top: 12px;
        border-top: 1px dashed #e2e5ec;
    }

    .datearea-v2-mobile-label {
        display: block;
        margin-bottom: 6px;
        color: #9297a6;
        font-size: 11px;
        font-weight: 800;
    }

    .datearea-v2-actions {
        justify-content: flex-start;
    }
}
