/* ==========================================================================
   Secure Business Directory - Datatables Spreadsheet Styles
   ========================================================================== */

#sbd-directory-wrap {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 20px 0;
    overflow-x: auto;
}

/* Top search bar wrapper */
.sbd-top-bar {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    background: #fafafa;
}

.sbd-search-wrap {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
    height: 32px;
}

.sbd-search-wrap input {
    border: none;
    padding: 0 10px;
    font-size: 13px;
    width: 250px;
    outline: none;
    box-shadow: none;
    margin: 0;
    line-height: normal;
}

.sbd-search-wrap button {
    background: #337ab7;
    color: white;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-left: 1px solid #ccc;
    margin: 0;
}

.sbd-search-wrap button:hover {
    background: #286090;
}

/* Spinner Animation */
.sbd-spinner {
    padding: 60px 40px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Table Spreadsheet Aesthetics */
#sbd-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin: 0;
    font-size: 12px;
}

#sbd-table-container th,
#sbd-table-container td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee; /* Vertical borders mapped from screenshot */
}

#sbd-table-container th:last-child,
#sbd-table-container td:last-child {
    border-right: none;
}

#sbd-table-container th {
    background-color: #f9f9f9;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    border-bottom: 2px solid #ddd;
}

/* Row hover */
#sbd-table-container tbody tr:hover {
    background-color: #f5f5f5;
}

#sbd-table-container td:first-child {
    color: #333;
}

/* Styled Compact Buttons for Email/Phone/Web */
.sbd-act-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d1d5db !important;
    background: #f9fafb !important;
    color: #4b5563 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-right: 4px !important;
    margin-bottom: 2px !important;
    display: inline-block !important;
    transition: all 0.15s ease;
}

.sbd-act-btn:hover {
    background: #337ab7;
    color: #ffffff;
    border-color: #337ab7;
}

.sbd-act-btn:active {
    background: #286090;
}

/* Bottom Pagination Bar */
.sbd-bottom-bar {
    padding: 12px 15px;
    border-top: 1px solid #ddd;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
}

#sbd-pagination {
    display: flex;
    gap: 4px;
}

.sbd-page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #337ab7;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3px;
}

.sbd-page-btn:hover:not(.sbd-page-disabled):not(.sbd-page-active) {
    background: #eee;
}

.sbd-page-active {
    background: #337ab7;
    color: #fff;
    border-color: #337ab7;
    cursor: default;
}

.sbd-page-disabled {
    color: #999;
    cursor: not-allowed;
    background: #fafafa;
}

/* Dashicons override for shortcode context */
.dashicons {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}