*{box-sizing:border-box}:root{--bg: #f3f6fb;--card: #ffffff;--text: #111827;--muted: #6b7280;--border: #e5e7eb;--border-strong: #cbd5e1;--primary: #2563eb;--primary-dark: #1d4ed8;--danger: #dc2626;--danger-dark: #b91c1c;--success: #059669;--success-dark: #047857;--success-bg: #ecfdf5;--success-text: #065f46;--error-bg: #fef2f2;--error-text: #991b1b;--info-bg: #eff6ff;--info-text: #1e3a8a;--shadow: 0 10px 30px rgba(15, 23, 42, .08);--shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);--radius: 18px;--radius-md: 14px;--radius-sm: 10px}html,body,#root{margin:0;padding:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}body{overflow-x:hidden}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}button{appearance:none}.app-shell{display:flex;min-height:100vh;width:100%;background:var(--bg)}.sidebar{width:280px;min-height:100vh;background:linear-gradient(180deg,#0f172a,#111827);color:#e5e7eb;padding:18px 16px;display:flex;flex-direction:column;box-shadow:12px 0 30px #0f172a2e;position:sticky;top:0;z-index:40;flex-shrink:0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#2563eb,#3b82f6);box-shadow:0 12px 24px #2563eb47;flex-shrink:0}.brand-text{display:flex;flex-direction:column;min-width:0}.brand-text strong{color:#fff;font-size:16px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-text span{color:#94a3b8;font-size:12px;margin-top:3px}.menu{display:flex;flex-direction:column;gap:10px;margin-top:8px}.menu-group{display:flex;flex-direction:column;gap:8px}.menu-group-trigger{width:100%;border:0;background:transparent;color:#dbe4f0;min-height:46px;padding:10px 12px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background .18s ease,transform .18s ease,color .18s ease}.menu-group-trigger:hover{background:#ffffff0d;color:#fff}.menu-group-left{display:flex;align-items:center;gap:12px;min-width:0}.menu-group-items{display:none;flex-direction:column;gap:6px;padding-left:14px;margin-left:10px;border-left:1px solid rgba(148,163,184,.16)}.menu-group-items.open{display:flex}.menu-link{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 12px;color:#cbd5e1;text-decoration:none;border-radius:14px;font-weight:600;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}.menu-link:hover{background:#ffffff0f;color:#fff;transform:translate(2px)}.menu-link.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 10px 22px #2563eb47}.menu-link-icon{width:20px;height:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.menu-icon-svg{width:20px;height:20px;display:block}.menu-link-text{line-height:1.2}.menu-chevron{font-size:12px;transition:transform .18s ease;flex-shrink:0}.menu-chevron.open{transform:rotate(180deg)}.sidebar-user{margin-top:auto;padding-top:18px;border-top:1px solid rgba(148,163,184,.12)}.sidebar-user-name{color:#fff;font-weight:700}.sidebar-user-role{color:#94a3b8;font-size:13px;margin-top:4px;margin-bottom:12px}.logout-btn{width:100%;border:0;border-radius:12px;padding:11px 14px;font-weight:700;cursor:pointer;background:#ef444429;color:#fecaca;transition:background .18s ease,color .18s ease}.logout-btn:hover{background:#ef44443d;color:#fff}.sidebar-mobile-toggle{display:none;position:fixed;top:14px;left:14px;width:44px;height:44px;border:0;border-radius:12px;background:#0f172a;color:#fff;font-size:20px;z-index:70;box-shadow:0 10px 22px #0f172a38;cursor:pointer}.sidebar-close-mobile{display:none;width:38px;height:38px;border:0;border-radius:10px;background:#ffffff0f;color:#fff;cursor:pointer}.sidebar-overlay{display:none}.main{flex:1;min-width:0;width:calc(100% - 280px);display:block}.content{width:100%;max-width:none;padding:22px;box-sizing:border-box}.content>*{width:100%;max-width:100%}.page{padding:0;display:flex;flex-direction:column;gap:18px;width:100%;max-width:100%}.card,.app-card{background:var(--card);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-soft);border:1px solid var(--border);width:100%;max-width:100%}.card-header,.app-card-header{margin-bottom:18px}.card-title,.page-title,.app-page-title{margin:0;font-size:28px;font-weight:800;color:#0f172a;line-height:1.15}.card-subtitle,.page-subtitle,.app-page-subtitle{margin-top:6px;margin-bottom:0;color:#64748b;font-size:14px;line-height:1.45}.section-title,.app-section-title{margin:0;font-size:24px;font-weight:800;color:#0f172a}.subsection-title,.app-subsection-title{margin:0;font-size:18px;font-weight:700;color:#0f172a}.card h1,.card h2,.card h3{margin-top:0;margin-bottom:14px;color:var(--text)}.form-col{display:flex;flex-direction:column;gap:12px}.form-row{display:flex;gap:12px;flex-wrap:wrap}.form-grid,.app-form-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px}.form-grid-3,.app-form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px}.form-grid-2,.app-form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px}.form-section,.app-form-section{padding:16px;border-radius:14px;border:1px solid var(--border);background:#fcfdff}.form-title,.app-form-title{font-size:14px;font-weight:700;color:#0f172a;margin-bottom:6px}.form-subtitle,.app-form-subtitle{font-size:13px;color:var(--muted);line-height:1.5}input,select,textarea{width:100%;border:1px solid #d1d5db;background:#fff;border-radius:14px;padding:12px 14px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1f}textarea{min-height:100px;resize:vertical}label,.app-label{font-size:14px;color:#374151}.field-label,.form-label,.app-field-label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#475569}.app-input,.input{width:100%;height:42px;border-radius:10px;border:1px solid #cbd5e1;padding:0 12px;background:#fff;color:#0f172a;font-size:14px;box-sizing:border-box;outline:none}.app-textarea,.textarea{width:100%;border-radius:10px;border:1px solid #cbd5e1;padding:10px 12px;background:#fff;color:#0f172a;font-size:14px;box-sizing:border-box;outline:none;resize:vertical;min-height:110px}small,.field-help,.form-help,.app-field-help{display:block;color:var(--muted);font-size:12px;margin-top:6px;line-height:1.5}.btn,.app-btn{border:0;border-radius:14px;padding:12px 16px;background:var(--primary);color:#fff;font-weight:700;cursor:pointer;transition:background .2s ease,transform .05s ease,opacity .2s ease}.btn:hover,.app-btn:hover{background:var(--primary-dark)}.btn:active,.app-btn:active{transform:scale(.99)}.btn:disabled,.app-btn:disabled{opacity:.65;cursor:not-allowed}.btn.danger,.app-btn.danger,.app-btn-danger{background:var(--danger)}.btn.danger:hover,.app-btn.danger:hover,.app-btn-danger:hover{background:var(--danger-dark)}.btn.success,.app-btn.success,.app-btn-success{background:var(--success)}.btn.success:hover,.app-btn.success:hover,.app-btn-success:hover{background:var(--success-dark)}.btn.secondary{background:#6b7280}.btn.secondary:hover{background:#4b5563}.btn-secondary,.app-btn-secondary{background:#eef2f7;color:#0f172a}.btn-secondary:hover,.app-btn-secondary:hover{background:#e2e8f0}.btn-sm,.app-btn-sm{height:32px;border-radius:8px;padding:0 10px;font-size:12px;min-width:80px;white-space:nowrap}.btn-md,.app-btn-md{height:38px;border-radius:10px;padding:0 14px;font-size:13px;min-width:92px;white-space:nowrap}.btn-lg,.app-btn-lg{height:42px;border-radius:10px;padding:0 16px;white-space:nowrap}.button-center,.app-button-center{display:flex;justify-content:center}.button-group,.app-button-group,.menu-actions{display:flex;gap:8px;flex-wrap:wrap}.alert{border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.4;border:1px solid transparent}.alert.info{background:var(--info-bg);color:var(--info-text);border-color:#bfdbfe}.alert.error{background:var(--error-bg);color:var(--error-text);border-color:#fecaca}.alert.success{background:var(--success-bg);color:var(--success-text);border-color:#a7f3d0}.table-wrap,.app-table-wrap{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:#fff}.table-container,.app-table-container{border:1px solid var(--border);border-radius:16px;overflow:hidden;background:#fff}.table-scroll,.app-table-scroll{overflow:auto;max-height:70vh;max-width:100%}table{width:100%;border-collapse:collapse;min-width:760px}.table-main,.app-table{width:100%;min-width:1200px;border-collapse:separate;border-spacing:0}thead{background:#f8fafc}th,td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top;font-size:14px}th{color:#374151;font-weight:700;white-space:nowrap}tbody tr:hover{background:#f9fbff}.table-th,.app-th{position:sticky;top:0;z-index:2;background:#f8fafc;color:#334155;font-size:13px;font-weight:700;white-space:nowrap;border-bottom:1px solid #e2e8f0;padding:12px 14px;text-align:left}.table-td,.app-td{padding:12px 14px;border-bottom:1px solid #f1f5f9;font-size:14px;color:#0f172a;vertical-align:top;background:#fff}.table-td-nowrap,.app-td-nowrap{white-space:nowrap}.table-td-wrap,.app-td-wrap{white-space:normal;line-height:1.5}.table-row-clickable,.app-row-clickable{cursor:pointer;transition:background .15s ease}.table-row-clickable:hover,.app-row-clickable:hover{background:#f8fbff}.table-actions,.app-table-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.grid-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-top:8px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.stat-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);border-radius:18px;padding:18px;box-shadow:var(--shadow)}.stat-card strong{display:block;font-size:28px;margin-top:6px;color:var(--text)}.stat-card span{color:var(--muted);font-size:13px}.locais-box{display:flex;flex-direction:column;gap:10px}.local-item{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:14px;background:#f9fafb}.local-item input[type=checkbox]{width:auto;margin:0}.badges-wrap{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}.badge{display:inline-block;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}.badge-red{background:#fee2e2;color:#991b1b}.badge-orange{background:#ffedd5;color:#9a3412}.badge-purple{background:#f3e8ff;color:#6b21a8}.badge-green{background:#dcfce7;color:#166534}hr{border:0;border-top:1px solid var(--border);margin:16px 0}video{width:100%;max-width:380px;border-radius:16px;background:#000;border:1px solid #d1d5db}.selfie-preview{width:220px;border-radius:16px;border:1px solid #d1d5db;overflow:hidden}.checkbox-row,.app-checkbox-row{display:flex;align-items:center;gap:10px}.checkbox-row input[type=checkbox],.app-checkbox-row input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0;cursor:pointer}.checkbox-row label,.app-checkbox-row label{margin:0;cursor:pointer;font-size:14px;color:#374151;line-height:1.2}.checkbox-inline{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.dashboard-page{display:flex;flex-direction:column;gap:18px}.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff}.dashboard-hero h1{margin:0 0 8px;color:#fff;font-size:30px}.dashboard-hero p{margin:0;color:#ffffffdb}.dashboard-hero .btn{background:#fff;color:#1d4ed8}.dashboard-hero .btn:hover{background:#eaf1ff}.dashboard-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dashboard-stat-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dbeafe;border-radius:22px;padding:22px;box-shadow:0 12px 24px #0f172a14}.dashboard-stat-card.destaque{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:transparent}.dashboard-stat-card.destaque .dashboard-stat-label,.dashboard-stat-card.destaque .dashboard-stat-value,.dashboard-stat-card.destaque .dashboard-stat-subtitle{color:#fff}.dashboard-stat-label{font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px}.dashboard-stat-value{font-size:34px;font-weight:800;line-height:1;color:#0f172a}.dashboard-stat-subtitle{margin-top:10px;font-size:13px;color:#64748b}.dashboard-grid-1{display:grid;grid-template-columns:1fr;gap:16px}.dashboard-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.section-header h3{margin:0 0 6px}.section-header p{margin:0;color:#64748b;font-size:14px}.mini-chart{height:260px;display:flex;align-items:end;gap:10px;padding-top:16px;border-top:1px solid var(--border)}.mini-chart-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;height:100%}.mini-chart-bar{width:100%;max-width:36px;border-radius:14px 14px 6px 6px;background:linear-gradient(180deg,#60a5fa,#2563eb);box-shadow:0 10px 16px #2563eb2e;margin-top:auto}.mini-chart-label{font-size:12px;color:#64748b;font-weight:700}.table-modern{width:100%;border-collapse:collapse}.table-modern th,.table-modern td{text-align:left;padding:14px 12px;border-bottom:1px solid #edf2f7;font-size:14px}.table-modern th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.table-modern tbody tr:hover{background:#f8fbff}.empty-state{border:1px dashed #cbd5e1;border-radius:16px;padding:20px;color:#64748b;background:#f8fafc}.dashboard-pro-page{display:flex;flex-direction:column;gap:20px}.dashboard-pro-hero{border-radius:28px;padding:32px;background:radial-gradient(circle at top right,rgba(96,165,250,.35),transparent 25%),linear-gradient(135deg,#0f172a,#1e3a8a 45%,#2563eb);color:#fff;box-shadow:0 18px 40px #0f172a2e}.dashboard-pro-hero h1{margin:10px 0 8px;font-size:34px;line-height:1.1;color:#fff}.dashboard-pro-hero p{margin:0;max-width:820px;color:#ffffffdb;font-size:15px}.hero-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:#ffffff24;border:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.pro-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #e5eefb;border-radius:24px;padding:22px;box-shadow:0 12px 28px #0f172a0f}.pro-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}.pro-card-header h3{margin:0 0 6px;color:#0f172a}.pro-card-header p{margin:0;color:#64748b;font-size:14px}.filtros-card{padding-bottom:18px}.filtros-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:8px}.field label{font-size:13px;font-weight:700;color:#334155}.field input,.field select{height:46px;border-radius:14px;border:1px solid #dbe4f0;padding:0 14px;font-size:14px;background:#fff;outline:none}.field input:focus,.field select:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61f}.filtros-actions{display:flex;gap:12px;margin-top:18px}.resumo-grid-pro{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.resumo-card{position:relative;overflow:hidden;min-height:130px}.resumo-card:after{content:"";position:absolute;right:-18px;top:-18px;width:90px;height:90px;border-radius:50%;background:#ffffff1f}.resumo-card.azul{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}.resumo-card.verde{background:linear-gradient(135deg,#059669,#10b981);color:#fff}.resumo-card.vermelho{background:linear-gradient(135deg,#dc2626,#ef4444);color:#fff}.resumo-card.laranja{background:linear-gradient(135deg,#ea580c,#f97316);color:#fff}.resumo-card.roxo{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff}.resumo-card.escuro{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff}.resumo-card.cinza{background:linear-gradient(135deg,#334155,#475569);color:#fff}.resumo-card.gradiente{background:linear-gradient(135deg,#0f172a,#2563eb,#10b981);color:#fff}.resumo-card-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;opacity:.9}.resumo-card-value{margin-top:18px;font-size:34px;font-weight:800;line-height:1}.resumo-card-subtitle{margin-top:10px;font-size:13px;opacity:.9}.pro-chart{height:280px;display:flex;align-items:end;gap:10px;padding-top:12px;border-top:1px solid #edf2f7}.pro-chart-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;height:100%}.pro-chart-column-wrap{width:100%;flex:1;display:flex;align-items:end;justify-content:center}.pro-chart-column{width:100%;max-width:38px;border-radius:14px 14px 8px 8px;background:linear-gradient(180deg,#93c5fd,#2563eb);box-shadow:0 10px 18px #2563eb2e}.pro-chart-label{font-size:12px;color:#64748b;font-weight:700}.pro-table th,.pro-table td{padding:14px 12px}.pro-table tbody tr:hover{background:#f8fbff}.colaborador-chart-list{display:flex;flex-direction:column;gap:14px}.colaborador-chart-row{display:flex;flex-direction:column;gap:8px}.colaborador-chart-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.colaborador-chart-name{font-size:14px;font-weight:700;color:#0f172a}.colaborador-chart-value{font-size:13px;font-weight:700;color:#475569}.colaborador-chart-track{width:100%;height:12px;border-radius:999px;background:#e2e8f0;overflow:hidden}.colaborador-chart-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa,#2563eb)}.tooltip-container{position:relative;display:inline-flex;align-items:center;margin-right:4px;transform:translateY(-1px);cursor:help}.tooltip-icon{width:18px;height:18px;border-radius:50%;background:#fff;color:#334155;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;box-shadow:0 4px 10px #00000040;transition:all .2s ease}.tooltip-icon:hover{transform:translateY(-2px);box-shadow:0 8px 20px #00000059}.tooltip-text{visibility:hidden;width:260px;background-color:#1e293b;color:#fff;text-align:left;border-radius:8px;padding:10px;position:absolute;top:130%;left:0;z-index:9999;font-size:12px;line-height:1.4;opacity:0;transition:opacity .2s ease;box-shadow:0 8px 20px #00000040}.tooltip-container:hover .tooltip-text{visibility:visible;opacity:1}.table-wrap::-webkit-scrollbar,.app-table-scroll::-webkit-scrollbar{height:10px;width:10px}.table-wrap::-webkit-scrollbar-thumb,.app-table-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}@media(max-width:1200px){.dashboard-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.resumo-grid-pro,.filtros-grid,.form-grid,.app-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:960px){.sidebar-mobile-toggle{display:block}.sidebar{position:fixed;left:0;top:0;transform:translate(-100%);transition:transform .22s ease;width:290px;height:100vh;min-height:100vh;z-index:80}.sidebar.mobile-open{transform:translate(0)}.sidebar-close-mobile{display:inline-flex;align-items:center;justify-content:center}.sidebar-overlay{display:block;position:fixed;inset:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:60}.main{width:100%}.content{padding:64px 16px 16px}.dashboard-grid-2,.resumo-grid-pro,.filtros-grid,.dashboard-stats-grid,.form-grid,.app-form-grid,.form-grid-3,.app-form-grid-3,.form-grid-2,.app-form-grid-2{grid-template-columns:1fr}.dashboard-hero,.dashboard-pro-hero{flex-direction:column;align-items:flex-start}.dashboard-pro-hero{padding:24px}.dashboard-pro-hero h1{font-size:28px}.filtros-actions{flex-direction:column}}@media(max-width:768px){.page{gap:12px}.card,.app-card,.pro-card{padding:14px;border-radius:16px}.grid-buttons{grid-template-columns:1fr}.menu-actions,.button-group,.app-button-group{flex-direction:column}.btn,.app-btn{width:100%}th,td{padding:10px 12px;font-size:13px}table{min-width:680px}input,select,textarea{padding:11px 12px}.selfie-preview{width:100%;max-width:260px}.card-title,.page-title,.app-page-title{font-size:24px}.section-title,.app-section-title{font-size:20px}}@media(max-width:480px){.content{padding:64px 10px 10px}.card,.app-card,.pro-card{padding:12px}.btn,.app-btn{padding:11px 14px;border-radius:12px}input,select,textarea,.app-input,.input,.app-textarea,.textarea{border-radius:12px}table{min-width:620px}}
