{"id":1893,"date":"2026-04-26T16:48:33","date_gmt":"2026-04-26T16:48:33","guid":{"rendered":"https:\/\/domesticassp.com.br\/?page_id=1893"},"modified":"2026-04-26T21:39:41","modified_gmt":"2026-04-26T21:39:41","slug":"cards-domesticas","status":"publish","type":"page","link":"https:\/\/domesticassp.com.br\/?page_id=1893","title":{"rendered":"Cards Domesticas"},"content":{"rendered":"\n<p><\/p>\n\n\n    <style>\n        .cand-container {\n            max-width: 1100px;\n            margin: 20px auto;\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n        }\n        .cand-header {\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            color: white;\n            padding: 30px;\n            border-radius: 8px 8px 0 0;\n            margin-bottom: 0;\n        }\n        .cand-header h2 {\n            margin: 0;\n            font-size: 24px;\n            font-weight: 600;\n        }\n        .cand-search-box {\n            background: #f8f9fa;\n            padding: 25px;\n            border-bottom: 1px solid #dee2e6;\n        }\n        .cand-search-title {\n            font-weight: 700;\n            margin-bottom: 15px;\n            color: #333;\n            font-size: 16px;\n        }\n        .cand-search-wrapper {\n            display: flex;\n            gap: 10px;\n            margin-bottom: 20px;\n            flex-wrap: wrap;\n        }\n        .cand-search-wrapper input {\n            flex: 1;\n            min-width: 200px;\n            padding: 12px 15px;\n            border: 2px solid #ddd;\n            border-radius: 4px;\n            font-size: 14px;\n            box-sizing: border-box;\n        }\n        .cand-search-wrapper input:focus {\n            outline: none;\n            border-color: #667eea;\n            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);\n        }\n        .cand-btn-search {\n            padding: 12px 30px;\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            color: white;\n            border: none;\n            border-radius: 4px;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.3s ease;\n            white-space: nowrap;\n            font-size: 14px;\n        }\n        .cand-btn-search:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);\n        }\n        .cand-form-box {\n            background: white;\n            padding: 30px;\n            border-radius: 0 0 8px 8px;\n            box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n        }\n        .cand-message {\n            padding: 15px;\n            margin-bottom: 20px;\n            border-radius: 4px;\n            border-left: 4px solid;\n            font-weight: 600;\n        }\n        .cand-message.success {\n            background: #d4edda;\n            color: #155724;\n            border-color: #28a745;\n        }\n        .cand-message.error {\n            background: #f8d7da;\n            color: #721c24;\n            border-color: #f5c6cb;\n        }\n        .cand-form-group {\n            margin-bottom: 20px;\n        }\n        .cand-form-group label {\n            display: block;\n            margin-bottom: 8px;\n            font-weight: 500;\n            color: #333;\n        }\n        .cand-form-group input,\n        .cand-form-group textarea,\n        .cand-form-group select {\n            width: 100%;\n            padding: 10px 12px;\n            border: 1px solid #ddd;\n            border-radius: 4px;\n            font-size: 14px;\n            font-family: inherit;\n            box-sizing: border-box;\n        }\n        .cand-form-group input:focus,\n        .cand-form-group textarea:focus,\n        .cand-form-group select:focus {\n            outline: none;\n            border-color: #667eea;\n            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);\n        }\n        .cand-form-group textarea {\n            resize: vertical;\n            min-height: 100px;\n        }\n        .cand-form-row {\n            display: grid;\n            grid-template-columns: 1fr 1fr;\n            gap: 20px;\n        }\n        .cand-form-row.full {\n            grid-template-columns: 1fr;\n        }\n        .cand-button-group {\n            display: flex;\n            gap: 10px;\n            margin-top: 30px;\n        }\n        .cand-btn {\n            padding: 12px 24px;\n            border: none;\n            border-radius: 4px;\n            font-size: 14px;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.3s ease;\n        }\n        .cand-btn-primary {\n            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n            color: white;\n        }\n        .cand-btn-primary:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);\n        }\n        .cand-btn-secondary {\n            background: #e9ecef;\n            color: #333;\n        }\n        .cand-btn-secondary:hover {\n            background: #dee2e6;\n        }\n        .cand-results-table {\n            width: 100%;\n            border-collapse: collapse;\n            margin-top: 15px;\n            background: white;\n            border: 1px solid #dee2e6;\n            border-radius: 4px;\n            overflow: hidden;\n        }\n        .cand-results-table th {\n            background: #667eea;\n            color: white;\n            padding: 12px;\n            text-align: left;\n            font-weight: 600;\n        }\n        .cand-results-table td {\n            padding: 12px;\n            border-bottom: 1px solid #dee2e6;\n        }\n        .cand-results-table tr:last-child td {\n            border-bottom: none;\n        }\n        .cand-results-table tr:hover {\n            background: #f8f9fa;\n        }\n        .cand-status-novo {\n            background: #cfe2ff;\n            color: #084298;\n            padding: 4px 8px;\n            border-radius: 3px;\n            font-size: 12px;\n            font-weight: 600;\n        }\n        .cand-status-cadastrado {\n            background: #d1e7dd;\n            color: #0f5132;\n            padding: 4px 8px;\n            border-radius: 3px;\n            font-size: 12px;\n            font-weight: 600;\n        }\n        input[readonly] {\n            background: #f8f9fa;\n            cursor: not-allowed;\n        }\n        .cand-field-section {\n            margin-top: 30px;\n            padding-top: 30px;\n            border-top: 2px solid #e9ecef;\n        }\n        .cand-field-section h3 {\n            margin: 0 0 20px 0;\n            color: #667eea;\n            font-size: 16px;\n            font-weight: 600;\n        }\n        .cand-loading {\n            text-align: center;\n            color: #667eea;\n            font-weight: 600;\n            padding: 20px;\n        }\n        .cand-no-results {\n            text-align: center;\n            color: #666;\n            padding: 20px;\n            background: #f8f9fa;\n            border-radius: 4px;\n            margin-top: 15px;\n        }\n        .spinner {\n            display: inline-block;\n            width: 16px;\n            height: 16px;\n            border: 2px solid #f3f3f3;\n            border-top: 2px solid #667eea;\n            border-radius: 50%;\n            animation: spin 1s linear infinite;\n            margin-right: 8px;\n        }\n        @keyframes spin {\n            0% { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n        }\n    <\/style>\n\n    <div class=\"cand-container\">\n        <div class=\"cand-header\">\n            <h2>\ud83d\udccb Cadastro de Profissionais Dom\u00e9sticas<\/h2>\n        <\/div>\n\n        \n        <div class=\"cand-search-box\">\n            <div class=\"cand-search-title\">\ud83d\udd0d BUSCAR CANDIDATA NA BASE<\/div>\n\n            <div class=\"cand-search-wrapper\">\n                <input type=\"text\" id=\"cand_search\" placeholder=\"Digite o nome da candidata...\" \/>\n                <button type=\"button\" class=\"cand-btn-search\" id=\"cand_search_btn\">\ud83d\udd0d BUSCAR<\/button>\n                <button type=\"button\" class=\"cand-btn-search\" id=\"cand_list_all_btn\" style=\"background: #28a745;\">\ud83d\udccb LISTAR TODAS<\/button>\n            <\/div>\n            <div id=\"cand_results\"><\/div>\n        <\/div>\n\n        <div class=\"cand-form-box\">\n            <form id=\"cand_form\" method=\"post\" enctype=\"multipart\/form-data\">\n                <input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"d579916825\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1893\" \/>\n                <input type=\"hidden\" name=\"id\" id=\"cand_id\" value=\"\" \/>\n\n                <div class=\"cand-field-section\">\n                    <h3>\ud83d\udccc Dados da Candidata<\/h3>\n\n                    <div class=\"cand-form-row\">\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_nome\">Nome *<\/label>\n                            <input type=\"text\" name=\"nome\" id=\"cand_nome\" placeholder=\"Nome completo\" readonly required \/>\n                        <\/div>\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_funcao\">Fun\u00e7\u00e3o * (m\u00e1x 30 caracteres)<\/label>\n                            <input type=\"text\" name=\"funcao\" id=\"cand_funcao\" placeholder=\"Ex: Diarista, Cozinheira\" readonly required maxlength=\"30\" \/>\n                        <\/div>\n                    <\/div>\n\n                    <div class=\"cand-form-row\">\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_dorme\">Dorme? (m\u00e1x 3 caracteres)<\/label>\n                            <input type=\"text\" name=\"dorme\" id=\"cand_dorme\" placeholder=\"Sim\/N\u00e3o\" readonly maxlength=\"3\" \/>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n                <div class=\"cand-field-section\">\n                    <h3>\u270f\ufe0f Informa\u00e7\u00f5es Complementares<\/h3>\n\n                    <div class=\"cand-form-row\">\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_experiencia\">Experi\u00eancia (anos) - m\u00e1x 15 caracteres<\/label>\n                            <input type=\"text\" name=\"experiencia\" id=\"cand_experiencia\" placeholder=\"Ex: 5 anos\" maxlength=\"15\" \/>\n                        <\/div>\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_exibe\">Exibir no site?<\/label>\n                            <select name=\"exibe\" id=\"cand_exibe\">\n                                <option value=\"\">Selecione...<\/option>\n                                <option value=\"S\">Sim<\/option>\n                                <option value=\"N\">N\u00e3o<\/option>\n                            <\/select>\n                        <\/div>\n                    <\/div>\n\n                    <div class=\"cand-form-group cand-form-row full\">\n                        <label for=\"cand_descricao\">Descri\u00e7\u00e3o Curta (m\u00e1x 255 caracteres)<\/label>\n                        <textarea name=\"descricao_curta\" id=\"cand_descricao\" placeholder=\"Descreva as habilidades, experi\u00eancias e diferenciais...\" maxlength=\"255\"><\/textarea>\n                    <\/div>\n\n                    <div class=\"cand-form-row\">\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_dat_inic\">Data de In\u00edcio<\/label>\n                            <input type=\"date\" name=\"dat_inic\" id=\"cand_dat_inic\" \/>\n                        <\/div>\n                        <div class=\"cand-form-group\">\n                            <label for=\"cand_dat_fim\">Data de T\u00e9rmino<\/label>\n                            <input type=\"date\" name=\"dat_fim\" id=\"cand_dat_fim\" \/>\n                        <\/div>\n                    <\/div>\n\n                    <div class=\"cand-form-group\">\n                        <label for=\"cand_foto\">Foto 3x4<\/label>\n                        <input type=\"file\" name=\"foto3x4\" id=\"cand_foto\" accept=\"image\/*\" \/>\n                    <\/div>\n                <\/div>\n\n                <div class=\"cand-button-group\">\n                    <button type=\"submit\" name=\"cand_submit\" value=\"1\" class=\"cand-btn cand-btn-primary\">\u2713 CADASTRAR\/ATUALIZAR<\/button>\n                    <button type=\"reset\" class=\"cand-btn cand-btn-secondary\">\u21bb LIMPAR<\/button>\n                <\/div>\n            <\/form>\n        <\/div>\n    <\/div>\n\n    <script>\n    jQuery(document).ready(function($){\n        $('#cand_search_btn').on('click', function(){ buscarCandidatas(); });\n        $('#cand_list_all_btn').on('click', function(){ $('#cand_search').val(''); buscarCandidatas(true); });\n        $('#cand_search').on('keypress', function(e){ if(e.which == 13){ e.preventDefault(); buscarCandidatas(); } });\n\n        function buscarCandidatas(listarTodas){\n            var term = $('#cand_search').val().trim();\n            if(!listarTodas && term.length < 1){ alert('Digite o nome!'); return; }\n            $('#cand_results').html('<div class=\"cand-loading\"><span class=\"spinner\"><\/span>Buscando...<\/div>');\n\n            $.ajax({\n                url: 'https:\/\/domesticassp.com.br\/wp-admin\/admin-ajax.php',\n                type: 'POST',\n                data: { action: 'cand_search', term: term, listar_todas: listarTodas ? 1 : 0 },\n                success: function(response){ $('#cand_results').html(response); },\n                error: function(){ $('#cand_results').html('<div class=\"cand-no-results\">\u274c Erro na busca<\/div>'); }\n            });\n        }\n\n        $(document).on('click', '.cand_select', function(){\n            var id = $(this).data('id');\n            var nome = $(this).data('nome');\n            var funcao = $(this).data('funcao');\n            var dorme = $(this).data('dorme');\n\n            console.log('Selecionado - ID:', id, 'Nome:', nome);\n\n            $('#cand_id').val(id);\n            $('#cand_nome').val(nome);\n            $('#cand_funcao').val(funcao);\n            $('#cand_dorme').val(dorme);\n\n            if($(this).data('experiencia')) $('#cand_experiencia').val($(this).data('experiencia'));\n            if($(this).data('descricao')) $('#cand_descricao').val($(this).data('descricao'));\n            if($(this).data('dat_inic')) $('#cand_dat_inic').val($(this).data('dat_inic'));\n            if($(this).data('dat_fim')) $('#cand_dat_fim').val($(this).data('dat_fim'));\n            if($(this).data('exibe')) $('#cand_exibe').val($(this).data('exibe'));\n\n            $('#cand_results').html('');\n            $('#cand_search').val('');\n            $('html, body').animate({scrollTop: $('#cand_form').offset().top - 100}, 500);\n        });\n\n        $('#cand_form').on('reset', function(){\n            $('#cand_id').val('');\n            $('#cand_nome').val('');\n            $('#cand_funcao').val('');\n            $('#cand_dorme').val('');\n            $('#cand_experiencia').val('');\n            $('#cand_descricao').val('');\n            $('#cand_dat_inic').val('');\n            $('#cand_dat_fim').val('');\n            $('#cand_exibe').val('');\n            $('#cand_results').html('');\n            $('#cand_search').val('');\n        });\n    });\n    <\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1893","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"lucianosegura@icloud.com","author_link":"https:\/\/domesticassp.com.br\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1893"}],"version-history":[{"count":2,"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1893\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=\/wp\/v2\/pages\/1893\/revisions\/1895"}],"wp:attachment":[{"href":"https:\/\/domesticassp.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}