* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #1c1e21;
    font-size: 14px;
}

.progresso {
    font-size: 13px;
    color: #606770;
    background: #e7f3ff;
    padding: 4px 10px;
    border-radius: 4px;
}

.btn-primary {
    background: #1877f2;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.btn-primary:hover { background: #166fe5; }

.btn-secondary {
    background: #e4e6eb;
    color: #1c1e21;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-link {
    background: none;
    border: none;
    color: #1877f2;
    text-decoration: none;
    padding: 6px 8px;
    cursor: pointer;
}

.btn-site {
    background: #fff;
    border: 1px solid #dadde1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.btn-site:hover { background: #f0f2f5; }

.sites-bar {
    padding: 10px 24px;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sites-bar .label {
    font-size: 12px;
    color: #606770;
    margin-right: 8px;
}

.tabs {
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
}

.tabs-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab {
    padding: 12px 16px;
    text-decoration: none;
    color: #606770;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    line-height: 1;
}

.tab.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
    font-weight: 600;
}

.tab .count { color: #8a8d91; font-weight: 400; }

.filtros {
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e4e6eb;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form label {
    font-size: 12px;
    color: #606770;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-form input[type="number"] {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid #dadde1;
    border-radius: 4px;
}

.filter-form select {
    padding: 4px;
    border: 1px solid #dadde1;
    border-radius: 4px;
    min-width: 200px;
}

.tabela-imoveis {
    width: calc(100% - 48px);
    margin: 16px 24px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    overflow: hidden;
}

.tabela-imoveis th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f6f8;
    border-bottom: 1px solid #e4e6eb;
    font-size: 12px;
    text-transform: uppercase;
    color: #606770;
    letter-spacing: 0.5px;
}

.tabela-imoveis td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.tabela-imoveis tr:hover { background: #fafbfc; }

.tabela-imoveis a {
    color: #1877f2;
    text-decoration: none;
}
.tabela-imoveis a:hover { text-decoration: underline; }

.preco {
    font-weight: 600;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-novo {
    background: #42b72a;
    color: #fff;
}

.badge-escritorio {
    background: #1877f2;
    color: #fff;
}

.badge-pendente {
    background: #fff8dc;
    color: #8a6d00;
    border: 1px solid #f0d878;
}

.btn-edit-escritorio {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.3;
    font-size: 14px;
    margin-left: 4px;
    padding: 0 2px;
}
.btn-edit-escritorio:hover { opacity: 1; }

.check-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.condominio {
    position: relative;
    min-width: 180px;
}

.cond-canonico { color: #1c1e21; }
.cond-raw {
    background: #fff8dc;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}
.cond-vazio { color: #bec3c9; }

.btn-edit-cond {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    font-size: 12px;
    margin-left: 4px;
}
.btn-edit-cond:hover { opacity: 1; }

.cond-select {
    display: block;
    margin-top: 4px;
    padding: 4px;
    border: 1px solid #1877f2;
    border-radius: 4px;
    width: 100%;
}

.cond-raw-preview {
    font-size: 11px;
    color: #606770;
    font-style: italic;
    margin-bottom: 2px;
}

.btn-cancel-cond {
    margin-top: 4px;
    background: none;
    border: 1px solid #dadde1;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 11px;
}

.acoes {
    white-space: nowrap;
}

.btn-like {
    background: #fff;
    border: 1px solid #dadde1;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 4px;
    filter: grayscale(0.7);
}

.btn-like:hover { filter: grayscale(0); background: #f0f2f5; }
.btn-like.on {
    background: #d4edda;
    border-color: #42b72a;
    filter: grayscale(0);
}
.btn-like.off {
    background: #f8d7da;
    border-color: #dc3545;
    filter: grayscale(0);
}

.empty {
    text-align: center;
    padding: 40px;
    color: #8a8d91;
    font-style: italic;
}
