
/* =========================================================
   EUROMAR FLOW V14 — DESIGN SYSTEM CORPORATIVO
   ========================================================= */
:root{
  --v14-radius-sm:8px;--v14-radius-md:12px;--v14-radius-lg:18px;
  --v14-motion:160ms cubic-bezier(.2,.8,.2,1);
  --v14-success:#22a06b;--v14-warning:#d97706;--v14-danger:#d84b5b;--v14-correction:#f08c2e;
}
.nav-section-label{padding:15px 12px 5px;color:var(--ui-text-3,var(--muted));font-size:7px;font-weight:900;letter-spacing:.14em;opacity:.78}
.nav-section-label:first-child{padding-top:5px}
.nav-item{transition:transform var(--v14-motion),background var(--v14-motion),color var(--v14-motion)}
.nav-item:hover{transform:translateX(2px)}

/* Task drawer */
#taskModal{align-items:stretch;justify-content:flex-end;padding:0;background:rgba(8,15,28,.44);backdrop-filter:blur(3px)}
#taskModal>.modal-card.large{width:min(940px,94vw);max-width:none;height:100vh;max-height:none;margin:0;border-radius:var(--v14-radius-lg) 0 0 var(--v14-radius-lg);overflow:hidden;display:flex;flex-direction:column;box-shadow:-28px 0 80px rgba(0,0,0,.24)}
#taskModal .modal-head{position:sticky;top:0;z-index:20;padding:18px 22px 12px;background:var(--ui-surface,var(--panel));border-bottom:0}
#taskModal #taskForm{overflow:auto;padding:0 22px 90px;scroll-behavior:smooth}
#taskModal .modal-footer{position:sticky;bottom:-90px;z-index:18;margin:18px -22px -90px;padding:12px 22px;background:color-mix(in srgb,var(--ui-surface,var(--panel)) 94%,transparent);backdrop-filter:blur(12px);border-top:1px solid var(--ui-border,var(--line))}
.v14-task-tabs{position:sticky;top:69px;z-index:19;display:flex;gap:4px;padding:0 22px 10px;background:var(--ui-surface,var(--panel));border-bottom:1px solid var(--ui-border,var(--line));overflow:auto}
.v14-task-tab{border:0;background:transparent;color:var(--ui-text-3,var(--muted));font-size:9px;font-weight:800;padding:8px 11px;border-radius:8px;cursor:pointer;white-space:nowrap;transition:all var(--v14-motion)}
.v14-task-tab:hover{background:var(--ui-hover,var(--panel-soft));color:var(--ui-text,var(--text))}
.v14-task-tab.active{background:var(--ui-accent-soft,var(--blue-soft));color:var(--ui-accent,var(--blue))}
.v14-tab-hidden{display:none!important}
#taskModal [data-v14-panel]{animation:v14Fade .16s ease}
@keyframes v14Fade{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}

/* Workflow editor */
.v14-workflow-row{grid-template-columns:30px 18px minmax(170px,1.4fr) minmax(150px,1fr) 95px minmax(130px,.8fr) 84px 28px!important;align-items:end;transition:background var(--v14-motion),border var(--v14-motion),transform var(--v14-motion)}
.v14-workflow-row.editable{cursor:default}
.v14-workflow-row.dragging{opacity:.45;transform:scale(.995)}
.v14-workflow-row.locked{background:color-mix(in srgb,var(--ui-surface-2,var(--panel-soft)) 78%,transparent)}
.v14-drag-handle{align-self:center;color:var(--ui-text-3,var(--muted));cursor:grab;font-weight:900;letter-spacing:-2px}
.v14-workflow-row.locked .v14-drag-handle{opacity:.2;cursor:not-allowed}
.v14-step-state{align-self:center;justify-self:end;padding:4px 7px;border-radius:999px;font-size:7px;font-weight:850;white-space:nowrap;background:var(--ui-surface-2,var(--panel-soft));color:var(--ui-text-3,var(--muted))}
.v14-step-state.completed{background:color-mix(in srgb,var(--v14-success) 16%,var(--ui-surface));color:var(--v14-success)}
.v14-step-state.active{background:var(--ui-accent-soft,var(--blue-soft));color:var(--ui-accent,var(--blue))}

/* Workflow execution */
.v14-flow-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.v14-flow-header h3{margin:3px 0 0;color:var(--ui-text,var(--text))}
.v14-progress-dial{display:grid;justify-items:end}.v14-progress-dial b{font-size:22px;color:var(--ui-accent,var(--blue))}.v14-progress-dial span{font-size:7px;color:var(--ui-text-3,var(--muted))}
.v14-progress-track{height:8px;border-radius:999px;overflow:hidden;background:var(--ui-surface-3,var(--gray-soft));margin-bottom:13px}.v14-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--v14-success),#48d296);transition:width .35s ease}
.v14-current-banner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border:1px solid color-mix(in srgb,var(--ui-accent,var(--blue)) 30%,var(--ui-border));border-radius:12px;background:var(--ui-accent-soft,var(--blue-soft));margin-bottom:12px}.v14-current-banner.rework{border-color:color-mix(in srgb,var(--v14-correction) 40%,var(--ui-border));background:color-mix(in srgb,var(--v14-correction) 10%,var(--ui-surface))}.v14-current-banner div{display:grid;gap:3px}.v14-current-banner span{font-size:7px;font-weight:850;color:var(--ui-text-3,var(--muted));letter-spacing:.08em}.v14-current-banner b{font-size:10px;color:var(--ui-text,var(--text))}
.v14-flow-list{display:grid;gap:0}.v14-flow-step{display:grid;grid-template-columns:38px 1fr;min-height:76px}.v14-flow-rail{position:relative;display:flex;justify-content:center}.v14-flow-rail:after{content:"";position:absolute;top:31px;bottom:-8px;width:2px;background:var(--ui-border,var(--line))}.v14-flow-step:last-child .v14-flow-rail:after{display:none}.v14-flow-rail span{position:relative;z-index:2;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--ui-border,var(--line));background:var(--ui-surface,var(--panel));color:var(--ui-text-3,var(--muted));font-size:9px;font-weight:900}.v14-flow-step.completed .v14-flow-rail span{border-color:var(--v14-success);background:var(--v14-success);color:white}.v14-flow-step.current .v14-flow-rail span,.v14-flow-step.active .v14-flow-rail span{border-color:var(--ui-accent,var(--blue));box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent,var(--blue)) 12%,transparent);color:var(--ui-accent,var(--blue))}
.v14-flow-content{padding:0 0 16px 7px}.v14-flow-title{display:flex;justify-content:space-between;gap:10px}.v14-flow-title>div{display:grid;gap:2px}.v14-flow-title b{font-size:10px;color:var(--ui-text,var(--text))}.v14-flow-title span,.v14-flow-meta{font-size:8px;color:var(--ui-text-3,var(--muted))}.v14-flow-title em{font-style:normal;font-size:8px;font-weight:850;color:var(--ui-text-2,var(--text))}.v14-flow-meta{margin-top:5px}.v14-delivery{margin-top:7px;padding:7px 9px;border-radius:8px;background:var(--ui-surface-2,var(--panel-soft));font-size:9px;color:var(--ui-text-2,var(--text))}.v14-delivery strong{display:block;font-size:7px;color:var(--ui-text-3,var(--muted));margin-bottom:2px}
.v14-rework-card{margin-top:7px;padding:8px 9px;border-left:3px solid var(--v14-correction);border-radius:8px;background:color-mix(in srgb,var(--v14-correction) 8%,var(--ui-surface));color:var(--ui-text-2,var(--text))}.v14-rework-card>div{display:flex;justify-content:space-between;gap:8px}.v14-rework-card strong,.v14-rework-card span{font-size:8px}.v14-rework-card p{margin:4px 0;font-size:9px}.v14-rework-card small{font-size:8px;color:var(--ui-text-3,var(--muted))}.v14-rework-card.completed{border-left-color:var(--v14-success)}
.v14-flow-actions{position:sticky;bottom:0;padding:10px 0 4px;background:linear-gradient(180deg,transparent,var(--ui-surface,var(--panel)) 22%);z-index:4}
.v14-workflow-loading{display:flex;align-items:center;gap:9px;padding:20px;color:var(--ui-text-3,var(--muted));font-size:9px}.v14-skeleton{width:22px;height:22px;border-radius:50%;border:3px solid var(--ui-border);border-top-color:var(--ui-accent);animation:v14Spin .7s linear infinite}@keyframes v14Spin{to{transform:rotate(360deg)}}

/* Dashboard / Meu Trabalho */
.v14-attention-strip,.v14-my-attention{display:grid;grid-template-columns:1.35fr repeat(4,1fr);gap:1px;margin:12px 0 14px;overflow:hidden;border:1px solid var(--ui-border,var(--line));border-radius:12px;background:var(--ui-border,var(--line))}.v14-attention-strip>div,.v14-my-attention>div{padding:10px 12px;background:var(--ui-surface,var(--panel));display:grid;gap:3px}.v14-attention-strip span,.v14-my-attention span,.v14-my-attention small{font-size:8px;color:var(--ui-text-3,var(--muted))}.v14-attention-strip b,.v14-my-attention b,.v14-my-attention strong{font-size:17px;color:var(--ui-text,var(--text))}.v14-my-attention{grid-template-columns:1.4fr repeat(3,1fr)}

/* Modal de retrabalho */
.v14-rework-modal{max-width:560px}.v14-rework-modal .info-box{line-height:1.5;font-size:9px}

/* Acessibilidade e microinterações */
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-accent,var(--blue));outline-offset:2px}
.btn,.icon-btn,.view-btn{transition:transform var(--v14-motion),filter var(--v14-motion),background var(--v14-motion)}.btn:active,.icon-btn:active{transform:scale(.98)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
@media(max-width:900px){#taskModal>.modal-card.large{width:100vw;border-radius:0}.v14-current-banner{grid-template-columns:1fr}.v14-workflow-row{grid-template-columns:30px 1fr!important}.v14-workflow-row>*{grid-column:2}.v14-workflow-row>.workflow-step-order{grid-column:1;grid-row:1/span 7}.v14-workflow-row>.v14-drag-handle{display:none}.v14-attention-strip,.v14-my-attention{grid-template-columns:repeat(2,1fr)}.v14-attention-strip>div:first-child,.v14-my-attention>div:first-child{grid-column:1/-1}}


/* =========================================================
   EUROMAR FLOW V14.2 — MOBILE / PWA
   ========================================================= */
.mobile-bottom-nav,.mobile-menu-backdrop{display:none}
.mobile-app-card,.push-mobile-card{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:var(--v14-radius-md,12px);
  background:var(--ui-surface,var(--panel));
}
.mobile-app-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.mobile-app-card-copy{display:grid;gap:5px}
.mobile-app-card h3,.push-mobile-card h3{margin:0;color:var(--ui-text,var(--text))}
.mobile-app-card p,.push-mobile-card p{margin:0;color:var(--ui-text-3,var(--muted));font-size:9px;line-height:1.5}
.pwa-installed-badge{
  display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;
  background:color-mix(in srgb,var(--v14-success,#22a06b) 14%,var(--ui-surface));
  color:var(--v14-success,#22a06b);font-size:8px;font-weight:900;
}
.push-mobile-card .section-row{align-items:flex-start}
.current-device-summary{
  display:grid;gap:3px;padding:10px 12px;margin:10px 0;
  border-radius:10px;background:var(--ui-surface-2,var(--panel-soft));
  border:1px solid var(--ui-border,var(--line));
}
.current-device-summary b{font-size:9px;color:var(--ui-text,var(--text))}
.current-device-summary span{font-size:8px;color:var(--ui-text-3,var(--muted))}
.push-devices-list{display:grid;gap:7px}
.push-device-row{
  display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;
  padding:9px 10px;border:1px solid var(--ui-border,var(--line));border-radius:10px;
}
.push-device-row.current{border-color:color-mix(in srgb,var(--ui-accent,var(--blue)) 35%,var(--ui-border))}
.push-device-icon{
  display:grid;place-items:center;width:34px;height:34px;border-radius:9px;
  background:var(--ui-accent-soft,var(--blue-soft));color:var(--ui-accent,var(--blue));
  font-size:8px;font-weight:900;
}
.push-device-copy{display:grid;gap:2px;min-width:0}
.push-device-copy b{font-size:9px;color:var(--ui-text,var(--text))}
.push-device-copy span,.push-device-copy small{
  font-size:7px;color:var(--ui-text-3,var(--muted));white-space:normal
}

@media(max-width:820px){
  html,body{min-height:100%;overscroll-behavior-y:none}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .app-shell{display:block!important}
  .main{
    margin-left:0!important;width:100%!important;min-width:0!important;
    padding-bottom:calc(82px + env(safe-area-inset-bottom));
  }

  .sidebar{
    position:fixed!important;z-index:12000!important;top:0!important;bottom:0!important;left:0!important;
    width:min(86vw,320px)!important;height:100dvh!important;
    transform:translateX(-105%);transition:transform .2s ease!important;
    box-shadow:24px 0 60px rgba(0,0,0,.28);
    padding-bottom:max(14px,env(safe-area-inset-bottom));
  }
  .sidebar.mobile-open{transform:translateX(0)}
  .mobile-menu-backdrop{
    display:block;position:fixed;inset:0;z-index:11990;background:rgba(5,12,18,.55);
    backdrop-filter:blur(2px);
  }
  .mobile-menu-backdrop.hidden{display:none!important}

  .topbar{
    position:sticky!important;top:0!important;z-index:9000!important;
    min-height:68px!important;padding:10px 12px!important;
    padding-top:max(10px,env(safe-area-inset-top))!important;
    background:color-mix(in srgb,var(--ui-bg,var(--bg)) 94%,transparent)!important;
    backdrop-filter:blur(14px);
  }
  .topbar>div:first-child{min-width:0}
  .breadcrumb{font-size:7px!important}
  #pageTitle{font-size:20px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44vw}
  .top-actions{gap:6px!important}
  .global-search-wrap,.sync-pill,#newTaskTop{display:none!important}
  .bell-btn{width:42px!important;height:42px!important}

  .page{padding:10px 10px 6px!important}
  .panel,.dashboard-hero,.hero-card{border-radius:13px!important}
  .dashboard-grid-v6,.v6-dashboard-grid,.team-dashboard-grid{grid-template-columns:1fr!important}
  .v6-kpis,.v124-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v14-attention-strip,.v14-my-attention{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v14-attention-strip>div:first-child,.v14-my-attention>div:first-child{grid-column:1/-1}

  .tasks-toolbar{align-items:stretch!important;gap:8px!important}
  .tasks-toolbar,.filters{overflow:visible!important}
  .filters{
    display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;
    padding-bottom:4px!important;-webkit-overflow-scrolling:touch;
  }
  .filters>*{min-width:150px!important;scroll-snap-align:start}
  .views{flex:0 0 auto}
  .table-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch}
  table{min-width:760px}

  #taskModal{
    padding:0!important;align-items:stretch!important;justify-content:stretch!important;
    background:var(--ui-bg,var(--bg))!important;
  }
  #taskModal>.modal-card.large{
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;border:0!important;
  }
  #taskModal .modal-head{
    padding:calc(10px + env(safe-area-inset-top)) 13px 9px!important;
  }
  #taskModal #taskForm{
    padding:0 12px calc(100px + env(safe-area-inset-bottom))!important;
  }
  .v14-task-tabs{
    top:67px!important;padding:0 12px 8px!important;
    scrollbar-width:none;
  }
  .v14-task-tabs::-webkit-scrollbar{display:none}
  .v14-task-tab{min-height:40px!important;font-size:9px!important}
  #taskModal .modal-footer{
    margin:12px -12px calc(-100px - env(safe-area-inset-bottom))!important;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
  }
  #taskModal .form-grid{grid-template-columns:1fr!important}
  #taskModal .span-2{grid-column:1!important}
  #taskModal input,#taskModal select,#taskModal textarea{font-size:16px!important}
  #taskModal .btn{min-height:44px}

  .notification-panel{
    position:fixed!important;left:8px!important;right:8px!important;
    top:calc(62px + env(safe-area-inset-top))!important;
    width:auto!important;max-height:calc(100dvh - 146px - env(safe-area-inset-bottom))!important;
    border-radius:15px!important;
  }

  .mobile-bottom-nav{
    position:fixed;display:grid;grid-template-columns:repeat(5,1fr);
    left:0;right:0;bottom:0;z-index:11000;
    min-height:66px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));
    background:color-mix(in srgb,var(--ui-surface,var(--panel)) 96%,transparent);
    border-top:1px solid var(--ui-border,var(--line));backdrop-filter:blur(18px);
    box-shadow:0 -10px 28px rgba(0,0,0,.08);
  }
  .mobile-bottom-nav button{
    min-width:0;min-height:52px;border:0;background:transparent;color:var(--ui-text-3,var(--muted));
    display:grid;place-items:center;align-content:center;gap:3px;border-radius:10px;cursor:pointer;
    font-size:7px;font-weight:800;
  }
  .mobile-bottom-nav button svg{
    width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round;
  }
  .mobile-bottom-nav button.active{color:var(--ui-accent,var(--blue));background:var(--ui-accent-soft,var(--blue-soft))}
  .mobile-bottom-nav .mobile-new-task{color:white}
  .mobile-plus{
    display:grid;place-items:center;width:38px;height:38px;margin-top:-18px;border-radius:13px;
    background:var(--ui-accent,var(--blue));color:white;font-size:23px;line-height:1;
    box-shadow:0 8px 22px color-mix(in srgb,var(--ui-accent,var(--blue)) 35%,transparent);
  }
  .mobile-new-task>span:last-child{color:var(--ui-text-3,var(--muted))}

  .mobile-app-card{align-items:stretch;flex-direction:column}
  .mobile-app-card .btn{width:100%;min-height:44px}
  .push-mobile-card .section-row{display:grid!important;gap:10px!important}
  .push-mobile-card .push-enable-btn{width:100%!important;min-height:44px!important}
  .push-device-row{grid-template-columns:36px 1fr!important}
  .push-device-row .btn{grid-column:2;width:max-content}

  button,.btn,.icon-btn,.nav-item{touch-action:manipulation}
}

@media(max-width:460px){
  .v6-kpis,.v124-kpis{grid-template-columns:1fr 1fr!important}
  .v124-dashboard-hero{padding:15px!important}
  .v124-dashboard-team-filter,.v124-team-menu{min-width:0!important;width:100%!important}
  .notification-tabs{overflow-x:auto}
  .notification-tabs button{white-space:nowrap}
}


/* =========================================================
   EUROMAR FLOW V14.2.1 — CORREÇÃO CENTRAL DE ATENÇÃO
   ========================================================= */

/* Regra de estado tem prioridade sobre o layout do painel. */
#notificationPanel.notification-panel.hidden{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Quando aberta, comporta-se como popover, não como painel fixo da página. */
#notificationPanel.notification-panel:not(.hidden){
  display:flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.notification-head-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.notification-close-btn{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0!important;
  border:1px solid var(--ui-border,var(--line))!important;
  border-radius:8px;
  background:var(--ui-surface-2,var(--panel-soft))!important;
  color:var(--ui-text-2,var(--text))!important;
  font-size:18px!important;
  line-height:1!important;
  cursor:pointer;
}

.notification-close-btn:hover{
  background:var(--ui-hover,var(--panel-soft))!important;
  color:var(--ui-text,var(--text))!important;
}

@media(min-width:821px){
  #notificationPanel.notification-panel{
    position:absolute!important;
    top:calc(100% + 9px)!important;
    right:0!important;
    left:auto!important;
    width:min(440px,calc(100vw - 32px))!important;
    max-height:min(680px,calc(100vh - 88px))!important;
    z-index:10050!important;
  }
}

@media(max-width:820px){
  #notificationPanel.notification-panel.hidden{
    display:none!important;
  }
}


/* =========================================================
   EUROMAR FLOW V14.2.2 — MOBILE REDESIGN
   Corrige regras antigas que ocultavam textos do menu em telas <=760px.
   ========================================================= */

.mobile-sidebar-close{display:none}

@media(max-width:820px){

  /* --- Drawer "Mais" --- */
  .sidebar{
    width:min(88vw,350px)!important;
    max-width:350px!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    background:var(--sidebar)!important;
  }

  /* Anula regras legadas que transformavam a sidebar em barra de 74px */
  .sidebar .euromar-side-brand>div,
  .sidebar .profile-text,
  .sidebar .nav-label{
    display:block!important;
  }

  .sidebar .euromar-side-brand{
    min-height:78px!important;
    padding:calc(12px + env(safe-area-inset-top)) 14px 12px!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 36px!important;
    align-items:center!important;
    gap:10px!important;
    border-bottom:1px solid rgba(255,255,255,.08)!important;
    justify-content:initial!important;
  }

  .sidebar .euromar-logo-shell{
    width:40px!important;
    height:40px!important;
    border-radius:11px!important;
  }

  .sidebar .euromar-side-brand>div{
    min-width:0!important;
  }

  .sidebar .euromar-side-brand strong{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    font-size:12px!important;
    color:#fff!important;
    white-space:nowrap!important;
  }

  .sidebar .euromar-side-brand>div>span{
    display:block!important;
    margin-top:3px!important;
    font-size:8px!important;
    color:#8fa2b0!important;
  }

  .mobile-sidebar-close{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.10)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.045)!important;
    color:#dce8ef!important;
    font-size:22px!important;
    line-height:1!important;
    cursor:pointer!important;
  }

  .sidebar .nav{
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
    padding:8px 10px 12px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    flex:1 1 auto!important;
  }
  .sidebar .nav::-webkit-scrollbar{display:none!important}

  .sidebar .nav-section-label{
    padding:14px 10px 5px!important;
    font-size:7px!important;
    letter-spacing:.13em!important;
    color:#738a9a!important;
  }

  .sidebar .nav-item{
    width:100%!important;
    min-height:43px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
    justify-content:initial!important;
    border-radius:10px!important;
    text-align:left!important;
    transform:none!important;
  }

  .sidebar .nav-item::before{
    left:-10px!important;
  }

  .sidebar .nav-item .nav-icon{
    width:28px!important;
    height:28px!important;
    display:grid!important;
    place-items:center!important;
    flex:none!important;
  }

  .sidebar .nav-item .nav-icon svg{
    width:18px!important;
    height:18px!important;
  }

  .sidebar .nav-item .nav-label{
    width:auto!important;
    min-width:0!important;
    text-align:left!important;
    font-size:10px!important;
    font-weight:760!important;
    color:inherit!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .sidebar .sidebar-spacer{
    display:none!important;
  }

  .sidebar .profile-box{
    flex:0 0 auto!important;
    margin:0 10px calc(10px + env(safe-area-inset-bottom))!important;
    padding:9px 10px!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:9px!important;
    align-items:center!important;
    border:1px solid rgba(255,255,255,.09)!important;
    background:rgba(255,255,255,.035)!important;
  }

  .sidebar .profile-box .avatar{
    width:36px!important;
    height:36px!important;
    border-radius:10px!important;
  }

  .sidebar .profile-text{
    min-width:0!important;
  }

  .sidebar .profile-text strong{
    display:block!important;
    font-size:10px!important;
    color:#fff!important;
  }

  .sidebar .profile-text span{
    display:block!important;
    margin-top:2px!important;
    font-size:8px!important;
    color:#8fa2b0!important;
  }

  .sidebar #logoutBtn{
    width:auto!important;
    height:34px!important;
    padding:0 9px!important;
    font-size:8px!important;
    color:#ff9ba4!important;
    border:1px solid rgba(255,91,105,.18)!important;
    background:rgba(255,91,105,.07)!important;
  }

  /* --- Barra superior mobile limpa --- */
  .topbar{
    min-height:62px!important;
    margin-bottom:4px!important;
  }
  .breadcrumb{
    display:none!important;
  }
  #pageTitle{
    max-width:60vw!important;
    font-size:21px!important;
    line-height:1.1!important;
  }
  .bell-btn{
    width:40px!important;
    height:40px!important;
  }

  /* --- Conteúdo --- */
  .page{
    padding:8px 10px 8px!important;
  }

  .dashboard-hero,
  .v124-dashboard-hero{
    padding:14px!important;
    gap:12px!important;
  }

  .dashboard-hero h2,
  .v124-dashboard-hero h2{
    font-size:20px!important;
    line-height:1.15!important;
  }

  .dashboard-hero p,
  .v124-dashboard-hero p{
    font-size:9px!important;
    line-height:1.45!important;
  }

  .v124-dashboard-team-filter{
    padding-top:4px!important;
  }

  .v124-team-toggle{
    min-height:42px!important;
    font-size:10px!important;
  }

  /* Cards/KPIs legíveis no celular */
  .v6-kpis,
  .v124-kpis{
    gap:8px!important;
  }

  .metric,
  .v6-kpis>button,
  .v6-kpis>.metric,
  .v124-kpis>button,
  .v124-kpis>.metric{
    min-height:92px!important;
    padding:12px!important;
    border-radius:12px!important;
  }

  .metric strong,
  .v6-kpis strong,
  .v124-kpis strong{
    font-size:24px!important;
  }

  /* Tabela vira cartão rolável sem estourar a página */
  .table-wrap{
    max-width:100%!important;
    border-radius:11px!important;
  }

  /* Meu Trabalho: cards em uma coluna */
  .work-grid,
  .my-work-grid,
  .member-status-grid,
  .v14-my-work-grid{
    grid-template-columns:1fr!important;
  }

  /* Chat e task drawer */
  #taskModal .modal-head h2{
    font-size:16px!important;
    line-height:1.25!important;
  }

  .workflow-status-line{
    flex-wrap:wrap!important;
  }

  .workflow-step-card{
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:8px!important;
  }

  .workflow-step-card>small{
    grid-column:2!important;
    text-align:left!important;
  }

  .v13-chat-bubble{
    width:88%!important;
  }

  /* Central de Atenção como sheet controlado */
  #notificationPanel.notification-panel{
    left:8px!important;
    right:8px!important;
    width:auto!important;
    max-height:min(68dvh,620px)!important;
  }

  /* Bottom nav: garante que continue a navegação principal */
  .mobile-bottom-nav{
    min-height:64px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }

  .mobile-bottom-nav button{
    min-height:50px!important;
    font-size:7.5px!important;
  }

  .mobile-bottom-nav button svg{
    width:19px!important;
    height:19px!important;
  }

  .mobile-plus{
    width:40px!important;
    height:40px!important;
  }
}

/* iPhone pequeno */
@media(max-width:390px){
  #pageTitle{font-size:19px!important;max-width:58vw!important}
  .v6-kpis,.v124-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .metric,.v6-kpis>button,.v124-kpis>button{min-height:84px!important;padding:10px!important}
  .metric strong,.v6-kpis strong,.v124-kpis strong{font-size:22px!important}
  .sidebar{width:91vw!important}
}

/* Tela extremamente estreita: prioriza legibilidade */
@media(max-width:340px){
  .v6-kpis,.v124-kpis{grid-template-columns:1fr!important}
  #pageTitle{font-size:18px!important}
}

/* V14.2.5 — e-mail e reabertura */
.email-profile-fields{margin-top:10px}
.email-enabled-label select{min-height:42px}
@media(max-width:820px){
  .email-profile-fields{grid-template-columns:1fr!important}
}


/* =========================================================
   EUROMAR FLOW V15.0 — MEU TRABALHO INTELIGENTE
   ========================================================= */
.v15-work-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;border:1px solid var(--ui-border,var(--line));border-radius:20px;background:linear-gradient(135deg,var(--ui-surface,#fff),color-mix(in srgb,var(--ui-surface,#fff) 82%,#b70005 18%));box-shadow:0 12px 35px rgba(23,28,38,.07);overflow:hidden;position:relative}
.v15-work-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-110px;top:-120px;border:38px solid rgba(183,0,5,.06)}
.v15-hero-copy{position:relative;z-index:1}.v15-hero-copy h2{font-size:26px;margin:5px 0 7px;letter-spacing:-.035em}.v15-hero-copy p{margin:0;color:var(--ui-muted,var(--muted));max-width:690px;line-height:1.55}
.v15-day-ring{--v15-progress:0;width:110px;height:110px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:conic-gradient(#b70005 calc(var(--v15-progress)*1%),color-mix(in srgb,var(--ui-border,var(--line)) 75%,transparent) 0);position:relative;z-index:1}.v15-day-ring:after{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--ui-surface,#fff)}.v15-day-ring div{position:relative;z-index:1;text-align:center}.v15-day-ring strong{font-size:23px;display:block}.v15-day-ring span{font-size:10px;color:var(--ui-muted,var(--muted));font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.v15-period-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.v15-period-card{position:relative;text-align:left;border:1px solid var(--ui-border,var(--line));background:var(--ui-surface,#fff);border-radius:15px;padding:15px 16px;cursor:pointer;transition:.18s ease;box-shadow:0 4px 14px rgba(23,28,38,.035)}.v15-period-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(23,28,38,.08)}.v15-period-card.active{outline:2px solid color-mix(in srgb,#b70005 58%,transparent);border-color:#b70005}.v15-period-card span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--ui-muted,var(--muted))}.v15-period-card strong{display:block;font-size:28px;margin:5px 0}.v15-period-card small{color:var(--ui-muted,var(--muted));font-size:10px}.v15-period-card.danger strong{color:#b70005}.v15-period-card.danger:before{content:"";width:7px;height:7px;border-radius:50%;background:#d92028;position:absolute;right:14px;top:14px;box-shadow:0 0 0 0 rgba(217,32,40,.45);animation:v15Pulse 1.8s infinite}.v15-period-card.danger:not(:has(strong:not(:empty)))::before{display:none}@keyframes v15Pulse{0%{box-shadow:0 0 0 0 rgba(217,32,40,.45)}70%{box-shadow:0 0 0 8px rgba(217,32,40,0)}100%{box-shadow:0 0 0 0 rgba(217,32,40,0)}}
.v15-day-progress{margin-top:14px;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:20px}.v15-day-progress h3{font-size:14px;margin:4px 0}.v15-day-progress p{margin:0;color:var(--ui-muted,var(--muted));font-size:10px}.v15-day-progress-bar{display:flex;align-items:center;gap:10px;min-width:300px}.v15-day-progress-bar>div{height:9px;border-radius:99px;background:color-mix(in srgb,var(--ui-border,var(--line)) 70%,transparent);overflow:hidden;flex:1}.v15-day-progress-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b70005,#e44c50);transition:width .3s ease}.v15-day-progress-bar b{font-size:12px;min-width:36px;text-align:right}
.v15-attention-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:14px;margin-top:14px}.v15-dont-forget,.v15-health-panel{padding:18px}.v15-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.v15-section-head h2{font-size:15px;margin:3px 0 0}.v15-reminders{display:grid;gap:7px}.v15-reminders>button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--ui-border,var(--line));background:color-mix(in srgb,var(--ui-surface,#fff) 94%,#b70005 6%);border-radius:11px;padding:9px 10px;cursor:pointer}.v15-reminders>button>b{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#b70005;color:#fff;font-size:10px}.v15-reminders>button div{display:flex;flex-direction:column;min-width:0}.v15-reminders>button strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v15-reminders>button span{font-size:9px;color:var(--ui-muted,var(--muted));margin-top:2px}.v15-clear-day{padding:20px;text-align:center;border:1px dashed var(--ui-border,var(--line));border-radius:12px}.v15-clear-day strong,.v15-clear-day span{display:block}.v15-clear-day span{margin-top:4px;color:var(--ui-muted,var(--muted));font-size:10px}
.v15-health-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v15-health-list button{border:1px solid var(--ui-border,var(--line));background:var(--ui-surface,#fff);border-radius:11px;padding:12px;text-align:left;cursor:pointer}.v15-health-list span{font-size:9px;color:var(--ui-muted,var(--muted));display:block}.v15-health-list b{display:block;font-size:20px;margin-top:3px}
.v15-task-zone{margin-top:18px}.v15-task-zone-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:10px}.v15-task-zone-head h2{font-size:20px;margin:3px 0}.v15-task-zone-head p{margin:0;color:var(--ui-muted,var(--muted));font-size:10px}.v15-filter-pills{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.v15-filter-pills button{border:1px solid var(--ui-border,var(--line));background:var(--ui-surface,#fff);border-radius:999px;padding:7px 11px;font-size:9px;font-weight:850;cursor:pointer}.v15-filter-pills button.active{background:#b70005;border-color:#b70005;color:#fff}
.v15-work-list{display:grid;gap:9px}.v15-work-card{position:relative;display:grid;grid-template-columns:5px 1fr;border:1px solid var(--ui-border,var(--line));border-radius:14px;background:var(--ui-surface,#fff);overflow:hidden;box-shadow:0 4px 16px rgba(23,28,38,.035);transition:.16s ease}.v15-work-card:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(23,28,38,.08);border-color:color-mix(in srgb,var(--ui-border,var(--line)) 35%,#b70005 65%)}.v15-card-rail{background:#9aa1ad}.v15-work-card.attention .v15-card-rail{background:#d89216}.v15-work-card.urgent .v15-card-rail,.v15-work-card.critical .v15-card-rail{background:#c9151b}.v15-work-card.stale .v15-card-rail{background:#6e7480}.v15-card-body{padding:13px 14px}.v15-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.v15-code-row{display:flex;align-items:center;gap:7px;min-height:16px}.v15-code-row>span{font-size:8px;color:var(--ui-muted,var(--muted));font-weight:900;letter-spacing:.06em}.v15-card-title-wrap h3{font-size:12px;margin:3px 0 0;line-height:1.35}.v15-urgency{display:inline-flex;align-items:center;gap:5px;font-size:8px;letter-spacing:.07em;color:#c9151b}.v15-urgency i{width:6px;height:6px;border-radius:50%;background:currentColor}.v15-urgency.critical i,.v15-urgency.urgent i{animation:v15DotPulse 1.35s infinite}@keyframes v15DotPulse{50%{transform:scale(1.55);opacity:.45}}
.v15-card-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;color:var(--ui-muted,var(--muted));font-size:9px}.v15-card-meta span{display:inline-flex;align-items:center;gap:5px}.v15-card-meta .avatar-sm{width:20px;height:20px}.v15-card-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.v15-chip{font-size:8px;font-weight:900;border-radius:999px;padding:4px 7px;background:color-mix(in srgb,var(--ui-border,var(--line)) 70%,transparent)}.v15-chip.routine{background:#e8f0ff;color:#2e5fab}.v15-chip.rework{background:#fff0d7;color:#a85b00}.v15-chip.block{background:#ffe4e5;color:#b70005}.v15-chip.stale{background:#eceef1;color:#646b77}
.v15-progress-line{margin-top:10px}.v15-progress-line>div:first-child{display:flex;justify-content:space-between;color:var(--ui-muted,var(--muted));font-size:8px;margin-bottom:4px}.v15-progress-track{height:5px;background:color-mix(in srgb,var(--ui-border,var(--line)) 75%,transparent);border-radius:99px;overflow:hidden}.v15-progress-track i{display:block;height:100%;background:#b70005;border-radius:99px}.v15-card-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:10px}.v15-due{display:flex;flex-direction:column}.v15-due b{font-size:9px}.v15-due span{font-size:8px;color:var(--ui-muted,var(--muted));margin-top:2px}.v15-due.critical b,.v15-due.urgent b{color:#c9151b}.v15-due.attention b{color:#a85b00}.v15-card-actions{display:flex;gap:5px}.v15-card-actions .btn{font-size:8px;padding:7px 9px}.v15-empty-state{text-align:center;border:1px dashed var(--ui-border,var(--line));border-radius:14px;padding:34px}.v15-empty-state strong,.v15-empty-state span{display:block}.v15-empty-state span{color:var(--ui-muted,var(--muted));font-size:10px;margin-top:5px}
@media(max-width:1050px){.v15-period-grid{grid-template-columns:1fr 1fr}.v15-attention-grid{grid-template-columns:1fr}.v15-day-progress{align-items:flex-start;flex-direction:column}.v15-day-progress-bar{min-width:0;width:100%}}
@media(max-width:700px){.v15-work-hero{padding:19px;align-items:flex-start}.v15-hero-copy h2{font-size:20px}.v15-day-ring{width:80px;height:80px}.v15-day-ring strong{font-size:17px}.v15-period-grid{grid-template-columns:1fr 1fr;gap:8px}.v15-period-card{padding:12px}.v15-period-card strong{font-size:23px}.v15-health-list{grid-template-columns:1fr 1fr}.v15-task-zone-head{align-items:flex-start;flex-direction:column}.v15-filter-pills{justify-content:flex-start;overflow-x:auto;max-width:100%;flex-wrap:nowrap;padding-bottom:3px}.v15-card-top,.v15-card-foot{align-items:flex-start;flex-direction:column}.v15-card-actions{width:100%}.v15-card-actions .btn{flex:1}.v15-card-meta{gap:7px}.v15-card-body{padding:12px}.v15-day-progress-bar{width:100%}}


/* =========================================================
   EUROMAR FLOW V15.0.1 — DROPZONE DE ARQUIVOS
   ========================================================= */
.file-dropzone{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:126px;
  margin:12px 0 16px;
  padding:20px;
  border:2px dashed var(--ui-border)!important;
  border-radius:16px;
  background:var(--ui-surface-2)!important;
  color:var(--ui-text)!important;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
  outline:none;
}
.file-dropzone:hover,
.file-dropzone:focus-visible{
  border-color:var(--ui-accent)!important;
  background:var(--ui-hover)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-accent) 10%,transparent);
}
.file-dropzone.drag-over{
  border-color:var(--ui-accent)!important;
  background:var(--ui-accent-soft)!important;
  transform:scale(1.008);
  box-shadow:0 12px 30px color-mix(in srgb,var(--ui-accent) 16%,transparent);
}
.file-dropzone.drop-success{
  border-color:#25a66a!important;
  background:color-mix(in srgb,#25a66a 10%,var(--ui-surface))!important;
}
.file-dropzone.is-uploading{
  opacity:.7;
  pointer-events:none;
}
.file-dropzone.is-uploading::after{
  content:"Enviando...";
  position:absolute;
  inset:auto 14px 10px auto;
  font-size:10px;
  font-weight:800;
  color:var(--ui-text-3);
}
.file-dropzone-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:14px;
  background:var(--ui-accent-soft)!important;
  color:var(--ui-accent)!important;
  font-size:26px;
  font-weight:800;
  line-height:1;
}
.file-dropzone-copy{
  display:grid;
  gap:3px;
  text-align:left;
}
.file-dropzone-copy b{
  font-size:13px;
  color:var(--ui-text)!important;
}
.file-dropzone-copy span{
  font-size:11px;
  font-weight:700;
  color:var(--ui-accent)!important;
}
.file-dropzone-copy small{
  font-size:9px;
  color:var(--ui-text-3)!important;
}
.file-dropzone-compact{
  min-height:94px;
  margin:7px 0 6px;
  padding:14px;
}
.field-label{
  display:block;
  font-weight:700;
  margin-bottom:3px;
}
@media(max-width:680px){
  .file-dropzone{
    min-height:112px;
    padding:16px 12px;
    gap:10px;
  }
  .file-dropzone-icon{
    width:40px;height:40px;flex-basis:40px;font-size:22px;
  }
  .file-dropzone-copy b{font-size:12px}
}


/* =========================================================
   EUROMAR FLOW V15.1.0 — HERO DINÂMICO COM EMOJI
   ========================================================= */

.v15-work-hero{
  isolation:isolate;
  min-height:178px;
}

.v15-work-hero:after{
  display:none!important;
}

.v1510-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

.v1510-orb{
  position:absolute;
  display:block;
  border-radius:999px;
  filter:blur(58px);
  opacity:.20;
  will-change:transform;
}

.v1510-orb-a{
  width:260px;
  height:260px;
  left:-70px;
  top:-95px;
  background:#4aa8ff;
  animation:v1510FloatA 13s ease-in-out infinite;
}

.v1510-orb-b{
  width:300px;
  height:300px;
  right:16%;
  top:-145px;
  background:#725cff;
  opacity:.15;
  animation:v1510FloatB 17s ease-in-out infinite;
}

.v1510-orb-c{
  width:270px;
  height:270px;
  right:-95px;
  bottom:-130px;
  background:#b70005;
  opacity:.17;
  animation:v1510FloatC 15s ease-in-out infinite;
}

.v1510-grid{
  position:absolute;
  inset:-30px;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px);
  background-size:30px 30px;
  opacity:.46;
  -webkit-mask-image:linear-gradient(90deg,transparent,black 18%,black 82%,transparent);
  mask-image:linear-gradient(90deg,transparent,black 18%,black 82%,transparent);
  animation:v1510Grid 24s linear infinite;
}

.v1510-shine{
  position:absolute;
  width:38%;
  height:240%;
  top:-70%;
  left:-52%;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.055),transparent);
  animation:v1510Shine 11s ease-in-out infinite;
}

.v15-hero-copy{
  position:relative;
  z-index:2;
  flex:1 1 auto;
  min-width:0;
}

.v1510-hero-status{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:21px;
  flex:0 0 auto;
  padding-right:2px;
}

.v1510-emoji-wrap{
  width:104px;
  height:104px;
  display:grid;
  place-items:center;
  border-radius:30px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.075);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 14px 34px rgba(0,0,0,.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.v1510-emoji{
  display:block;
  font-size:62px;
  line-height:1;
  transform-origin:50% 70%;
  filter:drop-shadow(0 9px 11px rgba(0,0,0,.14));
  animation:v1510EmojiFloat 3.8s ease-in-out infinite;
}

.v1510-mood-message{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:15px;
  width:max-content;
  max-width:100%;
  padding:8px 11px;
  border:1px solid color-mix(in srgb,var(--ui-border,var(--line)) 75%,transparent);
  border-radius:12px;
  background:color-mix(in srgb,var(--ui-surface,#fff) 68%,transparent);
  box-shadow:0 6px 20px rgba(0,0,0,.035);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.v1510-mood-message>div{
  display:grid;
  gap:1px;
}

.v1510-mood-message strong{
  font-size:10px;
  color:var(--ui-text,var(--text));
}

.v1510-mood-message small{
  font-size:8px;
  color:var(--ui-muted,var(--muted));
}

.v1510-mood-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#4aa8ff;
  box-shadow:0 0 0 0 rgba(74,168,255,.36);
  animation:v1510MoodPulse 2.2s ease-out infinite;
}

/* Estados do fundo e emoji */
.v1510-mood-idle .v1510-orb-a{background:#45637c;opacity:.14}
.v1510-mood-idle .v1510-orb-b{background:#73535f;opacity:.13}
.v1510-mood-idle .v1510-orb-c{background:#b70005;opacity:.21}
.v1510-mood-idle .v1510-mood-dot{background:#d74b52;box-shadow:0 0 0 0 rgba(215,75,82,.36)}
.v1510-mood-idle .v1510-emoji{animation:v1510EmojiSad 4.5s ease-in-out infinite}

.v1510-mood-started .v1510-orb-a{background:#557da6}
.v1510-mood-started .v1510-orb-b{background:#776893}
.v1510-mood-started .v1510-orb-c{background:#c35f38}
.v1510-mood-started .v1510-mood-dot{background:#d9953c}

.v1510-mood-progress .v1510-orb-a{background:#308edb;opacity:.22}
.v1510-mood-progress .v1510-orb-b{background:#5269da;opacity:.18}
.v1510-mood-progress .v1510-orb-c{background:#b70005;opacity:.14}
.v1510-mood-progress .v1510-mood-dot{background:#409de5}

.v1510-mood-almost .v1510-orb-a{background:#22a8d6;opacity:.23}
.v1510-mood-almost .v1510-orb-b{background:#416fd3;opacity:.19}
.v1510-mood-almost .v1510-orb-c{background:#37a36c;opacity:.17}
.v1510-mood-almost .v1510-mood-dot{background:#2bb477}
.v1510-mood-almost .v1510-emoji{animation:v1510EmojiAlmost 2.8s ease-in-out infinite}

.v1510-mood-complete .v1510-orb-a{background:#28b779;opacity:.25}
.v1510-mood-complete .v1510-orb-b{background:#26a6d1;opacity:.19}
.v1510-mood-complete .v1510-orb-c{background:#d8a624;opacity:.20}
.v1510-mood-complete .v1510-mood-dot{background:#28b779}
.v1510-mood-complete .v1510-emoji{
  animation:v1510EmojiCelebrate 1.75s ease-in-out infinite;
}
.v1510-mood-complete .v1510-shine{
  animation-duration:6.5s;
}

@keyframes v1510FloatA{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(55px,32px,0) scale(1.08)}
}
@keyframes v1510FloatB{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-42px,45px,0) scale(1.07)}
}
@keyframes v1510FloatC{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-38px,-30px,0) scale(1.11)}
}
@keyframes v1510Grid{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-30px,-30px,0)}
}
@keyframes v1510Shine{
  0%,35%{left:-52%;opacity:0}
  48%{opacity:1}
  70%,100%{left:120%;opacity:0}
}
@keyframes v1510EmojiFloat{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-7px) rotate(2deg)}
}
@keyframes v1510EmojiSad{
  0%,100%{transform:translateY(1px) rotate(-2deg)}
  50%{transform:translateY(5px) rotate(2deg)}
}
@keyframes v1510EmojiAlmost{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-8px) scale(1.055)}
}
@keyframes v1510EmojiCelebrate{
  0%,100%{transform:translateY(1px) rotate(-5deg) scale(1)}
  45%{transform:translateY(-10px) rotate(5deg) scale(1.09)}
}
@keyframes v1510MoodPulse{
  0%{box-shadow:0 0 0 0 currentColor}
  70%{box-shadow:0 0 0 7px transparent}
  100%{box-shadow:0 0 0 0 transparent}
}

/* O anel permanece visível sobre o fundo vivo */
.v1510-hero-status .v15-day-ring{
  box-shadow:0 10px 30px rgba(0,0,0,.11);
}
.v1510-hero-status .v15-day-ring:after{
  background:color-mix(in srgb,var(--ui-surface,#fff) 94%,transparent);
}

/* Responsivo */
@media(max-width:760px){
  .v15-work-hero{
    align-items:flex-start;
    gap:15px;
    padding:20px;
  }
  .v1510-hero-status{
    gap:9px;
    align-items:flex-start;
  }
  .v1510-emoji-wrap{
    width:68px;
    height:68px;
    border-radius:21px;
  }
  .v1510-emoji{font-size:42px}
  .v1510-hero-status .v15-day-ring{
    width:78px;
    height:78px;
  }
  .v1510-hero-status .v15-day-ring:after{inset:7px}
  .v1510-hero-status .v15-day-ring strong{font-size:17px}
  .v1510-hero-status .v15-day-ring span{font-size:7px}
}
@media(max-width:560px){
  .v15-work-hero{
    display:grid;
    grid-template-columns:1fr;
  }
  .v1510-hero-status{
    grid-row:1;
    justify-self:end;
    position:absolute;
    top:16px;
    right:16px;
  }
  .v15-hero-copy{
    padding-top:66px;
  }
  .v1510-mood-message{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .v1510-orb,.v1510-grid,.v1510-shine,.v1510-emoji,.v1510-mood-dot{
    animation:none!important;
  }
}


/* =========================================================
   EUROMAR FLOW V15.1.1 — PRAZOS E FINALIZAÇÃO DESTACADOS
   ========================================================= */

.assignment-receipt .v1511-date-cell{
  position:relative;
  overflow:hidden;
}

.assignment-receipt .v1511-date-cell:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 62%,transparent);
  border-radius:3px;
}

.assignment-receipt .v1511-date-cell.is-late:before{
  background:#e33b48;
}

.assignment-receipt .v1511-date-cell.is-late b{
  color:#e33b48!important;
}

.assignment-receipt .v1511-delivered:before{
  background:#28a86b;
}

.assignment-receipt .v1511-delivered b{
  color:#28a86b!important;
}

.assignment-receipt .v1511-pending b{
  color:var(--ui-muted,var(--muted))!important;
}

.assignment-receipt .v1511-finish-wrap{
  grid-column:1/-1;
  padding:7px!important;
  background:transparent!important;
  border:0!important;
}

.v1511-finish-btn{
  width:100%;
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#147fd1,#39aaf5);
  box-shadow:0 9px 24px rgba(30,145,220,.23);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}

.v1511-finish-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(30,145,220,.31);
  filter:brightness(1.04);
}

.v1511-finish-btn:active{
  transform:translateY(1px);
}

.v1511-finish-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:50%;
  font-size:20px;
  font-weight:900;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.24);
}

.v1511-finish-btn>span:last-child{
  display:grid;
  gap:2px;
  text-align:left;
}

.v1511-finish-btn b{
  color:#fff!important;
  font-size:14px;
  letter-spacing:.1px;
}

.v1511-finish-btn small{
  color:rgba(255,255,255,.82)!important;
  font-size:9px;
  font-weight:650;
}

.v1511-workflow-finish{
  min-height:48px!important;
  padding-inline:24px!important;
  font-size:12px!important;
  font-weight:850!important;
  box-shadow:0 7px 20px rgba(30,145,220,.18);
}

@media(max-width:760px){
  .v1511-finish-btn{
    min-height:62px;
    justify-content:flex-start;
    padding:10px 14px;
  }
  .v1511-finish-icon{
    width:34px;height:34px;flex-basis:34px;
  }
}


/* =========================================================
   EUROMAR FLOW V15.1.2 — SELEÇÃO E CONCLUSÃO EM MASSA
   ========================================================= */

.v1512-bulk-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:13px;
  background:var(--ui-surface,var(--panel));
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

.v1512-bulk-bar.has-selection{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 55%,var(--ui-border,var(--line)));
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 7%,var(--ui-surface,var(--panel)));
  box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.v1512-select-all{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  cursor:pointer;
  font-size:10px;
  font-weight:800;
  color:var(--ui-text,var(--text));
}

.v1512-select-all input,
.v1512-task-check{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--ui-accent,#3da5ff);
  cursor:pointer;
}

.v1512-task-check:disabled{
  cursor:not-allowed;
  opacity:.35;
}

.v1512-bulk-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

#v1512BulkCount{
  min-width:92px;
  text-align:right;
  font-size:9px;
  font-weight:800;
  color:var(--ui-muted,var(--muted));
}

.v1512-bulk-finish{
  min-height:40px!important;
  padding-inline:15px!important;
  font-weight:850!important;
}

.v1512-bulk-finish:disabled{
  opacity:.42;
  cursor:not-allowed;
}

.v15-work-card{
  position:relative;
}

.v1512-select-cell{
  position:absolute;
  z-index:4;
  left:15px;
  top:15px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
}

.v15-work-card .v15-card-body{
  padding-left:22px;
}

.v15-work-card.v1512-selected{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 68%,var(--ui-border,var(--line)))!important;
  box-shadow:
    0 0 0 2px color-mix(in srgb,var(--ui-accent,#3da5ff) 13%,transparent),
    0 8px 20px rgba(0,0,0,.04);
}

.v15-work-card.v1512-selected .v15-card-body{
  background:linear-gradient(
    90deg,
    color-mix(in srgb,var(--ui-accent,#3da5ff) 5%,transparent),
    transparent 24%
  );
}

@media(max-width:760px){
  .v1512-bulk-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .v1512-bulk-actions{
    justify-content:stretch;
  }
  #v1512BulkCount{
    text-align:left;
    flex:1 1 100%;
  }
  .v1512-bulk-actions .btn{
    flex:1 1 auto;
  }
  .v1512-select-cell{
    left:11px;
    top:12px;
  }
  .v15-work-card .v15-card-body{
    padding-left:26px;
  }
}


/* =========================================================
   EUROMAR FLOW V15.1.3 — ABA PRAZOS E ENTREGA
   ========================================================= */

.v1513-deadlines-panel{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  display:block!important;
}

.v1513-deadlines-panel.v14-tab-hidden{
  display:none!important;
}

.v1513-deadlines-shell{
  margin-top:8px;
  padding:18px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:18px;
  background:linear-gradient(
    145deg,
    color-mix(in srgb,var(--ui-surface,var(--panel)) 97%,var(--ui-accent,#3da5ff) 3%),
    var(--ui-surface,var(--panel))
  );
}

.v1513-deadlines-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:15px;
  border-bottom:1px solid var(--ui-border,var(--line));
}

.v1513-deadlines-head h3{
  margin:4px 0 4px;
  font-size:17px;
}

.v1513-deadlines-head p{
  margin:0;
  font-size:9px;
  color:var(--ui-muted,var(--muted));
}

.v1513-deadlines-code{
  display:grid;
  gap:2px;
  min-width:165px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--ui-surface-2,var(--surface-2));
  border:1px solid var(--ui-border,var(--line));
  text-align:right;
}

.v1513-deadlines-code span{
  font-size:8px;
  font-weight:850;
  color:var(--ui-accent,#3da5ff);
}

.v1513-deadlines-code b{
  font-size:11px;
}

.v1513-deadlines-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  padding:16px 0;
}

.v1513-date-card{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-height:96px;
  padding:14px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:14px;
  background:var(--ui-surface-2,var(--surface-2));
  transition:border-color .16s ease,transform .16s ease,background .16s ease;
}

.v1513-date-card:hover{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 34%,var(--ui-border,var(--line)));
}

.v1513-date-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 10%,var(--ui-surface,var(--panel)));
  color:var(--ui-accent,#3da5ff);
  font-size:17px;
  font-weight:900;
}

.v1513-date-card>div{
  display:grid;
  gap:3px;
  min-width:0;
  flex:1;
}

.v1513-date-card small{
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.45px;
  color:var(--ui-muted,var(--muted));
}

.v1513-date-card strong{
  font-size:12px;
  color:var(--ui-text,var(--text));
}

.v1513-date-card em{
  font-style:normal;
  font-size:8px;
  color:var(--ui-muted,var(--muted));
}

.v1513-date-card.late{
  border-color:color-mix(in srgb,#e23b49 48%,var(--ui-border,var(--line)));
  background:color-mix(in srgb,#e23b49 6%,var(--ui-surface-2,var(--surface-2)));
}
.v1513-date-card.late .v1513-date-icon,
.v1513-date-card.late em{color:#e23b49}

.v1513-date-card.urgent{
  border-color:color-mix(in srgb,#ef7a30 45%,var(--ui-border,var(--line)));
}
.v1513-date-card.urgent .v1513-date-icon,
.v1513-date-card.urgent em{color:#ef7a30}

.v1513-date-card.attention .v1513-date-icon,
.v1513-date-card.attention em{color:#d89c28}

.v1513-date-card.done{
  border-color:color-mix(in srgb,#28a86b 40%,var(--ui-border,var(--line)));
}
.v1513-date-card.done .v1513-date-icon,
.v1513-date-card.done em{color:#28a86b}

.v1513-collaborator-card{
  grid-column:span 2;
}

.v1513-collab-editor{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin:2px 0 1px;
}

.v1513-collab-editor input{
  min-height:42px;
  width:100%;
}

.v1513-collab-editor .btn{
  min-height:42px;
  white-space:nowrap;
  padding-inline:15px;
}

.v1513-delivery-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:15px;
  border-top:1px solid var(--ui-border,var(--line));
}

.v1513-delivery-info{
  display:grid;
  gap:2px;
}
.v1513-delivery-info span{
  font-size:8px;
  text-transform:uppercase;
  font-weight:850;
  color:var(--ui-muted,var(--muted));
}
.v1513-delivery-info strong{font-size:13px}
.v1513-delivery-info small{
  font-size:8px;
  color:var(--ui-muted,var(--muted));
}

.v1513-finish-primary{
  min-width:265px;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:14px;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(135deg,#1687d6,#43b1f6);
  box-shadow:0 9px 24px rgba(25,145,220,.22);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.v1513-finish-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(25,145,220,.30);
  filter:brightness(1.04);
}
.v1513-finish-check{
  display:grid;
  place-items:center;
  width:35px;height:35px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.24);
  font-size:18px;font-weight:900;
}
.v1513-finish-primary>span:last-child{
  display:grid;
  gap:1px;
  text-align:left;
}
.v1513-finish-primary b{font-size:12px;color:#fff}
.v1513-finish-primary small{font-size:8px;color:rgba(255,255,255,.80)}

.v1513-finish-disabled{
  padding:10px 12px;
  border-radius:10px;
  background:var(--ui-surface-2,var(--surface-2));
  color:var(--ui-muted,var(--muted));
  font-size:9px;
  font-weight:750;
}

.v1513-deadlines-empty{
  display:flex;
  gap:13px;
  align-items:center;
  padding:25px;
  margin-top:8px;
  border:1px dashed var(--ui-border,var(--line));
  border-radius:16px;
  background:var(--ui-surface-2,var(--surface-2));
}
.v1513-deadline-empty-icon{
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border-radius:13px;
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 10%,var(--ui-surface,var(--panel)));
  color:var(--ui-accent,#3da5ff);
  font-size:22px;
}
.v1513-deadlines-empty h3{margin:3px 0;font-size:14px}
.v1513-deadlines-empty p{margin:0;font-size:9px;color:var(--ui-muted,var(--muted))}

@media(max-width:720px){
  .v1513-deadlines-shell{padding:14px}
  .v1513-deadlines-head{display:grid}
  .v1513-deadlines-code{min-width:0;text-align:left}
  .v1513-deadlines-grid{grid-template-columns:1fr}
  .v1513-collaborator-card{grid-column:auto}
  .v1513-collab-editor{grid-template-columns:1fr}
  .v1513-delivery-strip{align-items:stretch;flex-direction:column}
  .v1513-finish-primary{width:100%;min-width:0}
}


/* V15.1.4 — tarefas importadas liberadas para edição */
.v1514-step-history{
  opacity:.66;
  position:relative;
}
.v1514-step-history:after{
  content:"Concluída — histórico preservado";
  position:absolute;
  right:12px;
  top:7px;
  padding:3px 7px;
  border-radius:999px;
  font-size:7px;
  font-weight:850;
  background:color-mix(in srgb,#28a86b 12%,var(--ui-surface,var(--panel)));
  color:#28a86b;
  border:1px solid color-mix(in srgb,#28a86b 28%,var(--ui-border,var(--line)));
}


/* =========================================================
   EUROMAR FLOW V16.0 — FILTROS MÚLTIPLOS PROFISSIONAIS
   ========================================================= */

.v16-filters{
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  gap:10px!important;
  width:100%;
}

.v16-legacy-filters{
  display:none!important;
}

.v16-multi-filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.v16-filter{
  position:relative;
  min-width:138px;
}

.v16-filter-trigger{
  width:100%;
  min-height:46px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  grid-template-areas:
    "title count chevron"
    "value count chevron";
  column-gap:8px;
  align-items:center;
  padding:7px 10px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:12px;
  background:var(--ui-surface,var(--panel));
  color:var(--ui-text,var(--text));
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.v16-filter-trigger:hover{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 42%,var(--ui-border,var(--line)));
}

.v16-filter-trigger.active{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 58%,var(--ui-border,var(--line)));
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 6%,var(--ui-surface,var(--panel)));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent,#3da5ff) 8%,transparent);
}

.v16-filter-title{
  grid-area:title;
  font-size:7px;
  line-height:1;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.45px;
  color:var(--ui-muted,var(--muted));
}

.v16-filter-trigger strong{
  grid-area:value;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
  font-weight:800;
}

.v16-filter-trigger i{
  grid-area:count;
  display:grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  font-style:normal;
  font-size:8px;
  font-weight:900;
  background:var(--ui-accent,#3da5ff);
  color:#fff;
}

.v16-filter-chevron{
  grid-area:chevron;
  color:var(--ui-muted,var(--muted));
  font-size:14px;
}

.v16-filter-menu{
  position:absolute;
  z-index:90;
  top:calc(100% + 6px);
  left:0;
  width:max(220px,100%);
  max-height:320px;
  overflow:hidden;
  border:1px solid var(--ui-border,var(--line));
  border-radius:14px;
  background:var(--ui-surface,var(--panel));
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.v16-filter-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 11px;
  border-bottom:1px solid var(--ui-border,var(--line));
}

.v16-filter-menu-head b{
  font-size:9px;
}

.v16-filter-menu-head button{
  border:0;
  background:transparent;
  color:var(--ui-accent,#3da5ff);
  font-size:8px;
  font-weight:850;
  cursor:pointer;
}

.v16-filter-options{
  display:grid;
  gap:2px;
  max-height:260px;
  overflow:auto;
  padding:6px;
}

.v16-filter-option{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:36px;
  padding:7px 8px;
  border-radius:9px;
  cursor:pointer;
  font-size:9px;
  font-weight:720;
}

.v16-filter-option:hover{
  background:var(--ui-surface-2,var(--surface-2));
}

.v16-filter-option input{
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--ui-accent,#3da5ff);
}

.v16-search-wrap{
  display:flex;
  gap:8px;
  align-items:center;
}

.v16-search-wrap #filterSearch{
  flex:1;
  min-width:220px;
}

.v16-clear-filters{
  min-height:40px!important;
  opacity:.60;
}

.v16-clear-filters.active{
  opacity:1;
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 35%,var(--ui-border,var(--line)))!important;
}

@media(max-width:760px){
  .v16-multi-filters{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .v16-filter{
    min-width:0;
  }
  .v16-filter-menu{
    position:fixed;
    left:12px;
    right:12px;
    bottom:76px;
    top:auto;
    width:auto;
    max-height:55vh;
  }
  .v16-search-wrap{
    display:grid;
    grid-template-columns:1fr auto;
  }
  .v16-search-wrap #filterSearch{
    min-width:0;
  }
}

@media(max-width:430px){
  .v16-multi-filters{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   EUROMAR FLOW V16.1 — PERMISSÕES PROFISSIONAIS
   ========================================================= */

.v161-permissions-box{
  display:grid;
  gap:12px;
  padding:14px!important;
  border:1px solid var(--ui-border,var(--line))!important;
  border-radius:16px!important;
}

.v161-perm-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:12px;
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 6%,var(--ui-surface-2,var(--surface-2)));
  border:1px solid color-mix(in srgb,var(--ui-accent,#3da5ff) 18%,var(--ui-border,var(--line)));
}

.v161-perm-intro>div{
  display:grid;
  gap:2px;
}
.v161-perm-intro b{font-size:10px}
.v161-perm-intro span{font-size:8px;color:var(--ui-muted,var(--muted))}

.v161-perm-group{
  display:grid;
  gap:9px;
  padding:12px;
  border:1px solid var(--ui-border,var(--line));
  border-radius:13px;
  background:var(--ui-surface,var(--panel));
}

.v161-perm-group-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  padding-bottom:7px;
  border-bottom:1px solid var(--ui-border,var(--line));
}
.v161-perm-group-title span{font-size:10px;font-weight:850}
.v161-perm-group-title small{font-size:8px;color:var(--ui-muted,var(--muted))}

.v161-perm-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}

.v161-perm-grid .check-perm{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0!important;
  padding:8px 9px;
  border-radius:9px;
  background:var(--ui-surface-2,var(--surface-2));
  border:1px solid transparent;
  font-size:8px;
  font-weight:720;
  cursor:pointer;
}
.v161-perm-grid .check-perm:has(input:checked){
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 28%,var(--ui-border,var(--line)));
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 6%,var(--ui-surface-2,var(--surface-2)));
}
.v161-perm-grid .check-perm input{
  width:17px;height:17px;margin:0;accent-color:var(--ui-accent,#3da5ff);
}

.v161-perm-danger:has(input:checked){
  border-color:color-mix(in srgb,#e8505b 36%,var(--ui-border,var(--line)))!important;
  background:color-mix(in srgb,#e8505b 6%,var(--ui-surface-2,var(--surface-2)))!important;
}

.v161-perm-summary{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.v161-perm-summary span{
  padding:5px 8px;
  border-radius:999px;
  font-size:8px;
  color:var(--ui-muted,var(--muted));
  background:var(--ui-surface-2,var(--surface-2));
}
.v161-perm-summary .v161-critical{
  color:#e8505b;
  background:color-mix(in srgb,#e8505b 7%,var(--ui-surface-2,var(--surface-2)));
}

@media(max-width:640px){
  .v161-perm-intro{align-items:stretch;flex-direction:column}
  .v161-perm-grid{grid-template-columns:1fr}
  .v161-perm-group-title{align-items:flex-start;flex-direction:column}
}


/* =========================================================
   EUROMAR FLOW V16.1.1 — CORREÇÃO VISUAL DOS FILTROS MÚLTIPLOS
   ========================================================= */

.v16-filter-menu{
  width:280px!important;
  min-width:280px!important;
  max-width:min(340px,calc(100vw - 32px))!important;
  background:var(--ui-surface,#ffffff)!important;
  color:var(--ui-text,#172033)!important;
  border:1px solid var(--ui-border,#d9e1ec)!important;
  overflow:hidden!important;
}

.v16-filter-menu-head{
  background:var(--ui-surface,#ffffff)!important;
  color:var(--ui-text,#172033)!important;
}

.v16-filter-menu-head b{
  color:var(--ui-text,#172033)!important;
}

.v16-filter-menu-head button{
  color:var(--ui-accent,#2f8df5)!important;
}

.v16-filter-options{
  background:var(--ui-surface,#ffffff)!important;
}

.v16-filter-option{
  color:var(--ui-text,#172033)!important;
  opacity:1!important;
}

.v16-filter-option span{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  color:var(--ui-text,#172033)!important;
  font-size:9px!important;
  font-weight:750!important;
  line-height:1.25!important;
  opacity:1!important;
  visibility:visible!important;
  white-space:normal!important;
}

.v16-filter-option:hover{
  background:var(--ui-surface-2,#f3f6fa)!important;
}

.v16-filter-option:has(input:checked){
  background:color-mix(in srgb,var(--ui-accent,#2f8df5) 8%,var(--ui-surface,#ffffff))!important;
}

.v16-filter-option input{
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  opacity:1!important;
  visibility:visible!important;
}

.v16-filter-trigger strong,
.v16-filter-title{
  color:var(--ui-text,#172033)!important;
}

.v16-filter-title{
  color:var(--ui-muted,#6b778c)!important;
}

/* Tema escuro */
body.theme-midnight_dark .v16-filter-menu,
body.theme-deep_navy .v16-filter-menu,
body[data-theme="midnight_dark"] .v16-filter-menu,
body[data-theme="deep_navy"] .v16-filter-menu{
  background:var(--ui-surface,#152430)!important;
  color:var(--ui-text,#eef5fb)!important;
}

body.theme-midnight_dark .v16-filter-option span,
body.theme-deep_navy .v16-filter-option span,
body[data-theme="midnight_dark"] .v16-filter-option span,
body[data-theme="deep_navy"] .v16-filter-option span{
  color:var(--ui-text,#eef5fb)!important;
}

@media(max-width:760px){
  .v16-filter-menu{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* =========================================================
   EUROMAR FLOW V16.1.2 — FILTROS PROFISSIONAIS / POPOVER ÚNICO
   ========================================================= */

.v16-multi-filters{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(150px,1fr))!important;
  gap:10px!important;
  width:100%;
}

.v1612-filter-trigger{
  min-width:0!important;
  min-height:54px!important;
  padding:10px 13px!important;
  border-radius:15px!important;
  border:1px solid var(--ui-border,var(--line))!important;
  background:var(--ui-surface,var(--panel))!important;
  box-shadow:0 5px 16px rgba(15,23,42,.035)!important;
}

.v1612-filter-trigger:hover{
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 34%,var(--ui-border,var(--line)))!important;
  transform:translateY(-1px);
}

.v1612-filter-trigger.active{
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 5%,var(--ui-surface,var(--panel)))!important;
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 52%,var(--ui-border,var(--line)))!important;
  box-shadow:0 8px 22px color-mix(in srgb,var(--ui-accent,#3da5ff) 10%,transparent)!important;
}

.v1612-filter-popover{
  position:fixed;
  z-index:9999;
  max-height:min(520px,calc(100vh - 24px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--ui-border,var(--line));
  background:var(--ui-surface,var(--panel));
  color:var(--ui-text,var(--text));
  box-shadow:0 30px 80px rgba(15,23,42,.24);
}

.v1612-filter-popover.hidden{display:none!important}

.v1612-filter-popover-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px 12px;
  border-bottom:1px solid var(--ui-border,var(--line));
}

.v1612-filter-popover-head>div{
  display:grid;
  gap:3px;
}

.v1612-filter-popover-head span{
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ui-accent,#3da5ff);
}

.v1612-filter-popover-head h3{
  margin:0;
  font-size:15px;
  color:var(--ui-text,var(--text));
}

.v1612-filter-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  padding:12px 14px;
  border-bottom:1px solid var(--ui-border,var(--line));
}

#v1612FilterSearch{
  min-height:40px;
  border-radius:11px;
  background:var(--ui-surface-2,var(--soft));
}

.v1612-filter-options{
  display:grid;
  gap:6px;
  padding:10px;
  overflow:auto;
  min-height:100px;
  max-height:330px;
}

.v1612-filter-option{
  display:grid;
  grid-template-columns:18px 30px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:12px;
  cursor:pointer;
  background:transparent;
  transition:all .14s ease;
}

.v1612-filter-option:hover{
  background:var(--ui-surface-2,var(--soft));
  border-color:var(--ui-border,var(--line));
}

.v1612-filter-option.selected{
  background:color-mix(in srgb,var(--ui-accent,#3da5ff) 7%,var(--ui-surface,var(--panel)));
  border-color:color-mix(in srgb,var(--ui-accent,#3da5ff) 28%,var(--ui-border,var(--line)));
}

.v1612-filter-option input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--ui-accent,#3da5ff);
}

.v1612-filter-check{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:9px;
  background:var(--ui-surface-2,var(--soft));
  color:var(--ui-accent,#3da5ff);
  font-size:11px;
  font-weight:900;
}

.v1612-filter-option.selected .v1612-filter-check{
  background:var(--ui-accent,#3da5ff);
  color:#fff;
}

.v1612-filter-label{
  min-width:0;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  color:var(--ui-text,var(--text));
}

.v1612-filter-empty{
  padding:24px 10px;
  text-align:center;
  font-size:9px;
  color:var(--ui-muted,var(--muted));
}

.v1612-filter-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid var(--ui-border,var(--line));
  background:color-mix(in srgb,var(--ui-surface,var(--panel)) 96%,transparent);
}

.v1612-filter-footer span{
  font-size:8px;
  font-weight:800;
  color:var(--ui-muted,var(--muted));
}

.v1612-filter-footer .btn.primary{
  min-width:110px;
}

@media(max-width:1180px){
  .v16-multi-filters{
    grid-template-columns:repeat(3,minmax(150px,1fr))!important;
  }
}

@media(max-width:820px){
  .v16-multi-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:520px){
  .v16-multi-filters{
    grid-template-columns:1fr!important;
  }

  .v1612-filter-popover{
    left:10px!important;
    right:10px!important;
    top:auto!important;
    bottom:10px!important;
    width:auto!important;
    max-height:72vh;
    border-radius:20px;
  }
}


/* =========================================================
   EUROMAR FLOW V16.1.3 — FILTRO IMEDIATO + SCROLL ESTÁVEL
   ========================================================= */
.v1612-filter-options{
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
}

.v1612-filter-options::-webkit-scrollbar{
  width:10px;
}

.v1612-filter-options::-webkit-scrollbar-track{
  background:transparent;
}

.v1612-filter-options::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--ui-muted,var(--muted)) 32%,transparent);
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
}

.v1612-filter-options::-webkit-scrollbar-thumb:hover{
  background:color-mix(in srgb,var(--ui-muted,var(--muted)) 52%,transparent);
  border:3px solid transparent;
  background-clip:padding-box;
}

.v1612-filter-footer{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
}

.v1613-filter-live-note{
  font-size:7px;
  color:var(--ui-muted,var(--muted));
  text-align:center;
  font-weight:700;
}

@media(max-width:520px){
  .v1612-filter-footer{
    grid-template-columns:1fr auto!important;
  }
  .v1613-filter-live-note{
    grid-column:1/-1;
    grid-row:2;
    text-align:left;
  }
}
