/* Seller Ecom - Shopee > Promocoes (migracao 082). Componentes do Financeiro (.finance-kpis, .fin-filters, .fin-table, .fin-status) + abas e formularios proprios. */
#shopee-promocoes .spm-mode { font-size: 12px; color: #9fb0c3; margin: 4px 0 12px; line-height: 1.7; }
#shopee-promocoes .spm-settings { display: grid; grid-template-columns: 170px 170px minmax(220px, 300px) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #263a52; border-radius: 12px; background: #0e1a2b; }
#shopee-promocoes .spm-settings label { font-size: 12px; color: #a9b8cc; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#shopee-promocoes .spm-settings input, #shopee-promocoes .spm-settings select { background: #0d1929; color: #eaf0f7; border: 1px solid #30455e; border-radius: 8px; padding: 9px; width: 100%; min-width: 0; box-sizing: border-box; }
#shopee-promocoes .spm-settings-note { grid-column: 1 / -1; font-size: 12px; color: #8fa2b8; line-height: 1.5; }
#shopee-promocoes .spm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
#shopee-promocoes .spm-tab { background: #101c2e; color: #c9d6e4; border: 1px solid #263a52; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; }
#shopee-promocoes .spm-tab.active { background: linear-gradient(135deg, #e8c66a, #c9972b); color: #101827; border-color: transparent; }
#shopee-promocoes .spm-tab span { opacity: .8; font-weight: 600; }
#shopee-promocoes .spm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#shopee-promocoes .spm-toolbar .fin-form-note { margin: 0 0 10px; }
#shopee-promocoes .spm-form { border: 1px solid #334a65; border-radius: 12px; padding: 14px; margin: 6px 0 16px; background: #0b1727; }
#shopee-promocoes .spm-form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
#shopee-promocoes .spm-form-head b { font-size: 16px; color: #e8c66a; }
#shopee-promocoes .spm-search { width: 100%; max-width: 420px; background: #0d1929; color: #eaf0f7; border: 1px solid #30455e; border-radius: 8px; padding: 9px; }
#shopee-promocoes .spm-picker { max-height: 360px; overflow: auto; border: 1px solid #22364d; border-radius: 10px; }
#shopee-promocoes .spm-items { width: 100%; font-size: 12.5px; }
#shopee-promocoes .spm-items td, #shopee-promocoes .spm-items th { vertical-align: middle; }
#shopee-promocoes .spm-item { display: flex; align-items: center; gap: 10px; min-width: 220px; }
#shopee-promocoes .spm-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #18283d; flex: 0 0 40px; display: inline-block; }
#shopee-promocoes .spm-price { width: 92px; background: #0d1929; color: #eaf0f7; border: 1px solid #30455e; border-radius: 7px; padding: 6px 8px; }
#shopee-promocoes .spm-row { cursor: pointer; }
#shopee-promocoes .spm-row:hover td { background: rgba(232, 198, 106, .04); }
#shopee-promocoes .spm-items-row > td { background: #0b1626; padding: 8px 10px 14px; }
#shopee-promocoes .spm-actions { white-space: nowrap; text-align: right; }
#shopee-promocoes .spm-danger { border-color: #8a3b3b !important; color: #ff9b9b !important; }
#shopee-promocoes .spm-warn { color: #e8c66a; }
#shopee-promocoes .spm-edit { white-space: nowrap; }
@media (max-width: 900px) {
  #shopee-promocoes .spm-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #shopee-promocoes .spm-settings label:nth-of-type(3) { grid-column: 1 / -1; }
  #shopee-promocoes .spm-toolbar { flex-direction: column; align-items: stretch; }
  #shopee-promocoes .spm-actions { white-space: normal; text-align: left; }
}
/* 01/11: margem ao vivo, aviso na linha e aplicar em todos */
#shopee-promocoes .spm-rowmsg { font-size: 12px; margin-top: 4px; white-space: normal; max-width: 260px; }
#shopee-promocoes .spm-rowmsg.ok { color: #86efac; }
#shopee-promocoes .spm-rowmsg.bad { color: #ff8585; }
#shopee-promocoes .spm-was { color: #91a0b5; }
#shopee-promocoes .spm-help { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; border: 1px solid #5b7393; font-size: 11px; cursor: help; color: #b9c7d8; }
#shopee-promocoes .spm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid #30455e; border-radius: 9px; background: #0b1726; }
#shopee-promocoes .spm-bulk label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d5e3; }
#shopee-promocoes .spm-bulk-ask { flex-basis: 100%; font-size: 13px; color: #eaf0f7; }
#shopee-promocoes .spm-bulk-ask .spm-warn { color: #ff8585; font-weight: 600; }
#shopee-promocoes .spm-bulk-tip { font-size: 13px; color: #c9d5e3; flex: 1 1 320px; }
#shopee-promocoes tr.spm-changed td { background: rgba(241, 207, 112, .08); }
#shopee-promocoes tr.spm-changed .spm-price { border-color: #f1cf70; }
