/* Navegação e telas de trabalho da versão 0.10. */
.header {
  border-bottom: 1px solid var(--line);
}
.sidebar {
  padding: 18px 12px;
  min-width: 0;
}
.workspace-nav {
  display: grid;
  gap: 9px;
}
.nav-group-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 10px;
  border: 0;
  background: transparent !important;
}
.nav-group-toggle.expanded {
  color: var(--accent);
}
.nav-chevron {
  margin-left: auto !important;
  font-size: 18px;
}
.nav-group-items {
  display: grid;
  gap: 3px;
  margin: 3px 0 8px;
  padding-left: 7px;
  border-left: 2px solid var(--line);
}
.sidebar .nav-group-items button {
  width: 100%;
  padding: 10px;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  font-size: 13px;
}
.nav-count {
  margin-left: auto;
  border-radius: 6px;
  padding: 1px 6px;
  background: var(--line);
}
.workspace-version {
  display: block;
  padding: 16px 8px;
  color: var(--muted);
}
.turn-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 24px;
}
.turn-summary > div {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.turn-summary > div:last-child {
  border-right: 0;
}
.turn-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.turn-summary strong {
  display: block;
  font-size: 30px;
  margin-top: 7px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 25px;
  background: var(--panel);
  min-height: 220px;
  gap: 12px;
}
.service-card strong {
  font-size: 24px;
}
.service-card small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}
.service-card > span:last-child {
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
}
.service-symbol {
  font-size: 26px;
  color: var(--accent);
}
.shift-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.shift-strip p {
  margin: 7px 0 0;
}
.production-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.segmented button {
  padding: 9px 13px;
  font-size: 13px;
}
.segmented b {
  background: var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.segmented button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.production-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  align-items: start;
}
.production-lane {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.production-lane > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin: 3px 0 16px;
}
.production-lane > h2 > span {
  margin-left: auto;
  color: var(--muted);
}
.lane-dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.lane-dot.em_preparo {
  background: #66a5db;
}
.lane-dot.pronto {
  background: #68b780;
}
.production-ticket {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 12px;
  overflow: hidden;
}
.production-ticket > header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px;
}
.production-ticket > header > span {
  color: var(--muted);
}
.production-line {
  padding: 14px;
  border-top: 1px solid var(--line);
}
.production-line .row {
  align-items: start;
}
.production-line p {
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.production-line strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.production-line small {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}
.production-line button {
  width: 100%;
  font-size: 13px;
}
.production-note {
  padding: 8px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
}
.production-extra {
  color: var(--muted);
}
.production-empty {
  padding: 25px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.production-cancel {
  padding: 14px;
  border: 1px solid var(--red);
  border-radius: 10px;
  margin-bottom: 16px;
}
.production-cancel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--red);
}
:root[data-theme='light'] .service-card {
  background: #fff;
}
:root[data-theme='light'] .nav-group-toggle.expanded,
:root[data-theme='light'] .service-card > span:last-child,
:root[data-theme='light'] .service-symbol,
:root[data-theme='light'] .segmented button.active {
  color: #805022;
}
@media (max-width: 1050px) {
  .service-grid {
    gap: 12px;
  }
  .service-card {
    padding: 18px;
  }
  .turn-summary > div {
    padding: 15px;
  }
  .userbar .status-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static !important;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .workspace-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .nav-group {
    min-width: 0;
  }
  .nav-group-toggle {
    font-size: 13px;
  }
  .nav-group-items {
    margin-bottom: 4px;
  }
  .workspace-version {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 150px;
  }
  .service-card strong {
    font-size: 22px;
  }
  .turn-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
  }
  .turn-summary > div {
    border-bottom: 1px solid var(--line);
  }
  .turn-summary > div:nth-child(2) {
    border-right: 0;
  }
  .turn-summary strong {
    font-size: 26px;
  }
  .header {
    padding: 12px;
  }
  .userbar {
    gap: 8px;
  }
  .userbar > span:not(.status-label) {
    display: none;
  }
  .page-head {
    align-items: start;
  }
  .shift-strip {
    align-items: start;
  }
  .main {
    padding: 18px 12px !important;
    min-width: 0;
  }
  .production-board {
    grid-template-columns: 1fr;
  }
  .production-lane {
    padding: 10px;
  }
  .segmented button {
    padding: 9px 11px;
  }
  .page-head h1 {
    font-size: 26px;
  }
}
@media print {
  .sidebar,
  .header,
  .main {
    display: none !important;
  }
}
.sale-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  margin-top: 16px;
}
.sale-catalog {
  min-width: 0;
}
.sale-preview {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 0;
}
.sale-preview h3 {
  margin: 8px 0 16px;
}
.sale-preview > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.sale-preview small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.sale-preview .sale-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.sale-preview strong {
  overflow-wrap: anywhere;
}
.sale-catalog .category-tiles {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
.sale-catalog .product-options {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.sale-catalog .product-option img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .sale-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sale-preview {
    position: static;
  }
  .sale-preview > div:not(.sale-total) {
    display: none;
  }
  .sale-preview h3 {
    margin-bottom: 8px;
  }
  .sale-preview {
    padding: 12px;
  }
  .sale-preview > small {
    display: none;
  }
}
.sidebar {
  display: block;
}
.sidebar button {
  min-width: 0;
}
.nav-group-toggle .nav-chevron {
  width: auto !important;
}
.workspace-nav {
  width: 100%;
}
@media (min-width: 761px) and (max-width: 850px) {
  .sidebar {
    position: static;
    overflow: visible;
  }
  .workspace-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }
  .workspace-version {
    display: none;
  }
}
.admin-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.admin-shortcuts button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.panel summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
.panel details {
  margin-top: 12px;
}
.admin-shortcuts button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 8px;
  padding: 20px;
}
.admin-shortcuts small {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
:root[data-theme='light'] .sidebar .nav-group-toggle.expanded {
  color: #f2c182;
}
:root[data-theme=light] .segmented button.active{background:#edf7f2;border-color:#15795d;color:#126951}
