/* Table Components - Consolidated duplicates */

/* Campaign Table */
.campaign-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.campaign-table th,
.campaign-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.campaign-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.campaign-table tr:hover {
    background-color: #f5f5f5;
}

/* Fix column widths to prevent button shifting when status changes */
.campaign-table th:nth-child(7),
.campaign-table td:nth-child(7) {
    /* Status column */
    min-width: 100px;
    width: 100px;
    white-space: nowrap;
}

.campaign-table th:nth-child(8),
.campaign-table td:nth-child(8) {
    /* Actions column */
    width: auto;
    min-width: 150px;
    white-space: nowrap;
    vertical-align: middle;
}

.campaign-actions {
    white-space: nowrap;
}

.campaign-actions button {
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    font-size: 16px;
    margin: 0 4px 0 0;
    min-width: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    position: relative;
    border: none;
    cursor: pointer;
    text-align: center;
}

.campaign-actions button * {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.campaign-actions button[style*="visibility: hidden"] {
    display: none !important;
}

.campaign-actions .success-btn {
    background: #28a745;
}

.campaign-actions .success-btn:hover {
    background: #218838;
}

/* City Management Table */
.city-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.city-table th,
.city-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.city-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.city-table tr:hover {
    background-color: #f5f5f5;
}

.city-table td button {
    padding: 5px 10px;
    font-size: 0.9em;
    margin: 0 2px;
}

/* Campaign Cities Selection Table */
.campaign-cities-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.campaign-cities-table th,
.campaign-cities-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
}

.campaign-cities-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.campaign-cities-table tr:hover {
    background-color: #f5f5f5;
}

.campaign-cities-table input[type="checkbox"] {
    cursor: pointer;
    transform: scale(0.9);
}
