/* Propaganda (TVs da loja) - classes prefixadas "prop-" pra nao colidir
   com o resto da gestao. Cores e proporcoes copiadas do admin do VinaTV
   (vinatv/server/public/admin/admin.css), de proposito - e pra ficar
   identico. */
.prop-shell { padding: 4px 0 24px; }
.prop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.prop-head h2 { margin: 0; font-size: 1.4rem; color: #2c2f36; }
.prop-head p { margin: 6px 0 0; color: #6f7782; font-size: 0.86rem; max-width: 620px; }
.prop-actions { display: flex; gap: 8px; }

.prop-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 5px; border: 1px solid #E5E7EB; background: #fff; color: #4F5660;
  font: 700 13.5px Arial, Helvetica, sans-serif; cursor: pointer;
}
.prop-btn:hover { background: #FAFAFA; }
.prop-btn.primary { background: #E8400E; border-color: #E8400E; color: #fff; }
.prop-btn.primary:hover { background: #C73509; border-color: #C73509; }
.prop-btn.danger { color: #B42318; }
.prop-btn.danger:hover { background: #FEECEB; border-color: #F6C9C5; }
.prop-btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.prop-btn.icon { width: 32px; height: 32px; padding: 0; border-color: transparent; background: transparent; color: #6F7782; }
.prop-btn.icon:hover { background: #F1F2F4; color: #1A1A1A; }
.prop-btn:disabled { opacity: .5; cursor: default; }
.prop-btn:disabled:hover { background: #fff; }
.prop-btn.icon:disabled:hover { background: transparent; color: #6F7782; }
.prop-btn .icon { width: 16px; height: 16px; }
.prop-btn { box-shadow: 0 1px 3px rgba(27, 31, 35, .10); }
.prop-btn.icon { box-shadow: none; justify-content: center; }

.prop-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; box-shadow: 0 7px 18px rgba(27,31,35,.1); overflow: hidden; margin-bottom: 16px; }
.prop-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #E5E7EB; flex-wrap: wrap; }
.prop-card-head h3 { font-size: 15px; font-weight: 700; color: #1A1A1A; margin: 0; }
.prop-card-head p { color: #6F7782; font-size: 13px; margin: 2px 0 0; }
.prop-card-body { padding: 18px; display: grid; gap: 14px; }

.prop-ctabs { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #E5E7EB; overflow-x: auto; scrollbar-width: none; }
.prop-ctabs::-webkit-scrollbar { display: none; }
.prop-ctabs button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: 99px;
  background: #F1F2F4; color: #4F5660; font: 600 14px Arial; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.prop-ctabs button:hover { background: #E7E9EE; color: #1A1A1A; }
.prop-ctabs button span { margin-left: 0; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: #fff; color: #6F7782; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.prop-ctabs button.on { background: #E5E7EB; color: #E8400E; border-color: #D9DCE2; }
.prop-ctabs button.on span { background: #E8400E; color: #fff; }

.prop-toolbar { padding: 10px 18px; border-bottom: 1px solid #E5E7EB; }
.prop-searchbox { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: 6px; padding: 0 10px; max-width: 280px; height: 36px; }
.prop-searchbox input { border: 0; background: none; outline: none; font-size: 13.5px; width: 100%; }
/* igual ao .searchbox do vinatv: lupa dentro do campo, fundo cinza claro, sem sombra */
.prop-toolbar .prop-searchbox { position: relative; display: block; max-width: 340px; padding: 0; border: 0; background: none; }
.prop-toolbar .prop-searchbox svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #94A3B8; }
.prop-toolbar .prop-searchbox input:not([type="checkbox"]):not([type="radio"]) {
  height: 34px; min-height: 34px; box-sizing: border-box; padding: 0 12px 0 34px; font-size: 14px; color: #1A1A1A;
  background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: 5px; box-shadow: none;
}
.prop-toolbar .prop-searchbox input:not([type="checkbox"]):not([type="radio"]):focus { background: #fff; outline: 2px solid rgba(232, 64, 14, .28); }

.prop-cat-bar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: #FAFAFA; border-bottom: 1px solid #E5E7EB; }
.prop-cat-bar .title { flex: 1; font-size: 12px; font-weight: 600; color: #6F7782; text-transform: uppercase; letter-spacing: .06em; }

.prop-prod { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid #F1F2F4; }
.prop-prod:last-child { border-bottom: 0; }
.prop-prod:hover { background: #FAFAFA; }
.prop-prod.off .n b { color: #94A3B8; }
.prop-prod .n { flex: 1; min-width: 0; }
.prop-prod .n b { display: block; font-weight: 600; font-size: 14.5px; color: #1A1A1A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-prod .n small { color: #6F7782; font-size: 12.5px; }


.prop-switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.prop-switch input { opacity: 0; width: 0; height: 0; }
.prop-switch .sl { position: absolute; inset: 0; background: #E5E7EB; border-radius: 999px; transition: .15s; cursor: pointer; }
.prop-switch .sl::before { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.prop-switch input:checked + .sl { background: #E8400E; }
.prop-switch input:checked + .sl::before { transform: translateX(17px); }

.prop-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.prop-offer { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; box-shadow: 0 7px 18px rgba(27,31,35,.1); transition: box-shadow .15s, transform .15s; cursor: pointer; }
.prop-offer:hover { box-shadow: 0 8px 24px rgba(16,24,40,.1); transform: translateY(-1px); }
.prop-offer.off { opacity: .6; }
.prop-offer .thumb { height: 140px; position: relative; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 60%, #FFF6A8 0, #FFD400 55%, #FFBF00 100%); }
.prop-offer .thumb img { max-width: 100%; max-height: 112px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.2)); }
.prop-offer .thumb .pill { position: absolute; top: 10px; left: 10px; }
.prop-offer .body { padding: 14px 16px; display: grid; gap: 2px; }
.prop-offer .title { font-weight: 700; font-size: 15px; color: #1A1A1A; }
.prop-offer .prices { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.prop-offer .price { color: #E8400E; font-weight: 800; font-size: 20px; }
.prop-offer .old { color: #94A3B8; text-decoration: line-through; font-size: 13px; }
.prop-offer .unit { color: #6F7782; font-size: 12.5px; }
.prop-offer .meta { color: #6F7782; font-size: 12.5px; margin-top: 6px; }

.prop-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #F1F2F4; color: #4F5660; }
.prop-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prop-pill.ok { background: #E7F6EE; color: #0F7B4B; }
.prop-pill.bad { background: #FEECEB; color: #B42318; }

.prop-table { width: 100%; border-collapse: collapse; }
.prop-table th { text-align: left; font-size: 12px; font-weight: 600; color: #6F7782; padding: 10px 16px; background: #FAFAFA; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
.prop-table td { padding: 12px 16px; border-bottom: 1px solid #F1F2F4; vertical-align: middle; font-size: 13.5px; color: #1A1A1A; }
.prop-table tr:last-child td { border-bottom: 0; }
.prop-table tbody tr:hover td { background: #FAFAFA; }
.prop-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prop-who > div { min-width: 0; }
.prop-who b { display: block; font-weight: 600; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-who small { display: block; color: #6F7782; font-size: 12.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-dot { width: 8px; height: 8px; border-radius: 50%; background: #C4C9D2; flex: none; }
.prop-dot.on { background: #0F7B4B; box-shadow: 0 0 0 3px #E7F6EE; }
.prop-table .prop-actions-cell { text-align: right; white-space: nowrap; width: 1%; }
.prop-table .prop-actions-cell .prop-btn + .prop-btn { margin-left: 6px; }
.prop-code-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px;
  font: 500 13.5px ui-monospace, SFMono-Regular, Consolas, monospace; background: #FAFAFA;
  border: 1px solid #E5E7EB; border-radius: 8px; padding: 9px 12px; word-break: break-all; color: #1A1A1A;
}

.prop-field { display: block; font-size: 13px; color: #4F5660; font-weight: 600; margin-bottom: 12px; }
.prop-field input, .prop-field select, .prop-field textarea {
  display: block; margin-top: 5px; height: 38px; border: 1px solid #E5E7EB; border-radius: 5px;
  padding: 0 10px; font-size: 13.5px; width: 100%; box-sizing: border-box; color: #1A1A1A;
}
.prop-field textarea { height: auto; padding: 8px 10px; }
.prop-field small { display: block; color: #94A3B8; font-weight: 400; font-size: 12px; margin-top: 2px; }
.prop-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.prop-weekdays { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.prop-weekdays label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #E5E7EB; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }

/* Descricao da secao em cima e o cartao de ponta a ponta embaixo */
.prop-section { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid #E5E7EB; }
.prop-section:first-of-type { border-top: 0; padding-top: 4px; }
.prop-section > div:first-child h3 { font-size: 15px; font-weight: 600; }
.prop-section > div:first-child p { font-size: 13.5px; }
.prop-section .prop-card { margin-bottom: 0; }
.prop-section .prop-card-body { gap: 16px; }
.prop-section h3 { margin: 0; font-size: 14.5px; color: #1A1A1A; }
.prop-section p { margin: 4px 0 0; font-size: 12.5px; color: #6F7782; }
.prop-imgph { width: 100%; max-height: 120px; border: 1px dashed #E5E7EB; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #94A3B8; font-size: 12.5px; padding: 10px; overflow: hidden; }
.prop-imgph img { max-width: 100%; max-height: 110px; object-fit: contain; }

.prop-upload-row { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.prop-upload-row input[type="file"] { display: none; }
.prop-upload-thumb {
  width: 64px; height: 64px; flex-shrink: 0; border: 1px dashed #E5E7EB; border-radius: 6px;
  background: #FAFAFA; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #94A3B8;
}
.prop-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }

.prop-switch-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #1A1A1A; margin: 4px 0 14px; cursor: pointer; }
.prop-switch-row .prop-switch { flex-shrink: 0; }

.prop-weekdays-pill { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.prop-weekdays-pill button {
  border: 1px solid #E5E7EB; background: #fff; color: #4F5660; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.prop-weekdays-pill button.on { background: #E8400E; border-color: #E8400E; color: #fff; }

.prop-note { display: flex; align-items: flex-start; gap: 8px; background: #FFF4E0; color: #A15C00; border-radius: 6px; padding: 10px 12px; font-size: 12.5px; margin-top: 4px; }

.prop-empty-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #F1F2F4; color: #6F7782;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 20px;
}

.prop-steplist { display: grid; gap: 12px; font-size: 13px; color: #4F5660; }
.prop-steplist small { color: #6F7782; display: block; }
.prop-copy { display: flex; align-items: center; gap: 8px; background: #FAFAFA; border: 1px solid #E5E7EB; border-radius: 5px; padding: 7px 10px; font-size: 12.5px; margin-top: 4px; color: #4F5660; word-break: break-all; }

.prop-empty { padding: 40px 18px; text-align: center; color: #94A3B8; font-size: 13.5px; }

/* Modal reaproveitando o mesmo visual dos outros cadastros da gestao */
.prop-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center;
  justify-content: center; z-index: 400; padding: 20px;
}
.prop-modal { background: #fff; border-radius: 10px; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; padding: 22px 24px; }
.prop-modal h3 { margin: 0 0 16px; font-size: 1.1rem; color: #2c2f36; }
.prop-modal .form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* Campo de imagem igual ao do vinatv (Configuracoes da Propaganda) */
.prop-image-field { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.prop-image-preview { width: 96px; height: 72px; flex: none; border-radius: 8px; border: 1px dashed #D5D9E0; background: #FAFAFA center / contain no-repeat; display: grid; place-items: center; color: #94A3B8; }
.prop-image-preview .icon { width: 19px; height: 19px; }
.prop-image-preview.has .icon { display: none; }
.prop-image-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.prop-image-actions .prop-btn.sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.prop-image-actions .prop-btn .icon { width: 16px; height: 16px; }
.prop-img-remove { border-color: transparent !important; background: transparent !important; box-shadow: none !important; color: #B42318 !important; }
.prop-img-remove:hover { background: #FEECEB !important; }
.prop-image-help { color: #6F7782; font-size: 12.5px; font-weight: 400; margin-top: 4px; }
@media (max-width: 820px) { .prop-section { grid-template-columns: 1fr; gap: 12px; } }
.prop-image-field input[type="file"] { display: none !important; }
.prop-image-field [hidden] { display: none !important; }
.prop-image-field > div:not(.prop-image-preview) { flex: 1; min-width: 0; }

/* Modal Configurar TV — no modelo do VinaTV: fonte, tons de cinza dos textos,
   categorias em chaves (2 colunas), corpo com rolagem e rodape fixo. */
.prop-tv-modal { padding: 0; max-width: 600px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #1f2937; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.prop-tv-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.prop-tv-corpo { overflow-y: auto; padding: 26px 28px 10px; min-height: 0; }
.prop-tv-modal h3 { margin: 0 0 20px; font-size: 21px; font-weight: 700; color: #1f2937; letter-spacing: -.01em; }
.prop-tv-modal .prop-field { font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 16px; }
.prop-tv-modal .prop-field small { color: #6b7280; font-size: 13px; font-weight: 400; margin-top: 4px; line-height: 1.45; }
.prop-tv-modal .prop-field input, .prop-tv-modal .prop-field select { height: 44px; border-radius: 10px; font-size: 15px; color: #1f2937; font-family: inherit; margin-top: 8px; }
.prop-tv-modal .prop-grid2 { gap: 16px; }
.prop-tv-nota { display: flex; align-items: center; gap: 8px; margin: -4px 0 18px; font-size: 13.5px; color: #6b7280; }
.prop-tv-nota .icon { width: 16px; height: 16px; color: #b7791f; flex: none; }
.prop-tv-nota b { color: #374151; }
.prop-tv-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-top: 12px; }
.prop-tv-cat { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #374151; cursor: pointer; }
.prop-tv-cat .switch { flex: none; }
.prop-tv-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid #eef0f3; background: #fff; }
.prop-tv-rodape-dir { display: flex; gap: 10px; }
.prop-tv-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid #d9dce3; background: #fff;
  color: #4b5563; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.prop-tv-btn:hover { background: #f8fafc; }
.prop-tv-btn .icon { width: 17px; height: 17px; }
.prop-tv-btn.remover { color: #c0392b; border-color: #f2c4bf; }
.prop-tv-btn.remover:hover { background: #fef2f1; }
.prop-tv-btn.salvar { background: #E8400E; border-color: #E8400E; color: #fff; padding: 0 22px; }
.prop-tv-btn.salvar:hover { background: #C73509; border-color: #C73509; }
@media (max-width: 560px) { .prop-tv-cats { grid-template-columns: 1fr; } .prop-tv-corpo { padding: 20px 18px 8px; } .prop-tv-rodape { padding: 12px 16px; } }
