#encartesPortal{max-width:1180px;margin:auto;padding:32px 24px 64px;color:#18244d}#encartesPortal .portal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:12px}#encartesPortal h1{font-size:30px;margin:8px 0}#encartesPortal h2{font-size:21px;margin:0}#encartesPortal p{line-height:1.6}#portalStatus{min-height:24px;color:#286444}#portalStatus.error{color:#a12828}.portal-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.portal-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin-top:24px}.portal-company{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:24px!important;text-align:left;min-height:210px}.portal-company strong{font-size:22px}.portal-avatar{background:#e9edff;color:#3148ad;border-radius:14px;padding:16px;font-weight:800}.portal-panel{background:#fff;border:1px solid #dce2ee;border-radius:20px;padding:24px;margin:24px 0}.portal-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.portal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.portal-metrics>div{padding:22px;background:white;border:1px solid #dce2ee;border-radius:16px;display:flex;flex-direction:column;gap:10px}.portal-metrics strong{font-size:32px}.portal-metrics span,.portal-hint{color:#5f6d88;font-size:14px}.portal-list-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:18px!important;text-align:left;border-bottom:1px solid #e9edf5;margin-bottom:8px}.portal-list-row small{display:block;color:#65718a;font-size:13px;margin-top:8px}.portal-badge{background:#edf0ff;color:#3049a5;border-radius:20px;padding:8px 12px;white-space:nowrap;font-size:13px}.portal-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:20px}.portal-search-label{margin:20px 0 12px;display:block}.portal-search-results{display:grid;gap:8px;margin-bottom:12px;max-height:360px;overflow:auto}.portal-result{display:flex;align-items:center;gap:14px;text-align:left;padding:12px!important}.portal-result img,.portal-product-placeholder{width:52px;height:52px;object-fit:contain;flex-shrink:0}.portal-product-placeholder{font-size:11px;background:#f3f5fa;display:grid;place-items:center;border-radius:8px}.portal-result span{flex:1}.portal-result small{display:block;font-size:12px;color:#68768e;margin-top:4px}.portal-item{display:grid;grid-template-columns:minmax(140px,1fr) 140px 140px auto;gap:12px;align-items:center;border-top:1px solid #e4e9f2;padding:16px 0}.portal-item label{font-size:12px}.portal-empty{padding:30px;background:#f7f8fc;border-radius:12px;text-align:center}.portal-list-actions{margin-top:20px;padding-top:20px;border-top:1px solid #e4e9f2}.portal-dialog{max-width:560px;width:calc(100% - 28px);max-height:90dvh;border:0;border-radius:18px;padding:26px;overflow:auto}.portal-dialog::backdrop{background:#111c3a88}.portal-dialog form{display:grid;gap:16px}.portal-dialog label{display:grid;gap:8px}.portal-dialog .portal-check{display:flex;align-items:center}.portal-check input{width:auto}.portal-dialog fieldset{border:1px solid #dce2ee;border-radius:12px;padding:16px}.portal-dialog fieldset label{margin:12px 0}.encartesPortal-context{display:flex;justify-content:space-between;align-items:center;padding:10px 0 18px;gap:12px}#portalCopyFallback{width:100%;min-height:240px;margin-top:16px}#encartesPortal input,#encartesPortal select{width:100%;min-width:0}#encartesPortal button:focus-visible,.portal-dialog button:focus-visible{outline:3px solid #879bff;outline-offset:3px}@media(max-width:700px){#encartesPortal{padding:20px 14px 40px}#encartesPortal .portal-header{flex-direction:column}#encartesPortal h1{font-size:26px}.portal-metrics{grid-template-columns:repeat(2,1fr)}.portal-panel{padding:16px}.portal-fields{grid-template-columns:1fr}.portal-item{grid-template-columns:1fr 1fr}.portal-item>strong{grid-column:1/-1}.portal-item>button{grid-column:1/-1}.portal-section-title{align-items:flex-start}.portal-list-row{flex-wrap:wrap}.portal-result b{font-size:12px}.portal-actions button{min-height:44px}.portal-list-actions{position:static}}
/* The portal owns its controls; editor-specific legacy styles must not hide them. */
#encartesPortal button,.portal-dialog button{font:600 14px Montserrat,Arial,sans-serif;border:1px solid #344bb5;border-radius:10px;padding:12px 16px;background:#344bb5;color:#fff;cursor:pointer;min-height:44px;visibility:visible;opacity:1}
#encartesPortal button.secondary,.portal-dialog button[data-close]{background:#fff;color:#253353;border-color:#d7dfed}
#encartesPortal button:disabled,.portal-dialog button:disabled{opacity:.55;cursor:default}
#encartesPortal input,#encartesPortal select,.portal-dialog input:not([type=checkbox]),.portal-dialog select{font:400 15px Montserrat,Arial,sans-serif;padding:12px;border:1px solid #cbd4e5;border-radius:9px;min-height:46px;background:#fff;color:#243351;width:100%;margin-top:7px}
#encartesPortal label,.portal-dialog label{font-size:13px;font-weight:600;color:#344365}
#encartesPortal .portal-list-actions>button{display:inline-flex!important;align-items:center;justify-content:center}
@media(max-width:700px){#encartesPortal .portal-list-actions>button{width:100%}}
/* Unified management workspace: the production editor keeps its own styles. */
#encartesPortal{max-width:none;margin:0;padding:0;min-height:100dvh;display:grid;grid-template-columns:238px minmax(0,1fr);background:#f4f6fb;color:#18244d}
#encartesPortal .portal-sidebar{position:sticky;top:0;height:100dvh;background:linear-gradient(180deg,#17265f,#223774);padding:30px 18px 20px;display:flex;flex-direction:column;color:white;width:auto}
.portal-brand{text-decoration:none;color:#fff;display:block;padding:0 12px 36px}.portal-brand img{width:165px;max-width:100%;filter:brightness(0) invert(1)}.portal-brand small{display:block;font-size:9px;font-weight:700;letter-spacing:.14em;margin-top:13px;color:#bac6ec}
.portal-nav-label{color:#9cadd9;font-size:10px;letter-spacing:.1em;font-weight:700;margin:0 12px 14px}
#encartesPortal .portal-sidebar nav{display:grid;gap:8px}#encartesPortal .portal-sidebar nav button{display:flex;align-items:center;gap:13px;text-align:left;border:0;background:transparent;color:#d4def9;padding:15px;border-radius:11px;box-shadow:none;font-size:14px}
#encartesPortal .portal-sidebar nav button.active{background:#ffffff1c;color:white;box-shadow:inset 3px 0 #9bb0ff}#encartesPortal .portal-sidebar nav button:hover{background:#ffffff16}.portal-sidebar nav button>span{font-size:23px;width:25px;text-align:center}
.portal-sidebar-user{margin-top:auto;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;border-top:1px solid #ffffff20;padding-top:20px}.portal-sidebar-user strong{font-size:11px;display:block}.portal-sidebar-user small{font-size:9px;color:#b8c7ef;display:block;margin-top:4px}#encartesPortal .portal-sidebar-user button{grid-column:1/-1;background:transparent;border:1px solid #ffffff30;color:#d8e2ff;font-size:11px;min-height:34px;padding:7px}
.portal-user-icon{display:grid;place-items:center;border-radius:50%;width:36px;height:36px;flex-shrink:0;background:#e9edfa;color:#314cad;font-weight:700}
.portal-workspace{padding:32px 38px 60px;min-width:0;width:100%;max-width:1540px;margin:0 auto}#encartesPortal .portal-header{min-height:82px;border-bottom:1px solid #dfe5f0;padding-bottom:22px;margin:0;align-items:center}#encartesPortal h1{font-size:29px;letter-spacing:-.035em;margin:7px 0 0}.portal-header .kicker{font-size:10px}#portalStatus{margin:8px 0;min-height:18px;font-size:12px}.portal-lead{margin:4px 0 23px;color:#69758c;font-size:14px;max-width:820px}
#encartesPortal .portal-metrics{margin:18px 0 32px;gap:16px}#encartesPortal .portal-metrics>div,#encartesPortal .portal-metric-link{border:1px solid #e0e5ef;border-radius:14px;padding:20px 22px;min-height:116px;background:white;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:15px;color:#18244d;box-shadow:0 3px 12px #17265403;text-align:left}#encartesPortal .portal-metrics strong{font-size:30px;line-height:1.1;letter-spacing:-.04em}#encartesPortal .portal-metrics span{font-size:12px;font-weight:500;color:#6e7992}.portal-metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-metrics.two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}
.portal-section-title p{color:#77829a;font-size:12px;margin:7px 0 0}.portal-cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-top:18px;gap:20px}.portal-company{background:white;border:1px solid #dfe5ef;border-radius:16px;display:block;min-height:0;padding:23px!important;box-shadow:0 4px 16px #19326604}.portal-company-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.portal-avatar{width:58px;height:58px;display:grid;place-items:center;padding:0;border-radius:14px;font-size:20px;background:#edf0ff;color:#3853ad}.portal-avatar-img{width:58px;height:58px;object-fit:contain;border-radius:14px;background:#f5f7fb;border:1px solid #e7ebf3}.portal-company h2{font-size:22px}.portal-contact{font-size:12px;color:#7b859a;margin:7px 0 20px}.portal-company-stats{display:grid;grid-template-columns:1.3fr 1fr .8fr;gap:8px;border-top:1px solid #edf0f6;border-bottom:1px solid #edf0f6;padding:18px 0;margin-bottom:18px}.portal-company-stats div{display:grid;gap:6px}.portal-company-stats strong{font-size:21px}.portal-company-stats span{font-size:10px;color:#77839a}.portal-company .portal-actions{justify-content:space-between}#encartesPortal .portal-company .portal-actions button{font-size:12px;padding:10px 13px;min-height:40px}.portal-badge{font-size:10px;padding:6px 10px;background:#edf6ef;color:#3c7c51}.portal-badge.muted{background:#f1f2f5;color:#777}
.portal-client-banner{display:flex;align-items:center;gap:16px;margin:6px 0 25px}.portal-client-banner>div{display:grid;gap:6px;flex:1}.portal-client-banner strong{font-size:19px}.portal-client-banner span{font-size:12px;color:#6f7a90}.portal-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.portal-shortcuts button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:20px!important;gap:10px}.portal-shortcuts small{font-size:11px;line-height:1.6;font-weight:400}.portal-panel{border-radius:16px;padding:24px}.portal-empty{padding:35px 20px;background:#f8f9fc;color:#77839a}.portal-empty strong{font-size:15px;color:#4d5e7e}.portal-empty p{font-size:12px;margin-bottom:0}
.portal-user-table{display:grid}.portal-user-row{display:grid;grid-template-columns:38px minmax(140px,1fr) minmax(150px,1fr) auto;gap:15px;align-items:center;padding:20px 0;border-top:1px solid #edf0f6}.portal-user-row:first-child{border-top:0}.portal-user-row strong{font-size:13px}.portal-user-row small{display:block;font-size:11px;color:#77839a;margin:6px 0;overflow-wrap:anywhere}.portal-user-tags{display:flex;gap:9px;align-items:center;font-size:10px;color:#6e7d94}.portal-user-links{font-size:12px}.portal-user-links>small:first-child{font-size:9px;letter-spacing:.06em}.portal-user-row .portal-actions{justify-content:flex-end;max-width:170px}#encartesPortal .portal-user-row button{font-size:11px;padding:9px 12px;min-height:36px}.portal-mail-health{border:1px solid #e8d4a2;background:#fff9ec;padding:16px 20px;border-radius:12px;font-size:12px;color:#7c602c}.portal-mail-health strong{font-size:13px}.portal-mail-health p{margin:6px 0}.portal-mail-health small{font-size:11px}.portal-mail-health.healthy{border-color:#d8e8df;background:#f3faf6;color:#3c6b51}
.portal-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}.portal-product-card{border:1px solid #e4e9f3;border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:12px}.portal-product-card>img,.portal-no-image{width:100%;height:130px;object-fit:contain;border-radius:8px;background:#f8f9fc}.portal-no-image{display:grid;place-items:center;font-size:12px;color:#8a94a6}.portal-product-card>strong{font-size:13px;line-height:1.5;flex:1}.portal-product-card>span{font-size:10px;color:#76839a}#encartesPortal .portal-product-card button{min-height:35px;font-size:11px;padding:8px}.portal-catalog-search{width:340px;max-width:55%}.portal-catalog-search input{margin-top:0!important}.portal-pagination{margin-top:22px;justify-content:flex-end;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.portal-avatar-edit{display:flex;gap:18px;align-items:center}.portal-avatar-edit label{flex:1}.portal-avatar-edit small{color:#7a8499;font-size:11px;font-weight:400}.portal-dialog{width:min(640px,calc(100% - 28px));max-width:640px}.portal-dialog h2{margin:0;font-size:23px}.portal-dialog .portal-fields{margin:0;grid-template-columns:1fr 1fr}.portal-dialog input[type=file]{font-size:12px!important;padding:9px!important}.portal-dialog .portal-check input{margin:0}
@media(max-width:1100px){#encartesPortal{grid-template-columns:200px minmax(0,1fr)}.portal-workspace{padding:26px 24px}.portal-user-row{grid-template-columns:36px 1fr 1fr}.portal-user-row>.portal-actions{grid-column:2/-1;max-width:none;justify-content:flex-start}.portal-sidebar-user{grid-template-columns:30px 1fr}.portal-brand{padding-inline:6px}}
@media(max-width:760px){#encartesPortal{display:block}#encartesPortal .portal-sidebar{position:static;height:auto;padding:16px}.portal-brand{padding:0;display:flex;align-items:center;gap:14px}.portal-brand img{width:120px}.portal-brand small{margin:0;font-size:8px}.portal-nav-label,.portal-sidebar-user{display:none}#encartesPortal .portal-sidebar nav{display:flex;gap:8px;margin-top:16px}#encartesPortal .portal-sidebar nav button{padding:10px 13px;font-size:12px;flex:1;justify-content:center;min-height:40px}.portal-sidebar nav button>span{font-size:17px;width:auto}.portal-workspace{padding:22px 15px 40px}#encartesPortal .portal-header{align-items:flex-start;gap:18px;min-height:0}.portal-header .portal-actions{width:100%}#encartesPortal h1{font-size:26px}#encartesPortal .portal-metrics{gap:10px;margin-bottom:25px;grid-template-columns:repeat(2,minmax(0,1fr))}#encartesPortal .portal-metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}#encartesPortal .portal-metrics>div,#encartesPortal .portal-metric-link{padding:15px;min-height:105px}#encartesPortal .portal-metrics strong{font-size:25px}#encartesPortal .portal-metrics span{font-size:10px}.portal-client-banner{gap:12px;flex-wrap:wrap}.portal-client-banner button{width:100%}.portal-cards{grid-template-columns:1fr}.portal-shortcuts{grid-template-columns:1fr}.portal-panel{padding:17px}.portal-user-row{grid-template-columns:35px 1fr;gap:12px}.portal-user-links{grid-column:2}.portal-catalog-search{width:100%;max-width:none}.portal-section-title:has(.portal-catalog-search){flex-direction:column}.portal-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portal-product-card{padding:10px}.portal-product-card>img,.portal-no-image{height:100px}.portal-dialog .portal-fields{grid-template-columns:1fr}.portal-avatar-edit{align-items:flex-start}.portal-list-row{padding:14px!important}}

#encartesPortal .portal-mobile-logout{display:none}@media(max-width:760px){#encartesPortal .portal-mobile-logout{display:block;margin-left:auto}}

/* 1.1.3: creation context and list-to-offer actions. */
#encartesPortalBack{font:600 13px Montserrat,Arial,sans-serif;border:1px solid var(--line,#d7dfed);border-radius:10px;padding:12px 16px;min-height:44px;background:#fff;color:#253353;cursor:pointer;box-shadow:0 4px 14px #192b5810}
#encartesPortalBack:hover{background:#f0f3ff;border-color:#aebce8}
#encartesPortalBack:focus-visible{outline:3px solid #879bff;outline-offset:3px}
.encartesPortal-context{flex-wrap:wrap;border-bottom:1px solid #dce2ee;margin-bottom:8px;padding:16px 0;}
#encartesPortalCompanyLabel{font-size:14px;color:#253353}
.portal-list-entry{display:flex;align-items:center;gap:14px;margin-bottom:12px;border:1px solid #dce2ee;border-radius:12px;padding:12px;background:white}
#encartesPortal .portal-list-entry .portal-list-row{flex:1;min-width:0;margin:0;border:0;box-shadow:none}
.portal-list-entry>button:last-child{flex-shrink:0}
@media(max-width:700px){.portal-list-entry{flex-direction:column;align-items:stretch;gap:8px}.portal-list-entry>button:last-child{width:100%}.encartesPortal-context{gap:10px}#encartesPortalBack{margin-left:auto}}

#portalSaveNotice.visible{display:block;flex-basis:100%;padding:12px 15px;border-radius:8px;background:#e7f6eb;color:#245c38;font-size:14px;font-weight:600}body.inovary-theme #portalSaveNotice.visible{background:#244538;color:#b8f0ca}#encartesPortal .portal-menu-toggle{min-height:34px;padding:6px 10px;margin-bottom:12px;background:transparent;border:1px solid #61749a;color:#fff}@media(min-width:761px){#encartesPortal.portal-collapsed{grid-template-columns:82px minmax(0,1fr)}#encartesPortal.portal-collapsed .portal-sidebar{padding:16px 10px}#encartesPortal.portal-collapsed .portal-brand img{width:48px}#encartesPortal.portal-collapsed .portal-brand small,#encartesPortal.portal-collapsed .portal-nav-label,#encartesPortal.portal-collapsed .portal-nav-text,#encartesPortal.portal-collapsed .portal-sidebar-user>div{display:none}#encartesPortal.portal-collapsed .portal-sidebar nav button{justify-content:center;padding:10px}#encartesPortal.portal-collapsed .portal-sidebar-user{display:flex;flex-direction:column}}@media(max-width:760px){#encartesPortal.portal-collapsed .portal-sidebar nav{display:none}#encartesPortal .portal-menu-toggle{float:right;margin:0}}

/* Menu and list order controls, including installations using the light theme. */
#encartesPortal .portal-sidebar .inovary-ui-icon{display:block;width:21px;height:21px;min-width:21px;max-width:21px;flex:0 0 21px}
#encartesPortal .portal-sidebar .portal-nav-text{width:auto;min-width:0;font-size:14px;white-space:normal}
#encartesPortal .portal-sidebar nav button{min-width:0;overflow:hidden}
#encartesPortal .portal-menu-toggle{width:38px;min-width:38px;height:34px;display:grid;place-items:center;margin-left:auto}
#encartesPortal .portal-item{grid-template-columns:78px minmax(140px,1fr) 140px 140px auto}
#encartesPortal .portal-reorder{display:flex;gap:5px;align-items:center}
#encartesPortal .portal-reorder button{width:34px;min-width:34px;min-height:38px;padding:4px;font-size:17px;line-height:1}
@media(max-width:700px){#encartesPortal .portal-item{grid-template-columns:78px minmax(0,1fr);gap:10px}#encartesPortal .portal-item>strong{grid-column:2}#encartesPortal .portal-item>label{grid-column:auto}#encartesPortal .portal-item>button{grid-column:1/-1}#encartesPortal .portal-item .portal-reorder{grid-column:1;grid-row:1}}

#encartesPortal .portal-item>.portal-grip{grid-column:1;grid-row:1;justify-self:start;width:44px;height:44px;padding:0;touch-action:none;cursor:grab;font-size:24px;line-height:1;user-select:none}
#encartesPortal .portal-item:has(.portal-grip)>strong{touch-action:none;cursor:grab;user-select:none}
.portal-item.drag-source{opacity:.65}.portal-item.insert-above{box-shadow:inset 0 3px #5a79e8}.portal-item.insert-below{box-shadow:inset 0 -3px #5a79e8}

/* Identidade compartilhada com a Central de Criação */
body #encartesPortal .portal-sidebar{
 background:radial-gradient(circle at 1px 1px,#ffffff12 1px,transparent 1.5px) 0 0/18px 18px,linear-gradient(160deg,#3049af,#1b2a66)!important;
 overflow:visible;z-index:3;
}
#encartesPortal .portal-brand .portal-mini-logo{display:none}
#encartesPortal .portal-brand .portal-full-logo{width:220px}
#encartesPortal .portal-brand{border-bottom:1px solid #ffffff29;padding-bottom:22px;margin-bottom:20px}
#encartesPortal .portal-workspace{max-width:none}
body:not(.inovary-theme) #encartesPortal{background:radial-gradient(ellipse at top right,#dce3ff,transparent 36%) no-repeat 0 0/100% 260px,#f3f5fb}
body #encartesPortal .portal-sidebar nav .inovary-ui-icon{box-sizing:content-box;width:18px;height:18px;min-width:18px;max-width:18px;flex-basis:18px;padding:9px;border:1px solid #ffffff45;border-radius:9px;color:white}
#encartesPortal .portal-sidebar nav button.active::after{display:none}
#encartesPortal .portal-sidebar nav button.active{box-shadow:inset 3px 0 #ffd83a}
#encartesPortal .portal-panel:has(.portal-list-rows)>.portal-section-title,#encartesPortal .portal-panel:has(#portalItems)>.portal-section-title{
 background:radial-gradient(circle at 1px 1px,#ffffff17 1px,transparent 1.5px) 0 0/18px 18px,linear-gradient(110deg,#2940a4,#3d56bb 65%,#243878);
 border-radius:12px;padding:20px;color:white
}
body #encartesPortal .portal-panel>.portal-section-title h2{color:inherit}
#encartesPortal .portal-panel>.portal-section-title p{color:inherit}
#encartesPortal .portal-list-entry{border-radius:6px;margin-bottom:5px;padding:5px 12px;border-left:4px solid #408760}
#encartesPortal .portal-list-entry[data-status=draft]{border-left-color:#dfae24}
#encartesPortal [data-status=draft] .portal-badge,#encartesPortal .portal-badge[data-status=draft]{background:#fff0bd;color:#705114}
#encartesPortal #portalItems>h3{margin-bottom:0;padding:12px 18px;background:#101f40;color:white;border-radius:8px 8px 0 0}
#encartesPortal .portal-item{padding-inline:12px}
body:not(.inovary-theme) #encartesPortal .portal-item:nth-of-type(even){background:#f5f7fc}
@media(min-width:761px){
 body #encartesPortal:not(.portal-collapsed){grid-template-columns:clamp(235px,16vw,300px) minmax(0,1fr)}
 body #encartesPortal.portal-collapsed{grid-template-columns:86px minmax(0,1fr)}
 #encartesPortal .portal-menu-toggle{position:absolute;right:-15px;top:23px;width:30px;height:30px;min-width:30px;min-height:30px;margin:0;padding:0;border-radius:50%;background:white;color:#263b85;border:1px solid #d8def0;box-shadow:0 3px 10px #10204e33}
 #encartesPortal.portal-collapsed .portal-menu-toggle{position:static;margin:0 auto 12px;width:46px;border-radius:8px}
 #encartesPortal.portal-collapsed .portal-brand .portal-full-logo{display:none}
 #encartesPortal.portal-collapsed .portal-brand .portal-mini-logo{display:block;width:48px;margin:auto}
 #encartesPortal.portal-collapsed .portal-brand{padding:0 0 15px}
}
@media(max-width:760px){#encartesPortal .portal-brand .portal-full-logo{width:128px}#encartesPortal .portal-sidebar nav button{flex-wrap:wrap}#encartesPortal .portal-sidebar nav .inovary-ui-icon{padding:4px}#encartesPortal .portal-brand{margin-bottom:6px;padding-bottom:12px}}


#encartesPortal #portalItems .portal-item{grid-template-columns:36px minmax(0,1fr) 140px 140px 36px;gap:10px}
#encartesPortal #portalItems .portal-item :is(.portal-grip,[data-p=remove]){display:inline-grid;place-items:center;width:36px;height:36px;min-width:0;min-height:0;padding:0;border:0!important;border-radius:7px;box-shadow:none;background:transparent!important;color:#62728b!important}
#encartesPortal #portalItems .grip-dots{width:8px;height:14px;background:radial-gradient(circle,currentColor 1.25px,transparent 1.5px) 0 0/4px 4.6px;pointer-events:none}
#encartesPortal #portalItems .portal-grip:is(:hover,:focus-visible){background:#e8efff!important;color:#30479b!important}
#encartesPortal #portalItems [data-p=remove]:is(:hover,:focus-visible){background:#ffebea!important;color:#a52f31!important}
body.inovary-theme #encartesPortal #portalItems .portal-item :is(.portal-grip,[data-p=remove]){color:#b3bed2!important}
body.inovary-theme #encartesPortal #portalItems .portal-item :is(.portal-grip,[data-p=remove]):is(:hover,:focus-visible){background:#34435a!important;color:white!important}
@media(max-width:700px){#encartesPortal #portalItems .portal-item{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 44px;gap:6px}#encartesPortal #portalItems .portal-item>strong{grid-row:1;grid-column:2/4}#encartesPortal #portalItems .portal-item>[data-p=remove]{grid-row:1;grid-column:4}#encartesPortal #portalItems .portal-item>label{grid-row:2;grid-column:span 2}#encartesPortal #portalItems .portal-item :is(.portal-grip,[data-p=remove]){width:44px;height:44px}}


@media(min-width:701px){#encartesPortal #portalItems .portal-item>[data-p=remove]{align-self:end;height:46px}}
@media(max-width:700px){#encartesPortal #portalItems .portal-item>[data-p=remove],#encartesPortal #portalItems .portal-item>.portal-grip,#encartesPortal #portalItems .portal-item>strong{align-self:center}#encartesPortal #portalItems .portal-item>strong{min-width:0;overflow-wrap:anywhere}#encartesPortal .portal-fields>label,.portal-dialog label{min-width:0}}


@media(min-width:701px){#encartesPortal #portalItems .portal-item>label{align-self:end;display:grid;align-content:end;margin:0}#encartesPortal #portalItems .portal-item>label :is(input,select){height:46px;margin-bottom:0}}
#encartesPortal button[data-p=delete-list]{color:#ab3838!important}body.inovary-theme #encartesPortal button[data-p=delete-list]{color:#ffaaaa!important}

/* Quiet row action, with a full touch target. */
#encartesPortal .portal-list-entry button[data-p="delete-list"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  width: auto;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #55627b !important;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
}
#encartesPortal .portal-list-entry button[data-p="delete-list"]::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 10v7m4-7v7'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.inovary-theme #encartesPortal .portal-list-entry button[data-p="delete-list"] {color: #c6cee2 !important}
#encartesPortal .portal-list-entry button[data-p="delete-list"]:is(:hover,:focus-visible) {
  background: #faeeee;
  color: #95383d !important;
}
body.inovary-theme #encartesPortal .portal-list-entry button[data-p="delete-list"]:is(:hover,:focus-visible) {
  background: #492f38;
  color: #ffd2d3 !important;
}
#encartesPortal .portal-list-entry button[data-p="delete-list"]:focus-visible {outline: 2px solid currentColor}
@media (max-width:700px) {
  #encartesPortal .portal-list-entry button[data-p="delete-list"] {align-self:flex-end}
}

#encartesPortal #portalItems .portal-item:has([data-grip]) {
  grid-template-columns: auto minmax(0,1fr) 140px 140px auto;
}
#encartesPortal #portalItems .portal-item :is([data-grip],[data-p="remove"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-height: 44px;
  padding-inline: 6px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}
@media (max-width:700px) {
  #encartesPortal #portalItems .portal-item:has([data-grip]) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #encartesPortal #portalItems .portal-item:has([data-grip]) > strong {
    grid-column: 1/-1; grid-row: 1;
  }
  #encartesPortal #portalItems .portal-item:has([data-grip]) > label {
    grid-column: auto; grid-row: 2; min-width: 0;
  }
  #encartesPortal #portalItems .portal-item > [data-grip] {
    grid-column: 1; grid-row: 3; justify-self: start;
  }
  #encartesPortal #portalItems .portal-item > [data-p="remove"] {
    grid-column: 2; grid-row: 3; justify-self: end;
  }
}

#encartesPortal .list-badges {display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
#encartesPortal .list-badges .portal-badge.list-edited {background:#e8edff;color:#31449b}
@media (max-width:760px) {
  #encartesPortal .portal-sidebar {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;padding:8px 16px}
  #encartesPortal .portal-sidebar .portal-brand {grid-area:1/1;margin:0;padding:0;border:0}
  #encartesPortal .portal-sidebar .portal-brand small,
  #encartesPortal .portal-sidebar .portal-sidebar-user,
  #encartesPortal .portal-sidebar .portal-nav-label {display:none}
  #encartesPortal .portal-sidebar .portal-menu-toggle {grid-area:1/2;display:flex;align-items:center;gap:6px;width:auto;min-height:44px;margin:0;padding:0 12px;font-size:14px}
  #encartesPortal .portal-menu-toggle::before {content:"Menu"}
  #encartesPortal .portal-sidebar nav {grid-column:1/-1;flex-direction:column;gap:4px;margin:6px 0}
  #encartesPortal.portal-collapsed .portal-sidebar nav {display:none}
  #encartesPortal .portal-sidebar nav button {justify-content:flex-start;min-height:44px}
  #encartesPortal .portal-header .portal-actions {flex-wrap:wrap;gap:6px}
  #encartesPortal .portal-header .portal-actions button {min-height:44px}
}
@media (max-width:760px) {
  #encartesPortal, #encartesPortal * {box-sizing:border-box}
  #encartesPortal .portal-workspace, #encartesPortal .portal-content,
  #encartesPortal .portal-item label {min-width:0}
  #encartesPortal .portal-item:not(:has([data-grip])) {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  #encartesPortal #portalItems .portal-item:not(:has([data-grip])) {grid-template-columns:repeat(2,minmax(0,1fr))}
  #encartesPortal #portalItems .portal-item:not(:has([data-grip])) > span:empty {display:none}
  #encartesPortal #portalItems .portal-item:not(:has([data-grip])) > strong {grid-column:1/-1}
  #encartesPortal #portalItems .portal-item:not(:has([data-grip])) > label {grid-column:auto}
}

#listDates [hidden] {display:none!important}
#listDates .list-date-row {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0}
#listDates [data-p="add-day"] {margin-top:8px}
#listDates {min-width:0}

#portalItems .portal-item-limit, #portalItems .portal-limit-note {grid-column:1/-1;font-size:13px}
#portalItems .portal-item-limit summary {cursor:pointer;width:fit-content;padding:6px 0;font-weight:600}
#portalItems .portal-item-limit label {display:grid;gap:4px;max-width:28rem}

#portalItems .portal-item-options {grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px}
#encartesPortal #portalItems .portal-feature {display:inline-flex;align-items:center;gap:7px;min-height:36px;cursor:pointer;font-weight:600}
#encartesPortal #portalItems .portal-feature input {width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#384bb7}
@media(max-width:760px){#encartesPortal #portalItems .portal-feature {min-height:44px}}
