/* ===========================================================================
   Replicar dados do item no PO — identidade visual Sigraweb (laranjaPrincipal
   #FF9001). Escopo isolado sob .modal-replicar-item / classes .rep-*.
   =========================================================================== */

.modal-replicar-item .modal-dialog { width: 860px; max-width: 96vw; }

.rep-origem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.rep-origem > label {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #565b62;
    margin: 0;
}
.rep-origem select { min-width: 340px; max-width: 100%; }
.rep-origem .rep-meta { color: #8a8f96; font-size: 12px; }

.rep-cols { display: flex; gap: 0; flex-wrap: wrap; }
.rep-col { flex: 1 1 360px; min-width: 0; padding: 0 14px; }
.rep-col + .rep-col { border-left: 1px solid #ececec; }
.rep-col h5 {
    margin: 0 0 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #565b62;
    font-weight: 700;
}
.rep-col .rep-hint { color: #8a8f96; font-size: 11px; margin: 0 0 12px; }

/* --- accordion de grupos/campos --- */
.rep-grupo {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
}
.rep-grupo.rep-some, .rep-grupo.rep-all { border-color: #ffcf94; }
.rep-grupo-hd {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    cursor: pointer;
}
.rep-grupo-hd:hover { background: #fffaf2; }
.rep-grupo.rep-some .rep-grupo-hd, .rep-grupo.rep-all .rep-grupo-hd { background: #fff4e3; }
.rep-grupo-hd .rep-caret { color: #b0b3b8; width: 11px; text-align: center; font-size: 11px; transition: transform .12s; }
.rep-grupo.rep-open .rep-grupo-hd .rep-caret { transform: rotate(90deg); }
.rep-grupo-hd .rep-nome { font-weight: 700; font-size: 12.5px; color: #333; }
.rep-grupo-hd .rep-cnt { margin-left: auto; font-size: 10.5px; color: #9a9fa5; white-space: nowrap; }
.rep-grupo-bd {
    display: none;
    border-top: 1px solid #eee;
    padding: 4px 12px 8px 30px;
    background: #fcfcfc;
}
.rep-grupo.rep-open .rep-grupo-bd { display: block; }

/* Ícone de ajuda padrão Sigra (bolinha azul com ?) dentro do modal. */
.modal-replicar-item .tooltip-sigra {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 9px;
    text-align: center;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}
.modal-replicar-item .tooltip-sigra .custom-tooltip { font-weight: normal; }

.rep-attr-mode {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
}
.rep-attr-mode .rep-radio { font-size: 12px; font-weight: normal; margin: 0; cursor: pointer; }
.rep-attr-mode .rep-radio input { margin-right: 6px; }

.rep-campo { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.rep-campo input[type="checkbox"] { margin: 0; }
.rep-campo .rep-val {
    color: #1f7a44;
    background: #eef7f1;
    border: 1px solid #cfe8da;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 11px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rep-campo .rep-cod {
    font-family: monospace;
    font-size: 10.5px;
    color: #b25a00;
    background: #fff;
    border: 1px solid #ffcf94;
    border-radius: 8px;
    padding: 0 6px;
}
.rep-tag, .rep-warn, .rep-cond {
    font-size: 9.5px;
    border-radius: 8px;
    padding: 0 6px;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}
.rep-tag  { font-weight: 700; color: #b25a00; background: #fff; border: 1px solid #ffcf94; }
.rep-warn { font-weight: 700; color: #9a6a00; background: #fdf3df; border: 1px solid #f0dca8; }
.rep-cond { color: #9a9fa5; background: #f2f2f4; border: 1px solid #e6e6e6; }

/* --- lista de destinos --- */
.rep-destbox {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}
.rep-dest {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}
.rep-dest:last-child { border-bottom: none; }
.rep-dest .rep-dn { font-weight: 700; color: #333; }
.rep-dest .rep-dmeta { color: #8a8f96; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-dest .rep-aplic {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 9px;
    padding: 1px 8px;
    white-space: nowrap;
}
.rep-aplic-full { background: #e7f5ec; color: #1f7a44; }
.rep-aplic-part { background: #fff4e3; color: #b25a00; }
.rep-aplic-none { background: #f2f2f4; color: #9a9fa5; }
.rep-dest-origem .rep-dn { color: #b25a00; }
.rep-dest-vazio { color: #8a8f96; padding: 10px; }

.rep-foot-ovr { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #565b62; margin: 0; font-weight: normal; }
.rep-loading { color: #8a8f96; font-size: 12px; padding: 6px 0; }
