.acf-table-repeater-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px 0;
}

.acf-table-repeater-search-wrapper {
    margin-bottom: 20px;
}

.acf-table-repeater-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #1e293b;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.acf-table-repeater-search-input:focus,
.acf-table-repeater-select-filter:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.acf-table-repeater-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    overflow-x: auto;
}

.acf-table-repeater-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.acf-table-repeater-table thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.acf-table-repeater-table th {
    padding: 15px 20px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.acf-table-repeater-table td {
    padding: 15px 20px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.acf-table-repeater-table tbody tr {
    transition: background-color 0.2s ease;
}

.acf-table-repeater-table tbody tr:hover td {
    background-color: #f1f5f9;
}

.acf-table-repeater-table tbody tr:last-child td {
    border-bottom: none;
}

.acf-table-repeater-empty {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 30px !important;
}

.hidden {
    display: none !important;
}

.acf-table-repeater-img {
    max-width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.acf-table-repeater-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.acf-table-repeater-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
    user-select: none;
}
th.sortable:after {
    content: "↕";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.3;
}
th.sortable.asc:after {
    content: "▲";
    opacity: 1;
}
th.sortable.desc:after {
    content: "▼";
    opacity: 1;
}

.acf-table-repeater-cond-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    vertical-align: middle;
}
.acf-table-repeater-cond-icon svg,
.acf-table-repeater-cond-icon i {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
}
