@font-face {
  font-family: 'Futura';
  src: url('../fonts/futura/Futura_0.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/futura/Futura_1.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/futura/Futura_2.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Futura Condensed';
  src: url('../fonts/futura/Futura_3.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Futura Condensed';
  src: url('../fonts/futura/Futura_4.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}


* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Futura', Arial, sans-serif;
  background: #f9f9f9;
  background: url('../icons/background.png') repeat;
}

input[obrigatorio=yes], select[obrigatorio=yes], textarea[obrigatorio=yes] {
    border-left: 2px solid gray !important;
}

input[obrigatorio=yes].invalido, 
select[obrigatorio=yes].invalido, 
textarea[obrigatorio=yes].invalido{ 
	border-left-color: #f54c51 !important;
	background-color: #f8eaeb;
}

.red 	  { color: #e74c3c;}
.orange   { color: #f39c12;}
.green 	  { color: #00bd6a;}
.yellow   { color: #f1c40f;}
.blue     { color: #3498db;}
.navy     { color: #2c3e50;}
.purple   { color: #9b59b6;}
.pink     { color: #e84393;}



.btn {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Futura';
  cursor: pointer;
}

.btn.disabled {
  background: #d3d7df;
  cursor: not-allowed;
}


.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 90%;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 30px;
}

.login-error { 
	margin-top: -20px; 
	margin-bottom:8px;
	font-size: .95rem; 
	color: #b00020;
	text-align:center;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #555;
}

.content {
  width: 90%;
  margin: 0 auto;
  padding-top: 80px;
}




.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.home-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  padding: 40px 20px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.home-card i {
  font-size: 48px;
  color: #000;
  margin-bottom: 15px;
}

.home-card span {
  display: block;
  font-weight: bold;
  color: #000;
}

.home-card:hover {

  border: 2px solid #000;
}

.badge-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #a52a2a;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 10;
}

.logo{  
  margin: 0 auto;
  padding-top:5px;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    color: #222;
    padding: 60px 20px 20px;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 200;
}

.side-menu.open {
    left: 0;
}

.menu-toggle {
    font-size: 28px;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin-bottom: 10px;
}

.menu-items a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-radius: 6px;
}

.menu-items a:hover {
    background: #f0f0f0;
}

.menu-footer {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout {
    color: #222;
    text-decoration: none;
    font-size: 22px;
}

.logout:hover {
    color: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-toggle {
    font-size: 28px;
    cursor: pointer;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-modal {
    position: fixed;
    top: 0;
    right: -95vw;
    width: 90vw;
    height: 100%;
    background: #fff;
    padding: 70px 30px 30px;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 200;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.search-modal.open {
    right: 0;
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

#search-modal-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Futura', Arial, sans-serif;
    outline: none;
}

#search-modal-input:focus {
    border-color: #bbb;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}

.barcode-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

.barcode-toggle:hover {
    color: #000;
}

#barcode-reader-wrap {
    margin-top: 20px;
}

#barcode-reader {
    border-radius: 8px;
    overflow: hidden;
}




.content h2 { font-size: 28px; margin-bottom: 10px; color: #333; }
.hashtag { margin-bottom: 30px; color: #666; }
.card-list { display: flex; flex-direction: column; gap: 20px; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; cursor: pointer; }
.card-title { font-size: 16px; font-weight: bold; color: #333; }
.card-count { color: #333; font-weight: bold; }
.card-body { display: none; padding: 0; background: #fff; }
.card.active .card-body { display: block; }
.card-header i { font-size: 24px; color: #333; transition: transform 0.3s; }
.card.active .card-header i { transform: rotate(180deg); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-top: 1px solid #eee; }
.list-item:first-child {border-top: none;}
.list-info { color: #333; }
.list-info span { font-size: 14px; color: #777; }
.list-main { display: flex; align-items: center; gap: 10px; color: #777; }
.list-main i { font-size: 20px; }



.profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.avatar {
  background: #333;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-info {
  flex: 1;
}

.profile-info .name {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #555;
}

.profile-info .store {
  font-size: 13px;
  color: #999;
}

.badge {
  background: #52a8f2;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.client-item {
  transition: background 0.3s;
}

.client-item:hover {
  background: #f0f0f0;
  cursor: pointer;
}


.search-box {
  position: relative;
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  padding: 12px 75px 12px 12px; /* espaço para dois ícones */
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.search-filter {
  position: relative;
  margin-bottom: 30px;
}


#search-icon {
  position: absolute;
  top: 50%;
  right: 45px; /* deslocado para esquerda */
  transform: translateY(-50%);
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

#search-icon-filter {
  position: absolute;
  top: 50%;
  right: 15px; /* canto direito */
  transform: translateY(-50%);
  font-size: 20px;
  color: #999;
  cursor: pointer;
}



.filter-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: -20px; /* encosta no campo */
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contacts-banner {
  background: #333;
  color: #fff;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.no-results {
  text-align: center;
  margin-top: 40px;
  color: #555;
}

.no-results i {
  font-size: 48px;
  color: #999;
  margin-bottom: 10px;
}

.no-results h3 {
  margin: 10px 0;
}

.hidden {
  display: none;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.card-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header-inline h3 {
  font-size: 18px;
  color: #333;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
}

.badge.red { background: #e74c3c; }
.badge.orange { background: #f39c12; }

.card-value {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.progress-bar {
  background: #eee;
  border-radius: 6px;
  height: 6px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3498db;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.contact-types {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.contact-item i {
  font-size: 30px;
  color: #888;
}

.contact-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #999;
}

.contact-item strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  color: #333;
}


.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 12px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group select {
  width: 100%;
  padding: 12px 40px 12px 12px; 
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;              
  color: #333;
  background-color: #fff;
  box-sizing: border-box;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5 7l5 6 5-6" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}

.form-group select::-ms-expand { display: none; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #bbb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}

.form-group select:disabled {
  background-color: #f6f6f6;
  color: #999;
}

.form-group select:required:invalid { color: #999; }
.form-group select option[value=""] { color: #999; }


h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
  color: #666;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.radio-group label {
  font-weight: bold;
  color: #666;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
}

#dado {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}



.avaliacao-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.status-balls {
  display: flex;
  gap: 15px;
}

.ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

.ball:hover {
  opacity: 1;
  transform: scale(1.1);
}

.active {
  opacity: 1 !important;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 0px;
  margin-bottom: 20px;
}

.avaliacao-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avaliacao-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.card {
  border: none; /* remover borda */
}

.item-images {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.item-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

.avaliacao-item {
  align-items: flex-start;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.product-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.product-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.product-thumb-placeholder span {
  color: #bbb;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  word-break: break-all;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 10px 12px 14px;
}

.product-code {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
}

.product-name {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
}

.product-grades {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.grade-pill {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: #555;
  line-height: 1.5;
}

.product-cores {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cor-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ccc;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.cor-circle:hover {
  border-color: #777;
}

.cor-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cor-circle--vazia {
  background: #fff;
  border-color: #ccc;
}

/* ── Grade Modal ── */
.grade-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}
.grade-modal-overlay.active { opacity: 1; pointer-events: all; }

.grade-modal {
  position: fixed;
  top: 0;
  right: -95vw;
  width: 95vw;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: right 0.3s;
  z-index: 200;
}
.grade-modal.open { right: 0; }

.grade-modal-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.grade-modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.grade-modal-header {
  padding: 20px 50px 14px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.grade-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.grade-product-name {
  font-weight: bold;
  font-size: 17px;
  color: #222;
  flex: 1;
}
.grade-total-badge {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.grade-product-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.grade-product-price { font-weight: bold; font-size: 15px; color: #333; }
.grade-product-ref   { font-size: 12px; color: #999; margin-top: 2px; }

.grade-modal-body {
  flex: 1;
  overflow-y: auto;
}
.grade-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.grade-btn-clear {
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.grade-btn-clear:hover { color: #e74c3c; }

.grade-loading { padding: 20px; color: #999; }

.grade-table-wrap { overflow-x: auto; padding: 10px 6px; }
.grade-table { border-collapse: collapse; }

.grade-cor-th { min-width: 36px; width: 36px; }

.grade-th {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  padding: 10px 4px 6px;
  min-width: 44px;
  white-space: nowrap;
}

.grade-cor-label {
  font-size: 12px;
  font-weight: bold;
  color: #555;
  padding: 10px 12px 10px 6px;
  white-space: nowrap;
  vertical-align: middle;
  border-top: 1px solid #f5f5f5;
}

.grade-cell {
  text-align: center;
  padding: 8px 4px;
  border-top: 1px solid #f5f5f5;
}

.grade-cell-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.15s;
  gap: 1px;
  padding: 4px 0;
}
.grade-cell-btn:hover                { border-color: #bbb; }
.grade-cell-btn.grade-cell-active    { border-color: #000; background: #f5f5f5; }
.grade-cell-btn.grade-cell-filled    { border-color: #333; }

.grade-cell-stock {
  font-size: 10px;
  color: #00bd6a;
  font-weight: bold;
  line-height: 1;
}
.grade-cell-stock.sem-estoque { color: #ccc; }

.grade-cell-qty {
  font-size: 16px;
  font-weight: bold;
  color: #ccc;
  line-height: 1;
}
.grade-cell-btn.grade-cell-filled .grade-cell-qty { color: #333; }

.grade-na { color: #eee; font-size: 14px; }

/* ── Pack icon ── */
.grade-pack-icon {
  font-size: 20px;
  color: #888;
  cursor: pointer;
  margin-right: 4px;
  touch-action: manipulation;
}
.grade-pack-icon:hover { color: #333; }

/* ── Pack panel ── */
.grade-pack-panel {
  border-bottom: 1px solid #eee;
  padding: 10px 0 14px;
  margin-bottom: 14px;
}
.grade-pack-panel-cor {
  font-size: 13px;
  font-weight: bold;
  color: #555;
  margin-bottom: 10px;
}
.grade-pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grade-pack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.grade-pack-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grade-pack-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.grade-pack-cod {
  font-size: 14px;
  color: #000;
}
.grade-pack-total {
  font-size: 11px;
  color: #000;
  font-weight: bold;
}
.grade-pack-detalhe {
  font-size: 11px;
}
.grade-pack-detalhe b {
  color: #000;
  font-weight: bold;
}
.grade-pack-detalhe span {
  color: #aaa;
  font-weight: normal;
}
.cor-circle--lg {
  width: 30px;
  height: 30px;
}

.grade-cor-expand-td {
  padding: 8px 10px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.grade-cor-expand-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.grade-cor-expand-name {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}
.grade-cor-expand-imgs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.grade-cor-expand-imgs img {
  height: 56px;
  width: auto;
  border-radius: 4px;
  object-fit: cover;
}
.grade-pack-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

/* ── Stepper ── */
.grade-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}
.grade-stepper-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grade-stepper-cor      { font-size: 13px; color: #999; }
.grade-stepper-grade    { font-size: 17px; font-weight: bold; color: #222; }
.grade-stepper-estoque  { font-size: 12px; color: #999; font-weight: normal; }

.grade-stepper-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grade-btn-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.grade-stepper-qty {
  width: 52px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 0;
  font-family: 'Futura', Arial, sans-serif;
  color: #222;
  background: #fff;
  touch-action: manipulation;
  transition: border-color 0.15s, color 0.15s;
}

.grade-cell-btn,
.grade-btn-step {
  touch-action: manipulation;
}

/* Pedido (pg_app_005) */
.ped-header { padding: 4px 0 16px; margin-bottom: 12px; }

/* cabeçalho: ícone + info + direita */
.ped-header-top  { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ped-header-left { display: flex; align-items: center; gap: 10px; }
.ped-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ped-header-info { display: flex; flex-direction: column; gap: 1px; }
.ped-icon { font-size: 36px; color: #333; flex-shrink: 0; }

/* textos genéricos: título, sub, meta, badge, valor */
.txt-title  { font-size: 16px; font-weight: 700; color: #333; }
.txt-gray   { font-size: 11px; color: #999; }
.txt-badge  { font-size: 12px; background: #fff; border-radius: 6px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

/* cliente */
.ped-cliente-inline { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 8px; color: #555; font-size: 14px; }
.ped-cliente-inline .mdi { font-size: 18px; color: #aaa; }
.ped-cliente-inline .mdi-chevron-right { color: #ccc; margin-left: auto; }

/* painel expansível */
.ped-info-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 7px 0; border-top: 1px solid #eee; }
.ped-info-toggle span { flex: 1; }
.ped-info-toggle > i { font-size: 18px; color: #aaa; }
.ped-info-body { display: none; padding: 8px 0 12px;  margin-bottom: 10px; }
.ped-info-row   { display: flex; gap: 8px; margin-bottom: 5px; align-items: baseline; }
.txt-label  { font-size: 8px; color: #bbb; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.txt-value  { font-size: 13px; color: #444; }

/* botões de ação */
.ped-header-actions { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid #eee; padding-top: 14px; }
.ped-action-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: #555; font-size: 11px; border-radius: 10px; padding: 8px 12px; cursor: pointer; flex: 1; min-width: 56px; text-align: center; }
.ped-action-btn i { font-size: 22px; color: #555; }
.ped-action-btn .mdi-whatsapp { color: #25d366; }
.ped-action-btn .mdi-plus-circle-outline { color: #4a90d9; }
.ped-action-btn .mdi-gift-outline { color: #9b59b6; }
.ped-action-btn .mdi-information-outline { color: #f39c12; }
.ped-action-cancelar { background: #fff5f5; }
.ped-action-cancelar i, .ped-action-cancelar span { color: #ea4335; }

/* itens da lista */
.ped-item-img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; display: block; }
.ped-item-del { font-size: 18px; color: #ea4335; cursor: pointer; margin-top: 8px; display: block; text-align: center; }
.list-main    { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Itens agrupados (pg_app_005 / pg_app_012) */
.prod-group { display: flex; gap: 16px; padding: 12px; border-bottom: 1px solid #eee; }
.prod-group:last-child { border-bottom: none; }
.prod-img { width: 70px; min-width: 70px; height: 90px; object-fit: cover; border-radius: 6px; background: #f0f0f0; }
.prod-img-placeholder { width: 70px; min-width: 70px; height: 90px; border-radius: 6px; background: #f0f0f0; }
.prod-info { flex: 1; }
.prod-nome { font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 2px; }
.prod-cor { font-size: 11px; color: gray; margin-bottom: 6px; }
.grade-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.prod-subtotal { font-size: 12px; color: gray; margin-top: 6px; }
.prod-subtotal b { color: #333; }
.gc-cell { display: flex; flex-direction: column; align-items: center; min-width: 36px; background: #f0f0f0; border-radius: 4px; padding: 3px 5px; }
.gc-label { font-size: 9px; color: gray; margin-bottom: 2px; }
.gc-qty { font-size: 13px; font-weight: 600; }

/* Tooltip rel="tooltip" */
#app-tooltip {
  display: none;
  position: absolute;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 99999;
}
