/* Tela Vendas (lista): estilos próprios, medidos em vendas.png (1440 x 900, escala 2). */

.sales-list .sales-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sales-list .sales-toolbar-left, .sales-list .sales-toolbar-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sales-list .sales-more-actions { height: 37px; box-sizing: border-box; border: 1px solid #0f1921; background: #fff; color: #0f1921; font-size: 16px; }
.sales-list .sales-more-actions:disabled { opacity: 1; cursor: not-allowed; }
.sales-list .sales-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 37px; min-width: 42px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid #0f1921; border-radius: 3px; background: #0f1921; color: #fff;
  font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
}
.sales-list .sales-tool .saleform-icon { width: 17px; height: 17px; fill: currentColor; }
.sales-list .sales-tool.is-light { background: #fff; border-color: #d9dee2; color: #0f1921; }
.sales-list .sales-tool:disabled { cursor: not-allowed; opacity: .85; }
.sales-list .sales-month { padding: 0 16px; }
.sales-list .sales-search-panel[hidden] { display: none; }
.sales-list .sales-search-panel { padding: 12px; border: 1px solid #d9dee2; border-radius: 4px; background: #fff; }
.sales-list .sales-search-panel .toolbar { margin: 0; }

.sales-list .data-table th a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sales-list .data-table th a:hover { text-decoration: underline; }
.sales-list .data-table .sales-sort { font-size: 9px; color: #6e757c; }
.sales-list .data-table .sales-col-total, .sales-list .data-table td.money-cell { text-align: right; }
.sales-list .data-table th.sales-col-actions { text-align: center; }
.sales-list .data-table td.sale-customer a { color: #262b2f; text-decoration: underline; }
.sales-list .data-table td.sale-delivery { color: #6e757c; }
.sales-list .data-table th:last-child, .sales-list .data-table td:last-child { width: 186px; min-width: 186px; }

.sale-icon-actions { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sale-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; list-style: none;
  width: 32px; height: 32px; box-sizing: border-box; padding: 0;
  border: 1px solid #d9dee2; border-radius: 3px; background: #fff; color: #222529; cursor: pointer;
}
.sale-icon-btn::-webkit-details-marker { display: none; }
.sale-icon-btn:hover { background: #f1f2f4; }
.sale-icon-btn .saleform-icon { width: 16px; height: 16px; fill: currentColor; }
.sale-more { position: relative; }
.sale-more-menu {
  position: absolute; right: 0; top: 36px; z-index: 20; display: flex; flex-direction: column; gap: 6px;
  min-width: 200px; padding: 10px; border: 1px solid #d9dee2; border-radius: 4px; background: #fff;
  box-shadow: 0 6px 18px rgba(15, 25, 33, .16);
}
.sale-more-menu .button { justify-content: flex-start; }
.sale-more-balance { margin: 0 0 2px; color: #6e757c; font-size: 12px; }

.sales-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sales-footer .result-count { margin: 0; }
.sales-footer-controls { display: flex; align-items: center; gap: 8px; }
.sales-footer-controls label { margin: 0; color: #4a5056; font-size: 14px; }
.sales-footer-controls select { height: 32px; }
.sales-pager { display: flex; align-items: center; gap: 2px; }
.sales-pager a, .sales-pager .gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box;
  border: 1px solid #d9dee2; background: #fff; color: #222529; text-decoration: none;
}
.sales-pager a.current { background: #0f1921; border-color: #0f1921; color: #fff; }
.sales-pager .gap { border-color: transparent; background: transparent; }
.sales-footer-controls label { white-space: nowrap; }
.sales-footer-controls select { width: auto; min-width: 64px; }
.sales-list .data-table td.sale-actions-cell { padding-top: 10px; padding-bottom: 10px; }

/* Botão do mês das listas (vendas, orçamentos, devoluções): "Outubro de 2026" com a seta, abre a lista de meses. */
.g3-month { position: relative; display: inline-block; }
.g3-month > summary {
  display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 13px; box-sizing: border-box;
  border: 1px solid #0f1921; border-radius: 4px; background: #0f1921; color: #fff; font: inherit; font-size: 15px;
  list-style: none; cursor: pointer; user-select: none; white-space: nowrap;
}
.g3-month > summary::-webkit-details-marker { display: none; }
.g3-month > summary::after { content: ''; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.g3-month > .g3-month-menu { display: none; }
.g3-month[open] > .g3-month-menu {
  display: block; position: absolute; right: 0; top: calc(100% + 2px); z-index: 30; min-width: 190px; max-height: 320px;
  overflow: auto; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #d9dee2;
  border-radius: 4px; box-shadow: 0 6px 18px rgba(15, 25, 33, .16);
}
.g3-month-menu button {
  display: block; width: 100%; padding: 7px 14px; border: 0; background: transparent; color: #0f1921; text-align: left;
  font: inherit; font-size: 14px; cursor: pointer;
}
.g3-month-menu button:hover, .g3-month-menu button[aria-current="true"] { background: #f1f2f4; }

/* Menus fechados (linha da venda, mês e "Mais ações" das vendas de serviços) não ocupam lugar nem aparecem na página. */
.sale-more:not([open]) > .sale-more-menu,
.service-month:not([open]) > .service-menu,
.service-more:not([open]) > .service-menu { display: none; }
.service-menu .service-menu-note { display: block; padding: 8px 14px; color: #6e757c; font-size: 13px; }
.service-menu .service-menu-note small { display: block; font-size: 11px; }

/* "Mais ações" das listas de vendas e orçamentos: itens com ícone, um por linha (captura vendas--mais-acoes). */
.g3-more { position: relative; display: inline-block; }
.g3-more > summary { list-style: none; cursor: pointer; user-select: none; }
.g3-more > summary::-webkit-details-marker { display: none; }
.g3-more > .g3-more-menu { display: none; }
.g3-more[open] > .g3-more-menu {
  display: block; position: absolute; left: 0; top: calc(100% + 2px); z-index: 30; min-width: 170px; margin: 0; padding: 0;
  list-style: none; background: #fff; border: 1px solid #d9dee2; border-radius: 3px; box-shadow: 0 6px 12px rgba(15, 25, 33, .16);
}
.g3-more-menu li { margin: 0; border-bottom: 1px solid #eceff1; }
.g3-more-menu li:last-child { border-bottom: 0; }
.g3-more-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 16px 6px 14px; border: 0; background: transparent;
  color: #0f1921; text-align: left; white-space: nowrap; font: inherit; font-size: 14px; cursor: pointer;
}
.g3-more-menu button:hover:not(:disabled) { background: #f1f2f4; }
.g3-more-menu button:disabled { color: #6e757c; cursor: not-allowed; }
.g3-more-icon { width: 16px; height: 16px; flex: none; fill: currentColor; }
.g3-more-x { width: 16px; flex: none; text-align: center; font-size: 20px; font-weight: 700; line-height: 1; color: #0f1921; }
.g3-more-menu .g3-more-badge { margin-left: auto; padding: 1px 6px; border-radius: 3px; background: #e5f4e8; color: #1e7b34; font-size: 11px; }
.g3-more-caret { font-size: 12px; }
th.g3-select, td.g3-select { width: 38px; min-width: 38px; text-align: center; }

/* Lista de vendas de produtos (captura vendas, 1440 px): colunas em proporção do original, texto de 14 px,
   selos de 11 px e botões de 28 px. */
.sales-list .data-table { table-layout: fixed; font-size: 14px; }
.sales-list .data-table th, .sales-list .data-table td { font-size: 14px; padding-left: 12px; padding-right: 12px; }
.sales-list .data-table th.sales-col-number { width: 6.85%; }
.sales-list .data-table th.sales-col-customer { width: 33.6%; }
.sales-list .data-table th.sales-col-date { width: 11.7%; }
.sales-list .data-table th.sales-col-delivery { width: 11.8%; }
.sales-list .data-table th.sales-col-status { width: 14.2%; }
.sales-list .data-table th.sales-col-total { width: 10.5%; }
.sales-list .data-table th.sales-col-actions { width: 11.4%; min-width: 0; }
.sales-list .data-table td:last-child { width: auto; min-width: 0; }
.sales-list .data-table .situation-pill { font-size: 11px; padding: 1px 6px; }
.sales-list .sale-icon-btn { width: 28px; height: 28px; }
.sales-list .sale-icon-actions { gap: 4px; }

/* Ícone do título das listas (o original traz um ícone antes do nome da tela). */
#page-title[data-route='sales'][data-mode='list']::before { content: ''; display: inline-block; width: 24px; height: 24px; margin-right: 4px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23262b2f'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
