/* Protecta visual language: shared tokens used by current and future modules. */
:root{--protecta-orange:#ff6500;--protecta-orange-hover:#e95700;--protecta-orange-soft:#fff1e6;--protecta-ink:#141923;--protecta-muted:#697386;--protecta-line:#e0e6ee;--protecta-canvas:#f4f6fa;--protecta-surface:#fff;--protecta-radius:12px;--protecta-shadow:0 3px 12px #18273b08;--protecta-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
/* Common shell and form treatment. Status colors remain owned by each module. */
body{background:var(--protecta-canvas);color:var(--protecta-ink);font-family:var(--protecta-font)}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:var(--protecta-line);border-radius:8px;color:var(--protecta-ink)}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus-visible{outline:2px solid #ff650055;outline-offset:2px;border-color:var(--protecta-orange)}
/* Cada campo mantém o próprio ícone; não acrescentar um lápis genérico. */
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) :is(input[type=email],input[type=tel],input[type=date],select){padding-left:40px;background-repeat:no-repeat;background-position:13px center;background-size:18px 18px}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) input[type=email]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748a' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E")}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) input[type=tel]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748a' stroke-width='1.8'%3E%3Cpath d='M7 3H4a1 1 0 0 0-1 1c0 9 8 17 17 17a1 1 0 0 0 1-1v-3l-5-2-2 2a14 14 0 0 1-8-8l2-2z'/%3E%3C/svg%3E")}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) input[type=date]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748a' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E")}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748a' stroke-width='1.8'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8m-8 4h8m-8 4h5'/%3E%3C/svg%3E");background-position:13px center, right 12px center;background-size:18px 18px,16px 16px;padding-right:38px}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) :is(.sysmobile-field,.sysmobile-sales-search,.sysmobile-search-box,.sysmobile-lead-filter-control,.sysmobile-leads-search,.pv-control) :is(input,select,textarea){background-image:none}
body :is(.crm-module-document,.workspace-module-frame,.workspace-body,.app-shell) :is(input[type=file],input[type=checkbox],input[type=radio]){padding-left:initial;background-image:none}
body :is(button,.button):focus-visible{outline:2px solid var(--protecta-orange);outline-offset:2px}
body :is(.workspace-module-grid>a,.workspace-plan-grid article,.workspace-metrics article,.sysmobile-app .sysmobile-sales-form-card,.sysmobile-app .sysmobile-client-panel){border-color:var(--protecta-line);border-radius:var(--protecta-radius);box-shadow:var(--protecta-shadow)}
/* Shared page headings. Only presentation; data and access remain module-owned. */
body .crm-workspace .workspace-body>.workspace-topbar{box-sizing:border-box;height:48px;min-height:48px;padding:12px 28px;background:#fff;border-bottom:1px solid #e1e6ee;display:flex;align-items:center}
body .crm-workspace .workspace-topbar>div>span{font-size:11px;line-height:1.5;font-weight:400;letter-spacing:1.5px;color:#73859e}
body .crm-workspace .workspace-module-frame,body .crm-workspace .workspace-body--commercial .workspace-module-frame{height:calc(100dvh - 48px)}
body :is(.sales-toolbar,.workspace-section-heading,.one-heading,.mp-heading,.performance-heading,.aw-heading){display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
body :is(.sales-toolbar h1,.workspace-section-heading h2,.one-heading h2,.mp-heading h2,.performance-heading h1,.aw-heading h1),body .crm-module-document .title h1,body.pv-integrated .pv-module-heading h1{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:28px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:-1px!important;color:#101827!important;margin:0 0 8px!important;overflow-wrap:anywhere}
body :is(.sales-toolbar,.workspace-section-heading,.one-heading,.mp-heading,.performance-heading,.aw-heading)>div>p,body .crm-module-document .title p,body.pv-integrated .pv-module-heading p{font-size:14px!important;line-height:1.5!important;font-weight:400;color:#718198!important;margin:0!important}
body .one-heading{background:transparent;border:0;padding:16px 24px;margin:0 -22px}
body .one-heading-path{font-size:12px;line-height:1.5;font-weight:400;letter-spacing:1.5px;color:#73859e;margin-bottom:8px}
body.pv-integrated .shell>header{padding:18px 28px 14px!important;min-height:0;background:transparent}
body .crm-module-document .title{margin:18px 0 16px}
body .pv-header .pv-context>span:last-child{font-size:28px;font-weight:800;line-height:1.2;letter-spacing:-.7px}
body .pv-header .pv-eyebrow{color:#73859e;font-size:12px;letter-spacing:1.5px}
/* Enlarge the mark in the unused upper area; retain the text block and form. */
body .central-login-intro{display:grid;grid-template-rows:minmax(120px,1fr) auto;align-items:stretch}
body .central-login-brand{width:100%;min-width:0;align-self:stretch;justify-content:center;gap:16px}
body .central-login-brand img{width:82px;height:104px;flex:none;object-fit:contain}
body .central-login-brand>span{font-size:25px;line-height:1.2;letter-spacing:2px}
body .central-login-brand strong{font-size:38px;line-height:1.2;letter-spacing:3px;margin-top:5px}
@media(max-width:1000px){body .central-login-brand{gap:10px}body .central-login-brand img{width:64px;height:82px}body .central-login-brand>span{font-size:20px}body .central-login-brand strong{font-size:31px}}
@media(max-width:700px){body .crm-workspace .workspace-body>.workspace-topbar{height:auto;min-height:44px;padding:11px 18px}body .crm-workspace .workspace-topbar>div>span{font-size:11px;letter-spacing:1.4px}body :is(.sales-toolbar h1,.workspace-section-heading h2,.one-heading h2,.mp-heading h2,.performance-heading h1,.aw-heading h1),body .crm-module-document .title h1,body.pv-integrated .pv-module-heading h1{font-size:24px!important;letter-spacing:-.7px!important}body :is(.sales-toolbar,.workspace-section-heading,.one-heading,.mp-heading,.performance-heading,.aw-heading)>div>p,body .crm-module-document .title p,body.pv-integrated .pv-module-heading p{font-size:14px!important}body .one-heading{margin:0 -18px;padding:16px 18px}body .pv-header .pv-context>span:last-child{font-size:24px}}
@media(max-width:650px){body .central-login-intro{grid-template-rows:minmax(105px,1fr) auto}body .central-login-brand{width:100%;justify-content:flex-start}body .central-login-brand img{width:64px;height:82px}body .central-login-brand>span{font-size:21px}body .central-login-brand strong{font-size:32px}}
@media(max-width:350px){body .central-login-brand{gap:8px}body .central-login-brand img{width:52px;height:68px}body .central-login-brand>span{font-size:18px}body .central-login-brand strong{font-size:27px;letter-spacing:2px}}

/* Integrated Finance: compact heading, existing controls relocated below reports. */
body .pv-header{background:#f5f6f8!important;border:0!important;padding:16px 28px!important}
body .pv-header .pv-command-row{padding:0!important;border:0!important;min-height:0!important;display:block}
body .pv-header .pv-context{display:flex;flex-direction:column;gap:4px;color:#101827}
body .pv-header .pv-context>span:last-child{font-size:28px!important;line-height:1.2;font-weight:800;color:#101827}
body .pv-header .pv-eyebrow{font-size:10px;letter-spacing:1.4px;color:#73859e}
body #pv-bottom-tools{margin-top:24px;padding:20px;border:1px solid #e1e6ee;border-radius:10px;background:#fff;color:#263244}
body #pv-bottom-tools>h2{font-size:18px;margin:0 0 16px;line-height:1.3;font-weight:750}
body #pv-bottom-tools .header-controls{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;margin:0;width:100%}
body #pv-bottom-tools .header-controls :is(button,.button){font-size:12px;min-height:40px;padding:9px 12px;border-radius:7px;line-height:1.4;white-space:normal}
body #pv-bottom-tools .pv-secondary,body #pv-bottom-tools .pv-more summary{background:#fff;color:#334155;border:1px solid #dce2ea}
body #pv-bottom-tools .pv-more summary{border-radius:7px;padding:9px 12px;min-height:40px;font-size:12px}
body #pv-bottom-tools .pv-primary{background:#ed7b24;color:#fff;border-color:#ed7b24}
body #pv-bottom-tools .pv-menu{top:auto;bottom:calc(100% + 8px);max-width:min(320px,calc(100vw - 60px));color:#263244;background:#fff}
body #pv-bottom-tools .pv-menu :is(button,.button){color:#334155;background:#fff}
body #pv-bottom-tools .pv-bottom-company{font-size:11px;color:#738198;margin:16px 0 0}
@media(max-width:700px){body .pv-header{padding:14px!important}body .pv-header .pv-context>span:last-child{font-size:24px!important}body #pv-bottom-tools{padding:16px 14px}body #pv-bottom-tools .header-controls{display:grid;grid-template-columns:minmax(0,1fr)}body #pv-bottom-tools .header-controls>*{grid-column:1;width:100%;min-width:0}body #pv-bottom-tools .pv-more summary{min-height:44px}body #pv-bottom-tools .pv-menu{left:0;right:auto;width:100%}}

/* Unified module presentation. Values, permissions and operational grids are unchanged. */
body :is(h1,h2,h3,h4,h5,h6){text-transform:uppercase!important}
body :is(.sales-toolbar h1,.workspace-section-heading h2,.one-heading h2,.mp-heading h2,.performance-heading h1,.aw-heading h1,.access-heading h2,.erp-source-title h3,.dashboard-section-title h2,.dashboard-heading h1,.board-title h2,.pv-heading),body .crm-module-document .title h1,body.pv-integrated .pv-module-heading h1,body .pv-header .pv-context>span:last-child{font-size:20px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.4px!important;overflow-wrap:normal;word-break:normal;hyphens:none}
body :is(.one-folder>strong,.one-nav>button,.one-nav summary,.workspace-sidebar nav>a,.workspace-module-grid h3,.workspace-future-projects strong,.pv-section-heading,.pv-heading){text-transform:uppercase}
body :is(.workspace-section-heading,.access-heading,.performance-heading){gap:12px;margin-top:16px;margin-bottom:16px}
body .dashboard-report-section{margin-top:18px;padding-top:16px}
body :is(.workspace-module-grid,.workspace-plan-grid,.access-metrics,.performance-panels,.dashboard .performance-panels,.dashboard .acq-report .performance-panels,.erp-source-kpis){gap:12px;align-items:stretch}
body .workspace-module-grid>a{padding:18px;display:flex;flex-direction:column}
body .workspace-module-grid .workspace-module-action{margin-top:auto}
body .overview-settings{margin-top:16px;padding:18px}
body .overview-settings>nav{gap:8px;padding-bottom:12px;margin-bottom:16px}
body .access-metrics{margin:16px 0}
body .access-metrics>div{padding:16px}
body .one-heading{padding-top:14px;padding-bottom:14px}
body .one-section{margin-top:18px;margin-bottom:12px}
body .one-folders{align-items:stretch}
body .one-folder{display:flex;flex-direction:column}
body .one-folder-action{margin-top:auto}
body .one-fields{gap:12px}
body .erp-source{margin:16px 0}
body .erp-source-filters{margin-top:16px}
body .erp-source-reconcile{margin:12px 0}
body .erp-source-sellers{margin:16px 0}
body .crm-module-document .stats{gap:12px;margin:16px 0;align-items:stretch}
body .crm-module-document :is(.stats>.card,.stats>div,.import,.data,.help){padding:16px}
body .crm-module-document .help{margin-top:16px}
body .crm-module-document .performance-heading{margin-bottom:16px}
body .dashboard .acq-report .performance-heading{margin-bottom:16px}
body.pv-integrated :is(.cards,.grid,.kpis,.summary-cards){gap:12px;align-items:stretch}
body.pv-integrated .cards{margin-bottom:16px}
body.pv-integrated :is(.card,.panel,.pv-section,.pv-summary){padding:18px}
body.pv-integrated :is(.dashboard-heading,.pv-section-heading){margin-bottom:16px;gap:12px}
body.pv-integrated .pv-summary :is(dt,dd){padding-top:12px;padding-bottom:12px}
body #pv-bottom-tools{margin-top:16px;padding:16px}
@media(max-width:700px){body :is(.overview-settings,.access-metrics>div){padding:14px}body.pv-integrated :is(.card,.panel,.pv-section,.pv-summary){padding:14px}body :is(.workspace-module-grid,.workspace-plan-grid,.access-metrics,.performance-panels,.erp-source-kpis){gap:10px}}
