*{box-sizing:border-box;margin:0;padding:0;font-family:Arial,sans-serif}body{color:#1f2937;background:#f4f6f8;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.login-container{background:linear-gradient(135deg,#2e7d32,#66bb6a);justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:#fff;border-radius:16px;flex-direction:column;gap:16px;width:100%;max-width:380px;padding:32px;display:flex;box-shadow:0 10px 30px #00000026}.login-card h1{text-align:center;color:#2e7d32}.login-card p{text-align:center;color:#6b7280;margin-bottom:8px}.login-card input,.login-card select{color:#1f2937;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;height:46px;padding:12px}.login-card select{appearance:auto;cursor:pointer}.login-card button{color:#fff;cursor:pointer;background:#2e7d32;border:none;border-radius:8px;padding:12px;font-size:16px}.login-card button:hover{background:#256628}.login-hint{text-align:center;color:#6b7280}.login-links{justify-content:flex-end;margin-top:-4px;margin-bottom:12px;display:flex}.login-links a{color:#2563eb;font-size:.9rem;text-decoration:none}.login-links a:hover{text-decoration:underline}.error-text{color:#b91c1c;text-align:center;font-size:14px}.forgot-password-card{max-width:420px}.forgot-password-description{color:#4b5563;text-align:center;margin-bottom:18px;font-size:.95rem;line-height:1.5}.forgot-password-step{flex-direction:column;gap:12px;display:flex}.forgot-password-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 4px;display:flex}.link-button{color:#2563eb;cursor:pointer;text-align:left;background:0 0;border:none;padding:0;font-size:.92rem}.link-button:hover:not(:disabled){text-decoration:underline}.link-button:disabled{color:#94a3b8;cursor:not-allowed}.password-field{align-items:center;display:flex;position:relative}.password-field input{width:100%;padding-right:90px}.toggle-password-button{color:#2563eb;cursor:pointer;background:0 0;border:none;font-size:.9rem;font-weight:600;position:absolute;right:12px}.toggle-password-button:disabled{color:#94a3b8;cursor:not-allowed}.password-helper-text{color:#64748b;margin-top:-4px;font-size:.82rem}.success-text{color:#1f7a1f;text-align:center;box-sizing:border-box;background-color:#eaf7ea;border-radius:8px;width:100%;margin-top:10px;padding:10px 12px;font-size:14px;font-weight:500;display:block}.financeiro-page{flex-direction:column;gap:18px;display:flex}.subtabs{flex-wrap:wrap;gap:10px;margin-bottom:4px;display:flex}.subtab{color:#1f2937;cursor:pointer;background:#e5e7eb;border:none;border-radius:10px;padding:10px 14px;font-weight:600;transition:all .2s}.subtab:hover{background:#d1d5db}.subtab.active{color:#fff;background:#1b4332}.app-shell-topbar{background:#f4f6f8;min-height:100vh}.topbar{z-index:1000;color:#fff;background:#1b4332;position:sticky;top:0;box-shadow:0 2px 8px #00000026}.topbar-header{border-bottom:1px solid #ffffff1f;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px 8px;display:flex}.topbar-brand h2{color:#fff;margin:0;font-size:1.35rem;font-weight:700;line-height:1.2}.topbar-user{flex-wrap:wrap;align-items:center;gap:8px;font-size:.92rem;font-weight:500;display:flex}.topbar-nav{flex-wrap:wrap;align-items:center;gap:6px;padding:8px 20px;display:flex}.topbar-nav a{color:#fff;border-radius:10px;padding:8px 12px;font-size:.92rem;font-weight:600;line-height:1.2;text-decoration:none;transition:all .2s;display:inline-block}.topbar-nav a:hover{background:#ffffff14}.topbar-nav a.active{background:#ffffff29;font-weight:700}.logout-button{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:8px;padding:6px 10px;font-size:.88rem;line-height:1.2}.logout-button:hover{background:#b91c1c}.main-content-topbar{padding:18px 20px}.page-header{margin-bottom:20px}.page-header h1{color:#1f2937;margin:0;font-size:1.6rem}.page-actions{margin-bottom:16px}.section-description{color:#6b7280;margin-bottom:24px}.section-header{margin-top:24px;margin-bottom:16px}.inline-form-field{align-items:flex-start;gap:16px;display:flex}.inline-form-field label{color:#374151;min-width:160px;padding-top:12px;font-weight:700}.field-control{flex:1;min-width:0}.field-control input,.field-control select,.field-control textarea{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:12px}.field-help{color:#6b7280;margin-top:8px;font-size:.9rem;line-height:1.45;display:block}@media (width<=768px){.inline-form-field{flex-direction:column;align-items:stretch;gap:8px}.inline-form-field label{min-width:auto;padding-top:0}}.search-input{background:#fff;border:1px solid #d1d5db;border-radius:8px;width:100%;max-width:420px;padding:12px}.form-group{flex-direction:column;gap:8px;display:flex}.form-group label{color:#374151;font-weight:700}.form-group input,.form-group select,.form-group textarea{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:12px}.form-group textarea{resize:vertical;min-height:90px}.form-group-full{grid-column:1/-1}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;width:100%;display:grid}.form-actions{grid-column:1/-1;justify-content:flex-start;margin-top:8px;display:flex}.form-actions button{color:#fff;cursor:pointer;background:#2e7d32;border:none;border-radius:8px;padding:12px 16px}.form-actions button:hover{background:#256628}.checkbox-label{align-items:center;gap:8px;font-weight:500;display:flex}.inline-date-field{justify-content:flex-start;align-items:center;gap:16px;display:flex}.inline-date-field label{color:#374151;min-width:130px;font-weight:700}.inline-date-field input,.inline-date-field select{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:260px;max-width:100%;padding:12px}.cadastro-form{flex-direction:column;gap:12px;display:flex}.cadastro-form input,.cadastro-form select{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;padding:12px}.finance-form{flex-direction:column;gap:16px;display:flex}.finance-form input{background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;padding:12px}.finance-grid{grid-template-columns:1fr;display:grid}.form-page-card{background:#fff;border-radius:16px;max-width:720px;padding:24px;box-shadow:0 4px 14px #00000014}.form-page-card h2{margin-bottom:8px}.table-card{background:#fff;border-radius:16px;padding:24px;overflow-x:auto;box-shadow:0 4px 14px #00000014}table{border-collapse:collapse;width:100%;min-width:unset}thead{background:#f3f4f6}th,td{text-align:left;border-bottom:1px solid #e5e7eb;padding:14px}.empty-table{text-align:center;color:#6b7280}.actions-cell{white-space:nowrap;text-align:center;min-width:150px}.actions-cell>button{margin-right:6px}.actions-cell button:last-child{margin-right:0}.actions-cell button{vertical-align:middle;white-space:nowrap;margin-right:6px;padding:6px 10px;font-size:12px;display:inline-block}th:last-child,td:last-child{text-align:center}.top-bar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.primary-button{color:#fff;cursor:pointer;background:#2e7d32;border:none;border-radius:8px;padding:12px 16px}.primary-button:hover{background:#256628}.secondary-button{color:#fff;cursor:pointer;background:#6b7280;border:none;border-radius:8px;padding:12px 16px}.secondary-button:hover{background:#4b5563}.edit-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:8px 12px}.edit-button:hover{background:#1d4ed8}.delete-button{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:8px;padding:8px 12px}.delete-button:hover{background:#b91c1c}.danger-button{color:#fff;cursor:pointer;background-color:#dc2626;border:none;border-radius:8px;padding:10px 14px}.danger-button:hover{background-color:#b91c1c}.pay-button{color:#fff;cursor:pointer;background:#2e7d32;border:none;border-radius:8px;padding:8px 12px}.pay-button:hover{background:#256628}.details-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;height:36px;padding:0 14px;font-size:13px;font-weight:600;transition:all .2s}.details-button:hover{background:#1d4ed8}.receipt-button{color:#fff;cursor:pointer;background:#1f7a3d;border:none;border-radius:8px;height:36px;padding:0 14px;font-size:13px;font-weight:600;transition:all .2s}.receipt-button:hover{background:#176530}.pdf-button{color:#fff;cursor:pointer;background:#7c3aed;border:none;border-radius:8px;height:36px;padding:0 14px;font-size:13px;font-weight:600;transition:all .2s}.pdf-button:hover{background:#6d28d9}.clear-filters-button{color:#fff;cursor:pointer;background:#1f7a3d;border:none;border-radius:10px;height:44px;padding:0 16px;font-size:14px;font-weight:600;transition:all .2s}.clear-filters-button:hover{background:#176530}.modal-overlay{z-index:999;background:#0f172a73;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:16px;width:100%;max-width:620px;max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 20px 50px #00000040}.modal-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.modal-close{cursor:pointer;color:#374151;background:0 0;border:none;font-size:28px}.modal-actions{justify-content:flex-end;gap:12px;display:flex}.status-badge{border-radius:999px;padding:6px 10px;font-size:14px;font-weight:700;display:inline-block}.status-active{color:#166534;background:#dcfce7}.status-inactive{color:#991b1b;background:#fee2e2}.status-paid{color:#1d4ed8;background:#dbeafe}.status-pending{color:#92400e;background:#fef3c7}.status-overdue{color:#991b1b;background:#fee2e2}.resident-badge{border-radius:999px;align-items:center;padding:6px 12px;font-size:13px;font-weight:600;display:inline-flex}.resident-owner{color:#0369a1;background:#e0f2fe}.resident-tenant{color:#7e22ce;background:#f3e8ff}.dashboard-summary-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px;display:grid}.history-summary-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:20px;display:grid}.summary-card{border-left:6px solid #0000;border-radius:14px;flex-direction:column;gap:8px;padding:18px;display:flex;box-shadow:0 6px 18px #0f172a14}.summary-card-neutral{background:#fff;border-left-color:#94a3b8}.summary-card-paid{background:#eff6ff;border-left-color:#3b82f6}.summary-card-pending{background:#fffbeb;border-left-color:#f59e0b}.summary-card-late{background:#fef2f2;border-left-color:#ef4444}.summary-card-received{background:#ecfdf5;border-left-color:#10b981}.summary-card-open{background:#fff7ed;border-left-color:#f97316}.summary-label{color:#6b7280;font-size:14px}.summary-value{color:#111827;font-size:24px;font-weight:700}.history-filters{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;display:flex}.filter-select{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:10px;outline:none;min-width:220px;height:44px;padding:0 12px;font-size:14px}.form-submit-row{justify-content:flex-end;margin-top:8px;display:flex}.app-shell{background-color:#f3f4f6;min-height:100vh}.main-header{color:#fff;background-color:#184d3b;box-shadow:0 2px 8px #00000014}.main-header-top{justify-content:space-between;align-items:center;gap:12px;padding:14px 24px 8px;display:flex}.header-actions{align-items:center;gap:12px;display:flex}.brand{color:#fff;margin:0;font-size:1.2rem;font-weight:700}.main-nav{flex-wrap:wrap;align-items:flex-end;gap:10px;padding:0 24px 14px;display:flex}.nav-item{color:#fff;border-radius:10px;align-items:center;gap:6px;padding:10px 14px;font-weight:600;text-decoration:none;transition:background-color .2s;display:inline-flex}.nav-item:hover{background-color:#ffffff1f}.nav-item.active{background-color:#ffffff2e}.nav-dropdown{align-items:center;margin-bottom:-10px;padding-bottom:10px;display:inline-flex;position:relative}.nav-dropdown-menu{z-index:1000;opacity:0;visibility:hidden;pointer-events:none;background:#fff;border-radius:12px;min-width:240px;padding:8px;transition:opacity .15s,transform .15s,visibility .15s;position:absolute;top:calc(100% - 2px);left:0;transform:translateY(4px);box-shadow:0 10px 30px #00000024}.nav-dropdown:hover .nav-dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}.dropdown-item{color:#1f2937;white-space:nowrap;border-radius:8px;padding:10px 12px;font-weight:500;text-decoration:none;transition:background-color .2s;display:block}.dropdown-item:hover{background-color:#f3f4f6}.dropdown-item.active{color:#184d3b;background-color:#e7f3ec;font-weight:600}.dropdown-arrow{font-size:.75rem}.main-content{padding:24px}.page-title{color:#0f172a;margin:0 0 18px;font-size:2rem;font-weight:700}.user-name{color:#fff;font-size:.95rem;font-weight:500}.assinatura-page{flex-direction:column;gap:20px;display:flex}.assinatura-resumo{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;box-shadow:0 4px 14px #0000000f}.assinatura-resumo p{color:#374151;margin-bottom:10px;line-height:1.5}.assinatura-resumo p:last-child{margin-bottom:0}.assinatura-planos{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;display:grid}.assinatura-plano-card{text-align:left;cursor:pointer;background:#fff;border:2px solid #e5e7eb;border-radius:16px;width:100%;padding:20px;transition:all .2s;box-shadow:0 4px 14px #0000000d}.assinatura-plano-card:hover{border-color:#2e7d32;transform:translateY(-2px);box-shadow:0 8px 20px #2e7d321f}.assinatura-plano-card.selecionado{background:#f0fdf4;border-color:#2e7d32;box-shadow:0 8px 20px #2e7d3224}.assinatura-plano-titulo{color:#111827;margin-bottom:10px;font-size:1rem;font-weight:700;display:block}.assinatura-plano-preco{color:#2e7d32;margin-bottom:6px;font-size:1.8rem;font-weight:700;display:block}.assinatura-plano-periodo{color:#6b7280;margin-bottom:14px;font-size:.95rem;display:block}.assinatura-plano-limite{color:#166534;background:#ecfdf5;border-radius:999px;padding:6px 10px;font-size:.85rem;font-weight:600;display:inline-block}.assinatura-status{border-radius:999px;align-items:center;padding:6px 12px;font-size:.85rem;font-weight:700;display:inline-flex}.assinatura-status.pendente{color:#92400e;background:#fef3c7}.assinatura-status.ativa{color:#166534;background:#dcfce7}.assinatura-status.inadimplente{color:#991b1b;background:#fee2e2}.assinatura-status.cancelada{color:#374151;background:#e5e7eb}.assinatura-acoes{flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:8px;display:flex}.assinatura-info-extra{color:#6b7280;font-size:.92rem;line-height:1.5}@media (width<=768px){.assinatura-planos{grid-template-columns:1fr}.assinatura-acoes{justify-content:stretch}.assinatura-acoes button{width:100%}}.tenant-switcher-inline{align-items:center;gap:10px;margin-right:10px;display:inline-flex}.tenant-switcher-inline-label{color:#dff3e8;white-space:nowrap;font-size:.85rem;font-weight:700}.tenant-switcher-inline-select{color:#0f172a;background:#fff;border:1px solid #ffffff38;border-radius:10px;outline:none;min-width:220px;height:40px;padding:0 12px;font-size:.92rem}.tenant-switcher-inline-select:focus{border-color:#bbf7d0;box-shadow:0 0 0 3px #bbf7d02e}.checkbox-field{color:#374151;align-items:center;gap:8px;font-weight:500;display:flex}.checkbox-field input[type=checkbox]{accent-color:#2e7d32;cursor:pointer;width:16px;height:16px}.multi-checkbox-group{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;flex-direction:column;gap:10px;padding:12px 14px;display:flex}.field-label{color:#374151;font-size:.95rem;font-weight:700}.button-disabled-soft,button.button-disabled-soft:disabled{cursor:not-allowed;opacity:.95;box-shadow:none;border:none;color:#f9fafb!important;background:#9ca3af!important}.button-disabled-soft:hover,button.button-disabled-soft:disabled:hover{background:#9ca3af!important}.modal-overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:999;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-content.premium-modal{background:#fff;border-radius:16px;flex-direction:column;width:min(1100px,96vw);max-height:92vh;display:flex;overflow:hidden;box-shadow:0 24px 60px #02061747}.premium-modal .modal-header{z-index:2;background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:18px 22px;display:flex;position:sticky;top:0}.premium-modal .modal-header h2{color:#0f172a;margin:0;font-size:1.45rem;font-weight:800}.premium-modal .modal-close{color:#475569;cursor:pointer;background:0 0;border:none;padding:0 6px;font-size:28px;line-height:1}.premium-modal .modal-body{flex:1;padding:16px 22px 8px;overflow:auto}.premium-modal .contract-viewer{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.premium-modal .loading-box,.premium-modal .empty-box{color:#64748b;background:#f8fafc;justify-content:center;align-items:center;height:62vh;min-height:380px;font-weight:600;display:flex}.proposta-markdown{color:#1f2937;background:linear-gradient(#fff,#fcfcfd);min-height:380px;max-height:62vh;padding:22px 24px;font-size:1rem;line-height:1.75;overflow-y:auto}.proposta-markdown h1,.proposta-markdown h2,.proposta-markdown h3,.proposta-markdown h4{color:#0f172a;margin-top:1.1em;margin-bottom:.55em;line-height:1.3}.proposta-markdown h1{font-size:1.6rem;font-weight:800}.proposta-markdown h2{font-size:1.3rem;font-weight:750}.proposta-markdown h3{font-size:1.1rem;font-weight:700}.proposta-markdown p{margin:0 0 .9em}.proposta-markdown strong{color:#111827;font-weight:700}.proposta-markdown ul,.proposta-markdown ol{margin:.3em 0 1em 1.3em}.proposta-markdown blockquote{color:#334155;background:#f8fafc;border-left:4px solid #cbd5e1;border-radius:8px;margin:1em 0;padding:.75em 1em}.proposta-markdown hr{border:0;border-top:1px solid #e2e8f0;margin:1.2em 0}.proposta-markdown code{background:#f1f5f9;border-radius:6px;padding:1px 6px;font-size:.92em}.premium-modal .confirm-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;margin-top:12px;padding:12px 14px}.premium-modal .modal-actions.premium-footer{z-index:2;background:#fff;border-top:1px solid #e5e7eb;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex;position:sticky;bottom:0}@media (width<=768px){.modal-overlay{padding:10px}.modal-content.premium-modal{border-radius:12px;width:100%;max-height:96vh}.premium-modal .modal-header,.premium-modal .modal-body,.premium-modal .modal-actions.premium-footer{padding-left:14px;padding-right:14px}.proposta-markdown{max-height:56vh;padding:14px}}.success-logout-modal{text-align:center;border-radius:16px;max-width:520px}.success-icon-wrap{justify-content:center;margin-top:4px;margin-bottom:8px;display:flex}.success-icon{color:#16a34a;width:72px;height:72px}.success-logout-modal .modal-header{border-bottom:0;margin-bottom:0;padding-bottom:0}.success-logout-modal .modal-header h2{color:#0f172a;margin:0}.success-logout-modal .modal-body{padding-top:8px;padding-bottom:8px;line-height:1.6}.table-card table th,.table-card table td{vertical-align:middle}.qr-cell{min-width:110px}.qr-wrapper{flex-direction:column;align-items:center;gap:6px;display:flex}.qr-thumb-link{background:#fff;border:1px solid #e5e7eb;border-radius:8px;transition:transform .15s,box-shadow .15s;display:inline-flex;overflow:hidden}.qr-thumb-link:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001f}.qr-thumb{object-fit:cover;width:72px;height:72px;display:block}.qr-download-btn{color:#fff;cursor:pointer;background:#374151;border:none;border-radius:6px;padding:7px 10px;font-size:12px;line-height:1;text-decoration:none}.qr-download-btn:hover{background:#1f2937}.qr-empty{color:#6b7280;font-size:12px}@media (width<=900px){.qr-cell{min-width:92px}.qr-thumb{width:58px;height:58px}.qr-download-btn{padding:6px 8px;font-size:11px}}.status-filter-select{color:#0f172a;cursor:pointer;appearance:none;background-color:#fff;background-image:linear-gradient(45deg,#0000 50%,#475569 50%),linear-gradient(135deg,#475569 50%,#0000 50%);background-position:calc(100% - 18px) 16px,calc(100% - 12px) 16px;background-repeat:no-repeat;background-size:6px 6px,6px 6px;border:1px solid #d1d5db;border-radius:10px;outline:none;min-width:260px;height:40px;padding:0 38px 0 12px;font-size:14px;font-weight:600}.status-filter-select:focus{border-color:#2e7d32;box-shadow:0 0 0 3px #2e7d3226}.table-card table th:nth-child(6),.table-card table td:nth-child(6),.table-card table th:nth-child(7),.table-card table td:nth-child(7){text-align:center;vertical-align:middle}.qr-col .qr-download-btn{justify-content:center;align-items:center;min-width:96px;display:inline-flex}.status-col{white-space:nowrap;font-weight:600}.actions-cell{text-align:center;vertical-align:middle}.empty-action{color:#94a3b8;font-weight:600}
