/* DMA Contacts Frontend Styles */
.dma-contacts-wrapper {
    max-width: 100%;
    margin: 20px 0 100px;
}

.dma-contacts-search {
    margin-bottom: 20px;
}

.dma-contacts-search form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.dma-contacts-search input[type="search"] {
    flex: 1;
    padding: 0 22px !important;
    min-height: 44px !important;
    border: 1px solid #7D7D7D;
    outline: none;
    color: #7D7D7D;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
}

.dma-contacts-search .button {
    padding: 8px 15px;
    background: #0073aa;
    color: white !important;
    border: none;
    cursor: pointer;
    min-height: 44px !important;
    min-width: 145px !important;
    margin-left: 16px;
    border-radius: 12px !important;
}

.dma-contacts-search .button:hover {
    background: #005a87;
    color: #005a87 !important;
}
.button:hover, .button:focus {
    border-color: #3366FE !important;
}

.dma-contacts-count {
    margin-bottom: 15px;
    font-weight: bold;
    color: #666;
}

.dma-contacts-table-wrapper {
    overflow-x: auto;
    border: none !important;
    border-radius: 5px;
}

.dma-contacts-table th:first-child,
.dma-contacts-table td:first-child {
    width: 60px;
    text-align: center;
    font-weight: bold;
}

.wp-list-table th:first-child {
    width: 60px !important;
    text-align: center;
}

.wp-list-table td:first-child {
    text-align: center;
    font-weight: bold;
    color: #666;
}

.dma-contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dma-contacts-table th,
.dma-contacts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dma-contacts-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.dma-contacts-table tr:hover {
    background: #f5f5f5;
}

.dma-contacts-table .no-contacts {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.dma-contacts-table a {
    color: #0073aa;
    text-decoration: none;
}

.dma-contacts-table a:hover {
    text-decoration: underline;
}

.dma-contacts-pagination {
    margin-top: 20px;
    text-align: center;
}

.dma-contacts-pagination .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 2px;
    color: #333;
    text-decoration: none;
}

.dma-contacts-pagination a.page-numbers:hover,
.dma-contacts-pagination .page-numbers.current {
    background: #3366FE !important;
    color: #ffffff;
    border-color: #3366FE !important;
    box-shadow: none !important;
    padding: 2.5px 5px !important;
    min-width: 33px !important;
}

.dma-contacts-pagination .page-numbers.dots {
    background: none;
    border: none;
    cursor: default;
}
.dma-contacts-pagination .page-numbers li a, .dma-contacts-pagination .page-numbers li span {
    display: inline-block;
    padding: 2.5px 5px !important;
    margin: 0 3px;
    text-decoration: none;
    border: 2px solid #E6E6E6;
    border-color: #E6E6E6 !important;
    background-color: #E6E6E6 !important;
    border-radius: 6px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 33px !important;
    text-align: center;
    box-shadow: none !important;
}
.dma-contacts-pagination .page-numbers li a.next.page-numbers {
    font-weight: 600;
    padding: 2.5px 10px !important;
    background: #3366FE !important;
    color: white !important;
    border-color: #3366FE !important;
    box-shadow: none !important;
}
body table tr th, body table tr td {
    font-size: 16px !important;
}

@media screen and (max-width: 1380px) {
    body table tr th, body table tr td {
        font-size: 14px !important;
    }
}
/* Responsive Design */
@media screen and (max-width: 768px) {
    .dma-contacts-wrapper {
        margin: 20px 0 30px;
    }
    .dma-contacts-search form {
        /* flex-direction: column;
        align-items: stretch; */
        gap: 0;
    }
    
    .dma-contacts-search input[type="search"] {
        min-width: auto;
        margin-bottom: 0px;
    }
    
    .dma-contacts-table {
        font-size: 14px;
    }
    
    .dma-contacts-table th,
    .dma-contacts-table td {
        padding: 8px;
    }
    
    .dma-contacts-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .dma-contacts-table th,
    .dma-contacts-table td {
        padding: 6px;
        font-size: 12px;
    }
    
    .dma-contacts-search {
        padding: 10px;
    }
    .dma-contacts-search input[type="search"] {
        margin-bottom: 10px;
    }
    .dma-contacts-search .button {
        margin-left: 0;
    }
    .dma-contacts-search input[type="search"] {
        max-width: 100%;
    }
}
