:root{--green:#28d17c;--dark:#101713;--panel:#fff;--bg:#f3f6f4;--muted:#65716a;--danger:#d94c4c;--warn:#e6a700}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Arial,sans-serif;color:#162019}header{background:var(--dark);color:#fff;display:flex;align-items:center;gap:24px;padding:14px 3%;position:sticky;top:0;z-index:10}.logo{font-weight:900;color:var(--green);text-decoration:none;font-size:22px}.logo span{color:#fff}nav{display:flex;gap:14px;flex:1;overflow:auto}nav a,.user a{color:#dce5df;text-decoration:none;white-space:nowrap}.user{white-space:nowrap}.container{width:min(1280px,94%);margin:28px auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.page-title h1{margin:0}.page-title p{margin:6px 0;color:var(--muted)}.card{background:var(--panel);border-radius:14px;padding:20px;box-shadow:0 4px 18px #13251a12}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stats strong{display:block;font-size:28px}.stats span{color:var(--muted)}label{display:block;font-weight:700;margin-bottom:14px}input,select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #cfd8d2;border-radius:9px;background:#fff}button{border:0;background:var(--green);color:#092016;font-weight:800;padding:12px 18px;border-radius:9px;cursor:pointer}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:11px;border-bottom:1px solid #e7ece9}th{font-size:13px;color:var(--muted)}small{color:var(--muted)}.badge{padding:5px 9px;border-radius:20px;background:#dff5e8}.badge.comprar{background:#fff0c7}.badge.critico{background:#ffd7d7;color:#8e1515}.suggestion{border-left:4px solid var(--green);padding:10px 12px;margin:10px 0;background:#f7faf8}.suggestion span,.suggestion small{display:block;margin-top:4px}.alert{padding:12px;border-radius:9px;background:#e8f3ed;margin-bottom:15px}.alert.danger{background:#ffe0e0}.alert.success{background:#dcf7e8}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.auth .card{width:min(420px,100%)}.brand h1{color:#0e7d4a}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.check-card h2{margin:5px 0}.sticky-save{position:sticky;bottom:20px;margin:20px 0;box-shadow:0 5px 20px #0003}@media(max-width:900px){header{flex-wrap:wrap}nav{order:3;width:100%}.grid,.stats,.check-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.grid,.stats,.check-grid,.form-row{grid-template-columns:1fr}.container{width:94%;margin:18px auto}.page-title{align-items:flex-start;flex-direction:column}header{padding:12px}.user{margin-left:auto}}

/* Movimentações: visão preventiva do estoque */
.movement-top-grid{align-items:start;margin-bottom:20px}
.stock-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;margin:0 0 16px;border:1px solid #dbe5df;border-left:5px solid var(--green);border-radius:10px;background:#f7faf8}
.stock-preview>div{display:flex;flex-direction:column;gap:3px}
.stock-preview strong{font-size:22px}
.stock-preview span{color:var(--muted)}
.stock-preview.status-comprar{border-left-color:var(--warn);background:#fffaf0}
.stock-preview.status-critico{border-left-color:var(--danger);background:#fff4f4}
.operations-table-wrap{max-height:390px}
.quantity.positive{color:#087645;font-weight:700}
.quantity.negative{color:#b02d2d;font-weight:700}
.badge.operation-entrada{background:#dcf7e8;color:#087645}
.badge.operation-saida{background:#ffe0e0;color:#8e1515}
.badge.operation-ajuste{background:#e4ecff;color:#274c98}
.stock-current-card{margin:0 0 20px}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}
.section-heading h2{margin:0 0 5px}
.section-heading p{margin:0;color:var(--muted)}
.section-heading>small{max-width:360px;text-align:right}
.stock-table td{vertical-align:middle}
.stock-level-cell{min-width:170px}
.stock-bar{height:10px;background:#e8eeea;border-radius:99px;overflow:hidden;margin-bottom:6px}
.stock-bar-fill{display:block;height:100%;background:var(--green);border-radius:99px;transition:width .2s ease}
.stock-bar-fill.status-comprar{background:var(--warn)}
.stock-bar-fill.status-critico{background:var(--danger)}
@media(max-width:900px){.section-heading{flex-direction:column}.section-heading>small{text-align:left;max-width:none}}
@media(max-width:600px){.stock-preview{align-items:flex-start;flex-direction:column}}

/* Painel: conteúdo principal acima dos indicadores */
.dashboard-main-grid{margin-bottom:20px}
.dashboard-stats{margin-bottom:0}


/* Layout principal com menu lateral */
:root{--sidebar-width:272px;--sidebar-collapsed-width:96px;--topbar-height:62px}
body.app-shell{min-height:100vh;overflow-x:hidden}
.mobile-topbar{display:none}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;background:var(--dark);color:#fff;z-index:1000;transition:width .22s ease,transform .22s ease;box-shadow:4px 0 18px #08110b20}
.sidebar-header{min-height:74px;display:flex;align-items:center;padding:0 18px;border-bottom:1px solid #ffffff16;position:relative}
.sidebar-brand{color:var(--green);font-size:21px;font-weight:900;text-decoration:none;white-space:nowrap;overflow:hidden}
.sidebar-brand b{color:#fff}
.brand-short{display:none}
.sidebar-collapse{margin-left:auto;width:34px;height:34px;padding:0;border:1px solid #ffffff24;background:#ffffff0c;color:#fff;font-size:26px;line-height:1;border-radius:9px;display:grid;place-items:center;transition:transform .2s ease,background .2s ease}
.sidebar-collapse:hover{background:#ffffff18}
.sidebar-close{display:none;background:transparent;color:#fff;font-size:30px;padding:4px 8px;margin-left:auto}
.sidebar-navigation{flex:1;overflow-y:auto;padding:18px 12px}
.sidebar-group{margin-bottom:18px}
.sidebar-group h2{margin:0 10px 8px;color:#8fa098;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;white-space:nowrap;overflow:hidden}
.sidebar-link{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 12px;margin:3px 0;border-radius:10px;color:#dce5df;text-decoration:none;font-weight:700;white-space:nowrap;overflow:hidden;transition:background .16s ease,color .16s ease}
.sidebar-link svg,.sidebar-logout svg{width:21px;height:21px;fill:currentColor;flex:0 0 21px}
.sidebar-link:hover,.sidebar-link:focus-visible{background:#ffffff10;color:#fff}
.sidebar-link.is-active{background:#28d17c1f;color:var(--green);box-shadow:inset 3px 0 0 var(--green)}
.sidebar-user{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 16px;border-top:1px solid #ffffff16;background:#0d140f}
.user-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#092016;font-weight:900}
.user-details{min-width:0;display:flex;flex-direction:column}
.user-details strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-details span{font-size:12px;color:#8fa098}
.sidebar-logout{display:flex;align-items:center;gap:8px;color:#dce5df;text-decoration:none;padding:9px;border-radius:9px}
.sidebar-logout:hover{background:#ffffff10;color:#fff}
.sidebar-logout span{display:none}
.app-main{margin-left:calc(var(--sidebar-width) + 3%);width:min(1280px,calc(94% - var(--sidebar-width)));transition:margin-left .22s ease,width .22s ease}

body.sidebar-collapsed .app-sidebar{width:var(--sidebar-collapsed-width)}
body.sidebar-collapsed .app-main{margin-left:calc(var(--sidebar-collapsed-width) + 3%);width:min(1280px,calc(94% - var(--sidebar-collapsed-width)))}
body.sidebar-collapsed .brand-full,body.sidebar-collapsed .sidebar-link span,body.sidebar-collapsed .sidebar-group h2,body.sidebar-collapsed .user-details,body.sidebar-collapsed .sidebar-logout span{display:none}
body.sidebar-collapsed .brand-short{display:inline}
body.sidebar-collapsed .sidebar-header{justify-content:flex-start;padding:0 44px 0 12px}
body.sidebar-collapsed .sidebar-collapse{position:absolute;right:6px;transform:rotate(180deg);background:var(--dark)}
body.sidebar-collapsed .sidebar-navigation{padding-left:10px;padding-right:10px}
body.sidebar-collapsed .sidebar-link{justify-content:center;padding:11px}
body.sidebar-collapsed .sidebar-user{grid-template-columns:1fr;justify-items:center;padding:12px 8px}
body.sidebar-collapsed .sidebar-logout{padding:9px}

.sidebar-overlay{position:fixed;inset:0;background:#07100bb0;z-index:990;opacity:0;transition:opacity .2s ease}
.sidebar-overlay.is-visible{opacity:1}

@media(max-width:900px){
  :root{--sidebar-width:286px}
  .mobile-topbar{height:var(--topbar-height);display:flex;align-items:center;gap:13px;padding:0 16px;background:var(--dark);color:#fff;position:sticky;top:0;z-index:980;box-shadow:0 2px 12px #0002}
  .mobile-menu-button{width:42px;height:42px;padding:10px;background:transparent;border:1px solid #ffffff2b;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
  .mobile-menu-button span{display:block;width:21px;height:2px;border-radius:4px;background:#fff}
  .mobile-brand{font-size:20px;font-weight:900;text-decoration:none;color:var(--green)}
  .mobile-brand span{color:#fff}
  .app-sidebar{width:min(86vw,var(--sidebar-width));transform:translateX(-105%);box-shadow:10px 0 35px #0006}
  .app-sidebar.is-open{transform:translateX(0)}
  .sidebar-close{display:block}
  .sidebar-collapse{display:none}
  .app-main,body.sidebar-collapsed .app-main{margin-left:auto;margin-right:auto;width:94%}
  body.sidebar-collapsed .app-sidebar{width:min(86vw,var(--sidebar-width))}
  body.sidebar-collapsed .brand-full,body.sidebar-collapsed .sidebar-link span,body.sidebar-collapsed .sidebar-group h2,body.sidebar-collapsed .user-details,body.sidebar-collapsed .sidebar-logout span{display:initial}
  body.sidebar-collapsed .brand-short{display:none}
  body.sidebar-collapsed .sidebar-header{justify-content:flex-start;padding:0 18px}
  body.sidebar-collapsed .sidebar-navigation{padding:18px 12px}
  body.sidebar-collapsed .sidebar-link{justify-content:flex-start;padding:10px 12px}
  body.sidebar-collapsed .sidebar-user{grid-template-columns:38px minmax(0,1fr) auto;justify-items:stretch;padding:14px 16px}
  .sidebar-logout span{display:inline}
  body.menu-open{overflow:hidden}
}

@media(max-width:600px){
  .mobile-topbar{padding:0 12px}
  .app-main{margin-top:18px}
  .sidebar-user{grid-template-columns:38px minmax(0,1fr);}
  .sidebar-logout{grid-column:1 / -1;justify-content:center;border:1px solid #ffffff18;margin-top:4px}
}

/* V8: menu em fluxo vertical, sem barra de rolagem interna */
.app-sidebar{overflow:hidden}
.sidebar-navigation{
  flex:0 0 auto;
  overflow:visible;
  padding:14px 12px 8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sidebar-group{
  margin:0;
  padding:0 0 12px;
  border-bottom:1px solid #ffffff16;
}
.sidebar-group:last-child{padding-bottom:12px}
.sidebar-group h2{margin:0 10px 7px}
.sidebar-link{min-height:42px;margin:2px 0;padding:9px 12px}
.sidebar-user{
  flex:0 0 auto;
  margin:0 12px;
  padding:13px 4px 0;
  border-top:0;
  background:transparent;
  border-radius:0;
  grid-template-columns:38px minmax(0,1fr);
}
.sidebar-logout{
  grid-column:1 / -1;
  justify-content:flex-start;
  margin-top:8px;
  padding:10px 12px;
  border:1px solid #ffffff18;
}
.sidebar-logout span{display:inline}

body.sidebar-collapsed .sidebar-user{margin:0 8px;padding:12px 0 0}
body.sidebar-collapsed .sidebar-logout{grid-column:auto;justify-content:center;border:0;margin-top:0}
body.sidebar-collapsed .sidebar-logout span{display:none}

@media(max-width:900px){
  .app-sidebar{overflow:hidden}
  .sidebar-navigation,
  body.sidebar-collapsed .sidebar-navigation{flex:0 0 auto;overflow:visible;padding:14px 12px 8px;gap:8px}
  .sidebar-user,
  body.sidebar-collapsed .sidebar-user{
    flex:0 0 auto;
    margin:0 12px;
    padding:13px 4px 0;
    border-top:0;
    background:transparent;
    grid-template-columns:38px minmax(0,1fr);
  }
  .sidebar-logout,
  body.sidebar-collapsed .sidebar-logout{
    grid-column:1 / -1;
    justify-content:flex-start;
    margin-top:8px;
    padding:10px 12px;
    border:1px solid #ffffff18;
  }
  body.sidebar-collapsed .sidebar-logout span{display:inline}
}

@media(max-width:600px){
  .sidebar-header{min-height:62px}
  .sidebar-navigation{padding-top:10px}
  .sidebar-link{min-height:40px;padding:8px 11px}
  .sidebar-group{padding-bottom:9px}
  .sidebar-user{padding-top:10px}
}


/* Auditoria: comando SQL completo */
.audit-sql-cell {
    min-width: 170px;
    max-width: 460px;
}
.audit-sql-cell details {
    cursor: pointer;
}
.audit-sql-cell summary {
    color: var(--green, #18d982);
    font-weight: 700;
    white-space: nowrap;
}
.audit-sql-cell code {
    display: block;
    margin-top: 8px;
    padding: 10px;
    max-width: 440px;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    background: #f6f8f7;
    color: #17231d;
    font-size: 12px;
    line-height: 1.45;
}


/* V11: experiência mobile em formato de aplicativo */
@media(max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .mobile-topbar{position:sticky;top:0;width:100%;min-width:0;height:64px;padding:0 14px;z-index:980}
  .mobile-menu-button{width:46px;height:46px;flex:0 0 46px;border-radius:11px}
  .mobile-menu-button span{width:23px;height:2.5px}
  .mobile-brand{font-size:21px;line-height:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .app-sidebar{position:fixed!important;top:0;bottom:0;left:0;margin:0!important;width:min(84vw,300px)!important;max-width:300px;transform:translate3d(-105%,0,0);z-index:1000;will-change:transform}
  .app-sidebar.is-open{transform:translate3d(0,0,0)}
  .sidebar-overlay{position:fixed;inset:0;z-index:990;background:rgba(5,12,8,.66);backdrop-filter:blur(1.5px)}
  .app-main,body.sidebar-collapsed .app-main{display:block;max-width:none;width:auto!important;margin:18px 14px 28px!important;min-width:0;overflow:visible;transform:none!important}
  body.menu-open .app-main{transform:none!important;margin-left:14px!important}
  .page-title{margin-bottom:16px}
  .page-title h1{font-size:clamp(30px,8vw,40px);line-height:1.05}
  .page-title p{font-size:17px;line-height:1.4;margin-top:8px}
  .reanalisar-button{min-height:48px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
  .card{border-radius:18px;padding:18px;box-shadow:0 8px 24px #13251a12}
  .dashboard-main-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}
  .dashboard-main-grid>.card{min-width:0}
  .dashboard-items-card h2,.dashboard-analysis-card h2{font-size:28px;margin:2px 0 18px}
  .dashboard-analysis-card p{font-size:17px;line-height:1.48}
  .dashboard-stats{grid-template-columns:1fr 1fr;gap:12px}
  .dashboard-stats .card{padding:16px}
  .dashboard-stats strong{font-size:25px}
}

@media(max-width:600px){
  .mobile-topbar{height:62px;padding:0 12px;gap:12px}
  .app-main,body.sidebar-collapsed .app-main{margin:14px 12px 24px!important}
  body.menu-open .app-main{margin-left:12px!important}
  .dashboard-title{gap:14px;margin-bottom:16px}
  .dashboard-title .reanalisar-button{width:100%}
  .card{padding:16px;border-radius:17px}
  .dashboard-items-card{padding:16px 14px}
  .dashboard-items-card h2,.dashboard-analysis-card h2{font-size:26px;margin-bottom:16px}
  .dashboard-table-wrap{overflow:visible}
  .responsive-items-table,.responsive-items-table tbody,.responsive-items-table tr,.responsive-items-table td{display:block;width:100%}
  .responsive-items-table{border-collapse:separate;border-spacing:0}
  .responsive-items-table thead{display:none}
  .responsive-items-table tbody{display:grid;gap:12px}
  .responsive-items-table tr{padding:15px;border:1px solid #e3eae6;border-radius:14px;background:#fff;box-shadow:0 3px 12px #13251a0a}
  .responsive-items-table td{display:grid;grid-template-columns:minmax(86px,34%) minmax(0,1fr);align-items:start;gap:12px;padding:8px 0;border:0;min-width:0;overflow-wrap:anywhere}
  .responsive-items-table td:first-child{display:block;padding-top:0;padding-bottom:12px;border-bottom:1px solid #edf1ef;margin-bottom:4px}
  .responsive-items-table td:first-child::before{display:none}
  .responsive-items-table td::before{content:attr(data-label);font-size:12px;line-height:1.35;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .responsive-items-table td small{display:block;margin-bottom:3px;font-size:13px}
  .responsive-items-table td b{font-size:20px;line-height:1.2}
  .responsive-items-table .badge{justify-self:start}
  .dashboard-analysis-card{padding:18px 16px}
  .dashboard-analysis-card p{margin-top:0}
  .suggestion{border-radius:10px}
  .dashboard-stats{grid-template-columns:1fr 1fr}
}

@media(max-width:380px){
  .mobile-brand{font-size:19px}
  .page-title h1{font-size:30px}
  .dashboard-stats{grid-template-columns:1fr}
  .responsive-items-table td{grid-template-columns:82px minmax(0,1fr)}
}

/* V12: unidades, recipientes e checklist visual */
.products-grid{align-items:start}.choice-card{display:flex!important;gap:12px;align-items:flex-start;padding:14px;border:1px solid #dfe8e2;border-radius:12px;background:#f8fbf9;cursor:pointer}.choice-card input{width:auto;margin-top:3px}.choice-card span{display:grid;gap:4px}.choice-card small,.form-help{color:var(--muted);line-height:1.45}.open-control{margin:4px 0 16px;padding:16px;border:1px solid #dce8e0;border-radius:14px;background:#f6faf7}.open-control h3{margin:0 0 14px}.recipient-check{display:grid;gap:12px;margin:12px 0;padding:14px;border:1px solid #dce8e0;border-radius:14px;background:#f8fbf9}.recipient-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.recipient-head>div{display:grid}.recipient-head span{font-size:12px;font-weight:800;color:var(--green-dark,#087a49)}.recipient-thumb-button{display:grid;grid-template-columns:92px 1fr;align-items:center;gap:12px;width:100%;padding:8px;background:#fff;border:1px solid #d9e5dd;border-radius:12px;text-align:left}.recipient-thumb-button img{width:92px;height:112px;object-fit:cover;border-radius:9px}.recipient-thumb-button span{font-weight:800;color:var(--green-dark,#087a49)}.recipient-no-image{padding:24px;border:1px dashed #cdd9d1;border-radius:10px;text-align:center;color:var(--muted)}.last-check{display:grid;gap:3px;padding:11px 12px;border-radius:11px;background:#edf8f1}.last-check b{font-size:19px}.last-check span{font-size:12px;color:var(--muted)}.image-modal{position:fixed;inset:0;z-index:2200;padding:22px;background:rgba(4,10,6,.82);overflow:auto}.image-modal-dialog{width:min(720px,100%);margin:36px auto;padding:18px;border-radius:18px;background:#fff}.image-modal-dialog h2{margin:0 0 14px}.image-modal-dialog img{display:block;max-width:100%;max-height:76vh;margin:auto;border-radius:12px}.image-modal-close{position:fixed;top:14px;right:18px;width:46px;height:46px;padding:0;border-radius:50%;font-size:30px;line-height:1;background:#fff;color:#111}.enhanced-check-card{min-width:0}
@media(max-width:600px){.products-grid{grid-template-columns:1fr}.open-control{padding:13px}.recipient-thumb-button{grid-template-columns:82px 1fr}.recipient-thumb-button img{width:82px;height:102px}.recipient-head{display:grid}.image-modal{padding:12px}.image-modal-dialog{margin:54px auto 12px;padding:14px}.enhanced-check-card{padding:16px}}

/* V13: linhas Q1...Qn desenhadas sobre a foto do recipiente */
.recipient-image-stage{
  position:relative;
  display:block;
  width:92px;
  height:112px;
  overflow:hidden;
  border-radius:9px;
  background:#eef3ef;
  flex:0 0 auto;
}
.recipient-image-stage>img{
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:cover;
  border-radius:inherit;
}
.recipient-level-overlay{
  position:absolute;
  inset:8% 4% 7%;
  display:flex;
  flex-direction:column-reverse;
  justify-content:space-between;
  pointer-events:none;
  z-index:2;
}
.recipient-level-line{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:4px;
  min-width:0;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.9));
}
.recipient-level-line b{
  color:#18f04f;
  font-size:8px;
  line-height:1;
  font-weight:1000;
  -webkit-text-stroke:.45px #041208;
}
.recipient-level-line i{
  display:block;
  height:1.5px;
  border-radius:999px;
  background:#18f04f;
  box-shadow:0 0 0 .35px rgba(0,0,0,.55);
}
.recipient-expand-label{font-weight:800;color:var(--green-dark,#087a49)}
.image-modal-stage{display:flex;justify-content:center;max-width:100%}
.image-modal-stage .recipient-image-stage{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:76vh;
  aspect-ratio:auto;
  overflow:hidden;
  border-radius:12px;
}
.image-modal-stage .recipient-image-stage>img{
  width:auto!important;
  height:auto!important;
  max-width:100%;
  max-height:76vh;
  object-fit:contain;
}
.image-modal-stage .recipient-level-overlay{inset:8% 4% 7%}
.image-modal-stage .recipient-level-line{gap:9px}
.image-modal-stage .recipient-level-line b{font-size:clamp(13px,2.2vw,20px);-webkit-text-stroke:.7px #041208}
.image-modal-stage .recipient-level-line i{height:3px;box-shadow:0 0 0 .6px rgba(0,0,0,.65)}
@media(max-width:600px){
  .recipient-image-stage{width:82px;height:102px}
  .image-modal-stage .recipient-image-stage{width:auto;height:auto}
  .image-modal-stage .recipient-level-line b{font-size:14px}
  .image-modal-stage .recipient-level-line i{height:2.5px}
}

/* V14: separação do estoque fechado, aberto e total */
.total-stock-cell strong{font-size:1.08em;color:#087a49}.total-stock-cell{background:#f5fbf7}.muted-value{color:var(--muted)}
@media(max-width:600px){.responsive-items-table .total-stock-cell{margin:5px -7px;padding:12px 7px;border-radius:10px;background:#f1faf5}.responsive-items-table .total-stock-cell strong{font-size:18px}}


/* v15 — checklist diário e integração com estoque */
.checklist-locked{max-width:760px;border-left:5px solid #e3a008;background:#fffaf0}
.checklist-locked h2{margin-top:0}
.button-link{display:inline-flex;align-items:center;justify-content:center;padding:.8rem 1rem;border-radius:10px;background:#20cf7a;color:#062b1a;font-weight:800;text-decoration:none}
.enhanced-check-card>p small{color:#64756d}

/* V17: visualização do estoque por item e por categoria */
.inventory-view-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.inventory-view-header h2{margin:2px 0 6px}
.inventory-view-header p{margin:0;max-width:690px;color:var(--muted);line-height:1.45}
.inventory-view-switch{display:inline-flex;flex:0 0 auto;padding:4px;border:1px solid #dce6df;border-radius:12px;background:#f1f6f3}
.inventory-view-button{padding:10px 14px;border-radius:9px;background:transparent;color:#536158;white-space:nowrap}
.inventory-view-button.active{background:#fff;color:#087a49;box-shadow:0 2px 8px #10251a17}
.inventory-view-panel[hidden]{display:none!important}
.category-view-note{margin:0 0 14px;padding:12px 14px;border-left:4px solid var(--green);border-radius:10px;background:#f3faf6;color:#46564c;line-height:1.45}
.category-stock-table .category-target{display:block;white-space:nowrap;margin-bottom:4px}
.category-stock-table .category-target:last-child{margin-bottom:0}
.category-stock-table td{vertical-align:middle}
.category-stock-table th:nth-child(1){min-width:120px}
.category-stock-table th:nth-child(6){min-width:132px}
@media(max-width:900px){
  .inventory-view-header{display:grid}
  .inventory-view-switch{justify-self:start}
}
@media(max-width:600px){
  .inventory-view-header{gap:13px;margin-bottom:14px}
  .inventory-view-header h2{font-size:25px!important;margin-bottom:6px!important}
  .inventory-view-switch{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .inventory-view-button{width:100%;padding:11px 8px}
  .category-view-note{font-size:14px}
  .category-stock-table td:first-child b{font-size:20px}
}


/* V18: categorias, cards de visualização e controles de mínimo */
.view-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.view-card{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:20px;border:1px solid #dce7df;border-radius:18px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 24px #15261b0d}.view-card:hover,.view-card.active{border-color:#20cf7a;box-shadow:0 10px 28px #20cf7a1c}.view-card h2{margin:0 0 6px;font-size:20px}.view-card p{margin:0;color:var(--muted);line-height:1.45}.view-card>b{color:#087a49;white-space:nowrap}.view-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf9f1;color:#087a49;font-size:25px}.section-intro{margin-top:-6px;color:var(--muted)}.minimum-control{display:grid;gap:10px;margin:14px 0;padding:0;border:0}.minimum-control legend{font-weight:800;margin-bottom:8px}.inline-form{display:inline}.text-button{padding:0;background:none;color:#a33;font-weight:700}.secondary-link{margin-left:8px;background:#eef4f0;color:#405047}.dashboard-analysis-card h3{margin:18px 0 8px}.category-stock-table .total-stock-cell strong{font-size:1.15em}
@media(max-width:760px){.view-cards{grid-template-columns:1fr}.view-card{grid-template-columns:auto 1fr}.view-card>b{grid-column:2}.minimum-control .choice-card{padding:12px}}

/* V18.1 — correção visual, cache e refinamento das telas novas */
a{color:#087a49;text-decoration-thickness:1.5px;text-underline-offset:2px}
a:hover{color:#05643c}

.view-cards{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:0 0 22px;
}
.view-card{
  position:relative;
  min-height:142px;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:start;
  gap:10px 16px;
  padding:22px;
  border:1px solid #dce7df;
  border-radius:18px;
  background:#fff;
  color:#162019!important;
  text-decoration:none!important;
  box-shadow:0 8px 24px rgba(21,38,27,.06);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
  overflow:hidden;
}
.view-card::after{
  content:"";
  position:absolute;
  inset:auto -28px -44px auto;
  width:120px;
  height:120px;
  border-radius:50%;
  background:rgba(40,209,124,.07);
  pointer-events:none;
}
.view-card:hover{
  transform:translateY(-2px);
  border-color:#74d9a6;
  box-shadow:0 14px 34px rgba(20,69,43,.12);
}
.view-card.active{
  border-color:var(--green);
  box-shadow:inset 0 0 0 1px var(--green),0 14px 34px rgba(40,209,124,.13);
}
.view-card.active::before{
  content:"Visão ativa";
  position:absolute;
  top:14px;
  right:14px;
  padding:5px 9px;
  border-radius:999px;
  background:#dcf7e8;
  color:#087645;
  font-size:11px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.view-card-icon{
  grid-row:1 / span 2;
  width:56px;
  height:56px;
  border-radius:16px;
  font-size:27px;
}
.view-card>div{min-width:0;padding-right:70px}
.view-card h2{font-size:22px;line-height:1.2;margin:1px 0 8px;color:#111b15}
.view-card p{font-size:14px;line-height:1.55}
.view-card>b{
  grid-column:2;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:9px;
  background:#edf8f2;
  color:#087a49;
  font-size:13px;
  text-decoration:none;
}

.categories-list-card{min-width:0}
.categories-table-wrap{border:1px solid #e3ebe6;border-radius:14px;overflow:auto}
.categories-table{min-width:700px;background:#fff}
.categories-table th{background:#f6f9f7;color:#58675e;font-size:12px;text-transform:uppercase;letter-spacing:.035em}
.categories-table th,.categories-table td{padding:14px 12px}
.categories-table tbody tr:hover{background:#f9fcfa}
.category-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.action-link,.text-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:9px;
  font-size:13px;
  font-weight:800;
  text-decoration:none!important;
}
.action-link{background:#edf5f0;color:#31513f}
.action-link:hover{background:#e2eee7;color:#1d3f2c}
.text-button{background:#eef3f0;color:#49584f}
.text-button.danger-action{background:#fff0f0;color:#a12f2f}
.text-button.danger-action:hover{background:#ffe2e2}
.text-button.success-action{background:#dcf7e8;color:#087645}
.text-button.success-action:hover{background:#c8f1da}

#category-form>button{margin-top:2px}
#category-form .choice-card{margin-bottom:12px}

@media(max-width:1100px){
  .products-grid{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}
}
@media(max-width:900px){
  .products-grid{grid-template-columns:1fr}
  .view-card>div{padding-right:62px}
}
@media(max-width:760px){
  .view-cards{grid-template-columns:1fr;gap:13px}
  .view-card{min-height:0;padding:18px;grid-template-columns:48px minmax(0,1fr);gap:8px 13px}
  .view-card-icon{width:48px;height:48px;border-radius:14px;font-size:23px}
  .view-card>div{padding-right:58px}
  .view-card h2{font-size:19px}
  .view-card.active::before{top:10px;right:10px;font-size:9px;padding:4px 7px}
}
@media(max-width:600px){
  .view-card{display:grid!important}
  .view-card>div{padding-right:0}
  .view-card.active::before{position:static;grid-column:2;grid-row:3;justify-self:start;margin-bottom:2px}
  .view-card>b{grid-column:2;grid-row:4}
  .categories-table-wrap{overflow:visible;border:0}
  .categories-table,.categories-table tbody,.categories-table tr,.categories-table td{display:block;width:100%;min-width:0}
  .categories-table thead{display:none}
  .categories-table tbody{display:grid;gap:12px}
  .categories-table tr{padding:14px;border:1px solid #e3ebe6;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(21,38,27,.05)}
  .categories-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:7px 0;border:0}
  .categories-table td::before{font-size:11px;font-weight:900;text-transform:uppercase;color:var(--muted)}
  .categories-table td:nth-child(1)::before{content:"Categoria"}
  .categories-table td:nth-child(2)::before{content:"Controle"}
  .categories-table td:nth-child(3)::before{content:"Mínimo"}
  .categories-table td:nth-child(4)::before{content:"Desejado"}
  .categories-table td:nth-child(5)::before{content:"Itens"}
  .categories-table td:nth-child(6)::before{content:"Ações"}
  .category-actions{display:grid;grid-template-columns:105px 1fr;white-space:normal}
  .category-actions::before{align-self:center}
  .category-actions>.action-link,.category-actions>.inline-form{grid-column:2}
  .category-actions .text-button,.category-actions .action-link{width:100%}
}

/* V18.2 — painel em sequência: categorias, itens e IA */
.dashboard-stack{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  margin-bottom:22px;
}
.dashboard-section-card{
  width:100%;
  min-width:0;
  padding:22px;
}
.dashboard-section-heading{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}
.dashboard-section-heading h2{
  margin:1px 0 7px;
  font-size:25px;
  line-height:1.2;
}
.dashboard-section-heading .section-intro{
  margin:0;
  line-height:1.48;
}
.dashboard-section-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  background:#eaf9f1;
  color:#087a49;
  font-size:23px;
  font-weight:900;
}
.dashboard-section-icon.ai-icon{
  background:#eef7ff;
  color:#2867a8;
}
.dashboard-stack .dashboard-table-wrap{
  margin-top:0;
}
.dashboard-stack .dashboard-analysis-card{
  min-height:0;
}
.compact-empty-state{
  padding:22px;
  border:1px dashed #cbd8d0;
  border-radius:14px;
  background:#f8fbf9;
}
.compact-empty-state p{
  margin:6px 0 0;
  color:var(--muted);
}
@media(max-width:760px){
  .dashboard-stack{gap:14px}
  .dashboard-section-card{padding:17px 14px}
  .dashboard-section-heading{gap:11px;margin-bottom:14px}
  .dashboard-section-heading h2{font-size:22px}
  .dashboard-section-icon{width:42px;height:42px;border-radius:12px;font-size:21px}
}

/* V18.3 — nova experiência da tela de movimentações */
.movement-page-title{align-items:flex-end;gap:24px}.page-eyebrow,.section-kicker{display:block;margin-bottom:6px;color:#087a49;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.movement-title-stats{display:flex;gap:10px}.movement-title-stats>div{display:grid;min-width:118px;padding:12px 14px;border:1px solid #dfe9e2;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(21,38,27,.05)}.movement-title-stats strong{font-size:22px;line-height:1;color:#087a49}.movement-title-stats span{margin-top:5px;color:var(--muted);font-size:12px}.movement-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:20px;align-items:start;margin-bottom:20px}.movement-form-card,.movement-history-card{min-width:0}.movement-card-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.movement-card-heading.compact{margin-bottom:13px}.movement-card-heading h2{margin:0 0 5px;font-size:24px}.movement-card-heading p{margin:0;color:var(--muted);line-height:1.45}.movement-heading-icon{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:#e8f9f0;color:#087a49;font-size:25px;font-weight:700}.movement-heading-icon.history{background:#eef5ff;color:#2d65a1}.movement-stock-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:16px 18px;border-radius:15px;border-left-width:4px}.movement-stock-preview>div{display:grid;gap:2px}.movement-stock-preview small{color:var(--muted)}.movement-stock-preview strong{font-size:25px;line-height:1.1}.movement-stock-preview span:not(.badge){font-size:13px;color:#5b6a61}.movement-form{display:grid;gap:17px}.movement-field{display:grid;gap:7px;margin:0}.movement-field>span,.movement-type-group legend{font-weight:800;color:#18231c}.movement-field em{font-size:11px;font-weight:700;color:var(--muted);font-style:normal}.movement-field small{margin-top:-1px;color:var(--muted);font-size:11px;line-height:1.35}.movement-field select,.movement-field input{min-height:46px}.movement-type-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0}.movement-type-group legend{grid-column:1/-1;margin-bottom:1px}.movement-type-option{position:relative;display:flex;align-items:center;gap:10px;min-height:72px;padding:12px;border:1px solid #dce7df;border-radius:13px;background:#fbfdfc;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.movement-type-option:hover{border-color:#9fdcbc;background:#f6fcf8}.movement-type-option input{position:absolute;opacity:0;pointer-events:none}.movement-type-option:has(input:checked){border-color:#20cf7a;background:#f0fbf5;box-shadow:inset 0 0 0 1px #20cf7a}.movement-type-option>span:last-child{display:grid;gap:2px}.movement-type-option strong{font-size:14px}.movement-type-option small{color:var(--muted);font-size:11px;line-height:1.25}.movement-type-icon{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:10px;font-weight:900}.movement-type-icon.entrada{background:#dcf7e8;color:#087645}.movement-type-icon.saida{background:#fff0f0;color:#ae3434}.movement-type-icon.ajuste{background:#fff7db;color:#8b6812}.movement-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.movement-observation-field{grid-column:1/-1}.money-input{display:grid;grid-template-columns:auto 1fr;align-items:center;border:1px solid #cfdad3;border-radius:10px;background:#fff;overflow:hidden}.money-input>span{padding:0 0 0 14px;color:#64756d;font-weight:800}.money-input input{border:0!important;box-shadow:none!important}.movement-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:16px;border-top:1px solid #e6ece8}.movement-form-footer p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.movement-form-footer p strong{color:#26342b}.movement-submit-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 17px;white-space:nowrap}.movement-submit-button span{font-size:16px}.operations-list{display:grid;gap:9px;max-height:570px;overflow:auto;padding-right:3px}.operation-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px;border:1px solid #e4ebe7;border-radius:13px;background:#fbfdfc}.operation-item-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;font-weight:900}.operation-item-entrada .operation-item-icon{background:#dcf7e8;color:#087645}.operation-item-saida .operation-item-icon{background:#fff0f0;color:#ae3434}.operation-item-ajuste .operation-item-icon{background:#fff7db;color:#8b6812}.operation-item-main{min-width:0}.operation-item-title{display:flex;align-items:center;gap:7px;min-width:0}.operation-item-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operation-item-title .badge{padding:3px 7px;font-size:10px}.operation-item-main>small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.operation-item-quantity{display:grid;justify-items:end;font-size:14px;white-space:nowrap}.operation-item-quantity small{font-size:10px;color:var(--muted)}.movement-empty-state{display:grid;gap:5px;padding:25px 15px;border:1px dashed #ccd8d0;border-radius:13px;text-align:center;background:#f8fbf9}.movement-empty-state span{color:var(--muted);font-size:13px}.movement-stock-card{margin-bottom:22px}.movement-stock-heading{align-items:flex-end}.stock-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;color:var(--muted);font-size:11px}.stock-legend span{display:inline-flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.legend-dot.ok{background:#20cf7a}.legend-dot.comprar{background:#f0b43c}.legend-dot.critico{background:#ec6a6a}.movement-stock-table-wrap{border:1px solid #e3ebe6;border-radius:14px}.movement-stock-table{min-width:1050px}.movement-stock-table th{background:#f7faf8;color:#59685f;font-size:11px;text-transform:uppercase;letter-spacing:.035em}.movement-stock-table th,.movement-stock-table td{padding:13px 12px}.movement-stock-table tbody tr:hover{background:#f9fcfa}.stock-product-name{display:flex;align-items:center;gap:10px}.stock-product-name>div{display:grid}.stock-product-name small{color:var(--muted);margin-top:2px}.stock-product-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edf8f2;color:#087a49}.stock-current-value strong{color:#087a49;font-size:15px}.stock-level-line{display:grid;grid-template-columns:minmax(100px,1fr) auto;align-items:center;gap:9px}.stock-level-line .stock-bar{min-width:100px}.stock-level-line>strong{font-size:12px}.visual-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f0f4f1;color:#4b5a51;font-size:12px}
@media(max-width:1100px){.movement-workspace{grid-template-columns:1fr}.operations-list{max-height:none}.movement-history-card{order:2}}
@media(max-width:760px){.movement-page-title{align-items:flex-start}.movement-title-stats{width:100%}.movement-title-stats>div{flex:1;min-width:0}.movement-workspace{gap:14px}.movement-type-group{grid-template-columns:1fr}.movement-form-grid{grid-template-columns:1fr}.movement-observation-field{grid-column:auto}.movement-form-footer{align-items:stretch;flex-direction:column}.movement-submit-button{width:100%}.movement-stock-heading{align-items:flex-start}.stock-legend{justify-content:flex-start}.movement-card-heading h2{font-size:21px}}
@media(max-width:520px){.movement-title-stats{display:grid;grid-template-columns:1fr 1fr}.movement-stock-preview{align-items:flex-start;flex-direction:column}.operation-item{grid-template-columns:auto minmax(0,1fr)}.operation-item-quantity{grid-column:2;justify-items:start}.movement-form-card,.movement-history-card{padding:16px 14px}}

/* V18.5 — tela de produtos reorganizada */
.product-page-title{align-items:flex-end;gap:24px}.product-title-stats{display:flex;gap:10px}.product-title-stats>div{display:grid;min-width:118px;padding:12px 14px;border:1px solid #dfe9e2;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(21,38,27,.05)}.product-title-stats strong{font-size:22px;line-height:1;color:#087a49}.product-title-stats span{margin-top:5px;color:var(--muted);font-size:12px}.product-workspace{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(0,1.25fr);gap:20px;align-items:start;margin-bottom:22px}.product-form-card,.products-list-card{min-width:0}.product-card-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}.product-card-heading.compact{margin-bottom:16px}.product-card-heading h2{margin:0 0 5px;font-size:24px}.product-card-heading p{margin:0;color:var(--muted);line-height:1.45}.product-heading-icon{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:#e8f9f0;color:#087a49;font-size:25px;font-weight:800}.product-heading-icon.list{background:#eef5ff;color:#2d65a1}.product-form{display:grid;gap:18px}.product-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-field{display:grid;gap:7px;margin:0}.product-field-full{grid-column:1/-1}.product-field>span{font-weight:800;color:#18231c}.product-field>small{margin-top:-1px;color:var(--muted);font-size:11px;line-height:1.35}.product-field input,.product-field select{min-height:46px}.product-minimum-control{grid-template-columns:1fr;gap:10px;margin:0}.product-minimum-control legend{margin-bottom:2px;font-size:16px}.product-choice-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:flex-start;gap:12px;margin:0;padding:14px 15px;border:1px solid #dce7df;border-radius:14px;background:#fbfdfc;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.product-choice-card:hover{border-color:#9fdcbc;background:#f7fcf9}.product-choice-card>input{position:absolute;opacity:0;pointer-events:none}.product-choice-card>span:last-child{display:grid;gap:4px}.product-choice-card b{font-size:14px}.product-choice-card small{color:var(--muted);font-size:11px;line-height:1.4}.choice-dot,.choice-check{display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border:2px solid #bccbc2;border-radius:50%;background:#fff;color:transparent;font-size:12px}.choice-check{border-radius:6px}.product-choice-card:has(input:checked){border-color:#20cf7a;background:#f0fbf5;box-shadow:inset 0 0 0 1px #20cf7a}.product-choice-card:has(input:checked) .choice-dot{border-color:#20cf7a;box-shadow:inset 0 0 0 4px #fff;background:#20cf7a}.product-choice-card:has(input:checked) .choice-check{border-color:#20cf7a;background:#20cf7a;color:#fff}.minimum-values-panel{padding:14px;border:1px solid #e1ebe5;border-radius:14px;background:#f8fbf9}.open-container-choice{margin-top:0}.product-open-control{display:grid;gap:15px;padding:16px;border:1px solid #dce7df;border-radius:15px;background:#f8fbf9}.product-open-control[hidden]{display:none}.open-control-heading{display:flex;align-items:flex-start;gap:11px}.open-control-heading>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e7f7ef;color:#087a49}.open-control-heading h3{margin:0 0 3px}.open-control-heading p{margin:0;color:var(--muted);font-size:12px}.product-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:16px;border-top:1px solid #e6ece8}.product-form-footer p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.product-form-footer p strong{color:#26342b}.product-submit-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;white-space:nowrap}.products-table-wrap{border:1px solid #e3ebe6;border-radius:14px}.products-table{min-width:880px}.products-table th{background:#f7faf8;color:#59685f;font-size:11px;text-transform:uppercase;letter-spacing:.035em}.products-table th,.products-table td{padding:14px 12px;vertical-align:middle}.products-table tbody tr:hover{background:#f9fcfa}.product-name-cell{display:flex;align-items:center;gap:10px}.product-name-cell>div{display:grid;gap:2px}.product-name-cell small,.product-info-stack small{color:var(--muted)}.product-list-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf8f2;color:#087a49;font-weight:900}.control-badge{display:inline-flex;align-items:center;max-width:170px;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.2;white-space:normal}.control-badge.item{background:#e5f7ed;color:#087645}.control-badge.category{background:#eef5ff;color:#2d65a1}.control-badge.both{background:#fff4d8;color:#84630c}.product-info-stack{display:grid;gap:3px}.muted-value{color:var(--muted);font-size:12px}.product-limits{display:flex;gap:18px}.product-limits>div{display:grid;gap:2px}.product-limits small{color:var(--muted);font-size:10px;text-transform:uppercase}.category-managed{display:inline-flex;padding:6px 9px;border-radius:9px;background:#eef5ff;color:#2d65a1;font-size:11px;font-weight:800}.product-empty-state{display:grid;gap:5px;padding:28px 16px;border:1px dashed #ccd8d0;border-radius:14px;text-align:center;background:#f8fbf9}.product-empty-state span{color:var(--muted);font-size:13px}
@media(max-width:1150px){.product-workspace{grid-template-columns:1fr}.products-list-card{order:2}}
@media(max-width:760px){.product-page-title{align-items:flex-start}.product-title-stats{width:100%}.product-title-stats>div{flex:1;min-width:0}.product-workspace{gap:14px}.product-form-grid{grid-template-columns:1fr}.product-field-full{grid-column:auto}.product-form-footer{align-items:stretch;flex-direction:column}.product-submit-button{width:100%}.product-card-heading h2{font-size:21px}}
@media(max-width:600px){.products-table-wrap{overflow:visible;border:0}.products-table,.products-table tbody,.products-table tr,.products-table td{display:block;width:100%;min-width:0}.products-table thead{display:none}.products-table tbody{display:grid;gap:12px}.products-table tr{padding:14px;border:1px solid #e3ebe6;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(21,38,27,.05)}.products-table td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:8px 0;border:0}.products-table td::before{content:attr(data-label);font-size:10px;font-weight:900;text-transform:uppercase;color:var(--muted)}.product-limits{flex-wrap:wrap}.control-badge{max-width:none}.product-choice-card{padding:13px}}

/* V19 — consumo semanal e listas de compra em PDF */
.dashboard-card-footer{display:flex;justify-content:flex-end;margin-top:18px;padding-top:16px;border-top:1px solid #e5ece7}.pdf-action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 17px;border:1px solid #b8ddc8;border-radius:12px;background:#eef9f3;color:#087a49;font-weight:900;text-decoration:none;box-shadow:0 4px 12px rgba(8,122,73,.07);transition:transform .15s ease,background .15s ease,border-color .15s ease}.pdf-action-button:hover{transform:translateY(-1px);background:#e2f6eb;border-color:#79c99d}.ai-pdf-button{border-color:#9edbb9;background:#087a49;color:#fff}.ai-pdf-button:hover{background:#06653d;border-color:#06653d}.category-stock-table{min-width:1100px}.dashboard-items-card .responsive-items-table{min-width:980px}@media(max-width:760px){.dashboard-card-footer{justify-content:stretch}.pdf-action-button{width:100%;text-align:center}.category-stock-table,.dashboard-items-card .responsive-items-table{min-width:0}}

/* V22 — gestão visual de grupos equivalentes */
.equivalent-selector-panel{display:grid;gap:14px;padding:16px;border:1px solid #dce8e0;border-radius:16px;background:linear-gradient(180deg,#fbfefc,#f5faf7)}
.equivalent-selector-panel[hidden]{display:none}.equivalent-selector-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.equivalent-selector-heading h3{margin:2px 0 4px;font-size:18px}.equivalent-selector-heading p{margin:0;color:var(--muted);font-size:12px}.manage-groups-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #b8ddc8;border-radius:10px;background:#fff;color:#087a49;font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap}.manage-groups-link:hover{background:#edf9f2}
.group-selector-search,.group-search-box{display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid #dce7df;border-radius:12px;background:#fff}.group-selector-search span,.group-search-box span{color:#7c8e83;font-size:20px}.group-selector-search input,.group-search-box input{width:100%;min-height:42px;border:0;background:transparent;box-shadow:none;padding-left:0}.group-selector-search input:focus,.group-search-box input:focus{outline:0;box-shadow:none}
.group-selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:390px;overflow:auto;padding:2px}.group-select-card{display:grid;gap:8px;min-width:0;padding:14px;border:1px solid #dfe9e3;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:.16s ease}.group-select-card:hover{transform:translateY(-1px);border-color:#9bd8b7;box-shadow:0 7px 18px rgba(21,38,27,.07)}.group-select-card.selected{border-color:#18c977;background:#effbf5;box-shadow:inset 0 0 0 1px #18c977}.group-select-top{display:flex;align-items:center;justify-content:space-between}.group-select-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#eaf8f0;color:#087a49;font-weight:900}.group-select-check{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#dce7df;color:transparent;font-size:12px}.group-select-card.selected .group-select-check{background:#18c977;color:#fff}.group-select-card strong{font-size:14px;color:#18231c}.group-select-card>small{color:var(--muted);font-size:11px}.group-member-chips{display:flex;flex-wrap:wrap;gap:5px}.group-member-chips span{display:inline-flex;max-width:100%;padding:4px 7px;border-radius:999px;background:#f0f4f1;color:#435249;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-member-chips em{color:#8b9990;font-size:10px;font-style:normal}.group-select-limits{padding-top:7px;border-top:1px solid #edf1ee;color:#68776e;font-size:10px;font-weight:700}.group-selector-empty{padding:16px;border:1px dashed #cad8cf;border-radius:12px;background:#fff;text-align:center;color:var(--muted);font-size:12px}.group-selector-empty a{color:#087a49;font-weight:800}
.groups-page-title{align-items:flex-end}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 15px;border-radius:12px;text-decoration:none;font-weight:900}.primary-action{background:#087a49;color:#fff}.secondary-action{border:1px solid #d6e2da;background:#fff;color:#314238}.groups-layout{display:grid;grid-template-columns:minmax(290px,.72fr) minmax(0,1.5fr);gap:20px;align-items:start;margin-bottom:20px}.groups-catalog-card,.group-board-card{min-width:0}.groups-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.groups-card-heading h2{margin:2px 0 4px;font-size:22px}.groups-card-heading p{margin:0;color:var(--muted);font-size:12px}.groups-count{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border-radius:12px;background:#e9f8f0;color:#087a49;font-weight:900}.groups-card-grid{display:grid;gap:10px;margin-top:12px;max-height:690px;overflow:auto;padding:2px}.group-library-card{display:grid;gap:8px;padding:14px;border:1px solid #dfe8e2;border-radius:14px;background:#fff;color:inherit;text-decoration:none;transition:.16s ease}.group-library-card:hover{transform:translateY(-1px);border-color:#9bd8b7;box-shadow:0 7px 18px rgba(21,38,27,.06)}.group-library-card.selected{border-color:#18c977;background:#effbf5;box-shadow:inset 0 0 0 1px #18c977}.group-library-card.inactive{opacity:.62}.group-library-top{display:flex;align-items:center;justify-content:space-between}.group-library-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf8f0;color:#087a49;font-size:17px;font-weight:900}.group-library-status{font-size:10px;font-weight:900;color:#087a49}.group-library-card strong{font-size:15px}.group-library-card>small{color:var(--muted);font-size:11px}
.group-board-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.group-board-header h2{margin:2px 0 4px;font-size:25px}.group-board-header p{margin:0;color:var(--muted)}.group-board-actions{display:flex;align-items:center;gap:8px}.group-board-actions form{margin:0}.group-limit-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.group-limit-strip>div{display:grid;gap:4px;padding:13px;border:1px solid #e1eae4;border-radius:13px;background:#f8fbf9}.group-limit-strip small{color:var(--muted);font-size:10px;text-transform:uppercase;font-weight:800}.group-limit-strip strong{font-size:18px;color:#087a49}.equivalence-board{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);gap:12px;align-items:stretch}.equivalence-column{display:grid;grid-template-rows:auto 1fr;min-height:430px;padding:14px;border:1px solid #dfe8e2;border-radius:15px;background:#fafcfb}.members-column{background:#f2fbf6;border-color:#c8e9d7}.equivalence-column-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e6ece8}.equivalence-column-heading h3{margin:0 0 3px;font-size:17px}.equivalence-column-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.35}.equivalence-column-heading>span{display:grid;place-items:center;min-width:29px;height:29px;border-radius:9px;background:#e7f5ed;color:#087a49;font-weight:900}.equivalence-list{display:grid;align-content:start;gap:9px;min-height:300px;padding-top:12px;border-radius:12px;transition:.15s ease}.equivalence-list.drag-over{background:#e2f7eb;box-shadow:inset 0 0 0 2px #18c977}.equivalence-product-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e0e8e3;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(21,38,27,.04);cursor:grab}.equivalence-product-card.dragging{opacity:.45}.equivalence-product-card>div{display:grid;gap:3px;min-width:0}.equivalence-product-card strong{font-size:13px}.equivalence-product-card small{color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.equivalence-product-card form{margin:0}.equivalence-product-card button{display:grid;place-items:center;width:31px;height:31px;padding:0;border-radius:9px;background:#e9f8f0;color:#087a49;font-size:18px}.equivalence-product-card.in-group button{background:#fff0f0;color:#b34444}.equivalence-transfer{display:grid;place-content:center;justify-items:center;gap:7px;color:#7f9186}.equivalence-transfer span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#edf4ef;color:#087a49;font-size:18px}.equivalence-transfer small{text-align:center;font-size:9px;line-height:1.2}.equivalence-empty{padding:24px 12px;border:1px dashed #ccd8d0;border-radius:12px;text-align:center;color:var(--muted);font-size:11px}.group-board-empty{display:grid;place-items:center;gap:8px;padding:70px 20px;text-align:center}.group-board-empty>span{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#e9f8f0;color:#087a49;font-size:28px}.group-board-empty h2{margin:4px 0 0}.group-board-empty p{margin:0;color:var(--muted)}
.group-form-card{margin-bottom:22px}.group-create-form{display:grid;grid-template-columns:1.4fr 1fr .8fr .8fr .8fr auto;gap:12px;align-items:end}.group-create-form label{display:grid;gap:7px}.group-create-form label>span{font-weight:800;font-size:12px}.group-create-form input,.group-create-form select{min-height:44px}
@media(max-width:1180px){.groups-layout{grid-template-columns:1fr}.groups-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.group-create-form{grid-template-columns:repeat(3,minmax(0,1fr))}.group-create-form button{width:100%}}
@media(max-width:800px){.equivalence-board{grid-template-columns:1fr}.equivalence-transfer{grid-auto-flow:column;place-content:center}.equivalence-transfer span{transform:rotate(90deg)}.group-selector-grid,.groups-card-grid{grid-template-columns:1fr}.group-limit-strip{grid-template-columns:1fr}.group-board-header,.equivalent-selector-heading{align-items:stretch;flex-direction:column}.group-board-actions{justify-content:flex-start}.group-create-form{grid-template-columns:1fr}.equivalence-column{min-height:300px}.groups-page-title{align-items:flex-start}}

/* v23: status padronizados em todo o sistema */
.badge.ok{background:#dff5e8;color:#087645}
.badge.atencao{background:#fff6c7;color:#735b00}
.badge.comprar{background:#ffe2bd;color:#8a4600}
.badge.critico{background:#ffd7d7;color:#8e1515}
.legend-dot.atencao{background:#e9c73b}
.status-atencao{background:#fff9dc;border-color:#ead16a}
.stock-bar-fill.status-atencao{background:#e9c73b}

/* V25: configuração flexível dos níveis do recipiente */
.inline-choice-row{display:flex;gap:10px;flex-wrap:wrap;padding-top:9px}.inline-choice-row label{display:flex;align-items:center;gap:7px;padding:10px 13px;border:1px solid #d4e2da;border-radius:12px;background:#fff;font-weight:800}.levels-config-panel{margin:14px 0;padding:16px;border:1px solid #d7e5dc;border-radius:16px;background:#f8fbf9}.levels-config-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-bottom:12px}.levels-config-heading small{color:#5c6f64}.levels-value-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.levels-value-grid label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;padding:9px 10px;border:1px solid #d9e5de;border-radius:12px;background:#fff}.levels-value-grid span{font-weight:900;color:#087a49}.levels-value-grid input{min-width:0;border:0!important;padding:5px!important;background:transparent!important}.levels-value-grid em{font-style:normal;font-weight:800;color:#67776e}.image-mode-panel{margin:14px 0}.image-mode-panel>strong{display:block;margin-bottom:9px}.image-mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.image-mode-options label{display:flex;gap:9px;padding:13px;border:1px solid #d5e2da;border-radius:14px;background:#fff;cursor:pointer}.image-mode-options label:has(input:checked){border-color:#18c978;background:#f2fcf7;box-shadow:0 0 0 2px rgba(24,201,120,.12)}.image-mode-options span{display:grid;gap:4px}.image-mode-options small{color:#617168;line-height:1.35}@media(max-width:760px){.image-mode-options{grid-template-columns:1fr}.levels-config-heading{display:grid}}

/* V26: editor moderno e funcional dos níveis do recipiente */
.recipient-level-setup{display:grid;gap:14px;padding:16px;border:1px solid #dbe8e0;border-radius:16px;background:linear-gradient(180deg,#fff,#f7fbf8)}
.recipient-level-toolbar{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:14px;align-items:stretch}
.level-count-field{padding:14px;border:1px solid #dfe9e3;border-radius:14px;background:#fff}.level-count-field select{margin-top:auto}
.level-mode-field{min-width:0;margin:0;padding:0;border:0}.level-mode-field legend{margin-bottom:8px;font-weight:900;color:#18231c}
.level-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;height:calc(100% - 28px)}
.level-mode-options label{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:flex-start;padding:14px;border:1px solid #dce7df;border-radius:14px;background:#fff;cursor:pointer;transition:.16s ease}
.level-mode-options label:hover{border-color:#9ed9b8;transform:translateY(-1px)}.level-mode-options label:has(input:checked){border-color:#18c977;background:#effbf5;box-shadow:inset 0 0 0 1px #18c977}
.level-mode-options input{margin-top:3px}.level-mode-options span{display:grid;gap:4px}.level-mode-options b{font-size:14px}.level-mode-options small{color:var(--muted);font-size:11px;line-height:1.35}
.levels-config-panel{margin:0;padding:15px;border:1px solid #dbe7df;border-radius:14px;background:#f8fbf9;min-height:94px}
.levels-config-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.levels-config-heading>div{display:grid;gap:4px}.levels-config-heading strong{font-size:15px}.levels-config-heading small{color:#5c6f64;line-height:1.35}.levels-unit-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e6f7ee;color:#087a49;font-size:11px;font-weight:900}
.levels-value-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.levels-value-grid label,.level-preview-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:48px;padding:9px 11px;border:1px solid #dce7df;border-radius:12px;background:#fff}
.levels-value-grid label:focus-within{border-color:#18c977;box-shadow:0 0 0 3px rgba(24,201,119,.12)}.levels-value-grid span,.level-preview-card span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf8f0;color:#087a49;font-weight:900}.levels-value-grid input{min-width:0;width:100%;border:0!important;padding:6px 2px!important;background:transparent!important;box-shadow:none!important;font-weight:800}.levels-value-grid em{font-style:normal;color:#67776e;font-size:11px;font-weight:900}.level-preview-card{grid-template-columns:auto 1fr}.level-preview-card strong{text-align:right;color:#24352b;font-size:13px}
.image-mode-panel{display:grid;gap:10px;margin:0;padding:16px;border:1px solid #dbe8e0;border-radius:16px;background:#fff}.image-mode-heading{display:grid;gap:3px}.image-mode-heading>strong{font-size:15px}.image-mode-heading>small{color:var(--muted);font-size:11px}
.image-mode-options{grid-template-columns:repeat(3,minmax(0,1fr))}.image-mode-options label{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:flex-start;gap:10px;min-height:116px;padding:14px}.image-mode-options input{position:absolute;top:12px;right:12px}.image-mode-icon{display:grid!important;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf7f2;color:#087a49;font-weight:900}.image-mode-options label:has(input:checked) .image-mode-icon{background:#18c977;color:#fff}.image-mode-options b{font-size:14px}.image-mode-options small{font-size:11px}
@media(max-width:760px){.recipient-level-toolbar{grid-template-columns:1fr}.level-mode-options{grid-template-columns:1fr}.image-mode-options{grid-template-columns:1fr}.image-mode-options label{min-height:0}.levels-value-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.levels-value-grid{grid-template-columns:1fr}}

/* V27 — contenção visual e responsividade do cadastro de produtos */
.product-form,
.product-form > *,
.product-minimum-control,
.minimum-values-panel,
.open-container-choice,
.product-open-control,
.recipient-level-setup,
.recipient-level-toolbar,
.level-mode-field,
.level-mode-options,
.levels-config-panel,
.image-mode-panel,
.image-mode-options{
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.product-form fieldset{min-inline-size:0}
.product-form-grid > *,
.recipient-level-toolbar > *,
.level-mode-options > *,
.image-mode-options > *{min-width:0;max-width:100%;box-sizing:border-box}
.product-field input,
.product-field select,
.product-field textarea,
.level-count-field select{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.product-choice-card{width:100%;max-width:100%;overflow:hidden}
.product-choice-card > span:last-child,
.open-control-heading > div,
.level-mode-options span,
.image-mode-options label > span:last-child{min-width:0}
.product-choice-card b,
.product-choice-card small,
.open-control-heading p,
.level-mode-options small,
.image-mode-options small{overflow-wrap:anywhere}
.product-open-control{overflow:hidden}
.recipient-level-toolbar{align-items:start}
.level-mode-options{height:auto}
.level-mode-options label{min-height:96px}
.image-mode-options label{min-height:126px}
.levels-config-panel:empty{display:none}

/* A coluna do formulário fica compacta antes do layout geral virar uma coluna. */
@media(max-width:980px){
  .product-form-grid{grid-template-columns:1fr}
  .product-field-full{grid-column:auto}
  .recipient-level-toolbar{grid-template-columns:1fr}
  .level-mode-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .image-mode-options{grid-template-columns:1fr}
  .image-mode-options label{min-height:0}
}
@media(max-width:620px){
  .level-mode-options{grid-template-columns:1fr}
  .product-choice-card{padding:13px 12px}
  .minimum-values-panel,
  .product-open-control,
  .recipient-level-setup,
  .image-mode-panel{padding:13px}
  .levels-value-grid{grid-template-columns:1fr}
}

/* V28 — correção definitiva do estouro visual no recipiente aberto */
.product-form-card,
.product-form-card .product-form,
.product-open-control,
.product-open-control > *,
.recipient-level-setup,
.recipient-level-setup > *,
.recipient-level-toolbar,
.recipient-level-toolbar > *,
.level-mode-field,
.level-mode-options,
.level-mode-options > *,
.image-mode-panel,
.image-mode-options,
.image-mode-options > *,
.levels-config-panel,
.levels-value-grid,
.levels-value-grid > *{
  min-inline-size:0;
  max-inline-size:100%;
  inline-size:100%;
  box-sizing:border-box;
}
.product-form-card{overflow:clip}
.product-open-control{overflow:clip;contain:layout paint}
.recipient-level-setup{overflow:clip}
.level-mode-field{display:grid;gap:9px;padding:0;border:0;background:transparent}
.level-mode-title{font-weight:900;color:#18231c;line-height:1.25}
.level-mode-options{height:auto;align-items:stretch}
.level-mode-options label{width:auto;min-height:86px;overflow:hidden}
.level-mode-options label span{overflow:hidden}
.level-mode-options b,.level-mode-options small{display:block;max-width:100%;overflow-wrap:anywhere;word-break:normal}
.level-count-field{width:auto}
.level-count-field select{display:block;max-width:100%}
.levels-config-panel{overflow:hidden}
.levels-value-grid{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}
.image-mode-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.image-mode-options label{width:auto;overflow:hidden}
.product-open-control .product-form-grid{width:100%;max-width:100%}

/* O formulário passa para uma coluna antes que os cartões fiquem espremidos. */
@media(max-width:1180px){
  .recipient-level-toolbar{grid-template-columns:1fr}
  .level-mode-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .image-mode-options{grid-template-columns:1fr}
  .image-mode-options label{min-height:0}
}
@media(max-width:700px){
  .level-mode-options{grid-template-columns:1fr}
  .product-open-control{padding:12px}
  .recipient-level-setup,.image-mode-panel{padding:12px}
}


/* V29 — amplia o formulário quando o recipiente aberto está ativo */
.product-workspace.recipient-expanded{
  grid-template-columns:minmax(600px,1.18fr) minmax(340px,.82fr);
}
.product-workspace.recipient-expanded .product-form-card{
  width:100%;
  max-width:none;
}
.product-workspace.recipient-expanded .product-open-control{
  overflow:visible;
  contain:none;
}
@media(max-width:1220px){
  .product-workspace.recipient-expanded{grid-template-columns:1fr}
  .product-workspace.recipient-expanded .products-list-card{order:2}
}
@media(max-width:760px){
  .product-workspace.recipient-expanded .product-form-card{padding-left:16px;padding-right:16px}
}

/* V30 — corrige os seletores de imagem sobrepondo os títulos dos cartões */
.image-mode-options label{
  position:relative;
  padding-right:46px;
}
.image-mode-options input[type="radio"]{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:0;
  padding:0;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
}
.image-mode-options label::after{
  content:"";
  position:absolute;
  top:13px;
  right:13px;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:2px solid #bfd1c7;
  border-radius:999px;
  background:#fff;
  color:#fff;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-sizing:border-box;
}
.image-mode-options label:has(input:checked)::after{
  content:"✓";
  border-color:#18c977;
  background:#18c977;
}
.image-mode-options label:has(input:focus-visible){
  outline:3px solid rgba(24,201,119,.22);
  outline-offset:2px;
}
.image-mode-options label > span:last-child{
  padding-top:1px;
}
@media(max-width:420px){
  .image-mode-options label{padding-right:42px}
}

/* V31 — revisão obrigatória e separação entre embalagens fechadas e recipiente aberto */
.stock-split-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.stock-split-summary>div{padding:12px;border:1px solid #dfe9e3;border-radius:14px;background:#f8fbf9}
.stock-split-summary small{display:block;color:#64746c;margin-bottom:4px}
.stock-split-summary b{display:block;font-size:1.05rem;color:#173c2d}
.daily-review{display:grid;gap:8px;margin:14px 0;padding:12px;border:1px solid #dfe9e3;border-radius:14px;background:#fff}
.daily-review legend{padding:0 6px;font-weight:800;color:#254b3b}
.daily-review label{display:flex;align-items:center;gap:9px;margin:0;padding:10px;border:1px solid #e5ece8;border-radius:11px;cursor:pointer}
.daily-review input{width:auto;margin:0}
.daily-review label:has(input:checked){border-color:#18c977;background:#effcf6}
@media(max-width:650px){.stock-split-summary{grid-template-columns:1fr}.stock-split-summary>div{display:flex;justify-content:space-between;align-items:center}.stock-split-summary small{margin:0}}
.daily-edit-fields{transition:opacity .18s ease,filter .18s ease}
.daily-edit-fields.is-locked{opacity:.58;filter:saturate(.65)}
.daily-edit-fields.is-locked input,.daily-edit-fields.is-locked select,.daily-edit-fields.is-locked textarea{cursor:not-allowed;background:#eef3f0;color:#68766f}

/* Registro diário — seletor moderno de confirmação (V33) */
.daily-review{
  margin:16px 0 18px;
  padding:0;
  border:0;
  background:transparent;
}
.daily-review legend{
  width:100%;
  padding:0;
  margin:0 0 4px;
  font-size:.95rem;
  font-weight:800;
  color:#183e2f;
}
.daily-review-help{
  margin:0 0 10px;
  color:#718078;
  font-size:.82rem;
  line-height:1.35;
}
.daily-review-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.daily-review-option{
  position:relative;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 20px;
  align-items:center;
  gap:10px;
  min-height:78px;
  margin:0;
  padding:12px;
  border:1px solid #dce8e1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 10px rgba(20,58,43,.045);
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}
.daily-review-option:hover{
  transform:translateY(-1px);
  border-color:#b7d2c4;
  box-shadow:0 7px 18px rgba(20,58,43,.09);
}
.daily-review-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.daily-review-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background:#eef5f1;
  color:#49665a;
}
.daily-review-icon svg{width:22px;height:22px;fill:currentColor}
.daily-review-copy{display:block;min-width:0}
.daily-review-copy strong{
  display:block;
  margin-bottom:3px;
  color:#1d332a;
  font-size:.91rem;
  line-height:1.18;
}
.daily-review-copy small{
  display:block;
  color:#77847e;
  font-size:.75rem;
  line-height:1.3;
}
.daily-review-check{
  width:19px;
  height:19px;
  border:2px solid #c6d3cc;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 4px #fff;
  transition:border-color .18s ease,background .18s ease;
}
.daily-review-option:has(input:focus-visible){
  outline:3px solid rgba(24,201,119,.2);
  outline-offset:2px;
}
.daily-review-option--unchanged:has(input:checked){
  border-color:#19bd71;
  background:linear-gradient(135deg,#f4fff9,#ecfbf4);
  box-shadow:0 8px 22px rgba(25,189,113,.14);
}
.daily-review-option--unchanged:has(input:checked) .daily-review-icon{
  background:#dff8ec;
  color:#10985a;
}
.daily-review-option--unchanged:has(input:checked) .daily-review-check{
  border-color:#19bd71;
  background:#19bd71;
}
.daily-review-option--changed:has(input:checked){
  border-color:#e7a72f;
  background:linear-gradient(135deg,#fffaf0,#fff5df);
  box-shadow:0 8px 22px rgba(231,167,47,.15);
}
.daily-review-option--changed:has(input:checked) .daily-review-icon{
  background:#ffedc9;
  color:#b87500;
}
.daily-review-option--changed:has(input:checked) .daily-review-check{
  border-color:#e7a72f;
  background:#e7a72f;
}
@media(max-width:760px){
  .daily-review-options{grid-template-columns:1fr}
  .daily-review-option{min-height:70px}
}

/* v34 — movimentações financeiras, correções específicas e modal auditável */
.movement-financial-section{margin-top:18px;padding:18px;border:1px solid #dce7e1;border-radius:16px;background:linear-gradient(180deg,#fbfefc,#f6faf8)}
.movement-subheading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.movement-subheading div{display:grid;gap:2px}.movement-subheading small{color:#66766e}.movement-subheading>span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#087a44;background:#e5f8ed;padding:5px 8px;border-radius:999px}
.movement-info-box{margin-top:16px;padding:14px 16px;border-radius:14px;border:1px solid #cbdbea;background:#f3f8fd;display:grid;grid-template-columns:1fr auto;gap:3px 14px}.movement-info-box strong{color:#174e7a}.movement-info-box span{font-size:19px;font-weight:900;color:#174e7a}.movement-info-box small{grid-column:1/-1;color:#61717e}
.movement-result-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px;padding:12px;border-radius:15px;background:#f6faf8;border:1px solid #dbe7e0}.movement-result-preview>div{padding:8px 10px;border-right:1px solid #dbe7e0}.movement-result-preview>div:last-child{border:0}.movement-result-preview small{display:block;color:#68766f;font-size:11px}.movement-result-preview strong{display:block;margin-top:3px;font-size:15px}.movement-result-preview.invalid{border-color:#efb9bd;background:#fff4f5}.movement-result-preview.invalid>div:last-child strong{color:#b4232d}
.operation-item-side{display:flex;align-items:center;gap:8px;margin-left:auto}.operation-menu-button{width:32px;height:32px;border:1px solid #d8e2dc;background:#fff;border-radius:10px;cursor:pointer;font-weight:900;color:#486056;letter-spacing:1px}.operation-menu-button:hover{border-color:#1dcc79;background:#effcf5;color:#087a44}.operation-details-line{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:5px}.operation-details-line span{font-size:10px;font-weight:700;color:#52665d;background:#f1f6f3;border-radius:999px;padding:3px 7px}.operation-reason{display:block;margin-top:5px;color:#64736c}.operation-revised-badge,.operation-cancelled-badge{font-size:9px;font-weight:800;padding:3px 6px;border-radius:999px}.operation-revised-badge{background:#fff3cf;color:#825b00}.operation-cancelled-badge{background:#fde5e7;color:#a6222c}.operation-cancelled{opacity:.62}.operation-cancelled .operation-item-quantity{text-decoration:line-through}.operation-cancelled .operation-item-icon{background:#f2f2f2!important;color:#777!important}
.movement-modal-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(15,27,21,.55);backdrop-filter:blur(4px);display:grid;place-items:center;padding:18px}.movement-modal-backdrop[hidden]{display:none}.movement-modal{position:relative;width:min(680px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 80px rgba(0,0,0,.25);padding:26px}.movement-modal-close{position:absolute;right:17px;top:14px;border:0;background:#eef4f1;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}.movement-modal h2{margin:4px 42px 4px 0}.movement-modal>p{color:#617168;margin-top:0}.movement-modal-tabs{display:flex;gap:8px;margin:18px 0;border-bottom:1px solid #dfe8e3}.movement-modal-tabs button{border:0;background:transparent;padding:10px 12px;font-weight:800;cursor:pointer;color:#66756e;border-bottom:3px solid transparent}.movement-modal-tabs button.active{color:#087a44;border-bottom-color:#1dcc79}.movement-modal-panel{display:none}.movement-modal-panel.active{display:grid;gap:15px}.movement-modal-panel textarea{min-height:84px;resize:vertical}.movement-modal-notice{padding:11px 13px;border-radius:12px;background:#f2f7f4;color:#5f7067;font-size:12px}.movement-danger-box{display:grid;gap:4px;padding:15px;border:1px solid #f1b8bd;border-radius:14px;background:#fff4f5;color:#9f202a}.movement-danger-button{border:0;border-radius:12px;background:#c9343e;color:#fff;font-weight:900;padding:13px 18px;cursor:pointer;justify-self:start}.modal-open{overflow:hidden}
@media(max-width:700px){.movement-result-preview{grid-template-columns:1fr}.movement-result-preview>div{border-right:0;border-bottom:1px solid #dbe7e0}.movement-info-box{grid-template-columns:1fr}.movement-info-box small{grid-column:auto}.movement-modal{padding:22px 17px}.operation-item-side{align-self:flex-start}.operation-details-line{display:none}}
.movement-financial-section[hidden],.movement-info-box[hidden],.movement-form-grid[hidden]{display:none!important}

/* v35 — histórico pesquisável e correção explícita de preço/dados */
.movement-history-tools{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(120px,.8fr) minmax(130px,.75fr);gap:9px;margin-bottom:10px}.movement-history-tools label{display:grid;gap:5px}.movement-history-tools label>span{font-size:10px;font-weight:900;letter-spacing:.03em;text-transform:uppercase;color:#607168}.movement-history-tools input,.movement-history-tools select{min-height:39px;padding:8px 10px;font-size:12px}.movement-history-hint{margin-bottom:11px;padding:10px 12px;border-radius:11px;background:#eef8f3;color:#476258;font-size:11px;line-height:1.45}.operation-item{align-items:start}.operation-item-side{flex-direction:column;align-items:flex-end}.operation-correct-button{border:1px solid #b8dfca;border-radius:9px;background:#effbf5;color:#087a49;padding:7px 9px;font-size:10px;font-weight:900;white-space:nowrap;cursor:pointer}.operation-correct-button:hover{border-color:#19bd6d;background:#e1f8ec}.movement-original-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 4px}.movement-original-summary>div{display:grid;gap:4px;padding:11px;border:1px solid #dfe9e3;border-radius:12px;background:#f8fbf9}.movement-original-summary small{color:#697970;font-size:10px}.movement-original-summary strong{font-size:13px}.operation-item[hidden]{display:none!important}
@media(max-width:850px){.movement-history-tools{grid-template-columns:1fr 1fr}.movement-history-tools label:first-child{grid-column:1/-1}.movement-original-summary{grid-template-columns:1fr}}
@media(max-width:700px){.operation-correct-button{white-space:normal;max-width:95px}.movement-history-tools{grid-template-columns:1fr}.movement-history-tools label:first-child{grid-column:auto}}


/* V35.1 — modal moderno para correção e estorno de movimentações */
.movement-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(11,24,17,.62);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
}
.movement-modal-backdrop[hidden]{display:none!important}
.movement-modal{
    position:relative;
    width:min(760px,100%);
    max-height:calc(100vh - 48px);
    overflow:auto;
    padding:30px;
    border:1px solid rgba(15,118,70,.12);
    border-radius:24px;
    background:#fff;
    box-shadow:0 30px 90px rgba(4,20,12,.34);
}
.movement-modal::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:6px;
    border-radius:24px 24px 0 0;
    background:linear-gradient(90deg,#16c875,#0ca862);
}
.movement-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    border:1px solid #dce9e2;
    border-radius:12px;
    background:#f5faf7;
    color:#41564b;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    transition:.18s ease;
}
.movement-modal-close:hover{background:#eaf7f0;color:#087a49;transform:translateY(-1px)}
.movement-modal .section-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;color:#087a49}
.movement-modal .section-kicker::before{content:"✦";display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#dff7ea;color:#078048;font-size:12px}
.movement-modal h2{margin:0 52px 5px 0;font-size:25px;line-height:1.15;color:#13251b}
.movement-modal>p{margin:0;color:#65766d;font-size:14px}
.movement-original-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:20px 0 16px;
}
.movement-original-summary>div{
    display:grid;
    gap:5px;
    min-height:78px;
    padding:14px 15px;
    border:1px solid #dce9e2;
    border-radius:15px;
    background:linear-gradient(180deg,#fbfdfc,#f4f9f6);
}
.movement-original-summary small{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#74857c}
.movement-original-summary strong{font-size:15px;color:#15271d}
.movement-modal-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:0 0 20px;
    padding:5px;
    border:1px solid #dce8e1;
    border-radius:14px;
    background:#f2f7f4;
}
.movement-modal-tabs button{
    min-height:43px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#5f7067;
    font-weight:900;
    cursor:pointer;
    transition:.18s ease;
}
.movement-modal-tabs button:hover{background:#fff;color:#183326}
.movement-modal-tabs button.active{background:#fff;color:#087a49;box-shadow:0 4px 14px rgba(19,63,39,.10)}
.movement-modal-tabs button[data-modal-tab="reverse"].active{color:#b4232f}
.movement-modal-panel{display:none}
.movement-modal-panel.active{display:grid;gap:18px}
.movement-modal-panel .movement-form-grid{gap:14px}
.movement-modal-panel .movement-field{display:grid;gap:7px}
.movement-modal-panel .movement-field>span{font-size:12px;font-weight:900;color:#263c31}
.movement-modal-panel .movement-field em{font-style:normal;font-weight:800;color:#9d2932;font-size:10px;text-transform:uppercase;letter-spacing:.03em}
.movement-modal-panel input,
.movement-modal-panel select,
.movement-modal-panel textarea{
    width:100%;
    min-height:46px;
    border:1px solid #cfded6;
    border-radius:12px;
    background:#fff;
    color:#172a20;
    padding:11px 13px;
    font:inherit;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.movement-modal-panel textarea{min-height:96px;resize:vertical}
.movement-modal-panel input:focus,
.movement-modal-panel select:focus,
.movement-modal-panel textarea:focus{
    outline:0;
    border-color:#18b96d;
    box-shadow:0 0 0 4px rgba(24,185,109,.13);
}
.movement-modal-panel .money-input{
    display:flex;
    align-items:center;
    min-height:46px;
    border:1px solid #cfded6;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}
.movement-modal-panel .money-input:focus-within{border-color:#18b96d;box-shadow:0 0 0 4px rgba(24,185,109,.13)}
.movement-modal-panel .money-input>span{align-self:stretch;display:grid;place-items:center;padding:0 13px;background:#eff7f3;color:#087a49;font-weight:900;border-right:1px solid #dce8e1}
.movement-modal-panel .money-input input{min-height:44px;border:0;border-radius:0;box-shadow:none!important}
.movement-modal-notice{
    position:relative;
    padding:14px 15px 14px 45px;
    border:1px solid #cce8da;
    border-radius:13px;
    background:#effaf5;
    color:#456257;
    font-size:12px;
    line-height:1.5;
}
.movement-modal-notice::before{content:"i";position:absolute;left:14px;top:13px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#17b96c;color:#fff;font-weight:900}
.movement-modal-panel .movement-submit-button{
    justify-self:end;
    min-width:190px;
    min-height:46px;
    border-radius:12px;
    box-shadow:0 9px 22px rgba(20,180,105,.20);
}
.movement-danger-box{
    position:relative;
    display:grid;
    gap:5px;
    padding:16px 16px 16px 49px;
    border:1px solid #f0c3c8;
    border-radius:14px;
    background:#fff5f6;
    color:#8e1f2a;
}
.movement-danger-box::before{content:"!";position:absolute;left:15px;top:15px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#d13b48;color:#fff;font-weight:900}
.movement-danger-box strong{font-size:14px}.movement-danger-box span{font-size:12px;line-height:1.45;color:#85545a}
.movement-danger-button{
    justify-self:end;
    min-width:190px;
    min-height:46px;
    border:0;
    border-radius:12px;
    background:#c9343e;
    color:#fff;
    font-weight:900;
    padding:12px 18px;
    cursor:pointer;
    box-shadow:0 9px 22px rgba(201,52,62,.18);
    transition:.18s ease;
}
.movement-danger-button:hover{background:#ad2530;transform:translateY(-1px)}
@media(max-width:700px){
    .movement-modal-backdrop{padding:10px;align-items:flex-end}
    .movement-modal{width:100%;max-height:94vh;padding:25px 16px 18px;border-radius:22px 22px 0 0}
    .movement-modal::before{border-radius:22px 22px 0 0}
    .movement-modal h2{font-size:21px}
    .movement-original-summary{grid-template-columns:1fr}
    .movement-original-summary>div{min-height:auto}
    .movement-modal-tabs{grid-template-columns:1fr}
    .movement-modal-panel .movement-form-grid{grid-template-columns:1fr}
    .movement-modal-panel .movement-submit-button,.movement-danger-button{width:100%;justify-self:stretch}
}


/* V36 — painel por categoria mais explicativo */
.category-stock-table th{white-space:nowrap}
.category-stock-table .category-current-stock strong,.category-stock-table .category-purchase-value{font-size:1.12rem;color:#087a49}
.category-stock-table td small{display:block;margin-top:4px;color:#6b7b72;font-size:11px;line-height:1.35}
.category-stock-table td[data-label="Estoque recomendado"] strong{font-size:1.04rem}
.category-stock-table td[data-label="Comprar"]{background:linear-gradient(90deg,rgba(32,207,122,.055),transparent)}
.category-stock-table td[data-label="Comprar"] .category-purchase-value{display:block}
@media(max-width:760px){
  .category-stock-table td[data-label="Comprar"]{margin:4px -7px;padding:12px 7px;border-radius:10px;background:#f1faf5}
  .category-stock-table td small{font-size:12px}
}

/* V38 — método exclusivo para conferência do recipiente aberto */
.open-measure-method{display:grid;gap:9px;margin:2px 0;padding:12px;border:1px solid #d9e7df;border-radius:13px;background:#fff}
.open-measure-method legend{padding:0 6px;font-size:13px;font-weight:900;color:#193e2f}
.open-measure-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.open-measure-option{position:relative;display:flex!important;align-items:flex-start;gap:8px;margin:0!important;padding:11px!important;border:1px solid #dce7e1!important;border-radius:11px!important;background:#f9fbfa;cursor:pointer;transition:.16s ease}
.open-measure-option:hover{border-color:#8fd9b4!important;background:#f4fcf8}
.open-measure-option input{width:auto!important;margin:3px 0 0!important;accent-color:#16b96b}
.open-measure-option span{display:grid;gap:2px}.open-measure-option strong{font-size:12px;line-height:1.05}.open-measure-option small{font-size:10px;line-height:1.3;color:#66766e}
.open-measure-option:has(input:checked){border-color:#16c977!important;background:#effcf6;box-shadow:0 0 0 2px rgba(22,201,119,.08)}
.open-measure-help{font-size:10px;line-height:1.35;color:#6b7b72}
.open-method-panel{position:relative}.open-method-panel:has(input:disabled),.open-method-panel:has(select:disabled){opacity:.64}
.open-method-panel input:disabled,.open-method-panel select:disabled{background:#eef3f0!important;color:#68766f!important;cursor:not-allowed}
.open-method-panel>small{display:block;margin-top:5px;font-size:10px;line-height:1.35;color:#6b7b72}
@media(max-width:560px){.open-measure-options{grid-template-columns:1fr}}

/* V39 — entrada monetária no padrão brasileiro */
.money-input:focus-within{border-color:#18b96d;box-shadow:0 0 0 4px rgba(24,185,109,.12)}
.money-input>span{align-self:stretch;display:grid;place-items:center;min-width:48px;padding:0 12px;background:#eff8f3;border-right:1px solid #dce8e1;color:#087a49;font-weight:900}
.money-input input[data-currency-br]{min-height:46px;padding-left:12px;font-size:16px;font-weight:750;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.money-input input[data-currency-br]::placeholder{color:#9aa8a0;font-weight:500}

/* V40 - seletor visual de produtos */
.product-picker{position:relative}.product-picker-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.product-picker-trigger{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:66px;padding:11px 14px;border:1px solid #cfdad3;border-radius:12px;background:#fff;color:#17231b;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.product-picker-trigger:hover{border-color:#79cfa4;background:#fbfefc}.product-picker.open .product-picker-trigger,.product-picker-trigger:focus-visible{border-color:#20c977;box-shadow:0 0 0 3px rgba(32,201,119,.13);outline:0}.product-picker-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e8f9f0;color:#087a49;font-size:20px}.product-picker-selected{display:grid;gap:1px;min-width:0}.product-picker-selected small{color:#718078;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.045em}.product-picker-selected strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.25}.product-picker-selected em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#56675d;font-size:12px;font-style:normal}.product-picker-chevron{color:#718078;font-size:21px;transition:transform .16s ease}.product-picker.open .product-picker-chevron{transform:rotate(180deg)}.product-picker-panel{position:absolute;z-index:40;top:calc(100% + 7px);left:0;right:0;padding:10px;border:1px solid #d9e5dd;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(22,52,34,.16)}.product-picker-search-wrap{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin-bottom:8px;padding:0 12px;border:1px solid #d9e3dc;border-radius:10px;background:#f8fbf9}.product-picker-search-wrap>span{color:#718078;font-size:18px}.product-picker-search-wrap input{min-height:42px;padding:0;border:0;background:transparent;box-shadow:none}.product-picker-search-wrap input:focus{outline:0}.product-picker-results{display:grid;gap:5px;max-height:300px;overflow:auto}.product-picker-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:11px 12px;border:1px solid transparent;border-radius:10px;background:#fff;text-align:left;cursor:pointer}.product-picker-option:hover{border-color:#b9dfca;background:#f5fbf7}.product-picker-option.selected{border-color:#62d39a;background:#eefaf3}.product-picker-option-main{display:grid;gap:3px;min-width:0}.product-picker-option-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17231b;font-size:14px}.product-picker-option-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#697970;font-size:11px}.product-picker-option-stock{padding:5px 8px;border-radius:999px;background:#edf7f1;color:#087a49;font-size:11px;font-weight:800;white-space:nowrap}.product-picker-empty{padding:18px;text-align:center;color:#718078;font-size:13px}@media(max-width:520px){.product-picker-panel{position:fixed;z-index:1000;top:auto;right:10px;bottom:10px;left:10px;max-height:72vh;border-radius:18px}.product-picker-results{max-height:55vh}.product-picker-trigger{min-height:70px}}

/* V44.1 — radios dos modos de controle: forma circular estável em opções com texto longo */
.product-minimum-control .product-choice-card{
  grid-template-columns:20px minmax(0,1fr);
}
.product-minimum-control .product-choice-card .choice-dot{
  position:relative;
  display:block;
  flex:0 0 20px;
  width:20px;
  min-width:20px;
  max-width:20px;
  height:20px;
  min-height:20px;
  max-height:20px;
  aspect-ratio:1/1;
  padding:0;
  margin:1px 0 0;
  box-sizing:border-box;
  border-radius:50%;
  line-height:1;
  overflow:hidden;
  align-self:start;
}
.product-minimum-control .product-choice-card .choice-dot::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:transparent;
}
.product-minimum-control .product-choice-card:has(input:checked) .choice-dot{
  border-color:#20cf7a;
  background:#fff;
  box-shadow:none;
}
.product-minimum-control .product-choice-card:has(input:checked) .choice-dot::after{
  background:#20cf7a;
}
.product-minimum-control .product-choice-card>span:last-child{
  min-width:0;
}

/* V44.2 — compra em embalagens no painel */
.dashboard-purchase-line + .dashboard-purchase-line{margin-top:.35rem}
.dashboard-purchase-line small{display:block;margin-top:.08rem}
.item-purchase-cell .item-purchase-value{display:block;color:#008244;font-size:1.02rem;line-height:1.2}
.item-purchase-cell small{display:block;margin-top:.22rem;line-height:1.25}

/* V48: identidade visual Estoque IA */
.sidebar-brand{display:flex;align-items:center;gap:10px;min-width:0}
.sidebar-brand-icon{width:42px;height:42px;object-fit:contain;flex:0 0 42px;border-radius:10px}
.sidebar-brand .brand-full{display:flex;flex-direction:column;line-height:1.05;color:#fff;font-size:17px;overflow:hidden;text-overflow:ellipsis}
.sidebar-brand .brand-full b{font-size:12px;color:var(--green);margin-top:4px;letter-spacing:.03em}
.brand-short img{width:44px;height:44px;object-fit:contain;border-radius:10px}
.mobile-brand{display:flex;align-items:center;gap:9px;min-width:0}
.mobile-brand>img{width:42px;height:42px;object-fit:contain;flex:0 0 42px;border-radius:9px}
.mobile-brand>span{display:flex;flex-direction:column;color:#fff;font-size:17px;line-height:1.05;overflow:hidden;text-overflow:ellipsis}
.mobile-brand>span b{color:var(--green);font-size:11px;margin-top:3px;letter-spacing:.03em}
.auth{background:radial-gradient(circle at top,#1b2420 0,#101713 45%,#090d0b 100%)}
.auth .auth-brand-card{width:min(460px,100%);padding:28px;border:1px solid #ffffff14;box-shadow:0 22px 70px #0007}
.auth-brand-identity{display:flex;align-items:center;gap:18px;margin-bottom:8px}
.auth-brand-identity img{width:94px;height:94px;object-fit:contain;flex:0 0 94px;border-radius:20px;box-shadow:0 12px 28px #0005}
.auth-brand-identity h1{margin:0;color:#101713;font-size:34px;line-height:1}
.auth-brand-identity p{margin:7px 0 0;color:#0e7d4a;font-weight:900;font-size:18px}
.auth-brand-tagline{margin:0 0 24px;color:#65716a;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800}
@media(max-width:600px){
  .auth .auth-brand-card{padding:22px}
  .auth-brand-identity img{width:78px;height:78px;flex-basis:78px}
  .auth-brand-identity h1{font-size:29px}
  .sidebar-brand-icon{width:40px;height:40px;flex-basis:40px}
}
