:root {
  --home-green: #087f6d;
  --home-green-deep: #034c45;
  --home-green-soft: #e8f5f1;
  --home-blue: #2777d8;
  --home-blue-soft: #eaf2ff;
  --home-orange: #e66a08;
  --home-orange-soft: #fff0e4;
  --home-text: #172238;
  --home-muted: #687386;
  --home-border: #e0e5e9;
  --home-surface: #fff;
  --home-background: #f6f8f9;
}

.home-screen {
  padding: 0 !important;
  color: var(--home-text);
  background: var(--home-background) !important;
}

.home-screen.active { display: block !important; }

body.has-global-sidebar #home-screen:not(.active) {
  display: block !important;
  width: 0 !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.has-global-sidebar #home-screen:not(.active) .home-dashboard-main {
  display: none;
}

body.has-global-sidebar #home-screen:not(.active) .home-dashboard {
  min-height: 0;
  height: 0;
}

body.has-global-sidebar .screen.active:not(#home-screen):not(#login-screen) {
  width: calc(100% - 286px);
  margin-left: 286px;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  transition: width 210ms ease, margin-left 210ms ease;
}

body.has-global-sidebar .screen.active:not(#home-screen):not(#login-screen) > * {
  min-width: 0;
  max-width: 100%;
}

body.has-global-sidebar .conferencia-screen .dashboard-top,
body.has-global-sidebar .conferencia-screen .board {
  width: 100%;
}

body.has-global-sidebar .conferencia-screen .metrics-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.has-global-sidebar .conferencia-screen .board {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.38fr);
  overflow-x: auto;
}

body.has-global-sidebar .atualizacao-contato-app {
  overflow-x: auto;
}

.home-dashboard {
  width: 100%;
  min-height: 100vh;
  background: var(--home-background);
}

.home-dashboard button,
.home-dashboard input { font: inherit; }

.home-dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: 286px;
  min-height: 100dvh;
  flex-direction: column;
  padding: 30px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 2%, rgba(16, 174, 145, 0.22), transparent 28%),
    linear-gradient(180deg, #065f55 0%, var(--home-green-deep) 100%);
  box-shadow: 12px 0 38px rgba(18, 49, 45, 0.08);
  transition: width 210ms ease, transform 210ms ease;
}

.home-dashboard-brand {
  display: flex;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  flex: 0 0 112px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 4px;
}

.home-dashboard-brand-mark {
  position: relative;
  display: flex;
  width: 160px;
  height: 104px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: visible;
  transform: translateY(-26px);
  transition: width 210ms ease, height 210ms ease;
}

.home-dashboard-brand-mark::before {
  display: none;
}

.home-dashboard-brand-mark img {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: width 210ms ease, height 210ms ease, transform 180ms ease;
  filter:
    contrast(1.04)
    saturate(1.03)
    drop-shadow(0 3px 5px rgba(0, 35, 28, 0.16));
}

.home-dashboard-brand-name {
  display: flex;
  max-height: 36px;
  flex-direction: column;
  align-items: center;
  color: #fff;
  opacity: 1;
  overflow: hidden;
  line-height: 1;
  transform: translateY(0);
  transition: max-height 170ms ease, opacity 130ms ease, transform 170ms ease;
  white-space: nowrap;
}

.home-dashboard-brand-name strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.home-dashboard-brand-name small {
  margin-top: 3px;
  color: #b2d634;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.home-dashboard-nav {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.home-dashboard-nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-dashboard-nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.home-dashboard-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.home-dashboard-nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.home-dashboard-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -2px;
  width: 3px;
  border-radius: 4px;
  background: #34e0c0;
}

.home-dashboard-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.home-dashboard-user-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.home-dashboard-avatar,
.home-dashboard-header-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #07927e;
  font-weight: 700;
}

.home-dashboard-avatar { width: 42px; height: 42px; }
.home-dashboard-user-copy { min-width: 0; }
.home-dashboard-user-copy strong,
.home-dashboard-user-copy small { display: block; }

.home-dashboard-user-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-user-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.77rem;
}

.home-dashboard-logout {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: #fff;
  background: transparent;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.home-dashboard-logout:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
}

.home-dashboard-logout svg { width: 20px; height: 20px; }

.home-dashboard-main {
  min-height: 100vh;
  margin-left: 286px;
  padding: 34px clamp(28px, 3vw, 54px) 44px;
  transition: margin-left 210ms ease;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar {
  width: 62px;
  padding-inline: 4px;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-main { margin-left: 62px; }

body.has-global-sidebar.home-sidebar-collapsed .screen.active:not(#home-screen):not(#login-screen) {
  width: calc(100% - 62px);
  margin-left: 62px;
}

body.home-sidebar-auto-expanded .home-dashboard.is-sidebar-collapsed .home-dashboard-main {
  margin-left: 286px;
}

body.has-global-sidebar.home-sidebar-collapsed.home-sidebar-auto-expanded .screen.active:not(#home-screen):not(#login-screen) {
  width: calc(100% - 286px);
  margin-left: 286px;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-brand {
  justify-content: center;
  padding-inline: 0;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-brand-mark {
  width: 52px;
  height: 38px;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-brand-icon {
  width: 38px;
  height: 38px;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-brand-name {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-brand-mark::before {
  display: none;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-nav-item span,
.home-dashboard.is-sidebar-collapsed .home-dashboard-user-copy,
.home-dashboard.is-sidebar-collapsed .home-dashboard-logout span {
  display: none;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-nav-item {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-nav-item:hover { transform: none; }

.home-dashboard.is-sidebar-collapsed .home-dashboard-user-card {
  justify-content: center;
  padding-inline: 0;
}

.home-dashboard.is-sidebar-collapsed .home-dashboard-logout { padding-inline: 0; }

@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within {
    width: 286px;
    padding-inline: 18px;
    box-shadow: 18px 0 42px rgba(18, 49, 45, 0.2);
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand {
    padding-inline: 4px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-mark,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-mark {
    width: 160px;
    height: 104px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-icon,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-icon {
    width: 62px;
    height: 62px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-name,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-name {
    max-height: 36px;
    opacity: 1;
    transform: translateY(0);
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-nav-item span,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-user-copy,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-logout span,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-nav-item span,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-user-copy,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-logout span {
    display: block;
    animation: home-sidebar-label-in 150ms ease 55ms both;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-nav-item,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-nav-item {
    justify-content: flex-start;
    gap: 14px;
    padding-inline: 16px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-user-card,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-user-card {
    justify-content: flex-start;
    padding-inline: 15px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-logout,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-logout {
    padding-inline: 16px;
  }
}

@keyframes home-sidebar-label-in {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-dashboard-header {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(360px, 600px);
  align-items: center;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto 34px;
}

.home-dashboard-welcome h1 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-dashboard-welcome p {
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 0.94rem;
}

.home-dashboard-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.home-dashboard-search {
  display: flex;
  min-width: 0;
  height: 50px;
  flex: 1;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8dee4;
  border-radius: 10px;
  padding: 0 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(31, 43, 55, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.home-dashboard-search:focus-within {
  border-color: rgba(8, 127, 109, 0.58);
  box-shadow: 0 0 0 3px rgba(8, 127, 109, 0.09);
}

.home-dashboard-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #596577;
}

.home-dashboard-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--home-text);
  background: transparent;
  font-size: 0.91rem;
}

.home-dashboard-search input::placeholder { color: #8993a1; }

.home-dashboard-search kbd {
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  padding: 4px 7px;
  color: #8a93a0;
  background: #fafbfc;
  box-shadow: none;
  font: 500 0.7rem/1 "Inter", sans-serif;
}

.home-dashboard-notification {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #536071;
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

.home-dashboard-notification:hover {
  color: var(--home-green);
  background: var(--home-green-soft);
}

.home-dashboard-notification svg { width: 22px; height: 22px; }

.home-dashboard-notification span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--home-background);
  border-radius: 999px;
  padding: 0 4px;
  color: #fff;
  background: var(--home-green);
  font-size: 0.62rem;
  font-weight: 800;
}

.home-dashboard-header-avatar { width: 42px; height: 42px; }
.home-dashboard-menu-toggle { display: none; }
.home-dashboard-global-menu-toggle { display: none; }

.home-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto 34px;
}

.home-dashboard-metric,
.home-dashboard-action-card,
.home-dashboard-activity {
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  box-shadow: 0 8px 24px rgba(22, 34, 48, 0.045);
}

.home-dashboard-metric {
  display: grid;
  grid-template-columns: 54px 1fr;
  min-height: 158px;
  align-items: center;
  gap: 16px;
  border-radius: 13px;
  padding: 22px;
  color: var(--home-text);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.home-dashboard-metric:hover,
.home-dashboard-action-card:hover {
  border-color: rgba(8, 127, 109, 0.24);
  box-shadow: 0 13px 30px rgba(22, 52, 46, 0.09);
  transform: translateY(-2px);
}

.home-dashboard-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
}

.home-dashboard-icon svg { width: 25px; height: 25px; stroke-width: 1.9; }
.home-dashboard-icon.is-green { color: var(--home-green); background: var(--home-green-soft); }
.home-dashboard-icon.is-blue { color: var(--home-blue); background: var(--home-blue-soft); }
.home-dashboard-icon.is-orange { color: var(--home-orange); background: var(--home-orange-soft); }

.home-dashboard-metric-copy {
  display: grid;
  gap: 4px;
}

.home-dashboard-metric-copy small {
  color: #4f5c6f;
  font-size: 0.83rem;
  font-weight: 600;
}

.home-dashboard-metric-copy strong {
  color: var(--home-text);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-dashboard-metric-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  color: #7a8494;
  font-size: 0.78rem;
}

.home-dashboard-metric-footer svg { width: 17px; height: 17px; }

.home-dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.85fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

.home-dashboard-quick-section h2,
.home-dashboard-section-head h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.home-dashboard-quick-section > h2 { margin: 11px 0 19px; }

.home-dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-dashboard-action-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 13px;
  padding: 24px 22px 20px;
  color: var(--home-text);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.home-dashboard-action-card.is-search-hidden { display: none; }

.home-dashboard-action-card > strong {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-dashboard-action-card p {
  margin: 8px 0 18px;
  color: var(--home-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.home-dashboard-action-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: #0c4657;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-dashboard-action-link svg { width: 17px; height: 17px; }

.home-dashboard-search-empty {
  margin-top: 18px;
  border: 1px dashed #ccd5da;
  border-radius: 12px;
  padding: 28px;
  color: var(--home-muted);
  background: #fff;
  text-align: center;
}

.home-dashboard-activity {
  min-height: 520px;
  border-radius: 13px;
  padding: 22px;
}

.home-dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-dashboard-section-head button {
  min-height: 36px;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  padding: 0 14px;
  color: #243244;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.home-dashboard-section-head button:hover {
  border-color: rgba(8, 127, 109, 0.4);
  color: var(--home-green);
  background: var(--home-green-soft);
}

.home-dashboard-activity-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid #e6e9ec;
}

.home-dashboard-activity-item:last-child { border-bottom: 0; }

.home-dashboard-activity-item .home-dashboard-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.home-dashboard-activity-item .home-dashboard-icon svg { width: 21px; height: 21px; }
.home-dashboard-activity-copy { min-width: 0; }

.home-dashboard-activity-copy strong {
  display: block;
  color: var(--home-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-dashboard-activity-copy p {
  margin: 5px 0 9px;
  color: var(--home-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.home-dashboard-activity-time {
  color: #788294;
  font-size: 0.69rem;
  white-space: nowrap;
}

.home-dashboard-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 5px;
  padding: 0 8px;
  color: var(--home-green);
  background: var(--home-green-soft);
  font-size: 0.65rem;
  font-weight: 700;
}

.home-dashboard-status.is-blue { color: var(--home-blue); background: var(--home-blue-soft); }
.home-dashboard-status.is-orange { color: var(--home-orange); background: var(--home-orange-soft); }

.home-dashboard-empty-activity {
  display: grid;
  min-height: 350px;
  place-items: center;
  color: var(--home-muted);
  font-size: 0.82rem;
  text-align: center;
}

.home-dashboard-activity-loading {
  display: grid;
  gap: 13px;
  padding-top: 18px;
}

.home-dashboard-activity-loading span {
  display: block;
  height: 74px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f2f4f5 20%, #e9edef 40%, #f2f4f5 60%);
  background-size: 220% 100%;
  animation: home-dashboard-loading 1.3s ease infinite;
}

@keyframes home-dashboard-loading {
  to { background-position: -220% 0; }
}

.home-dashboard-overlay { display: none; }

@media (max-width: 1320px) {
  .home-dashboard-sidebar { width: 250px; }
  .home-dashboard-main { margin-left: 250px; padding-inline: 28px; }
  body.has-global-sidebar .screen.active:not(#home-screen):not(#login-screen) {
    width: calc(100% - 250px);
    margin-left: 250px;
  }
  .home-dashboard-metrics { gap: 14px; }
  .home-dashboard-metric { padding: 18px; }
  .home-dashboard-content { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr); }
}

@media (max-width: 1100px) {
  .home-dashboard-header { grid-template-columns: 1fr; gap: 18px; }
  .home-dashboard-header-actions { justify-content: flex-start; }
  .home-dashboard-search { max-width: 620px; }
  .home-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-dashboard-content { grid-template-columns: 1fr; }
  .home-dashboard-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-dashboard-activity { min-height: auto; }
}

@media (max-width: 900px) {
  body.has-global-sidebar .conferencia-screen .dashboard-top {
    flex-direction: column;
    align-items: stretch;
  }

  body.has-global-sidebar .conferencia-screen .hero-panel,
  body.has-global-sidebar .conferencia-screen .metrics-panel {
    flex: 0 0 auto;
  }

  body.has-global-sidebar .conferencia-screen .metrics-panel,
  body.has-global-sidebar .conferencia-screen .board {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-global-sidebar .conferencia-screen .board {
    height: auto;
    overflow-x: hidden;
  }
}

@media (min-width: 901px) {
  body.has-global-sidebar .fila-pedidos-grid {
    overscroll-behavior-inline: contain;
  }

  body.has-global-sidebar .pedido-list-header,
  body.has-global-sidebar .pedido-operacao-card {
    grid-template-columns:
      80px
      minmax(178px, 1.2fr)
      minmax(108px, 0.9fr)
      minmax(82px, 0.66fr)
      minmax(160px, 2.1fr)
      minmax(88px, 0.78fr)
      minmax(94px, 0.82fr);
    min-width: 790px;
  }

  body.has-global-sidebar .fila-screen.fila-modo-entrada .pedido-list-header,
  body.has-global-sidebar .fila-screen.fila-modo-entrada .pedido-operacao-card {
    grid-template-columns:
      80px
      minmax(178px, 1.15fr)
      minmax(108px, 0.82fr)
      minmax(94px, 0.72fr)
      minmax(82px, 0.62fr)
      minmax(160px, 2fr)
      minmax(88px, 0.72fr)
      minmax(94px, 0.78fr);
    min-width: 924px;
  }

  body.has-global-sidebar .pedido-list-status,
  body.has-global-sidebar .pedido-list-action {
    min-height: 48px;
    flex-wrap: nowrap;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding: 5px 6px !important;
  }

  body.has-global-sidebar .pedido-status-mini {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 820px) {
  .home-dashboard-sidebar {
    z-index: 2000;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform 210ms ease;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar {
    width: min(310px, 86vw);
    padding-inline: 18px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-main { margin-left: 0; }
  body.home-sidebar-auto-expanded .home-dashboard.is-sidebar-collapsed .home-dashboard-main { margin-left: 0; }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand {
    justify-content: flex-start;
    padding-inline: 10px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-nav-item span,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-user-copy,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-logout span {
    display: block;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-nav-item {
    justify-content: flex-start;
    gap: 14px;
    padding-inline: 16px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand-mark {
    width: 160px;
    height: 104px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand-icon {
    width: 62px;
    height: 62px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand-name {
    max-height: 36px;
    opacity: 1;
    transform: translateY(0);
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-user-card {
    justify-content: flex-start;
    padding-inline: 15px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-logout { padding-inline: 16px; }
  .home-dashboard.is-sidebar-open .home-dashboard-sidebar,
  body.home-sidebar-open .home-dashboard-sidebar { transform: translateX(0); }

  .home-dashboard-overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    border: 0;
    background: rgba(14, 28, 31, 0.44);
    backdrop-filter: blur(2px);
  }

  .home-dashboard.is-sidebar-open .home-dashboard-overlay,
  body.home-sidebar-open .home-dashboard-overlay { display: block; }

  body.home-sidebar-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.home-sidebar-open .fila-screen.conferencia-mode .mobile-sidebar-toggle,
  body.home-sidebar-open .fila-screen.conferencia-mode .mobile-sidebar-backdrop,
  body.home-sidebar-open .fila-screen.conferencia-mode .pedido-lista {
    pointer-events: none;
  }
  .home-dashboard-main { margin-left: 0; padding: 22px 20px 34px; }

  body.has-global-sidebar .screen.active:not(#home-screen):not(#login-screen) {
    width: 100%;
    margin-left: 0;
    padding-top: 64px !important;
  }

  body.has-global-sidebar.home-sidebar-collapsed .screen.active:not(#home-screen):not(#login-screen) {
    width: 100%;
    margin-left: 0;
  }

  body.has-global-sidebar.home-sidebar-collapsed.home-sidebar-auto-expanded .screen.active:not(#home-screen):not(#login-screen) {
    width: 100%;
    margin-left: 0;
  }

  body.has-global-sidebar #home-screen:not(.active) .home-dashboard-global-menu-toggle {
    position: fixed;
    top: 11px;
    left: 14px;
    z-index: 46;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 11px;
    color: #fff;
    background: var(--home-green-deep);
    box-shadow: 0 7px 20px rgba(6, 70, 61, 0.22);
  }

  .home-dashboard-global-menu-toggle svg {
    width: 21px;
    height: 21px;
  }

  .home-dashboard-header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 24px;
  }

  .home-dashboard-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    color: var(--home-green);
    background: #fff;
  }

  .home-dashboard-menu-toggle svg { width: 21px; height: 21px; }
  .home-dashboard-header-actions { grid-column: 1 / -1; }
  .home-dashboard-search { max-width: none; }
}

@media (max-width: 600px) {
  .home-dashboard-main { padding: 18px 14px 28px; }
  .home-dashboard-welcome h1 { font-size: 1.45rem; }
  .home-dashboard-welcome p { font-size: 0.82rem; }
  .home-dashboard-header-actions { gap: 7px; }
  .home-dashboard-search { height: 46px; }
  .home-dashboard-search kbd,
  .home-dashboard-header-avatar { display: none; }
  .home-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .home-dashboard-metric {
    grid-template-columns: 40px 1fr;
    min-height: 125px;
    gap: 10px;
    padding: 14px;
  }

  .home-dashboard-metric .home-dashboard-icon { width: 40px; height: 40px; border-radius: 11px; }
  .home-dashboard-metric .home-dashboard-icon svg { width: 20px; height: 20px; }
  .home-dashboard-metric-copy small { font-size: 0.68rem; }
  .home-dashboard-metric-copy strong { font-size: 1.55rem; }
  .home-dashboard-metric-footer { font-size: 0.65rem; }
  .home-dashboard-quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-dashboard-action-card { min-height: 165px; }
  .home-dashboard-activity { padding: 18px 15px; }
  .home-dashboard-activity-item { grid-template-columns: 40px minmax(0, 1fr); padding: 17px 0; }
  .home-dashboard-activity-time { grid-column: 2; }
}

/* Fila de conferência */
/* Ajuste vertical para notebooks e monitores desktop com pouca altura.
   O limite de largura preserva integralmente o layout mobile. */
@media (min-width: 821px) and (max-height: 740px) {
  .home-dashboard-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 18px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  }

  .home-dashboard-brand {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    flex-basis: 88px;
  }

  .home-dashboard-brand-mark,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-mark,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-mark {
    width: 142px;
    height: 84px;
    transform: translateY(-12px);
  }

  .home-dashboard-brand-mark img,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-icon,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-icon {
    width: 48px;
    height: 48px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand-mark {
    width: 52px;
    height: 38px;
  }

  .home-dashboard.is-sidebar-collapsed .home-dashboard-brand-icon {
    width: 38px;
    height: 38px;
  }

  .home-dashboard:not(.is-sidebar-collapsed) .home-dashboard-brand-name,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:hover .home-dashboard-brand-name,
  .home-dashboard.is-sidebar-collapsed .home-dashboard-sidebar:focus-within .home-dashboard-brand-name {
    max-height: 40px;
    overflow: visible;
  }

  .home-dashboard-brand-name strong { font-size: 1.18rem; }
  .home-dashboard-brand-name small {
    margin-top: 2px;
    font-size: 0.5rem;
    line-height: 1.25;
  }

  .home-dashboard-nav {
    gap: 4px;
    margin-top: 4px;
  }

  .home-dashboard-nav-item {
    min-height: 44px;
    padding-inline: 14px;
  }

  .home-dashboard-sidebar-footer { gap: 8px; }

  .home-dashboard-user-card {
    min-height: 60px;
    padding: 8px 12px;
  }

  .home-dashboard-avatar {
    width: 36px;
    height: 36px;
  }

  .home-dashboard-logout { min-height: 40px; }

  .home-dashboard-main {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .home-dashboard-header { margin-bottom: 22px; }

  .home-dashboard-metrics {
    gap: 16px;
    margin-bottom: 24px;
  }

  .home-dashboard-metric {
    min-height: 134px;
    padding: 18px;
  }

  .home-dashboard-quick-section > h2 { margin-top: 5px; }
  .home-dashboard-action-card { min-height: 190px; }
  .home-dashboard-activity { min-height: 450px; }
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) {
  min-height: 100dvh;
  padding: 0;
  color: var(--home-text);
  background: var(--home-background);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-app {
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 24px clamp(22px, 2.5vw, 38px) 26px;
}

.fila-page-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.fila-page-heading {
  min-width: 260px;
}

.fila-page-heading .home-kicker {
  margin-bottom: 5px;
  color: var(--home-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.fila-page-heading h1 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.fila-page-heading p {
  margin: 6px 0 0;
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.fila-page-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.fila-header-search {
  display: flex;
  width: clamp(250px, 28vw, 390px);
  height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  padding: 0 14px;
  color: #617083;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 45, 55, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fila-header-search:focus-within {
  border-color: rgba(8, 127, 109, 0.52);
  box-shadow: 0 0 0 3px rgba(8, 127, 109, 0.1);
}

.fila-header-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.fila-header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--home-text);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
}

.fila-header-search input::placeholder {
  color: #8b95a4;
  font-weight: 500;
}

.fila-header-status-filter {
  width: 186px;
  min-width: 160px;
}

.fila-header-status-filter select {
  height: 46px;
  border-color: var(--home-border);
  border-radius: 10px;
  padding-left: 14px;
  color: #293547;
  font-size: 0.76rem;
  background-color: #fff;
}

.fila-header-icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #526174;
  background: transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

.fila-header-icon-button:hover {
  color: var(--home-green);
  background: var(--home-green-soft);
}

.fila-header-icon-button svg {
  width: 21px;
  height: 21px;
}

.fila-header-icon-button span {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--home-background);
  border-radius: 999px;
  padding: 0 4px;
  color: #fff;
  background: var(--home-green);
  font-size: 0.55rem;
  font-weight: 800;
}

.fila-header-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #0aa285, #08705f);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(8, 127, 109, 0.18);
}

.fila-mobile-filter-toggle,
.fila-filter-close {
  display: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-etapa-pedidos,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) #fila-etapa-pedidos.active {
  min-height: 0;
  height: 100%;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-layout {
  height: 100%;
  grid-template-columns: clamp(248px, 20vw, 278px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-stage {
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33, 50, 62, 0.055);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel {
  position: static;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .fila-toolbar-top {
  align-items: center;
  margin-bottom: 18px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 1.02rem;
  font-weight: 800;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-contexto {
  display: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-filtros {
  gap: 13px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-mode-toggle {
  min-height: 78px;
  border-width: 1px;
  border-color: rgba(8, 127, 109, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, #edf9f5, #f8fcfb);
  box-shadow: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedido-search-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-field label {
  margin-bottom: 6px;
  color: #536278;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-field input,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-field select,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-user-chip {
  min-height: 42px;
  border: 1px solid #d9e0e5;
  border-radius: 9px;
  color: #202c3c;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-field input:focus,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-field select:focus {
  outline: 0;
  border-color: rgba(8, 127, 109, 0.5);
  box-shadow: 0 0 0 3px rgba(8, 127, 109, 0.08);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-user-chip {
  display: flex;
  align-items: center;
  padding: 0 11px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-start,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-back {
  min-height: 44px;
  border-radius: 9px;
  font-size: 0.78rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-start {
  border-color: var(--home-green);
  background: var(--home-green);
  box-shadow: 0 6px 15px rgba(8, 127, 109, 0.14);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-start:hover {
  transform: translateY(-1px);
  background: #066e5f;
  box-shadow: 0 9px 20px rgba(8, 127, 109, 0.2);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-back {
  border-color: rgba(8, 127, 109, 0.45);
  color: var(--home-green);
  background: #fff;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel .btn-back:hover {
  color: #fff;
  background: var(--home-green);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-voltar-home {
  display: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 10px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-top {
  min-height: 40px;
  margin: 0;
  padding: 0 5px 9px;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-top .box-title {
  margin: 0;
  color: var(--home-text);
  font-size: 0.88rem;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-top .box-title span:last-child {
  min-width: 24px;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--home-green);
  background: var(--home-green-soft);
  font-size: 0.65rem;
  text-align: center;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .btn-romaneio-cargas {
  min-height: 34px;
  border-radius: 8px;
  padding-inline: 11px;
  font-size: 0.7rem;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-grid {
  height: 100%;
  min-height: 0;
  max-height: none;
  border-color: #e5e9ec;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  scrollbar-color: #aeb8bf transparent;
  scrollbar-width: thin;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-list-header {
  min-height: 42px;
  border-bottom: 1px solid #dfe5e8;
  color: #58677a;
  background: #f8fafb;
  font-size: 0.61rem;
  letter-spacing: 0;
  text-transform: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card {
  min-height: 52px;
  border-left-width: 0;
  border-bottom-color: #e8ecef;
  color: #1f2a39;
  background: #fff;
  box-shadow: none;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card:hover,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card.active {
  background: #f1faf7;
  box-shadow: inset 3px 0 0 var(--home-green);
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card > div,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card > strong {
  padding-block: 9px;
  font-size: 0.7rem;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-list-action {
  justify-content: flex-start;
  padding-left: 10px !important;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-print-indicator,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-fase-indicator,
body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-label-button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini {
  padding: 3px 8px;
  border-width: 1px;
  font-size: 0.56rem;
  letter-spacing: 0;
  box-shadow: none;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.conferido {
  border-color: #b9dfd2;
  color: #08715f;
  background: #e4f5ef;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.novo {
  border-color: #b9ddec;
  color: #11617a;
  background: #eaf7fb;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.em-conferencia {
  border-color: #f0c37c;
  color: #a64b00;
  background: #fff7e8;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.em-separacao {
  border-color: #d7c5f8;
  color: #6e3bc0;
  background: #f4efff;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.separado {
  border-color: #b9ddec;
  color: #176d91;
  background: #ebf7fd;
}

body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-status-mini.finalizado-divergente {
  border-color: #f2c3bd;
  color: #b23426;
  background: #fff0ee;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .fila-page-header {
    align-items: flex-start;
  }

  .fila-page-header-actions {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(220px, 1fr) 170px 42px 40px;
  }

  .fila-header-search {
    width: 100%;
  }

  .fila-header-status-filter {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) {
    padding-top: 64px !important;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-app {
    height: auto;
    min-height: calc(100dvh - 64px);
    grid-template-rows: auto auto;
    gap: 14px;
    overflow: visible;
    padding: 14px 16px 24px;
  }

  .fila-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .fila-page-heading {
    min-width: 0;
  }

  .fila-page-heading h1 {
    font-size: 1.55rem;
  }

  .fila-page-heading p {
    font-size: 0.74rem;
  }

  .fila-page-header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) 42px 42px;
  }

  .fila-header-search,
  .fila-header-status-filter {
    width: 100%;
    min-width: 0;
  }

  .fila-mobile-filter-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    grid-column: 1 / -1;
    border: 1px solid rgba(8, 127, 109, 0.32);
    border-radius: 9px;
    color: var(--home-green);
    background: #fff;
    font-size: 0.76rem;
    font-weight: 800;
  }

  .fila-mobile-filter-toggle svg {
    width: 17px;
    height: 17px;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-layout {
    display: block;
    height: auto;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-operacao-panel {
    display: none;
    height: auto;
    margin-bottom: 14px;
    overflow: visible;
  }

  body.has-global-sidebar .fila-screen.fila-filters-open:not(.conferencia-mode) .fila-operacao-panel {
    display: block;
    animation: fila-filter-open 170ms ease both;
  }

  .fila-filter-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: #5e6b7a;
    background: #fff;
  }

  .fila-filter-close svg {
    width: 17px;
    height: 17px;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-stage {
    min-height: 470px;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-grid {
    height: auto;
    max-height: 66dvh;
    overflow-y: auto;
    border: 0;
    background: transparent;
    gap: 8px;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card {
    border: 1px solid #e2e7ea;
    border-left: 4px solid var(--home-green);
    border-radius: 10px;
    padding: 11px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(33, 50, 62, 0.04);
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card:hover,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card.active {
    border-left-color: var(--home-green);
    background: #f3faf8;
    box-shadow: 0 7px 18px rgba(33, 50, 62, 0.07);
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card > div,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-operacao-card > strong {
    padding: 0;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .pedido-list-action {
    padding-left: 0 !important;
  }
}

@media (max-width: 620px) {
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-app {
    padding-inline: 10px;
  }

  .fila-page-header-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
  }

  .fila-header-search {
    grid-column: 1 / -1;
  }

  .fila-header-status-filter {
    width: 100%;
    grid-column: 1;
  }

  .fila-header-avatar {
    display: none;
  }

  .fila-header-icon-button {
    grid-column: 2;
    grid-row: 2;
  }

  .fila-mobile-filter-toggle {
    grid-column: 1 / -1;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-filtros {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-mode-toggle,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedido-search-panel,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-company-field,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-user-field,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-filtros .btn-start,
  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-filtros .btn-back {
    grid-column: auto;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-stage {
    padding: 8px;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-top {
    align-items: center;
    flex-wrap: nowrap;
  }

  body.has-global-sidebar .fila-screen:not(.conferencia-mode) .fila-pedidos-actions {
    display: flex;
    width: auto;
  }

  body.has-global-sidebar .pedido-preview-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.has-global-sidebar .pedido-preview-actions .btn-back,
  body.has-global-sidebar .pedido-preview-actions .btn-print-order,
  body.has-global-sidebar .pedido-preview-actions .btn-separation,
  body.has-global-sidebar .pedido-preview-actions .btn-start {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    flex: none;
    padding: 9px 8px;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
    text-align: center;
  }

  body.has-global-sidebar .pedido-preview-actions .btn-print-order,
  body.has-global-sidebar .pedido-preview-actions .btn-separation {
    gap: 5px;
  }

  body.has-global-sidebar .pedido-preview-actions svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }
}

@keyframes fila-filter-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-dashboard * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Acompanhamento */
body.has-global-sidebar .conferencia-screen.acompanhamento-painel-screen {
  min-height: 100dvh;
  padding: 14px clamp(12px, 1.5vw, 24px) 16px;
  color: var(--home-text);
  background: var(--home-background);
  overflow: hidden;
}

body.has-global-sidebar .acompanhamento-dashboard {
  width: min(1600px, 100%);
  height: calc(100dvh - 30px);
  margin: 0 auto;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

body.has-global-sidebar .acompanhamento-header {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(430px, 0.95fr) minmax(600px, 1.55fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  background: var(--home-surface);
  box-shadow: 0 7px 20px rgba(18, 35, 52, 0.045);
}

body.has-global-sidebar .acompanhamento-heading {
  min-width: 0;
}

body.has-global-sidebar .acompanhamento-painel-screen .hero-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  color: var(--home-green);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.has-global-sidebar .acompanhamento-painel-screen .hero-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #17b985;
  box-shadow: 0 0 0 4px rgba(23, 185, 133, 0.12);
  content: "";
}

body.has-global-sidebar .acompanhamento-painel-screen .hero-title {
  margin: 0;
  color: #122334;
  font-size: clamp(0.85rem, 1.12vw, 1.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.has-global-sidebar .acompanhamento-painel-screen .hero-subtitle {
  margin-top: 0;
  color: var(--home-muted);
  font-size: 0.67rem;
  font-weight: 600;
}

body.has-global-sidebar .acompanhamento-heading-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

body.has-global-sidebar .acompanhamento-toggle-filtros {
  display: inline-flex;
  min-width: 0;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #d9e1e5;
  border-radius: 8px;
  color: #607080;
  background: #fff;
  font: inherit;
  font-size: 0.59rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

body.has-global-sidebar .acompanhamento-toggle-filtros:hover,
body.has-global-sidebar .acompanhamento-toggle-filtros.active {
  border-color: rgba(8, 127, 109, 0.34);
  color: var(--home-green);
  background: var(--home-green-soft);
}

body.has-global-sidebar .acompanhamento-toggle-filtros svg {
  width: 13px;
  height: 13px;
}

body.has-global-sidebar .acompanhamento-toggle-chevron {
  transition: transform 160ms ease;
}

body.has-global-sidebar .acompanhamento-toggle-filtros.active .acompanhamento-toggle-chevron {
  transform: rotate(180deg);
}

body.has-global-sidebar .acompanhamento-filtros {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(230px, 1.1fr) auto;
  gap: 9px;
  align-items: end;
  margin: -3px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-surface);
  box-shadow: 0 5px 16px rgba(18, 35, 52, 0.04);
  animation: acompanhamento-filtros-open 160ms ease both;
}

body.has-global-sidebar .acompanhamento-filtros[hidden] {
  display: none !important;
}

body.has-global-sidebar .acompanhamento-campo {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin: 0;
}

body.has-global-sidebar .acompanhamento-campo > span {
  color: #536277;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

body.has-global-sidebar .acompanhamento-campo input,
body.has-global-sidebar .acompanhamento-campo select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d6dee4;
  border-radius: 10px;
  outline: none;
  color: #172838;
  background: #fff;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.has-global-sidebar .acompanhamento-campo input:focus,
body.has-global-sidebar .acompanhamento-campo select:focus {
  border-color: var(--home-green);
  box-shadow: 0 0 0 3px rgba(8, 127, 109, 0.11);
}

body.has-global-sidebar .acompanhamento-filtro-acoes {
  display: flex;
  min-width: 0;
  gap: 8px;
}

body.has-global-sidebar .acompanhamento-filtro-acoes .btn-start,
body.has-global-sidebar .acompanhamento-filtro-acoes .btn-back {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.has-global-sidebar .acompanhamento-filtro-acoes .btn-start {
  border: 1px solid var(--home-green);
  color: #fff;
  background: var(--home-green);
  box-shadow: 0 7px 16px rgba(8, 127, 109, 0.17);
}

body.has-global-sidebar .acompanhamento-filtro-acoes .btn-back {
  border: 1px solid #d3dde2;
  color: #536477;
  background: #fff;
}

body.has-global-sidebar .acompanhamento-filtro-acoes button:hover {
  transform: translateY(-1px);
}

body.has-global-sidebar .acompanhamento-filtro-acoes svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

body.has-global-sidebar .metrics-panel.acompanhamento-metrics {
  display: grid;
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.has-global-sidebar .acompanhamento-metrics .metric-card {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: var(--home-surface);
  box-shadow: 0 7px 20px rgba(18, 35, 52, 0.045);
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon svg {
  width: 15px;
  height: 15px;
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon.warning {
  color: #c97900;
  background: #fff4d9;
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon.info {
  color: #2777d8;
  background: var(--home-blue-soft);
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon.success,
body.has-global-sidebar .acompanhamento-metrics .metric-icon.revenue {
  color: var(--home-green);
  background: var(--home-green-soft);
}

body.has-global-sidebar .acompanhamento-metrics .metric-icon.live {
  color: #7354d8;
  background: #f0ecff;
}

body.has-global-sidebar .acompanhamento-metrics .metric-label {
  margin-bottom: 2px;
  color: var(--home-muted);
  overflow: hidden;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

body.has-global-sidebar .acompanhamento-metrics .metric-value {
  color: #142739;
  overflow: hidden;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  text-overflow: ellipsis;
  font-weight: 850;
  line-height: 1.05;
  white-space: nowrap;
}

body.has-global-sidebar .acompanhamento-metrics .metric-card.revenue .metric-value {
  color: var(--home-green);
  font-size: clamp(0.82rem, 0.9vw, 0.96rem);
}

@keyframes acompanhamento-filtros-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.has-global-sidebar .board.acompanhamento-board {
  display: grid;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(340px, 0.88fr) minmax(500px, 1.35fr);
  gap: 10px;
  margin: 0;
  overflow: visible;
}

body.has-global-sidebar .acompanhamento-board .pool {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--home-border);
  border-right: 0;
  border-left: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(18, 35, 52, 0.035);
  overflow: hidden;
}

body.has-global-sidebar .acompanhamento-board .pool-fila {
  border-color: #eee1bd;
  background: linear-gradient(180deg, #fffdf7 0%, #fff 30%);
}

body.has-global-sidebar .acompanhamento-board .pool-conferidos {
  border-color: #d7eae3;
  background: linear-gradient(180deg, #f7fdf9 0%, #fff 30%);
}

body.has-global-sidebar .acompanhamento-board .pool-header {
  display: flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.76);
}

body.has-global-sidebar .acompanhamento-board .pool-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #163042;
  font-size: 0.78rem;
  font-weight: 850;
}

body.has-global-sidebar .acompanhamento-board .pool-title-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

body.has-global-sidebar .acompanhamento-board .pool-title-icon.fila {
  color: #b66b00;
  background: #fff1cc;
}

body.has-global-sidebar .acompanhamento-board .pool-title-icon.conferidos {
  color: var(--home-green);
  background: var(--home-green-soft);
}

body.has-global-sidebar .acompanhamento-board .pool-title-icon svg {
  width: 13px;
  height: 13px;
}

body.has-global-sidebar .acompanhamento-board .pool-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #e2e7ea;
  border-radius: 999px;
  color: #5f6c7d;
  background: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

body.has-global-sidebar .acompanhamento-pedidos {
  min-height: 0;
  padding: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d2d5 transparent;
}

body.has-global-sidebar .acompanhamento-pedidos .card-item {
  display: block;
  min-width: 0;
  margin: 0 0 6px;
  padding: 8px;
  border: 1px solid #e3e8eb;
  border-left: 4px solid #d6a01f;
  border-radius: 9px;
  color: #172838;
  background: #fff;
  box-shadow: 0 3px 10px rgba(18, 35, 52, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.has-global-sidebar .acompanhamento-pedidos .card-item:last-child {
  margin-bottom: 0;
}

body.has-global-sidebar .acompanhamento-pedidos .card-item:hover {
  transform: translateY(-1px);
  border-color: #cdd8dc;
  box-shadow: 0 7px 16px rgba(18, 35, 52, 0.07);
}

body.has-global-sidebar .acompanhamento-pedidos .card-item.status-conferido {
  border-left-color: #17a978;
}

body.has-global-sidebar .acompanhamento-pedidos .card-item.status-andamento {
  border-left-color: #e5a312;
}

body.has-global-sidebar .acompanhamento-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
}

body.has-global-sidebar .acompanhamento-card-identidade {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

body.has-global-sidebar .acompanhamento-card-identidade .nota-numero {
  flex: 0 0 auto;
  color: #14293a;
  font-size: 0.74rem;
  font-weight: 850;
}

body.has-global-sidebar .acompanhamento-card-identidade .empresa-nome {
  min-width: 0;
  color: #445569;
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.3;
}

body.has-global-sidebar .pedido-card-status-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

body.has-global-sidebar .acompanhamento-pedidos .status-text {
  padding: 3px 7px;
  border-radius: 999px;
  color: #825200;
  background: #fff0c4;
  font-size: 0.5rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

body.has-global-sidebar .acompanhamento-pedidos .status-conferido .status-text {
  color: #087151;
  background: #dff7eb;
}

body.has-global-sidebar .acompanhamento-card-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}

body.has-global-sidebar .pool-fila .acompanhamento-card-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 10px;
}

body.has-global-sidebar .acompanhamento-meta-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-right: 1px solid #edf0f2;
}

body.has-global-sidebar .acompanhamento-meta-item:first-child {
  padding-left: 0;
}

body.has-global-sidebar .acompanhamento-meta-item:last-child {
  border-right: 0;
}

body.has-global-sidebar .acompanhamento-meta-item .meta-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: #687c89;
}

body.has-global-sidebar .acompanhamento-meta-item span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.has-global-sidebar .acompanhamento-meta-item small {
  color: #84909d;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.2;
}

body.has-global-sidebar .acompanhamento-meta-item strong {
  min-width: 0;
  overflow: hidden;
  color: #34485b;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.has-global-sidebar .acompanhamento-meta-item .acompanhamento-itens-resumo {
  display: grid;
  gap: 2px;
}

body.has-global-sidebar .acompanhamento-itens-resumo strong {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.has-global-sidebar .acompanhamento-itens-resumo .meta-icon {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

body.has-global-sidebar .acompanhamento-meta-item em {
  overflow: hidden;
  color: #087151;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.has-global-sidebar .pool-fila .card-item {
  padding: 7px 8px;
  border-color: #f1dfaa;
  border-left-color: #efa900;
  background: #fff9e7;
}

body.has-global-sidebar .pool-fila .acompanhamento-card-identidade {
  flex: 1 1 auto;
  overflow: hidden;
}

body.has-global-sidebar .pool-fila .acompanhamento-card-identidade .empresa-nome {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.has-global-sidebar .pool-fila .acompanhamento-card-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}

body.has-global-sidebar .pool-fila .acompanhamento-meta-item {
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #e4e8e8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

body.has-global-sidebar .pool-conferidos .card-item.status-conferido {
  display: grid;
  min-height: 54px;
  grid-template-columns: minmax(150px, 1.05fr) minmax(340px, 3.3fr) auto;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-head {
  display: contents;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-identidade {
  grid-column: 1;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-identidade .nota-numero {
  font-size: 0.7rem;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-identidade .empresa-nome {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.54rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-meta {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 0;
}

body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-meta-item {
  min-height: 100%;
  padding: 5px 7px;
  border-right: 1px solid #e4e9e9;
}

body.has-global-sidebar .pool-conferidos .status-conferido .pedido-card-status-group {
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  padding: 6px 8px;
  border-left: 1px solid #e4e9e9;
}

body.has-global-sidebar .acompanhamento-pedidos .empty-state {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 20px;
  color: #7a8794;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 1240px) {
  body.has-global-sidebar .acompanhamento-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.has-global-sidebar .acompanhamento-filtros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.has-global-sidebar .acompanhamento-campo-empresa {
    grid-column: 1 / 2;
  }

  body.has-global-sidebar .acompanhamento-filtro-acoes {
    justify-content: flex-end;
  }

  body.has-global-sidebar .metrics-panel.acompanhamento-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.has-global-sidebar .board.acompanhamento-board {
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  body.has-global-sidebar .acompanhamento-board .pool {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  body.has-global-sidebar .conferencia-screen.acompanhamento-painel-screen {
    padding: 74px 12px 18px !important;
    overflow: auto;
  }

  body.has-global-sidebar .acompanhamento-dashboard {
    height: auto;
    min-height: calc(100dvh - 92px);
  }

  body.has-global-sidebar .acompanhamento-header {
    padding: 11px;
  }

  body.has-global-sidebar .acompanhamento-heading-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.has-global-sidebar .acompanhamento-painel-screen .hero-title {
    font-size: 0.98rem;
  }

  body.has-global-sidebar .acompanhamento-painel-screen .hero-subtitle {
    line-height: 1.4;
  }

  body.has-global-sidebar .acompanhamento-filtros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  body.has-global-sidebar .acompanhamento-campo-empresa,
  body.has-global-sidebar .acompanhamento-filtro-acoes {
    grid-column: 1 / -1;
  }

  body.has-global-sidebar .acompanhamento-filtro-acoes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.has-global-sidebar .acompanhamento-filtro-acoes .btn-start,
  body.has-global-sidebar .acompanhamento-filtro-acoes .btn-back {
    width: 100%;
  }

  body.has-global-sidebar .metrics-panel.acompanhamento-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.has-global-sidebar .acompanhamento-metrics .metric-card {
    min-height: 64px;
    padding: 9px;
  }

  body.has-global-sidebar .acompanhamento-metrics .metric-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  body.has-global-sidebar .board.acompanhamento-board {
    display: grid;
    overflow: visible;
  }

  body.has-global-sidebar .acompanhamento-board .pool {
    min-height: 330px;
  }

  body.has-global-sidebar .acompanhamento-pedidos {
    overflow: visible;
  }

  body.has-global-sidebar .acompanhamento-card-identidade {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.has-global-sidebar .pool-conferidos .card-item.status-conferido {
    display: block;
    min-height: 0;
    padding: 9px;
    overflow: visible;
  }

  body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-head {
    display: flex;
  }

  body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-identidade {
    align-items: flex-start;
    padding: 0;
  }

  body.has-global-sidebar .pool-conferidos .status-conferido .pedido-card-status-group {
    padding: 0;
    border-left: 0;
  }

  body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #edf0f2;
  }

  body.has-global-sidebar .pool-conferidos .status-conferido .acompanhamento-meta-item {
    min-height: 38px;
    padding: 5px 0;
    border-right: 0;
  }

  body.has-global-sidebar .acompanhamento-card-meta,
  body.has-global-sidebar .pool-fila .acompanhamento-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }

  body.has-global-sidebar .acompanhamento-meta-item {
    border-right: 0;
    padding: 0;
  }
}

@media (max-width: 470px) {
  body.has-global-sidebar .acompanhamento-painel-screen .hero-title {
    font-size: 0.78rem;
    letter-spacing: -0.045em;
  }

  body.has-global-sidebar .acompanhamento-filtros {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-global-sidebar .acompanhamento-campo-empresa,
  body.has-global-sidebar .acompanhamento-filtro-acoes {
    grid-column: auto;
  }

  body.has-global-sidebar .acompanhamento-filtro-acoes {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.has-global-sidebar .acompanhamento-metrics .metric-label {
    font-size: 0.65rem;
  }

  body.has-global-sidebar .acompanhamento-metrics .metric-value,
  body.has-global-sidebar .acompanhamento-metrics .metric-card.revenue .metric-value {
    font-size: 1rem;
  }

  body.has-global-sidebar .acompanhamento-card-head {
    align-items: flex-start;
  }

  body.has-global-sidebar .pedido-card-status-group {
    align-items: flex-end;
    flex-direction: column-reverse;
  }
}
