/* By TG v22: estoque, extratos e instalação. */
.stock-date-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-top:14px}
.stock-date-filters label{display:grid;gap:6px;font-size:14px;color:var(--ink-muted);flex:1 1 140px;min-width:0}
.stock-date-filters label:first-child,.stock-date-filters label:nth-child(4){flex-basis:210px}
.stock-date-filters select,.stock-date-filters input{width:100%;min-height:44px;font:inherit;border:1px solid var(--border-strong);border-radius:9px;padding:9px;background:var(--surface);color:var(--ink);box-sizing:border-box}
.stock-date-filters button{min-height:44px}
.stock-filter-help{font-size:14px;line-height:1.5;margin:12px 0 0}
.stock-filter-help:empty{display:none}
.stock-product{display:flex;gap:10px;align-items:center;min-width:190px}
.stock-photo{flex:0 0 52px;width:52px;height:52px;object-fit:contain;background:var(--surface-2);border:1px solid var(--border);border-radius:9px;padding:0;overflow:hidden;cursor:pointer}
.stock-photo img{width:100%;height:100%;object-fit:contain;display:block}
.stock-photo-empty{display:grid;place-items:center;color:var(--ink-muted);font-size:12px;cursor:default}
.stock-entry-date{white-space:nowrap;font-size:14px}
#view-estoque .table-scroll{overflow-x:auto}
#estoque-table{table-layout:auto;min-width:1460px;font-size:14px}
#estoque-table th{width:auto!important;padding:12px 10px;font-size:12px;letter-spacing:.02em}
#estoque-table td{padding:12px 10px;line-height:1.4;overflow:visible}
#estoque-table .cell-primary,#estoque-table .quantity-balance strong{font-size:14px}
#estoque-table .cell-sub{font-size:12px}
#estoque-table .inline-status{font-size:14px;padding:8px 24px 8px 8px;min-height:42px}
#estoque-table .badge{font-size:12px;padding:4px 7px}
#estoque-table .btn-sm{font-size:12px;padding:7px 9px;min-height:36px}
#estoque-table .row-actions{min-width:150px;gap:5px}
.product-photo-preview{width:160px;max-width:100%;height:160px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.product-photo-preview img{width:100%;height:100%;object-fit:contain}
.photo-link-option{font-size:14px;color:var(--ink-muted)}
.photo-link-option summary{cursor:pointer;margin:8px 0}
.photo-link-option input{display:block;width:100%;margin-top:6px}
#dlg-product-photo{width:min(620px,94vw)}
#product-photo-full{display:block;max-width:100%;max-height:70dvh;object-fit:contain;margin:auto}
.sale-statement-entry{display:grid;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:16px}
.sale-statement-entry p{margin:0;color:var(--ink-muted);font-size:14px;line-height:1.5}
.sale-statement-entry button{justify-self:start}
.sale-statement-shortcut{margin-left:auto;font-size:14px!important;min-height:42px}
.statement-share-actions,.statement-download-actions{display:flex;gap:10px;flex-wrap:wrap}
.statement-share-actions button{flex:1;min-height:48px;font-size:15px}
.statement-download-actions{justify-content:flex-end}
.statement-download-actions .btn{font-size:13px;min-height:40px;padding:7px 11px;flex:none}
#dlg-venda-extrato .sale-report-preview{overflow-x:auto}
#dlg-venda-extrato .sale-report-preview,#dlg-venda-extrato .sale-report-preview td{font-size:14px}
#dlg-venda-extrato .sale-report-preview th{font-size:12px}
#dlg-venda-extrato .faint{font-size:14px;line-height:1.5;margin:0}
.install-app-btn{font-size:14px;min-height:44px}
.install-note{font-size:14px;line-height:1.6}
.install-steps li{font-size:16px;line-height:1.5}
.install-steps strong{color:var(--ink)}
[hidden]{display:none!important}
@media(max-width:640px){
  .stock-filter-row select{width:100%;max-width:100%;min-height:44px}
  .stock-date-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .stock-date-filters label:first-child,.stock-date-filters label:nth-child(4),.stock-date-filters>button{grid-column:1/-1}
  .stock-date-filters input,.stock-date-filters select,#pf-photo-file,#pf-photo-url{font-size:16px;min-width:0}
  #dlg-venda .dialog-head{flex-wrap:wrap;gap:8px}
  #dlg-venda .dialog-head h3{flex:1}
  .sale-statement-shortcut{order:3;flex-basis:100%;margin:0}
  .statement-share-actions{flex-direction:column}
  .statement-download-actions{justify-content:flex-start}
  .sale-statement-entry button{width:100%}
  .install-app-btn .install-label{display:inline;font-size:13px}
  .topbar{flex-wrap:wrap}
  .topbar>div:last-child{flex-wrap:wrap;justify-content:flex-end;gap:6px!important}
  body{padding-bottom:env(safe-area-inset-bottom)}
  dialog .dialog-body{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
