.api-table-container *,
.api-table-container h3 {
    color: #000;
}

table tbody tr:hover>td,
table tbody tr:hover>th {
    background-color: #FFF;
}

/* Make the outer table's tbody act as a grid container */
.data-table.ace-notes-table,
.data-table.ace-notes-table tbody {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Turn the tbody into a grid container */
.data-table.ace-notes-table>tbody {
    display: grid;
    /* 3 columns on desktop */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    /* space between tables */
    align-items: start;
    /* allow grid to wrap children even if markup is not semantically correct */
}

/* Each note-table fills the grid cell */
.ace-note-table {
    width: 100%;

    /* ensure consistent block layout inside grid cell */
    border-collapse: collapse;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;

}

/* Rows/cells inside the inner note table */
.ace-note-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
}

/* Remove last-row border for a cleaner look */
.ace-note-table tr:last-child td {
    border-bottom: none;
}

/* Optional: header-like appearance for first cell in a row (if you prefer) */
.ace-note-table tr td:first-child {
    font-weight: 600;
    width: 45%;
}

/* Responsive breakpoints */
/* Tablet: 2 columns */
@media (max-width: 992px) {
    .data-table.ace-notes-table>tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .data-table.ace-notes-table>tbody {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ace-note-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}


/* Parent container */
.artemus-data-search {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* align to left */
    gap: 8px;
    font-family: "Inter", Arial, sans-serif;
    width: 100%;
    max-width: 400px;
    margin-left: 0;
    margin-right: auto;
    padding: 10px 15px;
    box-sizing: border-box;
}

/* Label styling */
.artemus-data-search label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Search form container */
.artemus-data-search .artemus_data_search_[id$="-search-form-container"],
.artemus-data-search [class*="-search-form-container"] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* ensure left alignment */
    width: 100%;
    max-width: 350px;
    /* keeps form compact on desktop */
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Input styling */
.artemus-data-search input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #222;
    background: transparent;
    min-width: 0;
    /* fix flex shrink issue */
}

/* Button styling */
.artemus-data-search button {
    background: #1e9dcc;
    border: none;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artemus-data-search button:hover {
    background: #005bb5;
}

.artemus-data-search button i {
    font-size: 16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .artemus-data-search {
        max-width: 100%;
        padding: 8px 10px;
    }

    .artemus-data-search [class*="-search-form-container"] {
        max-width: 100%;
    }

    .artemus-data-search input[type="text"] {
        font-size: 13px;
        padding: 8px 10px;
    }

    .artemus-data-search button {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .artemus-data-search {
        gap: 6px;
    }

    .artemus-data-search label {
        font-size: 13px;
    }

    .artemus-data-search input[type="text"] {
        font-size: 13px;
    }

    .artemus-data-search button i {
        font-size: 14px;
    }

    .api-table-container h3 {
        display: block !important;
        text-align: center;
    }

    .api-table-container a {
        margin-bottom: 20px;
        float: none !important;
        text-align: center;
        display: block;
    }

}