:root{--ink:#18211d;--muted:#7b8580;--line:#e7ebe8;--paper:#fff;--canvas:#f7f8f6;--forest:#294c3a;--forest-2:#37654d;--lime:#c8dd8b;--amber:#c17a32;--red:#b64d44;--green:#367251;--shadow:0 18px 50px rgba(20,35,28,.12);font-family:'DM Sans',Segoe UI,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--canvas);font-size:14px}.app-shell{min-height:100vh;display:flex}.sidebar{width:248px;flex:none;background:#171c1a;color:#eef3ef;padding:24px 15px 18px;display:flex;flex-direction:column;min-height:100vh}.brand{height:46px;display:flex;align-items:center;gap:11px;padding:0 12px;color:inherit;text-decoration:none;margin:0 0 33px}.brand-mark{width:34px;height:34px;background:var(--lime);border-radius:9px;display:grid;place-items:center}.brand-mark svg{width:24px;height:24px;fill:none;stroke:#20382b;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.brand strong,.brand small{display:block;letter-spacing:.12em}.brand strong{font:800 15px Manrope,sans-serif}.brand small{font-size:8px;color:#9ca9a1;margin-top:2px}.side-caption,.nav-caption{font-size:9px;letter-spacing:.14em;color:#78847c;font-weight:700;padding:0 13px}.nav-list{display:flex;flex-direction:column;gap:3px}.nav-caption{padding-top:21px;padding-bottom:7px}.nav-item{border:0;background:transparent;color:#aeb8b1;text-align:left;display:flex;align-items:center;gap:12px;padding:10px 13px;border-radius:7px;font:500 13px 'DM Sans',sans-serif;cursor:pointer;transition:background .16s,color .16s,transform .16s}.nav-item:hover{background:#252d29;color:white;transform:translateX(2px)}.nav-item.active{background:#2b3b31;color:#e5f0dd;box-shadow:inset 2px 0 var(--lime)}.nav-icon{width:17px;text-align:center;font:600 17px Manrope,sans-serif;color:#87958c}.nav-item.active .nav-icon{color:var(--lime)}.sidebar-bottom{margin-top:auto;padding:15px 10px 0;border-top:1px solid #2c3430}.local-status{display:flex;align-items:center;gap:9px}.status-dot{width:7px;height:7px;background:#8dc28e;border-radius:50%;box-shadow:0 0 0 3px #8dc28e20}.local-status b,.local-status small{display:block}.local-status b{font-size:11px;font-weight:600;color:#dbe3dd}.local-status small{font-size:10px;color:#8e9a92;margin-top:2px}.side-version{font-size:8px;letter-spacing:.14em;color:#647168;margin:20px 0 0 16px}.main-area{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:66px;flex:none;background:var(--paper);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{display:flex;align-items:center;gap:9px;font-size:12px;color:#7d8781}.breadcrumb b{color:#2b3730;font-weight:600}.crumb-sep{color:#c1c9c3}.topbar-right{display:flex;align-items:center;gap:15px}.today-label{font-size:11px;color:#8b938e}.avatar{width:30px;height:30px;border-radius:50%;background:#e5ebdf;color:#34513c;display:grid;place-items:center;font-size:10px;font-weight:700}.mobile-menu{display:none;border:0;background:transparent;font-size:18px;color:var(--ink)}.workspace{width:min(100%,1440px);margin:0 auto;padding:34px 40px 50px;flex:1;animation:arrive .28s ease both}.footer{height:40px;padding:0 40px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);color:#a0a8a2;font-size:9px;letter-spacing:.055em}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:9px;color:var(--forest-2);font-weight:700;letter-spacing:.13em;text-transform:uppercase;margin-bottom:7px}.page-heading h1{font:700 26px Manrope,sans-serif;letter-spacing:-.035em;margin:0;color:#1b2821}.page-heading p{color:#818b85;margin:7px 0 0;font-size:12px}.heading-actions{display:flex;gap:9px}.button{border:1px solid transparent;border-radius:6px;padding:10px 14px;font:600 11px 'DM Sans',sans-serif;cursor:pointer;transition:all .15s;white-space:nowrap}.button:hover{transform:translateY(-1px);filter:brightness(.97)}.button-primary{background:var(--forest);color:white}.button-primary:hover{background:var(--forest-2)}.button-quiet{border-color:#dce2dd;background:#fff;color:#47544b}.button-danger{background:#fff5f4;border-color:#f0d9d6;color:#a3443b}.button.small{padding:7px 9px;font-size:10px}.stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;margin-bottom:31px}.stat{padding:21px 24px 22px 0;position:relative}.stat+.stat{padding-left:25px;border-left:1px solid var(--line)}.stat-label{font-size:10px;color:#77827b;letter-spacing:.02em}.stat-value{font:700 24px Manrope,sans-serif;letter-spacing:-.04em;margin:7px 0 4px;color:#1e2b24}.stat-note{font-size:10px;color:#a2aaa4}.stat-mark{position:absolute;right:21px;top:22px;color:#a6b89f;font-size:13px}.content-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:34px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.section-head h2{font:700 14px Manrope,sans-serif;margin:0;letter-spacing:-.02em}.section-head span{color:#909993;font-size:10px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:7px}.data-table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}.data-table th{font-size:9px;color:#8d9790;text-transform:uppercase;letter-spacing:.08em;font-weight:600;background:#fafbfa;padding:12px 14px;border-bottom:1px solid var(--line)}.data-table td{padding:13px 14px;border-bottom:1px solid #edf0ed;font-size:11px;color:#445149}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfcfa}.primary-cell{color:#25372c!important;font-weight:600}.sub-cell{display:block;color:#9ba49e;font-size:10px;margin-top:3px}.empty-row{text-align:center!important;padding:32px 15px!important;color:#9aa39d!important}.status{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:600;background:#f1f3f1;color:#738078}.status::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status.pendente,.status.em-aberto{background:#fbf2e5;color:#a46c28}.status.pago,.status.emitida,.status.concluido,.status.conclu-do{background:#ebf5ee;color:#4b805c}.status.cancelado,.status.vencido{background:#fbefed;color:#b2564c}.status.em-andamento,.status.aprovado{background:#edf2f6;color:#5d7890}.panel{border-top:1px solid var(--line);padding-top:17px}.activity-list{display:flex;flex-direction:column}.activity{display:grid;grid-template-columns:10px 1fr auto;align-items:start;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.activity:last-child{border-bottom:0}.activity-dot{width:7px;height:7px;border-radius:50%;background:#9aba88;margin-top:4px}.activity b{display:block;font-size:11px;font-weight:600;color:#35443a}.activity small{font-size:10px;color:#929c95;display:block;margin-top:4px}.activity strong{font-size:10px;color:#405247;font-weight:600}.callout{background:#eff3e8;border-radius:7px;padding:15px 17px;margin-top:18px;display:flex;gap:11px;align-items:flex-start}.callout-icon{font-size:16px;color:var(--forest-2)}.callout b{display:block;font-size:10px;color:#39533e}.callout p{font-size:10px;line-height:1.5;color:#748274;margin:5px 0 0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.search-box{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e1e6e2;border-radius:6px;padding:0 11px;width:min(390px,100%);height:36px}.search-box span{color:#a1aaa4;font-size:16px}.search-box input{border:0;outline:0;background:transparent;width:100%;font:11px 'DM Sans',sans-serif;color:#344138}.toolbar-meta{font-size:10px;color:#929b95}.toolbar-actions{display:flex;gap:8px}.filter-row{display:flex;align-items:center;gap:7px;margin-bottom:17px}.filter-chip{border:1px solid #e0e6e1;border-radius:20px;background:#fff;color:#69756d;padding:7px 12px;font:500 10px 'DM Sans',sans-serif;cursor:pointer}.filter-chip.active{color:#34553e;background:#edf3e9;border-color:#d6e4ca}.table-actions{display:flex;gap:5px}.icon-btn{border:0;background:transparent;color:#8c9890;cursor:pointer;padding:4px 6px;font-size:11px;border-radius:4px}.icon-btn:hover{background:#edf2ed;color:#304b38}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);border-top:1px solid var(--line);margin:24px 0 27px}.report-sum{padding:17px 20px 18px 0}.report-sum+.report-sum{border-left:1px solid var(--line);padding-left:20px}.report-sum span{display:block;color:#818d85;font-size:10px}.report-sum b{display:block;font:700 20px Manrope,sans-serif;margin-top:8px}.report-sum small{color:#a2aaa4;font-size:9px}.notice{color:#8d958f;font-size:10px;margin-top:12px}.modal{border:0;padding:0;width:min(650px,calc(100% - 30px));max-height:min(90vh,860px);overflow:auto;border-radius:9px;box-shadow:var(--shadow);color:var(--ink)}.modal::backdrop{background:rgba(18,27,22,.42);backdrop-filter:blur(2px)}.modal-dismiss{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;height:0}.modal-dismiss button{border:0;background:transparent;font-size:24px;color:#9aa39d;margin:11px 13px 0;cursor:pointer}.modal-body{padding:28px 31px 27px}.modal-body h2{font:700 19px Manrope,sans-serif;margin:0}.modal-body>p{font-size:11px;color:#88928b;margin:6px 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 15px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:10px;color:#58655d;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe5e0;border-radius:5px;padding:10px 10px;font:11px 'DM Sans',sans-serif;color:#28372d;background:white;outline:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#87a08c;box-shadow:0 0 0 3px #e7eee8}.field textarea{resize:vertical;min-height:70px}.form-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.item-editor{border:1px solid #e5eae6;border-radius:6px;overflow:hidden}.item-editor-head,.item-line{display:grid;grid-template-columns:minmax(150px,1fr) 75px 100px 90px 26px;gap:7px;align-items:center;padding:8px}.item-editor-head{background:#f7f9f7;color:#87928a;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.item-line input{border:1px solid #e1e6e2;border-radius:4px;padding:8px 7px;font:10px 'DM Sans',sans-serif;min-width:0}.item-line .line-total{font-size:10px;text-align:right;color:#66736a}.item-add{margin-top:8px;border:0;background:transparent;color:var(--forest-2);font:600 10px 'DM Sans',sans-serif;cursor:pointer;padding:5px 0}.item-total{display:flex;justify-content:flex-end;gap:22px;padding:12px 8px;color:#657269;font-size:11px}.item-total b{font:700 14px Manrope,sans-serif;color:#273a2e}.toast{position:fixed;right:24px;bottom:24px;background:#1f2d24;color:#f4f7f4;padding:12px 16px;border-radius:6px;font-size:11px;box-shadow:var(--shadow);opacity:0;transform:translateY(7px);pointer-events:none;transition:.22s;z-index:20}.toast.show{opacity:1;transform:translateY(0)}.empty-state{padding:45px 20px;text-align:center;color:#9aa39c;font-size:11px}.empty-state strong{display:block;color:#56645a;font:600 13px Manrope,sans-serif;margin-bottom:5px}.action-link{color:var(--forest-2);font-size:10px;font-weight:600;text-decoration:none;cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes arrive{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:1050px){.sidebar{width:220px}.workspace{padding:28px 26px 42px}.topbar{padding:0 26px}.content-grid{grid-template-columns:1fr}.stat{padding-left:0!important}.stat+.stat{padding-left:17px!important}.stat-mark{right:12px}}
@media(max-width:720px){.sidebar{position:fixed;z-index:15;left:-260px;top:0;height:100vh;transition:left .2s;width:248px;box-shadow:var(--shadow)}.sidebar.open{left:0}.mobile-menu{display:block}.topbar{height:58px;padding:0 15px;justify-content:flex-start;gap:12px}.today-label{display:none}.topbar-right{margin-left:auto}.breadcrumb{font-size:10px}.workspace{padding:24px 16px 35px}.footer{padding:0 16px;font-size:8px}.footer span:last-child{display:none}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.heading-actions{width:100%}.heading-actions .button{flex:1}.page-heading h1{font-size:23px}.stat-row{grid-template-columns:1fr 1fr}.stat{padding:14px 10px 15px 0}.stat:nth-child(3){border-left:0;padding-left:0!important;border-top:1px solid var(--line)}.stat:nth-child(4){border-top:1px solid var(--line);padding-top:14px}.stat-value{font-size:21px}.stat-mark{top:15px}.toolbar{align-items:stretch;flex-direction:column}.search-box{width:100%}.toolbar-actions{justify-content:stretch}.toolbar-actions .button{flex:1}.toolbar-meta{display:none}.report-summary{grid-template-columns:1fr}.report-sum{padding:13px 0}.report-sum+.report-sum{border-left:0;border-top:1px solid var(--line);padding-left:0}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-body{padding:26px 20px 21px}.item-editor-head,.item-line{grid-template-columns:minmax(90px,1fr) 52px 75px 65px 20px;gap:4px;padding:6px}.item-line input{padding:7px 5px;font-size:9px}.status{font-size:8px}.data-table td{padding:11px 10px}.data-table th{padding:10px}}
@media print{body{background:#fff}.sidebar,.topbar,.footer,.heading-actions,.filter-row,.button,.table-actions{display:none!important}.app-shell,.main-area{display:block;min-height:0}.workspace{width:100%;max-width:none;margin:0;padding:0}.page-heading{margin:0 0 18px}.page-heading h1{font-size:20px}.data-table th,.data-table td{padding:7px 8px}.table-wrap{border:0;overflow:visible}.data-table{white-space:normal;font-size:9px}.report-summary{break-inside:avoid}.section-head{break-after:avoid}}
.sidebar{height:100vh;overflow:hidden}.nav-list{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#36443b transparent}.settings-content{display:grid;gap:18px;max-width:1080px}.settings-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px}.settings-panel .notice{line-height:1.6}.settings-panel .form-footer{margin-top:20px}.settings-panel .field small{font-size:9px;color:#909a93}.setting-count{font:700 22px Manrope,sans-serif;color:var(--forest);padding:5px 0}.marketing-recipients{padding:18px}.marketing-recipients .section-head{margin-bottom:14px}.marketing-recipients .button{display:inline-flex;text-decoration:none}.print-preview{display:none}
@media print{body:not(.print-test-mode)::before{content:var(--print-header);display:block;text-align:center;font-weight:700;margin-bottom:8mm}body:not(.print-test-mode)::after{content:var(--print-footer);display:block;text-align:center;margin-top:8mm}body.print-test-mode::before,body.print-test-mode::after{display:none!important}body.print-test-mode .workspace>*{display:none!important}body.print-test-mode .workspace>.print-preview{display:block!important}.print-preview{display:none}}
@media(max-width:720px){.settings-panel{padding:17px}.settings-panel .form-footer{flex-wrap:wrap}.settings-panel .form-footer .button{flex:1;text-align:center}}
.notice-banner{margin:12px 40px 0;padding:12px 18px;border:1px solid #dce5d8;border-radius:6px;color:#284032;line-height:1.5}.notice-banner[hidden]{display:none}.referral-banner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;margin:0 0 25px;padding:22px 25px;border-radius:9px;background:linear-gradient(105deg,#09332e,#0d5148);color:white;box-shadow:0 7px 18px #103c3320}.referral-banner .eyebrow{color:#f1c64e}.referral-banner h2{margin:0;font:800 22px Manrope,sans-serif;text-transform:uppercase;letter-spacing:.01em}.referral-banner p{margin:6px 0 0;color:#cce0dc;font-size:11px}.referral-banner-copy,.referral-banner-action{position:relative;z-index:1}.referral-banner-action{display:flex;align-items:center;gap:14px}.referral-pill{display:inline-flex;padding:6px 12px;border-radius:18px;background:#f5c84e;color:#17231d;font-size:9px;font-weight:800;letter-spacing:.04em}.button-bright{background:#08d5a1;color:#07352d;min-width:180px}.button-bright:hover{background:#2ee4b7}.referral-decoration{position:absolute;right:13px;top:25px;border:1px solid #ffffff44;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:#d7efea}.referral-banner-page{margin-bottom:0}.ai-profile-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.ai-profile-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:7px;padding:18px;background:#fff;text-align:left;cursor:pointer}.ai-profile-card:hover{border-color:#9ab6a1;background:#f5faf6}.ai-profile-card strong{font:800 16px Manrope,sans-serif}.ai-profile-card small{color:#78857d;line-height:1.5;min-height:32px}.ai-profile-card .status{margin-top:auto}.check-label{display:flex;align-items:center;gap:8px;color:#33443a;font-size:11px;font-weight:700}.check-label input{accent-color:var(--forest);width:15px;height:15px}.wa-robot{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#eff8f5;border-color:#cae6dc}.wa-robot h2,.settings-panel h2,.campaign-panel h2{font:700 16px Manrope,sans-serif;margin:0 0 7px}.wa-robot p,.campaign-panel>p,.settings-panel>p{color:#7c8981;font-size:11px;line-height:1.55;margin:0 0 12px}.wa-connect-box{margin-top:20px;border:1px solid #d5e6e2;border-radius:7px;padding:17px;background:#f3fbfc}.wa-connect-box p{font-size:11px;color:#708078}.wa-qr{min-height:100px;display:grid;place-items:center;border:1px dashed #cbd8d2;border-radius:5px;background:white;color:#87928a;padding:10px;text-align:center;font-size:11px}.wa-qr-image{max-width:190px;max-height:190px}.wa-qr pre{max-width:100%;overflow:auto;white-space:pre-wrap}.marketing-summary{display:flex;align-items:center;gap:15px;margin-bottom:14px;color:#78857d;font-size:10px}.campaign-section,.campaign-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;margin-bottom:12px}.channel-heading{margin-bottom:15px}.channel-heading h2{font:700 16px Manrope,sans-serif;margin:0 0 5px}.channel-heading p{margin:0;color:#7c8981;font-size:11px}.channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.channel-card{min-height:110px;padding:14px;border:1px solid #e0e7e2;border-radius:6px;background:#f9fbf9;display:flex;flex-direction:column;gap:8px}.channel-card.connected{background:#eff8f5;border-color:#c7e5d9}.channel-card span{font-weight:700;font-size:11px;color:#2e4338}.channel-card b{font-size:11px;color:#526157}.channel-card small{color:#89948d;font-size:9px;line-height:1.45}.campaign-tabs{display:flex;gap:4px;overflow-x:auto;padding:5px;margin:12px 0;background:#fff;border:1px solid var(--line);border-radius:7px}.campaign-tab{white-space:nowrap;border:0;border-radius:5px;background:transparent;padding:10px 12px;color:#35443b;font-size:10px;cursor:pointer}.campaign-tab.active{background:#092f42;color:white}.campaign-panel[hidden]{display:none}.campaign-compose{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.9fr);gap:18px}.campaign-fields,.campaign-audience{display:flex;flex-direction:column;gap:13px}.campaign-audience{padding:15px;border:1px solid #e1e8e3;border-radius:6px}.campaign-audience>b{font-size:10px;color:#294437}.audience-list{height:280px;overflow:auto;border:1px solid #e0e5e0;border-radius:5px}.audience-list label{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 9px;border-bottom:1px solid #e6ebe7;color:#3e5146;font-size:10px;cursor:pointer}.audience-list label:hover{background:#f1f7f3}.audience-list label[hidden]{display:none}.audience-list input{accent-color:#087d69}.campaign-preview{margin-top:16px;padding:18px;background:#eff8f5;border:1px solid #bcded2;border-radius:6px}.campaign-preview-message{padding:13px;border-radius:5px;background:white;white-space:pre-wrap;font-size:12px;line-height:1.5}.campaign-preview details{margin-top:12px;color:#40544a;font-size:10px}.template-list{display:grid;gap:8px;margin-top:15px}.template-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:6px}.template-card p{font-size:10px;color:#79857d;white-space:pre-wrap}.hours-grid{display:grid;gap:8px;margin:16px 0}.hours-row{display:grid;grid-template-columns:1fr 120px 28px 120px;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--line)}.hours-row b{font-size:11px}.hours-row input{border:1px solid #dfe5e0;border-radius:5px;padding:8px;font:11px 'DM Sans',sans-serif}.print-document{max-width:820px;background:#fff;border:1px solid var(--line);padding:22px}.settings-panel .section-head p{color:#87928b;font-size:10px;margin:5px 0}.settings-panel .form-footer{padding-top:15px}.campaign-panel .button{margin-top:12px}
@media(max-width:950px){.channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.campaign-compose{grid-template-columns:1fr}.ai-profile-cards{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.notice-banner{margin:8px 16px 0}.referral-banner{align-items:flex-start;flex-direction:column;padding:20px}.referral-banner h2{font-size:18px}.referral-banner-action{align-items:flex-start;flex-direction:column}.button-bright{min-width:0}.ai-profile-cards,.channel-grid{grid-template-columns:1fr}.wa-robot{align-items:flex-start;flex-direction:column}.hours-row{grid-template-columns:1fr 90px 16px 90px}.marketing-summary{align-items:flex-start;flex-direction:column;gap:8px}.campaign-tabs{max-width:100%}}
.system-bar{position:sticky;top:0;z-index:30;height:54px;display:flex;align-items:center;gap:7px;padding:0 18px;background:#17212b;color:#f4f7f8;box-shadow:0 2px 9px #07101830}.theme-toggle{height:36px;min-width:36px;border:1px solid #465462;border-radius:6px;background:#202d38;color:#fff;font-size:19px;cursor:pointer}.system-pill{height:34px;min-width:120px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #3e4b58;border-radius:18px;background:#202b36;color:#eef3f5;font-size:9px;font-weight:800;letter-spacing:.035em;white-space:nowrap}.system-pill i{width:8px;height:8px;border-radius:50%;background:#e3b448;box-shadow:0 0 0 3px #e3b44818}.system-pill[data-state="connected"],.system-pill[data-state="ready"]{border-color:#128d70;background:#12382f}.system-pill[data-state="connected"] i,.system-pill[data-state="ready"] i{background:#34d399;box-shadow:0 0 0 3px #34d39920}.system-pill[data-state="offline"] i{background:#df7569;box-shadow:0 0 0 3px #df756920}.system-clock{margin-left:auto;min-width:195px;color:#d8e0e5;font-variant-numeric:tabular-nums}.sidebar{height:calc(100vh - 54px);min-height:calc(100vh - 54px)}.app-shell{min-height:calc(100vh - 54px)}.dark-mode{--ink:#e8eee9;--muted:#a4b0a8;--line:#354139;--paper:#202a24;--canvas:#161e19;color:var(--ink)}body.dark-mode{background:var(--canvas);color:var(--ink)}.dark-mode .main-area,.dark-mode .workspace,.dark-mode .topbar,.dark-mode .footer{background:var(--canvas);border-color:var(--line);color:var(--ink)}.dark-mode .topbar{background:#1c251f}.dark-mode .breadcrumb,.dark-mode .breadcrumb b,.dark-mode .page-heading h1,.dark-mode .section-head h2,.dark-mode .field label,.dark-mode .settings-panel h2,.dark-mode .campaign-panel h2{color:#e4ece5}.dark-mode .page-heading p,.dark-mode .notice,.dark-mode .settings-panel>p{color:#a0ada4}.dark-mode .settings-panel,.dark-mode .campaign-section,.dark-mode .campaign-panel,.dark-mode .campaign-tabs,.dark-mode .table-wrap,.dark-mode .modal,.dark-mode .template-card,.dark-mode .ai-profile-card,.dark-mode .campaign-audience,.dark-mode .wa-connect-box{background:#202a24;border-color:var(--line);color:var(--ink)}.dark-mode .data-table th{background:#242f28;color:#a9b5ac;border-color:var(--line)}.dark-mode .data-table td{color:#d1d9d2;border-color:#303c34}.dark-mode .data-table tbody tr:hover,.dark-mode .audience-list label:hover{background:#29362e}.dark-mode .field input,.dark-mode .field select,.dark-mode .field textarea,.dark-mode .search-box,.dark-mode .item-line input,.dark-mode .hours-row input{background:#18211b;border-color:#455248;color:#e8eee9}.dark-mode .button-quiet,.dark-mode .campaign-tab:not(.active){background:#26322b;border-color:#455248;color:#d9e2db}.dark-mode .callout,.dark-mode .campaign-preview,.dark-mode .wa-robot,.dark-mode .channel-card{background:#23332a;border-color:#3d5949;color:#dce9e0}.dark-mode .channel-card small,.dark-mode .channel-card b,.dark-mode .channel-card span,.dark-mode .template-card p{color:#b4c4b8}.dark-mode .audience-list,.dark-mode .campaign-preview-message{background:#18211b;border-color:#455248;color:#e8eee9}.dark-mode .notice-banner{color:#23382b}.dark-mode .empty-state{color:#a0ada4}.dark-mode .stat-label,.dark-mode .stat-note,.dark-mode .activity b,.dark-mode .activity small{color:#aebbb1}.dark-mode .report-sum b{color:#e5eee7}
@media(max-width:720px){.system-bar{height:50px;padding:0 8px;gap:5px}.system-pill{min-width:0;height:30px;padding:0 8px;font-size:8px}.system-pill:nth-of-type(2){display:none}.system-clock{margin-left:auto;min-width:0;font-size:8px}.sidebar{top:50px;height:calc(100vh - 50px);min-height:calc(100vh - 50px)}.app-shell{min-height:calc(100vh - 50px)}}
/* Previsão no carrossel do painel */
.dashboard-carousel{position:relative;margin:0 0 25px;min-height:116px;border-radius:9px;overflow:hidden;box-shadow:0 7px 18px #103c3320}.dashboard-slide{display:none!important;min-height:116px}.dashboard-slide.is-active{display:flex!important}.dashboard-carousel .referral-banner{margin:0;padding:21px 48px 24px;min-height:116px;border-radius:9px;box-shadow:none}.banner-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:32px;height:32px;border:1px solid #ffffff48;border-radius:50%;background:#ffffff13;color:#eefaf7;font-size:22px;line-height:1;cursor:pointer}.banner-arrow:hover{background:#ffffff2a}.banner-previous{left:10px}.banner-next{right:10px}.banner-dots{position:absolute;z-index:3;bottom:7px;left:50%;display:flex;gap:5px;transform:translateX(-50%)}.banner-dot{width:8px;height:5px;padding:0;border:0;border-radius:5px;background:#ffffff66;cursor:pointer;transition:width .2s}.banner-dot.is-active{width:21px;background:#08d5a1}.weather-banner{align-items:center;justify-content:space-between;gap:20px;padding:16px 48px 22px;background:linear-gradient(105deg,#073345,#07594f);color:#f2fbff}.weather-loading{margin:auto;color:#d5e7ec;font-size:12px}.weather-current{min-width:250px}.weather-current .eyebrow{color:#68efd0}.weather-place{margin-top:4px;color:#d6e9ec;font-size:11px}.weather-reading{display:flex;align-items:center;gap:10px;margin-top:2px}.weather-icon{font-size:24px}.weather-reading strong{font:800 29px Manrope,sans-serif}.weather-condition{font-size:11px;font-weight:700}.weather-details{margin-top:4px;color:#c1dadd;font-size:9px}.weather-days{display:flex;align-items:stretch;justify-content:flex-end;gap:8px;flex:1}.weather-day{min-width:78px;padding:8px 10px;border:1px solid #ffffff2b;border-radius:6px;background:#ffffff0d;display:flex;flex-direction:column;align-items:center;gap:3px}.weather-day>b{font-size:9px;text-transform:capitalize}.weather-day>span{font-size:18px}.weather-day small{color:#d2e6e7;font-size:8px;text-align:center}.weather-config{position:absolute;right:43px;top:10px;border:0;background:transparent;color:#c2e0df;font-size:13px;cursor:pointer}.weather-message{display:flex;align-items:center;justify-content:space-between;width:100%;gap:15px;padding:19px 47px 22px}.weather-message .eyebrow{color:#68efd0}.weather-message h2{margin:4px 0;font:800 16px Manrope,sans-serif}.weather-message p{margin:0;color:#c1dadd;font-size:10px}.registration-page{display:grid;gap:18px;max-width:1080px}.registration-title{text-align:center}.registration-title h1{margin:0;font:800 24px Manrope,sans-serif;text-transform:uppercase;letter-spacing:.02em}.registration-title p{margin:8px 0 4px;color:#77847b;font-size:11px}.license-overview{display:grid;grid-template-columns:1fr 1fr;gap:14px}.license-card{padding:18px;border:1px solid #d5e3e5;border-radius:7px;background:#f4fafb}.license-card>.eyebrow{color:#7d9ec1}.license-card h2{margin:10px 0;font:800 22px Manrope,sans-serif;text-transform:uppercase;color:#087d69}.license-status-card h2{font-size:17px;color:#53655b}.license-remaining-label{display:block;margin-top:14px;font-size:11px}.license-days{display:block;margin:2px 0;color:#11a673;font:800 32px Manrope,sans-serif}.license-days-unit{font-size:9px;font-weight:800;color:#06765d}.license-status-card p{margin:13px 0 0;color:#76837b;font-size:10px}.license-facts{display:grid;grid-template-columns:1fr 1fr;gap:9px}.license-facts>div{min-height:54px;padding:10px 11px;border:1px solid #dce5e7;border-radius:6px;background:white}.license-facts b,.license-facts span{display:block}.license-facts b{margin-bottom:5px;color:#277a98;font-size:9px}.license-facts span{color:#30423a;font-size:10px;font-weight:600}.installation-field{margin:13px 0 16px}.installation-field>div{display:flex;gap:7px}.installation-field input{flex:1;font-variant-numeric:tabular-nums}.registration-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.cycle-suggestion{justify-content:center;padding:10px;border:1px solid var(--line);border-radius:5px}.cycle-suggestion b{font-size:9px;color:#277a98}.cycle-suggestion span{font-size:11px;font-weight:700}.about-hero{padding:22px 24px;border-radius:8px;background:#082f43;color:white}.about-hero .eyebrow{color:#69edcb}.about-hero h1{margin:4px 0;font:800 22px Manrope,sans-serif;text-transform:uppercase}.about-hero p{margin:0;color:#c9dddf;font-size:11px}.about-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.about-facts article{min-height:90px;padding:15px;border:1px solid var(--line);border-radius:7px;background:#fff}.about-facts span,.about-facts b{display:block}.about-facts span{color:#8b9890;font-size:9px;font-weight:800;letter-spacing:.1em}.about-facts b{margin-top:10px;color:#087d69;font:800 15px Manrope,sans-serif}.about-developer{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:18px;background:#f0faf7}.developer-mark{min-height:115px;display:grid;place-items:center;border:1px solid #cae3d8;border-radius:7px;background:#fff;color:#087d69;font:800 26px Manrope,sans-serif;letter-spacing:.15em}.about-developer h2{margin:6px 0;font:800 17px Manrope,sans-serif}.about-developer p{margin:0;color:#75837a;font-size:11px;line-height:1.6}.information-editor{border-color:#f2c28b;background:#fffdfa}.information-editor>h2{color:#93400c}.information-preview-wrap{background:#fff8ea;border-color:#f3d09d}.information-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:20px 17px;border:1px solid #f1d0a1;border-radius:7px;background:#fff;box-shadow:0 2px 5px #8c5a1c18;white-space:pre-wrap}.information-preview-copy{min-width:0}.information-preview-copy .eyebrow{color:inherit;font-size:.65em}.information-preview-copy p{margin:7px 0 0;font-weight:800;line-height:1.5}.information-preview img{max-width:210px;max-height:130px;object-fit:contain;border-radius:4px}.notice-banner{display:flex;align-items:center;justify-content:space-between;gap:14px}.notice-banner img{max-width:180px;max-height:84px;object-fit:contain;border-radius:4px}.dark-mode .license-card,.dark-mode .about-facts article,.dark-mode .information-preview{background:#202a24;border-color:var(--line);color:#e8eee9}.dark-mode .license-facts>div{background:#18211b;border-color:var(--line)}.dark-mode .license-facts span,.dark-mode .registration-title p,.dark-mode .about-developer p{color:#b7c4ba}.dark-mode .about-developer,.dark-mode .information-editor,.dark-mode .information-preview-wrap{background:#252c27;border-color:#59634c}.dark-mode .cycle-suggestion{border-color:var(--line)}
@media(max-width:900px){.weather-banner{gap:12px}.weather-current{min-width:205px}.weather-day{min-width:60px;padding:7px 5px}.about-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.dashboard-carousel{min-height:178px}.dashboard-slide{min-height:178px}.dashboard-carousel .referral-banner{min-height:178px;padding:18px 42px 25px}.dashboard-carousel .referral-banner-action{gap:8px}.weather-banner{align-items:stretch;flex-direction:column;gap:9px;padding:13px 42px 24px}.weather-current{min-width:0}.weather-reading strong{font-size:24px}.weather-days{justify-content:flex-start;gap:5px}.weather-day{min-width:0;flex:1;padding:6px 3px}.weather-config{right:37px;top:7px}.weather-message{align-items:flex-start;flex-direction:column;padding:20px 42px 26px}.license-overview{grid-template-columns:1fr}.registration-fields{grid-template-columns:1fr 1fr}.registration-title h1{font-size:20px}.about-facts{grid-template-columns:1fr 1fr}.about-developer{grid-template-columns:1fr}.developer-mark{min-height:75px}.information-preview{align-items:flex-start;flex-direction:column}.information-preview img{max-width:100%}.notice-banner{align-items:flex-start;flex-direction:column}}

/* Ações para conectar contas de marketing */
.channel-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.channel-card{min-height:154px}
.channel-card>.button{align-self:flex-start;margin-top:auto}
.marketing-account-panel{margin-top:16px;padding:18px;border:1px solid #c7e5d9;border-radius:7px;background:#f4faf7}
.marketing-account-panel .section-head{align-items:flex-start}
.marketing-account-panel .section-head p{max-width:620px;color:#718078;font-size:11px;line-height:1.5;margin:5px 0 0}
.marketing-account-panel .notice{margin:12px 0 0}
.marketing-account-panel[hidden]{display:none}
.dark-mode .marketing-account-panel{background:#202a24;border-color:#3d5949}
[hidden]{display:none!important}
.auth-gate{position:fixed;inset:54px 0 0;z-index:25;display:grid;place-items:center;overflow:auto;padding:28px 16px;background:linear-gradient(135deg,#e8f4f2,#f6f8f5 62%,#e6f0ed)}
.auth-card{width:min(100%,470px);padding:30px;border:1px solid #dce6df;border-radius:12px;background:#fff;box-shadow:0 18px 50px #0d31231a}
.auth-card-wide{width:min(100%,620px)}
.auth-logo{display:grid;place-items:center;width:45px;height:45px;margin-bottom:18px;border-radius:10px;background:#c2d983;color:#13251b;font:900 15px Manrope,sans-serif;letter-spacing:.08em}
.auth-card>.eyebrow{color:#078166;font-size:10px;font-weight:800;letter-spacing:.16em}
.auth-card h1{margin:7px 0 8px;color:#1d2922;font:800 24px Manrope,sans-serif}
.auth-card>p{margin:0 0 18px;color:#69786f;font-size:13px;line-height:1.55}
.auth-form{display:grid;gap:13px;margin-top:18px}
.auth-form .field{display:grid;gap:6px}
.auth-form .field label{color:#30443a;font-size:11px;font-weight:800}
.auth-form .field input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d9e2dc;border-radius:6px;background:#fff;color:#1b2a21;font:13px 'DM Sans',sans-serif}
.auth-form .field input:focus{outline:2px solid #86cdb8;outline-offset:1px}
.auth-error{min-height:18px;margin:0;color:#b42318;font-size:12px;line-height:1.45}
.auth-form>.button{min-height:45px;justify-content:center;font-size:13px}
.auth-logout{height:34px;padding:0 13px;border:1px solid #475662;border-radius:6px;background:#202b36;color:#f2f6f7;font-size:10px;font-weight:800;text-transform:uppercase;cursor:pointer}
.system-pill[hidden],.auth-logout[hidden]{display:none!important}
.totp-key{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px dashed #9bcabb;border-radius:7px;background:#f1faf6}
.totp-key span{overflow-wrap:anywhere;color:#074e42;font:800 17px ui-monospace,Consolas,monospace;letter-spacing:.12em}
.totp-link{display:inline-block;margin-top:10px;color:#087d69;font-size:12px;font-weight:700}
.recovery-box{margin-top:14px;padding:13px;border:1px solid #f1d990;border-radius:7px;background:#fffbeb;color:#5d4b1c}
.recovery-box>b,.recovery-box small{display:block}.recovery-box>div{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:10px 0}
.recovery-box code{padding:6px 4px;border-radius:4px;background:#fff;color:#3d3216;text-align:center;font-weight:800}
.recovery-box small{font-size:10px;line-height:1.5}
.payment-card{width:min(100%,530px)}
.payment-price{display:grid;gap:5px;margin:20px 0;padding:18px;border:1px solid #bde1d4;border-radius:8px;background:#f2faf7}
.payment-price span{color:#087d69;font-size:10px;font-weight:800;letter-spacing:.14em}
.payment-price b{color:#082f43;font:900 31px Manrope,sans-serif}
.payment-price small,.payment-footnote{color:#76847b;font-size:11px;line-height:1.5}
.payment-card .auth-form{margin-top:10px}
.billing-settings{border-color:#bdded3;background:#f6fbf9}
.billing-settings .section-head p{margin:5px 0 0;color:#74837a;font-size:11px}
.billing-settings .eyebrow{color:#078166;font-size:10px;font-weight:800;letter-spacing:.15em}
.billing-settings h2{margin:6px 0}
.billing-price{align-self:center;padding:13px 16px;border-radius:7px;background:white;color:#087d69;font:900 23px Manrope,sans-serif;white-space:nowrap;box-shadow:0 2px 8px #0b3d2e12}
.billing-settings .field small{display:block;color:#849188;font-size:9px;font-weight:500}
.dark-mode .auth-card{background:#202a24;border-color:#3a473e;color:#e7eee8}
.dark-mode .auth-card h1,.dark-mode .auth-form .field label{color:#e7eee8}
.dark-mode .auth-card>p,.dark-mode .payment-price small,.dark-mode .payment-footnote{color:#b5c2b8}
.dark-mode .auth-form .field input{background:#18211b;border-color:#455248;color:#e8eee9}
.dark-mode .totp-key,.dark-mode .billing-settings,.dark-mode .payment-price{background:#23332a;border-color:#3d5949}
.dark-mode .totp-key span,.dark-mode .payment-price b{color:#e6f1e9}
@media(max-width:720px){.auth-gate{inset:50px 0 0;padding:16px 12px}.auth-card{padding:23px 20px}.auth-card h1{font-size:21px}.totp-key{align-items:flex-start;flex-direction:column}.recovery-box>div{grid-template-columns:repeat(2,1fr)}.billing-settings .section-head{align-items:flex-start}.billing-price{font-size:19px;padding:10px}}

/* Conversa WhatsApp dentro dos pedidos */
.table-actions{flex-wrap:wrap}
.conversation-action{color:#087d69;font-weight:700}
.whatsapp-action{color:#087d69;font-weight:700;background:#e9f7f1}
.whatsapp-action:hover{background:#d7f0e5;color:#056554}
.conversation-modal{width:min(760px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 36px);padding:0;overflow:hidden;border:1px solid #cddbd4;border-radius:12px;background:#efebe3;color:#19362e;box-shadow:0 20px 70px #091c1850}
.conversation-modal>.modal-dismiss{display:none}
.conversation-app{height:min(720px,calc(100vh - 38px));min-height:420px;display:flex;flex-direction:column}
.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#075d52;color:#fff}
.conversation-head strong,.conversation-head small{display:block}.conversation-head strong{font:800 15px Manrope,sans-serif}.conversation-head small{margin-top:5px;color:#d3efea;font-size:10px}
.conversation-close{padding:9px 13px;border:0;border-radius:6px;background:#ffffff25;color:#fff;font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.conversation-sync{padding:7px 13px;background:#fff4d6;color:#795817;font-size:10px;line-height:1.4}
.conversation-messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:16px;background:#efebe3}
.conversation-bubble{max-width:min(82%,490px);padding:11px 13px;border:1px solid #a7dc9e;border-radius:12px;background:#d9f8d2;box-shadow:0 2px 4px #143b2814;line-height:1.48;white-space:normal;overflow-wrap:anywhere}
.conversation-bubble.incoming{align-self:flex-start;border-color:#d7ddd6;background:#fff}
.conversation-bubble.outgoing{align-self:flex-end}.conversation-message-text{font-size:12px}.conversation-bubble img{display:block;max-width:min(100%,340px);max-height:260px;margin:0 0 8px;border-radius:7px;object-fit:contain}.conversation-bubble>small{display:block;margin-top:7px;color:#64806b;font-size:8px;text-align:right;text-transform:uppercase}
.conversation-empty,.conversation-loading,.conversation-error{margin:auto;padding:24px;text-align:center;color:#75827a;font-size:12px}.conversation-error h2{color:#24382c;font:800 18px Manrope,sans-serif}.conversation-compose{padding:11px 13px 12px;border-top:1px solid #d1d4ce;background:#fff}
.conversation-quick{display:flex;gap:7px;overflow-x:auto;padding:1px 0 9px;scrollbar-width:thin}.quick-reply{flex:none;padding:8px 12px;border:1px solid #b6ddd1;border-radius:18px;background:#fff;color:#087d69;font-size:10px;text-transform:uppercase;cursor:pointer}.quick-reply:hover{background:#e9f7f2}
.conversation-compose form{display:grid;grid-template-columns:44px minmax(0,1fr) 88px;gap:8px;align-items:stretch}.conversation-attach{display:grid;place-items:center;border:1px solid #0c8a70;border-radius:10px;color:#078166;font-size:24px;cursor:pointer}.conversation-compose textarea{min-width:0;min-height:62px;resize:vertical;padding:11px 12px;border:1px solid #46544f;border-radius:10px;font:12px 'DM Sans',sans-serif}.conversation-send{border:0;border-radius:10px;background:#078166;color:white;font:700 12px 'DM Sans',sans-serif;cursor:pointer}.conversation-send:disabled{opacity:.55;cursor:wait}.conversation-file{padding:5px 0;color:#5e7469;font-size:10px}.conversation-help{display:block;margin-top:8px;color:#7e8983;font-size:9px;line-height:1.4}.dark-mode .conversation-modal{border-color:#3b4d42;background:#1c2721;color:#e4eee7}.dark-mode .conversation-messages{background:#202a24}.dark-mode .conversation-bubble.incoming{border-color:#405248;background:#27352d;color:#e4eee7}.dark-mode .conversation-compose{border-color:#3b483e;background:#1b251e}.dark-mode .conversation-compose textarea{border-color:#536158;background:#18211b;color:#e8eee9}.dark-mode .quick-reply{border-color:#3d6959;background:#202e27;color:#97e3cc}.dark-mode .conversation-help,.dark-mode .conversation-empty{color:#aab8ad}
@media(max-width:720px){.conversation-modal{width:calc(100vw - 14px);max-height:calc(100vh - 18px);border-radius:9px}.conversation-app{height:calc(100vh - 20px);min-height:350px}.conversation-messages{padding:11px}.conversation-bubble{max-width:90%}.conversation-compose{padding:9px}.conversation-compose form{grid-template-columns:39px minmax(0,1fr) 68px;gap:6px}.conversation-compose textarea{min-height:56px;padding:9px;font-size:11px}.conversation-send{font-size:10px}.conversation-head{padding:12px 13px}}

.company-logo-field{margin:4px 0 18px}.company-logo-editor{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.company-logo-preview{display:grid;width:132px;height:88px;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em}.company-logo-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}.company-logo-actions{display:grid;justify-items:start;gap:8px}.company-logo-actions input[type=file]{max-width:100%;color:var(--ink);font:inherit}.company-logo-actions small{color:var(--muted)}

.program-image-window{max-width:1180px;margin:10px auto;overflow:hidden;border:1px solid #cbd8ce;border-radius:9px;background:var(--paper);box-shadow:0 8px 24px #17352412}.program-image-window-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #dce5de;background:var(--forest);color:#fff;font-size:14px}.program-image-window-controls{display:flex;gap:7px}.program-image-window-controls button{display:grid;width:23px;height:23px;place-items:center;border:1px solid #ffffff55;border-radius:5px;background:transparent;color:#e4efe6;font-size:12px;cursor:pointer}.program-image-window-controls button:last-child{border-color:#e06d67;background:#9b2925;color:#fff}.program-image-window.expanded .program-image-preview{min-height:min(62vh,600px)}.program-image-window-content{padding:24px 20px 18px}.program-image-window-content h2{margin:0 0 18px;color:var(--ink);font:800 21px Manrope,sans-serif;text-align:center}.program-image-preview{display:grid;min-height:260px;place-items:center;overflow:hidden;padding:18px;border:1px dashed #a9bcae;border-radius:9px;background:var(--canvas);color:#78877d;text-align:center;font-size:12px}.program-image-preview img{display:block;max-width:100%;max-height:390px;object-fit:contain}.program-image-options{display:grid;width:min(100%,460px);gap:9px;margin:12px auto 0}.program-image-options .button{min-height:43px;justify-content:center;font-weight:700}.program-image-options .button:disabled{opacity:.48;cursor:not-allowed}.program-image-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;color:var(--muted)}.program-image-footer small{line-height:1.5}.program-image-footer .button{text-transform:uppercase}.dark-mode .program-image-window{border-color:#405348;background:#1d2922}.dark-mode .program-image-window-head{border-color:#405348}.dark-mode .program-image-window-content h2{color:#e7efe8}.dark-mode .program-image-preview{border-color:#506b58;background:#202c24;color:#b4c2b5}.totp-qr{display:grid;min-height:210px;place-items:center;margin:14px 0;padding:14px;border:1px solid #d4e0d4;border-radius:8px;background:#fff}.totp-qr img{display:block;width:min(100%,220px);height:auto;aspect-ratio:1;object-fit:contain}.totp-qr-missing{color:#526157;font-size:12px;line-height:1.5;text-align:center}
@media(max-width:620px){.program-image-window{margin:4px}.program-image-window-content{padding:18px 12px 12px}.program-image-preview{min-height:190px}.program-image-footer{align-items:flex-start;flex-direction:column}.program-image-footer .button{align-self:flex-end}}

/* Escala global de leitura e controles para todos os módulos. */
body{font-size:15px}
.sidebar{width:262px;padding:25px 16px 19px}
.brand{height:48px;gap:12px;margin-bottom:30px}
.brand-mark{width:36px;height:36px}
.brand strong{font-size:16px}
.brand small{font-size:9px}
.side-caption,.nav-caption{font-size:10px}
.nav-list{gap:4px}
.nav-item{min-height:44px;padding:11px 14px;gap:13px;font-size:14px}
.nav-icon{width:19px;font-size:18px}
.local-status b{font-size:12px}
.local-status small{font-size:11px}
.side-version{font-size:9px}
.system-bar{height:54px;padding:0 14px;gap:7px}
.system-pill{height:34px;padding:0 12px;font-size:9px}
.theme-toggle{width:36px;height:36px;font-size:18px}
.topbar{height:64px;padding:0 32px}
.breadcrumb{font-size:13px}
.workspace{padding:38px 42px 54px}
.footer{font-size:10px}
.page-heading{margin-bottom:30px}
.eyebrow{font-size:10px}
.page-heading h1{font-size:28px}
.page-heading p{font-size:13px}
.button{min-height:40px;padding:11px 16px;font-size:12px}
.button.small{min-height:34px;padding:8px 11px;font-size:11px}
.section-head{margin-bottom:15px}
.section-head h2{font-size:16px}
.section-head span{font-size:11px}
.settings-content{gap:20px}
.settings-panel{padding:20px}
.table-wrap{border-radius:8px}
.data-table th{padding:14px 16px;font-size:10px}
.data-table td{padding:15px 16px;font-size:12px}
.sub-cell{font-size:11px}
.status{padding:6px 9px;font-size:10px}
.search-box{height:40px;padding:0 12px}
.search-box input{font-size:12px}
.toolbar-meta,.notice{font-size:11px}
.filter-row{gap:8px}
.filter-chip{padding:8px 13px;font-size:11px}
.form-grid{gap:16px 18px}
.field{gap:7px}
.field label{font-size:11px}
.field input,.field select,.field textarea{min-height:42px;padding:11px 12px;font-size:12px}
.field textarea{min-height:82px}
.modal-body{padding:30px 32px}
.modal-body h2{font-size:21px}
.modal-body>p{font-size:12px}
.campaign-tabs{gap:5px;padding:6px}
.campaign-tab{padding:11px 14px;font-size:11px}
.marketing-summary{gap:17px;font-size:11px}
.channel-card{min-height:166px;padding:16px;gap:9px}
.channel-card>span,.channel-card>b{font-size:12px}
.channel-card>small{font-size:11px;line-height:1.5}
.channel-card>.button{min-height:35px}
.marketing-account-panel{padding:20px}
.marketing-account-panel .section-head p{font-size:12px}
.conversation-bubble{font-size:13px}
.conversation-message-text{font-size:13px}
.conversation-quick{gap:8px}
.quick-reply{padding:9px 13px;font-size:11px}
.conversation-compose textarea{min-height:68px;font-size:13px}
.conversation-send{font-size:13px}

@media(max-width:1050px){
  .sidebar{width:242px}
  .workspace{padding:32px 28px 46px}
}
@media(max-width:720px){
  .sidebar{width:min(270px,84vw)}
  .topbar{height:62px;padding:0 18px}
  .workspace{padding:28px 18px 42px}
  .footer{padding:0 18px}
  .page-heading h1{font-size:25px}
  .settings-panel{padding:17px}
  .data-table th,.data-table td{padding:12px}
  .campaign-tabs{gap:4px;padding:4px}
  .campaign-tab{padding:10px 12px}
  .channel-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
  .modal-body{padding:26px 20px 22px}
}
@media(max-width:420px){
  .workspace{padding:24px 14px 36px}
  .page-heading h1{font-size:23px}
  .settings-panel{padding:15px}
  .field input,.field select,.field textarea{font-size:13px}
  .button{padding:10px 13px}
}

/* Segunda ampliação: prioriza leitura rápida no painel e em todos os cadastros. */
#appShell{font-size:16px}
#appShell .sidebar{width:280px;padding:26px 17px 20px}
#appShell .brand strong{font-size:18px}
#appShell .brand small{font-size:10px}
#appShell .side-caption,#appShell .nav-caption{font-size:11px}
#appShell .nav-item{min-height:48px;padding:12px 15px;font-size:16px}
#appShell .nav-icon{font-size:20px}
#appShell .local-status b{font-size:13px}
#appShell .local-status small{font-size:12px}
#appShell .side-version{font-size:10px}
.system-bar{height:56px;gap:8px;padding:0 16px}
.system-pill{height:38px;padding:0 14px;font-size:11px}
#appShell .topbar{height:68px;padding:0 34px}
#appShell .breadcrumb{font-size:14px}
#appShell .workspace{padding:42px 46px 58px}
#appShell .footer{font-size:11px}
#appShell .page-heading{margin-bottom:32px}
#appShell .eyebrow{font-size:12px}
#appShell .page-heading h1{font-size:32px}
#appShell .page-heading p,#appShell p{font-size:14px}
#appShell .button{min-height:46px;padding:12px 18px;font-size:14px}
#appShell .button.small{min-height:38px;padding:9px 12px;font-size:12px}
#appShell .section-head{margin-bottom:17px}
#appShell .section-head h2{font-size:19px}
#appShell .section-head span{font-size:13px}
#appShell .settings-content{gap:22px}
#appShell .settings-panel{padding:24px}
#appShell .stat{padding-top:24px;padding-bottom:25px}
#appShell .stat-label,#appShell .stat-note{font-size:13px}
#appShell .stat-value{font-size:30px}
#appShell .stat-mark{font-size:16px}
#appShell .content-grid{gap:38px}
#appShell .data-table th{padding:16px 18px;font-size:12px}
#appShell .data-table td{padding:17px 18px;font-size:14px}
#appShell .sub-cell{font-size:12px}
#appShell .empty-row{padding:38px 18px!important;font-size:14px}
#appShell .empty-state{padding:30px 20px;font-size:14px}
#appShell .status{padding:7px 10px;font-size:12px}
#appShell .activity{gap:13px;padding:15px 0}
#appShell .activity b{font-size:14px}
#appShell .activity small,#appShell .activity strong{font-size:12px}
#appShell .callout{padding:18px 20px;gap:13px}
#appShell .callout-icon{font-size:19px}
#appShell .callout b{font-size:14px}
#appShell .callout p{font-size:13px;line-height:1.55}
#appShell .search-box{height:46px;padding:0 14px}
#appShell .search-box input{font-size:14px}
#appShell .toolbar-meta,#appShell .notice{font-size:13px}
#appShell .filter-chip{padding:10px 15px;font-size:13px}
#appShell .form-grid{gap:18px 20px}
#appShell .field{gap:8px}
#appShell .field label{font-size:14px}
#appShell .field input,#appShell .field select,#appShell .field textarea{min-height:48px;padding:12px 14px;font-size:14px}
#appShell .field textarea{min-height:96px}
#appShell .modal-body{padding:34px 36px}
#appShell .modal-body h2{font-size:23px}
#appShell .modal-body>p{font-size:14px}
#appShell .campaign-tabs{gap:6px;padding:7px}
#appShell .campaign-tab{padding:13px 16px;font-size:13px}
#appShell .marketing-summary{gap:18px;font-size:13px}
#appShell .channel-card{min-height:180px;padding:19px;gap:10px}
#appShell .channel-card>span,#appShell .channel-card>b{font-size:14px}
#appShell .channel-card>small{font-size:13px;line-height:1.5}
#appShell .marketing-account-panel{padding:22px}
#appShell .marketing-account-panel .section-head p{font-size:14px}
#appShell .conversation-message-text{font-size:14px}
#appShell .conversation-bubble>small{font-size:11px}
#appShell .quick-reply{padding:10px 14px;font-size:12px}
#appShell .conversation-compose textarea{min-height:74px;font-size:14px}
#appShell .conversation-send{font-size:14px}

@media(max-width:1050px){
  #appShell .sidebar{width:252px}
  #appShell .workspace{padding:34px 30px 48px}
}
@media(max-width:720px){
  #appShell .sidebar{width:min(286px,86vw)}
  #appShell .topbar{height:64px;padding:0 18px}
  #appShell .workspace{padding:30px 18px 44px}
  #appShell .page-heading h1{font-size:27px}
  #appShell .page-heading p,#appShell p{font-size:14px}
  #appShell .settings-panel{padding:19px}
  #appShell .data-table th,#appShell .data-table td{padding:13px 12px}
  #appShell .campaign-tab{padding:12px 13px}
  #appShell .channel-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
  #appShell .modal-body{padding:28px 21px 24px}
}
@media(max-width:420px){
  #appShell .workspace{padding:26px 14px 38px}
  #appShell .page-heading h1{font-size:25px}
  #appShell .settings-panel{padding:16px}
  #appShell .button{min-height:44px;padding:11px 14px}
  #appShell .field input,#appShell .field select,#appShell .field textarea{font-size:14px}
}

/* Escala ampliada e uso integral da área útil em telas grandes. */
#appShell .workspace{width:100%;max-width:none;margin:0;padding:40px clamp(24px,3vw,60px) 60px}
#appShell .settings-content,#appShell .registration-page{width:100%;max-width:none}
#appShell .settings-content{gap:28px}
#appShell .settings-panel{padding:30px}
#appShell .page-heading{margin-bottom:38px}
#appShell .eyebrow{font-size:13px}
#appShell .page-heading h1{font-size:36px}
#appShell .page-heading p,#appShell p{font-size:16px;line-height:1.55}
#appShell small{font-size:14px}
#appShell .button{min-height:52px;padding:14px 22px;font-size:16px}
#appShell .button.small{min-height:42px;padding:10px 15px;font-size:14px}
#appShell .section-head{margin-bottom:20px}
#appShell .section-head h2,#appShell .settings-panel>h2{font-size:22px}
#appShell .section-head span{font-size:15px}
#appShell .stat{padding-top:30px;padding-bottom:30px}
#appShell .stat-label,#appShell .stat-note{font-size:14px}
#appShell .stat-value{font-size:36px}
#appShell .stat-mark{font-size:18px}
#appShell .content-grid{grid-template-columns:minmax(0,1.8fr) minmax(320px,.8fr);gap:44px}
#appShell .data-table th{padding:18px 20px;font-size:14px}
#appShell .data-table td{padding:19px 20px;font-size:16px}
#appShell .sub-cell{font-size:14px}
#appShell .empty-row{padding:44px 20px!important;font-size:16px}
#appShell .empty-state{padding:36px 24px;font-size:16px}
#appShell .status{padding:8px 12px;font-size:14px}
#appShell .activity{gap:15px;padding:18px 0}
#appShell .activity b,#appShell .callout b{font-size:16px}
#appShell .activity small,#appShell .activity strong{font-size:14px}
#appShell .callout{padding:22px 24px;gap:15px}
#appShell .callout-icon{font-size:22px}
#appShell .callout p{font-size:15px}
#appShell .search-box{height:52px;padding:0 16px}
#appShell .search-box input{font-size:16px}
#appShell .toolbar-meta,#appShell .notice{font-size:15px}
#appShell .filter-chip{padding:12px 17px;font-size:15px}
#appShell .form-grid{gap:22px 24px}
#appShell .field{gap:10px}
#appShell .field label{font-size:15px}
#appShell .field input,#appShell .field select,#appShell .field textarea{min-height:54px;padding:14px 16px;font-size:16px}
#appShell .field textarea{min-height:120px}
#appShell .form-footer{padding-top:24px;margin-top:28px}
#appShell .report-summary{margin:32px 0 38px}
#appShell .report-sum{padding-top:23px;padding-bottom:24px}
#appShell .report-sum span{font-size:15px}
#appShell .report-sum b{font-size:30px}
#appShell .report-sum small{font-size:14px}
#appShell .referral-banner{padding:32px;min-height:150px}
#appShell .referral-banner h2{font-size:30px}
#appShell .referral-banner p{font-size:16px}
#appShell .referral-pill{padding:10px 16px;font-size:14px}
#appShell .campaign-tabs{gap:8px;padding:9px}
#appShell .campaign-tab{padding:15px 19px;font-size:15px}
#appShell .marketing-summary{gap:20px;font-size:15px}
#appShell .channel-card{min-height:205px;padding:24px;gap:13px}
#appShell .channel-card>span,#appShell .channel-card>b{font-size:16px}
#appShell .channel-card>small{font-size:15px;line-height:1.55}
#appShell .marketing-account-panel{padding:28px}
#appShell .marketing-account-panel .section-head p{font-size:15px}
#appShell .conversation-message-text{font-size:16px}
#appShell .conversation-bubble>small{font-size:13px}
#appShell .quick-reply{padding:12px 16px;font-size:14px}
#appShell .conversation-compose textarea{min-height:82px;font-size:16px}
#appShell .conversation-send{font-size:16px}

@media(max-width:1050px){
  #appShell .workspace{padding:34px 28px 48px}
  #appShell .content-grid{grid-template-columns:1fr;gap:30px}
}
@media(max-width:720px){
  #appShell .workspace{padding:30px 18px 44px}
  #appShell .page-heading{margin-bottom:28px}
  #appShell .page-heading h1{font-size:30px}
  #appShell .page-heading p,#appShell p{font-size:15px}
  #appShell .settings-panel{padding:22px}
  #appShell .data-table th,#appShell .data-table td{padding:14px 12px}
  #appShell .referral-banner{padding:24px;min-height:0}
  #appShell .referral-banner h2{font-size:25px}
  #appShell .channel-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
}
@media(max-width:420px){
  #appShell .workspace{padding:26px 14px 38px}
  #appShell .page-heading h1{font-size:27px}
  #appShell .settings-panel{padding:18px}
  #appShell .button{min-height:48px;padding:12px 15px;font-size:15px}
  #appShell .field input,#appShell .field select,#appShell .field textarea{font-size:15px}
}

/* A navegação ocupa o espaço acima do rodapé fixo de dados locais. */
#appShell .sidebar{width:300px;min-width:300px;padding:24px 15px 10px}
#appShell .side-caption,#appShell .nav-caption{color:#a5b3aa;font-size:12px;letter-spacing:.12em}
#appShell .nav-list{flex:1 1 auto;width:100%;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 3px 8px 0;scrollbar-width:thin;scrollbar-color:#46564c transparent}
#appShell .nav-caption{flex:0 0 auto;padding-top:18px;padding-bottom:8px}
#appShell .nav-item{flex:0 0 auto;width:100%;min-width:0;min-height:50px;padding:12px 14px;gap:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;color:#c5d0c8;font-size:16px;font-weight:600}
#appShell .nav-item:hover{background:#29372f;color:#fff}
#appShell .nav-item.active{background:#344e3d;color:#fff;box-shadow:inset 3px 0 var(--lime)}
#appShell .nav-icon{flex:0 0 22px;width:22px;font-size:20px}
#appShell .sidebar-bottom{flex:0 0 auto;margin-top:auto;padding:15px 10px 8px;position:relative;z-index:2;background:#171c1a;box-shadow:0 -10px 16px #171c1a}
#appShell .local-status b{font-size:14px;color:#f0f5f1}
#appShell .local-status small{font-size:12px}
#appShell .side-version{font-size:10px;margin-top:14px}
@media(max-width:1050px){#appShell .sidebar{width:280px;min-width:280px}}
@media(max-width:720px){
  #appShell .sidebar{width:min(300px,88vw);min-width:0;padding:20px 13px 8px}
  #appShell .nav-item{min-height:48px;font-size:16px}
}

/* Banner do painel inicial mais compacto. */
#appShell .dashboard-carousel{min-height:128px}
#appShell .dashboard-carousel .referral-banner{min-height:128px;padding:18px 42px 22px}
#appShell .dashboard-carousel .referral-banner h2{font-size:26px;line-height:1.15}
#appShell .dashboard-carousel .referral-banner p{font-size:14px;line-height:1.4;margin-top:4px}
#appShell .dashboard-carousel .referral-pill{padding:7px 12px;font-size:12px}
#appShell .dashboard-carousel .referral-banner-action .button{min-height:44px;padding:10px 16px;font-size:14px}
#appShell .dashboard-carousel .banner-arrow{width:28px;height:28px}
@media(max-width:720px){
  #appShell .dashboard-carousel{min-height:164px}
  #appShell .dashboard-carousel .referral-banner{min-height:164px;padding:16px 40px 22px}
  #appShell .dashboard-carousel .referral-banner h2{font-size:22px}
}

/* Paleta de marca baseada no site Proeed: cinza, azul e verde. */
:root{--ink:#333333;--muted:#666666;--line:#cccccc;--paper:#ffffff;--canvas:#f2f2f2;--forest:#3366cc;--forest-2:#003399;--lime:#8cd50b;--green:#006600;--shadow:0 12px 32px rgba(0,35,110,.12)}
body{background:var(--canvas);color:var(--ink)}
.system-bar{background:#003399;color:#fff}
.theme-toggle{border-color:#5679bd;background:#1647a2;color:#fff}
.system-pill{border-color:#5679bd;background:#17459a;color:#fff}
.system-clock{color:#fff}
#appShell .sidebar{background:#003399;color:#fff}
#appShell .brand-mark{background:#8cd50b}
#appShell .brand-mark svg{stroke:#006600}
#appShell .side-caption,#appShell .nav-caption{color:#dce7ff}
#appShell .nav-item{color:#edf2ff}
#appShell .nav-item:hover{background:#1747a2;color:#fff}
#appShell .nav-item.active{background:#3366cc;color:#fff;box-shadow:inset 4px 0 #8cd50b}
#appShell .nav-icon,#appShell .nav-item.active .nav-icon{color:#c9dcff}
#appShell .sidebar-bottom{background:#003399;border-color:#5679bd;box-shadow:0 -10px 16px #003399}
#appShell .local-status b{color:#fff}
#appShell .local-status small,#appShell .side-version{color:#dce7ff}
#appShell .status-dot{background:#8cd50b;box-shadow:0 0 0 3px #8cd50b30}
#appShell .main-area,#appShell .workspace,#appShell .topbar,#appShell .footer{background:var(--canvas);color:var(--ink)}
#appShell .topbar{background:#fff;border-color:#ccc}
#appShell .breadcrumb,#appShell .breadcrumb b{color:#333}
#appShell .page-heading h1,#appShell .section-head h2,#appShell .settings-panel h2{color:#003399}
#appShell .eyebrow{color:#006600}
#appShell .button-primary{background:#3366cc;color:#fff}
#appShell .button-primary:hover{background:#003399}
#appShell .button-bright{border-color:#006600;background:#006600;color:#fff}
#appShell .button-quiet{border-color:#999;background:#fff;color:#003399}
#appShell .settings-panel,#appShell .table-wrap,#appShell .campaign-section,#appShell .campaign-panel{border-color:#ccc;background:#fff;color:#333}
#appShell .field input,#appShell .field select,#appShell .field textarea,#appShell .search-box{border-color:#aaa;background:#fff;color:#333}
#appShell .field input:focus,#appShell .field select:focus,#appShell .field textarea:focus,#appShell .search-box:focus-within{border-color:#3366cc;box-shadow:0 0 0 3px #3366cc22}
#appShell .data-table th{background:#f2f2f2;color:#003399}
#appShell .data-table td{color:#333}
#appShell .status.pago,#appShell .status.emitida,#appShell .status.concluido,#appShell .status.conclu-do{background:#e8f5e8;color:#006600}
#appShell .referral-banner{background:linear-gradient(105deg,#003399,#3366cc)}
#appShell .weather-banner{background:linear-gradient(105deg,#003399,#006600)}
#appShell .dashboard-carousel{height:60px;min-height:60px;margin-bottom:24px;border-radius:6px;box-shadow:none}
#appShell .dashboard-carousel .dashboard-slide{height:60px;min-height:60px}
#appShell .dashboard-carousel .referral-banner{height:60px;min-height:60px;padding:0 42px;gap:14px;border-radius:6px;box-shadow:none}
#appShell .dashboard-carousel .referral-banner-copy{display:flex;flex:1;min-width:0;align-items:center;gap:14px}
#appShell .dashboard-carousel .referral-banner .eyebrow{flex:none;margin:0;color:#8cd50b;font-size:10px;white-space:nowrap}
#appShell .dashboard-carousel .referral-banner h2{font-size:18px;line-height:1.15;white-space:nowrap}
#appShell .dashboard-carousel .referral-banner p{display:none}
#appShell .dashboard-carousel .referral-banner-action{display:flex;flex:none;align-items:center;gap:9px}
#appShell .dashboard-carousel .referral-pill{padding:6px 10px;background:#8cd50b;color:#003399;font-size:11px}
#appShell .dashboard-carousel .referral-banner-action .button{min-height:36px;padding:7px 12px;font-size:13px}
#appShell .dashboard-carousel .weather-banner{height:60px;min-height:60px;padding:5px 42px 7px;gap:12px}
#appShell .dashboard-carousel .weather-current{display:flex;min-width:0;align-items:center;gap:9px}
#appShell .dashboard-carousel .weather-current .eyebrow{margin:0;color:#8cd50b;font-size:10px;white-space:nowrap}
#appShell .dashboard-carousel .weather-place{margin:0;color:#fff;font-size:12px;white-space:nowrap}
#appShell .dashboard-carousel .weather-reading{flex:none;margin:0;gap:5px}
#appShell .dashboard-carousel .weather-icon{font-size:20px}
#appShell .dashboard-carousel .weather-reading strong{font-size:22px}
#appShell .dashboard-carousel .weather-condition{font-size:11px;white-space:nowrap}
#appShell .dashboard-carousel .weather-details{display:none}
#appShell .dashboard-carousel .weather-days{gap:5px}
#appShell .dashboard-carousel .weather-day{min-width:58px;padding:3px 5px;gap:0}
#appShell .dashboard-carousel .weather-day>b{font-size:9px}
#appShell .dashboard-carousel .weather-day>span{font-size:14px}
#appShell .dashboard-carousel .weather-day small{font-size:8px}
#appShell .dashboard-carousel .weather-day small:last-child{display:none}
#appShell .dashboard-carousel .weather-config{right:8px;top:4px;color:#dce7ff;font-size:12px}
#appShell .dashboard-carousel .weather-message{min-height:60px;padding:5px 42px;gap:10px}
#appShell .dashboard-carousel .weather-message h2{font-size:15px}
#appShell .dashboard-carousel .weather-message p{display:none}
#appShell .dashboard-carousel .weather-message .button{min-height:34px;padding:6px 12px;font-size:12px}
#appShell .dashboard-carousel .banner-arrow{width:24px;height:24px;font-size:18px}
#appShell .dashboard-carousel .banner-previous{left:7px}
#appShell .dashboard-carousel .banner-next{right:7px}
#appShell .dashboard-carousel .banner-dots{bottom:3px}
#appShell .dashboard-carousel .banner-dot{height:4px}
body.dark-mode{--ink:#edf2fc;--muted:#b3bfd1;--line:#35445c;--paper:#1c293c;--canvas:#111b2b;color:var(--ink)}
body.dark-mode,#appShell.dark-mode{background:var(--canvas);color:var(--ink)}
.dark-mode .main-area,.dark-mode .workspace,.dark-mode .topbar,.dark-mode .footer{background:var(--canvas);border-color:var(--line);color:var(--ink)}
.dark-mode .topbar{background:#17243a}
.dark-mode .breadcrumb,.dark-mode .breadcrumb b,.dark-mode .page-heading h1,.dark-mode .section-head h2,.dark-mode .field label,.dark-mode .settings-panel h2{color:#edf2fc}
.dark-mode .settings-panel,.dark-mode .campaign-section,.dark-mode .campaign-panel,.dark-mode .campaign-tabs,.dark-mode .table-wrap,.dark-mode .modal,.dark-mode .template-card,.dark-mode .ai-profile-card,.dark-mode .campaign-audience,.dark-mode .wa-connect-box{background:#1c293c;border-color:var(--line);color:var(--ink)}
.dark-mode .field input,.dark-mode .field select,.dark-mode .field textarea,.dark-mode .search-box,.dark-mode .item-line input,.dark-mode .hours-row input{background:#142137;border-color:#455a79;color:#edf2fc}
.dark-mode .data-table th{background:#202f47;color:#c9dcff;border-color:var(--line)}
.dark-mode .data-table td{color:#e3eaf5;border-color:#34445b}
.dark-mode .button-quiet,.dark-mode .campaign-tab:not(.active){background:#202f47;border-color:#455a79;color:#edf2fc}
.dark-mode .callout,.dark-mode .campaign-preview,.dark-mode .wa-robot,.dark-mode .channel-card{background:#1b2c44;border-color:#3b5373;color:#edf2fc}
.dark-mode .channel-card small,.dark-mode .channel-card b,.dark-mode .channel-card span,.dark-mode .template-card p{color:#c3d1e5}
.dark-mode #appShell .sidebar{background:#071a45}
.dark-mode #appShell .nav-item.active{background:#3366cc}
.dark-mode #appShell .sidebar-bottom{background:#071a45;border-color:#5679bd;box-shadow:0 -10px 16px #071a45}
.dark-mode #appShell .topbar{background:#17243a}
.dark-mode #appShell .breadcrumb,.dark-mode #appShell .breadcrumb b{color:#edf2fc}
.dark-mode #appShell .page-heading h1,.dark-mode #appShell .section-head h2,.dark-mode #appShell .settings-panel h2{color:#c9dcff}
.dark-mode #appShell .eyebrow{color:#8cd50b}
.dark-mode #appShell .settings-panel,.dark-mode #appShell .campaign-section,.dark-mode #appShell .campaign-panel,.dark-mode #appShell .campaign-tabs,.dark-mode #appShell .table-wrap,.dark-mode #appShell .modal,.dark-mode #appShell .template-card,.dark-mode #appShell .ai-profile-card,.dark-mode #appShell .campaign-audience,.dark-mode #appShell .wa-connect-box{background:#1c293c;border-color:#35445c;color:#edf2fc}
.dark-mode #appShell .field input,.dark-mode #appShell .field select,.dark-mode #appShell .field textarea,.dark-mode #appShell .search-box{background:#142137;border-color:#455a79;color:#edf2fc}
.dark-mode #appShell .data-table th{background:#202f47;color:#c9dcff}
.dark-mode #appShell .data-table td{color:#e3eaf5}
.dark-mode #appShell .button-quiet{background:#202f47;border-color:#455a79;color:#edf2fc}
@media(max-width:720px){
  #appShell .dashboard-carousel{height:auto;min-height:92px}
  #appShell .dashboard-carousel .dashboard-slide,#appShell .dashboard-carousel .weather-banner{height:auto;min-height:92px}
  #appShell .dashboard-carousel .referral-banner{height:auto;min-height:92px;padding:10px 38px 15px;align-items:center;flex-direction:row}
  #appShell .dashboard-carousel .referral-banner-copy{align-items:flex-start;flex-direction:column;gap:2px}
  #appShell .dashboard-carousel .referral-banner h2{font-size:16px;white-space:normal}
  #appShell .dashboard-carousel .referral-banner-action{gap:5px;flex-direction:column;align-items:flex-end}
  #appShell .dashboard-carousel .referral-banner-action .button{min-height:32px;padding:5px 8px;font-size:11px}
  #appShell .dashboard-carousel .weather-banner{padding:6px 36px 12px;align-items:center;flex-direction:row}
  #appShell .dashboard-carousel .weather-current{flex-wrap:wrap;gap:4px 7px}
  #appShell .dashboard-carousel .weather-days{display:none}
  #appShell .dashboard-carousel .weather-condition{white-space:normal}
}

/* Barra superior: o estado da IA e a saída seguem o azul da marca. */
.system-bar #aiTopStatus{border-color:#5679bd;background:#17459a;color:#fff}
.system-bar #authLogout{border-color:#5679bd;background:#3366cc;color:#fff}
.system-bar #authLogout:hover{border-color:#8cd50b;background:#003399}
#appShell .nav-item[data-master-only][hidden],.nfe-file-input[hidden]{display:none!important}
.nav-group{display:flex;flex:0 0 auto;flex-direction:column;gap:3px;min-width:0}
.nav-group-items{display:flex;flex-direction:column;gap:3px;min-width:0}
#appShell .nav-group-items[hidden]{display:none!important}
#appShell .nav-group-toggle{appearance:none;display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
#appShell .nav-group-toggle::after{content:'⌄';font-size:14px;line-height:1;transition:transform .16s ease}
#appShell .nav-group-toggle[aria-expanded="false"]::after{transform:rotate(-90deg)}
#appShell .nav-group-toggle:hover{background:#1747a2;color:#fff}
#appShell .nav-group-toggle:focus-visible{outline:2px solid #8cd50b;outline-offset:1px}
#nfeImportModal{width:min(1080px,94vw);max-width:94vw}
.nfe-import-table-wrap{max-height:min(55vh,560px);overflow:auto}
.nfe-import-table-wrap .data-table{min-width:820px}
.nfe-import-table-wrap td small{color:var(--muted)}
.delete-confirmation{max-width:610px}
.delete-confirmation-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.delete-confirmation-head .eyebrow{margin-bottom:4px;color:#a3443b}
.delete-confirmation-head h2{margin:0}
.delete-confirmation-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:#fff0ee;color:#ae443b;font:800 23px Manrope,sans-serif}
.delete-confirmation>p{margin:0 0 16px;color:#627068;font-size:13px;line-height:1.5}
.delete-confirmation-warning{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border:1px solid #f0d9d6;border-radius:7px;background:#fff8f7;color:#8e473f;font-size:11px;line-height:1.45}
.delete-confirmation-warning b{font-size:12px}
.delete-confirmation .form-footer{margin-top:20px}
#appShell .delete-confirmation{max-width:690px;padding:42px 44px}
#appShell .delete-confirmation-head{gap:18px;margin-bottom:19px}
#appShell .delete-confirmation-head .eyebrow{font-size:12px;letter-spacing:.12em}
#appShell .delete-confirmation-head h2{font-size:28px;letter-spacing:-.025em}
#appShell .delete-confirmation-icon{width:50px;height:50px;font-size:27px}
#appShell .delete-confirmation>p{font-size:16px;line-height:1.55;margin-bottom:20px}
#appShell .delete-confirmation-warning{padding:17px 18px;gap:6px;font-size:14px;line-height:1.5}
#appShell .delete-confirmation-warning b{font-size:16px}
#appShell .delete-confirmation .form-footer{margin-top:25px;padding-top:23px}
#appShell .delete-confirmation .button{font-size:14px;padding:13px 18px}
#recordModal.delete-modal{width:min(640px,calc(100vw - 32px));overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 30px 100px rgba(28,38,32,.34)}
#recordModal.delete-modal .modal-dismiss{display:none}
#recordModal.delete-modal .delete-confirmation{max-width:none;padding:0}
#recordModal.delete-modal .delete-confirmation-head{align-items:flex-start;gap:20px;margin:0;padding:34px 38px 23px;border-bottom:1px solid #eee4e1;background:linear-gradient(135deg,#fff,#fff8f7)}
#recordModal.delete-modal .delete-confirmation-head .eyebrow{color:#b4493f;font-size:12px;letter-spacing:.14em}
#recordModal.delete-modal .delete-confirmation-head h2{font-size:30px;line-height:1.12;color:#252d28}
#recordModal.delete-modal .delete-confirmation-head p{margin:12px 0 0;color:#657168;font-size:16px;line-height:1.5}
#recordModal.delete-modal .delete-confirmation-icon{width:58px;height:58px;background:#fff0ee;color:#bf433a;font-size:31px;box-shadow:0 0 0 9px #fff7f5}
#recordModal.delete-modal .delete-confirmation-warning{margin:25px 38px 0;padding:17px 19px;border:1px solid #f1d2cd;border-radius:10px;background:#fff7f5;color:#91433b;font-size:14px}
#recordModal.delete-modal .delete-confirmation-warning b{font-size:14px;letter-spacing:.07em}
#recordModal.delete-modal .form-footer{margin:27px 38px 0;padding:22px 0 32px}
#recordModal.delete-modal .form-footer .button{min-height:46px;padding:12px 19px;font-size:14px}
#recordModal.delete-modal .button-danger{background:#c9483e;border-color:#c9483e;color:#fff}
#recordModal.delete-modal .button-danger:hover{background:#a93730;border-color:#a93730}
.item-catalog-help{display:block;margin:-3px 0 10px;color:#63766a;font-size:12px;line-height:1.45}
.catalog-product-select{width:100%;margin:0 0 10px;border:1px solid #9fbca5;border-radius:7px;background:#f8fff8;color:#264331;padding:11px 12px;font:700 13px 'DM Sans',sans-serif}
.item-line input[list]{font-weight:700;border-color:#adc7b0;background:#fbfffb}
#appShell .modal-dismiss{position:sticky;top:12px;z-index:20;display:flex;justify-content:flex-end;height:0;padding-right:17px;pointer-events:none}
#appShell .modal-dismiss button{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;border:1px solid #d65b52;border-radius:7px;background:#fff4f2;color:#a83d35;margin:0;padding:8px 11px;font:700 12px 'DM Sans',sans-serif;box-shadow:0 4px 12px rgba(125,40,34,.16);cursor:pointer}
#appShell .modal-dismiss button span{font:800 22px/12px Arial,sans-serif}
#appShell .modal-dismiss button:hover{background:#b9473e;border-color:#b9473e;color:#fff;transform:translateY(-1px)}
#appShell .modal-dismiss button:focus-visible{outline:3px solid #8cd50b;outline-offset:2px}
#appShell .field input:not([type="email"]):not([type="password"]),#appShell .field textarea,#appShell .field select,#appShell .search-box input,#appShell .data-table,#appShell .page-heading,#appShell .settings-panel{text-transform:uppercase}
#appShell .field input[type="email"],#appShell input[name="username"],#appShell input[name="login"]{text-transform:none}
#appShell .field input:not([type="email"]):not([type="password"]),#appShell .field textarea,#appShell .field select,#appShell .search-box input,#appShell .data-table,#appShell .page-heading,#appShell .settings-panel{ text-transform:uppercase }
#appShell .field input[type="email"],#appShell .auth-screen input,#appShell input[name="username"],#appShell input[name="login"]{ text-transform:none }
#appShell .data-table .email-value,#appShell .data-table .login-value{text-transform:lowercase}
.user-access-control{grid-column:1/-1;margin-top:4px;padding:20px;border:1px solid #d7dfd5;border-radius:11px;background:linear-gradient(135deg,#fbfdf9,#f6f4ed)}
.user-access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}
.user-access-head h3{margin:0;color:#173a2b;font:800 16px/1.2 Manrope,sans-serif;letter-spacing:.045em;text-transform:uppercase}
.user-access-head p{margin:6px 0 0;color:#617067;font-size:12px;line-height:1.5;text-transform:none}
.access-full-toggle{display:flex;align-items:center;gap:10px;min-width:188px;padding:10px 12px;border:1px solid #cbd9ca;border-radius:9px;background:#fff;cursor:pointer;text-transform:none}
.access-full-toggle input{width:17px;height:17px;margin:0;accent-color:#087b65}
.access-full-toggle span{display:flex;flex-direction:column;gap:2px;color:#1d4030;font-size:12px;line-height:1.25}
.access-full-toggle b{font-size:12px;letter-spacing:.05em;text-transform:uppercase}
.access-full-toggle small{color:#718076;font-size:10px;font-weight:500}
.access-full-toggle:has(input:disabled){opacity:.82;cursor:default}
.access-selection-note{min-height:21px;margin:0 0 11px;color:#287056;font-size:12px;font-weight:700;text-transform:none}
.access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.access-option{display:flex;align-items:center;gap:9px;min-height:40px;padding:9px 11px;border:1px solid #c9d5c9;border-radius:7px;background:#fff;color:#1d4d3d;font:700 12px/1.25 'DM Sans',sans-serif;cursor:pointer;text-transform:uppercase;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.access-option:hover{border-color:#138066;background:#f5fbf7}
.access-option:has(input:checked){border-color:#11826c;background:#edf9f3;box-shadow:inset 3px 0 0 #15836c}
.access-option input{width:15px;height:15px;flex:0 0 auto;margin:0;accent-color:#087b65}
.access-option.is-locked{opacity:.78;cursor:default}
.access-option:has(input:disabled){cursor:default}
.user-login-note{display:block;margin:13px 0 0;color:#65746a;font-size:11px;line-height:1.4;text-transform:none}
.access-summary{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#e9f4ed;color:#246548;font-size:11px;font-weight:800;white-space:nowrap;text-transform:uppercase}
.dark-mode .user-access-control{border-color:#405447;background:#202d24}.dark-mode .user-access-head h3{color:#e0efe4}.dark-mode .user-access-head p,.dark-mode .user-login-note{color:#aebfaf}.dark-mode .access-full-toggle,.dark-mode .access-option{border-color:#445d4d;background:#26362b;color:#d9ecde}.dark-mode .access-option:has(input:checked){background:#193c2f}.dark-mode .access-selection-note{color:#83d6a6}
@media(max-width:720px){#appShell .modal-dismiss{top:8px;padding-right:10px}#appShell .modal-dismiss button{padding:7px 9px}#appShell .modal-dismiss button b{font-size:11px}}
@media(max-width:720px){#nfeImportModal{width:calc(100% - 20px);max-width:calc(100% - 20px)}.nfe-import-table-wrap{max-height:48vh}}
@media(max-width:720px){#recordModal.delete-modal .delete-confirmation-head{padding:28px 24px 20px;gap:15px}#recordModal.delete-modal .delete-confirmation-head h2{font-size:25px}#recordModal.delete-modal .delete-confirmation-head p{font-size:15px}#recordModal.delete-modal .delete-confirmation-warning{margin:20px 24px 0}#recordModal.delete-modal .form-footer{margin:22px 24px 0;padding-bottom:25px;flex-direction:column-reverse}#recordModal.delete-modal .form-footer .button{width:100%}}
@media(max-width:760px){.user-access-head{flex-direction:column}.access-full-toggle{width:100%;min-width:0}.access-grid{grid-template-columns:1fr}}
.success-modal{position:fixed;inset:0;width:min(680px,calc(100vw - 40px));margin:auto;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 100px #132a2160;color:var(--ink)}
.success-modal::backdrop{background:#19352a80;backdrop-filter:blur(3px)}
.success-modal-body{padding:55px 64px 48px;text-align:center}
.success-modal-icon{display:grid;width:78px;height:78px;place-items:center;margin:0 auto 20px;border-radius:50%;background:#e7f6e8;color:#137a2e;font:800 43px/1 Manrope,sans-serif}
.success-modal-body .eyebrow{margin-bottom:10px;color:#187032;font-size:14px}
.success-modal-body h2{margin:0;color:#183a28;font:800 38px/1.15 Manrope,sans-serif}
.success-modal-body p{margin:18px auto 0;max-width:510px;color:#5b6a61;font-size:19px;line-height:1.55}
.success-modal-body .form-footer{justify-content:center;margin-top:32px;padding-top:26px}
.success-modal-body .button{min-width:190px;padding:15px 24px;font-size:16px}
.dark-mode .success-modal{background:#1e2a22;color:#e7efe8}.dark-mode .success-modal-body h2{color:#e7efe8}.dark-mode .success-modal-body p{color:#bbcabd}
.restore-confirmation-modal .success-modal-icon{background:#fff3df;color:#ae670e}
.restore-confirmation-modal .eyebrow{color:#a76109}
.restore-confirmation-warning{display:flex;flex-direction:column;gap:6px;max-width:510px;margin:22px auto 0;padding:15px 18px;border:1px solid #f0d5ad;border-radius:10px;background:#fff9ef;color:#83531b;font-size:14px;line-height:1.5;text-align:left}
.restore-confirmation-warning b{font-size:12px;letter-spacing:.08em}
.restore-confirmation-modal .form-footer{gap:12px}
.restore-confirmation-modal .button-quiet{min-width:150px}
.dark-mode .restore-confirmation-modal .success-modal-icon{background:#4b351c;color:#ffd28b}.dark-mode .restore-confirmation-modal .eyebrow{color:#ffd28b}.dark-mode .restore-confirmation-warning{border-color:#71542f;background:#302719;color:#f4d9a6}
.delete-backup-confirmation-modal .success-modal-icon{background:#fff0ee;color:#ba453b}
.delete-backup-confirmation-modal .eyebrow{color:#b4483f}
.delete-backup-confirmation-modal .restore-confirmation-warning{border-color:#f0d1cc;background:#fff7f5;color:#8d463e}
#deleteBackupModal .button-danger{border-color:#c9483e;background:#c9483e;color:#fff}
#deleteBackupModal .button-danger:hover{border-color:#a93730;background:#a93730}
.dark-mode .delete-backup-confirmation-modal .success-modal-icon{background:#4a2927;color:#ffb5ad}.dark-mode .delete-backup-confirmation-modal .eyebrow{color:#ffb5ad}.dark-mode .delete-backup-confirmation-modal .restore-confirmation-warning{border-color:#714642;background:#322120;color:#f2c0ba}
@media(max-width:720px){.success-modal-body{padding:36px 25px 30px}.success-modal-icon{width:64px;height:64px;margin-bottom:17px;font-size:35px}.success-modal-body h2{font-size:29px}.success-modal-body p{font-size:16px}.success-modal-body .form-footer{margin-top:24px;padding-top:20px;flex-direction:column-reverse}.success-modal-body .button{width:100%;min-width:0}.restore-confirmation-warning{margin-top:18px;padding:13px 15px;font-size:13px}}

/* Cores de andamento dos pedidos */
#appShell .status.pronto{background:#e6f7f3;color:#137967}
#appShell .status.entregue{background:#eaf6eb;color:#337a46}
#appShell .filter-chip.order-filter{font-weight:700;transition:background .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}
#appShell .filter-chip.order-filter:hover{transform:translateY(-1px)}
#appShell .filter-chip.order-filter-em-aberto{background:#fff4e2;border-color:#f0cf95;color:#a65b08}
#appShell .filter-chip.order-filter-em-andamento{background:#eaf3ff;border-color:#bed7f2;color:#2469aa}
#appShell .filter-chip.order-filter-pronto{background:#e5f7f3;border-color:#ade0d5;color:#117866}
#appShell .filter-chip.order-filter-entregue{background:#eaf6eb;border-color:#b9ddbf;color:#337a46}
#appShell .filter-chip.order-filter-cancelado{background:#fff0ef;border-color:#efc5c0;color:#b24c44}
#appShell .filter-chip.order-filter-em-aberto.active{background:#c9791c;border-color:#c9791c;color:#fff;box-shadow:0 4px 10px #c9791c33}
#appShell .filter-chip.order-filter-em-andamento.active{background:#2c78bf;border-color:#2c78bf;color:#fff;box-shadow:0 4px 10px #2c78bf33}
#appShell .filter-chip.order-filter-pronto.active{background:#188a76;border-color:#188a76;color:#fff;box-shadow:0 4px 10px #188a7633}
#appShell .filter-chip.order-filter-entregue.active{background:#3a824c;border-color:#3a824c;color:#fff;box-shadow:0 4px 10px #3a824c33}
#appShell .filter-chip.order-filter-cancelado.active{background:#bf554d;border-color:#bf554d;color:#fff;box-shadow:0 4px 10px #bf554d33}
#appShell .filter-chip.order-filter:focus-visible{outline:3px solid #15271c;outline-offset:2px}

#appShell .backup-actions{justify-content:flex-end;flex-wrap:wrap;min-width:230px}
#appShell .backup-actions .button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
#appShell .backup-actions .button-danger{border-color:#efc5c0;background:#fff0ef;color:#b24c44}
#appShell .backup-actions .button-danger:hover{background:#fde4e1}
#backupList .table-wrap{position:relative}
#backupList .data-table th:last-child,#backupList .data-table td:last-child{position:sticky;right:0;z-index:1;box-shadow:-12px 0 16px -16px #23382a;background:#fff}
#backupList .data-table th:last-child{z-index:2;background:#fafbfa}
#backupList .data-table tbody tr:hover td:last-child{background:#fbfcfa}
#appShell .backup-actions .button.small{padding:8px 10px;font-size:12px}
#appShell .settings-content,#appShell .settings-panel{min-width:0}
#backupList .table-wrap{max-width:100%}


/* Relatórios: período por calendário, cores e indicadores */
#appShell .report-filter-row{display:flex;align-items:center;gap:10px;margin:0 0 16px}
#appShell .report-chip{min-height:44px;padding:10px 16px;border-width:1px;border-style:solid;border-radius:999px;font-weight:800;letter-spacing:.01em;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease,color .16s ease}
#appShell .report-chip:hover{transform:translateY(-1px)}
#appShell .report-chip-payments{border-color:#aadbcf;background:#edf9f5;color:#087b65}
#appShell .report-chip-payments.active{border-color:#078166;background:#078166;color:#fff;box-shadow:0 7px 16px #07816633}
#appShell .report-chip-customers{border-color:#b9d1ec;background:#eff6ff;color:#2d6eac}
#appShell .report-chip-customers.active{border-color:#2b78bf;background:#2b78bf;color:#fff;box-shadow:0 7px 16px #2b78bf33}
#appShell .report-period-panel{max-width:850px;margin:0 0 22px;padding:18px 20px;border:1px solid #d9e5de;border-radius:13px;background:linear-gradient(115deg,#fbfdfb 0%,#f1f8f4 100%);box-shadow:0 7px 18px #19442a0b}
#appShell .report-period-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
#appShell .report-period-head>div{display:grid;gap:4px}
#appShell .report-period-head span{color:#668076;font-size:10px;font-weight:800;letter-spacing:.11em}
#appShell .report-period-head strong{color:#1d4736;font:800 16px/1.2 Manrope,sans-serif}
#appShell .report-chip-month{min-height:38px;padding:8px 13px;border-color:#ebcf98;background:#fff9ee;color:#9d610d}
#appShell .report-chip-month.active{border-color:#ca8424;background:#ca8424;color:#fff;box-shadow:0 6px 14px #ca842433}
#appShell .report-date-range{display:grid;grid-template-columns:minmax(180px,1fr) 22px minmax(180px,1fr) auto;gap:10px;align-items:end}
#appShell .report-date-field{display:grid;gap:7px;min-width:0}
#appShell .report-date-field>span{color:#557164;font-size:12px;font-weight:800}
#appShell .report-date-field input{width:100%;min-height:45px;border:1px solid #b9d6c8;border-radius:8px;background:#fff;color:#1d4030;padding:10px 12px;font:700 13px 'DM Sans',sans-serif;outline:none;transition:border-color .16s ease,box-shadow .16s ease}
#appShell .report-date-field:focus-within input{border-color:#087b65;box-shadow:0 0 0 4px #07816618}
#appShell .report-date-separator{padding-bottom:11px;color:#729583;font-size:19px;font-weight:800;text-align:center}
#appShell .report-apply-button{min-height:45px;padding-inline:18px;align-self:end;border-color:#086a57;background:#087b65;font-size:13px}
#appShell .report-period-selected{display:flex;align-items:center;gap:10px;margin:4px 0 12px;color:#6a7e72;font-size:12px}
#appShell .report-period-selected span{padding:5px 8px;border-radius:999px;background:#e9f6ef;color:#287354;font-size:10px;font-weight:800;letter-spacing:.07em}
#appShell .report-period-selected strong{color:#345b49;font-size:13px}
#appShell .report-summary.report-summary-finance{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:17px}
#appShell .report-summary.report-summary-finance .report-sum{min-width:0}
#appShell .report-sum-income b{color:#087b65}
#appShell .report-sum-expense b{color:#bd6532}
#appShell .report-sum-orders b{color:#2b78bf}
#appShell .report-sum-result b{color:#6549a4}
#appShell .report-sum-orders{background:linear-gradient(90deg,#f5f9ff 0%,transparent 78%)}
.dark-mode #appShell .report-period-panel{border-color:#3e5b4d;background:linear-gradient(115deg,#1d2d24 0%,#23362a 100%)}
.dark-mode #appShell .report-period-head strong{color:#e4f3e8}.dark-mode #appShell .report-period-head span{color:#9cb9a9}
.dark-mode #appShell .report-date-field>span{color:#bdd6c6}.dark-mode #appShell .report-date-field input{border-color:#527463;background:#18261e;color:#edf7f0;color-scheme:dark}
.dark-mode #appShell .report-period-selected strong{color:#d2e9da}.dark-mode #appShell .report-period-selected span{background:#274b39;color:#aee4c5}
.dark-mode #appShell .report-sum-orders{background:linear-gradient(90deg,#1e3246 0%,transparent 78%)}
@media(max-width:860px){#appShell .report-summary.report-summary-finance{grid-template-columns:repeat(2,minmax(0,1fr))}#appShell .report-summary.report-summary-finance .report-sum:nth-child(3){border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}#appShell .report-summary.report-summary-finance .report-sum:nth-child(4){border-top:1px solid var(--line);padding-top:20px}}
@media(max-width:620px){#appShell .report-filter-row{gap:8px;flex-wrap:wrap}#appShell .report-chip{min-height:40px;padding:8px 13px}#appShell .report-period-panel{padding:16px 14px}#appShell .report-period-head{align-items:flex-start;flex-direction:column;margin-bottom:13px}#appShell .report-date-range{grid-template-columns:1fr 1fr;gap:10px}#appShell .report-date-separator{display:none}#appShell .report-apply-button{grid-column:1/-1;width:100%}#appShell .report-period-selected{align-items:flex-start;flex-direction:column;gap:7px}#appShell .report-summary.report-summary-finance{grid-template-columns:1fr}#appShell .report-summary.report-summary-finance .report-sum:nth-child(n+2){border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:16px}}
@media print{#appShell .report-period-panel{display:none!important}#appShell .report-period-selected{margin-top:0}}


/* Relatórios: busca de pedidos por cliente */
#appShell .report-customer-search{max-width:850px;margin:0 0 22px;padding:16px 20px;border:1px solid #c6d8eb;border-radius:13px;background:linear-gradient(115deg,#f9fcff 0%,#eef6ff 100%);box-shadow:0 7px 18px #214e820b}
#appShell .report-customer-search>label{display:block;margin-bottom:10px;color:#225c95;font-size:13px;font-weight:800}
#appShell .report-customer-search>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center}
#appShell .report-customer-search>div>span{color:#427fb9;font-size:20px;font-weight:800}
#appShell .report-customer-search input{width:100%;min-width:0;min-height:45px;border:1px solid #b6d1eb;border-radius:8px;background:#fff;color:#1d4269;padding:10px 12px;font:700 13px 'DM Sans',sans-serif;outline:none;transition:border-color .16s ease,box-shadow .16s ease}
#appShell .report-customer-search input:focus{border-color:#2b78bf;box-shadow:0 0 0 4px #2b78bf18}
#appShell .report-customer-search .button{min-height:45px;padding-inline:18px;background:#2b78bf;border-color:#2b78bf;font-size:13px}
#appShell .report-customer-search small{display:block;margin-top:9px;color:#6d8aa6;font-size:11px}
#appShell .report-summary-customers .report-sum-customers b{color:#2b78bf}
.dark-mode #appShell .report-customer-search{border-color:#3c5d7b;background:linear-gradient(115deg,#1d2d3d 0%,#20364a 100%)}
.dark-mode #appShell .report-customer-search>label{color:#aed4fb}.dark-mode #appShell .report-customer-search>div>span{color:#8dbff0}.dark-mode #appShell .report-customer-search input{border-color:#476d92;background:#18293a;color:#edf5ff}.dark-mode #appShell .report-customer-search small{color:#acc8e3}
@media(max-width:620px){#appShell .report-customer-search{padding:15px 14px}#appShell .report-customer-search>div{grid-template-columns:auto minmax(0,1fr)}#appShell .report-customer-search .button{grid-column:1/-1;width:100%}}
@media print{#appShell .report-customer-search{display:none!important}}


/* Livro Caixa: filtro de data */
#appShell .cash-date-filter{max-width:920px;margin:0 0 20px;padding:18px 20px;border:1px solid #bcd8cd;border-radius:13px;background:linear-gradient(115deg,#fbfefc 0%,#eff8f3 100%);box-shadow:0 7px 18px #19442a0b}
#appShell .cash-date-filter-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
#appShell .cash-date-filter-head>div{display:grid;gap:4px}
#appShell .cash-date-filter-head span{color:#56806a;font-size:10px;font-weight:800;letter-spacing:.11em}
#appShell .cash-date-filter-head strong{color:#174d36;font:800 16px/1.2 Manrope,sans-serif}
#appShell .cash-date-fields{display:grid;grid-template-columns:minmax(180px,1fr) 22px minmax(180px,1fr) auto;gap:10px;align-items:end}
#appShell .cash-date-fields label{display:grid;gap:7px;min-width:0}
#appShell .cash-date-fields label>span{color:#416c55;font-size:12px;font-weight:800}
#appShell .cash-date-fields input{width:100%;min-height:45px;border:1px solid #a9cfc0;border-radius:8px;background:#fff;color:#1b4c35;padding:10px 12px;font:700 13px 'DM Sans',sans-serif;outline:none;transition:border-color .16s ease,box-shadow .16s ease}
#appShell .cash-date-fields label:focus-within input{border-color:#087b65;box-shadow:0 0 0 4px #07816618}
#appShell .cash-date-separator{padding-bottom:11px;color:#638f76;font-size:19px;font-weight:800;text-align:center}
#appShell .cash-date-fields .button{min-height:45px;padding-inline:18px;font-size:13px}
#appShell .cash-date-filter small{display:block;margin-top:10px;color:#5f7c6c;font-size:11px}
#appShell .status.entrada{background:#e9f7ed;color:#187238}
#appShell .status.saida{background:#fff0ef;color:#b94d43}
.dark-mode #appShell .cash-date-filter{border-color:#3d6452;background:linear-gradient(115deg,#1d3025 0%,#213b2d 100%)}
.dark-mode #appShell .cash-date-filter-head strong{color:#e0f5e6}.dark-mode #appShell .cash-date-filter-head span,.dark-mode #appShell .cash-date-fields label>span{color:#accab7}.dark-mode #appShell .cash-date-fields input{border-color:#4d7862;background:#17271e;color:#edf7f0;color-scheme:dark}.dark-mode #appShell .cash-date-filter small{color:#b2cfbd}
@media(max-width:720px){#appShell .cash-date-filter{padding:16px 14px}#appShell .cash-date-filter-head{align-items:flex-start;flex-direction:column}#appShell .cash-date-fields{grid-template-columns:1fr 1fr;gap:10px}#appShell .cash-date-separator{display:none}#appShell .cash-date-fields .button{grid-column:1/-1;width:100%}}
@media print{#appShell .cash-date-filter{display:none!important}}

/* Ações, pagamentos e fechamento de janelas */
.modal-dismiss{position:sticky;top:12px;z-index:30;display:flex;justify-content:flex-end;height:0;padding-right:17px;pointer-events:none}
.modal-dismiss button{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;border:1px solid #a8322b;border-radius:8px;background:#c9483e;color:#fff;margin:0;padding:9px 12px;font:800 12px 'DM Sans',sans-serif;letter-spacing:.01em;box-shadow:0 7px 18px rgba(146,44,37,.27);cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.modal-dismiss button span{font:800 22px/12px Arial,sans-serif}.modal-dismiss button:hover{background:#a93730;border-color:#922e28;box-shadow:0 9px 22px rgba(146,44,37,.34);transform:translateY(-1px)}
.modal-dismiss button:focus-visible,.close-action:focus-visible{outline:3px solid #8cd50b;outline-offset:2px}
.close-action{border:1px solid #ca5149!important;background:#fff0ee!important;color:#a53630!important;font-weight:800!important;box-shadow:0 3px 10px rgba(150,49,42,.12);transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.close-action:hover{border-color:#ab3c35!important;background:#c9483e!important;color:#fff!important;box-shadow:0 6px 15px rgba(146,44,37,.25);transform:translateY(-1px)}
.program-image-window-controls .close-action{min-width:31px;background:#c9483e!important;border-color:#a8322b!important;color:#fff!important}
#appShell .table-actions{gap:6px}#appShell .table-actions .icon-btn{display:inline-flex;align-items:center;justify-content:center;min-height:27px;border:1px solid transparent;border-radius:999px;padding:5px 9px;background:#f4f7f5;color:#476055;font:800 10px/1 'DM Sans',sans-serif;text-transform:none;white-space:nowrap;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
#appShell .table-actions .icon-btn:hover{box-shadow:0 5px 12px rgba(24,53,41,.14);filter:brightness(.97);transform:translateY(-1px)}
#appShell .table-actions .action-print{border-color:#b7d3ef;background:#edf6ff;color:#1765ae}#appShell .table-actions .action-whatsapp{border-color:#a9dec6;background:#e9f8f1;color:#08795d}#appShell .table-actions .action-email{border-color:#cdbdeb;background:#f5f0ff;color:#69489d}#appShell .table-actions .action-edit{border-color:#f0d39c;background:#fff8e9;color:#a16308}#appShell .table-actions .action-delete{border-color:#edbeb8;background:#fff0ef;color:#b23f37}#appShell .table-actions .action-conversation{border-color:#9dddcf;background:#e7f8f3;color:#057a66}#appShell .table-actions .action-history{border-color:#b9d3ef;background:#eef6ff;color:#2a68a5}#appShell .table-actions .action-open{border-color:#b4d9bf;background:#edf8ef;color:#2c7843}#appShell .table-actions .action-issue{border-color:#eac58f;background:#fff6e5;color:#a35d06}
#appShell .payment-options-link{align-self:flex-start;margin-top:7px;padding:0;border:0;background:transparent;color:#246da9;font:800 10px 'DM Sans',sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}#appShell .payment-options-link:hover{color:#075f98}
.payment-options-modal{width:min(780px,calc(100% - 30px))}.payment-options-body{padding-top:35px}.payment-options-section{display:grid;gap:12px;margin-top:19px;padding:17px;border:1px solid #d8e4dc;border-radius:11px;background:linear-gradient(135deg,#fcfefd,#f5faf7)}.payment-options-section h3{margin:0;color:#1f4f3c;font:800 15px Manrope,sans-serif}.payment-options-section p{margin:5px 0 0;color:#687a70;font-size:11px;line-height:1.45}.payment-option-list{display:grid;gap:8px}.payment-option-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.payment-option-row input{min-width:0;border:1px solid #c9dcd0;border-radius:7px;background:#fff;padding:9px 10px;color:#214a38;font:700 12px 'DM Sans',sans-serif}.pix-configuration{display:grid;gap:12px;margin-top:3px;padding:15px;border:1px solid #b9ddcc;border-radius:9px;background:#edf9f3}.pix-configuration h3{color:#087b65}.payment-settled-status{margin-top:3px}.payment-settled-status small{color:#597567;font-size:10px}
#appShell .item-editor .item-editor-head{font-size:10px}#appShell .item-editor .item-line input{min-height:42px;padding:9px 10px;font-size:13px;font-weight:700}#appShell .item-editor .item-line .line-total{font-size:12px;font-weight:800}#appShell .catalog-product-select{min-height:43px;font-size:14px}
#appShell .order-pix-panel{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:18px;align-items:center;margin-top:2px;padding:17px;border:1px solid #93cfb6;border-radius:11px;background:linear-gradient(135deg,#f6fffa,#eaf8f0)}#appShell .order-pix-copy{min-width:0}#appShell .order-pix-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#appShell .order-pix-head span{color:#087b65;font-size:10px;font-weight:900;letter-spacing:.1em}#appShell .order-pix-head strong{color:#174d36;font:800 18px Manrope,sans-serif}#appShell .order-pix-copy p{min-height:18px;margin:7px 0;color:#527565;font-size:11px;line-height:1.4}#appShell .order-pix-copy textarea{display:block;width:100%;min-height:61px;resize:vertical;border:1px solid #b6d9c5;border-radius:7px;background:#fff;color:#345445;padding:8px;font:10px/1.4 'DM Sans',sans-serif}#appShell .order-pix-copy .button{margin-top:8px}#appShell .order-pix-image{display:grid;place-items:center;min-height:140px;padding:8px;border:1px solid #b6d9c5;border-radius:9px;background:#fff}#appShell .order-pix-image img{width:128px;height:128px;object-fit:contain}#appShell .order-pix-image span{color:#6e897a;font-size:11px;font-weight:800;text-align:center}
.dark-mode .modal-dismiss button{border-color:#f08076;background:#d75d53}.dark-mode .close-action{border-color:#e6776e!important;background:#4e2826!important;color:#ffc3bd!important}.dark-mode #appShell .table-actions .icon-btn{box-shadow:none}.dark-mode #appShell .table-actions .action-print{background:#203a55;color:#b9dcff}.dark-mode #appShell .table-actions .action-whatsapp,.dark-mode #appShell .table-actions .action-conversation{background:#173d34;color:#a3ebcf}.dark-mode #appShell .table-actions .action-email{background:#35284d;color:#d7c8ff}.dark-mode #appShell .table-actions .action-edit,.dark-mode #appShell .table-actions .action-issue{background:#483719;color:#ffe0a8}.dark-mode #appShell .table-actions .action-delete{background:#492725;color:#ffc4bd}.dark-mode #appShell .table-actions .action-history{background:#21374f;color:#bddcff}.dark-mode #appShell .table-actions .action-open{background:#1e4028;color:#bcebc7}.dark-mode .payment-options-section{border-color:#425d4d;background:#1e3026}.dark-mode .payment-options-section h3{color:#caebd7}.dark-mode .payment-options-section p{color:#b2c6b9}.dark-mode .payment-option-row input,.dark-mode .pix-configuration{border-color:#476b58;background:#1b2d22;color:#e2f2e7}.dark-mode .pix-configuration{background:#1a382d}.dark-mode #appShell .order-pix-panel{border-color:#39725a;background:#193328}.dark-mode #appShell .order-pix-head strong{color:#d9f3e2}.dark-mode #appShell .order-pix-copy textarea,.dark-mode #appShell .order-pix-image{border-color:#477460;background:#16271d;color:#d9f0e1}
@media(max-width:720px){.modal-dismiss{top:9px;padding-right:10px}.modal-dismiss button{padding:8px 10px;font-size:11px}#appShell .table-actions .icon-btn{min-height:26px;padding:5px 8px;font-size:9px}#appShell .order-pix-panel{grid-template-columns:1fr}#appShell .order-pix-image{min-height:145px}.payment-option-row{grid-template-columns:1fr}.payment-option-row .button{justify-self:start}}

/* Diálogos ficam fora de #appShell, por isso estes estilos também são globais. */
.payment-options-link{align-self:flex-start;margin-top:7px;padding:0;border:0;background:transparent;color:#246da9;font:800 10px 'DM Sans',sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.payment-options-link:hover{color:#075f98}
.item-editor .item-editor-head{font-size:10px}.item-editor .item-line input{min-height:42px;padding:9px 10px;font-size:13px;font-weight:700}.item-editor .item-line .line-total{font-size:12px;font-weight:800}.catalog-product-select{min-height:43px;font-size:14px}
.order-pix-panel{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:18px;align-items:center;margin-top:2px;padding:17px;border:1px solid #93cfb6;border-radius:11px;background:linear-gradient(135deg,#f6fffa,#eaf8f0)}.order-pix-copy{min-width:0}.order-pix-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-pix-head span{color:#087b65;font-size:10px;font-weight:900;letter-spacing:.1em}.order-pix-head strong{color:#174d36;font:800 18px Manrope,sans-serif}.order-pix-copy p{min-height:18px;margin:7px 0;color:#527565;font-size:11px;line-height:1.4}.order-pix-copy textarea{display:block;width:100%;min-height:61px;resize:vertical;border:1px solid #b6d9c5;border-radius:7px;background:#fff;color:#345445;padding:8px;font:10px/1.4 'DM Sans',sans-serif}.order-pix-copy .button{margin-top:8px}.order-pix-image{display:grid;place-items:center;min-height:140px;padding:8px;border:1px solid #b6d9c5;border-radius:9px;background:#fff}.order-pix-image img{width:128px;height:128px;object-fit:contain}.order-pix-image span{color:#6e897a;font-size:11px;font-weight:800;text-align:center}
.dark-mode .order-pix-panel{border-color:#39725a;background:#193328}.dark-mode .order-pix-head strong{color:#d9f3e2}.dark-mode .order-pix-copy textarea,.dark-mode .order-pix-image{border-color:#477460;background:#16271d;color:#d9f0e1}
.quote-view-row,.record-view-row{cursor:pointer}.quote-view-row:hover td,.record-view-row:hover td{background:#f0f7ff}.quote-view-row:focus-visible,.record-view-row:focus-visible{outline:3px solid #3366cc;outline-offset:-3px}.quote-view-row .primary-cell,.record-view-row .primary-cell{text-decoration:underline;text-decoration-color:#b7cfee;text-underline-offset:4px}.quote-view-status{margin:16px 0}.quote-view-facts{display:grid;grid-template-columns:1fr 1fr;gap:17px 24px;margin:22px 0 28px}.quote-view-facts>div{min-width:0}.quote-view-facts dt{color:#65776e;font-size:12px;font-weight:700}.quote-view-facts dd{margin:5px 0 0;color:#183a28;font-size:16px;overflow-wrap:anywhere}.quote-view h3{font-size:17px}.quote-view-items td:first-child{white-space:normal;min-width:180px}.quote-view-total{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 0;font-size:16px}.quote-view-total strong{color:#003399;font-size:24px}.quote-view-notes{padding:17px;border:1px solid var(--line);border-radius:9px;background:#f6faf7}.quote-view-notes h3{margin:0 0 8px}.quote-view-notes p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.dark-mode .quote-view-row:hover td{background:#203653}.dark-mode .quote-view-facts dd{color:#e6f1eb}.dark-mode .quote-view-facts dt{color:#b6c7bd}.dark-mode .quote-view-total strong{color:#b8d1ff}.dark-mode .quote-view-notes{background:#1d3027}@media(max-width:620px){.quote-view-facts{grid-template-columns:1fr}.quote-view .form-footer{flex-wrap:wrap}.quote-view .form-footer .button{flex:1 1 130px}}
@media(max-width:720px){.order-pix-panel{grid-template-columns:1fr}.order-pix-image{min-height:145px}}

/* Dois períodos de atendimento: manhã e tarde, com referência sempre visível. */
#appShell .hours-reference{margin:0 0 18px;padding:13px 15px;border:1px solid #bdd7c3;border-radius:8px;background:#f2fbf4;color:#174b29;font-size:14px;line-height:1.5}
#appShell .hours-grid{gap:0;margin:0 0 22px;border-top:1px solid #d8ddd9}
#appShell .hours-row{grid-template-columns:minmax(150px,1fr) minmax(250px,1.15fr) minmax(250px,1.15fr);gap:16px;padding:15px 8px;border-bottom:1px solid #d8ddd9}
#appShell .hours-row>b{font-size:14px;color:#003399;text-transform:uppercase}
#appShell .hours-period{display:grid;grid-template-columns:auto minmax(92px,1fr) auto minmax(92px,1fr);align-items:center;gap:8px}
#appShell .hours-period>span{font-size:12px;font-weight:800;color:#395145}
#appShell .hours-period>i{font-style:normal;color:#587065;font-size:12px}
#appShell .hours-period input{min-width:0;border-color:#b9c8bf;padding:10px;font-size:14px;font-weight:700}
.dark-mode #appShell .hours-reference{border-color:#4f715a;background:#183324;color:#d4eedb}.dark-mode #appShell .hours-row{border-color:#43564c}.dark-mode #appShell .hours-row>b{color:#b8d1ff}.dark-mode #appShell .hours-period>span,.dark-mode #appShell .hours-period>i{color:#c7d6cc}
@media(max-width:1040px){#appShell .hours-row{grid-template-columns:minmax(140px,.7fr) 1fr;gap:12px}#appShell .hours-period:last-child{grid-column:2}}
@media(max-width:640px){#appShell .hours-reference{font-size:13px}#appShell .hours-row{grid-template-columns:1fr;padding:14px 0}#appShell .hours-period:last-child{grid-column:auto}#appShell .hours-period{grid-template-columns:54px minmax(0,1fr) 24px minmax(0,1fr);gap:6px}}

/* AUD-09: use the actual application selectors and full-width drawer offset. */
.sidebar-overlay{position:fixed;inset:0;z-index:39;border:0;background:rgba(0,0,0,.45);cursor:pointer}
.sidebar-overlay[hidden]{display:none}
@media screen and (max-width:768px){
  .system-bar{display:grid;grid-template-columns:36px minmax(0,1fr) auto 52px;grid-template-rows:36px 24px;gap:4px 6px;height:80px;min-height:80px;padding:6px 8px;align-items:center}
  .system-bar .system-pill{min-width:0;max-width:100%;height:30px;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;letter-spacing:0}
  .system-bar #themeToggle{grid-column:1;grid-row:1;min-width:0;width:36px}
  .system-bar #whatsappTopStatus{grid-column:2;grid-row:1}
  .system-bar #trialTopLabel{grid-column:3;grid-row:1}
  .system-bar #authLogout{grid-column:4;grid-row:1;min-width:0;width:52px;padding:0 4px}
  .system-bar #userTopLabel,.system-bar #aiTopStatus{display:none}
  .system-bar #clockLabel{grid-column:1/-1;grid-row:2;margin:0;justify-self:end;height:24px;width:auto;font-size:11px}
  #appShell{width:100%;min-height:calc(100dvh - 80px)}
  #appShell .sidebar{position:fixed;left:0;top:80px;bottom:0;width:min(300px,88vw);min-width:0;height:calc(100dvh - 80px);min-height:0;z-index:40;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .2s,visibility .2s}
  #appShell .sidebar.open{left:0;transform:translateX(0);visibility:visible;pointer-events:auto}
  .sidebar-overlay{top:80px}
  #appShell .main-area{width:100%;max-width:100%;min-width:0;margin-left:0}
  #appShell .workspace{width:100%;min-width:0;max-width:100%;padding:22px 14px 30px}
  #appShell .topbar{padding:0 14px;min-height:56px;gap:10px}
  #appShell .mobile-menu{display:block;flex:none;min-width:36px;min-height:40px}
  #appShell .breadcrumb{min-width:0;flex-wrap:wrap;gap:6px}
  #appShell .search-box,#appShell .toolbar{min-width:0;max-width:100%}
  #appShell .table-wrap{max-width:100%;overflow-x:auto}
}
@media print{.sidebar-overlay{display:none!important}}

/* Keep visually-hidden table headings inside the horizontal scroll container. */
#appShell .table-wrap{position:relative}


/* Compact confirmation shared by all successful saves. */
#successModal{width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow-y:auto;border-radius:14px}
#successModal .success-modal-body{padding:28px 28px 25px}
#successModal .success-modal-icon{width:54px;height:54px;margin:0 auto 15px;font-size:31px}
#successModal .eyebrow{font-size:11px;letter-spacing:.12em;margin-bottom:8px}
#successModal h2{font-size:25px;line-height:1.2;overflow-wrap:anywhere}
#successModal p{font-size:15px;line-height:1.5;margin-top:12px;overflow-wrap:anywhere}
#successModal .form-footer{margin-top:20px;padding-top:18px;justify-content:center}
#successModal .form-footer[hidden],#successModal button[hidden]{display:none!important}
#successModal .button{width:auto;min-width:140px;min-height:42px;padding:10px 22px;font-size:14px}
@media(max-width:480px){#successModal .success-modal-body{padding:25px 20px}#successModal h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){#successModal{animation:none}}

/* Segurança: herda a identidade e as dimensões dos cadastros existentes. */
.security-user-state{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.security-policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.security-policy-grid article{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--canvas)}
.security-policy-grid h3{margin:0 0 12px;color:var(--ink)}
.security-policy-grid p,.security-users .section-head p{max-width:760px;line-height:1.6;color:var(--muted)}
.security-authenticator{max-width:650px;margin:auto}
.security-authenticator>p{line-height:1.6}
.security-auth-qr{display:block;width:200px;height:200px;margin:20px auto;border:10px solid #fff;border-radius:10px;background:#fff}
.security-authenticator details{margin:18px 0;padding:12px;border:1px solid var(--line);border-radius:8px}
.security-manual-key{display:block;overflow-wrap:anywhere;user-select:all;font-size:14px;line-height:1.7}
.security-authenticator .auth-error{min-height:20px}
@media(max-width:720px){.security-policy-grid{grid-template-columns:1fr}.security-users .section-head{display:flex;align-items:flex-start;flex-direction:column;gap:14px}.security-users .table-actions{flex-wrap:wrap}}

#appShell .nav-group[hidden],#appShell .nav-item[hidden]{display:none!important}


.sidebar .brand {
  height: auto;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.sidebar .brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

#appShell #cashFlowYear .cash-date-fields {
  grid-template-columns: minmax(0, 1fr) auto;
}


#recordModal [data-status-tone="positive"] { --status-bg: #e4f4e8; --status-ink: #155b31; --status-border: #79b48a; }
#recordModal [data-status-tone="pending"] { --status-bg: #fff2cf; --status-ink: #704500; --status-border: #c69a39; }
#recordModal [data-status-tone="negative"] { --status-bg: #fce7e7; --status-ink: #922b2b; --status-border: #d78a8a; }
#recordModal [data-status-tone="progress"] { --status-bg: #e4efff; --status-ink: #174b89; --status-border: #83a9d8; }
#recordModal [data-status-tone="neutral"] { --status-bg: #eef1f5; --status-ink: #394653; --status-border: #a4afbd; }

#recordModal select[data-status-tone],
#recordModal select[data-status-tone] option {
  color: var(--status-ink);
  background-color: var(--status-bg);
}
#recordModal select[data-status-tone] {
  border-color: var(--status-border);
  font-weight: 700;
}
