/* Site Selene 2.0 — Tela de Paletes / rolagem unificada */
.operation-mode-toolbar{
  display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 12px;
  border:1px solid #d6e6df;border-radius:15px;background:linear-gradient(135deg,#f8fcfa,#edf8f4);
  box-shadow:0 7px 20px rgba(28,77,61,.06)
}
.operation-mode-copy{display:grid;gap:2px;min-width:0;margin-right:auto}
.operation-mode-copy b{font-size:12px;color:#174f3f}
.operation-mode-copy small{font-size:9px;color:#71827b}
.operation-focus-button{color:#fff;background:linear-gradient(145deg,#165f4c,#0f795b);box-shadow:0 7px 18px rgba(15,107,82,.18);white-space:nowrap}
.operation-focus-button.is-active{background:linear-gradient(145deg,#27333f,#111922)}
.operation-focus-status{display:none;gap:7px;align-items:center;flex-wrap:wrap}
.operation-focus-status span{display:inline-flex;align-items:center;min-height:29px;padding:5px 9px;border:1px solid #d3e4dc;border-radius:999px;background:#fff;color:#31554a;font-size:8px;font-weight:850}

.unified-movement-board{overflow:hidden}
.pallet-unified-scroll{
  max-height:min(690px,calc(100vh - 210px));
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:smooth;
  scrollbar-gutter:stable;background:#f7faf8
}
.pallet-unified-scroll::-webkit-scrollbar{width:11px}
.pallet-unified-scroll::-webkit-scrollbar-track{background:#edf4f1}
.pallet-unified-scroll::-webkit-scrollbar-thumb{background:#76b59f;border:2px solid #edf4f1;border-radius:999px}
.pallet-unified-scroll::-webkit-scrollbar-thumb:hover{background:#4d9b81}
.pallet-unified-scroll .pallet-grid{
  max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important;
  padding:14px 15px 16px;grid-template-columns:repeat(auto-fill,minmax(154px,1fr));grid-auto-rows:132px
}
.pallet-unified-scroll .pallet-card{height:132px;min-height:132px;max-height:132px}
.pallet-scroll-section{background:#fff}
.pallet-section-header{position:sticky;top:0;z-index:8;min-height:59px;box-shadow:0 3px 9px rgba(26,65,53,.08)}
.pallet-section-header>div{display:grid;gap:2px}
.pallet-section-kicker{font-size:8px;font-weight:950;letter-spacing:.1em;color:#24745d}
.bottom-section-header{background:linear-gradient(90deg,#cfeee4,#b9e5d6)}
.unified-divider{position:relative;z-index:6;justify-content:center;align-items:center;gap:12px;padding:10px 14px;background:#eaf5f1}
.unified-divider span{color:#75877f;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}

/* Modo focado: só a operação necessária para quem está no tablet */
body.operation-focus-mode{overflow:hidden;background:#eef4f1}
body.operation-focus-mode #sidebar,
body.operation-focus-mode #overlay,
body.operation-focus-mode .topbar,
body.operation-focus-mode #view-operacao .side-column,
body.operation-focus-mode #view-operacao .summary-grid{display:none!important}
body.operation-focus-mode .main{margin-left:0!important;width:100%!important;min-height:100vh}
body.operation-focus-mode #view-operacao{display:block!important;padding:8px!important;height:100vh;overflow:hidden}
body.operation-focus-mode #view-operacao .operation-layout{display:block!important;height:100%}
body.operation-focus-mode #view-operacao .operation-main{height:100%;display:grid;grid-template-rows:auto 1fr;gap:8px}
body.operation-focus-mode .operation-mode-toolbar{min-height:52px;padding:8px 10px;border-radius:12px}
body.operation-focus-mode .operation-mode-copy{display:none}
body.operation-focus-mode .operation-focus-status{display:flex;margin-right:auto}
body.operation-focus-mode .operation-focus-button{order:3}
body.operation-focus-mode .unified-movement-board{height:100%;border-radius:13px}
body.operation-focus-mode .pallet-unified-scroll{max-height:none;height:100%;background:#f5f9f7}
body.operation-focus-mode .pallet-unified-scroll .pallet-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;padding:12px;grid-auto-rows:126px}
body.operation-focus-mode .pallet-unified-scroll .pallet-card{height:126px;min-height:126px;max-height:126px;padding:11px}
body.operation-focus-mode .pallet-unified-scroll .pallet-card b{font-size:16px}
body.operation-focus-mode .pallet-section-header{min-height:54px;padding:10px 14px}

@media(max-width:900px){
  .operation-mode-toolbar{flex-wrap:wrap}.operation-mode-copy{flex:1 1 180px}.operation-focus-status{order:3;width:100%}
  .pallet-unified-scroll{max-height:min(650px,calc(100vh - 195px))}
  .pallet-unified-scroll .pallet-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:128px}
  .pallet-unified-scroll .pallet-card{height:128px;min-height:128px;max-height:128px}
  body.operation-focus-mode .pallet-unified-scroll .pallet-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:122px}
  body.operation-focus-mode .pallet-unified-scroll .pallet-card{height:122px;min-height:122px;max-height:122px}
}
@media(max-width:620px){
  .operation-mode-toolbar{gap:8px}.operation-focus-button{width:100%}
  .pallet-unified-scroll .pallet-grid,body.operation-focus-mode .pallet-unified-scroll .pallet-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:128px}
  .pallet-unified-scroll .pallet-card,body.operation-focus-mode .pallet-unified-scroll .pallet-card{height:128px;min-height:128px;max-height:128px}
  .unified-divider span{display:none}
}
